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
version: '2' | |
services: | |
db: | |
image: oscarfonts/h2 | |
container_name: zeebe_db | |
ports: | |
- "1521:1521" | |
- "81:81" | |
networks: |
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
Show hidden characters
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ | |
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
// "lib": [], /* Specify library files to be included in the compilation. */ | |
// "allowJs": true, /* Allow javascript files to be compiled. */ | |
// "checkJs": true, /* Report errors in .js files. */ | |
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | |
// "declaration": true, /* Generates corresponding '.d.ts' file. */ |
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 empty(data) | |
{ | |
if(typeof(data) == 'number' || typeof(data) == 'boolean') | |
{ | |
return false; | |
} | |
if(typeof(data) == 'undefined' || data === null) | |
{ | |
return true; | |
} |
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 baseToNumber from './baseToNumber.js' | |
import baseToString from './baseToString.js' | |
/** | |
* Creates a function that performs a mathematical operation on two values. | |
* | |
* @private | |
* @param {Function} operator The function to perform the operation. | |
* @param {number} [defaultValue] The value used for `undefined` arguments. | |
* @returns {Function} Returns the new mathematical operation function. |
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 createMathOperation = require('./_createMathOperation'); | |
var add = createMathOperation(function(augend, addend) { | |
return augend + addend; | |
}, 0); | |
module.exports = add; |
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 createMathOperation from './.internal/createMathOperation.js' | |
/** | |
* Adds two numbers. | |
* | |
* @since 3.4.0 | |
* @category Math | |
* @param {number} augend The first number in an addition. | |
* @param {number} addend The second number in an addition. | |
* @returns {number} Returns the total. | |
* @example |
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 magik = magikcraft.io; | |
function zombie(target: string){ | |
const EntityType = magik.type("entity.EntityType"); | |
const aZombie = EntityType['ZOMBIE']; | |
const where = magik.aspecto(); | |
const world = where.getWorld(); | |
const zombie = world.spawnEntity(where, aZombie); |
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 magik = magikcraft.io; | |
/* | |
Fonts are bitmaps. | |
Each number is the decimal equivalent of the binary | |
bitmap of the line, for example: 00011000 = 24 | |
Here is a bitmapped 'A': | |
00011000 = 24 | |
00111100 = 60 | |
00100100 = 36 |
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
// Production steps of ECMA-262, Edition 6, 22.1.2.1 | |
function arrayFrom() { | |
var toStr = Object.prototype.toString; | |
var isCallable = function (fn) { | |
return typeof fn === 'function' || toStr.call(fn) === '[object Function]'; | |
}; | |
var toInteger = function (value) { | |
var number = Number(value); | |
if (isNaN(number)) { return 0; } | |
if (number === 0 || !isFinite(number)) { return number; } |
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
/** | |
* Replay a sequence recorded with cam_capture. | |
* Optionally takes a playback speed, for example: | |
* /cast cam_replay(2) for 2x playback. | |
* Cast cam_replay while it is replaying to halt playback. | |
*/ | |
const magik = magikcraft.io; | |
magik.dixit('Replaying...'); |