Skip to content

Instantly share code, notes, and snippets.

View rposborne's full-sized avatar
💭
🍁

Russell Osborne rposborne

💭
🍁
View GitHub Profile
@rposborne
rposborne / fluid.html
Created September 22, 2011 02:34
Example of Error in Bootstrap from Twitter.
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@rposborne
rposborne / gist:3407957
Created August 20, 2012 21:14
Invoices to QBXML
def to_quickbooks_hash
hash = {"invoice_add"=>{
"customer_ref"=>{
"list_id"=> self.order.account.list_id
#"full_name"=> self.order.account.company_name #"Abercrombie, Kristy" #
},
"txn_date"=>Date.today.xmlschema,
"bill_address"=>{
"addr1"=>self.order.address(:billing, :name),
"addr2"=>self.order.address(:billing, :street_1),
@rposborne
rposborne / ectdmd5.rb
Created October 31, 2012 00:51
Verify Checksums in a FDA eCTD Submission
#!/usr/bin/env ruby
#
# Expects path to the root folder of the submission sequence to be passed as param 1
#
# ectdmd5.rb (PATH)
#
args = ARGV.dup
ARGV.clear
@rposborne
rposborne / alphabatizeSelection.vbs
Last active December 18, 2015 10:29
@Scong "really crappy alphabatize"
Sub alphabatizeSelection(Optional control As IRibbonControl)
'almost works
Dim numberOfLines As Integer
Dim selectionArray() As Variant
'Dim iterator As Long: iterator = 0
Dim temprange As Range
Dim temptext As String: temptext = ""
temptext = Selection.Range.Text
@rposborne
rposborne / bootstrap_icon.rb
Last active December 21, 2015 05:28
A quick rails helper for creating bootstrap icons or fontawesome icons (v 2.3.2) It behaves as you would expect handling all HTML options.
#accepts array of string and symbols that will be prepended with 'icon-'
#any hashes will be passed into the content tag call and any additonal classes will be merge into the content_tag class as well
def bootstrap_icon(*args)
icon_words = []
options = {}
args.each do |arg|
if arg.is_a?( String) || arg.is_a?(Symbol)
icon_words << arg
@rposborne
rposborne / mysql2psql.yml
Created January 4, 2014 21:58
Wordpress Mysqltopsql config (fake)
mysql:
hostname: 127.0.0.1
port: 8889
#socket: /tmp/mysql.sock
username: root
password: root
database: burningpony
destination:
# if file is given, output goes to file, else postgres
@rposborne
rposborne / gist:9548642
Last active August 29, 2015 13:57
Trello Fluid Bug
[Error] TypeError: 'undefined' is not an object (evaluating 'this.Notification.all')
initialize (all.js, line 1839)
(anonymous function) (all.js, line 3250)
View (all.js, line 1249)
b (all.js, line 1809)
b (all.js, line 1838)
subview (all.js, line 1809)
topLevelView (all.js, line 3152)
showHeader (all.js, line 3208)
(anonymous function) (all.js, line 3173)
@rposborne
rposborne / Readme
Last active August 29, 2015 14:00 — forked from ludo/kickstart
Kickstart
Don't use pull from the raw gist... It can't be https.
worker: QUEUE=* bundle exec rake environment resque:work
scheduler: bundle exec rake environment resque:scheduler
@rposborne
rposborne / Repair Posterous
Created June 2, 2015 17:24
Repair Posterous Wordpress Export
Correct Timestamps and update images and links to images with a quick script from posterous wordpress export data.
Figured might be useful for someone.