Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile

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 {
def legend_html
if render_label?
template.content_tag(:legend, label_text)
else
"".html_safe
end
end
@jathayde
jathayde / gist:11222235
Created April 23, 2014 16:24
keybase.md
### Keybase proof
I hereby claim:
* I am boboroshi on github.
* I am johnathayde (https://keybase.io/johnathayde) on keybase.
* I have a public key whose fingerprint is E9C8 C72A DF6A C118 850C 8622 C966 6A6E 5075 F63F
To claim this, I am signing this object:
@jathayde
jathayde / Gemfile
Created April 10, 2014 18:44
SUSY 2 with Rails 3.2.x
#
# This uses Ruby 2.x and Rails 3.2.16
group :assets do
gem "sass", "~> 3.3.2"
gem 'sass-rails', '~> 3.2.6'
gem 'autoprefixer-rails', '~>1.0'
gem 'coffee-rails', '~> 3.2.1'
gem 'compass', '1.0.0.alpha.18'
gem 'compass-rails', '~> 1.1.3'
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