Skip to content

Instantly share code, notes, and snippets.

View ashkan-saeedi-mazdeh's full-sized avatar

Ashkan Saeedi Mazdeh ashkan-saeedi-mazdeh

View GitHub Profile
@ashkan-saeedi-mazdeh
ashkan-saeedi-mazdeh / TimestampedBuffer.cs
Created November 22, 2017 08:31
This is a buffer which holds a set of time stamped values and can return a value in time which is interpolated by a custom interpolation function. The methods or the data structure itself aren't optimized for performance and memory allocation reduction
using System;
using System.Collections.Generic;
/// <summary>
/// This is a buffer of values which are sorted by timestamps
/// </summary>
/// <typeparam name="T"></typeparam>
public class TimestampedBuffer<T>
{
/// <summary>
@ashkan-saeedi-mazdeh
ashkan-saeedi-mazdeh / log..txt
Created September 17, 2015 16:36
GPGS log output
Enter file contents here--------- beginning of /dev/log/system
D/PowerManagerService( 446): handleUserActivityTimeout
D/PowerManagerService( 446): updateUserActivitySummaryLocked: mWakefulness=Awake, mUserActivitySummary=0x0, nextTimeout=11840241 (4 ms ago)
D/PowerManagerService( 446): updateWakefulnessLocked: Bed time...
D/PowerManagerService( 446): goToSleepNoUpdateLocked: eventTime=11840245, reason=2
@ashkan-saeedi-mazdeh
ashkan-saeedi-mazdeh / Console.cs
Last active September 10, 2015 13:49 — forked from mminer/Console.cs
Unity script to display in-game debug console.
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A console to display Unity's debug logs in-game.
/// </summary>
public class Console : MonoBehaviour
{
struct Log
{