I hereby claim:
- I am basepi on github.
- I am basepi (https://keybase.io/basepi) on keybase.
- I have a public key whose fingerprint is FBB7 46C3 A43A BFEE 810D E545 6EC5 C787 D71F 663F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
brew doctor | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:999: command not found: mount | |
Your OS X is ripe for brewing. | |
Any troubles you may be experiencing are likely purely psychosomatic. |
number = 5 | |
# Here, number will print twice | |
if number < 6: | |
print(num) | |
if number < 7: | |
print(num) | |
# Here, number will only print once | |
if number < 6: |
" 80-character limit highlighting for vim <7.3 Replace colorcolumn commands with | |
" the following commands | |
" Highlight 78-80 in 'Search' color | |
au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1) | |
" Highlight past column 80 in 'ErrorMsg' color | |
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) | |
" Highlight only column 81 (when it has characters in it) | |
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%81v.\+', -1) |
def eratosthenes_sieve(n): | |
# Create a candidate list within which non-primes will be | |
# marked as None; only candidates below sqrt(n) need be checked. | |
candidates = list(range(n+1)) | |
fin = int(n**0.5) | |
# Loop over the candidates, marking out each multiple. | |
for i in xrange(2, fin+1): | |
if candidates[i]: | |
candidates[2*i::i] = [None] * (n//i - 1) |
Traceback (most recent call last): | |
File "/usr/local/bin/../Cellar/python3/3.2.2/lib/python3.2/functools.py", line 176, in wrapper | |
result = cache[key] | |
KeyError: (<class 'str'>, '(^.*def\\W*)(\\w+)\\W*\\((.*)?\\):', 0) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "./pickout_fn_defs.py", line 25, in <module> | |
FnDefRe = re.compile(r'(^.*def\W*)(\w+)\W*\((.*)?\):') |
Last login: Sat Nov 19 13:25:30 on ttys002 | |
Apple_PubSub_Socket_Render=/tmp/launch-gpsYzj/Render | |
CLICOLOR=Yes | |
COLORFGBG='12;8' | |
COMMAND_MODE=unix2003 | |
DISPLAY=:0.0 | |
DOT_PATH=/Applications/Graphviz.app/Contents/MacOS | |
EDITOR=vim | |
HAVE_DOT=YES | |
HOME=/Users/crakdmirror |
brew install --use-gcc visualboyadvance [18:30:27] | |
==> Downloading http://downloads.sourceforge.net/project/vba/VisualBoyAdvance/1.7.2/VisualBoyAdvance-src-1.7.2.tar.gz | |
File already downloaded in /Users/crakdmirror/Library/Caches/Homebrew | |
==> Patching | |
patching file src/System.h | |
patching file src/prof/prof.cpp | |
patching file src/sdl/debugger.cpp | |
==> ./configure --disable-debug --prefix=/usr/local/Cellar/visualboyadvance/1.7.2 --enable-c-core --without-mmx --enable-sdl --disable-sdltest | |
==> make | |
Making all in m4 |
def list_benefits(): | |
benefit = ["More organized code","More readable code","Easier code reuse","Allowing programmers to share and connect code together"] | |
return benefit | |
#def build_sentence(benefit): | |
# for list in benefit: | |
# print "%s is a benefit of functions!" % benefit | |
def name_the_benefits_of_functions(): | |
list_of_benefits = list_benefits() |
/usr/bin/ranlib: file: libpython3.3dm.a(dynamic_annotations.o) has no symbols | |
/usr/bin/ranlib: file: libpython3.3dm.a(pymath.o) has no symbols | |
/usr/bin/ranlib: file: libpython3.3dm.a(dynamic_annotations.o) has no symbols | |
/usr/bin/ranlib: file: libpython3.3dm.a(pymath.o) has no symbols | |
/usr/bin/ranlib: file: libpython3.3dm.a(dynamic_annotations.o) has no symbols | |
/usr/bin/ranlib: file: libpython3.3dm.a(pymath.o) has no symbols | |
ranlib: file: libpython3.3dm.a(dynamic_annotations.o) has no symbols | |
ranlib: file: libpython3.3dm.a(pymath.o) has no symbols | |
Could not find platform dependent libraries <exec_prefix> | |
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] |