Skip to content

Instantly share code, notes, and snippets.

View afeld's full-sized avatar

Aidan Feldman afeld

View GitHub Profile
@afeld
afeld / gist:8978779
Last active August 29, 2015 13:56
create a shared calendar for rehearsals

Using a shared electronic calendar helps ensure your group members always have the most up-to-date information, and removes the hassle of having to shoot emails back-and-forth making sure everyone's on the same page. Google Calendar is a relatively easy, free option to do this, and is convenient because so many people have GMail accounts. Doodle and ScheduleOnce are also helpful tools for finding people's availability.

Create a shared calendar

  1. let the other members of your group know something like the following:

    You will be getting a lot of email notifications – just RSVP Yes/No/Maybe from the email notification, or from within the Google calendar. If you use iCal, follow these instructions to have the shared Google calendar appear there.

  2. create a Google Calendar account, if you don't have one

  3. create a new calendar with

@afeld
afeld / map.geojson
Created March 3, 2014 04:05
SIGCSE 2014 Git & GitHub Foundations for Educators map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afeld
afeld / gist:9558849
Last active August 29, 2015 13:57
"What if everything were open" talk abstract

In a world full of systems generating endless amounts of data, only a small fraction of this information is available to consumers in a format that's easily reusable. This talk is a thought experiment: what would be possible if all data were public, period? What would governments and businesses look like? What would it mean for privacy?

What types of information do we just take for granted as inaccessible, and what are the possibilities if it were open? We'll walk through a couple major news stories and examine how they could have been solved (if not avoided entirely) by full freedom of information. We'll also look at a few hypothetical situations, where entirely open data could make way for new possibilities in productivity, healthcare, transportation, and more.

@afeld
afeld / create1.rb
Created April 13, 2014 18:35
Shopify note_attributes not saving
order = ShopifyAPI::Order.new
order.line_items = [{
:quantity => 1,
:product_id => 222,
:variant_id => 333
}]
# as a JSON object
order.note_attributes = [{:foo => 'bar'}]
require 'date'
require 'rubygems'
require 'shopify_api'
ShopifyAPI::Base.site = '...'
@order = ShopifyAPI::Order.new
@order.line_items = [{
:quantity => 1,
:product_id => 222,
:variant_id => 333
@afeld
afeld / gh_unsub.rb
Last active August 29, 2015 14:00 — forked from anaisbetts/gh_unsub.rb
#!/usr/bin/env ruby
require 'octokit'
token = '***** GET A TOKEN *****'
c = Octokit::Client.new(:access_token => token)
user_login = c.user.login
puts "Finding your mentions...\n"
@afeld
afeld / map.geojson
Last active August 29, 2015 14:01
Portland Meetup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@afeld
afeld / gist:906a5a382e90f10435fe
Created August 14, 2014 17:36
Please Stop +1-ing (PSP1)

Dear reader-

You are most likely reading this message becase you clicked through on a discussion thread where everything that needs to be said has been said, support for the proposal has clearly been established, and the conversation has devolved into people simply commenting with variations of "+1". Please recognize that this isn't moving the proposal forward, and is probably just frustrating whomever would actually be in a position of actually making it happen.

Thank you for your understanding.

-Aidan Feldman

@afeld
afeld / gist:f81a90fbba3970dc2bf1
Last active August 29, 2015 14:06
test for ITP
function foo(){
console.log('bar');
}
@afeld
afeld / gist:70a6e16d8a2d85887dfa
Created October 20, 2014 05:44
find duplicate Eventbrite orders
require 'csv'
require 'pp'
csv = CSV.read('/Users/aidan/Downloads/Orders-13196243319.csv')
emails = csv.map{|c| c.last.downcase }
dupes = emails.select{ |e| emails.count(e) > 1 }.uniq
dupes.each do |dupe|
puts dupe
end