Skip to content

Instantly share code, notes, and snippets.

View patcito's full-sized avatar

Patrick Aljord patcito

View GitHub Profile
@patcito
patcito / dabblet.css
Created February 18, 2012 08:15 — forked from dgmid/dabblet.css
CSS text-shadows - Example 7
/**
* CSS text-shadows - Example 7
*/
/* page styles */
@font-face {
font-family: 'ChunkFiveRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot?iefix') format('eot'),
@patcito
patcito / dabblet.css
Created February 18, 2012 08:15 — forked from dgmid/dabblet.css
CSS text-shadows - Example 7
/**
* CSS text-shadows - Example 7
*/
/* page styles */
@font-face {
font-family: 'ChunkFiveRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot?iefix') format('eot'),
@patcito
patcito / dabblet.css
Created February 18, 2012 08:17
text-shadow styles
@font-face {
font-family: 'Alfa Slab One', cursive;
src: url('http://fonts.googleapis.com/css?family=Alfa+Slab+One');
font-weight: normal;
font-style: normal;
}
@patcito
patcito / dabblet.css
Created February 18, 2012 08:13 — forked from dgmid/dabblet.css
CSS text-shadows - Example 7
/**
* CSS text-shadows - Example 7
*/
/* page styles */
@font-face {
font-family: 'ChunkFiveRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot?iefix') format('eot'),
@patcito
patcito / gist:2651306
Created May 10, 2012 05:58
mongoid 3 fail
> Page.first
NoMethodError: undefined method `[]' for nil:NilClass
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions/factory.rb:59:in `create_session'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions/factory.rb:41:in `default'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions.rb:109:in `default'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions.rb:354:in `__session__'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions.rb:199:in `mongo_session'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/sessions.rb:157:in `collection'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/mongoid-59437bc7e798/lib/mongoid/contextual/mongo.rb:209:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.3-
@patcito
patcito / gist:2872103
Created June 5, 2012 02:17
mongo chunks errors
Tue Jun 5 02:15:04 [conn46] Assertion: 10306:Client Error: Next object larger than space left in message
0x558619 0x5a33a1 0x72e431 0x731a6a 0x8ac2d7 0x5cf1a0 0x7fd5d309bd5a 0x7fd5d134922d
/usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x119) [0x558619]
/usr/bin/mongod(_ZN5mongo9DbMessage9nextJsObjEv+0x121) [0x5a33a1]
/usr/bin/mongod(_ZN5mongo14receivedDeleteERNS_7MessageERNS_5CurOpE+0x131) [0x72e431]
/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xf6a) [0x731a6a]
/usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xd7) [0x8ac2d7]
/usr/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x260) [0x5cf1a0]
/lib64/libpthread.so.0(+0x7d5a) [0x7fd5d309bd5a]
/lib64/libc.so.6(clone+0x6d) [0x7fd5d134922d]
at [object Object].open (/var/www/dev.attachly.com/master/node_modules/mongoose/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:106:14)
at Stream._open (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:164:15)
at Stream.write (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:85:10)
at EventEmitter.onData (/var/www/dev.attachly.com/node_modules/attachly/node_modules/gridform/lib/index.js:91:8)
at EventEmitter.emit (events.js:67:17)
at MultipartParser.onPartData (/var/www/dev.attachly.com/node_modules/attachly/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/incoming_form.js:311:10)
at /var/www/dev.attachly.com/node_modules/attachly/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/multipart_parser.js:102:31
at /var/www/dev.attachly.com/node_modules/attachly/node_mo
at [object Object].open (/var/www/dev.myapp.com/master/node_modules/mongoose/node_modules/mongodb/lib/mongodb/gridfs/gridstore.js:106:14)
at Stream._open (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:164:15)
at Stream.write (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/node_modules/gridfs-stream/lib/writestream.js:85:10)
at EventEmitter.onData (/var/www/dev.myapp.com/node_modules/myapp/node_modules/gridform/lib/index.js:91:8)
at EventEmitter.emit (events.js:67:17)
at MultipartParser.onPartData (/var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/incoming_form.js:311:10)
at /var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_modules/connect/node_modules/formidable/lib/multipart_parser.js:102:31
at /var/www/dev.myapp.com/node_modules/myapp/node_modules/connect-multipart-gridform/node_m
// html code:
<form method='post' action='/files' enctype="multipart/form-data">
<input type='file' name='files' multiple>
<input type='submit' name='upload'>
</form>
// node code:
app.post('/files', function(req, res, next){
@patcito
patcito / gist:4966484
Last active December 13, 2015 19:58
yeoman beta angular
$ DEBUG=* yo angular
generators:environment Resolve namespaces for /usr/lib/node_modules/yo/node_modules/yeoman-generator/lib/generators/generator/index.js: :usr:libyo:node_modules:yeoman-generator:generator +0ms
generators:environment Registered generator (/usr/lib/node_modules/yo/node_modules/yeoman-generator/lib/generators/generator/index.js) +1ms
generators:environment Lookup *:* +0ms
generators:environment Looking in . with filepath */* +1ms
generators:environment Globing for generator *:* with pattern +(generator-)*/*/index.js (cwd: .) +0ms
generators:environment Globing for generator *:* with pattern +(generator-)*/lib/generators/**/index.js (cwd: .) +1ms
generators:environment Looking in /tmp/node_modules with filepath */* +1ms
generators:environment Globing for generator *:* with pattern +(generator-)*/*/index.js (cwd: /tmp/node_modules) +0ms
generators:environment found generator-angular/app/index.js, trying to register +2ms