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/bash | |
RSA_FILE_PATH="~/.ssh/github_rsa" | |
RSA_FILE="${RSA_FILE_PATH/#\~/$HOME}" | |
CONFIG_FILE=~/.ssh/config | |
read -p 'Github RSA Key Email: ' emailvar | |
read -sp 'Github RSA Key Password: ' passvar | |
mkdir -p ~/.ssh |
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
process.on('uncaughtException', err => console.error('uncaughtException', err)) | |
process.on('uncaughtRejection', err => process.emit('uncaughtException', err)) | |
const example = () => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => reject(new Error('Uh oh')), 1000) | |
}) | |
} | |
example() |
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
(function () { | |
'use strict'; | |
function initPlayer (url) { | |
jwplayer('playerID').setup({ | |
file : url, | |
image: '//www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg', | |
width: '50%', | |
primary: 'flash', |
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
a { | |
transition-delay : n*100ms; | |
} |
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
function hasNestedProperty(o, p) { | |
var i, | |
j; | |
for (i in o) { | |
j = o[i]; | |
if (i === "p") { | |
return true; | |
} |
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
(function () { | |
Ember.View.reopen({ | |
isPrepped : false, | |
isAnimating : false, | |
cancelAnimation : false, | |
currentAnimationClass : "", |
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
location /muppets-most-wanted/mobile.html { | |
alias /path/to/files/mobile.html; | |
} | |
location /muppets-most-wanted/ { | |
alias /path/to/files/; | |
set $mobile_rewrite do_not_perform; | |
set $force_dt_cookie ""; |
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
define ( | |
[ | |
"rosy/base/Class", | |
"rosy/routing/Router", | |
"rosy/routing/HistoryRouter", | |
"rosy/routing/HashRouter", | |
"mySite/views/About" | |
], |
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
define ( | |
[ | |
"rosy/base/Class", | |
"rosy/routing/Router", | |
"rosy/routing/HistoryRouter", | |
"rosy/routing/HashRouter", | |
"mySite/views/About" | |
], |
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
javascript:(function(){var links = document.getElementsByTagName("link");for (var i = 0; i < links.length; i++) {var link = links[i];if (link.rel === "stylesheet") {var queryString = "";var args = {};var href = link.href;href.replace(/[?&]+([^=&]+)(?:[=]*)([^&]*)/gi, function (m, key, value) {args[key] = value;});args.reload = (new Date()).getTime();for (var p in args) {queryString += (queryString ? "&" : "?") + p + "=" + args[p];}link.href = link.href.replace(/\?.*|$/, queryString);}}}()); |
NewerOlder