Skip to content

Instantly share code, notes, and snippets.

View holman's full-sized avatar

Zach Holman holman

View GitHub Profile
@holman
holman / gemspec-usage.md
Created February 12, 2012 07:02
test/spec/mini

Just install this in your apps like so:

gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'

@holman
holman / example.png
Created November 5, 2014 05:35
A quick Hubot script to display Uber surge pricing from a particular point (LIKE AN OFFICE).
example.png
25 here
16 wtf
12 wat
11 lolol
9 derp
8 poop
8 foo
6 wut
6 hola
6 yo
@holman
holman / emoji_test.rb
Last active June 18, 2020 01:27
A snapshot of the tests we use internally at GitHub to help edit our blog posts before they go out to everybody. For more information, take a peek at http://zachholman.com/posts/how-github-writes-blog-posts
require_relative "test_helper"
require "open-uri"
require "net/http"
class EmojiTest < Blog::Test
def test_no_emoji
posts.each do |post|
content = File.read(post)
refute_match /:[a-zA-Z0-9_]+:/, content,
{"here":25,"wtf":16,"wat":12,"lolol":11,"derp":9,"poop":8,"foo":8,"wut":6,"hola":6,"yo":6,"fuck":5,"test":4,"shit":4,"huh":4,"hello":3,"got here":3,"butts":3,"herp":3,"bar":3,"asdf":3,"ohai":3,"hell":3,"you got here":2,"sup":2,"bleh":2,"here 1":2,"here 2":2,"lol":2,"poo":2,"i like cheese":2,"fuuu":2,"lala":2,"omg":2,"hello?":2,"holla":2,"holman":2,"dupa":2,"lalala":2,"balls":2,"woot":2,"blah":2,"welp":2,"moo":2,"boom":2,"cat":2,"horse":1,"chk1":1,"coucou":1,"poldo":1,"asasdasdasdasd":1,"meow":1,"twerk -->":1,"ebasa":1,"dick fingers":1,"aaaaaaaaa":1,"hotdogs":1,"heyo":1,"chicken dinner":1,"woo":1,"ffs":1,"blip tip":1,"gah":1,"AREYOUKIDDING":1,"cocknobs":1,"PORTC = 0xFF":1,"haha":1,"apa":1,"wtfbbq":1,"wtffu":1,"prout":1,"eh":1,"goddammit2":1,"fuckthis1":1,"debug2":1,"debug1":1,"dog":1,"stip":1,"blag":1,"3💨":1,"yay":1,"hey grl":1,"heyheyhey":1,"die mofo":1,"nay":1,"boom!":1,"programming is stupid I hate computers who invented this fucking proffession anyway":1,"fuck you":1,"hi":1,"caca":1,"what the fuck is going
@holman
holman / Guthrie IP.md
Last active August 4, 2016 03:30
Woody Guthrie, on intellectual property.

This song is Copyrighted in U.S., under Seal of Copyright # 154085, for a period of 28 years, and anybody caught singin it without our permission, will be mighty good friends of ourn, cause we don’t give a dern. Publish it. Write it. Sing it. Swing to it. Yodel it. We wrote it, that’s all we wanted to do.

  • Woody Guthrie, 1940's —
@holman
holman / mpd.rb
Last active February 21, 2016 05:21
A forumula for mpd that maybe won't crash all the time on m4a files on OS X. Currently on https://github.com/mxcl/homebrew/pull/19368/files, waiting to be merged upstream.
require 'formula'
class Mpd < Formula
homepage 'http://www.musicpd.org/'
url 'http://www.musicpd.org/download/mpd/0.17/mpd-0.17.4.tar.bz2'
sha1 'e3a16b5d784c3699b151e72cfa58d0ea54a49b13'
head "git://git.musicpd.org/master/mpd.git"
@holman
holman / jekyll_media_length.rb
Created October 19, 2015 01:18
Drop the length of a particular audio file and junk into your Jekyll page.
# jekyll_media_length / by @holman
#
# Drop the length of a particular audio file and junk into your Jekyll page.
# (See https://twitter.com/Una/status/655856628198014976 for more context).
#
# INSTALL:
#
# brew install taglib
# gem install taglib-ruby
#
@holman
holman / cray.md
Created October 15, 2012 19:37
Dropbox is cray

Hi Zach,

We’re working to make it easier for your Dropbox for Teams administrators to manage all the stuff you and your teammates have in your Teams account. Soon, we’ll be releasing new features for admins to manage the security of your team’s stuff and make it easier for them to help when things go wrong.

In some cases, your admin may need the flexibility to take some actions on your Teams account, such as helping to manage shared folders or restoring access if you get locked out of your account. In order to clarify that admins may have access to team member accounts when managing the team, we're updating our Dropbox for Teams Agreement and Privacy Policy.

You might have some personal files in your Teams account that you’d like to move to a personal account. For example, if you want to keep vacation pictures in a different account from your latest Excel spreadsheet, you can use this online guide to move your files:

View the new agreement and get started here

So I sent this to the company:

and then there was this: