View keybase.md

Keybase proof

I hereby claim:

  • I am sdball on github.
  • I am sdball (https://keybase.io/sdball) on keybase.
  • I have a public key whose fingerprint is D718 9FCA 7760 1079 3990 C5AE 9337 38E4 021E 0115

To claim this, I am signing this object:

View self_instance_demo.rb
1 2 3 4 5 6 7 8 9 10
class UsingSelf
attr_accessor :a, :b, :c
def initialize(a, b, c)
self.a = a
self.b = b
self.c = c
end
end
 
class UsingInstance
View nil_what_are_you_doing_stahp.rb
1 2 3 4 5 6 7 8 9 10
class NilWhatAreYouDoingStahp
attr_accessor :not_nil
 
def initialize
@not_nil = "I'm not nil! I'm a value!"
end
 
def wat
if not_nil.nil?
not_nil = "Ok, now I'm not nil."
View index.php
1 2 3 4 5 6 7 8 9
<?php
// page setup
require('/www/includes/ipdatabase/ipdb_page.php');
$javascript = '<script type="text/javascript" src="/ipdatabase/js/index.js"></script>';
$page = new IPDB_Page();
$page->title('Main');
$page->javascript($javascript);
View ezproxy_redirect.php
1 2 3 4 5 6 7 8 9 10
<?php
/**
* ezproxy_redirect
*
* EZProxy requires that the username and password be passed via GET.
* This is just about as insecure as possible.
*
* So, we trick ezproxy into security by opening a socket connection
* to the server; acting as a browser to initiate the connection; then
* writing out its response to the actual browser.
View javascript_learning_sources.md
View hardcoded_swap.rb
1 2 3 4 5 6 7 8 9 10
require 'minitest/spec'
require 'minitest/autorun'
 
class String
def one_time_override(method, &override)
self.instance_eval do
def to_s
self.instance_eval do
def to_s
'foo'
View deploy.rb
1 2 3 4 5 6 7 8 9 10
# drop this task in the environment(s) you want to confirm deployment for
 
before :deploy, "deploy:confirm"
 
namespace :deploy do
desc "Should we really deploy?"
task :confirm do
if Capistrano::CLI.ui.ask("Are you sure?") == "yes"
puts "You got it buddy. Imma deploy now."
else
Something went wrong with that request. Please try again.