Skip to content

Instantly share code, notes, and snippets.

View dkissell's full-sized avatar

Dan Kissell dkissell

View GitHub Profile
@dkissell
dkissell / bash: mkdir * x
Created June 14, 2012 20:19
bash: x.times do mkdir
for char in {A..Z}; do
mkdir $char
done
for num in {1..100}; do
mkdir $num
done
@dkissell
dkissell / hack.sh
Created June 14, 2012 17:20 — forked from steveklabnik/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@dkissell
dkissell / database.yml
Created June 14, 2012 15:01
ruby: database.yml
development:
adapter: postgresql
database:
host: localhost
username: dkissell
pool: 5
timeout: 5000
test:
adapter: postgresql
@dkissell
dkissell / HTML: Scaffold
Created June 14, 2012 14:56
HTML: Scaffold
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<title></title>
<link rel="stylesheet" href="stylesheets/style.css"></style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
</head>
@dkissell
dkissell / home_controller_spec.rb
Created August 16, 2011 04:41
RSpec: static test
require 'spec_helper'
describe HomeController do
describe "GET 'home'" do
it "should serve 'home' from index.html.erb" do
get 'index'
response.should be_success
end
end