Skip to content

Instantly share code, notes, and snippets.

@HT154
HT154 / oz_features.md
Last active September 5, 2021 22:14
oz - LoZ: Oracles practice ROM

oz

oz is a practice ROM for The Legend of Zelda: Oracle of Ages and Oracle of Seasons. It's based on Drenn's fantastic oracles-disasm project.

Features

Name Release Version Notes Menu Position
Show RNG Counter v0.0.2-a.1 Count rolls around to 0 every 10,000 RNG rolls 1 - 1
Disable Low Health Beep v0.0.2-a.1 1 - 2
@HT154
HT154 / Default (OSX).sublime-keymap
Created December 13, 2017 18:01
Sublime Text 3 - Auto-close tags in JSX and TSX - Include this in your .sublime-keymap
[
{ "keys": ["/"], "command": "close_tag", "args": { "insert_slash": true }, "context":
[
{ "key": "selector", "operator": "equal", "operand": "(text.html, text.xml, meta.jsx.js, meta.jsx.children.tsx) - string - comment", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true },
{ "key": "setting.auto_close_tags" }
]
}
]
@HT154
HT154 / Color.swift
Created June 6, 2017 17:00
Realm Color Extension
import Foundation
import RealmSwift
import SpriteKit
public typealias Color = Int64
public extension Color {
public static let white = Color(0xffffffff)
public static let black = Color(0x000000ff)
@HT154
HT154 / RealmColor.swift
Last active May 25, 2023 10:13
A better way to store colors in a Realm database. Add a Color property to a Realm model the same way as a numeric value type (including RealmOptional). This could be cleaned up once Realm supports signed integers.
//
// RealmColor.swift
//
// Created by HT154 on 11/19/16.
// Copyright © 2016 HT154. All rights reserved.
//
import Cocoa
import RealmSwift
import SpriteKit
// TumblrXAuth
//
// Created by Eric Johnson on 08/27/2010.
// Copyright 2010 Eric Johnson. All rights reserved.
//
// Heavily modified by HT154 on 06/15/2012.
//
// Permission is given to use this source code file, free of charge, in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
@HT154
HT154 / gist:3346528
Created August 14, 2012 05:21
Tumblr Photo Post
#include <CommonCrypto/CommonHMAC.h>
#import <Foundation/Foundation.h>
#import "NSData+Base64.h" //This is pretty simple, just for the signature
@interface NSString (URLEncode)
- (NSString *) urlEncode;
@end
@implementation NSString (URLEncode)
-(NSString *)urlEncode{