Skip to content

Instantly share code, notes, and snippets.

View danidoni's full-sized avatar

Dani Donisa danidoni

  • Granollers, Barcelona, Spain
View GitHub Profile
Hades.configure do |config|
config[:development] = {
fr: {
system_id: 'EWFR',
client_id: 'wuaki_fr_web01',
client_secret: 'sec_wuaki_fr_web01',
encryption_key: 'YrIXs6fkvPsARbLe',
encryption_iv: "\xb7\x7b\x7f\x97\x69\x3d\x52\x34\x92\xfd\x7f\xa1\x8c\x18\x28\x12",
encryption_hashfactor: "\xeb\x3f\x99\xf3\x8a\x37\x90\xf0\xe1\x1e\x96\x60\xd0\x43\xa8\x55",
reset_password: {
;; Move M-x to C-x C-m or C-c C-m
(global-set-key "\C-x\C-m" 'execute-extended-command)
(global-set-key "\C-c\C-m" 'execute-extended-command)
;; Remap keys on Mac OS
(when (eq 'ns (window-system))
(defun closing-curly-brace-symbol ()
(interactive)
(insert "}"))
(defun closing-braket-symbol ()
@danidoni
danidoni / snes_spec.md
Last active August 29, 2015 13:57
SNES Emulation

SNES Emulation

Detect if a ROM has a header

Take the size in bytes, divide by 1024 and take the remainder.

  • If the remainder is zero, its a headerless ROM
  • If the remainder is 512, this ROM has a header
  • Else, the rom is wrong.

Common ROM sizes:

(deftheme dani "Railscasts based theme")
(custom-theme-set-faces
'dani
'(default ((t (:background "#000000"))))
'(border-color ((t :foreground "#000000")))
'(cursor-color ((t :foreground "#729ecb")))
'(foreground-color ((t :foreground "#ffffff")))
'(mouse-color ((t :foreground "black")))
'(fringe ((t (:background "#000000"))))