SSID="$(networksetup -getairportnetwork en0 | cut -c 24-)"
security find-generic-password -ga $SSID | grep password
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
# Daily StandUp Reminder on weekdays | |
45 12 * * 1-5 say "StandUp" && terminal-notifier -title "Standup" -message "Get up" |
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 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 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 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; |
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
// extending the Array prototype | |
Array.prototype.clone = function clone() { | |
return this.slice(0); | |
}; | |
// example | |
var arr = [4,5]; | |
var copy = arr.slice(0); | |
// better (since we do not extend the prototype): |