content
stringlengths
5
1.05M
function __TS__Spread(iterable) local arr = {} if type(iterable) == "string" then do local i = 0 while i < #iterable do arr[#arr + 1] = __TS__StringAccess(iterable, i) i = i + 1 end end else for ____, item in __TS__I...
-- two library -- stb 3rdparty module function stb_module(name) local m = dep('stb', name, true) kind "StaticLib" includedirs { path.join(TWO_SRC_DIR), path.join(TWO_3RDPARTY_DIR, "stb"), } files { path.join(TWO_3RDPARTY_DIR, "stb", "stb_" .. name .. ".h"), pat...
function init() reset() end function step() log("wheelvelocities:".. string.format("%.2f", robot.joints.base_wheel_bl.encoder) ..",".. string.format("%.2f", robot.joints.base_wheel_fl.encoder) ..",".. string.format("%.2f", robot.joints.base_wheel_br.encoder) ..",".. string.format("%.2f", robot....
------------------------------------------------------------------------------------------------------------------------------------------------------------- -- initialize all the scripts ------------------------------------------------------------------------------------------------------------------------------------...
local sub = string.sub local concat = table.concat local str_meta = { __index = function(s, i) return sub(s.str, i, i) end, __newindex = function(s, i, v) s.str = concat({sub(s.str, 0, i-1), v, sub(s.str, i+1)}, "") end, __tostring = function() return s.str end, __len = function(s) return #s.str end, }...
object_tangible_quest_naboo_theed_borvo_antenna = object_tangible_quest_shared_naboo_theed_borvo_antenna:new { } ObjectTemplates:addTemplate(object_tangible_quest_naboo_theed_borvo_antenna, "object/tangible/quest/naboo_theed_borvo_antenna.iff")
--[[------------------------------------------------------------------------------------------------------------------------- Works as relay between discord and gmod server -------------------------------------------------------------------------------------------------------------------------]] -- local PLUGIN = {} PL...
----------------------------------- -- Blade Ei -- Katana weapon skill -- Skill Level: 175 -- Delivers a dark elemental attack. Damage varies with TP. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: Dark -- Modifiers: STR:30% INT:30% -- 100%TP 200%TP 300%TP -- 1.00 1.50 ...
local AddonName, AddonTable = ... AddonTable.herbalism = { 52983, -- Cinderbloom 52984, -- Stormvine 52985, -- Azshara's Veil 52986, -- Heartblossom 52987, -- Twilight Jasmine 52988, -- Whiptail }
return {'equalizer','equatie','equator','equatoriaal','equidistant','equidistante','equilibrist','equilibriste','equinoctiaal','equinox','equipage','equipagemeester','equipe','equipement','equiperen','equivalent','equivalentie','equaties','equatoriale','equilibristen','equinoctiale','equinoxen','equipagemeesters','equi...
return {'xxx'}
-- items: 28056, 28052 function event_say(e) if(e.message:findi("hail")) then e.self:Say("Beware these woods! The sarnak claim this land as their own and wicked creatures walk beneath the burning foliage."); end end function event_trade(e) local item_lib = require("items"); if(item_lib.check_turn_in(e.trade, {it...
local profile = {}; gcdisplay = gFunc.LoadFile('common\\gcdisplay.lua'); gcinclude = gFunc.LoadFile('common\\gcinclude.lua'); sets = T{ Idle = { Main = 'Bolelabunga', Sub = 'Genmei Shield', Head = 'Nyame Helm', Neck = 'Loricate Torque +1', Ear1 = 'Eabani Earring', Ea...
object_intangible_vehicle_light_bending_barc = object_intangible_vehicle_shared_light_bending_barc:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_light_bending_barc, "object/intangible/vehicle/light_bending_barc.iff")
local skynet = require "skynet" local sharedata = require "skynet.sharedata" local log = require "skynet.log" local mysql = require "skynet.db.mysql" local utils = require "utils" local crypt = require "skynet.crypt" local mysql_list = {} local MYSQL_INDEX = 1 local command = {} local function do_query(sql) if M...
--[[ Jet -> Boot Entry (Shared) by Tassilo (@TASSIA710) This is the boot entry for Jet. --]] AddCSLuaFile("jet/shared.lua") include("jet/shared.lua")
gemai.register_action("aurum_mobs:alert_herd", function(self) for _,object in ipairs(minetest.get_objects_inside_radius(self.entity.object:get_pos(), aurum.mobs.SEARCH_RADIUS)) do if object ~= self.entity.object and aurum.mobs.helper_same_herd(self, object) then local mob = aurum.mobs.get_mob(object) local tar...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function LoadSkin() local IconBackdrop = CreateFrame("Frame", nil, LossOfControlFrame) IconBackdrop:SetFrameLevel(1) ...
return "a"
local _servers = { {1, " 154.32.107.18", " 154.32.105.18", "Telstra Global - (GB)"}, {1, " 31.3.112.165", " ", "Escuelas De Estudios Superiores Esic Sacerdotes Del Corazon De Jesus Padres Reparadores - Majadahonda (ES)"}, {1, " 195.97.240.237", " ", "ONYX Onyx Group - Carluke (GB...
local folderName = ... local math_max = _G.math.max local math_min = _G.math.min local math_floor = _G.math.floor local ButtonFrameTemplate_HidePortrait = _G.ButtonFrameTemplate_HidePortrait local function Round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math_floor(num * mult + 0....
local K, C, L, _ = select(2, ...):unpack() if C.Tooltip.Enable ~= true or C.Tooltip.ItemCount ~= true then return end local GetItemCount = GetItemCount local CreateFrame = CreateFrame -- Item count in tooltip(by Tukz) GameTooltip:HookScript("OnTooltipCleared", function(self) self.UIItemTooltip = nil end) GameTooltip...
function onPathAction() if getPokemonHealthPercent(1) ~= 100 then return talkToNpcOnCell(59,13) else return moveToNormalGround() end end function onBattleAction() run() end
fx_version 'bodacious' game 'gta5' description 'Fumigate Job by gonibix23' version '1.0.0' server_scripts { 'config.lua', 'server/main.lua' } client_scripts { 'config.lua', 'client/main.lua' }
object_tangible_item_beast_converted_lava_flea_decoration = object_tangible_item_beast_shared_converted_lava_flea_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_lava_flea_decoration, "object/tangible/item/beast/converted_lava_flea_decoration.iff")
local Name, Addon = ... function Addon.IsNPC(guid) return guid and guid:sub(1, 8) == "Creature" end function Addon.GetNPCId(guid) return tonumber(select(6, ("-"):split(guid)), 10) end function Addon.GetInstanceDungeonId(instance) if instance then for id,enemies in pairs(MDT.dungeonEnemies) do ...
local function wct2txt(self, file_name_in, file_name_out) local content = io.load(file_name_in) if not content then message('文件无效:' .. file_name_in:string()) return end local index = 1 local max = #content local chunk = {} --文件版本 chunk.file_ver, ind...
-- See LICENSE for terms return { PlaceObj("ModItemOptionNumber", { "name", "LargeRocksCost", "DisplayName", T(302535920011435, "Cost of large rocks"), "DefaultValue", 10, "MinValue", 1, "MaxValue", 250, }), }
local mg = require "moongen" local memory = require "memory" local device = require "device" local stats = require "stats" local log = require "log" local ip4 = require "proto.ip4" local libmoon = require "libmoon" function configure(parser) -- do nothing, just check parse errors function convertMac_fake(str) ...
-- Controls transitions into every screen unless overridden by another 'ScreenName in' -- This just creates a black box that covers the screen and then fades it to invisible after 0.1 seconds return Def.Quad { InitCommand = function(self) self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y):zoomto(SCREEN_WIDTH, SCREEN...
--[[ ExportScoreForIRC is something that AJ made for fun. It requires an understanding of how StepMania views your filesystem, as well as knowledge on how to make your IRC client play from a script file. Since this was made for a limited purpose, it assumes you play as a single player in non-course modes. It spit...
local vector = require "vector" local platform = {} platform.position = vector( 300, 500 ) platform.speed = vector( 800, 0 ) platform.image = love.graphics.newImage( "img/800x600/platform.png" ) platform.small_tile_width = 75 platform.small_tile_height = 16 platform.small_tile_x_pos = 0 platform.small_tile_y_pos = 0 p...
-------------------------------------------------------------------------------------------------------------------------- -- Decoder of GIF-files -------------------------------------------------------------------------------------------------------------------------- -- This module extracts images from GIF-files. -- ...
require "/scripts/util.lua" require "/scripts/vec2.lua" require "/scripts/versioningutils.lua" require "/items/buildscripts/abilities.lua" function build(directory, config, parameters, level, seed) local configParameter = function(keyName, defaultValue) if parameters[keyName] ~= nil then return parameters[...
construct = { version = "1.0-dev" } -- Currently construct only supports Minetest Game and MineClone (2, 5, and MineClonia) if minetest.get_modpath("default") ~= nil then construct.gamemode = "MTG" elseif minetest.get_modpath("mcl_core") ~= nil then construct.gamemode = "MCL" else construct.gamemode =...
-- This defines all the callbacks needed by server and client. -- Callbacks are called when certain events happen. VERSION = "0.6" -- These are all possible commands clients of the server can send: CMD = { CHAT = 128, MAP = 129, START_GAME = 130, GAMESTATE = 131, NEW_CAR = 132, MOVE_CAR = 133, PLAYER_WINS = 13...
local M = {} M.__index = M function M.new() local self = setmetatable({ }, M) return self end function M:fireOn() end return M
local socket = require("cqueues.socket") local LogLevel = require("web-driver/log-level") local IPCProtocol = require("web-driver/ipc-protocol") local pp = require("web-driver/pp") local RemoteLogger = {} local methods = {} local metatable = {} function metatable.__index(geckodriver, key) return methods[key] end ...
-- File browsers, fuzzy finders, explorers, searching. -- All the fun stuff to find something to operate on. local function has_words_before() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end...
local is_table_empty = assert(foundation.com.is_table_empty) local table_keys = assert(foundation.com.table_keys) local table_length = assert(foundation.com.table_length) local DeviceCluster = yatm_clusters.SimpleCluster:extends("DeviceCluster") local ic = DeviceCluster.instance_class function ic:initialize(cluster_g...
-- -- tests/actions/vstudio/vc2010/test_extension_settings.lua -- Check the import extension settings block of a VS 2010 project. -- Copyright (c) 2014 Jason Perkins and the Premake project -- local suite = test.declare("vs2010_extension_settings") local vc2010 = premake.vstudio.vc2010 local project = premake.proje...
AddJob({"output1", "output2"}, "testing 1", "echo hello > output1")
slot0 = class("PrincetonPtPage", import(".TemplatePage.PtTemplatePage")) slot0.OnInit = function (slot0) slot0.super.OnInit(slot0) slot0.buildBtn = slot0:findTF("build", slot0.bg) end slot0.OnFirstFlush = function (slot0) slot0.super.OnFirstFlush(slot0) onButton(slot0, slot0.buildBtn, function () slot0:emit(Ac...
-- server side demo if triggerServerEvent == nil then addEventHandler("onResourceStart", resourceRoot, async(function(...) outputDebugString("async start") local connection = dbConnect("sqlite", "testdb.sqlite") local task0 = asyncDbQuery(connection, "SELECT 1") local task1 = asyncSleep(10000) local t...
return { { "kevinhwang91/nvim-bqf" }, { "mhinz/vim-grepper", config = function() vim.cmd([[ augroup Grepper autocmd! autocmd User Grepper call setqflist([], 'r', {'context': {'bqf': {'pattern_hl': histget('/')}}}) | botright copen augroup ...
// Generated by github.com/davyxu/tabtoy // Version: 2.8.10 module table { export var Event : table.IEventDefine[] = [ { Id : 1, Event : 1001 } ] // Id export var EventById : game.Dictionary<table.IEventDefine> = {} function readEventById(){ for(let rec of Event) { EventById[rec.Id] = rec; } } readEvent...
---@class CS.UnityEngine.RenderTargetSetup : CS.System.ValueType ---@field public color RenderBuffer[] ---@field public depth CS.UnityEngine.RenderBuffer ---@field public mipLevel number ---@field public cubemapFace number ---@field public depthSlice number ---@field public colorLoad RenderBufferLoadAction[] ---@field ...
-- invoke as Pandoc filter -- set the metadata value 'title' based on the first level 2 header local title function Header(elem) if elem.level == 2 then -- save first heading to use as the page title if not title then title = pandoc.utils.stringify(elem) end end end function Meta(meta) if tit...
local S, G, R = precore.helpers() precore.import(G"${DEP_PATH}/duct") precore.make_config_scoped("cacophony.env", { once = true, }, { {global = function() precore.define_group("CACOPHONY", os.getcwd()) end}}) precore.make_config("cacophony.strict", nil, { {project = function() configuration {"clang"} flags { ...
--濒死时,献祭队友回血 function onStart(target, buff) add_buff_parameter(target, buff, 1) end function onPostTick(target, buff) if buff.not_go_round > 0 then return end buff.remaining_round = buff.remaining_round - 1; if buff.remaining_round <= 0 then UnitRemoveBuff(buff); end end function onEnd(target, buff) add_...
local Model = require("lapis.db.model").Model local schema = require("lapis.db.schema") local types = schema.types local lapis = require("lapis") local db = require("lapis.db") local uuid = require("uuid") -- Localize local cwd = (...):gsub('%.[^%.]+$', '') .. "." local oss_options = require(cwd .. "GameDbUrls").get...
--[[ --=====================================================================================================-- Script Name: Shotty-Snipes, for SAPP (PC & CE) Description: Players spawn with a shotgun & sniper. Other weapons & vehicles do not spawn. You can use equipment (i.e, grenades & poweru...
local U = require "togo.utility" local T = require "Quanta.Time" local O = require "Quanta.Object" local Unit = require "Quanta.Unit" local Entity = require "Quanta.Entity" local Tracker = require "Quanta.Tracker" local Vessel = require "Quanta.Vessel" local Tool = require "Quanta.Tool" local Stat = require "Bio.Stat...
local fs = require('fs') local pathjoin = require('pathjoin') local splitPath = pathjoin.splitPath local pathJoin = pathjoin.pathJoin local readFileSync = fs.readFileSync local scandirSync = fs.scandirSync local remove = table.remove local env = setmetatable({ require = require, -- luvit custom require },...
local TimeBeforeHealing = script:GetCustomProperty("TimeBeforeHealing") local HealingPerSecond = script:GetCustomProperty("HealinigPerSecond") function Regen( ) while true do for _,player in pairs(Game.GetPlayers( )) do local hp = player.hitPoints local maxHP = player.maxHitPoints ...
--[[ Copyright (c) 2019, Vsevolod Stakhov <vsevolod@highsecure.ru> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
-- -- init script content -- -- This file will be run once after deployment to configure the Application Solution. -- print("Begin initialization.") -- default_dashboard_config = '{ -- "allow_edit": true, -- "columns": 3, -- "datasources": [ -- { -- "name": "00:11:22:33:44:55 Timeseries", -- "s...
-- ULX < -- -- > ulx.LSAddXP -- > args: caller, target, xp function ulx.LSAddXP( ply, trg, xp ) if not xp then return ULib.tsayError( "XP amount is not specified!" ) end trg:LSAddXP( xp ) ulx.fancyLogAdmin( ply, "#A add #i XP to #T !", xp, trg ) end local LSAddXP = ulx.command( "guthlevelsystem", "ulx lsaddxp", ...
registerNpc(112, { walk_speed = 200, run_speed = 460, scale = 105, r_weapon = 0, l_weapon = 0, level = 38, hp = 32, attack = 154, hit = 119, def = 145, res = 81, avoid ...
local fficlass = require("fficlass") local vec3, meta = fficlass.new("typedef struct {float x, y, z;} vec3;") local new = vec3.new local sqrt = math.sqrt local null = new(0, 0, 0) vec3.null = null function vec3.dot(a, b) return a.x*b.x + a.y*b.y + a.z*b.z end function vec3.cross(a, b) return new( a.y*b.z - a....
require 'setup/setup' local dummy = { dummy = "dummy" } -- we fulfill or reject with this when we don't intend to test against it describe("2.3.4: If `x` is not an object or function, fulfill `promise` with `x`", function() local function testValue(expectedValue, stringRepresentation, beforeEachHook, afterEachHoo...
BigWigs:AddColors("Commander Sarannis", { [-5411] = {"cyan","yellow"}, [34794] = {"blue","red"}, [35096] = "orange", }) BigWigs:AddColors("High Botanist Freywinn", { [34550] = {"green","red"}, [34752] = {"blue","orange"}, }) BigWigs:AddColors("Thorngrin the Tender", { [34659] = {"blue","red"}, [34661] = {"blu...
target("ResignTool") add_rules("xcode.application") add_files("**.m") add_files("ResignTool/*.xcassets") add_files("ResignTool/**.storyboard") add_files("ResignTool/Info.plist") add_includedirs("ResignTool/Entity", "ResignTool/Factory", "ResignTool/Util") add_frameworks("Security")
local F, C, L = unpack(select(2, ...)) -- Actionbar L['ACTIONBAR_LEAVE_VEHICLE'] = 'Leave vehicle button' -- Quest L['QUEST_ACCEPT_QUEST'] = 'Accept quest: ' L['QUEST_QUICK_QUEST'] = 'Auto quest' -- misc L['MISC_STRANGER'] = 'Stranger' L['MISC_GET_NAKED'] = 'Double click to remove gears' L['NAKE_BUTTON'] = 'Und...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "RocketLandingAttempt", Effects = {}, EnableChance = 30, Enabled = true, Image = "UI/Messages/Events/21_meteors.tga", NotificationText = "", Prerequisites = { PlaceObj('CheckObjectCount...
require('themer').setup({ colorscheme = "gruvbox-material-dark-soft", styles = { comment = { style = 'italic' }, ["function"] = { style = 'italic' }, functionbuiltin = { style = 'italic' }, variable = { style = 'italic' }, variableBuiltIn = { style = 'italic' }, p...
return { name = "Stone", desc = "Rough and tough", sprite = 'stone', usage = 'wall' }
local Context = require 'stuart.Context' local stuart = require 'stuart' local RedisContext = stuart.class(Context) return RedisContext
local function build(id, instance_id, name, address) local now = os.time() local retval = { obsess_over_host = true, no_more_notifications = false, check_attempt = 1, icon_image_alt = "", enabled = true, host_id = id, state = 0, last_update = now, address = address, last_chec...
Grenade.kModelName = nil -- was PrecacheAsset("models/marine/rifle/rifle_grenade.model") Grenade.kProjectileCinematic = PrecacheAsset("cinematics/marine/grenade.cinematic")
-- JMS Dark theme -- 2019-01-26 local property = require('lexer').property property['colour.black'] = '#222222' property['colour.grey'] = '#777777' property['colour.white'] = '#DDDDDD' property['colour.red'] = '#FF0000' property['colour.yellow'] = '#E6DC65' property['colour.green'] = '#77C32F' property['colour.blue']...
require "sloongnet_mysql" local Sql_Req = {}; local db = sloongnet_mysql.new(); local res,msg = db:Connect('127.0.0.1',3389,'root','pwe','db'); Sloongnet_ShowLog(msg); local log_ptr = Sloongnet_GetLogObject(); sloongnet_mysql.SetLog(log_ptr,true,true) Sql_Req.SqlTest = function( u, req, res ) local cm...
vim.api.nvim_set_keymap('n', '<Leader>t', ':TagbarToggle<CR>', {noremap = true})
if ACF.Version then --fallback to old acf, its not set in acf3 function ACF_DefineEngineold(id,data) ACF_DefineEngine(id,data) end else local class = "zACFE R" local typeoverwrite = nil -- Flat 2 engines ACF.RegisterEngineClass(class, { Name = "ACFE Radial Engines", }) do function ACF_DefineEngineold(id,...
local _, ns = ... local oUF = ns.oUF or oUF assert(oUF, 'oUF Experience was unable to locate oUF install') for tag, func in next, { ['experience:cur'] = function(unit) return (IsWatchingHonorAsXP() and UnitHonor or UnitXP) ('player') end, ['experience:max'] = function(unit) return (IsWatchingHonorAsXP() and Uni...
local _M={} local default_language="en" local path='init.international.' local language_list={ zh_cn="zh_cn", en="en", } for k,v in pairs(language_list) do _M[k] = require (path..v); end return _M;
local L = pace.LanguageString local acsfnc = function(key, def) pace["View" .. key] = def pace["SetView" .. key] = function(val) pace["View" .. key] = val end pace["GetView" .. key] = function() return pace["View" .. key] or def end end acsfnc("Entity", NULL) acsfnc("Pos", Vector(5,5,5)) acsfnc("Angles", Angle(0,...
object_tangible_furniture_lifeday_lifeday_incense_burner = object_tangible_furniture_lifeday_shared_lifeday_incense_burner:new { } ObjectTemplates:addTemplate(object_tangible_furniture_lifeday_lifeday_incense_burner, "object/tangible/furniture/lifeday/lifeday_incense_burner.iff")
function love.conf(t) t.title = ":Fast :Food - Ludum Dare #27 Jam" t.author = "Cassassin-LPGhatguy" t.url = "https://lpghatguy.com/" t.identity = "ld-ff" t.version = "0.8.0" t.console = false t.release = true t.screen.width = 100 t.screen.height = 100 t.screen.fullscreen = false t.screen.vsync = true t.sc...
class "SharedUnlocks" local g_Logger = require "__shared/Logger" function SharedUnlocks:__init() g_Logger:Write("Shared Unlocks Init.") self.m_ModifiedKitId = Guid("28ec16e7-0bbf-4cb0-9321-473c6ec54125", "D") self.m_ModifiedKit = nil self.m_NoSpecializationInstance = nil self.m_SprintBoostL2Instance ...
slot0 = class("SkillInfoMediator", import("..base.ContextMediator")) slot0.WARP_TO_TACTIC = "SkillInfoMediator:WARP_TO_TACTIC" slot0.WARP_TO_META_TACTICS = "SkillInfoMediator:WARP_TO_METATASK" slot1 = 10 slot0.register = function (slot0) slot0:bind(slot0.WARP_TO_TACTIC, function (slot0) slot1 = getProxy(NavalAcadem...
local M = {} function M.setup() require('gitsigns').setup { signs = { add = {hl = 'GitGutterAdd', text = '▋'}, change = {hl = 'GitGutterChange',text= '▋'}, delete = {hl= 'GitGutterDelete', text = '▁'}, topdelete = {hl ='GitGutterDeleteChange',text = '▔'}, changedelete = ...
measure = {} -- Definitions measure.screen_width = 960 measure.screen_height = 600 measure.board_width = 600 measure.board_height = 468 measure.piece_size = 64 measure.piece_amount = 16 measure.square_width = 9 measure.square_height = 7 -- Calculated values measure.board_x = (measure.screen_width - measure.board_w...
function fib(n, a, b) if n == 0 then return a elseif n == 1 then return b end return fib(n-1, b, a+b) end fib(35, 0, 1)
MaulerStrongholdScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "MaulerStrongholdScreenPlay", lootContainers = { 625317, 625318, 8825382 }, lootLevel = 300, lootGroups = { { groups = { {group = "vehicledeedsnormal", chance = 1000000}, {group = "non_jedi_rings_ranged"...
local _ = require("lib.underscore") local stooge = { name = "moe" } print(_.property("name")(stooge) == "moe")
-- import local candy = require "candy" local GizmoManagerModule = require "candy_edit.EditorCanvas.GizmoManager" local Gizmo = GizmoManagerModule.Gizmo -------------------------------------------------------------------- ---@class DrawScriptGizmo : Gizmo local DrawScriptGizmo = CLASS: DrawScriptGizmo ( Gizmo ) funct...
---@class ItemType : zombie.inventory.ItemType ---@field public None ItemType ---@field public Weapon ItemType ---@field public Food ItemType ---@field public Literature ItemType ---@field public Drainable ItemType ---@field public Clothing ItemType ---@field public Key ItemType ---@field public KeyRing ItemType ---@fi...
---@type mx.ndarray.ndarray|mx.ndarray.op local M = {} local _internal, contrib, linalg, op, random, sparse, utils, image, ndarray = require('mx.ndarray._internal'), require('mx.ndarray.contrib'), require('mx.ndarray.linalg'), require('mx.ndarray.op'), require('mx.ndarray.random'), require('mx.ndarray.sparse'), requir...
local scrutinizer = scrutinizer local ipairs = ipairs local TEXT = TEXT local tostring = tostring local type = type local pairs = pairs local tonumber = tonumber local math_floor = math.floor local string_find = string.find local table_insert = table.insert local string_sub = string.sub local UnitName = UnitName local...
num_enemies = 1 boss_fight = true experience=1000 gold=1000 function start() addEnemy("Tode", 45, 105) end speech = { "Tode: I may be a vegetarian...\n", "Tode: But I will enjoy eating you!\n", } speechCount = 1 function get_speech() speechCount = speechCount + 1 return speech[speechCount-1] ...
require "ninja" solution "ninjatestsln" location "build" configurations {"debug", "release"} project "ninjatestprj_app" kind "ConsoleApp" location "build" language "C++" targetdir "build/bin_%{cfg.buildcfg}" files {"main.cpp"} includedirs {"test1", "test2"} links {"ninjatestprj_lib_test1", "ninjatestprj_lib...
-- Lua script to generate the implementations of RawSerialize and RawDeserialize for -- statically sized arrays. tys = "u8 i8 u16 i16 u32 i32 f32 u64 i64 f64 i128 u128" lens = "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32" size = {1, 1, 2, 2, 4, 4, 4, 8, 8, 8, 8, 16, 16} i = 1 ...
array_decname = {"прве", "друге", "треће", "четврте", "пете", "шесте", "седме", "осме", "девете", "десете"} neparne_msg = "непарне" parne_msg = "парне"
local parquet_util = require 'parquet.util' describe('util', function() it('splice removes 1 element from index 4', function() -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice local myFish = {'angel', 'clown', 'drum', 'mandarin', 'sturgeon'} local removed ...
-------------------------------------------------------------------------------- -- To catch the operation of the screen, and sends the event. <br> -------------------------------------------------------------------------------- local table = require("hp/lang/table") local Event = require("hp/event/Event") local Event...
local typedefs = require "kong.db.schema.typedefs" local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)") string.startswith = function(self, str) return self:find('^' .. str) ~= nil end local function validate_variable(value) local _, err = load("local var = "..value) if err then return f...
local struct = setmetatable(require('struct'), { __call = function(t, ...) return t.struct(...) end, }) local array = struct.array local tag = struct.tag local string = struct.string local data = struct.data local packed_string = struct.packed_string local int8 = struct.int8 local int16 = struct.int1...
SetupProject("Tut16GammaRamp", "GammaRamp.cpp", "data/screenCoords.vert", "data/textureGamma.frag", "data/textureNoGamma.frag") SetupProject("Tut16GammaCheckers", "GammaCheckers.cpp", "data/PT.vert", "data/textureGamma.frag", "data/textureNoGamma.frag") SetupProject("Tut16GammaLandscape", "GammaLandsc...
local record = require('record') local default = { x = 1, y = 2, z = { a = { b = 3, z = 4 }}} local function equal( a, b ) if a == b then return true elseif type( a ) == type( b ) then for k, v in pairs( a ) do if not equal( v, b[k] ) then return false end end for k, v in pairs( b ) do if not e...