This file contains hidden or 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
module ClearMethods | |
extend self | |
def __clear_methods | |
methods - Object.methods | |
end | |
end | |
class Object | |
include ClearMethods | |
end |
This file contains hidden or 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
# Centos 5.8 libyaml anoning warn message. | |
1 - rvm pkg install libyaml | |
2 - rvm reinstall all --force --with-opt-dir=~/.rvm/usr |
This file contains hidden or 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
# Based on robbyrussell's theme, with host and rvm indicators. Example: | |
# @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname) | |
# Get the current ruby version in use with RVM: | |
if [ -e ~/.rvm/bin/rvm-prompt ]; then | |
RUBY_PROMPT_="%{$fg_bold[blue]%}[%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt)%{$fg_bold[blue]%}]%{$reset_color%} " | |
fi | |
# Get the host name (first 4 chars) | |
HOST_PROMPT_="%{$fg_bold[red]%}➜ %{$fg_bold[cyan]%}%0~ " |
This file contains hidden or 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 Class = function(parent){ | |
var klass = function(){ | |
this.init.apply(this, arguments); | |
} | |
if(parent){ | |
var subclass = function(){}; | |
subclass.prototype = parent.prototype; | |
klass.prototype = new subclass; |
This file contains hidden or 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
sudo ifconfig en1 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` |
This file contains hidden or 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
module A | |
class Payment | |
def foo | |
p "Payment#foo" | |
end | |
end | |
end | |
module A | |
class CC < Payment |
This file contains hidden or 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
--- | |
- ahole | |
- anus | |
- ash0le | |
- ash0les | |
- asholes | |
- ass | |
- Ass Monkey | |
- Assface | |
- assh0le |
This file contains hidden or 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
import sys | |
test_cases = open(sys.argv[1], 'r') | |
for test in test_cases: | |
result = test.split(' ') | |
result.reverse() | |
index, buf = 0, '' |
This file contains hidden or 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
Você pode, por favor, me adicionar no Gtalk ou no Msn?? | |
Meu e-mail é [email protected]. | |
Kleber, | |
Obrigado! |
This file contains hidden or 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
Starting recovery on Sun Jan 6 00:00:04 1980 | |
can't open /dev/tty0: No such file or directory | |
framebuffer: fd 3 (480 x 800) | |
ClockworkMod Recovery v5.0.2.0 | |
recovery filesystem table | |
========================= | |
0 /tmp ramdisk (null) (null) | |
1 /recovery emmc /dev/block/mmcblk0p21 (null) | |
2 /boot emmc /dev/block/mmcblk0p22 (null) | |
3 /cache ext3 /dev/block/mmcblk0p27 (null) |