Skip to content

Instantly share code, notes, and snippets.

View sbeleidy's full-sized avatar

Saad Elbeleidy sbeleidy

View GitHub Profile
@sbeleidy
sbeleidy / getNIPSPapers.js
Created July 8, 2018 16:03
Get all papers info from NIPS listing
// Go to NIPS page ex: https://papers.nips.cc/book/advances-in-neural-information-processing-systems-30-2017
// Open JS console
// Copy and paste the below
// In Chrome, click on "Copy" that shows up after the csv variable
// Paste in Google Sheets and add any columns you'd like
paperList = Array.from(document.getElementsByClassName("main wrapper")[0].getElementsByTagName("li")) // Change "main wrapper" if list wrapper class changes
papers = []
paperList.forEach((paper) => {
children = Array.from(paper.children)
paperName = children[0].text
@sbeleidy
sbeleidy / Machine Learning Intro.ipynb
Last active January 25, 2017 21:32
Machine Learning & sklearn intro
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbeleidy
sbeleidy / .gitignore
Last active January 20, 2017 13:38
Rich Analysis
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@sbeleidy
sbeleidy / Medium.ipynb
Created January 19, 2017 04:48
Jupyter Notebook Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbeleidy
sbeleidy / Notes.ipynb
Last active January 22, 2017 07:40
Machine Learning Nano degree Notes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbeleidy
sbeleidy / FKScore.html
Created July 5, 2016 20:07
Calculate and display Flesch–Kincaid readability scores as a user types
<!DOCTYPE html>
<html lang="en">
<head>
<title>FK Readability Score</title>
<meta charset="UTF-8">
</head>
<body>
<textarea id="theText" rows="5" cols="100"></textarea>
</body>
<script>
@sbeleidy
sbeleidy / index.html
Last active March 20, 2017 19:14
Foundation project package.json - inspired by https://css-tricks.com/why-npm-scripts/
<!DOCTYPE html>
<html lang="en">
<head>
<title>Foundation Project</title>
<meta charset="UTF-8">
<link href="dist/css/style.css" rel="stylesheet">
</head>
<body>
@sbeleidy
sbeleidy / easyRTC.sh
Created May 8, 2016 07:49
Easy RTC setup with reTURN
#####
# Signalling Server Setup ex: EasyRTC
# See https://easyrtc.com/docs/guides/easyrtc_server_install.php
# This assumes you followed https://gist.github.com/sbeleidy/f4cd7e96dc0910dbc27cc6845d8b4d22 and
# https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b for SSL and reTURN setup
#####
# Install node
sudo apt-get install nodejs
sudo apt-get install npm
@sbeleidy
sbeleidy / reTURN.sh
Created May 8, 2016 07:46
reTURN setup
#####
# TURN Server Setup
# Requires SSL setup - see https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b
#####
sudo apt-get update
sudo apt-get install resiprocate-turn-server
nano /etc/reTurn/reTurnServer.config
# Change TurnAddress to your public IP address
@sbeleidy
sbeleidy / lets-encrypt.sh
Created May 8, 2016 07:42
SSL all the things
# Let's Encrypt SSL Setup
# Following the awesome tutorial from digitalocean's community:
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04
#####
sudo apt-get -y install git bc
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
sudo apt-get install nginx
sudo nano /etc/nginx/sites-available/default
# Add to server block:
# location ~ /.well-known {