View gist:f0e0607b90c26faad425a31de2e0ef55
This file contains 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
let isFalse = false; | |
const mappedOutput = map(nextProps, (v, k) => { | |
const diff = this.props[k] === v; | |
isFalse = isFalse || !diff; | |
return [k, v, diff]; | |
}); | |
if (isFalse) { | |
console.log(mappedOutput); //eslint-disable-line |
View ff.js
This file contains 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
var _ = require('lodash'); | |
var YOUR_PLAYER_ID = 8, | |
teams = { | |
0: 'Yates ', | |
1: 'Wuffalo ', | |
2: 'Cutler ', | |
3: 'RBs ', | |
4: 'FCL ', | |
5: 'Revv ', |
View atom-style.scss
This file contains 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
atom-text-editor::shadow { | |
.gutter-container { | |
border-right: 1px dashed rgba(100, 120, 190, 0.2); | |
} | |
.gutter { | |
background-color: hsl(220, 13%, 17%); | |
} | |
[gutter-name=linter] { |
View rgbToHSL.php
This file contains 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
<? | |
function rgbToHsl( $r, $g, $b ) { | |
$oldR = $r; | |
$oldG = $g; | |
$oldB = $b; | |
$r /= 255; | |
$g /= 255; | |
$b /= 255; |