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
# in your code | |
binding.pry | |
# pry console | |
require 'factory_girl' | |
require 'spree/testing_support/factories' # spree core factories | |
FactoryGirl.find_definitions # extension factories | |
# orders | |
FactoryGirl.create :order_with_totals |
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
# Navigating | |
visit '/projects' | |
visit post_comments_path(@post) | |
# Clicking links and buttons | |
click_link 'id_of_link' | |
click_link 'Link Text' | |
click_button 'Save' |
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
/** | |
* Letterpress text Fx | |
* Issue: text shadow need to go on inside. | |
*/ | |
@font-face { | |
font-family: 'LeagueGothicRegular'; | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.eot'); | |
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.eot?iefix') format('eot'), | |
url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/league_gothic-webfont.woff') format('woff'), |
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
/** | |
* Letterpress text Fx | |
* Issue: text shadow need to go on inside. | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Monofett|Crushed|Voces|Quattrocento|Open+Sans|Play|Yanone+Kaffeesatz|Carrois+Gothic+SC|Zeyada|Covered+By+Your+Grace|Allura); | |
body { | |
text-align:center; | |
background: url(http://www.midwinter-dg.com/blog_demos/css-text-shadows/images/letterpress.gif) repeat; |
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
# Borrowed from https://github.com/y310/rspec-retry/blob/master/lib/rspec/retry.rb | |
# Drop this script into spec/support | |
# To test snippet just set timeout to 1 | |
RSpec.configure do |config| | |
Capybara.javascript_driver = :poltergeist | |
Capybara.register_driver(:poltergeist) do |app| | |
Capybara::Poltergeist::Driver.new app, |
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
date -n +%Y%m%d%H%M%S |
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
cd /Users/<user>/.rbenv/versions/<version>/gemsets/<project>/gems/ | |
grep -ir <search string> * |
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
//---------------------------------- | |
// myDevices Cloud API sample code | |
//---------------------------------- | |
// Use rather request than https | |
const Http = require('https'); | |
const Util = require('util'); | |
const API_HOST = 'va-staging-corridor.mydevices.com'; | |
const API_PORT = 443; |
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
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
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
// ----------------------------------------------------------------------------- | |
// Vue: Forage Adapter | |
// | |
// @example | |
// | |
// import VueForage from "services/vueforage" | |
// | |
// Vue.use(VueForage) | |
// | |
// this.$vueForage.creageInstance({ |