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
id | data | data_sha256 | type | created | |
-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------+----------+------------------------------- | |
12 | {"essentia": "2.1-beta1", "extractor": "music 1.0", "essentia_git_sha": "v2.1_beta1-6-g5578087", "essentia_build_sha": "dbf9221a02c8614ba002a04270c5f9c8cf066e4e"} | 4607cdda98993f9ed7551cba9a6ce8d762a734db8b802255c94d7112a4e71f00 | lowlevel | 2016-02-26 09:53:38.454643+01 | |
43 | {"essentia": "2.1-beta1", "extractor": "music 1.0", "essentia_git_sha": "v2.1_beta1-28-g21ef5f4", "essentia_build_sha": "0882f0c47889178efc2918136b3499b3d29bcd56"} | e7569e1 |
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
(rhythm) param@sol:~/code/rhythm$ python verses.py | |
Let us play with poetry and binary: Rhythm | |
Rhythm >> hello, | |
my name is param. | |
Traceback (most recent call last): | |
File "verses.py", line 112, in <module> | |
main() | |
File "verses.py", line 108, in main | |
check_input() | |
File "verses.py", line 93, in check_input |
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
param@sol:~$ python vansika.py | |
None | |
7 | |
<__main__.Node instance at 0x7f111ea59290> | |
<__main__.Node instance at 0x7f111ea59320> | |
None | |
3 | |
<__main__.Node instance at 0x7f111ea593b0> | |
<__main__.Node instance at 0x7f111ea59440> | |
None |
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
import time | |
array = [] | |
for x in range(10**9): | |
array.append(x) | |
t = time.time() | |
i = 0 | |
while i < len(array): | |
if array[i] == x: | |
print 'Found' |
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
import random | |
import time | |
array = [] | |
for x in range(1000000): | |
array.append(random.randint(1,100)) | |
t = time.time() | |
for i in range(len(array)): |
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
number = raw_input() | |
num1, num2 = number.split(" ") | |
num1 = int(num1) | |
num2 = int (num2) | |
ans = [] | |
def number_list(n): | |
if n == 1: | |
# add length 1 numbers to ans also |
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
import db | |
from brainzutils import musicbrainz_db | |
from sqlalchemy import text | |
import time | |
import logging | |
from flask import current_app | |
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.INFO) | |
<<<<<<< HEAD |
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 convert(filename): | |
with open(filename) as f: | |
with open('converted-%s' % filename, 'w') as w: | |
count = 0 | |
for line in f: | |
if line == '\n': | |
count += 1 | |
else: | |
if count > 0: | |
w.write('\n') |
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
>>> with open('test') as f: | |
... for line in f: | |
... line | |
... | |
'hello\n' | |
'\n' | |
'\n' | |
'\n' | |
'\n' | |
'\n' |
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
>>> with open('test') as f: | |
... for line in f: | |
... print line | |
... | |
hello | |