Skip to content

Instantly share code, notes, and snippets.

Hey there, I'm Ben, one of the developers working on FormKeep: the form backend for designers and developers.
Over the next few months, we're going to be investing heavily in the product and I want to make sure we're building the features that *you* want. To ensure that happens, would you please take this 5-minute survey?
I'm only sending this to a handful of our active users, so every response counts. I know it won't be the highlight of your week but it'll mean that future FormKeep changes will make it even better for you.
Side bonus: the entire survey is keyboard-navigable. No mouse required!
Thank you to the hundredth power :)
@r00k
r00k / vimrc
Last active May 13, 2023 09:34
A minimal vimrc for beginners
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@jessecravens
jessecravens / rmr-ember.md
Last active August 29, 2015 14:06
Rocky Mountain Ruby Ember.js Workshop

Ember.js Workshop (RMR 2014)


Schedule

  8:00 AM - 9:00 AM: Part 1 - Lessons 1-3
  9:00 AM - 10:00 PM: Part 1 - Lessons 4-7

Break

@potatowire
potatowire / gist:8403582
Last active January 3, 2016 03:39
I use [Pinboard](http://pinboard.in) for all of my links, including "read later" items that I used to send to [Instapaper](http://www.instapaper.com/). I am often subject to a spotty network and [primitive browsres](http://www.microsoft.com/en-us/download/internet-explorer-7-details.aspx), and the [supplied "read later" bookmark](https://pinboar…
javascript:if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://pinboard.in/add?later=yes&noui=yes&jump=close&next=same&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title)
@gillibrand
gillibrand / totalhours.py
Last active January 2, 2016 01:59
A custom preprocessor for Marked.app that makes it into a super simple time tracker. Finds all the hours in a document (e.g., +1h, +2h, +3h, etc.) and shows the total in a floating badge. Only looks for whole number hours (no minutes or fractions). See a screenshot at http://cl.ly/TB7D
#!/usr/bin/env python
import sys, re
hours_re = re.compile(r'([-+] \d+)h \b', re.X)
total = 0
for line in sys.stdin:
total += sum(int(hour) for hour in hours_re.findall(line))
print line.strip()
@17twenty
17twenty / simple_git.md
Created September 27, 2013 18:32
A Simple Git branching model

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

The gist

def render
print " "
(0..7).each { |column_num| print " #{column_num} " }
puts ""
board.each_with_index do |row, row_num|
print row_num
row.each_with_index do |piece, col_num|
if invalid_board_moves.include?([row_num, col_num])
print (piece ? piece.render : " ").colorize(background: :white)
else
@ttscoff
ttscoff / short_titles.sh
Created August 29, 2013 02:19
Via @pilotmoon, the secret to shortening your popclip bar.
$ defaults write com.pilotmoon.popclip UseShortTitles -bool YES
$ killall PopClip && open -a PopClip
@ttscoff
ttscoff / Bullseye.bookmarklet
Last active August 30, 2023 06:46
A bookmarklet for grabbing just a piece of a web page and converting it to Markdown using heckyesmarkdown.com.
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading&hellip;</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://cdn.rawgit.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})();
@bferg
bferg / feedfolder.rb
Created July 1, 2013 03:00
Create Feed Wrangler "smart streams" matching your Google Reader folders. First import your feeds from Google Reader, export your Reader OPML file to the script directory, edit the script to include your user name and password, then run it. Note Feed Wrangler has since added this feature, so this script should no longer be necessary!
#!//usr/bin/env ruby
require 'bundler/setup'
require 'opml_saw'
require 'json'
require 'net/https'
require 'uri'
#
# Enter your email and password for feedwrangler below
#