Skip to content

Instantly share code, notes, and snippets.

Avatar

David Chambers davidchambers

View GitHub Profile
@davidchambers
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
davidchambers / open_in_hashify.rb
Created May 15, 2011 — forked from adrusi/open_in_hashify.rb
TextMate command to open a markdown document in hashify.me
View open_in_hashify.rb
#!/usr/bin/env ruby
require "base64"
message = "HG: Enter commit message. Lines beginning with 'HG:' are removed."
data = STDIN.read
data.gsub!(/^HG: .+\n/, '') if data.include? message
%x[open http://hashify.me/#{Base64.encode64(data).gsub(/\n/, '')}]
=begin
+-[ COMMAND SETTINGS ]------------+