Skip to content

Instantly share code, notes, and snippets.

View kameko's full-sized avatar
⚙️
let go = future.await;

カメ子 kameko

⚙️
let go = future.await;
  • Caesura Software Solutions
  • United States of America
View GitHub Profile
@ZacharyPatten
ZacharyPatten / GenericMathematicalAddition.cs
Last active December 11, 2019 16:18
Generic Mathematics Example Using Runtime Compilation in C#
using System;
using System.Linq.Expressions;
using System.Numerics;
using static Towel.Syntax;
namespace Example
{
public class Program
{
static void Main(string[] args)
// Thanks Reddit. <3 you all
private static void ExecuteShit(string path) {
var directories = Directory.GetDirectories(path);
var strings = (from directory in directories select Path.GetFileName(directory) into d where d.StartsWith("#") select d.Substring(1)).OrderBy(f => f).ToList();
var sb = new StringBuilder();
foreach(var s in strings) {
@Slattz
Slattz / Weather.cpp
Last active February 24, 2020 08:35
[ACNL] Weather Stuff
/*
Weather Values:
0: Sky completely clear
1: Few Clouds, but clear weather
2: Dark sky/clouds to signify rain is coming, clear weather
3: Sky completely filled with grey clouds, Light Rain
4: Black clouds, Heavy Rain w/ Thunder+Lightning
5: Sky completely filled with light grey clouds, Light Snow
6: Black clouds, Heavy Snow, looks kinda 'foggy'
7+: Invalid, Music doesn't play and weather is always clear
@cmendible
cmendible / Roslyn.CodeGeneration.Program.cs
Created August 16, 2017 09:30
Create a class with dotnet core and roslyn with using statements outside the namespace
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Roslyn.CodeGeneration
{
public class Program
{
public static void Main(string[] args)
@nlothian
nlothian / Penn Treebank II Tags.md
Last active January 29, 2024 19:54
Penn Treebank II Tags
@aras-p
aras-p / preprocessor_fun.h
Last active April 28, 2024 15:25
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@ppanyukov
ppanyukov / LogAgent.fs
Created March 13, 2012 03:07
Asynchronous log writer implemented using F# agent
module LogAgent =
// Log writer implementation using F# asynchronous agents
// Written as an excersise
open System
open System.IO
type private Message =