This file contains 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
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
echo -e "Installing pip..." | |
sudo python get-pip.py | |
rm get-pip.py | |
echo -e "Done." | |
echo -e "Installing Python packages..." | |
sudo pip install pytest | |
sudo pip install selenium |
- Your class can be no longer than 100 lines of code.
- Your methods can be no longer than five lines of code.
- You can pass no more than four parameters and you can’t just make it one big hash.
- When a call comes into your Rails controller, you can only instantiate one object to do whatever it is that needs to be done.
You can break these rules if you can talk your pair into agreeing with you.
This file contains 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
reduce x y = (quot x d, quot y d) | |
where d = gcd x y | |
right_angle_triangles_in_quadrant n = | |
3 *n * n + 2 * sum others | |
where | |
others =[min xc yc| | |
x1 <- [1..n], | |
y1 <- [1..n], | |
let (yi,xi) = reduce x1 y1, |
This file contains 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
build_package_combined_patch() { | |
local package_name="$1" | |
{ | |
curl https://raw.github.com/gist/3905045/bf9d1c84c72cdce5be52d8b2dfd4d86a1cdbf185/gistfile1.txt | git apply | |
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p286/falcon.diff | git apply | |
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p327/ruby-multilib.patch | git apply | |
autoconf | |
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
make -j 8 |
This file contains 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
This file contains 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
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'astashov/vim-ruby-debugger' | |
Bundle 'bbommarito/vim-slim' | |
Bundle 'c9s/emoticon.vim' | |
Bundle 'cakebaker/scss-syntax.vim' | |
Bundle 'chrisbra/NrrwRgn' | |
Bundle 'edsono/vim-matchit' | |
Bundle 'ervandew/supertab' | |
Bundle 'garbas/vim-snipmate' |
This file contains 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
php > $test = range('A', 'z'); | |
php > var_dump($test); | |
array(58) { | |
[0]=> | |
string(1) "A" | |
[1]=> | |
string(1) "B" | |
[2]=> | |
string(1) "C" | |
[3]=> |
NewerOlder