gem install tracker_api
gem install octokit
gem install git-routines
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
#!/bin/sh | |
# TODO(pascal): Get TM status and ask to stop backup. (Also prevent disk ejection below) | |
# stops current time machine backup | |
tmutil stopbackup | |
# eject all disks | |
osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)' | |
# find and kill node/npm processes |
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
# Daily StandUp Reminder on weekdays | |
45 12 * * 1-5 say "StandUp" && terminal-notifier -title "Standup" -message "Get up" |
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
const TIMEOUT = 10000; | |
function jsonp(url) { | |
return new Promise((resolve, reject) => { | |
let callbackName = 'jsonpCallback'; | |
let timeoutTrigger = window.setTimeout(function(){ | |
window[callbackName] = Function.prototype; | |
reject(new Error('Timeout')); | |
}, TIMEOUT); |
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
%html(lang='en' ng-app='app' ng-cloak) |
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
let performance = window.performance; | |
let perfSupport = !!performance; | |
/** | |
* Receive Serve, DomComplete and PageLoaded timings | |
* @returns {Object} | |
*/ | |
export function laodTimes() { | |
if (!perfSupport) { | |
return; |