I hereby claim:
- I am alevy on github.
- I am amit (https://keybase.io/amit) on keybase.
- I have a public key whose fingerprint is 5F32 9878 D080 3479 F0F6 162A A60A BEE4 AD8E C024
To claim this, I am signing this object:
#![feature(asm, lang_items, naked_functions)] | |
#![no_std] | |
#![no_main] | |
#[lang = "panic_fmt"] | |
#[no_mangle] | |
fn rust_begin_panic(_msg: core::fmt::Arguments, _file: &'static str, _line: u32) -> ! { | |
loop {} | |
} |
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:
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.
#!/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" |
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) { |
package main | |
import ( | |
"net" | |
"log" | |
) | |
func main() { | |
listener, err := net.Listen("tcp", ":8080") | |
if err != nil { |
I hereby claim:
To claim this, I am signing this object:
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 |