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
Provides: {'do_something': <function do_something at 0x102f217d0>, 'do_something_else': <function strange_function_name at 0x102f2b8c0>} | |
Keybindings: {'t[2, 1]': <function command_t at 0x102f2b9b0>} | |
do something | |
doing something else 1337 |
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
def cons(x, y): | |
return lambda f: f(x, y) | |
def car(x): | |
# Fill out this function | |
pass | |
if car(cons(1, 5)) == 1: | |
print 'Solved!' | |
else: |
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
# Rename a file and keep it in the same location | |
rename() { | |
if [ "$#" -ne 2 ]; then | |
echo "usage: $0 path/to/file/old_name new_name" | |
return | |
fi | |
mv $1 `dirname $1`/$2 | |
} |
OlderNewer