Skip to content

Instantly share code, notes, and snippets.

View JakeSays's full-sized avatar
🤯
Thinking.. always

Big Jake JakeSays

🤯
Thinking.. always
View GitHub Profile
@JakeSays
JakeSays / StringShit.cs
Created July 31, 2020 23:13
String things
using System;
using System.Collections.Generic;
using System.Text;
using JetBrains.Annotations;
namespace Csx.Utility
{
[PublicAPI]
public static class StringExtensions
@JakeSays
JakeSays / stuff.txt
Last active June 5, 2020 01:50
OpenOCD debug logs
**************
Session One started for MCU 1
**************
/usr/local/bin/openocd -c gdb_port 9001 -s /p/egym/azo/test/openocd -f /p/egym/azo/test/openocd/openocd.cfg -c tcl_port disabled -c telnet_port disabled -d3
19:31:49: Debugging starts
Open On-Chip Debugger 0.10.0+dev-gd8ac008-dirty (2020-05-29-22:19)
Licensed under GNU GPL v2
For bug reports, read
@JakeSays
JakeSays / ObjectId.cs
Created April 2, 2020 01:52
ObjectId struct
using System;
using System.Runtime.InteropServices;
namespace Std.BasicTypes
{
[Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ObjectId : IEquatable<ObjectId>
{
public static readonly ObjectId Null;
@JakeSays
JakeSays / Crc64.cs
Created December 27, 2019 23:22
Crc64
using System.Text;
namespace Std.Utility.Hashing
{
public static class Crc64
{
public const ulong DefaultSeed = 0x0;
private static readonly ulong[] _defaultTable = new ulong[]
{
@JakeSays
JakeSays / Crc32.cs
Created December 27, 2019 23:19
Crc32
using System.Text;
namespace Std.Utility.Hashing
{
public static class Crc32
{
public const uint DefaultPolynomial = 0xEDB88320;
public const uint DefaultSeed = 0xFFFFFFFF;
private static readonly uint[] _defaultTable =