Skip to content

Instantly share code, notes, and snippets.

Brandon Heyer brandonheyer

Block or report user

Report or block brandonheyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f0e0607b90c26faad425a31de2e0ef55
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
var _ = require('lodash');
var YOUR_PLAYER_ID = 8,
teams = {
0: 'Yates ',
1: 'Wuffalo ',
2: 'Cutler ',
3: 'RBs ',
4: 'FCL ',
5: 'Revv ',
@brandonheyer
brandonheyer / atom-style.scss
Created Aug 16, 2016
My Atom style example
View atom-style.scss
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] {
@brandonheyer
brandonheyer / rgbToHSL.php
Last active Oct 11, 2019
PHP snippet to convert RGB to HSL and HSL to RGB.
View rgbToHSL.php
<?
function rgbToHsl( $r, $g, $b ) {
$oldR = $r;
$oldG = $g;
$oldB = $b;
$r /= 255;
$g /= 255;
$b /= 255;
You can’t perform that action at this time.