Skip to content

Instantly share code, notes, and snippets.

View sbeleidy's full-sized avatar

Saad Elbeleidy sbeleidy

View GitHub Profile
@sbeleidy
sbeleidy / README.md
Last active January 28, 2025 18:20
Misty Camera Stream Python

This gist is used for the Pigeon embodiment project to get a video stream from a Misty robot and present it to pigeons.

Tasks:

  • Get Misty camera feed
  • Post Misty camera feed in tkinter button
  • Pass tkinter button click X Y coords to Misty motion
@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
Loading
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
Loading
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
Loading
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