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
    
  
  
    
  | #!/bin/bash | |
| # Open current directory in forklift | |
| # Adapted from https://gist.github.com/elentok/6218781 | |
| # Adapted from comment https://gist.github.com/elentok/6218781#comment-891115 | |
| # Added optional path argument and removed using the clipboard buffer. | |
| set -e | |
| if [ -z "$@" ]; then | 
  
    
      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
    
  
  
    
  | # Pry hack to show execution time | |
| Pry.class_eval do | |
| # Perform a read-eval-print. | |
| # If no parameter is given, default to top-level (main). | |
| # @param [Object, Binding] target The receiver of the read-eval-print | |
| # @example | |
| # Pry.new.rep(Object.new) | |
| def rep(target=TOPLEVEL_BINDING) | |
| target = Pry.binding_for(target) | |
| result = re(target) | 
  
    
      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
    
  
  
    
  | ## Clear the processed stats | |
| Sidekiq.redis {|c| c.del('stat:processed') } | |
| ## Clear the failed stats | |
| Sidekiq.redis {|c| c.del('stat: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
    
  
  
    
  | option_type = Spree::OptionType.where(name: opt_name).first_or_initialize do |o| | |
| o.presentation = opt_name | |
| o.save! | |
| 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
    
  
  
    
  | $(document).ready(function() { | |
| // Fix for bootstrap remote add-ons | |
| $('[data-remote="true"][data-toggle="modal"]').on('click', | |
| function(e) { | |
| var $this = $(this) | |
| var $remote = $this.attr('href') | |
| var $modal = $($this.data('target') + ' .modal-content'); | |
| console.log($this); | |
| console.log($remote); | |
| $modal.load($remote); | 
  
    
      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
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |