Skip to content

Instantly share code, notes, and snippets.

Matt Briggs mbriggs

Block or report user

Report or block mbriggs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2440748
Post-install message from multi_json:
********************************************************************************
MultiJson.encode is deprecated and will be removed in the next major version.
Use MultiJson.dump instead.
MultiJson.decode is deprecated and will be removed in the next major version.
Use MultiJson.load instead.
MultiJson.engine is deprecated and will be removed in the next major version.
View gist:2573068
(message (progn (string-match "foobar \\(.*\\)" "foobar -print me-")
(match-string 1)))
View gist:2656944
(message (progn (string-match "foobar \\(.*\\)" "foobar -print me-")
(match-string 1)))
View init-slime.el
(setq inferior-lisp-program "sbcl")
(require 'slime)
(add-to-list 'load-path (concat (directory-of-library "slime") "/contrib"))
(require 'fancy-slime)
(slime-setup '(fancy-slime))
View init-ido.el
;; Display ido results vertically, rather than horizontally
(setq ido-decorations '("\n " "" "\n " "\n ..." "{" "}" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]"))
View *shell*.txt
test: #keys_for should return array of keys. (Icg::ReferenceDataTableTest):
ActiveRecord::StatementInvalid: PGError: ERROR: operator does not exist: extensions.hstore -> unknown
LINE 1: ...ata_rows"."reference_data_table_id" = 9 AND (data -> 'test_f...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT key FROM "icg_reference_data_rows" WHERE "icg_reference_data_rows"."reference_data_table_id" = 9 AND (data -> 'test_field' = 'AA') ORDER BY key desc
app/models/icg/reference_data_table.rb:70:in `keys_for'
/test/unit/icg/reference_data_table_test.rb:141:in `__bind_1337184784_849713'
Error:
test: #keys_for should return empty array when field does not exist. (Icg::ReferenceDataTableTest):
View *scratch*.el
(loop for i in '(1 2 3)
for k in (* i i)
collect k)
View *scratch*.el
(loop for i in '(1 2 3)
for l in (+ 1 i)
for k = (* i l)
collect k)
View railgun.el
(defun build-railgun-files ()
(loop for type in (railgun-file-types)
for files in (all-files-under-dir-recursively (railgun-search-path type))
for file-info in (mapcar 'railgun-build-file-info files)
collect file-info))
@mbriggs
mbriggs / gist:3165054
Created Jul 23, 2012
my notes for day 1 throne of js, in org mode
View gist:3165054
* day 1
** ashkenas on backbone
*** only 800loc
*** keeps your ui code stateless
*** a way to manage data
*** the expectations today are more then filling out forms and submitting them to the server
**** initial use of ajax was about as conservative as possible (html chunks)
*** philosophy is DIY ideal API
**** get the truth out of the DOM
***** the dom is not the document, it is the interface
You can’t perform that action at this time.