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
from bs4 import BeautifulSoup | |
import requests | |
from time import sleep | |
import pandas as pd | |
from datetime import date | |
from datetime import timedelta | |
import pickle | |
from google.cloud import storage | |
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
from time import time, sleep, ctime | |
from os import system | |
import sys | |
total = 0.0 | |
working = True | |
def t(): |
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
sudo jt -t onedork -cellw 90% -NT -ofs 12 -fs 13 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Iterate through the pairs of a list | |
def pair_generator(iterable): | |
for i in xrange(0,len(iterable)-1,1): | |
yield iterable[i],iterable[i+1] | |
# print the structure of a dictionary | |
def dstruct(d,n=''): | |
if type(d) == dict: | |
for k in d: | |
print n + str(k) |
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
<div class="container"> | |
<div class="row"> | |
<div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'> | |
<div class='panel panel-category panel2' style='border-top-color: #03a6e9'> | |
<div class='panel-heading' style='height:75px; color:#03a6e9'> | |
TITLE | |
</div> | |
<div class='panel-body' style='height:200px'> |
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
from copy import copy | |
def collapse_links(links): | |
""" | |
Example: | |
>>> collapse_links([[0],[1,2],[2,3],[3,4],[4,5],[5]]) | |
[[0], [1, 2, 3, 4, 5]] | |
""" | |
# Pointers |
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
from copy import copy | |
def collapse_links(links): | |
""" | |
Example: | |
>>> collapse_links([[0],[1,2],[2,3],[3,4],[4,5],[5]]) | |
[[0], [1, 2, 3, 4, 5]] | |
""" | |
# Pointers |
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
#!/bin/bash | |
while python sleeptill.py *.tex; do ./tex.sh; done |
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
from itertools import bounds | |
def getExperiments(bounds): | |
ranges=[] | |
for key,val in bounds.items(): | |
min,max,n = val | |
values = np.linspace(min,max,n) | |
ranges.append(values) | |
# List of store all the combinations |
NewerOlder