Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
def get_character(hexnum) | |
char = '' | |
char << hexnum.to_i(16) | |
end |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
(function(){ | |
scriptElement = document.body.appendChild(document.createElement('script')); | |
scriptElement.type='text/javascript'; | |
scriptElement.src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'; | |
scriptElement.onload = function(){ | |
(function($){ | |
#!/usr/bin/env ruby | |
## disconnect | |
# ./disconnect.rb -u yourusername | |
# | |
# This is a command-line utility for the bulk-downloading of run data from | |
# the connect.garmin.com web application, which has lackluster export | |
# capabilities. | |
# |
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
* Heroku Hostname SSL | |
* GoDaddy Standard SSL Certificate | |
* Zerigo DNS |
# Copyright 2010, Iain Hecker. All Rights Reserved | |
# Conway's Game of Life, in one line of Ruby. | |
# http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life | |
# Tested and found working on Ruby 1.8.7 and 1.9.2 | |
# The grid is spherical or "wrap around", so the left is connected to the right and top to bottom. | |
# | |
# Generate a random grid, 30 cells wide and 10 cells high | |
# | |
# grid = "30x10".to_grid | |
# |
latin = "a" | |
arabic = [0xfeb6].pack('U') # Sheen, ش | |
cjk = [0x3333].pack('U') # HUIITO, ㌳ | |
kcodes = [ 'NONE', 'u', 's' ] | |
chars = [latin, arabic, cjk] | |
patterns = [ /\w/, /\W/, /[[:punct:]]/ ] | |
kcodes.each do |kcode| | |
$KCODE = kcode |