Skip to content

Instantly share code, notes, and snippets.

@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active March 12, 2024 22:46
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@ryansimms
ryansimms / circleci-2.0-eb-deployment.md
Last active February 22, 2024 04:55
Deploying to Elastic Beanstalk via CircleCi 2.0

Deploying to Elastic Beanstalk via CircleCi 2.0

I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's steps for getting it to work with CircleCi 1.0 were my starting point.

For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.

Setup a user on AWS IAM to use for deployments

@mbostock
mbostock / .block
Last active April 23, 2023 20:06
Voronoi Tessellation
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/hover-voronoi
@Jauny
Jauny / gist:3869758
Created October 11, 2012 02:13
Hash#sort

#Sorting a Hash I wanted to understand what happened under the hood when something like

hash.sort { |a, b| b[1] <=> a[1] }

is called. If you can't answer, you might want to read.
I'll be as basic as possible (I don't know much anyway...) so it should be understandable.


First let's begin by saying that we will be working on this hash

@Jauny
Jauny / README.txt
Created June 1, 2012 23:34
Multiple SimpleModal
This is a modified version of Eric Martin's Simplemodal jQuery popup to allow you to easily add multiple links/popups on the same page.
http://www.ericmmartin.com/projects/simplemodal/
I am a noob and had trouble finding material on how to do that... so here is my version :)
Thanks to Eric Martin for making that amazing jQuery function,
Thanks to Alex, a friend, to help me with his magic to make everything work!
Cheers!