This file contains hidden or 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
diff -ruN src.orig/mu/nu/nullpo/game/play/GameEngine.java src/mu/nu/nullpo/game/play/GameEngine.java | |
--- src.orig/mu/nu/nullpo/game/play/GameEngine.java 2019-04-03 01:42:36.841722400 +0200 | |
+++ src/mu/nu/nullpo/game/play/GameEngine.java 2019-04-03 01:43:02.322620300 +0200 | |
@@ -811,7 +811,7 @@ | |
blockHidden = -1; | |
blockHiddenAnim = true; | |
- blockOutlineType = BLOCK_OUTLINE_NORMAL; | |
+ blockOutlineType = BLOCK_OUTLINE_NONE; // NOTE(notwa): hack! | |
blockShowOutlineOnly = false; |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
prefix="/opt/coin-or" | |
# get json2 for helping with github APIs later: | |
if [ ! -s "json2" ]; then | |
curl -LsS https://github.com/vi/json2/raw/master/json2 -o json2 | |
fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
def expect_cossim(n, approx=True): | |
""" | |
returns gamma(n / 2) / gamma((n + 1) / 2) / sqrt(pi) for positive integers. | |
""" | |
assert n > 0 | |
if approx: | |
# abs(error) < 1e-8 | |
if n >= 128000: | |
return np.reciprocal(np.sqrt(np.pi / 2 * n + 1)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import numpy as np | |
def lament(*args, **kwargs): | |
return print(*args, file=sys.stderr, **kwargs) | |
This file contains hidden or 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
// color combiner arguments: | |
// source | RGB | Alpha | official name | |
// | (a - b)* c + d | (A - B)* C + D | | |
// CC.COLOR_OUT | 0 0 0 0 | --- --- --- --- | COMBINED | |
// CC.COLOR_TEXEL_0 | 1 1 1 1 | --- --- --- --- | TEXEL0 | |
// CC.COLOR_TEXEL_1 | 2 2 2 2 | --- --- --- --- | TEXEL1 | |
// CC.COLOR_PRIM | 3 3 3 3 | --- --- --- --- | PRIMITIVE | |
// CC.COLOR_SHADE | 4 4 4 4 | --- --- --- --- | SHADE | |
// CC.COLOR_ENV | 5 5 5 5 | --- --- --- --- | ENVIRONMENT | |
// CC.KEY_CENTER | --- 6 --- --- | --- --- --- --- | CENTER |
This file contains hidden or 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
40c40 | |
< 00000270: a040 009f 3c0e 8080 25ce 32f8 240f 2410 .@..<...%.2.$.$. | |
--- | |
> 00000270: a040 009f 3c0e 8083 25ce df6c 240f 00e0 .@..<...%..l$... |
This file contains hidden or 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
# dead simple dictionary attack for fixed-length passwords. | |
# this is far from optimal. | |
from collections import defaultdict | |
import argparse | |
import sys | |
import random | |
program = sys.argv[0] | |
args = sys.argv[1:] |
This file contains hidden or 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
AANGELEG -> HRFXKLYVFFB | |
AANGENOMENEN -> HRFXKNRIKZO | |
AANGEROL -> HRFXKRDKWTV | |
AANSTUIVING -> HRFIIVUPSXT | |
AANTRAD -> HRFJBNGVICJ | |
AARSKOERNING -> HRJVLROLITS | |
AARTSBRO -> HRJWHOVNTOG | |
AASE -> HRKWLPTIGOG | |
ABADIA -> HSH BLGXZSU | |
ABAISSERA -> HSHEKHWJVEX |