Skip to content

Instantly share code, notes, and snippets.

View camdez's full-sized avatar

Cameron Desautels camdez

View GitHub Profile
@camdez
camdez / gist:4598988
Created January 22, 2013 22:07
OrgSync API: Checkbooks: Show Checkbook Entry
{
"is_read_only": false,
"occurred_at": "2009-06-04T00:00:00Z",
"amount": "5000.0",
"id": 9406,
"description": "Initial Funding Round",
"checkbook": {
"name": "Spring Festival Budget",
"id": 11656
}
@camdez
camdez / gist:4598896
Created January 22, 2013 21:59
OrgSync API: Checkbooks: List Checkbook Entries
[
{
"is_read_only": false,
"occurred_at": "2009-06-04T00:00:00Z",
"amount": "5000.0",
"id": 9406,
"description": "Initial Funding Round"
},
{
"is_read_only": false,
@camdez
camdez / gist:4598795
Last active December 11, 2015 12:08
OrgSync API: Checkbooks: List Organization Checkbooks
[
{
"is_read_only": false,
"name": "Spring Festival Budget",
"org": {
"name": "SGA",
"id": 225
},
"id": 11656,
"balance": "3500.0",
@camdez
camdez / gist:4598527
Last active December 11, 2015 12:08
OrgSync API: Checkbooks: Show Checkbook
{
"is_read_only": false,
"name": "Spring Festival Budget",
"org": {
"name": "SGA",
"id": 225
},
"id": 11656,
"balance": "3500.0",
"revenue_fund": false
@camdez
camdez / gist:4598164
Last active December 11, 2015 12:08
OrgSync API: Checkbooks: List All
[
{
"is_read_only": true,
"name": "Revenue Fund",
"org": {
"name": "Ski Club",
"id": 19
},
"id": 61835,
"balance": "0.0",
(defn table [cols vals]
(->> vals
(partition (count cols))
(map (partial zipmap cols))))
(defn table2 [cols & rest]
(map (partial zipmap cols) rest))
(table
[:this :that :another]
@camdez
camdez / gist:4229134
Created December 6, 2012 22:38
OrgSync API: Groups: Create Group
{"id":259661,"account_ids":[],"name":"New Group"}
@camdez
camdez / gist:4229050
Created December 6, 2012 22:24
OrgSync API: Groups: List Single Group Information
{
"id": 650,
"account_ids": [
3287,
1282234,
1282274,
1385891,
1457427,
1496406,
1542726
@camdez
camdez / gist:4228943
Created December 6, 2012 22:07
OrgSync API: Groups: List Org Groups
[
{
"account_ids": [
1918
],
"id": 238468,
"name": "1st Floor Family"
},
{
"account_ids": [],
@camdez
camdez / gist:4198348
Created December 3, 2012 21:40
OrgSync API: Timesheets: List Event Timesheets
[
{
"start_date": "2009-11-12",
"alternate_org_name": null,
"account": {
"id": 1963,
"last_name": "Alexander",
"first_name": "Alice"
},
"org": {