This file contains hidden or 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
<script> | |
$(function() { | |
$('input#feature_headline').change(function () { | |
alert('foo'); | |
var str = ""; | |
str = $(this).text(); | |
str = str.toLowerCase().replace(/ /g, '-'); | |
$('input[name="feature[slug]"]').val(str); | |
}) | |
}) |
This file contains hidden or 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
def new | |
@image = Image.new | |
respond_with @image | |
end |
This file contains hidden or 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
<script type="text/javascript" charset="utf-8"> | |
function handleEvent(event) | |
{ | |
var value = event.target.value, | |
type = getCreditCardType(value); | |
switch (type) | |
{ | |
case "mastercard": | |
//show MasterCard icon |
This file contains hidden or 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
<script type="text/javascript" charset="utf-8"> | |
function getCreditCardType(accountNumber) | |
{ | |
//start without knowing the credit card type | |
var result = "unknown"; | |
//first check for MasterCard | |
if (/^5[1-5]/.test(accountNumber)) | |
{ |
This file contains hidden or 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
background-image: -moz-linear-gradient(-45deg, | |
rgba(255, 255, 255, 0.15) 77%, | |
transparent 77%, | |
transparent 79%, | |
rgba(255, 255, 255, 0.15) 79%, | |
rgba(255, 255, 255, 0.15) 81%, | |
transparent 81%, | |
transparent 83%, | |
rgba(255, 255, 255, 0.15) 83%, | |
rgba(255, 255, 255, 0.15) 85%, |
This file contains hidden or 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
triggering after callbacks for `deploy:cleanup' | |
* 2013-01-10 13:28:13 executing `deploy:assets:clean_expired' | |
* executing "for manifest in /var/www/railsapps/meticulous_admin/releases/*/assets_manifest.yml; do cat -- \"$manifest\" 2> /dev/null && printf ':::' || true; done" | |
servers: ["67.23.20.48"] | |
[67.23.20.48] executing command | |
** Fetched 3 manifests from /var/www/railsapps/meticulous_admin/releases/*/assets_manifest.yml | |
/Users/jathayde/.rvm/gems/ree-1.8.7-2012.02@meticulous/gems/capistrano-2.14.1/lib/capistrano/recipes/deploy/assets.rb:113:in `load': undefined method `flat_map' for #<Array:0x1091d9ed0> (NoMethodError) | |
from /Users/jathayde/.rvm/gems/ree-1.8.7-2012.02@meticulous/gems/capistrano-2.14.1/lib/capistrano/recipes/deploy/assets.rb:111:in `each' | |
from /Users/jathayde/.rvm/gems/ree-1.8.7-2012.02@meticulous/gems/capistrano-2.14.1/lib/capistrano/recipes/deploy/assets.rb:111:in `load' | |
from /Users/jathayde/.rvm/gems/ree-1.8.7-2012.02@meticulous/gems/capistrano-2.14.1/lib/capistrano/co |
This file contains hidden or 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
jathayde$ script/boxen --debug | |
/opt/boxen/repo/bin/librarian-puppet install --path=/opt/boxen/repo/shared --verbose | |
[Librarian] Ruby Version: 2.0.0 | |
[Librarian] Ruby Platform: universal.x86_64-darwin13 | |
[Librarian] Rubygems Version: 2.0.3 | |
[Librarian] Librarian Version: 0.0.24 | |
[Librarian] Librarian Adapter: puppet | |
[Librarian] Project: /Users/jathayde/Development/CargoSense/our-boxen | |
[Librarian] Specfile: Puppetfile | |
[Librarian] Lockfile: Puppetfile.lock |
This file contains hidden or 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
Boxen has a dirty tree, won't auto-update! | |
Notice: Compiled catalog for johns-mbp.pk5001z in environment production in 3.04 seconds | |
Notice: /Stage[main]//Node[default]/File[/Users/jathayde/src/our-boxen]: Not removing directory; use 'force' to override | |
Notice: /Stage[main]//Node[default]/File[/Users/jathayde/src/our-boxen]: Not removing directory; use 'force' to override | |
Error: Could not remove existing file | |
Error: /Stage[main]//Node[default]/File[/Users/jathayde/src/our-boxen]/ensure: change from directory to link failed: Could not remove existing file | |
Error: Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /tmp/d20131201-67990-1w379sh/Firefox-Nightly' returned 1: hdiutil: mount failed - image not recognized | |
Error: /Stage[main]/Firefox::Nightly/Package[Firefox-Nightly]/ensure: change from absent to present failed: Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /tmp/d20131201-67990-1w379sh/Firefox-Nightly' returned 1: hdiutil: mount failed - |
This file contains hidden or 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
jathayde$ boxen --debug | |
/opt/boxen/repo/bin/librarian-puppet install --path=/opt/boxen/repo/shared --verbose | |
[Librarian] Ruby Version: 2.0.0 | |
[Librarian] Ruby Platform: universal.x86_64-darwin13 | |
[Librarian] Rubygems Version: 2.0.3 | |
[Librarian] Librarian Version: 0.0.24 | |
[Librarian] Librarian Adapter: puppet | |
[Librarian] Project: /opt/boxen/repo | |
[Librarian] Specfile: Puppetfile | |
[Librarian] Lockfile: Puppetfile.lock |
This file contains hidden or 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
12:03:56 web.1 | /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/ffi-1.9.3/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open library 'sodium': dlopen(sodium, 5): image not found. (LoadError) | |
12:03:56 web.1 | Could not open library 'libsodium.dylib': dlopen(libsodium.dylib, 5): image not found | |
12:03:56 web.1 | from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/ffi-1.9.3/lib/ffi/library.rb:100:in `map' | |
12:03:56 web.1 | from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/ffi-1.9.3/lib/ffi/library.rb:100:in `ffi_lib' | |
12:03:56 web.1 | from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rbnacl-2.0.0/lib/rbnacl/sodium.rb:9:in `extended' | |
12:03:56 web.1 | from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rbnacl-2.0.0/lib/rbnacl/sodium/version.rb:8:in `extend' | |
12:03:56 web.1 | from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rbnacl-2.0.0/lib/rbnacl/sodium/version.rb:8:in `<module:Version>' | |
12:03:56 web. |