I hereby claim:
- I am alevy on github.
- I am amit (https://keybase.io/amit) on keybase.
- I have the public key with fingerprint 720B 97A3 E367 ACC3 45FC A0FB 68CA AE74 BF7C 250A
To claim this, I am signing this object:
| require 'dalli' | |
| require 'benchmark' | |
| client = Dalli::Client.new | |
| # As an example, generate a large random string | |
| @mylargeobject = (0...5000).map{ ('a'..'z').to_a[rand(26)] }.join | |
| @mykey = "mykey" |
| require 'net/dns' | |
| require 'route53' | |
| def go(recs, type) | |
| recs.each do |record| | |
| rslv = Net::DNS::Resolver.start(record.name, type).answer | |
| found = true | |
| rslv.each do |answer| |
| require 'dalli' | |
| module Dalli | |
| class Client | |
| def set_large(key, val, ttl = 0) | |
| chunk_size = 1024 * 900 | |
| i = 0 | |
| start_idx = 0 | |
| next_chunk = val[start_idx..(start_idx + chunk_size - 1)] | |
| start_idx += chunk_size |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "net" | |
| "log" | |
| ) | |
| func main() { | |
| listener, err := net.Listen("tcp", ":8080") | |
| if err != nil { |
| var cp = require('child_process'); | |
| var children = []; | |
| for (var i = 0; i < 500; i += 1) { | |
| children.push(cp.fork(__dirname + '/test_child.js')); | |
| } | |
| setTimeout(function() { | |
| for (var i = 0; i < children.length; i += 1) { |
| #!/bin/bash | |
| pomodoro_file=$HOME/.pomodoro | |
| default_pomodoro_time=1500 | |
| pomodoro_time=$default_pomodoro_time | |
| default_rest_time=300 | |
| rest_time=$default_rest_time | |
| notify_cmd="notify-send --icon=$HOME/local/share/icons/pomodoro.png Pomodoro" |
Drivers implement the Driver trait --- command and subscribe methods that correspond to command
and subscribe system calls for that driver.
The subscribe system call comes with access to a Callback. Callbacks encode the process that invoked the syscall, and
the function pointer passed as a callback. Callbacks also act as a capability to allocate memory from the application's
heap space.
I hereby claim:
To claim this, I am signing this object:
| target remote :2331 | |
| file build/storm/kernel.elf | |
| monitor reset |