I hereby claim:
- I am ghedo on github.
- I am ghedo (https://keybase.io/ghedo) on keybase.
- I have a public key whose fingerprint is A4F4 55C3 414B 1056 3FCC 9244 AFA5 1BD6 CDE5 73CB
To claim this, I am signing this object:
#include "Demo.h" | |
#include <StringView.h> | |
#include <Window.h> | |
Demo::Demo(void) : BApplication("application/x-vnd.Demo") { | |
BRect rect(150, 150, 500, 500); | |
BWindow *win = new BWindow( | |
rect, "Demo", | |
B_TITLED_WINDOW, |
#!/usr/bin/perl | |
# Usage: httpme | |
# Serve static files from current working directory | |
use Cwd; | |
use Plack::Runner; | |
use Plack::App::Directory; | |
my $runner = Plack::Runner -> new; |
#!/bin/sh -e | |
# Usage: bpipe [-h|--html] | |
# Pipe stuff to the browser | |
if [ -t 0 ]; then | |
echo "Usage: echo '<h1>some stuff</h1>' | bpipe" | |
else | |
opt=`getopt -o h --long html -n bpipe -- "$@"` | |
eval set -- "$opt" |
#!/bin/sh -e | |
# Usage: sprunge < <file> | |
# Paste stuff to sprunge.us | |
if [ -t 0 ]; then | |
echo "Usage: sprunge < some_file.txt" | |
else | |
curl -sF 'sprunge=<-' http://sprunge.us < /dev/stdin | |
fi |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use FFI::Raw; | |
use IO::Handle; | |
my $fopen = FFI::Raw -> new( | |
'libc.so.6', 'fopen', |
/* | |
* Stupid JSON prettifier. | |
* | |
* Compile: | |
* $ cc -o j jsonpretty.c -ljansson | |
* | |
* Usage: | |
* $ ./j < <file> | |
* $ cat <file> | ./j | |
* |
#!/usr/bin/perl | |
# Usage: wr <term> [<dict>] | |
# Translate a word using wordreference.com | |
use strict; | |
use warnings; | |
use feature qw(say); |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Bidirectional pipe | |
* | |
* Compile: | |
* $ cc -o bipipe bipipe.c | |
* | |
* Examples: | |
* | |
* * Unix domain socket chat over SSH: | |
* |
package main | |
import "log" | |
import "os" | |
import "github.com/docopt/docopt-go" | |
import "github.com/godbus/dbus" | |
const target string = "org.freedesktop.systemd1"; | |
const object string = "/org/freedesktop/systemd1"; |