Based on this blogpost.
Install with Homebrew:
$ brew install postgresql
Run server:
Based on this blogpost.
Install with Homebrew:
$ brew install postgresql
Run server:
/** | |
* @fileOverview Generates "Lorem ipsum" style text. | |
* @author [email protected] Rick Viscomi, | |
* [email protected] Mathew Tinsley | |
* @version 1.0 | |
*/ | |
/** | |
* Copyright (c) 2009, Mathew Tinsley ([email protected]) | |
* All rights reserved. |
# inspired by http://stackoverflow.com/questions/88311/how-best-to-generate-a-random-string-in-ruby | |
(0...16).map{ (('a'..'z').to_a + (0..9).to_a)[rand(36)] }.join |
var jq = document.createElement('script'); | |
jq.src = "http://code.jquery.com/jquery-latest.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); |
<!-- | |
- | |
- US Zip Codes are text (not numbers) made up of digits (and optionally the dash character, if you accept 9 digit codes) | |
- | |
- Number input fields will drop leading zeros and may add numeric formatting (ie- add commas) to the input. This behavior | |
- is incorrect for Zip Codes which can have leading zeros and should not include commas. | |
- | |
- This Gist shows the incorrect and correct way to tell the browser what is expected in a Zip Code field. Oddly, HTML5 | |
- adds 'date', 'time' and 'tel' types to input elements, but does not include 'zip'. | |
- |
# | |
# This file should be in .../cookbooks/database/templates/default/database.yml.erb | |
# | |
<%= @environment %>: | |
adapter: <%= @adapter %> | |
database: <%= @database %> | |
username: <%= @username %> | |
password: <%= @password %> | |
host: <%= @host %> |
function readColors() { | |
var file = 'public/stylesheets/less/_colors.less'; | |
var data = fs.readFileSync(file, 'utf-8'); | |
data = data.replace(/(.*): *(.*);/gm, '"$1":"$2",'); | |
data = data.replace(/\/\/.*$/gm, ''); | |
var i = data.lastIndexOf(','); | |
data = data.substring(0,i); | |
data = '{'+ data +'}'; | |
data = JSON.parse(data); | |
console.log('json: '+ JSON.stringify(data)); |