Skip to content

Instantly share code, notes, and snippets.

View covard's full-sized avatar
💾

Curtis Ovard covard

💾
  • Salt Lake City, Utah
View GitHub Profile
require 'roo'
# Spreadsheet courtesy of the A List Apart 2010 Web Design Survey:
# http://www.alistapart.com/articles/survey2010
workbook = Excel.new('a-list-apart-web-design-survey-sample.xls')
# Set the worksheet you want to work with as the default worksheet. You could
# also iterate over all the worksheets in the workbook.
workbook.default_sheet = workbook.sheets[0]
@covard
covard / Gemfile
Created July 11, 2013 15:40 — forked from beneggett/Gemfile
group :development do
gem "pry"
gem "powder"
gem "letter_opener"
gem "better_errors", ">= 0.7.2"
gem "binding_of_caller", ">= 0.7.1"
gem 'meta_request'
gem "html2haml", ">= 1.0.1"
gem 'guard'
gem 'rb-fsevent', require: false
@covard
covard / git_repo_dropbox
Last active December 20, 2015 06:19 — forked from nvk/readme
Create a git repo on dropbo.
### Instructions source http://tumblr.intranation.com/post/766290743/using-dropbox-git-repository ####
-- make empty repo on dropbox:
cd ~/Dropbox/RipeApps/Git
mkdir -p newname.git
cd !$
git --bare init
-- push your junk into it
cd ~/Projects/myrepo
@covard
covard / nokogiri_install
Created July 11, 2019 21:26 — forked from sobstel/nokogiri_install
nokogiri -> ERROR: cannot discover where libxml2 is located on your system
# `ERROR: Error installing nokogiri:
# ERROR: Failed to build gem native extension.
#
# current directory: /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/nokogiri-1.7.0/ext/nokogiri
# /usr/local/var/rbenv/versions/2.3.1/bin/ruby -r ./siteconf20170103-68488-r71c9j.rb extconf.rb --with-xml=/usr/local/Cellar/libxml2/ --use-system-libraries
# checking if the C compiler accepts ... yes
# checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
# Building nokogiri using system libraries.
# ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed.
# *** extconf.rb failed ***
@covard
covard / gist:4b5509296f95c403658c998540d60759
Created May 21, 2020 21:52 — forked from ramonsmits/gist:7563502
Example of Mandrill webhook JSON data.
[
{
"event": "send",
"msg": {
"ts": 1365109999,
"subject": "This an example webhook message",
"email": "[email protected]",
"sender": "[email protected]",
"tags": [
"webhook-example"