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
$height: rem(20px); | |
$horizontal-padding: ($height / 2); | |
$pip-size: rem(10px); | |
$pip-spacing: ($height - $pip-size) / 2; | |
@mixin pip-color($color) { | |
.Polaris-Badge__Pip { | |
color: $color; | |
} |
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
git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash) | |
git rm .gitmodules # if you have more than one submodules, | |
# you need to edit this file instead of deleting! | |
rm -rf submodule_path/.git # make sure you have backup!! | |
git add submodule_path # will add files instead of commit reference | |
git commit -m "remove submodule" |
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
var xmlhttp=new XMLHttpRequest(); | |
var url = "http://poy.tsn.ca/api/tournaments/1/matches/17-hemsky-vs-oshie/vote/left"; | |
window.setInterval(function(){ | |
xmlhttp.open("POST", url, true); | |
xmlhttp.send(); | |
}, 1000); |
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
// In /foo/bar/es-mx.json | |
{ | |
"Welcome to my site.": "Bienvenidos a mi sitio." | |
} | |
// In a controller (assuming a defaultLocale of 'es-mx'): | |
// Returns Bienvenidos a mi sitio. | |
this.i18n.t('Welcome to my site.'); |
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
upstream yourapp_backend { | |
server 127.0.0.1:4000; | |
} | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { |
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
server:bundle dom$ jitsu deploy | |
info: Welcome to Nodejitsu nko3-breakfast-club | |
info: jitsu v0.11.0, node v0.8.9 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server/server.js | |
info: Creating snapshot 0.0.0-2 | |
info Uploading: [=============================] 99% | |
info: Updating app nko3-breakfast-club | |
info: Activating snapshot 0.0.0-2 for nko3-breakfast-club |