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
{"lastUpload":"2022-03-13T12:28:19.824Z","extensionVersion":"v3.4.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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es2020": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/recommended" | |
], |
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
export const thunkSendMessage = ( | |
message: string | |
): ThunkAction<void, StoreState, unknown, Redux.Action<string>> => async dispatch => { | |
const asyncResp = await exampleAPI() | |
console.log ("WHY CAN'T I SEE THIS???") | |
SetInput (dispatch) (message) | |
} |
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
const | |
mkEvent = <ActionType> (action: ActionType) => (dispatch: Dispatch<ActionType>) => () => dispatch (action) | |
, mkEventF = <A, ActionType> (f: (x: A) => ActionType) => (dispatch: Dispatch<ActionType>) => (x: A) => dispatch (f (x)) |
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
-- Something like this | |
$(gen "position" ''Mesh ''V3) | |
-- Should generate that | |
getPosition :: Mesh -> JSM V3 | |
getPosition = get "position" | |
setPosition :: V3 -> Mesh -> JSM () | |
setPosition = set "position" |
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
#============================================================================= | |
# dark_powered.toml --- dark powered configuration example for SpaceVim | |
# Copyright (c) 2016-2017 Wang Shidong & Contributors | |
# Author: Wang Shidong < wsdjeg at 163.com > | |
# URL: https://spacevim.org | |
# License: GPLv3 | |
#============================================================================= | |
[options] | |
colorscheme = "one" |
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
module Babylon.Data.V where | |
import Data.Aeson | |
import GHC.Generics | |
import JS | |
data V2 = V2 { x, y :: Float } deriving (Show, Generic) | |
instance ToJSVal V2 where | |
toJSVal v = newb "Vector2" [v.x, v.y] |
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
local ____modules = {} | |
local ____moduleCache = {} | |
local ____originalRequire = require | |
local function require(file) | |
if ____moduleCache[file] then | |
return ____moduleCache[file] | |
end | |
if ____modules[file] then | |
____moduleCache[file] = ____modules[file]() |
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
local ____modules = {} | |
local ____moduleCache = {} | |
local ____originalRequire = require | |
local function require(file) | |
if ____moduleCache[file] then | |
return ____moduleCache[file] | |
end | |
if ____modules[file] then | |
____moduleCache[file] = ____modules[file]() |
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
# ~/.SpaceVim.d/init.toml | |
# All SpaceVim option below [option] section | |
[options] | |
# set spacevim theme. by default colorscheme layer is not loaded, | |
# if you want to use more colorscheme, please load the colorscheme | |
# layer | |
colorscheme = 'one' | |
colorscheme_bg = 'dark' | |
# Disable guicolors in basic mode, many terminal do not support 24bit |
NewerOlder