This file contains 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
height: 1000 | |
border: yes |
This file contains 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
var request = new XMLHttpRequest(); | |
function get_time(duration){ | |
console.log(duration); | |
let total = 0; | |
if (duration.includes(" min per ep") ){ | |
total = parseInt(duration.replace(" min. per ep.",""), 10); | |
console.log("yes"); | |
} | |
return total; |
This file contains 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
#!/usr/bin/env python | |
import subprocess | |
import os | |
def update_bookmark(dir,number): | |
with open(dir+"/.bookmark",'w') as f: | |
f.write(number) | |
def read_bookmark(dir): | |
if not os.path.isfile(dir+"/.bookmark"): |
This file contains 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
height: 1000 | |
border: yes |
This file contains 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
#!/usr/bin/env python3 | |
from collections import Counter | |
import json | |
import pickle | |
import sys | |
import argparse | |
class Tree(object): | |
def __init__(self,left,right,data): | |
self.left = left |
This file contains 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 | |
mkdir $1 | |
cd ./$1 | |
touch "$1.cpp" | |
echo "$1: $1.cpp" > makefile | |
echo " g++ $1.cpp -o $1" >> makefile | |
echo '#include <iostream>' >> $1.cpp | |
echo '' >> $1.cpp | |
echo 'using namespace std;' >> $1.cpp | |
echo '' >> $1.cpp |