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
sparr$ grep --version | |
grep (GNU grep) 2.5.1 | |
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
sparr$ echo "foo { bar" | grep "{" | |
foo { bar | |
sparr$ echo "foo { bar" | grep -E "{" |
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
PACK: | |
home | |
air mattress | |
sleeping bag | |
blankets | |
rope | |
toys | |
clothes | |
camera | |
generator |
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/perl | |
use Text::CSV; | |
my @rows; | |
my $csv = Text::CSV->new ( { binary => 1 } ) # should set binary attribute. | |
or die "Cannot use CSV: ".Text::CSV->error_diag (); | |
# discard metadata non-rows | |
<>; # Sched: [nameoflist],Downloaded on 1999-09-09 9:09:09 pm,,,,,,,,,, |
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
{{#sub:{{lc: {{{1}}} }}|0|-3}}{{#ifeq: | |
{{#sub: | |
{{lc: {{{1}}} }}| | |
-3 | |
}}| | |
men| | |
man| | |
{{#ifeq: | |
{{#sub: | |
{{lc: {{{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
A binary numerical encoding wherein sequential integers only differ from each other | |
by a single bit. I'm calling this "one bitflip per increment" encoding. This is my | |
proposal to a question posed on the Artisan's Asylum discussion mailing list, with | |
the topic being looking for numerical encodings that are friendly to possibly-genetic | |
algorithmic solutions to problems where only bitwise operations are used, and thus | |
finding a solution of "10000" from "01111" is unlikely, while finding "10000" from | |
"10001" is easy. The nth lsbit of the mask flips every 2^n increments. | |
bin | obpi | mask | |
0000 | 0000 | 0000 |
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
// has this plane hit a wall, or is it guaranteed to? | |
boolean dangerZone(Plane icarus) { | |
// outside the arena is instant death | |
if (!icarus.getPosition().isInArena(arenaSize)) { | |
return true; | |
} | |
// adjacent to a wall? | |
// directly facing the wall? | |
// death next turn | |
if ( |
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
0: | |
(2, -1, -1) ('[]', '0') | |
1: | |
(4, -1, -1) ('[[]]', '1') | |
2: | |
(6, -1, -1) ('[[[]]]', '2') | |
3: | |
(8, -1, -1) ('[[[[]]]]', '3') | |
4: | |
(10, -1, -1) ('[[[[[]]]]]', '4') |
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 python | |
import math | |
import pygame | |
import random | |
import sys | |
import subprocess | |
import os | |
import shlex | |
import select |
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
.. I0 .. .. | |
P0 /\ -- .. | |
.. .. =0 ++ | |
.. P0 -- O0 | |
.. .. =0 ++ | |
.. .. \/ O0 | |
-- /\ -- .. | |
MB .. -- .. | |
\\ .. MB .. | |
.. O0 // .. |
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
574 : string [std] | |
311 : source | |
278 : entity [std] | |
253 : keyword [std] | |
242 : comment [std] | |
236 : entity.name.tag | |
229 : constant [std] | |
212 : support.function [std] | |
209 : storage [std] | |
209 : entity.other.attribute-name |