Mat Schaffer matschaffer

View gist:5366510
1 2 3 4 5 6 7 8 9
> java -cp ./bin/validate.jar x.alert.Validate input_file 1 ↵
Exception in thread "main" java.lang.NoClassDefFoundError: x/alert/Validate
Caused by: java.lang.ClassNotFoundException: x.alert.Validate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
View gist:5366490
1 2 3 4 5 6 7 8 9
╰─> java -cp ./bin/validate.jar x.alert.Validate input_file 1 ↵
Exception in thread "main" java.lang.NoClassDefFoundError: x/alert/Validate
Caused by: java.lang.ClassNotFoundException: x.alert.Validate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
View remove.js
1 2 3
$(".subscription-row:contains('someOrg')").each(function() {
$($(this).find('.minibutton')[0]).click();
});
View namespace_example.rb
1 2 3 4 5 6 7 8 9 10
# pipe/base.rb
module Pipe
class Base
def flow
end
end
end
 
# pipe/email_pipe.rb
require 'pipe/base'
View gist:5355277
1 2 3 4 5 6 7 8 9 10
ReverseProxySpec > accepts a base and target FAILED
Condition not satisfied:
 
proxy.base == "/somethingNotRight"
| | |
| | false
| | 12 differences (33% similarity)
| | /some(Ap)i(----------)
| | /some(th)i(ngNotRight)
| /someApi
View override.rb
1 2 3 4 5 6 7 8 9 10
class Parent
def some_overriden_method(a,b,c)
a + b + c
end
end
 
class Child < Parent
def some_overriden_method(*)
puts super
end
View gist:5164639
1 2 3 4 5 6 7 8 9 10
╰─ redis-cli -h ec2-54-234-243-184.compute-1.amazonaws.com -p 22121
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> get foo
"bar"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1]}" 1 foo
1) "foo"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key1 key1
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key2 key2
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second
View gist:5156330
1 2 3 4 5 6 7 8 9 10
[2013-03-13T21:13:23+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
 
Called from:
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node.rb:346:in `send'
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node.rb:346:in `method_missing'
View pseudo.java
1 2 3 4 5 6 7 8 9
// Make a sum and count variable
 
for (/* i from 0 to 2 */) {
// read user input
// add to sum
// increment count
}
 
//print sum and sum / count
View gist:5064531
1 2 3 4 5 6 7 8 9
╭─@schaffer2.local ~/code/knife-solo ‹ruby-1.9.3› ‹command-messaging›
╰─ rake
Run options: --seed 59003
 
# Running tests:
 
................................................F..................................
 
Finished tests in 0.496384s, 167.2093 tests/s, 269.9523 assertions/s.
Something went wrong with that request. Please try again.