This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["/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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AssetChild | |
# by defining a module this should allow us to make nice code which adds: | |
# | |
# - has_one :assets | |
# - adds an after_create hook which automaticly builds the asset. | |
# - at some latter point we can also add after_update - to update the asset it's timestamp. | |
# - give access to asset attributes such as name => @usecase.name instead of @usecase.asset.name | |
# | |
# -> http://weblog.jamisbuck.org/2007/1/17/concerns-in-activerecord |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mixin for responsive (relative) font-sizes depending on the screen size using media queries. | |
This is width based, but you can easily adjust it for more complex, or simple, checking. | |
Set the base as you max size, then I divided everything into tenths of the base. | |
To use, simply include the mixin, passing it the font-size that you'd want to see at 100%. | |
This should then scale nicely along in tenths. If you need more detail, just add more elements to the level list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A modular (AMD) template file loader for for example underscore.js. | |
You can use the templater to load up html files as a string in order to use them as templates | |
for your client side javascript templating. | |
Pay notice to the 'base_path'. Set this to where your templates reside. The path below is | |
assuming a Rails application. | |
You could also not use the base path and just pass it in fully every time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: models/Task.js | |
define([], function(){ | |
var Task = Backbone.Model.extend({ | |
//do stuff | |
}); | |
return Task; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://www.ubercart.org/contrib/2972 | |
<?php | |
function RiffTrax_uc_cart_view_form($form) { | |
drupal_add_css(drupal_get_path('module', 'uc_cart') .'/uc_cart.css'); | |
$output = '<div id="cart-form-products">' | |
. tapir_get_table('uc_cart_view_table', $form) .'</div>'; | |
if (( |
OlderNewer