Skip to content

Instantly share code, notes, and snippets.

View richy486's full-sized avatar
🐶
Experimenting

Richard Adem richy486

🐶
Experimenting
View GitHub Profile
@richy486
richy486 / keybindings.json
Last active December 1, 2015 22:51
VSCode Settings (Unity)
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+cmd+left", "command": "workbench.action.navigateBack" },
{ "key": "ctrl+cmd+right", "command": "workbench.action.navigateForward" },
{ "key": "cmd+y", "command": "editor.action.goToDeclaration",
"when": "editorTextFocus" },
{ "key": "cmd+r", "command": "workbench.action.debug.start",
"when": "!inDebugMode" },
{ "key": "cmd+s", "command": "workbench.action.files.saveAll" }
]
@richy486
richy486 / ontheaccumulationofpressureonbuttons.ino
Last active December 14, 2015 17:54
On the accumulation of pressure on buttons
#define APR9600 audion chip controlled by arduino
#define uint unsigned int
// Schematic: http://imgur.com/wdTnT3L
int ranNum;
const int ledPin = 13;
const int player1ButtonPin = 11;
const int player2ButtonPin = 12;
@richy486
richy486 / astar.p8
Last active June 11, 2025 11:34
A* pathfinding in pico-8
pico-8 cartridge // http://www.pico-8.com
version 5
__lua__
-- A* pathfinding
-- by @richy486
function _init()
printh("---------------")
printh("starting a star")
@richy486
richy486 / BrickMaker.swift
Created December 21, 2015 20:51
Playing with Protocols as Types
// https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html
print("Brick maker!")
// for testing on http://swiftlang.ng.bluemix.net/
typealias CGFloat = Float
struct CGPoint {
var x: CGFloat
var y: CGFloat
@richy486
richy486 / poolTests.swift
Created January 5, 2016 22:15
Testing removing from pool in swift using Then
// Pool tests
// @richy486
// using Then
// https://github.com/devxoul/Then
public protocol Then {}
extension Then {
/// Makes it available to set properties with closures just after initializing.
@richy486
richy486 / Pool.swift
Created February 8, 2016 22:37
Object pool in swift
//
// Pool.swift
// @richy486
//
// Created by Richard Adem on 8/02/2016.
// Copyright © 2016 Richard Adem. All rights reserved.
//
import Foundation
# http://alcatraz.io/
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
https://github.com/omz/ColorSense-for-Xcode
https://github.com/johnno1962/GitDiff
https://github.com/stefanceriu/SCXcodeSwitchExpander
https://github.com/stefanceriu/SCXcodeEditorInset
https://github.com/kattrali/deriveddata-exterminator
@richy486
richy486 / RSTimingFunction+CAMedia.h
Last active April 15, 2016 17:31 — forked from raphaelschaad/RSTimingFunction.h
All the cool animation curves from `CAMediaTimingFunction` but not limited to use with CoreAnimation. See what you can do with cubic Bezier curves here: http://netcetera.org/camtf-playground.html To get started just "Download Gist", throw the .h and .m files into your Xcode project and you're good to go!
//
// RSTimingFunction+CAMedia.h
//
// Created by Richard Adem for Raphael Schaad's RSTimingFunction
//
#import "RSTimingFunction.h"
@interface RSTimingFunction (CAMedia)
$ git rebase -i master
# if conflict
# see which files are conflicted
$ git status
# fix it and do:
$ git commit -a
# then if it's all good
View hierarchy
[[UIWindow keyWindow] recursiveDescription]
View controller hierachy
[[[UIWindow keyWindow] rootViewController] _printHierarchy]