Skip to content

Instantly share code, notes, and snippets.


Jean-Baptiste Musso jbmusso

View GitHub Profile

Nix Flake MVP


  • To provide Nix repositories with an easy and standard way to reference other Nix repositories.

  • To allow such references to be queried and updated automatically.

  • To provide a replacement for nix-channel, NIX_PATH and Hydra

idibidiart /
Last active Dec 6, 2020
Building an Agile, Maintainable Architecture with GraphQL

Building a Maintainable, Agile Architecture for Realtime, Transactional Apps

A maintainable application architecture requires that the UI only contain the rendering logic and execute queries and mutations against the underlying data model on the server. A maintainable architecture must not contain any logic for composing "app state" on the client as that would necessarily embed business logic in the client. App state should be persisted to the database and the client projection of it should be composed in the mid tier, and refreshed as mutations occur on the server (and after network interruption) for a highly interactive, realtime UX.

With GraphQL we are able to define an easy-to-change application-level data schema on the server that captures the types and relationships in our data, and wiring it to data sources via resolvers that leverage our db's own query language (or data-oriented, uniform service APIs) to resolve client-specified "queries" and "mutations" against the schema.

We use GraphQL to dyn

spmallette / raw-neo4jgraph-batched.groovy
Last active Aug 29, 2015
test out driver for "batch loading"
View raw-neo4jgraph-batched.groovy
import org.apache.commons.lang.RandomStringUtils
g ='/tmp/neo4j-test')
vertexCount = 500
edgeCount = 5000
rand = new Random()
ids = new java.util.concurrent.CopyOnWriteArrayList()
clock(1) {
def v = g.addVertex('name',RandomStringUtils.random(32),'age',rand.nextInt(99)+1,'description',RandomStringUtils.random(256))
if (it % 100 == 0) g.tx().commit()
staltz /
Last active Jan 18, 2021
The introduction to Reactive Programming you've been missing
mlouro / gulpfile.js
Last active Sep 22, 2020
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
View gulpfile.js
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
OnesimusUnbound / quote.txt
Last active Jan 16, 2021
Programming Quotes
View quote.txt
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
aheckmann / something.js
Created Mar 27, 2012
mongoose: emit update or create
View something.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
mongoose.connect('localhost', 'testing_emitUpdate');
var schema = new Schema({
name: String
schema.pre('save', function (next) {
indexzero /
Created Nov 14, 2011
A quick outline of a
View Outline

  • Header and a Brief description (should match package.json)
  • Example (if applicable)
  • Motivation (if applicable)
  • API Documentation: This will likely vary considerably from library to library.
  • Installation
  • Tests
  • Contributors
  • License
You can’t perform that action at this time.