Skip to content

Instantly share code, notes, and snippets.

View camdez's full-sized avatar

Cameron Desautels camdez

View GitHub Profile
@camdez
camdez / whiteout.sh
Created February 13, 2012 18:15
whiteout.sh - Clean up the whitespace in a file
#!/bin/bash
# whiteout.sh - Clean up the whitespace in a file
#
# Author: Cameron Desautels <[email protected]>
# Date: 2012-02-12 20:25:08
if [ -z "$1" ]
then
echo "Usage: `basename $0` file [...]" 1>&2
exit 1
@camdez
camdez / gist:2844754
Last active October 5, 2015 17:28
OrgSync API: Accounts: Show Single Account
{
"about_me": "I love politics, art museums, and soccer.",
"address": "3308 Red River Apt 106",
"city": "Austin",
"first_name": "Amy",
"last_login": "2011-08-05T18:53:07Z",
"id": 1918,
"state": "TX",
"country": "US",
"last_name": "Tallon",
@camdez
camdez / gist:2846393
Last active October 5, 2015 17:47
OrgSync API: Accounts: List All Accounts
[
{
"about_me": "I love gardening, but I especially enjoy taking care of flowers such as tulips, my favorite!",
"address": "3308 Red River Apt 106",
"city": "Austin",
"last_login": "2011-05-13T15:38:11Z",
"username": "demo",
"id": 1834,
"phone_number": "214-682-0000",
"last_name": "Williams",
@camdez
camdez / gist:2846639
Last active October 5, 2015 17:47
OrgSync API: Accounts: Update Account
{
"org_ids": [19, 225, (...)],
"about_me": "I love politics, art museums, and soccer.",
"address": "3308 Red River Apt 106",
"city": "Austin",
"last_login": "2011-08-05T13:53:07Z",
"username": "demo_user_0007",
"id": 1918,
"profile_responses": [
{
@camdez
camdez / gist:2854980
Created June 1, 2012 20:32
OrgSync API: Organizations: List All Organizations
[
{
"created_at": "2007-04-06T20:34:42Z",
"alternate_id": null,
"member_count": 110,
"long_name": "Accounting Society",
"category": {
"name": "Alumni",
"id": 1362
},
@camdez
camdez / gist:2855179
Created June 1, 2012 21:14
OrgSync API: Organizations: Show Single Organization
{
"description": "To serve the student body and help the campus grow as a whole.",
"groups": [
{
"name": "1st Floor Family",
"account_ids": [
1918
],
"id": 238468
},
@camdez
camdez / success.json
Created June 1, 2012 21:29
OrgSync API: Success
{"success":true}
@camdez
camdez / gist:2883982
Created June 6, 2012 19:07
OrgSync API: Events: List All Events
[
{
"name": "Test",
"description": "",
"umbrella_category": null,
"location": "There is no location entered for this event.",
"org_id": 225,
"is_approved": true,
"occurrences": [
{
@camdez
camdez / gist:2910462
Created June 11, 2012 14:54
OrgSync API: Forms: List All Forms
[
{
"name": "Membership Application",
"is_published": true,
"category": {
"name": "General",
"id": 16
},
"id": 29,
"ends_at": "2007-10-04T21:15:00Z",
@camdez
camdez / gist:2910532
Last active October 6, 2015 01:18
OrgSync API: Forms: Show Single Form
{
"submission_count": 3,
"form_pages_count": 1,
"ends_at": null,
"description": "This is a sample form used to demo the OrgSync forms API.",
"org_id": 285,
"submission_limit": 0,
"category": {
"name": "General",
"id": 306