Skip to content

Instantly share code, notes, and snippets.

View johnpaulashenfelter's full-sized avatar

John Paul Ashenfelter johnpaulashenfelter

View GitHub Profile
@johnpaulashenfelter
johnpaulashenfelter / gist:1014354
Created June 8, 2011 12:52
Apply patch to RVM ruby
curl https://raw.github.com/gist/1008945/7532898172cd9f03b4c0d0db145bc2440dcbb2f6/load.patch > /tmp/load.patch
rvm get head # always good to make sure you're up to date with RVM
rvm reload
rvm install ruby-1.9.2-p180 --patch /tmp/load.patch -n patched
rvm use ruby-1.9.2-p180-patched
@johnpaulashenfelter
johnpaulashenfelter / upgrade_homebrew_pg.sh
Created November 11, 2011 15:31
Upgrading homebrew postgres from 9.0.x to 9.1
Upgrading to homebrew postgresql 9.1.1 from 9.0.x
* Copy the old data
mv -R /usr/local/var/postgres/ /usr/local/var/postgres-901
* Create a new database using 9.1.1
/usr/local/Cellar/postgresql/9.1.1/bin/initdb /usr/local/var/postgres
@johnpaulashenfelter
johnpaulashenfelter / data.csv
Created December 9, 2011 01:07 — forked from clr/data.csv
Planet Finder RubyGames
Life DistanceWithin3AU TempUnder375 Water Atmosphere ClassM GasGiant
0 0 0 0 1 0 1
0 1 1 0 1 0 0
0 1 0 0 0 0 0
0 0 0 0 1 0 0
0 1 0 0 1 0 1
0 1 0 1 0 0 1
0 1 1 0 1 0 1
1 0 1 1 1 0 0
0 1 0 0 1 0 1
@johnpaulashenfelter
johnpaulashenfelter / index.html
Created October 19, 2012 13:16 — forked from dfm/LICENSE
XKCD-style plots in d3
<!DOCTYPE HTML>
<html>
<head>
<title>XKCD plots in d3</title>
<script src="http://d3js.org/d3.v2.min.js?2.10.0"></script>
<script src="xkcd.js"></script>
<style>
group :production do
gem 'unicorn'
# Enable gzip compression on heroku, but don't compress images.
gem 'heroku-deflater'
# Heroku injects it if it's not in there already
gem 'rails_12factor'
end

Keybase proof

I hereby claim:

  • I am johnpaulashenfelter on github.
  • I am johnashenfelter (https://keybase.io/johnashenfelter) on keybase.
  • I have a public key whose fingerprint is 2729 5ED6 D63D 26C6 420F 2F6B 2E2F DDD3 6C7D A618

To claim this, I am signing this object:

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@johnpaulashenfelter
johnpaulashenfelter / languages.md
Last active August 29, 2015 14:10
Languages I've been paid to write code
  1. MS VisualBasic 1.0, 3.0, 4.0, 6.0
  2. Matlab
  3. MS VisualBasic for DOS
  4. Fortran
  5. Authorware (CD applications)
  6. ActionScript
  7. ASP2.0 (with JScript instead of VBScript)
  8. MS VBA + MS Project + MS-SQL Server (weird crazy app hybrid thing)
  9. MS Access
  10. Java (EJB/servlets, applets)
@johnpaulashenfelter
johnpaulashenfelter / Unicode table
Created August 29, 2016 16:46 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@johnpaulashenfelter
johnpaulashenfelter / ladder.md
Created June 20, 2017 11:24 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder