Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
LGTM

ryan jarvinen ryanj

💭
LGTM
View GitHub Profile
@ryanj
ryanj / eventbrite-multi-discount.rb
Created May 24, 2011
a script to help automate adding or updating discount codes for multiple events
View eventbrite-multi-discount.rb
#!/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 Jul 25, 2011
Create N unique Eventbrite discount codes for an event
View discount_upload.php
<?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 Aug 2, 2011
Scan public events from the Eventbrite API, copy them into a couchbase instance
View event_scanner.js
// 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');
View EventBrite Selective Sync
// 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 Sep 12, 2011
HTML5 DevConf Event Customizations
View custom_event_notes.md

#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 Oct 4, 2011 — 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.
View EventbriteSelectiveSync.js
// 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 Nov 9, 2011
mezzanine - example event list rendering function
View render_event_list.php
$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 Dec 16, 2011
A Sample CSS upgrade for Eventbrite's default event pages
View dabblet.css
/**
* 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 Jul 17, 2012
Eventbrite - convert a repeating event to an Organizer Schedule
View org_schedule.py
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'})
View gist_io_test.md

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: