Skip to content

Instantly share code, notes, and snippets.

View nrrb's full-sized avatar
:shipit:
Learning

Nicholas Bennett nrrb

:shipit:
Learning
View GitHub Profile
@nrrb
nrrb / ChiPy Mentoring Roll Call.ipynb
Last active August 29, 2015 14:09
ChiPy Mentoring Roll Call
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nrrb
nrrb / gist:5b61332f8b477a4dcc2d
Created October 23, 2014 19:07
Inject jQuery and animate.css, then animate img elements
/*
Inject jQuery and animate.css into the current page and make the images bounce.
jQuery: http://jquery.com/
animate.css: https://daneden.github.io/animate.css/
Using https://cdnjs.com/ to source scripts.
*/
@nrrb
nrrb / Intro to Scraping - Centro Careers.ipynb
Created October 16, 2014 16:41
Intro to Scraping - Centro Careers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
@nrrb
nrrb / index.html
Last active August 29, 2015 14:06
Laundry Cam Setup Notes with Logitech C210 on Ubuntu 14.04 x64
<html>
<head>
<title>LaundryCam</title>
<link rel="apple-touch-icon-precomposed" href="./apple-touch-icon.png" />
<meta http-equiv="refresh" content="5">
</head>
<body>
<img src="./snap.jpg">
</body>
</html>
@nrrb
nrrb / notes.md
Last active October 22, 2015 15:37
Setting Up Anonymous Rotating Proxies With Tor

Running Your Own Anonymous Rotating Proxies

  • Install Ubuntu 14.04 x64

  • Install Tor: https://www.torproject.org/docs/debian.html.en

  • Install packages: sudo apt-get install build-essential

  • Change to superuser shell sudo su -

  • Create folder mkdir -p /opt/delegate && cd /opt/delegate

  • Download Delegate source wget http://www.delegate.org/anonftp/DeleGate/delegate9.9.11.tar.gz && tar xfz delegate9.9.11.tar.gz

  • Change directory to delegate source cd delegate9.9.11

@nrrb
nrrb / lxml_utils.py
Created September 19, 2014 19:53
Some utility functions for working with the Python module lxml when parsing HTML
from urlparse import urljoin
import lxml.html
def clean_xpath(path):
"""
When copying XPath from the developer console of Firefox or Chrome,
the browser inserts 'tbody' tags in table declarations which are
generally not there in the original source. These need to be removed
in order for lxml to work with said XPath expression.
@nrrb
nrrb / Preferences.sublime-settings
Last active August 29, 2015 14:06
Sublime Text Setup Notes
{
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.light.tmTheme",
"font_size": 11,
"ignored_packages":
[
],
"shift_tab_unindent": true,
"spacegray_sidebar_font_large": true,
"spacegray_sidebar_tree_large": true,
"spacegray_tabs_auto_width": true,
@nrrb
nrrb / notes.md
Last active August 29, 2015 14:06
Python Development Environment in Windows 8