Skip to content

Instantly share code, notes, and snippets.

View Tamschi's full-sized avatar
🃏
Increasingly doing a little of everything

Tamme Schichler Tamschi

🃏
Increasingly doing a little of everything
View GitHub Profile
@saile515
saile515 / Notes.ts
Created April 9, 2022 14:14
TypeScript note/frequency enum.
export enum Tone {
C0 = 16.35,
Cs0 = 17.32,
Db0 = 17.32,
D0 = 18.35,
Ds0 = 19.45,
Eb0 = 19.45,
E0 = 20.6,
F0 = 21.83,
Fs0 = 23.12,
@mxashlynn
mxashlynn / Advice: Balancing Day Job with Side Project.md
Last active September 4, 2023 20:35
Tips on Work/Life/Side Project Balance

Advice On Balancing a Day Job with a Side Project

Here are tips I've been given by others.

TL;DR

  1. Only follow advice that makes sense for you.
  2. Choose side projects that you actually have time to do.
  3. Be organized and establish a routine.
  4. Prioritize your health, your relationships, and paying your bills above your personal project.
from Crypto.Cipher import AES
import json, string, zlib, hashlib
# NOTE: You must set these as global variables ahead of time.
# TODO: Accept as parameters to API, have a stateful class or something
server_secret = ''
client_secret = ''
# Usage notes:
# Initially, communications only have request crypto, and payloads are plaintext gzip
@Mijyuoon
Mijyuoon / better-discord.css
Last active October 4, 2021 07:03
Custom discord theme
/* -- Hide "Blocked Messages" frames -- */
.messageGroupBlocked-3wrQQX {
display: none !important;
}
/* -- Unfuck font sizes, fuck Discord -- */
.base-1x0h_U,
.title-eS5yk3,
@JohnnyonFlame
JohnnyonFlame / dithered_prng_bilinear_fog.c
Created May 23, 2016 09:32
R5G6B5 Software dithered fog for TinyGLES
uint32_t (*fb_dst)[surface->w/2] = (uint32_t(*)[surface->w/2])surface->pixels;
uint32_t (*px_src)[surface->w/2] = (uint32_t(*)[surface->w/2])cur_zbuf->pbuf;
uint32_t (*zb_src)[surface->w/2] = (uint32_t(*)[surface->w/2])cur_zbuf->zbuf;
uint16_t err_acc = 0;
#define basecoef 0xFFFF
#define precision 0xFFC0
#define accumulate ((basecoef ^ precision))
#define fixmath_depth(c, mul) (c) = (((c) * ((mul) & precision)) >> 10)
#define MACRO_PROPAGATE_FOG(r, g, b, alpha) \
@LukaHorvat
LukaHorvat / packing
Created February 11, 2014 11:19
Rectangle packing in F#
namespace Firefly2.Functional.RectanglePacking
type IRectangle =
abstract member X : double with get, set
abstract member Y : double with get, set
abstract member Width : double
abstract member Height : double
abstract member Id : int
type internal Spot(x: double, y: double, width: double, height: double) =
@sim642
sim642 / delegate.hpp
Last active July 22, 2020 17:27
C++11 variadic template class for C# equivalent of delegates.
#ifndef DELEGATE_HPP_INCLUDED
#define DELEGATE_HPP_INCLUDED
#include <functional>
#include <vector>
// general case
template<typename R, typename... Args>
class delegate
{