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
// Material Design Color Palette | |
// ----------------------------- | |
// http://www.google.com/design/spec/style/color.html | |
$material-color-divider: rgba(0, 0, 0, .12); | |
$material-colors: ( | |
red: ( | |
50: #ffebee, | |
100: #ffcdd2, |
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
const COLOURS = [ | |
'#ff1744', '#f50057', '#d500f9', '#651fff', '#3d5afe', '#2979ff', '#00b0ff', '#00e5ff', '#1de9b6', '#00e676', | |
'#76ff03', '#c6ff00', '#ffea00', '#ffc400', '#ff9100', '#ff3d00', '#8d6e63', '#bdbdbd', '#78909c', | |
]; | |
export function debugLog(prefix: string, ...args) { | |
let number = 0; | |
for (let i = 0; i < prefix.length; i++) { | |
number += prefix.charCodeAt(i); | |
} |
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
from collections import defaultdict | |
def pivot(rows, x_getter, y_getter, z_getter, empty_value=''): | |
pivotted_data = defaultdict(dict) | |
seen_y_values = set() | |
for row in rows: | |
x_value = x_getter(row) | |
y_value = y_getter(row) | |
z_value = z_getter(row) |
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
while true; do sleep $((1 + RANDOM % 10)); osascript -e 'display notification "keep up the good work!" with title "Chuck says…"'; done; |
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
import { Component } from '@angular/core'; | |
import { TestBed } from '@angular/core/testing'; | |
import { By } from '@angular/platform-browser'; | |
import { AliasDirective } from './alias.directive'; | |
describe('Alias directive', () => { | |
beforeEach(() => | |
TestBed.configureTestingModule({ | |
declarations: [AliasDirective, DoubleComponent, TripleComponent], | |
})); |