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
| const onlineState = { | |
| states: { | |
| idle: { | |
| on: { | |
| CONFIG_CHANGE: "fetching", | |
| DATA_STALE: "fetching", | |
| }, | |
| }, | |
| retrieving: {}, | |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| local lib, oldminor = LibStub:NewLibrary("LibChatTypes-1.0", 1) | |
| if not lib then return end | |
| local registry = {} | |
| local emitterproto = {} | |
| local function dbg(...) | |
| --Prat:PrintLiteral(...) | |
| end |
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
| Prat:AddModuleToLoad(function() | |
| local SMFHax = Prat:NewModule("SMFHax", "AceHook-3.0") | |
| SMFHax.fs_pool = {} | |
| local new, del | |
| do | |
| local wipe = wipe | |
| local cache = setmetatable({}, {__mode='k'}) |
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
| 1x LibWho-2.0\LibWho-2.0\LibWho-2.0-148.lua:917: attempt to index field 'Result' (a nil value) | |
| LibWho-2.0\LibWho-2.0\LibWho-2.0-148.lua:917: in function `ProcessWhoResults' | |
| LibWho-2.0\LibWho-2.0\LibWho-2.0-148.lua:897: in function `?' | |
| LibWho-2.0\LibWho-2.0\LibWho-2.0-148.lua:930: in function <LibWho-2.0\LibWho-2.0\LibWho-2.0.lua:929> | |
| Locals: | |
| self = <table> { | |
| GetNextFromScheduler = <function> defined @LibWho-2.0\LibWho-2.0\LibWho-2.0.lua:377 | |
| ReturnWho = <function> defined @LibWho-2.0\LibWho-2.0\LibWho-2.0.lua:502 | |
| Cache = <table> { |
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
| let a = ["foo", "bar", "baz", ""] | |
| let allLenGreaterThanZero = a.map {$0.characters.count>0}.reduce(false, combine: { $0 || $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
| // Ojc Category on NSError | |
| @interface NSError (MyCategory) | |
| + (NSError *) clientErrorWithCode: (NSInteger) code; | |
| @end | |
| // Swift Error Enum | |
| @objc enum AppError : Int { | |
| case Foo = 0 | |
| case Bar = 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
| // Non-Working Code | |
| if var monthArray = self.orderHistory[monthStr] { | |
| monthArray.append(anOrder) | |
| } else { | |
| var monthArray = [HLOOrder]() | |
| self.orderHistory[monthStr] = monthArray | |
| monthArray.append(anOrder) | |
| } | |