I hereby claim:
- I am poizan42 on github.
- I am poizan42 (https://keybase.io/poizan42) on keybase.
- I have a public key whose fingerprint is 66C6 C343 F614 65F9 248E 204E B00A C5E2 7BCE D2B8
To claim this, I am signing this object:
exception Encoding of string; | |
local | |
fun decodeUtf8Chars nil = nil | |
| decodeUtf8Chars (c::rest) = | |
if c < #"\128" then (ord c)::(decodeUtf8Chars rest) | |
else | |
let | |
val cn = ord c | |
(* 0xF4 is the largest allowed start byte after the restriction |
(* ex: set ts=2 sw=2 et ai: *) | |
use "InstagraML.sml"; | |
local | |
fun rayMarch (x,y,z) = | |
let | |
val xdist0 = (((x-160) * z + 4096) div 256) mod 256 | |
val ydist = (((y-100) * z + 4096) div 256) mod 256 | |
val xdist = case z div 64 of |
I hereby claim:
To claim this, I am signing this object:
(* const : 'a -> 'b -> 'a | |
* Giver den konstante funktion der giver x. *) | |
fun const x _ = x | |
(* Lad os få os en IO monade så vi ikke skal se på alt det urene snask. *) | |
signature IOSig = sig | |
type 'a io | |
(* Monade operationer *) | |
val >>= : 'a io -> ('a -> 'b io) -> 'b io | |
val >> : 'a io -> 'b io -> 'b io |
Require Import Coq.Arith.Div2. | |
Require Import Coq.Arith.Mult. | |
Require Import Coq.Arith.Even. | |
Require Import ArithRing. | |
Fixpoint triangular (n: nat) := | |
match n with | |
| 0 => 0 | |
| S n => (S n) + triangular (n) | |
end. |
Require Import Coq.ZArith.ZArith. | |
Require Import Coq.ZArith.Znumtheory. | |
Require Import Coq.Sets.Ensembles. | |
Require Import Coq.Sets.Finite_sets. | |
Require Import Coq.PArith.BinPos. | |
Definition Z_ens := Ensemble Z. | |
Print Finite. | |
Print Empty_set. | |
Definition is_empty_set U A := forall x, ~(In U A x). |
void write_int(int n) { | |
// Length of INT_MIN as a decimal number is 11 (-2147483647) | |
char buf[11]; | |
int neg = n < 0; | |
n *= 1 - 2*neg; | |
int pos = 11; | |
do { | |
buf[--pos] = '0' + (n % 10); | |
n /= 10; | |
} while (n); |
#include <string> | |
#include <codecvt> | |
#include <locale> | |
int main(int argc, const char *argv[]) | |
{ | |
std::wstring_convert < std::codecvt<wchar_t, char, std::mbstate_t> > conv; | |
std::vector<const wchar_t*> wargv; | |
std::vector<std::wstring> wsargv; | |
wargv.resize(argc); |
$listObj = [ADSI]"LDAP://CN=DistList,CN=Users,DC=example,DC=com" | |
$tmpMembers = $listObj.PSBase.Invoke('Members') | %{([System.DirectoryServices.DirectoryEntry] $_).mail} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |