Skip to content

Instantly share code, notes, and snippets.

View sylveon's full-sized avatar

Charles Milette sylveon

View GitHub Profile
@ZacharyPatten
ZacharyPatten / CustomSyntaxForNumberSets.cs
Created March 13, 2020 15:14
An example of custom syntax for making sets of numbers.
using System;
using System.Collections;
using System.Collections.Generic;
using static SetSyntax;
class Program
{
static void Main()
{
var numbers = Set * 0..5 - 1..3 + 9..20 - 12..15 + 7 - 19;
foreach (int value in numbers)
@timmc
timmc / five.log
Created March 13, 2017 21:45
(= 5 2)
freenode/#clojure on 2014-04-21:
amalloy sets 5 to be 2 using reflection, probably in PM with clojurebot:
(let [field (nth (.getDeclaredFields Long) 3)] (.setAccessible field true) (.set field 5 2))
19:10 < amalloy> justin_smith: i think ''lovecraft should contain (alter-var-root #'defmacro (constantly (fn [& args] `(quote ~(rand-nth '#{various lovecraftian horrors|)))))
19:11 < justin_smith> ouch
19:11 < amalloy> or something like it, anyawy
19:11 < justin_smith> yeah
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
public class ಠ_ಠAttribute : Attribute
{
}
[ಠ_ಠ]
public class Manager
{
// 1000s of lines here
}