Pop Quiz:
- Do you like the scent of skunks?
- Do you like fleas?
- Do you really like the things you hate?
- Do you really like the things you really hate?
### Keybase proof | |
I hereby claim: | |
* I am kotp on github. | |
* I am kotp (https://keybase.io/kotp) on keybase. | |
* I have a public key ASAZ-2QjHxmrp0drjwUoaSzV7bXnawAQN94aXJuRAbsQpgo | |
To claim this, I am signing this object: |
if has("cscope") | |
"TODO: turn this all into a plugin. | |
set nocscopetag | |
set cscopequickfix=s-,c-,d-,i-,t-,e- | |
set nocscopeverbose | |
if filereadable(".git/cscope.out") | |
cscope add .git/cscope.out | |
endif | |
set cscopeverbose |
require 'time' | |
get_time = ->(t) { [t.iso8601, t.usec] } | |
report = 'something to report with a detailed time: %s' | |
puts report % get_time[Time.now] | |
Pop Quiz:
I hereby claim:
To claim this, I am signing this object:
class Float | |
def near_enough?(other, epsilon = Float::EPSILON) | |
(self - other.to_f).abs < epsilon.to_f | |
end | |
end |
puts "Loading global_var.rb" | |
GlobalConstant = 'GlobalConstant' | |
$GlobalConstant_WithDollarSign = 'Global Constant with Dollar Sign' | |
module SharedVar | |
NAMESPACED_CONSTANT = 'Named spaced constant' | |
def your_method | |
"Whatever your method would be." | |
end |
A collection of exercises and answers.
Package files: | |
100 /var/lib/dpkg/status | |
release a=now | |
500 http://download.webmin.com/download/repository/ sarge/contrib Packages | |
release v=3.1,o=Jamie Cameron,a=stable,n=sarge,l=Webmin,c=contrib | |
origin download.webmin.com | |
500 http://security.ubuntu.com/ubuntu/ lucid-security/universe Packages | |
release v=10.04,o=Ubuntu,a=lucid-security,n=lucid,l=Ubuntu,c=universe | |
origin security.ubuntu.com | |
500 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Packages |
#!/usr/bin/env ruby | |
# require 'test/unit' | |
require 'minitest/spec' | |
Columns= 3 | |
def column_check | |
if @column_count == Columns | |
puts | |
@column_count = 0 | |
end |