Skip to content

Instantly share code, notes, and snippets.

View ryanj's full-sized avatar
💭
LGTM

ryan jarvinen ryanj

💭
LGTM
View GitHub Profile
@ryanj
ryanj / eventbrite-multi-discount.rb
Created May 24, 2011 22:27
a script to help automate adding or updating discount codes for multiple events
#!/usr/bin/ruby
#
# This work is licensed under a Creative Commons Attribution 3.0 Unported License.
# http://creativecommons.org/licenses/by/3.0/
#
# With some slight modifications, this script should create
# a new discount code for each of the 'live' events which are
# owned by the user (who is identified by the user_key value).
#
# See the above license info and Eventbrite API terms for usage limitations.
@ryanj
ryanj / discount_upload.php
Created July 25, 2011 22:49
Create N unique Eventbrite discount codes for an event
<?php
// load the API Client library
// https://github.com/ryanjarvinen/eventbrite.php
include "Eventbrite.php";
// -------------- APPLICATION CONFIG ----------------- //
// Eventbrite API key (REQUIRED)
// http://www.eventbrite.com/api/key/
$app_key = 'YOUR_APP_KEY_HERE';
// Eventbrite user_key, required for reading/writing data
@ryanj
ryanj / event_scanner.js
Created August 2, 2011 18:21
Scan public events from the Eventbrite API, copy them into a couchbase instance
// This script should allow you to
// load Eventbrite's public event data
// into a couchbase data store.
// First, install the Eventbrite client library:
// npm install eventbrite
// Load the library - https://github.com/ryanjarvinen/eventbrite.npm
var Eventbrite = require('eventbrite');
// Load the library - https://github.com/ryanjarvinen/eventbrite.npm
var Eventbrite = require('eventbrite');
// Load creationix's couch-client
var CouchClient = require('couch-client');
// Initialize the Eventbrite API client - http://www.eventbrite.com/api/key/
var eb_client = Eventbrite('RWJPIH4B6FVFAIAK6Y');
// Initialize your couchbase client:
@ryanj
ryanj / custom_event_notes.md
Created September 12, 2011 23:31
HTML5 DevConf Event Customizations

#HTML5 DevConf Event page customization#

##Potential customization for the main event page:## ###custom_header###

<style type='text/css'>
html, body {
	height: 100%;
	font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
}
@ryanj
ryanj / EventbriteSelectiveSync.js
Created October 4, 2011 20:02 — forked from stickbyatlas/EventbriteSelectiveSync.js
Scans Eventbrite for events created by a specific group of users, mirrors these events on a CouchDB instance and notifies an administrator by email of any updates or additions.
// Load the library - https://github.com/ryanjarvinen/eventbrite.npm
var Eventbrite = require('eventbrite');
// Load creationix's couch-client
var CouchClient = require('couch-client');
// Initialize the Eventbrite API client - http://www.eventbrite.com/api/key/
var eb_client = Eventbrite('YOUR API KEY');
// Initialize your couchbase client:
@ryanj
ryanj / render_event_list.php
Created November 9, 2011 02:35
mezzanine - example event list rendering function
$custom_render_function = function($evnt){
$time = strtotime($evnt->start_date);
if( isset($evnt->venue) && isset( $evnt->venue->name )){
$venue_name = $evnt->venue->name;
}else{
$venue_name = 'online';
}
if( isset($evnt->organizer) && isset( $evnt->organizer->name )){
$organizer_name = $evnt->organizer->name;
$orgznizer_url = $evnt->organizer->url;
@ryanj
ryanj / dabblet.css
Created December 16, 2011 19:29
A Sample CSS upgrade for Eventbrite's default event pages
/**
* A Sample CSS upgrade for Eventbrite's default event pages
*/
/*-----------------------------------------------------------------
Theme: No Compromises
By: The Eventbrite Design Team
To use this theme follow these five easy steps.
1) Login to your Eventbrite account. If you don't have one visit
@ryanj
ryanj / org_schedule.py
Created July 17, 2012 23:53
Eventbrite - convert a repeating event to an Organizer Schedule
import eventbrite
your_app_key = 'YOUR_APP_KEY_HERE'
your_user_key = 'YOUR_USER_KEY_HERE'
repeating_event_eid = 3919635736
eb_client = eventbrite.EventbriteClient({'app_key': your_app_key, 'user_key': your_user_key})
def convert_repeat_to_organizer_schedule(evnt):
#clear existing repeat_schedule
eb_client.event_update({'id': evnt['id'], 'repeat_schedule': 'clear'})
@ryanj
ryanj / gist_io_test.md
Created July 25, 2012 23:21
Testing Gist.io

A simple post powered by GitHub Gists and Gist.io

This is a paragraph that includes links to Gist.io, and gist.github.com. I wonder if there is a javascript lib that would allow me to host my posts via github pages?

Maybe I should build one using this or this?

Here are some additional docs for fitzgen's lib. Looks like it might be the best option...

Examples: