Skip to content

Instantly share code, notes, and snippets.

View camdez's full-sized avatar

Cameron Desautels camdez

View GitHub Profile
(eval-after-load 'projectile
'(add-hook 'find-file-hook 'camdez/warn-if-longhorn-version))
(defun camdez/warn-if-longhorn-version ()
(interactive)
(when (projectile-project-p)
(let* ((file-name (buffer-file-name))
(project-dir (projectile-project-root))
(views-dir (concat project-dir "app/views/"))
(lh-views-dir (concat project-dir "app/longhorn_views/")))
# name: Request Addition to MELPA Stable
# key: melpa-stable-add
# uuid: 2776fd13-47f6-4438-902e-2f39c48fd790
# contributor: Cameron Desautels <camdez@gmail.com>
# --
Hi!
[MELPA Stable](http://stable.melpa.org/) is the new younger sibling of MELPA for users who'd rather run only stable versions of packages (MELPA can be a bit rocky since every commit comprises a new release), and it would be super cool if ${1:this package} could be installed via Stable.
Fortunately it's also really easy to support—all you have to do is define a tag in the \`v...\` format and you're done. I'd submit a PR if I could, but since tags are global to a project, that's not something possible via PR.
@camdez
camdez / keybase.md
Created October 3, 2014 16:52
Keybase Proof

Keybase proof

I hereby claim:

  • I am camdez on github.
  • I am camdez (https://keybase.io/camdez) on keybase.
  • I have a public key whose fingerprint is B1E0 96BD CB39 F149 BB10 6638 4A32 D989 2422 82E9

To claim this, I am signing this object:

//
// UIView+Hierarchy.m
// OrgSync
//
// Created by Cameron Desautels on 11/12/13.
// Copyright (c) 2013 OrgSync. All rights reserved.
//
#import "UIView+Hierarchy.m"
@camdez
camdez / meeting-notes.md
Created September 9, 2013 22:32
Meeting notes using Mac OS's Dictation feature.

This dealer daycare at 404 Second is the gym doors I hate you you know what you know that threshold is that the slave behind replication at what point does the master . Holy does is it with the slate to lock the sleep yet masters trying to repeat fucking love this you have one master got hundreds place right place that is also doing his thing is that every of the laughter doesn't the masses and give the slave slave to fill those that are not a cigarette on your break Good morning to you all on overnight radar Everybody is fine. And if I have a disease fire around urban walking finished depending to you that you do as they read off the masculine binary right into really long locally so that they crashed it still replaced the relay and then in another thread on the slavery is often relate to this single friends to mirroring log on and that's how it can best how to tell if it's falling behind rice massive set of updates going on Master they have reliably chat and sleep until it slightly behind A semi love is lik

@camdez
camdez / gist:5636706
Last active December 17, 2015 16:09
OrgSync API: Accounts: List Custom Profile Fields
[
{
"name": "Gender",
"position": 1,
"id": 23569,
"type": "Selection",
"page": 1,
"instructions": "",
"choices": [
{
@camdez
camdez / large-orgs.rb
Last active December 16, 2015 12:39
A simple Ruby application demonstrating how to use the OrgSync API. Lists all organizations with more than 20 members (using this API call: https://api.orgsync.com/api/docs/v2/orgs/index). Please note that this simple script disables SSL certificate verification for convenience of example, but SSL verification should be used in a production sett…
require 'faraday'
require 'json'
API_KEY = "dd6b9d2beb614611c5eb9f56c34b743d1d86f385"
API_BASE_URL = "https://api.orgsync.com"
# Set up the HTTP client
conn = Faraday.new(:url => API_BASE_URL,
:ssl => {:verify => false}) do |faraday|
faraday.adapter Faraday.default_adapter
@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",