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
{{#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
#!/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
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
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
# set the date and time | |
#import time | |
#set $timestamp = $time.strftime("%m%d%H%M%Y.%S",$time.gmtime()); | |
date -u $timestamp | |
hwclock -w -u |
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
origin [email protected]:sparr/ruby.git (fetch) | |
origin [email protected]:sparr/ruby.git (push) | |
upstream git://github.com/ruby/ruby.git (fetch) | |
upstream git://github.com/ruby/ruby.git (push) |
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
// run this with the "Edit [list]" dialog open | |
// it will add a Profile link above each user's photo | |
checkboxes = document.getElementsByName('checkableitems[]'); | |
for(var i=0, n=checkboxes.length;i<n;i++) { | |
var a = document.createElement('a'); | |
var linkText = document.createTextNode("Profile"); | |
a.appendChild(linkText); | |
a.href = "http://facebook.com/" + checkboxes[i].value; | |
a.target = "_blank"; | |
checkboxes[i].parentNode.insertBefore(a, checkboxes[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
<!DOCTYPE html> | |
<html lang="en"> | |
<!-- | |
One Page HTML/CSS resume design, copyright 2013 Nicholas Perry. | |
Structure and design of HTML and CSS released under Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/deed.en_US | |
Personal Content is used as exmaple, but is not licensed for re-use, please update all content (including meta tags) before republish/reuse. | |
For inquerys, contact nicholas.t.perry at gmail.com and refer to this gist: https://gist.github.com/4509098. | |
Please do not remove this copyright notice and include a note on modifications if you choose to use this for your own resume. | |
--> |
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
{ | |
"counters": { | |
"network": { | |
"interfaces": { | |
"en1": { | |
"rx": { | |
"bytes": "19949649885", | |
"packets": "19418063", | |
"overrun": 0, | |
"multicast": 0, |