Skip to content

Instantly share code, notes, and snippets.


David Chambers davidchambers

View GitHub Profile
davidchambers / dataTransform.js
Created Nov 14, 2017 — forked from josete89/dataTransform.js
Data mapping with sanctuary
View dataTransform.js
'use strict';
const R = require('ramda');
const S = require('sanctuary');
const data = {
id: 1,
orderName: 'Order from spain',
teamName: 'Portland penguins',
davidchambers / open_in_hashify.rb
Created May 15, 2011 — forked from adrusi/open_in_hashify.rb
TextMate command to open a markdown document in
View open_in_hashify.rb
#!/usr/bin/env ruby
require "base64"
message = "HG: Enter commit message. Lines beginning with 'HG:' are removed."
data =
data.gsub!(/^HG: .+\n/, '') if data.include? message
%x[open{Base64.encode64(data).gsub(/\n/, '')}]
+-[ COMMAND SETTINGS ]------------+