Skip to content

Instantly share code, notes, and snippets.

View hhsaez's full-sized avatar

Hernan Saez hhsaez

View GitHub Profile
@hhsaez
hhsaez / SMBDIS.ASM
Created November 16, 2016 02:53 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@hhsaez
hhsaez / Create iOS Icons.jsx
Last active December 25, 2015 20:46 — forked from twonjosh/Create iOS Icons.jsx
Photoshop Script to Create iOS Icons from a source image
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
R"(
struct Light {
vec3 position;
vec3 attenuation;
vec3 direction;
vec4 color;
float outerCutoff;
float innerCutoff;
float exponent;
};
/*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@hhsaez
hhsaez / SaveiOSAndroid.jsx
Last active January 26, 2016 18:12
Adobe Illustrator script for exporting icons to iOS and Android in all supported sizes.
/**
* Remixer 1: @herkulano (http://www.herkulano.com)
* Remixer 2: @hotappsfactory (http://www.hotappsfactory.com)
* Thanks to: Niels Bosma ([email protected])
*
* Install at <Illustrator_Path>/Presets/en_US/Scripts
*/
var folder = Folder.selectDialog();
var document = app.activeDocument;