Skip to content

Instantly share code, notes, and snippets.

View joshRpowell's full-sized avatar
🏠
Working from home

Josh Powell joshRpowell

🏠
Working from home
  • Fort Lauderdale, FL
View GitHub Profile
@joshRpowell
joshRpowell / all.js
Created July 25, 2016 19:08
backend/all.js
//= require jquery2
//= require jquery_ujs
//= require spree/backend
//= require_tree .
source 'https://rubygems.org'
ruby '2.3.1'
gem 'rails', '4.2.6'
gem 'spree', '~> 3.1.0'
gem 'spree_gateway', '~> 3.1.0'
@joshRpowell
joshRpowell / example.md
Created July 19, 2016 01:23 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>
@joshRpowell
joshRpowell / spreadsheet-examples.rb
Created July 6, 2016 14:45 — forked from thebinarypenguin/spreadsheet-examples.rb
Read and write spreadsheets with ruby using the spreadsheet gem
# Read and write spreadsheets with ruby using the spreadsheet gem
# Full Docs: http://spreadsheet.rubyforge.org/GUIDE_txt.html
require 'spreadsheet'
# Open source spreadsheet
workbook = Spreadsheet.open 'source.xls'
# READ
@joshRpowell
joshRpowell / table_to_csv.rb
Last active August 27, 2015 12:03 — forked from sandys/table_to_csv.rb
convert a html table to CSV using ruby
# run using ```rvm jruby-1.6.7 do jruby "-J-Xmx2000m" "--1.9" tej.rb```
require 'rubygems'
require 'nokogiri'
require 'csv'
f = File.open("/tmp/preview.html")
doc = Nokogiri::HTML(f)
csv = CSV.open("/tmp/output.csv", 'w',{:col_sep => ",", :quote_char => '\'', :force_quotes => true})