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
# copy to clipboard links to rars hosted at rapidshare found at given url | |
rs() { | |
curl $1 2> /dev/null | grep -Po 'http://rapidshare.com/.*?rar' | pbcopy | |
} |
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
* Demonic Noodles | |
* | |
* Author: Maciej Konieczny <[email protected]> | |
* Website: http://gist.github.com/639250 | |
* License: public domain <http://unlicense.org/> | |
* Background: My first Fortran program; written as a Programming | |
* Paradigms assignment. We were supposed to generate | |
* a creature picture in Fortran 77. | |
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
Python 2.7 (r27:82500, Jul 6 2010, 21:27:24) | |
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> s = 'foo' | |
>>> s is s.lower() | |
False | |
>>> s is s.replace('a', 'b') | |
True | |
>>> s is s.replace('o', 'o') | |
False |
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
#!/bin/zsh | |
# This hook is run after every virtualenv is activated. | |
# prefix prompt with... umm... pink, I think? name of virtualenv | |
PS1=$'%{\e[0;35m%}$(basename $VIRTUAL_ENV)%{\e[0m%} '$_OLD_VIRTUAL_PS1 |
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
%h1 edit your profile | |
- form_for @user, :url => {:action => :update} do |form| | |
%div= form.text_field :name | |
= error_message_on @user, :name, 'name ' | |
%div= submit_tag 'save' |
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
~ $ python | |
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) | |
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from dis import dis | |
>>> def wT(): | |
... while True: | |
... pass | |
... | |
>>> dis(wT) |
NewerOlder