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
#!/usr/bin/python3 | |
# Copyright © 2015 Ole Rickowski | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
import os,sys,random,string | |
# Print help |
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
" make the user character , | |
let mapleader = "," | |
" make qq work as escape, save your pinkies | |
inoremap qq <esc> | |
inoremap <esc> <nop> | |
vnoremap qq v | |
" move by visual line rather than hard line | |
" essentially that way you dont have to scroll |
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
map gn nextTab | |
map gt previousTab | |
map g9 firstTab | |
map g0 lastTab | |
map n createTab | |
map d removeTab | |
map u restoreTab |
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
Store 1 Store 2 Store 3 Windows | |
Car Jewelry Cosmetics 0 | |
Car Jewelry Suits 0 | |
Car Pear Jewelry 0 | |
Car Pear Cosmetics 2 | |
Car Pear Suits 3 | |
Pear Jewelry Cosmetics 6 | |
Suits Jewelry Pear 6 | |
Car Cosmetics Suits 12 | |
Jewelry Cosmetics Suits 16 |
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
The numbers in the table indicate the maximum value of the knapsack | |
The columns of the table indicate the maximum weight. | |
The rows of the table indicate which items you are allowed to place in the knapsack. | |
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] === no items | |
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] === red only | |
[0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] === red and gray | |
[0, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] === red, gray, and blue |
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
import random | |
#this game is a test your luck game. | |
#it will continue until the player dies or stops opening chests. | |
#every chest has a one in five chance of containing a grue because i love Zork | |
chest = ('gold' , 'gold' , 'gold' , 'grue' , 'gold') | |
print """ | |
THE LUCKY CHEST GAME! | |
""" |
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
def main(): | |
pass | |
if __name__ == '__main__': | |
main() | |
def spatula(food): | |
print(food) | |
return |
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
# Change prompt to display current git branch | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:\1/' | |
} | |
PS1="[\u@\h \W\$(parse_git_branch)]" | |
case `id -u` in | |
0) PS1="${PS1}# ";; | |
*) PS1="${PS1}$ ";; | |
esac | |
# end git branch code |
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
(dp0 | |
S'kellyev' | |
p1 | |
(S'#thegeekgroup' | |
p2 | |
F1307326422.069239 | |
tp3 | |
sS'leadhead' | |
p4 | |
(S'#thegeekgroup' |
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
toast1 |
NewerOlder