Skip to content

Instantly share code, notes, and snippets.

// Create our IpsumGenerator function
var IpsumGenerator = function(){};
// Master method that gets called to generate the ipsum based on a set
// of words and a desired word count.
IpsumGenerator.prototype.generateIpsum = function(words, wordCount) {
this.wordList = [];
this.sentences = [];
this.paragraphs = [];
this.generateWordlist(words, wordCount);
@nbashaw
nbashaw / ipsum.js
Created February 8, 2014 07:36
Ipsum.js
// Create our IpsumGenerator function
var IpsumGenerator = function(){};
// Master method that gets called to generate the ipsum based on a set
// of words and a desired word count.
IpsumGenerator.prototype.generateIpsum = function(words, wordCount) {
this.wordList = [];
this.sentences = [];
this.paragraphs = [];
this.generateWordlist(words, wordCount);
# Kickoff - the quickest way to start new rails apps
# How it works:
# 1. Install the gem: `$ gem install kickoff-rails`
# 2. Generate your kickoff file `$ kickoff new`
# 3. Edit the kickoff file to specify the foundation of your app
# 4. Generate your app: `$ kickoff`
# Set up default gems
gems = ['omniauth', 'omniauth-twitter', 'pg', 'airbrake']

This is my cool technical blog post. It's written in markdown.

<?php include 'header.html'; ?>
<div id="container">
<div id="header">
<img src="images/bluegreenyoulllookgreat.jpg" alt="You'll Look Great" />
<h2>We are in the business of brand makeovers.</h2>
<h3>Find out what we can do for you.</h3>
</div>
num = 100
while num >= 1
num = num - 1
puts num.to_s + ' bottles of beer on the wall, ' + num.to_s + ' bottles of beer! Take one down, pass it around, ' + (num - 1).to_s + ' bottles of beer on the wall!'
end
@nbashaw
nbashaw / New Project Maker
Created December 22, 2010 23:06
A little ruby script to start out new projects for me
# Make the project folder
Dir.mkdir("New_Project")
# Navigate to the project folder
Dir.chdir("New_Project")
# Make the index.html file
File.new("index.html", "w+")
# Make the internal project folders
@nbashaw
nbashaw / css
Created January 3, 2011 04:06
make any site feel more tactile instantly
a:active {
position: relative;
top: 3px;
}