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:
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
. Callback
s encode the process that invoked the syscall, and
the function pointer passed as a callback. Callback
s also act as a capability to allocate memory from the application's
heap space.
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| |
I hereby claim:
To claim this, I am signing this object:
target remote :2331 | |
file build/storm/kernel.elf | |
monitor reset |
I hereby claim:
To claim this, I am signing this object: