Skip to content

Instantly share code, notes, and snippets.

jronallo /
Created Feb 16, 2017 — forked from cazzerson/
Extracting HB2 Tweet IDs from multiple twarc datasets
# This script requires the jq utility
# Datasets created with twarc
mkdir -p NCHB2-ids
rm NCHB2-ids/NCHB2*
touch NCHB2-ids/NCHB2-ids-with-dupes.txt
# Create more relevant subset of "North Carlina" search
View net_ldap_overrides.rb
class Net::LDAP
def initialize(args = {})
@host = args[:host] || DefaultHost
@port = args[:port] || DefaultPort
@verbose = false # Make this configurable with a switch on the class.
@auth = args[:auth] || DefaultAuth
@base = args[:base] || DefaultTreebase
encryption args[:encryption] # may be nil
View dabblet.css
* "Google Now" Card
body {
background: #e1e1e1;
min-height: 100%;
margin: auto;
ul.gNow {
width: 450px;
View rdfa_prototypes.html
<!DOCTYPE html>
<base href="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
jronallo / markdown.xml
Created Dec 2, 2012 — forked from lg0/markdown.xml
Markdown Syntax Highlighting for Sublime text 2
View markdown.xml
<!-- copy this to YOUR_THEME.tmTheme-->
<string>diff: deleted</string>
jronallo / Gemfile
Created Feb 11, 2012 — forked from simi/Gemfile
Refinery + Twitter Bootstrap WIP
View Gemfile
source ''
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://'
gem 'sqlite3'
View students-jumping-in-front-of-memorial-bell-tower.html
<!-- An RDFa 1.1 version of the data presented in the article
"HTML5 Microdata and" at
The article is licensed under a Creative Commons Attribution 3.0 United
States License. This example code should be consired a remix thereof. -->
<div id="main" role="main" class="container_12" vocab="" resource="" typeof="ItemPage">
<h2 id="page_name" property="name">
Students jumping in front of Memorial Bell Tower
<div class="grid_5" resource="">
View compare_raw_enhanced.rb
#!/usr/bin/env ruby
if !ARGV[0] or !ARGV[1]
puts "You must specify the raw and enhanced directories. Try again!"
# first we find the full path of the arguments in case we're only given
# partial paths.
raw_input_file_path = File.expand_path(ARGV[0])