- rails 3: removing /lib from automatically being loaded on application boot
create a namespace and setup a proper layout when we need to extract our code outside the application into a gem
#config/initializers/twitter_wrangler.rb| Diametric gem https://github.com/relevance/diametric | |
| - ActiveModel wrapper of Datomic. MRI via REST service. Jruby via REST service | |
| Datomic is via Rich Hickey, newSql database. | |
| ACID (atomicity, consistency, Isolation, Durability) guranteed. | |
| - has idea of simplicity | |
| - datomics schema, - Array of Hash | |
| - data: array of hash | |
| - query - array in array | |
| - data is immutable |
create a namespace and setup a proper layout when we need to extract our code outside the application into a gem
#config/initializers/twitter_wrangler.rbwanted: autocomplete, replace database full-text search, bring site earch in-house
node: instance of elasticsearch which belongs to a cluster
| (main)> bag = NanoStore::Bag.bag | |
| => #<NanoStore::Bag:0x8c930b0> | |
| (main)> NanoStore.shared_store.addObject(bag, error:nil) | |
| => true | |
| (main)> bag.setName "cars" | |
| => #<NanoStore::Bag:0x8c930b0> | |
| (main)> user = User.create(8, 'demo', 23, bag.name) | |
| => #<User:0x8c93800> | |
| (main)> user.save | |
| => #<User:0x8c93800> |
| // | |
| // ViewController.m | |
| // coreDataTutorial | |
| // | |
| // Created by Naoya Makino on 12-10-25. | |
| // Copyright (c) 2012 Naoya Makino. All rights reserved. | |
| // | |
| #import "ViewController.h" | |
| #import "AppDelegate.h" |
| set enc=utf-8 | |
| set nu | |
| function! WindowsizeMaximize13() | |
| set lines=570 | |
| set columns=1810 | |
| colorscheme ir_black | |
| endfunction | |
| "command! WindowsizeMaximize13 call WindowsizeMaximize13() | |
| filetype indent plugin on |
| # a = 1 | |
| # b = a + 2 | |
| # print b | |
| program = [ | |
| ('assign', 'a', ('value', 1)), | |
| ('assign', 'b', ('plus', ('refer', 'a'), ('value', 2))), | |
| ('print', ('refer', 'b')), | |
| ('variables',)] | |
| variables = {} |
| from icalendar import Calendar, Event | |
| import simplejson as json | |
| import re | |
| import web | |
| from mimerender import mimerender | |
| import sys | |
| import urllib2 | |
| event = {} |
| from icalendar import Calendar, Event | |
| import simplejson as json | |
| import re | |
| import web | |
| from mimerender import mimerender | |
| import sys | |
| event = {} | |
| urls = ( | |
| 'https://api.geoloqi.com/1/place/create', 'place' |