I hereby claim:
- I am 321hendrik on github.
- I am hendrikelsner (https://keybase.io/hendrikelsner) on keybase.
- I have a public key ASBXkG_XId5elz_iaIEhe31a5KIauosfD_RglE2pUrIUjQo
To claim this, I am signing this object:
var timers = {}; | |
Ti.App.time = function(key) { | |
console.error('timer started:', key); | |
if (timers[key]) { | |
Ti.App.timeEnd(key); | |
} | |
timers[key] = new Date().getTime(); | |
}; | |
Ti.App.timeEnd = function(key) { | |
if (!timers[key]) { |
var ellipsizeLabel = Ti.UI.createLabel({ | |
height: 20, | |
wordWrap: false, | |
horizontalWrap: false, | |
ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END, | |
textAlign: 'center', | |
width: 50, | |
text: 'extralongtestnamefortesting' | |
}); | |
self.add(ellipsizeLabel); |
function logObjWithoutBase64 () { | |
function rmb64(o) { | |
if (typeof(o) == 'object') { | |
for (var k in o) { | |
o[k] = rmb64(o[k]); | |
} | |
} else if (typeof(o) == 'string' && o.length > 100) { | |
return 'BASE64'; | |
} | |
return o; |
open `find ~/Library/Developer/CoreSimulator/Devices -type d -depth 7 -print0 | xargs -0 stat -f "%m %N" | grep Containers | sort -rn | head -1 | cut -f2- -d" "` |
#!/bin/bash | |
# | |
# NPM Packer | |
# - copy script to project folder | |
# - npm install | |
# - ./packer.sh | |
# | |
# -> creates a PROJECT_NAME.zip | |
# |
#!/bin/bash | |
# _Usage_ | |
# - modify the NEW_GIT_HOST, OLD_GIT_HOST variables below | |
# - make the script executable with `chmod u+x change_git_remote.sh` | |
# - run it from your project dir or give the path as first parameter | |
# configure host changes | |
NEW_GIT_HOST="new.git.host.com" | |
OLD_GIT_HOST="old.git.host.com" |
I hereby claim:
To claim this, I am signing this object: