I hereby claim:
- I am cure53 on github.
- I am cure53 (https://keybase.io/cure53) on keybase.
- I have a public key whose fingerprint is F98B 0EC1 8640 2F60 292C 5877 C26C 8580 90F7 0ADA
To claim this, I am signing this object:
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |
I hereby claim:
To claim this, I am signing this object:
#time | |
#r "bin/Release/Streams.Core.dll" | |
open Nessos.Streams.Core | |
let data = [|1..10000000|] |> Array.map int64 | |
#r "../../packages/FSharp.Collections.ParallelSeq.1.0/lib/net40/FSharp.Collections.ParallelSeq.dll" |
| |
#r @"E:\Assemblies\OpenTK\OpenTK.dll" | |
open System | |
open System.Drawing | |
open System.Collections.Generic | |
open OpenTK | |
open OpenTK.Graphics | |
open OpenTK.Graphics.OpenGL |
type cell = A | B | |
type 'cell U = U of 'cell LazyList * 'cell * LazyList<'cell> | |
module Universe = | |
open LazyList | |
let U left focus right = U (left, focus, right) | |
let initial () = U (repeat A) B (repeat A) | |
let shiftRight = fun (U (left,focus,Cons(focus',right))) -> U (cons focus left) focus' right |
open System | |
type Cylinder = | |
| FourFourEight | |
| SixSixTwelve | |
| ThreeThreeSix | |
| TwoTwoTwo | |
type CylinderMeasurement = | |
{ WidthA: float |
let GetAsync(url : string, i : int) = | |
async { | |
let req = WebRequest.Create(url) | |
let! rsp = req.AsyncGetResponse() | |
use stream = (rsp :?> HttpWebResponse).GetResponseStream() | |
use zip = new GZipStream(stream, CompressionMode.Decompress) | |
use reader = new StreamReader(zip) | |
Console.WriteLine("Received page " + i.ToString()) | |
return reader.ReadToEnd() | |
} |
import pygame | |
import random | |
import math | |
from vec import Vec | |
from GF2 import * | |
pygame.init() | |
screen_width = 600 |
-- basic implementation of a vector type | |
-- modeled after the Vec type from Courseras "Coding the Matrix" class | |
-- | implementation of a sparse-vector representation based on the | |
-- Courseras "Coding the Matrix" MOOC class | |
-- this is in no way optimized and is just indended for learning | |
module Vec where | |
-- *** I worked with these imports ... you might want others (or not) |
module test | |
(* | |
#r "Microsoft.Solver.Foundation.dll";; | |
#load "test.fs";; | |
test.computeProblem;; | |
*) | |
open Microsoft.SolverFoundation.Common | |
open Microsoft.SolverFoundation.Services |