Skip to content

Instantly share code, notes, and snippets.

View bluebear94's full-sized avatar
🦊
fluffy fox

+merlan #flirora bluebear94

🦊
fluffy fox
View GitHub Profile
$ ./magict
Fixed-point function test: trigonometry
0 -> (3fffffff, 0) -> ffff < 0
1000000 -> (3ffb10c4, 1921561) -> 10009 < ffdf94
2000000 -> (3fec43c6, 323ecc0) -> 10002 < 1ffc4b0
3000000 -> (3fd39b5d, 4b54828) -> 10001 < 30029c2
4000000 -> (3fb11b49, 645e9b5) -> 1000a < 3ff8b23
5000000 -> (3f84c8e3, 7d59395) -> 1000a < 50013df
6000000 -> (3f4eaafe, 9640835) -> 10001 < 5ffd025
7000000 -> (3f0ec9f5, af10a23) -> 1000a < 6ffb554
@bluebear94
bluebear94 / gist:a71867129ab47cb754992157b988b44e
Created September 7, 2016 04:10
Wizard101 Servers Run On Windows
$ xxd -c 64 WizardGraphicalClient.exe | grep -Fai "C:\\code"
017e6140: 6e74 6572 3c63 6c61 7373 204e 694e 6f64 653e 2c63 6c61 7373 2049 6e50 6c61 6365 416c 6c6f 6361 746f 723e 3a3a 4c6f 6164 4173 7365 7400 0000 633a 5c63 6f64 655c nter<class NiNode>,class InPlaceAllocator>::LoadAsset...c:\code\
017e6440: 4e6f 6465 3e20 3e3a 3a4c 6f61 6400 0000 633a 5c63 6f64 655c 7769 7a61 7264 3130 315c 7769 7a61 7264 5f31 5f33 3130 5c63 6f72 655c 636f 6d6d 6f6e 5c72 6573 6f75 Node> >::Load...c:\code\wizard101\wizard_1_310\core\common\resou
017e6780: 4865 6c70 6572 4f62 6a65 6374 4d61 6e61 6765 722c 756e 7369 676e 6564 205f 5f69 6e74 3634 3e3a 3a6f 7065 7261 746f 7220 2829 0000 0000 0000 433a 5c43 6f64 655c HelperObjectManager,unsigned __int64>::operator ()......C:\Code\
017e8100: 4d4c 5265 636f 7264 2026 3e3a 3a6f 7065 7261 746f 7220 2829 0000 0000 5365 7269 616c 697a 6572 4269 6e61 7279 3a3a 4c6f 6164 0000 0000 0000 433a 5c43 6f64 655c MLRecord &>::operator ()....SerializerBinary::Load......C:\Code\
017fbc80: 200f bc00
@bluebear94
bluebear94 / gist:36efec9c667549d2bb20e25b44a50903
Created November 26, 2016 02:33
NCS possible new verb scheme
seruzi → serdi
seruzizzu → serdit
seruzipu → serdjo
seruzitu → serdis
seruzinu → serdyn
seruzipui → serdipi
seruzitui → serdiči
seruzinui → serdini
seruzipuu → serdipe
seruzituu → serdite
@bluebear94
bluebear94 / gist:72e84bc2eaa1aa980ca0440220ebff48
Created November 26, 2016 02:37
real world example – mirrors NCS6 ROSAMYD to waste
rosamy → nosami
rosamyzzu → nosamyt
rosamypu → nosamo
rosamytu → nosamys
rosamynu → nosamyn
rosamypui → nosamypi
rosamytui → nosamyči
rosamynui → nosamyni
rosamypuu → nosamype
rosamytuu → nosamyte
cezu → ces # 0
byyla → vyla # 1
zemu → sen # 2
enu → en # 3
tʔai → tar # 4
tʔou → do # 5
miʔa → mja # 6
laen → len # 7
pie → fe # 8
nuny → i # 9
@bluebear94
bluebear94 / gist:518da90698d769b082ce3ca83736d787
Created November 26, 2016 06:56
Possible ways causatives could be constructed in NCS7.
lupʔeizzeunu tʔai relcapu → elperssjon tar nelco
lupʔeizzeunu tʔai dorelcapu → elperssjon tar dorelco
lupʔeizzeunu tʔai relcazzypu → elperssjon tar nelcasso
lupʔeizzeunu tʔai relcatu → elperssjon tar nelcas
lupʔeizzeunu tʔai dorelcatu → elperssjon tar dorelcas
lupʔeizzeunu tʔai relcazzytu → elperssjon tar nelcassys
lupʔeizzeunu tʔai relcanu → elperssjon tar nelcan
lupʔeizzeunu tʔai dorelcanu → elperssjon tar dorelcan
lupʔeizzeunu tʔai relcazzynu → elperssjon tar nelcassyn
@bluebear94
bluebear94 / gist:0c0339a821d2a9681e8b6793d0d7262c
Created November 26, 2016 07:28
NCS7: evolution of regular subjunctive forms vs. if-conditions.
gatʔaysepu → gatoršo
gatʔaysetu → gatorses
gatʔaysenu → gatorsen
gatʔaysepui → gatorsepi
gatʔaysetui → gatorseči
gatʔaysenui → gatorseri
gatʔaysepuu → gatorsepe
gatʔaysetuu → gatorsete
gatʔaysenuu → gatorsene
gatʔaysepusa → gatorsespa
( ^ω^ ) 07:25:15 uruwi@uruwi-HP-ENVY-x360-m6-Convertible ~/metasquares-ai
$ ./msqai
First (0) or second (1)? Or just let the AI play both sides (2). 2
AI chose 0 0
Board:
1 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
n←ř(1,100)
g←0
ḋ("Guess the number!")
m←0
↺m≠n{
ḋ("n =? ",0)
m←ž$ĩ()
g+←1
?m<n{ḋ("Too low!")}
?m>n{ḋ("Too high!")}
@bluebear94
bluebear94 / block.mdf
Last active March 23, 2017 22:03
Proposed source syntax for a block model.
# Block model.
Hitbox: "full"
# Invalid directions will be ignored. This allows things
# like Opaque: "none" to mean that the block is always
# transparent.
Opaque: "up" "down" "north" "south" "east" "west"
# faces section -- defines faces that this model has
@Faces
# This is equivalent to two Triangle declarations.
=Quad top