Skip to content

Instantly share code, notes, and snippets.

@abuisman
abuisman / gist:1478970
Created December 14, 2011 22:54
Errors getting
["/Users/Achilleas/Sites/rodex/app/assets/images", "/Users/Achilleas/Sites/rodex/app/assets/javascripts", "/Users/Achilleas/Sites/rodex/app/assets/stylesheets", "/Users/Achilleas/Sites/rodex/vendor/assets/javascript", "/Users/Achilleas/Sites/rodex/vendor/assets/markitup", "/Users/Achilleas/Sites/rodex/vendor/assets/stylesheets", "/Users/Achilleas/Sites/rodex/vendor/assets/twitter-bootstrap", "/Library/Ruby/Gems/1.8/gems/jquery-rails-1.0.16/vendor/assets/javascripts"]
#Inside Photo model
has_attached_file :file,
:processors => [ :blurplates, :thumbnail ],
:styles => { :frontpage => "460x100000", :view => "740x100000", :medium => '300x300', :thumb => "100x100>" }
#blurplates.rb
# Load libs
require 'camellia'
@abuisman
abuisman / etc_init.d_unicorn_example.co.uk
Created October 28, 2011 06:51 — forked from scottlowe/etc_init.d_unicorn_example.co.uk
Ruby on Rails server setup on Ubuntu 11.04 with Nginx, Unicorn, Rbenv
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
/**
* Create an input for a date that gets filled in by a datepicker in a modal window.
*/
createModalDatePickerInput: function(){
var field = Ti.UI.createTextField({
width: '90%',
height: 35,
borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});
/**
* Create an input for a date that gets filled in by a datepicker in a modal window.
*/
createModalDatePickerInput: function(){
var field = Ti.UI.createTextField({
width: '90%',
height: 35,
borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
});