Skip to content

Instantly share code, notes, and snippets.

View harin's full-sized avatar
🎯
Focusing

Harin Sanghirun harin

🎯
Focusing
View GitHub Profile
@harin
harin / README.md
Created November 19, 2015 06:56 — forked from wrburgess/README.md
How to add a custom calculator for shipping or taxes to Spree
  1. Add initializer to config/application.rb
  2. Add new class to app/models/spree/calculators/[class_name].rb
  3. Add logic to class file

Class must have the following methods:

def self.description
  "Custom FlexiRate"
end
@harin
harin / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console