Skip to content

Instantly share code, notes, and snippets.

View act65's full-sized avatar

Alex act65

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@act65
act65 / notebook.ipynb
Created March 11, 2019 00:41
temporal difference value estimates
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@act65
act65 / word_cloud_from_bib.py
Last active August 31, 2018 21:17
make a word cloud from a bib file
import os
from PIL import Image, ImageColor
import numpy as np
from wordcloud import WordCloud, STOPWORDS
import argparse
def argumentparser():
parser = argparse.ArgumentParser(description='Make a word cloud of a bib file')
parser.add_argument('--bib_dir', type=str,
help='location of the bib file')
@act65
act65 / style.css
Last active March 18, 2019 13:06
css script for stylish (userstyles.org) to block youtube recommendations
/* Watch next sidebar */
#related.ytd-watch { display: none; }
/* Comments */
/* ytd-comments { display: none; } */
/* Watch next panel over the that has just finished */
.ytp-endscreen-content { display: none; }
/* Suggesting videos whilst the current one is starting */
@act65
act65 / saddle-split.ipynb
Last active May 15, 2018 01:07
Saddle splitter exploration
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@act65
act65 / kaggle-dataset-scraper.py
Last active March 7, 2018 21:14
get datasets from kaggle using their api
import os
import csv
import time
import argparse
import subprocess
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--search_terms", type=str)
return parser.parse_args()
@act65
act65 / scraper.py
Last active March 7, 2019 21:06
scrape papers from semantic scholar
import os
import json
import requests
import argparse
from bs4 import BeautifulSoup as bs
def fetch(url):
page = requests.get(url)
return bs(page.content, "html.parser")
@act65
act65 / capture.sh
Last active March 26, 2018 23:37
automated screen capture
#!/bin/bash
DATE=$(date +"%Y%m%d%H%M")
gnome-screenshot -f "/home/act65/repos/capture/images/$DATE.jpg"
# then add */2 * * * * /{path_to_this_file} to crontab using crontab -e
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@act65
act65 / filter.ipynb
Last active October 18, 2017 19:00
low pass and high pass op for nns
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.