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/sh | |
export ORACLE_HOME=/usr/lib/oracle/11.1/client | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib | |
export PATH=$PATH:$ORACLE_HOME/bin | |
exec "/usr/bin/ruby" "$@" |
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
# config/initializers/mongrel.rb | |
# This will make Mongrel the default server in development | |
module Rack | |
module Handler | |
def self.default(options = {}) | |
# Guess. | |
if ENV.include?("PHP_FCGI_CHILDREN") | |
# We already speak FastCGI | |
options.delete :File | |
options.delete :Port |
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
# User | |
user = YOUR_EMAIL_ADDRESS_FOR_PANDORA_ACCOUNT | |
password = YOUR_PASSWORD_FOR_PANDORA_ACCOUNT | |
# Misc | |
event_command = /YOUR_PATH_TO_HOME_FOLDER/.config/pianobar/pianobar-lastfm.rb | |
audio_quality = high | |
rpc_host = tuner.pandora.com | |
tls_fingerprint = 2D0AFDAFA16F4B5C0A43F3CB1D4752F9535507C0 |
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
require 'rspec/core/rake_task' | |
orm_setting = Rails.configuration.generators.options[:rails][:orm] | |
spec_prereq = if(orm_setting == :active_record) | |
Rails.configuration.active_record[:schema_format] == :sql ? "db:test:clone_structure" : "db:test:prepare" | |
else | |
:noop | |
end | |
namespace :spec do | |
[:requests, :models, :controllers, :views, :helpers, :mailers, :lib, :routing].each do |sub| | |
dn = "#{File.expand_path(::Rails.root.to_s)}/spec/#{sub}" |
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
.gecko .gform_body input[type='text'] { | |
height: inherit; | |
padding: 5px; | |
} |
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
/* this animation is for progress bars that are not active */ | |
.progress.auto-progress > .bar { | |
-webkit-animation: progress-bar-auto 2s linear infinite; | |
-moz-animation: progress-bar-auto 2s linear infinite; | |
-ms-animation: progress-bar-auto 2s linear infinite; | |
-o-animation: progress-bar-auto 2s linear infinite; | |
animation: progress-bar-auto 2s linear infinite; | |
} | |
/* this animation is for progress bars that are active */ |
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
// run this after pageload/DOM ready | |
// this will modify HTML generated by Ruby on Rails :error_messages_for helper method | |
function jqmify_error_messages_for() { | |
var sel = $("div.errorExplanation"); | |
if (sel.length>0) { | |
sel.parent().addClass("ui-body").addClass("ui-body-e"); | |
sel.attr('data-role','collapsible') | |
.attr('data-theme','e') | |
.collapsible() | |
.trigger('expand'); |
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
var default_msg = $.mobile.loadingMessage; // set this outside function scope so we can access it later | |
// you must provide a msg argument. The delay and theme arguments are optional. | |
function show_hide_message = function(msg,delay,theme) { | |
if (typeof(delay)==='undefined') { | |
var delay = 3500; // in milliseconds | |
} | |
if (typeof(theme)==='undefined') { | |
var theme = 'a'; // default theme; setting this to 'e' is nice for error messages | |
} |
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
@media all and (max-width: 450px){ | |
.ui-field-contain, .ui-mobile fieldset.ui-field-contain { | |
border-width: 0 !important; | |
padding: 0 !important; | |
margin: 1em 0 !important; | |
} | |
} |
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
.ui-hide-label .ui-show-label label { | |
/* show a label nested within a hide label */ | |
position: relative !important; | |
left: auto !important; | |
clip: auto !important; | |
} |