Skip to content

Instantly share code, notes, and snippets.

View mbriggs's full-sized avatar

Matt Briggs mbriggs

View GitHub Profile
@mbriggs
mbriggs / gist:1453590
Created December 9, 2011 22:25
making mingle nice
{
"mingle.local": {
"_enabled": true,
"_rules": {
"#card-index": {
"font-size": "5em",
"color": "#0076BA"
},
"#show_enumeratedpropertydefinition_479_drop_link": {
"font-weight": "bold",
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
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.
(message (progn (string-match "foobar \\(.*\\)" "foobar -print me-")
(match-string 1)))
(message (progn (string-match "foobar \\(.*\\)" "foobar -print me-")
(match-string 1)))
(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))
;; Display ido results vertically, rather than horizontally
(setq ido-decorations '("\n " "" "\n " "\n ..." "{" "}" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]"))
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):
(loop for i in '(1 2 3)
for k in (* i i)
collect k)
(loop for i in '(1 2 3)
for l in (+ 1 i)
for k = (* i l)
collect k)