Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile
@jathayde
jathayde / Rspec output
Created October 12, 2017 19:09
Rspec error on issue
Failures:
1) Issue#ordered_issues issue_type abbreviation sorts in A, B, C order, then numerics ascending
Failure/Error: self.combined = "#{issue_type.abbreviation}#{issue_number}#{variety}"
NoMethodError:
undefined method `abbreviation' for nil:NilClass
# ./app/models/issue.rb:126:in `set_combined'
# ./spec/models/issue_spec.rb:109:in `block (4 levels) in <top (required)>'
# -e:1:in `<main>'

Keybase proof

I hereby claim:

  • I am boboroshi on github.
  • I am johnathayde (https://keybase.io/johnathayde) on keybase.
  • I have a public key ASCJYNTZ9-UO2E4bjd2qMlEegaVqSTtq9fyyDnQbXAXPBAo

To claim this, I am signing this object:

@jathayde
jathayde / _mixin_verticalLoop.scss
Created July 13, 2016 13:29
A SCSS loop to combine verticals (product offerings) with icons and color backgrounds.
@mixin verticalLoop($vertical) {
$vertical-image-path: "#{$image-path-content}/icons/verticals/";
@each $color in color-black, color-white, color-honeycomb, color-clementine,
color-slushie, color-frosting, color-aloe, color-berry, color-wasabi,
color-grape, color-spice, color-wine, color-whale, color-honeycombLight,
color-clementineLight, color-slushieLight, color-frostingLight,
color-teaLight, color-berryLight, color-grapeLight, color-grayLightest,
color-grayLighter, color-grayLight, color-gray, color-grayDark,
color-grayDarker, color-grayDarkest {
&.vertical-icon {
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.
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
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 -
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
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
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%,
<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