Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am celrenheit on github.
  • I am celrenheit (https://keybase.io/celrenheit) on keybase.
  • I have a public key ASB1JD4ACwQvWyqcVtV5u57mF2qCa_0ju7U9XvPPs5KE4wo

To claim this, I am signing this object:

@celrenheit
celrenheit / Main.js
Last active August 29, 2015 14:16
ES6 generators
import _ from 'lodash'
import mergeDefaults from 'merge-defaults'
import fs from 'fs'
import util from './util'
export default class Travor {
constructor(options) {
if(!options)
options = {}
// Normalement
var v1 = gremlin.g.addVertex({ name: 'Foo', age: 20 }, 'v1');
var v2 = gremlin.g.addVertex({ name:'Bar', age: 30 }, 'v2');
gremlin.g.addEdge(v1, v2, 'knows', { met: "Somewhere", weight: 1.2 });
gremlin.g.exec .... // Ca fonctionne parce que v1 et v2 ont bien un identifiant 'v1' et 'v2'
var require("G.js");
module.exports = (function(){
function A(options) {
...
Object.defineProperty(this, 'g', {
get: function() {
var g = new G();
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }

Enabling noConflict mode

Using a default Foundation download you'll see some code like this:

<script>
document.write('<script src=' +
('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
'.js><\/script>')
[nodemon] starting `node ./node_modules/.bin/mocha --growl --colors --reporter spec test/test-events.js`
Express app started on port 3000
Events
POST /api/events
When not logged in
✓ should return an error json
When logged in
$USER { _id: '521ca88b7a78360000000003',