Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import sys
CASE1 = 1
CASE2 = 5
CASE3 = 7
WORD1 = 'Fizz'
WORD2 = 'Buzz'
WORD3 = 'Whizz'
def filter(num):
if str(CASE1) in str(num):
@jProvim
jProvim / youku.py
Last active December 27, 2015 05:49 — forked from scturtle/youku.py
Updated automatically close the previous MPlayerX when next clip plays.
#!/usr/bin/env python
import re
import os
import sys
import urllib
import time
if len(sys.argv) <= 1:
print 'Usage: {} [video | videourl]'.format(sys.argv[0])
sys.exit()
@jProvim
jProvim / pysonar2 mac installation error
Created November 1, 2013 04:04
pysonar2 mac installation error
~ [ cd pysonar2 ] 8:59 PM
~/pysonar2 [ ls ] 8:59 PM
AstCache.java Def.java Progress.java Util.java types
AstConverter.java Diagnostic.java README.md ast
Binding.java Indexer.java Ref.java build.sh
Builtins.java IndexerException.java Scope.java demos
CallStack.java Outliner.java TypeStack.java tests
~/pysonar2 [ ./build.sh ] 8:59 PM
Downloading Jython...
destination directory: jython
Process: Python [18759]
Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.5 (2.7.5)
Code Type: X86-64 (Native)
Parent Process: Vim [18685]
Responsible: iTerm [56579]
User ID: 501
PlugIn Path: /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python