-
"Aggressive Type Inference", John Aycock: http://www.python.org/workshops/2000-01/proceedings/papers/aycock/aycock.html
-
"Soft Typing", Robert Cartwright & Mike Fagan: http://courses.cs.ut.ee/2006/types/uploads/Main/cartwright91soft.pdf
-
"Profile-Guided Static Typing for Dynamic Scripting Languages", Michael Furr Jong-hoon (David) An Jeffrey S. Foster: http://www.cs.umd.edu/~jfoster/papers/cs-tr-4935.pdf
-
"Automated Whitebox Fuzz Testing" - Godefroid, Levin, Molnar:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'boot' | |
db = Sequel.connect(ENV['DATABASE_URL']) | |
Urls.attach_db(db[:urls]) | |
run UrlShortener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep -r ':nodoc:' . | |
Binary file ./.git/objects/pack/pack-c68551034ab92084bc1c3bf0bbca075bcd59b599.pack matches | |
./actionmailer/lib/action_mailer/base.rb: def _protected_ivars # :nodoc: | |
./actionmailer/lib/action_mailer/base.rb: private_class_method :new #:nodoc: | |
./actionmailer/lib/action_mailer/base.rb: def deliver_mail(mail) #:nodoc: | |
./actionmailer/lib/action_mailer/base.rb: def respond_to?(method, include_private = false) #:nodoc: | |
./actionmailer/lib/action_mailer/base.rb: def set_payload_for_mail(payload, mail) #:nodoc: | |
./actionmailer/lib/action_mailer/base.rb: def method_missing(method_name, *args) # :nodoc: | |
./actionmailer/lib/action_mailer/base.rb: def process(method_name, *args) #:nodoc: | |
./actionmailer/lib/action_mailer/base.rb: class NullMail #:nodoc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
fs.mkdirSync('lib'); | |
fs.mkdirSync('lib/foo'); | |
// turn off camelcase check for .eslintrc | |
fs.writeFileSync('.eslintrc', '{ "rules": { "camelcase": 0 } }'); | |
// this file should not raise error, not inside of lib/foo/* | |
fs.writeFileSync('lib/foo.js', 'var not_camelcase = 0;'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AWS = require('aws-sdk'); | |
var s3 = new AWS.S3(); | |
var Q = require('q'); | |
var list = Q.nbind(s3.listBuckets.bind(s3)); | |
list().then(function(data) { | |
console.log(data); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AWS SDK for JavaScript v2.0.0-rc8 | |
// Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt | |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
},{}],2:[function(require,module,exports){ | |
var Buffer = require('buffer').Buffer; | |
var intSize = 4; | |
var zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0); | |
var chrsz = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ROLE=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/) | |
$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/$ROLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rspec', git: 'git://github.com/rspec/rspec' | |
gem 'rspec-core', git: 'git://github.com/rspec/rspec-core' | |
gem 'rspec-mocks', git: 'git://github.com/rspec/rspec-mocks' | |
gem 'rspec-expectations', git: 'git://github.com/rspec/rspec-expectations' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'pry' | |
Pry.config.prompt = [proc { "AWS> " }, proc { "AWS| " }] | |
AWS.pry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Helper | |
def help | |
puts "Hello," | |
super | |
end | |
end | |
class Foo | |
def help | |
puts "Do you need help?" |