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
function floatdump(n::Float32) | |
sign = bits(n)[1] | |
exp = bits(n)[2:9] | |
mant = bits(n)[10:end] | |
println("Sign: $sign $(sign == '1' ? "(-)" : "(+)")") | |
println("Exponent: $exp ($(parseint(exp, 2) - 127) + 127)") | |
println("Mantissa: $mant ($(parseint(mant, 2) / 2^23) * 2^23)") | |
end | |
function floatdump(n::Float64) |
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
#!/usr/bin/env bash | |
case "$1" in | |
"-h" | "--help") | |
echo "Usage: eps2pdf [directory]" | |
echo "" | |
echo "Convert all EPS files in a specified directory to PDF." | |
echo "If no directory is specified, assume the current working directory." | |
echo "" | |
exit 0 |
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
.file "tco.c" | |
.text | |
.globl fib_tailrec_ | |
.type fib_tailrec_, @function | |
fib_tailrec_: | |
.LFB21: | |
.cfi_startproc | |
movl %edi, %eax | |
testl %edi, %edi | |
je .L7 |
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
foo_bar_$(printf "%03d" $i).log |
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
sed -i "1i Extra line inserted" file.txt |
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
char *q = "char *q = %c%s%c; int main(void) { printf(q, 34, q, 34); return 0; }"; int main(void) { printf(q, 34, q, 34); return 0; } |
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
diff --git a/Makefile b/Makefile | |
index 98a7141..a20738b 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -43,7 +43,13 @@ buildapp: $(BUILD)/buildapp ; | |
$(BUILD)/.reqs: | |
@echo "Downloading requirements" | |
- $(LISP_QL) --eval '(ql:quickload :$(NAME))' --quit | |
+ $(LISP_QL) --eval '(ql:quickload :$(NAME))' \ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <cilk/cilk.h> | |
int A[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
int main(void) | |
{ | |
int i; |
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
#!/usr/bin/awk -f | |
BEGIN { | |
i = 0 | |
} | |
{ | |
numbers[i++] = $1 | |
} |
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
touch $HOME/.mozilla/firefox/*.default/.parentlock |
OlderNewer