Skip to content

Instantly share code, notes, and snippets.

@ManeFunction
ManeFunction / EasingFunctions.cs
Last active June 3, 2024 03:35 — forked from cjddmut/EasingFunctions.cs
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
* Refactored by Mane Function
*
* The MIT License (MIT)
*
* Copyright (c) 2019-2023
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@mjs3339
mjs3339 / MMTimer.cs
Last active September 1, 2022 07:14
C# Multimedia Timer TimeSetEvent TimeKillEvent
public class MMTimer : IDisposable
{
private const int EventTypePeriodic = 1;
private const uint STATUS_SUCCESS = 0;
private const uint STATUS_TIMER_RESOLUTION_NOT_SET = 0xC0000245;
private readonly MultimediaTimerCallback Callback;
private bool disposed;
private bool enabled;
private bool highestPossibleResolution;
private int interval, resolution;
@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active July 4, 2024 20:20
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@blixtra
blixtra / Android Memory Management Notes.md
Created May 7, 2014 20:20
Notes taken while looking into memory issues on low-RAM devices

Android Memory Management

Android has a unique memory management model. Below, are the notes taken while we try to understand it thoroughly.

Activity Manager

Overview

The ActivityManager, among other things, is responsible for making sure that apps that are most important to the user and/or essential remain active. It does this by dynamically assigning values that roughly indicate the app's importance. When memory gets low these values are used to find the apps that need to be "trimmed." The memory from these "trimmed" apps is freed, making more available for the more important apps.