Skip to content

Instantly share code, notes, and snippets.

var buildMap = function(env) {
return R.reduce(λ(obj, elem) {
var kv = R.split(':', elem);
var key = kv[0];
var val = kv[1];
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
//
// stripPath('/foo/bar/baz', ['x', 'foo', 'bar']) => 'bar/baz'
//
var stripPath = λ(path, names) {
var f = R.flip(R.strLastIndexOf)(path);
var indexList = R.map( λ(name) {
return {
n: name,
pos: f(name)
function f (coord,index) {
if (g(coord)) {
return index + 1;
}
return index - 1;
}
var _ = require('lodash');
// https://lodash.com/docs#transform
function t (obj) {
return _.transform(obj.fragments, function (result, val, key) {
accu[key.replace(obj.typ + '.', '')] = val;
return accu;
}
}
@gilligan
gilligan / nvimrc
Last active August 29, 2015 14:25
set nocompatible
nnoremap <Space> <Nop>
let mapleader = "\<Space>"
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-haml'
While Jenkins is very broadly used throughout the industry and
it is mostly possible to get a working setup the price we have to pay
for using it is high maintenance costs:
Configurations cannot be kept in the repository they belong to.
This also means that for each and every instance configurations
have to be duplicated and changes have to be adapted.
There is no out-of-the-box integration with github. This means
each and every time webhooks have to be manually configured and

strings

    "mi".repeat(3); // "mimimi"

compare

    console.log(NaN === NaN); // false
by-spec."healthcheck-middleware"."git+ssh://git@github.hc.ag/dragon/healthcheck-middleware.git#1.0.0" =
self.by-version."healthcheck-middleware"."1.0.0";
by-version."healthcheck-middleware"."1.0.0" = self.buildNodePackage {
name = "healthcheck-middleware-1.0.0";
version = "1.0.0";
bin = false;
src = fetchgit {
url = "ssh://git@github.hc.ag/dragon/healthcheck-middleware.git";
rev = "e288c349675d4a2fbfd9e0c194797bbaa7377406";
sha256 = "6fc2ce89f7ca7afb699d13a1d7bf91488c862cd6abf7ad10f7b9ebae74e35a8c";
var R = require('ramda');
function collapse(list) {
var head = R.head(list),
group,
len;
if (R.isEmpty(list)) {
return [];
}