Skip to content

Instantly share code, notes, and snippets.

View munshkr's full-sized avatar
🌘

Damián Silvani munshkr

🌘
View GitHub Profile
@munshkr
munshkr / The C64 Digi
Last active November 13, 2024 10:17
The C64 Digi ~ C=Hacking #20
<=============
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
@munshkr
munshkr / README.md
Last active August 29, 2015 14:10
Random walk

Random walk in two dimensions. Path is drawn with transparency to show more frequently traversed points darker than others.

@munshkr
munshkr / README.md
Last active August 29, 2015 14:10
Game of Life
@munshkr
munshkr / marshal_sequel_with_marshal_dump.rb
Created April 15, 2014 16:43
Marshal for Sequel models (using #marshal_dump and #marshal_load)
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) }
@munshkr
munshkr / marshal_sequel.rb
Last active August 29, 2015 13:59
Marshal for Sequel models
module Sequel
class Model
module InstanceMethods
def _dump(level)
Marshal.dump(values: values, new: new?, modified: modified?)
end
end
module ClassMethods
def _load(args)
@munshkr
munshkr / dspguide_scrape.sh
Last active December 19, 2015 10:58
Bash script for downloading all chapters from the book "The Scientist and Engineer's Guide to Digital Signal Processing" by Steven W. Smith, and merging them into a single PDF file. http://www.dspguide.com/
#!/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"
@munshkr
munshkr / main.sh
Created March 21, 2013 14:57
Extension for [git-aware-prompt](https://github.com/jimeh/git-aware-prompt). Shows an "{S}" on the prompt to alert you of a non-empty stash.
source $DOTBASH/colors.sh
source $DOTBASH/prompt.sh
source $DOTBASH/stash.sh
@munshkr
munshkr / 24-03-1976_-_10-12-1983.json
Created April 7, 2012 18:07
Script for scraping the lists from ANM (Archivo Nacional de la Memoria)
This file has been truncated, but you can view the full file.
[
{
"type": "forced_disappearence",
"surname_father": "ABACHIAN",
"surname_mother": "BEDROSSIAN",
"names": "JUAN CARLOS",
"files": [
{
"type": "CONADEP",
"number": "496"