cd ~/ts-code/Apps-Server/
/usr/local/bin/node --debug-brk=52713 --debug-port=5858 --nolazy /usr/local/bin/grunt server
node-inspector --web-port=9090
| [ | |
| { "keys": ["super+b"], "command": "toggle_side_bar" }, | |
| { "keys": ["ctrl+r"], "command": "refresh_folder_list" }, | |
| { "keys": ["alt+space"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} } | |
| ] |
| { | |
| "color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
| "fade_fold_buttons": false, | |
| "folder_exclude_patterns": [ | |
| ".svn", | |
| ".git", | |
| ".hg", | |
| "CVS", | |
| "auditlog", | |
| "i18n", |
| --- /api/baseapi.cpp | |
| +++ /api/baseapi.cpp | |
| @@ -1041,6 +1041,7 @@ | |
| hocr_str->add_str_int(" ", top); | |
| hocr_str->add_str_int(" ", right); | |
| hocr_str->add_str_int(" ", bottom); | |
| + hocr_str->add_str_int("; x_wconf ", ((LTRResultIterator*)it)->Confidence(level)); | |
| *hocr_str += "\">"; | |
| } | |
| # Run the following in the folder containing all ts repos. | |
| # Git pull | |
| for dir in */; do | |
| cd $dir | |
| echo "Opening ${dir} and git pull" | |
| git pull | |
| cd .. | |
| done |
| var bindings = document.getElementsByClassName('ng-binding').length; | |
| var scopes = document.getElementsByClassName('ng-scope').length; | |
| var bodyScope = angular.element(document.querySelector('body')).scope(); | |
| var watchers = bodyScope && bodyScope.$$watchers ? bodyScope.$$watchers.length : '?'; | |
| var getWatchers = function () { | |
| var root = document.getElementsByTagName('body')[0]; | |
| var numberOfWatches = 0; |
| git checkout master | |
| git checkout -b master-squash | |
| git merge --squash <branch-to-squash> |
| # TS home folder | |
| export TS_HOME=~/ts-code/ | |
| # tell Maven where Java7 is | |
| export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
| # Riak needs at least a ulimit of 4096 | |
| ulimit -n 10240 | |
| # Increase allowed memory consumption for Maven |
| function mySlowFunction(baseNumber) { | |
| console.time('mySlowFunction'); | |
| let result = 0; | |
| for (var i = Math.pow(baseNumber, 7); i >= 0; i--) { | |
| result += Math.atan(i) * Math.tan(i); | |
| }; | |
| console.timeEnd('mySlowFunction'); | |
| } | |
| mySlowFunction(8); // higher number => more iterations => slower |
| { | |
| "app": { | |
| "redirect_uri": "http://requestb.in/zqe6mrzq", | |
| "main": "http://localhost:8889/tradeshift-proxy/auth/login?response_type=code&client_id=sqren.sqrentest&redirect_uri=http://requestb.in/zqe6mrzq&scope=openid offline" | |
| }, | |
| "tradeshift_version": "5.0", | |
| "default_locale": "en-GB", | |
| "locales": { | |
| "en-GB": { | |
| "app_desc": "This is a test by sqren", |