Skip to content

Instantly share code, notes, and snippets.

View robzolkos's full-sized avatar
📈
Building products

Rob Zolkos robzolkos

📈
Building products
View GitHub Profile
@robzolkos
robzolkos / TechDecisions.md
Created November 28, 2011 13:38
Choices to make in a new Rails project. Would love to see this forked with other's opinions.

Team Support

Source Code Control

git (private server)
Alternative: github

Time Tracking

Cashboard

@robzolkos
robzolkos / basicsetup
Created January 10, 2012 11:48 — forked from anathematic/Ruby on Rails server config.md
Quick notes for 1.9.2 + postgres on Ubuntu 10.4
sudo /usr/sbin/groupadd rvm
sudo /usr/sbin/usermod -G rvm ubuntu
sudo apt-get install git-core build-essential zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev libxslt-dev libxml2-dev libcurl4-openssl-dev
sudo su -
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
rvm pkg install zlib
rvm remove 1.9.2
rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr
rvm use 1.9.2 --default
gem install bundler passenger
@robzolkos
robzolkos / mobile-meta-links.html
Created February 14, 2012 00:39
iOS Web App Configuration
@robzolkos
robzolkos / hack.sh
Created March 31, 2012 10:11 — forked from erikh/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
#
@robzolkos
robzolkos / web-app.html
Created May 30, 2012 14:35 — forked from tfausak/ios-8-web-app.html
Web app with icons and startup images for iOS
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"
sizes="57x57"
@robzolkos
robzolkos / image_uploader.rb
Created June 8, 2012 14:11 — forked from DAddYE/image_uploader.rb
CarrierWave on the fly resizer (work as dragonfly)
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
storage :file
def thumb(size)
begun_at = Time.now
size.gsub!(/#/, '!')
uploader = Class.new(self.class)
uploader.versions.clear
uploader.version_names = [size]
@robzolkos
robzolkos / .rspec
Created June 10, 2012 11:46 — forked from coreyhaines/.rspec
Loading just active record
--colour
-I app
@robzolkos
robzolkos / 0-readme.md
Created June 20, 2012 05:49 — forked from lazyatom/0-readme.md
ruby-1.9.3-p194 cumulative performance patch.

Patched ruby 1.9.3-p194 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

@robzolkos
robzolkos / extension.js.coffee
Created July 23, 2012 10:45 — forked from dougo-chris/extension.js.coffee
Nested model in backbone.js
do ->
_parse = Backbone.Model.prototype.parse
_.extend Backbone.Model.prototype,
initNestedCollections: (nestedCollections) ->
@_nestedCollections = {}
_.each nestedCollections, (theClass, key) =>
@_nestedCollections[key] = new theClass([])
@resetNestedCollections()
@robzolkos
robzolkos / gist:3163049
Created July 23, 2012 10:45 — forked from dougo-chris/gist:1992666
remote file uploads
TEMPLATE
----
%form#uploadAsset{"accept-charset" => "UTF-8", :action => "/admin/assets", "data-remote" => "true", :enctype => "multipart/form-data", :method => "post"}
%div{:style => "margin:0;padding:0;display:inline"}
%input{:name => "utf8", :type => "hidden", :value => "✓"}/
%input{:name => "authenticity_token", :type => "hidden", :value => ""}/
.element
.avatar.thin
%label.hint#assetLabel
Your Asset