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
Show hidden characters
[ | |
{"keys": ["super+up"], "command": "swap_line_up"}, | |
{"keys": ["super+down"], "command": "swap_line_down"}, | |
{"keys": ["option+up"], "command": "select_lines", "args": {"forward": false}, "context": [ | |
{"key": "setting.is_sublimerge_view", "operator": "equal", "operand": false, "match_all": true} | |
]}, | |
{"keys": ["option+down"], "command": "select_lines", "args": {"forward": true}, "context": [ | |
{"key": "setting.is_sublimerge_view", "operator": "equal", "operand": false, "match_all": true} | |
]}, |
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
/* Problem: | |
* Building an isomorphic app with Webpack makes it hard to share dynamic | |
* data between the client and server. If you're running multiple apps in | |
* parallel, you can't use globals because they'll collide. You could | |
* probably come up with something that involves caching them to the | |
* filesystem and requiring it from the right places, but serializing | |
* dynamic data to the filesystem is gross. | |
* | |
* This is a proof of concept demonstrates two instances of View, each with | |
* their own parallel instance of settings, thanks to some call stack |
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_IP is defined in Webpack, since the client can't run my-local-ip | |
"API_BASE_URL": "http://" + (require("my-local-ip")() || SERVER_IP) + ":8082/", | |
// … | |
/* this is being exported from webpack as: | |
// SERVER_IP is defined in Webpack, since the client can't run my-local-ip | |
"API_BASE_URL": "http://" + (__webpack_require__(197)() || (192.168.10.106)) + ":8082/", |
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 jsdom; // populated later if contextIsBrowser fails | |
var utilities = { | |
"domify": function (node) { | |
if (!node["getElementsByTagName"]) { | |
node = jsdom(node); | |
} | |
return node; | |
}, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<img | |
src = "https://rawgithub.com/appsforartists/angular.js/2450e0b3f4b738de09b4dafb1500299d635c36ea/docs/img/angular_logo_for_dark_background_small.svg" | |
onerror = "this.src = "http://angularjs.org/img/AngularJS-small.png" | |
> | |
</body> | |
</html> |
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
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xvjf $1 && cd $(basename "$1" .tar.bz2) ;; | |
*.tar.gz) tar xvzf $1 && cd $(basename "$1" .tar.gz) ;; | |
*.tar.xz) tar Jxvf $1 && cd $(basename "$1" .tar.xz) ;; | |
*.bz2) bunzip2 $1 && cd $(basename "$1" /bz2) ;; | |
*.rar) unrar x $1 && cd $(basename "$1" .rar) ;; | |
*.gz) gunzip $1 && cd $(basename "$1" .gz) ;; | |
*.tar) tar xvf $1 && cd $(basename "$1" .tar) ;; |
NewerOlder