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
| (function() { | |
| var ff = {}; | |
| ff._ = Symbol("_"); | |
| ff._$ = Symbol("_$"); | |
| function thunk(fn) { | |
| fn[ff._$] = true; | |
| return fn; |
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
| var compose = (...fns) => (...args) => fns.reduceRight((res, fn) => [fn.call(null, ...res)], args)[0]; | |
| var toUpperCase = s => s.toUpperCase(); | |
| var head = arr => arr[0]; | |
| var tail = arr => arr.slice(1); | |
| var split = s => arr => arr.split(s); | |
| var join = s => arr => arr.join(s); | |
| var map = fn => arr => arr.map(fn); | |
| var filter = fn => arr => arr.filter(fn); | |
| compose(join(". "), map(compose(toUpperCase, head)), split(" "))("hunter stockton thompson") |
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
| function BTreePLink () { | |
| this.data = []; | |
| this.next = null; // If null then end of linked list | |
| } | |
| function BTreePNode () { | |
| this.owe = null; | |
| this.part = []; // If empty then leaf node | |
| this.node = []; // If length > 0 then leaf node | |
| } |
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
| from jce import types, JceStruct, JceField | |
| # from jce.types import JceType | |
| # from typing import Dict, Tuple | |
| # from typing import Dict, Tuple, Optional, Type, Any | |
| # import struct | |
| # get the raw data blob from G_roomBaseInfo.mStreamPkg |
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
| //P.S: really sorry for bad English, not my first language :( | |
| //Main coroutine class | |
| function Coroutine(configs, condition, param, actions, workData) { | |
| /* | |
| Configs object: (Only have one option, really ... useless?) | |
| { | |
| reset: //Boolean, check if Coroutine be able to reset and iterate again, | |
| } | |
| */ |
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
| var Notations = { | |
| Short_Number_Old: 1, | |
| Long_Number_Old: 2, | |
| Short_Number_New: 3, | |
| Long_Number_New: 4, | |
| Exponential: 5, | |
| Scientific: 6, | |
| Engineering: 7, | |
| }; | |
| Decimal.format = Notations.Long_Number_Old; |