Skip to content

Instantly share code, notes, and snippets.

View NervosaX's full-sized avatar

Adam Hoddinott NervosaX

  • LivePreso
  • Australia
View GitHub Profile
#!/usr/bin/env bash
# file: ~/.virtualenvs/postmkvirtualenv
# This hook is run after a new virtualenv is activated.
# setup python interpretor and sitepackages
# for Sublime Text's SublimeCodeIntel plugin.
# codeintel looks in the root of any folder opened via `subl foldername`
# for foldername/.codeintel/config
# it also looks in ~/.codeintel/config
@NervosaX
NervosaX / cerebral.js
Last active November 1, 2016 04:52
Cerebral libdef WIP
declare type CerebralPath = string | Array<string>;
declare module 'cerebral' {
declare interface StateFunc {
set(path: CerebralPath, value: ?any): void;
get(path: CerebralPath): void;
}
declare interface OutputFuncEmptyT {
(output: ?Object): void;
@NervosaX
NervosaX / generate-jspm-flowconfig.js
Last active November 10, 2017 17:06
Create flowconfig mapping from jspm
#!/usr/bin/env node
"use strict";
const _ = require("lodash");
const fs = require("fs");
const path = require("path");
const jspm = require("jspm");
const build = new jspm.Builder();
const System = build.loader;
// Generate the path to the root of the project... We can use this to
@NervosaX
NervosaX / __MAGIKCRAFT__.NervosaX.magikcraft_spells.md
Last active August 5, 2017 01:17
Magikcraft Spells, by NervosaX.