Skip to content

Instantly share code, notes, and snippets.

View awalker's full-sized avatar

Adam Walker awalker

View GitHub Profile

Keybase proof

I hereby claim:

  • I am awalker on github.
  • I am adamwalker (https://keybase.io/adamwalker) on keybase.
  • I have a public key whose fingerprint is 335F 0395 8173 8EC8 78EE 6E28 5447 D0E2 D6BE 0EC6

To claim this, I am signing this object:

@awalker
awalker / gist:1507911
Created December 21, 2011 21:58
How to request a single record from an AJAX endpoint with Spine.js.
###
``Battleship`` is your model and ``id`` is the record id.
This requests the record rather than all records.
It could be used it places where loading a single record is
required but no natual scoping is available.
###
Battleship.ajax().find(id).success (record) ->
Battleship.refresh(record)
@awalker
awalker / sync_things.rb
Created October 25, 2011 21:39 — forked from tswicegood/sync_things.rb
Simple Ruby script to sync Basecamp and Things to-dos.
#!/usr/bin/env ruby
#
# Biggest problem with this is that it checks everything. Needs
# to be adjusted to only check N days and/or N tasks on Basecamp.
#
# Also has a problem in that Completed always wins. If you have a
# task marked at completed, then mark it as open again on just one
# side, it'll mark the other as completed if you run the sync again.
#
# All that said, it provides a basic, very rudimentary sync.