Skip to content

Instantly share code, notes, and snippets.

Chris Le chrisle

Block or report user

Report or block chrisle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chrisle / gist:9478860
Last active Aug 29, 2015
Is this what you mean?
View gist:9478860
You have ...
You want in chunks of N (say 3)
chrisle / scrollwaypoints.html
Last active Aug 29, 2015
Scrolling + jQuery Waypoints
View scrollwaypoints.html
<script src=""></script>
<!-- Download from here: -->
<script src=""></script>
<style type="text/css">
/* A box that is 500px tall */
.content {
height: 500px;
View designer.html
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
:host {
position: absolute;
width: 100%;
height: 100%;
chrisle / gist:1885478
Created Feb 22, 2012
ImportXML for Google Search
View gist:1885478
=ArrayFormula(RegexReplace(RegexExtract(ImportXML("", "//h3/a/@href"), "http.*"), "\&sa.*", ""))
View gist:2319642
curl --user-agent "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120403211507 Firefox/12.0"\?q\=law%20firm%20boston,%20ma
View gist:2319730
function myFunction() {
var response = UrlFetchApp.fetch(",%20ma&num=10").getContentText();
chrisle / gist:2785524
Created May 25, 2012
Curl as ImportXML
View gist:2785524
curl --user-agent "-" $@
chrisle /
Created Aug 14, 2012
Facebook Likes for Excel using DataNitro
""" Facebook likes for Excel using DataNitro
import urllib2
import json
def facebook_likes(url):
facebook_url = "" + url
raw_data = urllib2.urlopen(facebook_url).read()
chrisle / csv_writer.rb
Created Nov 2, 2012
JSON > CSV > data_miner > database
View csv_writer.rb
# Converts JSON data into CSV and writes to a temporary CSV file
require 'ruport'
# see ruport_19.rb
require 'monkey_patches/ruport_19'
class CsvWriter
# Initialize an instance of CsvWriter
def initialize
View capybara_with_phantom_js.rb
module CapybaraWithPhantomJs
include Capybara
# Create a new PhantomJS session in Capybara
def new_session
# Register PhantomJS (aka poltergeist) as the driver to use
Capybara.register_driver :poltergeist do |app|
You can’t perform that action at this time.