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
SCHelp { | |
Document = (Element|Text)+ | |
Element | |
= Class | |
| Title | |
| Summary | |
| Related | |
| Redirect | |
| Categories |
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
{ | |
"name": "portable-npm-scripts", | |
"version": "0.0.2", | |
"private": true, | |
"dependencies": { ... }, | |
"devDependencies": { | |
"babel-core": "^6.26.0", | |
"babel-preset-env": "^1.6.1", | |
"babelify": "^8.0.0", | |
"browserify": "^14.5.0", |
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
const { Transform } = require('stream') | |
const ts = Transform({ decodeStrings: false }) | |
ts._write = (chunk, enc, next) => { | |
ts.push(chunk.toUpperCase()) | |
next() | |
} | |
process.stdin.setEncoding('utf8') | |
process.stdin.pipe(ts).pipe(process.stdout) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<script src="https://unpkg.com/[email protected]/dist/bpm-detective.js" charset="utf-8"></script> | |
<script> | |
let context = new AudioContext(); | |
fetch("01 Xtal.mp3") | |
.then(response => response.arrayBuffer()) |
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
#!/usr/bin/env bash | |
# | |
# test: diff logs against reference compiler logs | |
# usage: test [parser|scanner] [all|file] [log|res] | |
# | |
source_files=( easter float-opers gcd heron medium micro mini next opers primes strings wrong ) | |
mod_test=$1 | |
ext=$3 |
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
(define (grow-huffman-tree pairs) | |
(define (make-tree leaf-set) | |
(cond | |
((null? leaf-set) '()) ; no element | |
((null? (cdr leaf-set)) (car leaf-set)) ; one element | |
(else ; two elements | |
(let ((first (car leaf-set)) | |
(second (cadr leaf-set)) | |
(rest (cddr leaf-set))) | |
(if (null? rest) |
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
(define rember | |
(lambda (a lat) | |
(cond | |
((null? lat) lat) | |
((eq? (car lat) a) (cdr lat)) | |
(else (cons (car lat) (rember a (cdr lat))))))) | |
(define (rember2 a lat) | |
(cond | |
((null? lat) lat) |
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
int main(t) { | |
for(t=0;;t++)putchar( | |
t*5&(t>>7)|t*3&(t*4>>10) | |
);} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* function aliases */ | |
#define talk printf | |
#define die talk | |
#define space calloc | |
/* keywords */ |
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
# search and browse manpages interactively | |
function woman { | |
err="usage: $FUNCNAME [object]" | |
test $# -ne 1 && echo $err && return 1 | |
IFS=$'\n' manpgs=( $(apropos $1 | grep ^$1) ) | |
select line in ${manpgs[@]}; do | |
n=${line%%) *}; n=${n#* (} | |
man ${n} ${line%% *} | |
return 0 |