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
console.clear(); | |
function mem2() { | |
let iset = {}; | |
return (fn) => { | |
return (...args) => { | |
!(args in iset) && (iset[args] = fn(...args)); | |
return iset[args]; | |
} | |
} |
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
name: Basic custom function | |
description: Calculates the volume of a sphere. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* Calculates the volume of a sphere. | |
* @customfunction | |
* @param {number} radius |
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
'excel file should have two columns, left being the find, right being the replace | |
'the find items should read like: [xxxx] | |
Sub ReplaceByExcel() | |
Dim xl As Object | |
Dim wb As Object | |
Dim ws As Object | |
Dim rng As Object | |
Dim cl As Object | |
Set xl = CreateObject("Excel.Application") |
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
<div>hi</div> |
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
import * as winston from 'winston'; | |
import * as WebSocket from 'ws'; | |
import Config from './config'; | |
import Database from './database'; | |
import GameEngine from './gameengine'; | |
import { | |
ErrorCode, | |
EventType, | |
IBonus, | |
IEvent, |
OlderNewer