I hereby claim:
- I am l0s on github.
- I am carlosmacasaet (https://keybase.io/carlosmacasaet) on keybase.
- I have a public key whose fingerprint is 5EEE 4C39 273D 5C28 41D7 F777 3C20 05EC 720E 900A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
lazy var recorder:AVAudioRecorder = { | |
var error:NSError? | |
println( "-- saving to: \( self.fileName )" ) | |
let retval = | |
AVAudioRecorder( URL:NSURL( fileURLWithPath:self.fileName ), settings:nil, error:&error ) | |
retval.delegate = self | |
retval.meteringEnabled = true | |
assert( error == nil, "Error creating audio recorder: \( error!.localizedDescription )" ) | |
return retval | |
}() |
# adapted from: https://pthree.org/2015/09/05/password-generation-in-the-shell/ | |
# which is inspired by: https://xkcd.com/936/ | |
gen-xkcd-pass() { | |
[ $(echo "$1"|grep -E "[0-9]+") ] && NUM="$1" || NUM=1 | |
DICT=$(LC_CTYPE=C grep -E "^[a-zA-Z]{3,6}$" /usr/share/dict/words) | |
for I in $(seq 1 "$NUM"); do | |
WORDS=$(echo "$DICT"|gshuf -n 6|paste -sd ' ' -) | |
XKCD=$(echo "$WORDS"|sed 's/ //g') | |
echo "$XKCD ($WORDS)"|awk '{x=$1;$1="";printf "%-36s %s\n", x, $0}' | |
done | column |
// Usage: | |
// node compile.js <filename.sol> | |
var fs = require( 'fs' ); | |
var solc = require( 'solc' ); | |
var compile = function( error, data ) | |
{ | |
if( error ) | |
{ |
root@1c6c66df21cf:/tmp# swiftc -o request_handler request_handler.swift | |
root@1c6c66df21cf:/tmp# |
Verifying that "carlosmacasaet.id" is my Blockstack ID. https://onename.com/carlosmacasaet |
#include <pthread.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
struct WorkerContext { | |
pthread_mutex_t* lock; | |
}; | |
void destroy_WorkerContext( struct WorkerContext* context ) { |
#include <pthread.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
#include <errno.h> | |
struct StringNode { | |
char* string; |
use rayon::{ThreadPool, ThreadPoolBuilder}; | |
#[derive(Copy, Clone)] | |
pub struct Request { | |
request_id: u8, | |
} | |
pub struct Response { | |
response_id: u8, | |
} |