Skip to content

Instantly share code, notes, and snippets.

bad command or file name

Tim Ryan tcr

bad command or file name
Block or report user

Report or block tcr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View generated_typescript.ts
// Type output by wasm-bindgen to the .d.ts bindings. No JS code is generated, just type definitions
export type ControllerCommand =
| { "Keypress": { key_code: number, meta_key: boolean, shift_key: boolean, alt_key: boolean, } }
| { "Button": { button: number, } }
| { "Character": { char_code: number, } }
| { "InsertText": { text: string, } }
| { "RenameGroup": { tag: string, curspan: any, } }
| { "Cursor": { focus: any, anchor: any, } }
| { "RandomTarget": { position: number, } }
tcr / sprite
Created Jul 9, 2018 {"platform":"vcs"}
View sprite
processor 6502
include "vcs.h"
include "macro.h"
org $f000
; Sprites are a tricky beast on the 2600.
; You only have two of them.
; They are 8 bits wide and 1 bit high.
; There's no way to position the X or Y coordinate directly.
extern crate ron;
extern crate serde;
#[macro_use] extern crate serde_derive;
extern crate serde_with;
use serde::{Deserialize, Serialize, Serializer, Deserializer};
#[derive(Serialize, Deserialize)]
tcr /
Created May 3, 2018
#!/usr/bin/env run-cargo-script
//! ```cargo
//! [dependencies]
//! juniper = "*"
//! rouille = "*"
//! serde_json = "*"
//! serde = "*"
//! ```
#[macro_use] extern crate rouille;
View gist:4083162f7fe82b6fea47fa8775125a02
make an itunes backup
Go to `~/Library/Application Support/MobileSync/Backup`
Find the backup id folder
Look up `Manifest.db` in that dir to identify Files row with `relativePath=Library/SpringBoard/IconState.plist` and its `fileID`
in the `<backup_id>/<first two digits>/<that hash>` file, run
View typescript-2.8-taggedish-unions.ts
// Declare your union variants
// Easy to name variant contructors + define tags in one place
function Age(age: number) {
return { tag: 'Age' as 'Age', age }
function Name(name: string) {
return { tag: 'Name' as 'Name', name }
View gist:78b794b41a81355ef867bdccbd0ec0dc
processor 6502
include "vcs.h"
include "macro.h"
include "xmacro.h"
seg.u Variables
org $80
Temp byte
LoopCount byte
tcr / gist:879012973b1e2122d321a45429ac360f
Last active Sep 21, 2016
Hacky tessel-rust deployment on T2
View gist:879012973b1e2122d321a45429ac360f

Run this somewhere:

tar -xf OpenWrt-SDK-ramips-mt7620_gcc-4.8-linaro_uClibc-

Change into that directory. Run mkdir -p ~/tessel/sdk/darwin/, then run cp -rf OpenWrt-SDK*/staging_dir/* ~/tessel/sdk/darwin/.

Save this as /usr/local/bin/t2-run-rust:

tcr /
Last active Aug 19, 2016
Fix for Tessel 2 on Windows
tcr /
Last active Jul 19, 2016

Special emissions testing build of T2

Using t2-build, we can generate a special version of kmod-rt2x00-lib.ipk and kmod-rt2800-lib.ipk that allows modification of testing parameters at runtime.

Explicitly run make package/kernel/mac80211/compile V=s -C openwrt or the full build process. Find the file by running

You can’t perform that action at this time.