Skip to content

Instantly share code, notes, and snippets.

View dgellow's full-sized avatar
🐢
Pulu pulu 🏳️‍🌈

Sam El-Borai dgellow

🐢
Pulu pulu 🏳️‍🌈
View GitHub Profile
The MIT License (MIT)
Copyright (c) 2016 Samuel El-Borai <samuel.elborai@gmail.com>
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:
(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]
{
"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",
}
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
# Dependencies:
# - Xvfb (package xvfb on Debian)
# - ImageMagick (package imagemagick on Debian)
capture:
mkdir -p screenshots
export DISPLAY=":1"
pkill Xvfb
; ___ _ __ ___ __ ___
; / __|_ _ __ _| |_____ / /| __|/ \_ )
; \__ \ ' \/ _` | / / -_) _ \__ \ () / /
; |___/_||_\__,_|_\_\___\___/___/\__/___|
; 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 :-)
@dgellow
dgellow / scrolling_helloworld.asm
Last active December 29, 2015 10:24
c64 scrolling hello world. To be assembled using `dasm`. https://youtu.be/l_xk4MDTjOo
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
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
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):
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...