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
// Lastly, here's a help function pulled from Nick Lewis's blog to alter the form | |
// see: http://www.nicklewis.org/node/967 | |
// Nested fields are implemented by denmarkin. | |
// Usage example: $output .= _ahah_render($form, array('block_settings', 'module_block_'.$delta, 'custom_fields')); | |
function _ahah_render($fields, $name) { | |
$form_state = array('submitted' => FALSE); | |
$form_build_id = $_POST['form_build_id']; | |
// Add the new element to the stored form. Without adding the element to the |
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
set :application, "myapp" | |
# github stuff | |
set :repository, "git@github.com:exampleAcc/myapp.git" | |
set :scm, :git | |
set :scm_username, "github_id" | |
set :scm_passphrase, "github_password" | |
set :branch, "dev" | |
set :git_enable_submodules, 1 |
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
!!! 5 | |
/[if lt IE 7] <html lang="en" class="no-js ie6"> | |
/[if IE 7 ] <html lang="en" class="no-js ie7"> | |
/[if IE 8 ] <html lang="en" class="no-js ie8"> | |
/[if IE 9 ] <html lang="en" class="no-js ie9"> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
%head | |
%meta{:charset => "utf-8"}/ | |
/ | |
Always force latest IE rendering engine (even in intranet) & Chrome Frame |
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
--type-add=ruby=.haml,.rake,.feature | |
--type-add=objc=.pch | |
--type-set=xcode=.pbxproj,.pbxuser,.perspectivev3 | |
--type-set=ragel=.rl | |
--type-set=nib=.xib | |
--type-set=plist=.plist | |
--type-set=tmstuff=.tmproj,.tm_build_errors | |
--type-set=ignorables=.log,.tmp,.pdf | |
--noignorables | |
--nonib |
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
set :application, "new-vegas" | |
set :repository, "git@github.com:mdominiak/new-vegas.git" | |
set :scm, :git | |
set :host, "newvegas.vault106.com" | |
set :user, "deploy" | |
set :use_sudo, false | |
set :deploy_to, "/home/deploy/new-vegas/production" | |
role :web, host |
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
### RAILS SHORTCUT GLORY | |
# | |
# printf "\033[0m0 All attributes off\033[0m\n" | |
# printf "\033[1m1 Bold\033[0m\n" | |
# printf "\033[4m4 Underline\033[0m\n" | |
# printf "\033[5m5 Blink\033[0m\n" | |
# printf "\033[7m7 Invert\033[0m\n" | |
# printf "\033[8m8 Hide\033[0m8 = Hide\n" | |
# printf "\033[30m30 Black\033[0m30 = Black\n" |
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
RUBY_HEAP_MIN_SLOTS=500000 | |
RUBY_HEAP_SLOTS_INCREMENT=250000 | |
RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
RUBY_GC_MALLOC_LIMIT=50000000 |
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
RUBY_HEAP_MIN_SLOTS=600000 | |
RUBY_GC_MALLOC_LIMIT=59000000 | |
RUBY_HEAP_FREE_MIN=100000 |
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
Feature: Notify admin when new company added | |
In order to manage registration | |
As an admin | |
I want to be notified by email about new company added | |
Scenario: Notify admin about new company | |
Given they have no companies | |
When they create company titled MailChimp | |
Then I should receive an email with subject "Please moderate company ExampleInc" | |
When I open the email with subject "Please moderate company ExampleInc" |
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
# see http://forrst.com/posts/Setting_up_SASS_on_Heroku-4dZ | |
# You can put this in config/initializers/sass.rb | |
# Setup directory in tmp/ to dump the generated css into | |
require "fileutils" | |
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets", "generated")) | |
# Tell SASS to use the .sass files in public/stylesheets/sass and | |
# output the css to tmp/stylesheets/generated |
OlderNewer