#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.
| " 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 |
#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.
https://github.com/visionmedia/histo displays graphs based on stdin
| # Show sizes of log files | |
| find . -iname '*log' -type f | xargs ls -lhaSr |
| 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 |
| 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 |
| 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 |
| require 'net/http' | |
| (1..20).each do |i| | |
| response = Net::HTTP.get_response(URI("http://kyan.com")) | |
| puts "#{i}: #{response.code}" | |
| end |
| require "eventmachine" | |
| require "em-http-request" | |
| EventMachine.run do | |
| sites = ["http://kyan.com"] * 20 | |
| sites.each_with_index do |site,i| | |
| http = EM::HttpRequest.new(site).get | |
| http.callback do |
| require "eventmachine" | |
| require "em-http-request" | |
| EventMachine.run do | |
| sites = ["http://kyan.com"] * 20 | |
| sites.each_with_index do |site,i| | |
| http = EM::HttpRequest.new(site).get | |
| http.callback do |