This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Simple erlang parser. | |
-module(parser). | |
-compile([export_all]). | |
% Start char, with start State | |
-define(DATA_START(X, K), | |
data(<<X, Rest/bitstring>>, Buf, Ret) -> | |
data(Rest, Buf, Ret, K)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
###################################################################### | |
# simple cvs update wrapper for netbsd # | |
###################################################################### | |
ALERT_MAIL="yes" | |
ALERT_USER="root" | |
CVS_OPTS="-qz3" | |
CVS="cvs ${CVS_OPTS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "os" | |
import "flag" | |
import "strconv" | |
import "strings" | |
import "text/template" | |
import "crypto/sha256" | |
import "encoding/hex" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2013-2016, Loïc Hoguin <[email protected]> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// feistel network test | |
// currently doesn't work as expected. | |
// the idea is to use variable return | |
// function to make branchment instead | |
// of traditional datastructure. | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
// import "crypto/sha1" | |
// import "path/filepath" | |
// import "os" | |
type triangle struct { | |
connect [3]*triangle | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "sync" | |
import "net" | |
import "bufio" | |
type Controller struct { | |
fifo chan string | |
status chan string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% extract namespace information from linux procfs. | |
% | |
-module(namespace). | |
-compile(export_all). | |
-include_lib("eunit/include/eunit.hrl"). | |
-record(pid, { id :: integer(), | |
cgroup = 0 :: integer(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################### | |
# BSD Meetup Rennes - FreeBSD Jails Workshop | |
# | |
# TEA-WARE LICENSE: | |
# Mathieu Kerjouan <[email protected]> wrote this file. As long as | |
# you retain this notice you can do whatever you want with this | |
# stuff. If we meet some day, and you think this stuff is worth it, | |
# you can buy me a tea in return. Mathieu Kerjouan | |
# | |
###################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RED 12 | |
#define GREEN 13 | |
struct blinking { | |
int pin; | |
int mode; | |
int sleep; | |
}; | |
struct blinking b[256]; |
OlderNewer