Skip to content

Instantly share code, notes, and snippets.

View kierdavis's full-sized avatar

Kier Davis kierdavis

View GitHub Profile
GateKind = enum
gateNot
gateAnd
gateOr
gateNand
gateNor
gateXor
let kind =
case kindStr
GateKind = enum
gateNot
gateAnd
gateOr
gateNand
gateNor
gateXor
proc raiseValue[T](e: ref Exception): T =
raise e
@kierdavis
kierdavis / countbitsbench.nim
Created September 5, 2016 02:31
Benchmark for math.countBits using nimbench
import nimbench
from math import countBits
bench(countBits8, m):
var x = 0
for i in 1..m:
x += countBits(uint8(i))
doNotOptimizeAway(x)
bench(countBits16, m):
@kierdavis
kierdavis / countbits32bench.nim
Created September 5, 2016 12:32
Benchmark for countBits32
import nimbench
from math import countBits32
bench(countBits32, m):
var x = 0
for i in 1..m:
x += countBits32(int32(i))
doNotOptimizeAway(x)
runBenchmarks()
hashcat (v3.10) starting in benchmark-mode...
OpenCL Platform #1: NVIDIA Corporation
======================================
- Device #1: GeForce GTX 1060 6GB, 1517/6069 MB allocatable, 10MCU
Hashtype: MD4
Speed.Dev.#1.: 19674.9 MH/s (96.43ms)
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "my-texlive-env";
buildInputs = [
pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-basic;
}
];
}
Hi,
I am writing to enquire as to whether we will be reimbursed for travel expenses incurred during SR2016. I emailed my receipts and bank details this address ([email protected]) shortly after the competition, and well before the stated deadline of 14th May 2016. I have not yet received a reply to this email, and a number of other volunteers I have spoken to also reported that they did not hear back from their reimbursement requests either.
This issue has also had the effect of deterring volunteers from mentoring in SR2017, as they are unsure whether they will be left out of pocket or not.
Could you please clarify the situation, and confirm whether reimbursement for mentoring and/or competition travel expenses will occur for SR2017?
Regards,
Kier Davis
Heart Whispers - use the heart on people!
Clockwork Collector - kill clockwork soldiers (all??)
Occult Carver - carve bonecharms
Black Market Burglar - rob a Black Market shop
Royal Spymaster - all journals and audiographs on ship
Combat:
The Lovers - domino on two people attacking each other
Sliding Marksman - headshot while sliding
Fatal Redirect - deflect a bullet
extraBuildCommands = ''
if [ -e lib/vendors ]; then
mkdir -p etc/OpenCL
ln -s lib/vendors etc/OpenCL/vendors
fi
'';
@kierdavis
kierdavis / untitled.log
Created January 17, 2017 20:19
Extract of `journalctl -xe`
Jan 17 19:16:03 coloris slim[2479]: pam_unix(slim:session): session opened for user kier by (uid=0)
Jan 17 19:16:03 coloris systemd[1]: Created slice User Slice of kier.
Jan 17 19:16:03 coloris systemd[1]: Starting User Manager for UID 1000...
Jan 17 19:16:03 coloris systemd[1]: Started Session 3 of user kier.
Jan 17 19:16:03 coloris systemd-logind[2035]: New session 3 of user kier.
Jan 17 19:16:03 coloris systemd[2504]: pam_unix(systemd-user:session): session opened for user kier by (uid=0)
Jan 17 19:16:03 coloris systemd[2504]: Reached target Paths.
Jan 17 19:16:03 coloris systemd[2504]: Reached target Sockets.
Jan 17 19:16:03 coloris systemd[2504]: Reached target Timers.
Jan 17 19:16:03 coloris systemd[2504]: Reached target Basic System.