This file contains hidden or 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
(defn frybo [fname] | |
(def raf (java.io.RandomAccessFile. fname "r")) | |
(def out-chan (chan 10)) | |
(go-loop [] (>!! out-chan (.readByte raf))) | |
out-chan) | |
This file contains hidden or 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/bash | |
echo == example the first == | |
f1() { | |
local v=1 | |
echo f1: $v | |
f2 | |
} |
This file contains hidden or 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
var Dynamic = function() { | |
var context = {} | |
var defaults = {} | |
function bind(name, val, fn) { | |
try { | |
var save = context[name]; | |
context[name] = val; | |
var out = fn(); | |
} |
This file contains hidden or 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
open Batteries.Printf | |
open Batteries | |
type 't tokstate = Start | Tok of 't | Err of string | Eof | |
type 't state = { | |
mutable index : int ; | |
mutable head : 't tokstate ; | |
mutable behind : 't tokstate list ; | |
mutable ahead : 't tokstate list ; |
This file contains hidden or 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/bash | |
blanking() { | |
local mode="$1"; shift | |
case "$mode" in | |
-|stop) xset -dpms; xset s off ;; | |
+|start) xset +dpms; xset s on ;; | |
sus|suspend) | |
wake-loop & | |
ensure kill $! |
This file contains hidden or 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
(deftheme thankful-eyes "a port of the thankful eyes theme from gtksourceview") | |
(let ((class '((class color) (min-colors 89))) | |
(cool-as-ice (if (display-graphic-p) "#6c8b9f" "#6c8b9f")) | |
(slate-blue (if (display-graphic-p) "#4e5d62" "#4e5d62")) | |
(eggshell-cloud (if (display-graphic-p) "#dee5e7" "#dee5e7")) | |
(krasna (if (display-graphic-p) "#122B36" "#121212")) | |
(aluminium1 (if (display-graphic-p) "#fefeec" "#fefeec")) | |
(scarletred2 (if (display-graphic-p) "#cc0000" "#cc0000")) |
This file contains hidden or 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
\makeatletter | |
\newwrite\shellout@out | |
\def\shellout@writeout@start#1{% | |
\begingroup | |
\immediate\openout\shellout@out#1% | |
\let\do\@makeother\dospecials% | |
\catcode`\^^M\active% | |
\def\verbatim@processline{% | |
\immediate\write\shellout@out{\the\verbatim@line}}% |
This file contains hidden or 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
[translation:info] 2.7.17 (default, Mar 21 2020, 00:47:07) | |
[GCC 9.3.0] | |
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown' | |
[translation:info] Translating target as defined by lib/rpy/targettest | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unknown-22/gcctest.c -o /tmp/usession-unknown-22/gcctest.o | |
[platform:execute] gcc /tmp/usession-unknown-22/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-unknown-22/gcctest | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-unknown-22/gcctest.c -o /tmp/usession-unknown-22/gcctest.o | |
[platform:execute] gcc /tmp/usession-unknown-22/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-unknown-22/gcctest | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/home/jneen/src/magritte/vendor/pypy/rpython/translator/c /tmp/usession-unknown-22/platcheck_0.c -o /tmp/usession-unknown-22/platcheck_0.o | |
[platform:execute] |
This file contains hidden or 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
[translation:info] Error: | |
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/goal/translate.py", line 317, in main | |
drv.proceed(goals) | |
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 551, in proceed | |
result = self._execute(goals, task_skip = self._maybe_skip()) | |
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute | |
res = self._do(goal, taskcallable, *args, **kwds) | |
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 278, in _do | |
res = func() | |
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 518, in task_compile_c |
This file contains hidden or 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/bash | |
export AUDIO_DEFAULT_CAPTURE=hw:PCH | |
export AUDIO_DEFAULT_PLAYBACK=hw:PCH | |
execd() { | |
echo "$@" >&2 | |
"$@" | |
} |