This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| // to capture ALL events use: | |
| Ext.util.Observable.prototype.fireEvent = Ext.Function.createInterceptor(Ext.util.Observable.prototype.fireEvent, function(evt) { | |
| var a=arguments; | |
| console.log(this,' fired event ',evt,' with args ',Array.prototype.slice.call(a,1,a.length)); | |
| return true; | |
| }); | |
| // to capture events for a particular component: | |
| Ext.util.Observable.capture( | |
| Ext.getCmp('my-comp'), |
| node_modules | |
| # folders used for testing | |
| css | |
| img | |
| images | |
| test |
| // benchmark/object-stream-throughput.js | |
| // | |
| // Shows performance of pipe()ing new streams in object mode | |
| // through Transform streams. | |
| var OBJECTS_PER_B = 12 / 1024; // I get 12 of my objects per KB of input XML | |
| var SOURCE_WRITE_SIZE = 64*1024; | |
| var common = require('./common'); | |
| var net = require('net'); |
| { "@context": { | |
| "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
| "owl": "http://www.w3.org/2002/07/owl#", | |
| "express": "http://example.com/express#", | |
| "defines": { | |
| "@reverse": "rdfs:isDefinedBy" | |
| }, | |
| "propertyOf": { | |
| "@id": "rdfs:domain", |
| curl -XDELETE 'localhost:9200/jsonld' | |
| curl -XPOST 'localhost:9200/jsonld' | |
| curl -XPUT 'localhost:9200/jsonld/doc/1' -d ' | |
| { | |
| "@context": | |
| { | |
| "dc": "http://purl.org/dc/elements/1.1/", |
| { | |
| "@context": "http://json-ld.org/contexts/person.jsonld", | |
| "@id": "http://dbpedia.org/resource/John_Lennon", | |
| "name": "John Lennon", | |
| "born": "1940-10-09", | |
| "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" | |
| } |
| { | |
| "@context": { | |
| "grddl": "http://www.w3.org/2003/g/data-view#", | |
| "ma": "http://www.w3.org/ns/ma-ont#", | |
| "owl": "http://www.w3.org/2002/07/owl#", | |
| "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
| "rdfa": "http://www.w3.org/ns/rdfa#", | |
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
| "rif": "http://www.w3.org/2007/rif#", | |
| "rr": "http://www.w3.org/ns/r2rml#", |
| { | |
| "@context": { | |
| "oiot": "http://openiot.org/", | |
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
| "xsd": "http://www.w3.org/2001/XMLSchema#", | |
| "rdfs:subClassOf": { | |
| "@type": "@id" | |
| }, | |
| "name": "rdfs:label", | |
| "description": "rdfs:comment", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Midgard Create example</title> | |
| <script src="../deps/jquery-1.7.1.min.js"></script> | |
| <script src="../deps/jquery-ui-1.8.18.custom.min.js"></script> | |
| <script src="../deps/underscore-min.js"></script> | |
| <script src="../deps/backbone-min.js"></script> | |
| <script src="../deps/vie-min.js"></script> |