I hereby claim:
- I am ncancelliere on github.
- I am ncancelliere (https://keybase.io/ncancelliere) on keybase.
- I have a public key whose fingerprint is 4718 46FF D958 EBD0 955B 7357 954E B9DC 94EB 8EBC
To claim this, I am signing this object:
| 0. Not being able to get Auora, the unicorn | |
| 1. Micro-transactions to verify accounts is friction | |
| 2. Upgrading to Rails 5 | |
| 3. House guests staying longer than 4 days |
| # How long does it take to execute empty string? | |
| $ time ruby -e' ' | |
| real 0m0.346s | |
| user 0m0.063s | |
| sys 0m0.032s | |
| $ time ruby --disable-gems -e' ' | |
| real 0m0.016s | |
| user 0m0.009s |
| # Pull updates from all git repos below your CWD. single level only | |
| function gupdate() { | |
| for i in */.git; | |
| do ( cd "${i/\/.*/}"; git pull --ff-only); | |
| done | |
| } |
| $ git fetch upstream | |
| $ git checkout omgpull | |
| $ git rebase -i upstream/master | |
| < choose squash for all of your commits, except the first one > | |
| < Edit the commit message to make sense, and describe all your changes > | |
| $ git push origin omgpull -f |
I hereby claim:
To claim this, I am signing this object:
| git checkout master | |
| git pull origin master | |
| git tag $(ruby -e "puts Time.now.strftime('v%Y%m%d-%H%M')") | |
| git push origin --tags |
| module Net | |
| class HTTP | |
| alias_method '__initialize__', 'initialize' | |
| def initialize(*args,&block) | |
| __initialize__(*args, &block) | |
| ensure | |
| @debug_output = $stderr ### if ENV['HTTP_DEBUG'] | |
| end | |
| end |
| # Credit to http://snippets.freerobby.com/post/491644841/remove-merged-branches-in-git for the script on which this is based | |
| current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
| if [ "$current_branch" != "master" ]; then | |
| echo "WARNING: You are on branch $current_branch, NOT master." | |
| fi | |
| echo "Fetching merged branches..." | |
| git remote prune origin | |
| local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$") | |
| if [ -z "$local_branches" ]; then |
| _________Chat Transcript_____________ | |
| info: Thank you for contacting Time Warner Cable. A representative will be with you shortly. | |
| info: You are now chatting with Raphael. | |
| Raphael: Thank you for your calling Time Warner Cable online sales, home of the best Triple Play Offer, my name is Raphael, what services can I help you get today? | |
| Raphael: Hi! | |
| Nicholas: Hello - I got a question about my bill. | |
| Raphael: What is it please? | |
| Nicholas: On the website it says Ultimate 200 costs $60 bucks a month, but my bill is showing almost $100! Just for internet, that's crazy. |
| var scope = "global"; | |
| function() { | |
| console.log(scope); // this produces undefined, not "global" | |
| var scope = "local"; | |
| console.log(scope); // this produces "local" | |
| } | |
| // JavaScript doesn't use block scope, so what is actually happening is equal to below | |
| function() { | |
| var scope; |