Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="vulnerabilities-list.xsl" type="text/xsl" ?>
<netsparker generated="12/8/2016 2:56:36 PM">
<target>
<url>http://localhost:3000/</url>
<scantime>18</scantime>
</target>
<vulnerability confirmed="True">
<url>http://localhost:3000/login</url>
@george-carlin
george-carlin / dry_validation_matchers.rb
Created December 1, 2016 01:09
simple RSpec matchers for testing dry-validation schemas
# example usage:
#
# Schema = ::Dry::Validation.Schema do
# required(:foo).filled
# required(:bar).maybe
# optional(:fizz).filled
# optional(:buzz).maybe
# end
#
# describe Schema do
@george-carlin
george-carlin / return_demo.rb
Created February 2, 2015 19:53
Return demo
def implicit_return
"I <3 Ruby"
end
def name_of_germany_in(language)
if language == "German"
"Deutschland"
elsif language == "English"
"Germany"
elsif language == "French"