I hereby claim:
- I am darfk on github.
- I am darfk (https://keybase.io/darfk) on keybase.
- I have a public key whose fingerprint is 332E A6B9 2B5F BBED DA34 1CE3 21DD 6E12 BD7F 9E66
To claim this, I am signing this object:
package main | |
import ( | |
"sync" | |
) | |
func main() { | |
inChannel := make(chan int) | |
outChannel := make(chan int) |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"math" | |
"os/exec" | |
) | |
const ( | |
tau float64 = math.Pi * 2 | |
) |
package lfsr | |
import ( | |
) | |
type LFSR struct { | |
buf int32 | |
} | |
func NewLFSR() (r *LFSR) { |
<?php | |
// Returns a flat array of all the files in $d | |
function scandir_recursive ( $d, $b = '' ) | |
{ | |
$ls = scandir ( $d ); | |
$a = array(); | |
foreach ( $ls as $v ) | |
{ | |
if ( $v == '.' || $v == '..' ) continue; |
import argparse, subprocess | |
parser = argparse.ArgumentParser(description='Corrupts files.') | |
parser.add_argument('infile', type=str) | |
parser.add_argument('outfile', type=str) | |
parser.add_argument('-n', '--nth', metavar='N', type=int, help='corrupt every Nth byte', default=1000) | |
parser.add_argument('-i', '--increment', type=int, metavar='N', help='increment corrupted bytes by N', default=1) | |
parser.add_argument('-s', '--start', type=int, metavar='offset', help='start at corrupting at offset', default=0) |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <linux/fb.h> | |
#include <sys/mman.h> | |
#include <sys/ioctl.h> | |
#include <linux/kd.h> | |
int main (int argc, char* argv[]) |
import sys, random | |
if not len ( sys.argv ) > 2 : | |
print 'Usage: python ' + sys.argv[0] + ' seed,amount[,variant] infile [corrupted]' | |
exit ( 1 ) | |
original = sys.argv[2] | |
# Parse the parameters | |
params = sys.argv[1].split ( ',' ) |
;; Tom's .emacs file or How to have a good time using emacs. | |
;; 2018 Edition | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "https://stable.melpa.org/packages/")) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/")) | |
(package-initialize) |