An inefficient, non-interactive version of John Conway's Game of Life. Also an exercise of nested selections.
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"type": "forced_disappearence", | |
"surname_father": "ABACHIAN", | |
"surname_mother": "BEDROSSIAN", | |
"names": "JUAN CARLOS", | |
"files": [ | |
{ | |
"type": "CONADEP", | |
"number": "496" |
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
source $DOTBASH/colors.sh | |
source $DOTBASH/prompt.sh | |
source $DOTBASH/stash.sh |
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/bash | |
# Download all chapters from the book "The Scientist and Engineer's Guide to | |
# Digital Signal Processing" by Steven W. Smith, and merge them into a single | |
# PDF file. | |
# | |
# Requirements: wget, pdftk | |
baseurl="http://www.dspguide.com" | |
tmpdir="/tmp" | |
mergefile="dspguide.pdf" |
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
module Sequel | |
class Model | |
module InstanceMethods | |
def _dump(level) | |
Marshal.dump(values: values, new: new?, modified: modified?) | |
end | |
end | |
module ClassMethods | |
def _load(args) |
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
module Sequel | |
class Model | |
module InstanceMethods | |
def marshal_dump | |
marshallable! | |
Hash[instance_variables.map { |iv| [iv, instance_variable_get(iv)] }] | |
end | |
def marshal_load(variables) | |
variables.each { |k, v| instance_variable_set(k, v) } |
Random walk in two dimensions. Path is drawn with transparency to show more frequently traversed points darker than others.
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
<============= | |
The C64 Digi | |
=============> Robin Harbron <[email protected]> | |
Levente Harsfalvi <[email protected]> | |
Stephen Judd <[email protected]> | |
Introduction | |
------------ | |
Digis -- digitally sampled audio -- are fairly common on the 64. This is |
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
;screen char data | |
!byte $f9,$f9,$e4,$a0,$a0,$a0,$e8,$e8,$e8,$e2,$e8,$e3,$f7,$c5,$c4,$c5,$20,$20,$20,$3d,$20,$e4,$f9,$e2,$e2,$78,$e2,$f9,$7b,$68,$e6,$68,$68,$20,$e4,$f9,$e2,$f9,$d2,$d2 | |
!byte $62,$f8,$f8,$f7,$c4,$7e,$27,$3a,$22,$68,$20,$7c,$a0,$a0,$a0,$3a,$20,$20,$20,$3d,$20,$64,$6f,$79,$62,$f7,$f9,$f8,$f7,$6c,$6c,$20,$20,$5c,$f7,$f7,$e3,$e4,$e4,$a0 | |
!byte $42,$7c,$a0,$a0,$69,$20,$20,$5c,$20,$27,$5c,$20,$4d,$20,$21,$3a,$20,$20,$20,$20,$20,$6c,$6c,$a0,$69,$20,$27,$20,$66,$6c,$6c,$6c,$20,$20,$5c,$e6,$f8,$62,$79,$79 | |
!byte $21,$20,$a0,$e6,$20,$20,$20,$79,$4c,$20,$66,$64,$20,$2c,$20,$20,$20,$20,$20,$20,$20,$20,$20,$6a,$20,$20,$20,$20,$20,$20,$20,$20,$20,$5c,$20,$e6,$e6,$68,$68,$20 | |
!byte $3a,$20,$20,$5c,$27,$6c,$e4,$ef,$e4,$a2,$ca,$e4,$65,$5c,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$68,$68,$68,$68 | |
!byte $20,$20,$20,$3e,$2e,$69,$62,$20,$7b,$e1,$7b,$6c,$7e,$29,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$20,$5c,$20,$20,$20,$20,$20,$20,$20,$68,$e6,$e6,$ec,$a0,$fb | |
!byt |
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
require 'rubygems' | |
require 'sequel' | |
require 'newrelic_rpm' | |
# use NewRelic on DB | |
Sequel::Database.extension(:newrelic_instrumentation) | |
# connect to an in-memory database | |
DB = Sequel.sqlite | |
DB.logger = Logger.new(STDOUT) |
OlderNewer