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
@davetannenbaum
davetannenbaum / Qualtrics JS.js
Last active December 12, 2017 05:36
Javascript Qualtrics code to pass previous response to a textbox
Qualtrics.SurveyEngine.addOnload(function()
{
/* Removes 0s from Text Boxes */
var inputs = $(this.questionContainer).select('input');
inputs.each(function(el) {if (el.value == 0) el.value='';});
/* Creating variable to pass previous response to text fields */
var selectedChoice = "${q://QID5/ChoiceNumericEntryValue/1}";
var selectedChoice = parseInt(selectedChoice);
@wildekek
wildekek / README.md
Last active December 8, 2017 15:55
Memegenerator dashing job
@A
A / byobu-cheatsheet.md
Last active August 29, 2015 14:09
byobu window manager cheatsheet http://byobu.co/
  • F2 Create a new window
  • F3 Move to the previous window
  • F4 Move to the next window
  • F5 Refresh all status notifications
  • F6 Detach from the session and logout
  • Shift-F6 Detach from the session, but do not logout
  • F7 Enter scrollback/search mode
  • F8 Rename the current window
  • F9 Launch the Byobu Configuration Menu
  • F12 GNU Screen's Escape Key
@rnagle
rnagle / ipinfo
Created August 29, 2014 16:47
A command line interface for the services provided by http://ipinfo.io
#!/bin/bash
function print_help() {
echo "A command line interface for the services provided by http://ipinfo.io
Example usage:
ipinfo [ADDRESS] [ip | hostname | loc | org | city | region | country | phone | geo]
ipinfo 8.8.8.8 geo
{ "ip": "8.8.8.8", "city": null, "region": null, "country": "US", "loc": "38.0000,-97.0000" }
@nrrb
nrrb / README.md
Last active December 23, 2015 00:09 — forked from mbostock/.block
@securitytube
securitytube / ssid-sniffer-scapy-python.py
Created April 2, 2013 12:49
WLAN SSID Sniffer in Python using Scapy
#!/usr/bin/env python
from scapy.all import *
ap_list = []
def PacketHandler(pkt) :
if pkt.haslayer(Dot11) :
if pkt.type == 0 and pkt.subtype == 8 :
@paulgb
paulgb / convert.py
Last active January 31, 2020 22:40
Convert the Yelp Academic dataset from JSON to CSV files with Pandas.
'''
Convert Yelp Academic Dataset from JSON to CSV
Requires Pandas (https://pypi.python.org/pypi/pandas)
By Paul Butler, No Rights Reserved
'''
import json
import pandas as pd
@henrahmagix
henrahmagix / slides.md
Last active December 15, 2015 08:49
Quick and easy way to write a slides presentation

Building Slides In Markdown

By Henry Blyth

Uses Markdown Preview by [@revolunet][], and the fantastic [Gistdeck][] by [@nzoschke][] and [@seaofclouds][].

Things you need

  • [Sublime Text 2][sublime] (ST2)
  • [Markdown Preview ST2 package, my custom fork][md preview]
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@mt3
mt3 / pandas-heroku.md
Created September 8, 2012 23:10 — forked from nicolashery/pandas-heroku.md
Deploy Python app using Pandas on Heroku

Deploy Python app using Pandas on Heroku

2012-09-08

This document explains how to deploy a Python app that uses the Pandas library on Heroku.

Heroku builds Numpy (one of Pandas' requirements) fine. However, when trying to deploy an app with both numpy and pandas in its requirements.txt file (or even just pandas), for some reason it fails