https://github.com/visionmedia/histo displays graphs based on stdin
This file contains hidden or 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 "eventmachine" | |
EventMachine.run do | |
EM.add_periodic_timer(0.1) do | |
puts "Hello from A" | |
end | |
EM.add_periodic_timer(0.1) do | |
EM.defer do |
This file contains hidden or 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
select count(results.versionid) as c, results.* from | |
(select t.versionid, max(t_make.stringproperty) as make_string, max(t_model.stringproperty) as model_string, max(t_lens.stringproperty) as lens_string from rkexifstringproperty t | |
left outer join (select stringProperty, modelid from rkuniquestring) t_model on (t_model.modelid = t.stringid and t.propertykey = 'Model') | |
left outer join (select stringProperty, modelid from rkuniquestring) t_make on t_make.modelid = t.stringid and t.propertykey = 'Make' | |
left outer join (select stringProperty, modelid from rkuniquestring) t_lens on t_lens.modelid = t.stringid and t.propertykey = 'LensModel' | |
/*where propertykey = 'Model' /* use any of 'LensModel', 'Model' */ | |
group by t.versionid) results | |
group by results.lens_string, results.model_string |
This file contains hidden or 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
class Nyx < RTanque::Bot::Brain | |
NAME = 'nyx' | |
include RTanque::Bot::BrainHelper | |
attr_accessor :target, :previous_target, :projected_target_heading | |
def tick! | |
seek_radar | |
if target = nearest_target |
This file contains hidden or 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
# Show sizes of log files | |
find . -iname '*log' -type f | xargs ls -lhaSr |
#EDITING
add [tags] [attrs] description Adds a new task to the task list.
log [tags] [attrs] description Adds a new completed task to the task list.
append [tags] [attrs] description Appends information to an existing task description.
This file contains hidden or 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
" Autocmds to switch number mode based on Vim Mode | |
autocmd InsertEnter * :set number | |
autocmd InsertLeave * :set relativenumber | |
" function switch number mode | |
function! ToggleLineNumbers() | |
if &number == 1 | |
set relativenumber | |
else |
NewerOlder