I hereby claim:
- I am ismaelga on github.
- I am ism (https://keybase.io/ism) on keybase.
- I have a public key whose fingerprint is 3595 FFAF 9015 F5F6 8B53 82A5 20CB F239 6D77 8B3B
To claim this, I am signing this object:
| CURRENT=`pwd` | |
| cd /tmp | |
| git clone https://github.com/brhs/nomouse.git | |
| cd nomouse | |
| make | |
| nohup ./bin/nomouse & | |
| cd $CURRENT | |
| clear | |
| exit |
I hereby claim:
To claim this, I am signing this object:
| defmodule AppendBench do | |
| use Benchfella | |
| @list Enum.into 1..10000, [] | |
| bench "++" do | |
| h = Enum.at @list, 0 | |
| @list ++ [h] | |
| end | |
| require "openssl" | |
| require "digest" | |
| def aes128_encrypt(key, data) | |
| key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize) | |
| aes = OpenSSL::Cipher.new('AES-128-CBC') | |
| aes.encrypt | |
| aes.key = key | |
| aes.update(data) + aes.final | |
| end |
| def myRepeate(command: => Unit) = new { | |
| def until(condition: => Boolean): Unit = | |
| if (condition) () | |
| else { | |
| command | |
| until(condition) | |
| } | |
| } | |
| var x = 0 |
| Posting this inside of VIM |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Don't ask your government for your Privacy, take it back:
| def multiple number | |
| proc {|n| (n % number) == 0 rescue nil } | |
| end | |
| (0..100).each do |number| | |
| puts case number | |
| when multiple(15) then "FizzBuzz" | |
| when multiple(5) then "Buzz" | |
| when multiple(3) then "Fizz" | |
| else number |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |