This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import PropTypes from 'prop-types' | |
| import {Icon, StyleProvider, getTheme } from 'native-base'; | |
| class MyIcon extends React.Component { | |
| render() { | |
| if(this.props.iconFamily) { | |
| return ( | |
| <StyleProvider style={getTheme({iconFamily: this.props.iconFamily})}> | |
| {this._renderIcon()} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A generic confirmation for risky actions. | |
| * Usage: Add attributes: | |
| * * ng-confirm-message="Are you sure?" | |
| * * ng-confirm-click="takeAction()" function | |
| * * ng-confirm-condition="mustBeEvaluatedToTrueForTheConfirmBoxBeShown" expression | |
| */ | |
| angular.module('app').directive('ngConfirmClick', [function() { | |
| return { | |
| restrict: 'A', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys, csv, time | |
| from collections import defaultdict | |
| from itertools import islice | |
| import orig_slopeone, slopeone #,slsparse | |
| classes = [ | |
| orig_slopeone.SlopeOne, | |
| #orig_slopeone.SlopeOneNumpy, # XXX: dog slow | |
| slopeone.SlopeOne, |