Skip to content

Instantly share code, notes, and snippets.

View MicroTransactionsMatterToo's full-sized avatar

MicroTransactionsMatterToo

  • Otago
View GitHub Profile
syntax = "proto3";
import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";
// This is just an example of how one might structure the schema. If this looks good I'll put together a demo of some kind later on
message DeviceInfo {
uint64 id = 1;
string type = 2;
@MicroTransactionsMatterToo
MicroTransactionsMatterToo / cdump.pyx
Created April 20, 2018 00:22
Various dumping functions in Cython
import binascii
import io
# 9.24 s ± 267 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) on 108,151,739 byte file (118 MB)
cpdef dump(to_dump):
to_dump.seek(0)
split_lines = []
sappend = split_lines.append
while True:
x = binascii.hexlify(to_dump.read(16)).decode('ascii')
---
title: Mathematics of Sound
output: html_document
---
For all equations,
- Let $\mathfrak{t}$ be the current time
- Let $A$ be the amplitude, or volume
- Let $\nu$ ordinal frequency (Number of oscillations per second), also known as Hz
@MicroTransactionsMatterToo
MicroTransactionsMatterToo / groff.l1
Created February 4, 2018 20:32
Man page version of wikipedia article
groff (software)
Original Author(s) James Clark
Developer(s) GNU Project
Initial Release June 1990; 27 Years ago
Stable Release 1.22.3 / 5 November 2014; 3 years ago
/// <reference path="typings/index.d.ts" />
var _ = require("lodash");
var creep_controller = require("CreepController")
// Constant identifiers for optimised JSON
const ROOM_CREEPS = "1";
const ROOM_SOURCES_ACTIVE = "2";
const ROOM_STRUCTURES = "3";
@MicroTransactionsMatterToo
MicroTransactionsMatterToo / IDA_rename_utils.py
Created June 29, 2017 01:28
Scripts used in IDA for various things
import idc
import idautils
import re
import string
import sark
def get_segment_names(name):
seg = sark.Segment(name=name)
for ea, name in idautils.Names():
@MicroTransactionsMatterToo
MicroTransactionsMatterToo / Preferences.cs
Created June 29, 2017 01:23
Scene-Independent constant storage system
using System;
using System.Runtime.CompilerServices;
using UnityEngine;
using System.Collections.Generic;
using JetBrains.Annotations;
// Ignore the Swedish, I was experimenting ^^;
namespace HatQuest {
public class Preferences : MonoBehaviour {

Keybase proof

I hereby claim:

  • I am microtransactionsmattertoo on github.
  • I am microtransaction (https://keybase.io/microtransaction) on keybase.
  • I have a public key ASBtpvSnMIosK3XWMBuSXRPnYmYo2zOdwv6_PjjDuC0srwo

To claim this, I am signing this object:

@MicroTransactionsMatterToo
MicroTransactionsMatterToo / strings.c
Created March 30, 2017 22:08
Amusing strings from SR1
char sSOULIJustGotSuckedBySD_[] = "I just got sucked by %s%d.\n";
char sSKINNERSkinnerComesOutOfTheCloset_[] = "Skinner comes out of the closet.\n"; // idb
char sMONSTERDuhIMStunnedForDSecondsByDamageTypeD_[] = "DUH... I'm stunned for %d seconds by damage type %d!\n";
char sMONSTERHeyYouReNotSupposedToBeAbleToGrabMeIMNotVulnerable_[] = "Hey! You're not supposed to be able to grab me, I'm not vulnerable!\n";
char sMONSTERArrrgggghhhhMySoulIsGoneIAmIrrevocablyDead_[] = "Arrrgggghhhh my soul is gone I am irrevocably DEAD.\n";
char sMONSTERIMReAnimatingAsAnUbervampire_[] = "I'm re-animating... as an UBERVAMPIRE!\n";
char sMONSTERMySoulIsInTheSpectralIWillJustReanimate_[] = "my soul is in the spectral, I will just reanimate\n";
char sMONSTERIFeelUnstunnedAgainYouMissedYourChanceBuddy_[] = "I feel unstunned again! You missed your chance, buddy!\n";
char sMONSTERIFeelUnstunnedAgainIMStillVulnerableThough_[54] = "I feel unstunned again! I'm still vulnerable though.\n";
char sMONSTERIMTumbling_[] = "I'm tumbling\n";
import idc
import idautils
import sark
def get_segment_names(name):
seg = sark.Segment(name=name)
for ea, name in idautils.Names():
if seg.startEA <= ea < seg.endEA:
yield ea, name