Skip to content

Instantly share code, notes, and snippets.

View omockler's full-sized avatar

Owen Mockler omockler

  • Indianapolis
View GitHub Profile

Keybase proof

I hereby claim:

  • I am omockler on github.
  • I am omockler (https://keybase.io/omockler) on keybase.
  • I have a public key ASB2ziI8nVF9CijHQUfv8YeY81WSWMhpwruvDLyytRjo5go

To claim this, I am signing this object:

require 'benchmark/ips'
def group
(0..99).group_by { |i| i % 2 }
end
def push
even = []
odd = []
@omockler
omockler / group_vs_push.rb
Last active August 29, 2015 14:24
Array push vs. Group By
require 'benchmark/ips'
def group
(0..99).group_by { |i| i % 2 }
end
def push
even = []
odd = []
@omockler
omockler / Credit.md
Created August 13, 2014 20:09
Rake SSL cert generation
@omockler
omockler / chef_install.sh
Created June 5, 2014 13:33
Chef server install script
sudo su
curl -L https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
rvm install 1.9.3 # Might want to go with rvm install 1.9.3 # Install Ruby Version Manager
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.1.0-1_amd64.deb # Download Chef 11.1
dpkg --install ./chef-server_11.1.0-1_amd64.deb
chef-server-ctl reconfigure # Chef Server is now installed, should be able to reach it via http
gem install chef # Now install Chef Client
apt-get install git -y # Add Git
git clone https://github.com/opscode/chef-repo

Tiny Content Framework

About the Project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. These aren't templates. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Contribute

There's more to come, and I'd love to hear what you think. Give me feedback on Twitter (@nicoleslaw) or by email (nicole@swellcontent.com). We all benefit from sharing our ideas and creating standards. Onward.

@omockler
omockler / app.rb
Created September 3, 2013 16:09
Sinatra + pjax + requirejs + knockout
require 'sinatra'
require 'haml'
class Sinatra::Request
def pjax?
env['HTTP_X_PJAX'] || self["_pjax"]
end
end
get '/' do