Skip to content

Instantly share code, notes, and snippets.

View steverob's full-sized avatar

Steve Robinson steverob

View GitHub Profile
@steverob
steverob / podfile
Last active May 16, 2018 14:12
Error log
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'ShowdownLive' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for ShowdownLive
pod 'AppCenter/Crashes', '~> 1.5.0'
class Filters extends React.Component {
render() {
return (
<>
<PriceFilter price={this.props.filterSelections.price} />
<AgeFilter ages={this.props.filterSelections.ages} />
<BrandFilter brands={this.props.filterSelections.brands} />
</>
);
};
@steverob
steverob / jquery.fileupload-beforeadd.js
Created September 4, 2017 17:15
jQuery File Upload BeforeAdd Hook
/*
* jQuery File Upload Processing Plugin
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
*/
fn main() {
println!("Hello World!");
}

Keybase proof

I hereby claim:

  • I am steverob on github.
  • I am steverobinson (https://keybase.io/steverobinson) on keybase.
  • I have a public key whose fingerprint is 060B 9C31 A0B2 EF01 CE12 4F80 937D 327A 9EE3 EF89

To claim this, I am signing this object:

@steverob
steverob / branchout.rs
Last active March 23, 2017 15:36
Option post - Rust Adventures
match find_index(names, element) {
Some(i) => println!("Name is at {}", i),
None => println!("Name is not found"),
}
@steverob
steverob / heavy_worker.rb
Last active February 25, 2017 09:47
Simple Ruby Code
class HeavyWorker
def work
500.times {|i| i.times {} }
more_work
end
def more_work
500.times {|i| i.times {} }
end
end
@steverob
steverob / good.rb
Created October 23, 2016 20:00
Recommended commenting style for Debtrakr
#FIXME spelling of world possibly wrong?
def hello_world
puts 'hello, worrld'
end
#FIXME meaningless!
def foo
puts 'bar'
end
@steverob
steverob / not_good.rb
Created October 23, 2016 19:57
Commenting style that's not recommended
#FIXME
def hello_world
puts 'hello, worrld'
end
#FIXME
def foo
puts 'bar'
end
@steverob
steverob / test_case.rb
Created July 28, 2016 16:50
Ambiguous field exception in AR
class Foo
has_many :bazs
has_many :bars, through: :bazs
end
class Baz
belongs_to :foo
has_many :bars
end