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
# ---------------------------------------------------------------------- | |
# phplex.py | |
# | |
# A lexer for PHP. | |
# ---------------------------------------------------------------------- | |
import ply.lex as lex | |
# todo: end-of-line comments containing ?> | |
# todo: double-quoted strings |
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
<?php | |
$lines = array(); | |
while (!feof(STDIN)) { | |
$line = fgets(STDIN); | |
if ($line === false) break; | |
$lines[] = $line; | |
} | |
$data = implode('', $lines); | |
$tokens = token_get_all($data); | |
$line_num = 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
(defun move-region-up (arg) | |
(interactive "p") | |
(unless mark-active (mark-line 1)) | |
(kill-region (region-beginning) (region-end)) | |
(unwind-protect | |
(forward-line (- arg)) | |
(yank)) | |
(setq deactivate-mark nil)) | |
(defun move-region-down (arg) |
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 | |
# | |
# digable - Real-time probability-based beat generator | |
# | |
# Author: David Benjamin <[email protected]> | |
# Last updated: Mon Apr 30 20:54:52 MST 2001 | |
# | |
# The next line restarts using wish \ | |
exec wish "$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
set ::DEFAULT_BPM 95 | |
set ::KICK_PROBS { 1.000 0.125 0.625 0.125 0.000 0.000 0.125 0.500 \ | |
0.000 0.125 1.000 0.250 0.000 0.250 0.000 0.250 } | |
set ::SNARE_PROBS { 0.000 0.000 0.000 0.000 1.000 0.000 0.000 0.250 \ | |
0.000 0.625 0.000 0.000 1.000 0.000 0.000 0.000 } | |
set ::KICK_VOLS { 127.0 16.00 80.00 16.00 0.000 0.000 16.00 64.00 \ | |
0.000 16.00 127.0 32.00 0.000 32.00 0.000 32.00 } | |
set ::SNARE_VOLS { 0.000 0.000 0.000 0.000 127.0 0.000 0.000 32.00 \ | |
0.000 80.00 0.000 0.000 127.0 0.000 0.000 0.000 } | |
set ::CLHH_PROBS { 1.000 0.000 1.000 0.000 1.000 0.000 1.000 0.000 \ |
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
;; emacs startup emulating scribes editor | |
(setq load-path (cons "~/.emacs.d" load-path)) | |
(require 'linum) | |
(require 'paredit) | |
(require 'redo) | |
(bar-cursor-mode 1) | |
(column-number-mode 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
Mrxvt.color0: #121212 | |
Mrxvt.color1: #cc0000 | |
Mrxvt.color2: Chartreuse4 | |
Mrxvt.color3: #f57900 | |
Mrxvt.color4: SkyBlue4 | |
Mrxvt.color5: #6255bc | |
Mrxvt.color6: DarkTurquoise | |
Mrxvt.color7: #2e3436 | |
Mrxvt.color8: #eeeeec | |
Mrxvt.color9: #ff0000 |
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
#121212 18 18 18 | |
#cc0000 204 0 0 | |
#458b00 69 139 0 | |
#f57900 245 121 0 | |
#4a708b 74 112 139 | |
#6255bc 98 85 188 | |
#00ced1 0 206 209 | |
#2e3436 46 52 54 | |
#eeeeec 238 238 236 | |
#ff0000 255 0 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
#!/usr/bin/env php | |
<?php // -*- php -*- | |
print("PHP version " . phpversion() . " on " . PHP_OS); | |
print(" (use Ctrl-D to exit)\n"); | |
if (function_exists('pcntl_signal')) { | |
pcntl_signal(SIGINT, SIG_IGN); | |
} |
OlderNewer