Skip to content

Instantly share code, notes, and snippets.

Avatar

tetyys TETYYS

View GitHub Profile
@TETYYS
TETYYS / brian.md
Last active Nov 21, 2020
All Brian TTS characters
View brian.md
Character code (character) Duration (ms) Alias to Pronounced as
27 (�) 656 None Escape
33 (!) 1333 None Exclamation mark
35 (#) 409 None Hash
36 ($) 425 None Dollar
37 (%) 631 None Percent
38 (&) 329 None And
43 (+) 396 None Plus
45 (-) 706 None Dash
View SAPI4 Sam IAudioFile crash
aaAAAAaaaaaaaAaAAaaAaAAaAaaaAAaaAaAaaaaAaaaaaaAaAaaaA aaAaaaaaAAAAAaaaaAAAAAaaaAaaAaaAaaaAAAAaaaaa aAAaaaAaaaAAAAaaaaaaAAAAAAaaaAaAAaaAaaAAaAaAaa oeauIoIiYEeUyEYuYyaIuUuAEuIoyeOaEyEOUuUyOOAuoYaA oOOOoOoooooOooooOOoOOooOOooOOOOOoOOooOoooOoOooooooOo aaAAAAaAAaaAAaAaAAAAAaaAaAaAAaAaaaAAaAaaaAaaaAAaaaA uUUuuuUUuuUuuUUUuUuUuuUuUuUuUuuuuuuUuUuUuuuu eeEEEeEeeeEeEEEeeEEeeEEEEeEeeeEEeEeEeeeeEeeeEEeee aaaaAaaAAAAAAaAaaaAaAaaaAAAAaaAAaaAAaAaaaaaa iIiIiIiIiiIiiIiIiIiIIiiIiIiIIIiiiIIiIIiIIIIIiiiIIiiII aAAaaAaAaaAaAAAaAAAaaAAAAaaaaAaaaAAaaAaaaAAaaaaaAaaA uuuUUUuUuUUuuUUuUuuuuUUuuUUuuUUuUUuUUUUUuUUUUUuUuUuUuuUUu yauiUioEAoeOeEeAiAYYaaIUeyaeeAYiiIyoiUUeyY yYyyyYyyyyyYyYYYyyYYyyYyYyYyYYYyYYYYyYYyYy yyYYYYyYyYYYyyyyYYYYyYyYYYYyyYYYYyyyYYyyyYYY eEEeeeeEeeeeeeeEeEeeEEeeeEEEeEEEeEEeeEEeeEEeeEE iiIIiiIiiIIIiiiiiiIiIIiIiIIiiIiiiIiiIiiIiIIIIIiiIii eeeEeEEEEEeEEeEEeEeeEEeeEeeeeEEeeEeeEeeeeee eEeeEEeEeeeeEEeEeEeeeeeeeEeeEEEEeEEeeeEeEEeeeeeEeEeEEE uUuUUuuUUuUUuuuuUUuUUUUUUUuUUUuUUuuUuuuUuuuuUuuuuuUUu uUuUuUUuuUUUUuUuUuUuUuuuUUuUUUUuUUU
View keybase.md

Keybase proof

I hereby claim:

  • I am tetyys on github.
  • I am tetyys (https://keybase.io/tetyys) on keybase.
  • I have a public key whose fingerprint is B437 616B 6E96 102F E8A2 3C30 9C36 8FA0 9AD8 229D

To claim this, I am signing this object:

@TETYYS
TETYYS / zalloc
Created Jun 18, 2015
how cool is dat
View zalloc
#define zalloc(x) calloc(x, 1)
@TETYYS
TETYYS / itoa
Created May 15, 2015
no more library bullshit, real large integer comes in, legit string comes out (copied from somewhere)
View itoa
char* IntegerToString(uint64_t value, char* result, int base) {
// check that the base if valid
if (base < 2 || base > 36) { *result = '\0'; return result; }
char* ptr = result, *ptr1 = result, tmp_char;
int tmp_value;
do {
tmp_value = value;
value /= base;
@TETYYS
TETYYS / PrintBytes
Created Apr 2, 2015
Dumps bytes in cool hex fashion to console
View PrintBytes
/// <summary>
/// Dumps bytes in cool hex fashion to console
/// </summary>
/// <param name="In">Bytes</param>
/// <param name="Width">Width of table</param>
/// <param name="Char">Char for non-printable characters</param>
/// <returns></returns>
public static string PrintBytes(byte[] In, int Width = 8, char Char = '.') {
var sb = new StringBuilder();
int size = In.Length;
You can’t perform that action at this time.