Skip to content

Instantly share code, notes, and snippets.

View aquateen's full-sized avatar
😩

Chris Johnson aquateen

😩
View GitHub Profile
@brookr
brookr / FakerCalData.rb
Created November 15, 2009 06:41 — forked from carlosdavis/gist:225567
Fake CalHawk Data
gem 'faker'
require 'faker'
I18n.reload!
account_id = 4
# Makes a bunch of different types of events per day at a random time during work hours
(30.days.ago.to_date..90.days.from_now.to_date).each do |date|
rand(3).times do
start = date.beginning_of_day + 8.hours + (rand(32) * 15).minutes