This file contains hidden or 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 MIT License (MIT) | |
Copyright (c) 2016 Samuel El-Borai <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
This file contains hidden or 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
(defn node [x y] | |
{:x x :y y}) | |
(defn split-node [x y left right] | |
(merge (node x y ) | |
{:left left | |
:right right | |
:intersect :split})) | |
(defn join-node [x y] |
This file contains hidden or 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
{ | |
"name": "my-project", | |
"devDependencies": { | |
"onchange": "~2.0.0", | |
"tesuto": "niceversionnumber" | |
}, | |
"scripts": { | |
"test": "echo \"[`date`] Run tests\"; for file in `ls test/*.js`; do node \"test/${file}\"; done", | |
"test:watch": "onchange src/*.js -- npm run test", | |
} |
This file contains hidden or 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
VERSION = 13.1.2 | |
TARBALL = virtualenv-$(VERSION).tar.gz | |
URL = https://pypi.python.org/packages/source/v/virtualenv/$(TARBALL) | |
REQUIREMENTS = ansible==1.9.0.1 | |
PIP = venv/bin/pip | |
ANSIBLE = venv/bin/ansible-playbook | |
.DEFAULT_GOAL := help |
This file contains hidden or 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
# Dependencies: | |
# - Xvfb (package xvfb on Debian) | |
# - ImageMagick (package imagemagick on Debian) | |
capture: | |
mkdir -p screenshots | |
export DISPLAY=":1" | |
pkill Xvfb |
This file contains hidden or 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
; ___ _ __ ___ __ ___ | |
; / __|_ _ __ _| |_____ / /| __|/ \_ ) | |
; \__ \ ' \/ _` | / / -_) _ \__ \ () / / | |
; |___/_||_\__,_|_\_\___\___/___/\__/___| | |
; An annotated version of the snake example from Nick Morgan's 6502 assembly tutorial | |
; on http://skilldrick.github.io/easy6502/ that I created as an exercise for myself | |
; to learn a little bit about assembly. I **think** I understood everything, but I may | |
; also be completely wrong :-) |
This file contains hidden or 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
processor 6502 ; define processor family for dasm | |
org $C000 ; memory location for our code | |
CR = $0d | |
clear = $e544 ; clear screen | |
screenbeg = $0400 ; beginning of screen memory | |
screenend = $07e7 ; end of screen memory | |
screenpos = $8000 ; current position in screen | |
screenwidth = #$20 |
This file contains hidden or 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
processor 6502 ; define processor family for dasm | |
org $C000 ; memory location for our code | |
clear = $e544 ; clear screen | |
drawchar = $ffd2 ; draw value in regA | |
main: | |
jsr clear | |
jsr drawmsg |
This file contains hidden or 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
from mechanize import Browser | |
from bs4 import BeautifulSoup | |
mech = Browser() | |
base_url = "http://coda.s3m.us/category/ohc/page/" | |
last_page = 135 | |
with open('list_audio.txt', 'w') as output_file: | |
for pageNumber in range(1, last_page): |
This file contains hidden or 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
I used to have a pretty good screen scraper that would search queries on the Google Groups Usenet archives. Inspired by images like this http://doom.wikia.com/wiki/Doom_clones?file=Doom_clone_vs_fi... | |
I was able to dredge some pretty amazing historic articles. Some examples: | |
First impressions of the GNU manifesto: | |
https://groups.google.com/forum/#!topic/rec.arts.animation/n... | |
Furst impressions of SNES | |
https://groups.google.com/forum/#!topic/rec.games.video/gt3T... | |
First impressions of PERL | |
https://groups.google.com/forum/#!topic/comp.sources.d/QPt28... | |
First impressions of Eminem | |
https://groups.google.com/forum/#!topic/rec.music.hip-hop/oL... |