content
stringlengths
5
1.05M
RegisterItem({ category = "Cards", name = "Waifu Booster Pack", weight = 0.01, stack = 32, pack = "booster", count = 5, }) RegisterItem({ category = "Cards", name = "Card: Hanaba Izuri", weight = 0.00165, stack = 1, }) RegisterItem({ category = "Cards", name = "Card: Miyabata Hirona", weight = 0.00165, ...
local t = require( "taptest" ) local addedge = require( "addedge" ) local buildgraph = require( "buildgraph" ) local isolatednodes = require( "isolatednodes" ) local like = require( "like" ) local g = buildgraph( { "a", "b", "c", "x" }, {} ) t( like( isolatednodes( g ), { "a", "b", "c", "x" } ), true ) addedge( g, "a...
local class = require 'me.strangepan.libs.util.v1.class' local assert_that = require 'me.strangepan.libs.truth.v1.assert_that' --[[ A handy way to require a module lazily. Usage: local lazy = require 'me.strangepan.libs.util.v1.lazy' local lazy_my_module = lazy 'my.custom.module' function do_something() ...
local TableUtils local Output local Mesh = { ClassName = "Mesh", Events = {} } -- These do not actually count the number of faces, lines, or vertices, they are used internally for Id assignment, use #TableUtils.getKeys() for counting Mesh.Private = { -- FacesCount = 0, LinesCount = 0, VerticesCoun...
--[[ MIT License Copyright (c) 2020 Srijan Paul Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
function createItem(owner, ownerType, name, type, val1, val2, flag) local UID = 1 for i, v in ipairs(itemsData) do UID = i + 1 if not itemsData[i] then UID = i break end end itemsData[UID] = {} itemsData[UID].id = UID itemsData[UID].ownerType = ownerType itemsData[UID].ownerID = owner itemsData[UID]...
local help_message = [[ This is a module file for the container quay.io/biocontainers/eoulsan:2.0_beta4--1, which exposes the following programs: - .java-jdk-post-link.sh - .java-jdk-pre-unlink.sh - appletviewer - eoulsan.sh - extcheck - idlj - jar - jarsigner - java-rmi.cgi - javac - javadoc - javah - ja...
Script.Load("lua/FadeAcidRocket/AcidRocket.lua") local kRocketVelocity = 25 local kAttackDuration = Shared.GetAnimationLength("models/alien/fade/fade_view.model", "stab") local function CreateRocketProjectile( self, player ) if not Predict then -- little bit of a hack to prevent exploitey ...
-- ====================================================================== -- Toboggan Trajectory -- Advent of Code 2020 Day 03 -- Eric Wastl -- https://adventofcode.com -- -- lua implementation by Dr. Dean Earl Wright III -- ====================================================================== -- ==================...
--E・HERO バブルマン function c799796660.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c799796660.spcon) c:RegisterEffect(e1) --draw local e2=Effect.C...
data:extend({ { type = "int-setting", name = "update-interval", setting_type = "runtime-global", default_value = 60, minimum_value = 1, maximum_value = 300 }, { type = "int-setting", name = "day-length", setting_type = "runtime-global", default_value = 25000, minimum_va...
Script.Load("lua/Globals.lua") Script.Load("lua/GUIUtility.lua") Script.Load("lua/Hud/Alien/GUIAlienHUDStyle.lua") Script.Load("lua/GUIAnimatedScript.lua") class 'AlienStatusHUD' (GUIAnimatedScript) AlienStatusHUD.kXpBarBkgTexture = PrecacheAsset("ui/combatui_alien_xpbar_bkg.dds") AlienStatusHUD.kXpBarOverlay...
-------------------------------- -- @module ActionScaleFrame -- @extend ActionFrame -- @parent_module ccs -------------------------------- -- @function [parent=#ActionScaleFrame] setScaleY -- @param self -- @param #float float -------------------------------- -- @function [parent=#ActionScaleFrame] setScale...
-- local ts_utils = require 'nvim-treesitter.ts_utils' local util = require("go.util") local iferr = "iferr" local run = function(...) require("go.install").install(iferr) local fname = vim.fn.expand("%:p") -- %:p:h ? %:p local byte_offset = vim.fn.wordcount().cursor_bytes local setup = {iferr, "-pos", byte_...
return{ print(memory.writebyte(0x7ED829, 1)) }
local M = {} function M.init() print('contract demo init') end function M.start() print('contract demo start') end return M
local Random = {} function Random.get_random_int() return math.random(os.time()) end return Random
log(DEBUG, "---- CHARACTER TEST BEGIN ----") Testing.replaceEnvironment() assert(getEntityClass("Character") == Character) assert(getEntitySauerType("Character") == "dynent") assert(getEntityClass("Player") == Player) assert(getEntitySauerType("Player") == "dynent") if Global.SERVER then local test = Character() a...
-- local actions = require('telescope.actions') -- local utils = require('telescope.utils') require "telescope" local finders = require "telescope.finders" local make_entry = require "telescope.make_entry" local previewers = require "telescope.previewers" local pickers = require "telescope.pickers" local sorters = requ...
object_tangible_deed_vehicle_deed_twin_pod_cloud_car = object_tangible_deed_vehicle_deed_shared_twin_pod_cloud_car:new { } ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_twin_pod_cloud_car, "object/tangible/deed/vehicle_deed/twin_pod_cloud_car.iff")
local u = require("custom.utils") local a = vim.api local f = vim.fn local M = {} local function tab_winids() return a.nvim_tabpage_list_wins(0) end local function is_preview(winid) return a.nvim_win_get_option(winid, "previewwindow") end local function is_float(winid) return a.nvim_win_get_config(winid).rela...
local skynet = require "skynet" local socket = require "skynet.socket" local sharedata = require "skynet.sharedata" local json = require("cjson") local GameUser = require("logic/gameUser") local queue = require "skynet.queue" local TAG = "GameTable" local GameTable = require("logic/gameTable") local tableStatusMap = ...
function love.conf(t) t.title = "tileClick demo" t.author = "nduckwiler" end
asteroid = class:new() function asteroid:init(x, y, size) self.x = x or math.random(80)+10 self.y = y or -10 self.r = math.random(math.ceil(math.pi*20))/10 self.size = size or 1 self.rspeed = (math.random()*2-1)*10 self.speedx = math.random(5)+20 self.speedy = math.random(5)+10 self.i = math.random(2) self.di...
require("config.lsp.diagnostics").setup() require("config.lsp.kind").setup() local function on_attach(client, bufnr) require("config.lsp.formatting").setup(client, bufnr) require("config.lsp.keys").setup(client, bufnr) -- require("config.lsp.completion").setup(client, bufnr) require("config.lsp.highlighting")....
local cjson = require "cjson.safe" local output = '' function table.pack(...) return { n = select("#", ...), ... } end local function hooked_print(...) local r = "" local args = table.pack(...) for i=1,args.n do output = output .. tostring(args[i]) .. "\n" end end __api.add_c...
--[===[DOC = countiter [source,lua] ---- local function countiter( ... ) --> countInt ---- Count the number of iteration generated by a iterator. The argument must be the same varargs a `for in` loop. It will return the number of iteration. E.g. `countiter(pairs(tab))` will count the number of key in the table `tab...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2021/2/25 11:12 --- require("lib.ksptooi.commons.PlayerLib") require("lib.ksptooi.commons.PlayerCashLib") require("lib.ksptooi.teleport.TpRequestStorage") ---发送传送请求 function teleportToPlayer(command) if(command...
--[[ -| cckiwi_polling |- Copyright (c) 2021 KiwifruitDev https://github.com/TeamPopplio/ https://steamcommunity.com/id/KiwifruitDev/ Licensed under the MIT License. File description: Client polling loader cl_polling.lua ]]-- print("[cckiwi_polling] Loading autorun/client/cl_polling.lua") -- convars local po...
local Class = require "lib.hump.class" local InputGenerator = require "engine.controls.input_generator" local AIList = {} local RandomInputGenerator = Class { __includes = InputGenerator, init = function(self) InputGenerator.init(self) end } function RandomInputGenerator:getInputSnapshot() loc...
--- enemy that explodes when it is killed My.EventHandler:register("onEnemySpawn", function(_, enemyInfo) local repairConfig = enemyInfo:getConfig().repair if repairConfig == nil then return end local friends = {} -- the cron to find all friends in range. T -- this can run less often than the hea...
local bundle = require('app/bundle') local tap = require('util/tap') local assert = require('assert') local fs = require('fs') local util = require('util') local path = require('path') describe('test bundle - openBundle', function() local reader, err = bundle.openBundle() assert(reader == nil) reader ...
TOOL.Category = "Render" TOOL.Name = "#tool.material.name" TOOL.ClientConVar[ "override" ] = "debug/env_cubemap_model" -- -- Duplicator function -- local function SetMaterial( Player, Entity, Data ) if ( SERVER ) then -- -- Make sure this is in the 'allowed' list in multiplayer - to stop people using exploit...
local super = Class("FocusEvent", ComponentEvent).getSuperclass() FocusEvent.FOCUS_FIRST = 1004 FocusEvent.FOCUS_LAST = 1005 FocusEvent.FOCUS_GAINED = FocusEvent.FOCUS_FIRST --Event.GOT_FOCUS FocusEvent.FOCUS_LOST = 1 + FocusEvent.FOCUS_FIRST --Event.LOST_FOCUS function FocusEvent:init(source, id, temporary, opposite...
------------------------------------------------- -- APT Widget for Awesome Window Manager -- Lists containers and allows to manage them -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/apt-widget -- @author Pavel Makhov -- @copyright 2021 Pavel Makhov ------------...
object_tangible_loot_creature_loot_collections_fish_naboo_gumfish = object_tangible_loot_creature_loot_collections_shared_fish_naboo_gumfish:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fish_naboo_gumfish, "object/tangible/loot/creature/loot/collections/fish_naboo_gumfish.iff")
object_tangible_tcg_series4_shared_consumable_ball_of_peace = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/tcg/series4/shared_consumable_ball_of_peace.iff" } ObjectTemplates:addClientTemplate(object_tangible_tcg_series4_shared_consumable_ball_of_peace, "object/tangible/tcg/series4/share...
test = require 'u-test' common = require 'common' function TestXblContextCreate_Handler() XblAddServiceCallRoutedHandler() XblRemoveServiceCallRoutedHandler() XblContextSettingsGetLongHttpTimeout() XblContextSettingsSetLongHttpTimeout() XblContextSettingsGetHttpRetryDelay() XblContextSettingsS...
-- Useful copy functions -- Deep Copy -- This is good for instantiating tables/objects without too much effort :) function deepcopy(t) if type(t) ~= 'table' then return t end local mt = getmetatable(t) local res = {} for k,v in pairs(t) do if type(v) == 'table' then v = deepcopy(v) end res[k]...
if minetest.get_modpath("default") then minetest.register_craft({ output = "currency:safe", recipe = { {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"}, {"default:steel_ingot", "default:steel_ingot", "...
local path = select(1,...):sub(1,-(string.len("container")+1)) local class = require("Libraries.middleclass") --Container object class local container = class("DiskOS.GUI.container") --Default internal values: container.static.lightcol = 9 --The light color container.static.darkcol = 4 --The dark color container.stat...
local _={} _.name="Cauldron" _.new=function(options) local result=BaseEntity.new(options) result.x=0 result.y=0 Entity.setSprite(result,"cauldron") result.isDrawable=true result.worldId=nil --result.aiEnabled=true result.canPickup=true result.originX=8 result.originY=10 Entity.afterCreated(result,_,opt...
local FWDist = require 'FWDistribution' require "socket" function sleep(sec) socket.select(nil, nil, sec) end print (FWDist.version()) firmwares = FWDist.available() for key,value in pairs(firmwares) do for key,value in pairs(value) do print(key,value) end end --FWDist.download{DeviceI...
function SpawnPoints() return { unemployed = { { worldX = 29, worldY = 25, posX = 238, posY = 127, posZ = 0 }, { worldX = 44, worldY = 19, posX = 90, posY = 148, posZ = 0 }, { worldX = 4, worldY = 0, posX = 184, posY = 216, posZ = 0 }, { worldX = 6, worldY = 11, posX = 56, posY = 63, posZ = 0 }, { worl...
lanes = require "lanes".configure{with_timers=false} -- make sure we can copy functions with interdependant upvalues local b local a = function( n) print( "a", n) return n <= 0 and n or b( n-1) end local c b = function( n) print( "b", n) return n <= 0 and n or c( n-1) end c = function( n) print( "c", n) retu...
function onDrop(abilitynode, x, y, draginfo) -- Chits if draginfo.isType("chit") then if draginfo.getCustomData() == "recharge" then return addRecharge(abilitynode); end end end function addRecharge(abilitynode) if abilitynode.isOwner() then local socketednode = abilitynode.getChild("socket...
--[[md: ## aurora.table - utils for handling tables ]] local M = ondemand('aurora.table') --[[md: ### table.toSet (list) * list : a list table * returns a table indexed with values of list, easily searchable ]] function M.toSet (list) local set = {} for _,v in ipairs(list) do set[v]=true end return set end ret...
local Object = require "classic" local Mediator = require "mediator" local Events = Object:extend() Events.TYPES = { CLUSTER_PROPAGATE = "CLUSTER_PROPAGATE", ENTITY_CREATED = "ENTITY_CREATED", ENTITY_UPDATED = "ENTITY_UPDATED", ENTITY_DELETED = "ENTITY_DELETED", ["MEMBER-JOIN"] = "MEMBER-JOIN", ["MEMBER-L...
local Current = "none" local ply, wep, vm, Mode, alpha, num, amt, nw_wep, nw_num local function ReceiveAlpha(um) wep = um:ReadEntity() alpha = um:ReadShort() if IsValid(wep) then wep.VElements["silencer"].color.a = alpha if wep.WElements["silencer"] then wep.WElements["silencer"].color.a = alpha end...
RULE = { mini = { name = "HOUSE_MINI", desc = "HOUSE_MINI_DESC", mission = "UNLOCK_RULE", img = "161aba690c6.png", imgDesc = "15c4c117200.png", conflict = {"maxi"}, public = true, type = "PASSIVE", }, maxi = { name = "HOUSE_MAXI", desc = "HOUSE_MAXI_DESC", mission = "UNLOCK_RULE", img = "161a...
-- Created By Bapes#1111 -- -- Please do not distrubute without consent -- ---@diagnostic disable: undefined-global, lowercase-global local Tinkr, UI = ... local name = "Bapes Bear Rotation" local version = "v1.0-beta" local Routine = Tinkr.Routine local player = "player" local target = "target" -- Print name and ver...
local cfg = {} -- define static item transformers -- see https://github.com/ImagicTheCat/vRP to understand the item transformer concept/definition cfg.item_transformers = { -- example of harvest item transformer { name="Fishing", -- menu name permissions = {"mission.delivery.fish"}, -- you can add perm...
class "shCash" function shCash:__init() Events:Subscribe( "EntitySpawn", self, self.EntitySpawn ) end function shCash:EntitySpawn( args ) if args.entity:GetValue( "Cash" ) then print("spawn") end end
---@type string local Name = ... ---@type Addon local Addon = select(2, ...) ---@type L local L = LibStub("AceLocale-3.0"):GetLocale(Name) local EPGP = LibStub("AceAddon-3.0"):GetAddon("EPGP", true) local LGP = LibStub("LibGearPoints-1.2", true) local GS = LibStub("LibGuildStorage-1.2", true) local GUI, Options, Roll, ...
--[[ LICENSE HEADER The MIT License (MIT) Copyright © 2017-2021 Jordan Irwin (AntumDeluge) See: LICENSE.txt --]] local modoverrides = { "walking_light", } for _, mo in ipairs(modoverrides) do if core.get_modpath(mo) then antum.loadScript("misc/" .. mo) end end
return {'eiwit','eiwitarm','eiwitgehalte','eiwithormoon','eiwithoudend','eiwitmolecule','eiwitrijk','eiwitstof','eiwitsynthese','eiwitten','eiwitwaarde','eiwitschuim','eiwitbehoefte','eiwitbron','eiwitinname','eiwitmantel','eiwitmolecuul','eiwitopname','eiwitpoeder','eiwitproductie','eiwitverlies','eiwitbinding','eiwit...
require 'lib.stringaddons' local emailaddress = {} function emailaddress:new(addr) if type(addr) ~= 'string' then error('Passed in item must be a string') end local obj = { __type = 'emailaddress', localpart = '', domain = '', full = '' } if addr:find('RCPT TO:') then addr = addr:s...
-- local M = {} local FU = cc.FileUtils:getInstance() function M.changeLogPath(path) local lp = lstg.LogSystem:getInstance():getPath() if lp ~= path then if lstg.LogSystem:getInstance():changePath(path) then os.remove(lp) SystemLog(('change log path to %q'):format(path)) ...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local lester = require 'tests.lester' require 'tests.lpegrex-test' require 'tests.c11-test' require 'tests.json-test' lester.report()
local PLUGIN = PLUGIN; local COMMAND = Clockwork.command:New("RespawnStay"); COMMAND.tip = "Respawn a player, but keep them at their current position."; COMMAND.text = "<string Name>"; COMMAND.access = "a"; COMMAND.arguments = 1; -- Called when the command has been run. function COMMAND:OnRun(player, arguments) loca...
local dt = require "decisiontree._env" -- Decision forest that ensembles a bag of decision trees. local DecisionForest = torch.class("dt.DecisionForest", "dt.DecisionTree", dt) function DecisionForest:__init(trees, weight, bias) assert(torch.type(trees) == 'table') self.trees = trees if #trees == 0 then ...
local Speed = Component.create("Speed") function Speed:initialize(speed) self.speed = speed end
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local command = helpers.command local eval = helpers.eval describe('autocmds:', function() before_each(clear) it(':tabnew triggers events in the correct order', function() local expected = { 'WinLeave', 'Ta...
MainMenuBarArtFrame.RightEndCap:Hide() MainMenuBarArtFrame.LeftEndCap:Hide()
--[==[ webb | xapp language/country/currency setting UI Written by Cosmin Apreutesei. Public Domain. API update_S_schema_texts() ROWSETS S translation UI: labeled strings from source code S_schema_attrs translation UI: list translatable field attributes S_schema_fields translation UI:...
require 'dp' require 'nn' require 'optim' ds = dp.Mnist() trainInput = ds:get('train','input','bchw') trainTarget = ds:get('train', 'target', 'b') validInput = ds:get('valid','input','bchw') validTarget = ds:get('valid','target','b') trainInput = trainInput:type('torch.DoubleTensor') validInput = validInput:type('to...
function IsAlpha(c) return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z') end function IsDigit(c) return c >= '0' and c <= '9' end function IsSpace(c) return c == ' ' or c == '\t' or c == '\n' or c == '\v' or c == '\f' or c == '\r' end function IsAlNum(c) return IsAlpha(c) or IsDigit(c) end func...
-- WIP flowfield example (use build v304 or later) b = BinooAPI b:ClearObjects() b:DebugMode(true) b:PhotoSphere_HideSpheres() id = "flowfield" -- params: id, arraySize (x*x*x), worldSize (in meters, not used yet) size = 5 b:CreateFlowField(id,size,0) targetid = "sphere" sx = 2.5 sy = 0 sz = 0 b:CreateSphere(targeti...
local cube = dofile("include/pageCube.lua") return function (page, offset, screen_width, screen_height) local percent = math.abs(offset/page.width) local x, z, angle = cube(page, offset, false) local threshold = math.abs(math.atan((PERSPECTIVE_DISTANCE - z)/x)) angle = math.abs(angle) if angle >...
local oreburgh_0 = DoorSlot("oreburgh","0") local oreburgh_0_hub = DoorSlotHub("oreburgh","0",oreburgh_0) oreburgh_0:setHubIcon(oreburgh_0_hub) local oreburgh_1 = DoorSlot("oreburgh","1") local oreburgh_1_hub = DoorSlotHub("oreburgh","1",oreburgh_1) oreburgh_1:setHubIcon(oreburgh_1_hub) local oreburgh_2 = DoorSlot("ore...
CameraMode = {} ---@type number CameraMode.FPSOnly = 1 ---@type number CameraMode.TPSOnly = 2 ---@type number CameraMode.FPSTPS = 0
local printit = {} function printit.setup_scr_printit(ui) --Write codes printit ui.printit = lvgl.obj_create(nil, nil); --Write codes printit_cont0 ui.printit_cont0 = lvgl.cont_create(ui.printit, nil); --Write style lvgl.CONT_PART_MAIN for printit_cont0 -- local style_printit_cont0_main; -- lvgl.style_init...
Ghost = Entity:extend() local haunting = false
local lfs = require './init.lua' local fs = require 'fs' require('tap')(function(test) test('lfs.mkdir should make directory', function() lfs.mkdir('mkdir_test.d') local stat = assert(fs.statSync 'mkdir_test.d') assert(stat.type == 'directory', '`mkdir_test.d` is not a directory...
#!/usr/bin/lua5.1 -- Copyright (c) 2012,14,17 Breno Ramalho Lemes <breno@br-lemes.net> -- http://www.br-lemes.net/ -- Verifica o status da conexão de internet, o IP e o tempo conectado do meu -- roteador wireless Smart Lan APRIO150. Mostra a informação em um ícone na -- área de notificação. -- -- Histórico: -- -- 27-0...
--[[ delay line 1 with dc filter and shitty linear interpolation TODO bit band ]] local function blend(a,b,p) return (a*p + b*(1-p)) end function Line (bufSize) local n,e = math.frexp(bufSize) bufSize = 2^e --nextpoweroftwo local buf = ffi.new("double[?]", bufSize) local mask = bufSize - 1 local pos = 0 -- to...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) _mui_debug = true local composer = require "composer" composer.gotoSce...
local policy = require 'apicast.policy' local _M = require 'apicast.policy_chain' describe('policy_chain', function() it('defines a method for each of the nginx phases supported', function() for _, phase in policy.phases() do assert.equals('function', type(_M[phase])) end end) it('when calling one...
---@diagnostic disable: unused-local local utils = require "nvim-test.utils" local ts_utils = require "nvim-treesitter.ts_utils" local ts_parsers = require("nvim-treesitter.parsers") local ts = vim.treesitter ---@class Runner local Runner = { config = { args = {}, filename_modifier = nil, working_direct...
POWER_ON = false local InteractType = nil local InteractThing = nil local RepairBarricadeInterval local RevivingPlayerData VZ_EVENT_SUBSCRIBE("Character", "Highlight", function(char, Highlight, ent) if IsSelfCharacter(char) then if ent then -- error when highlight ground weapons :thinking: ...
return { { effect_list = { { type = "BattleBuffShield", trigger = { "onStack", "onTakeDamage" }, arg_list = { casterMaxHPRatio = 150 } }, { type = "BattleBuffCastSkill", trigger = { "onRemove" }, arg_list = { skill_id = 13302, target = "Targe...
project "GameFramework" kind "StaticLib" language "C++" targetdir ("%{wks.location}/dist/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/imt/" .. outputdir .. "/%{prj.name}") files { "src/**.h", "src/**.hpp", "src/**.cpp", "%{wks.location}/depd/stb/stb_image/stb_image.cpp", "%{wks.locat...
local RossDoc do local _base_0 = { StyleObject = function(self, romlObject) local objectName = romlObject:ObjectName() self:_styleWithTable(romlObject, self._objects[objectName]) local _list_0 = romlObject:GetClasses() for _index_0 = 1, #_list_0 do local c = _list_0[_index_0] ...
local lfs = require 'lfs' local IndexUtils = require 'dataset.IndexUtils' local function IndexDirectory(url, partition, partitions, opt) partition = partition or 1 assert(partition >= 1) partitions = partitions or 1 assert(partitions >= 1) assert(partition <= partitions) opt = opt or { } local in...
function power(A,B) local m=math.max(A:size(1),B:size(1)) local n=math.max(A:size(2),B:size(2)) local C=torch.zeros(m,n) if (A:size(1)==B:size(1) and A:size(2)==B:size(2)) then for i=1,m do for j=1,n do C[{i,j}]=A[{i,j}]^B[{i,j}] end end elseif...
local st = {} function st:update() gui.group{grow="down", pos = {WIDTH/2-150, HEIGHT/2-60}, size={300,25}, spacing=5, function() love.graphics.setFont(Font[30]) gui.Label{text = "A game by VRLD", align="center"} gui.Label{text = "Made in 48-ish Hours", align="center"} gui.Label{text = "for the 34th Ludum Dare...
function binary_search(list, item) first = 1 last = #list found = false while first <= last and found == false do middle = math.ceil((first + last) / 2) if list[middle] == item then found = true elseif list[middle] > item then last = middle - 1 else first = middle + 1 end...
local num = io.read("*n") print("Entered number: " .. num)
include("/scripts/includes/consts.lua") include("/scripts/includes/skill_consts.lua") include("/scripts/includes/damage.lua") -- https://wiki.guildwars.com/wiki/Spike_Trap itemIndex = 6000 creatureState = CREATURESTATE_IDLE effect = SkillEffectDamage effectTarget = SkillTargetAoe -- 90 seconds local lifeTime = 90 * ...
only_included_scenario_names = {} local last_display_name function action_new_file() last_display_name = nil end --- define a node function label(name, display_name) if display_name == nil then if last_display_name == nil then display_name = name else display_name = la...
local BaseInstance = import("./BaseInstance") local HttpRbxApiService = BaseInstance:extend("HttpRbxApiService") return HttpRbxApiService
local L=(function(n,e)return(n^e);end)local R=(function(e,n)return(e*n);end)local o=(function(e,...)return e(...);end)local e=(function(n,e)return(n<e);end)local w=(function(e,n)return(e-n);end)local e=(function(e,n)return(e/n);end)local Y=(function(n,e)return(n+e);end)local ne=(function(n,e)return(n~=e);end)local S=(f...
local inputCode = { 3,225,1,225,6,6,1100,1,238,225,104,0,1102,89,49,225,1102,35,88,224,101,-3080,224,224,4,224,102,8,223,223,1001,224,3,224,1,223,224,223,1101,25,33,224,1001,224,-58,224,4,224,102,8,223,223,101,5,224,224,1,223,224,223,1102,78,23,225,1,165,169,224,101,-80,224,224,4,224,102,8,223,223,101,7,224,224,1,224,2...
--[[ MIT License Copyright (c) 2019 Mitchell Davis <coding.jackalope@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
local status, nvim_tree = pcall(require, "nvim-tree") if not status then vim.notify("没有找到 nvim-tree") return end -- 列表操作快捷键 local list_keys = require('keybindings').nvimTreeList nvim_tree.setup({ -- 不显示 git 状态图标 git = { enable = false, }, -- project plugin 需要这样设置 update_cwd = true, ...
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper" -- NOTE: This is already generic, so we use the same file for different games. -- If different functionality is necessary, change the following import. -- TODO_REFACTOR: implement tests here that test all buff functions (s...
-- D:\projects\amiga-experiments\lua_intro\project SCR_WIDTH = 400 SCR_HEIGHT = 300 ZOOM_RATIO = SCR_HEIGHT / 1365 gsplus = nil require 'common' require 'resolution_selector' require 'demo_audio' require 'demo' require 'common_fx' require 'timings' require 'fx_hello_outline' require 'fx_red_sector_tit...
object_tangible_collection_reward_lightsaber_hilt_shrine = object_tangible_collection_reward_shared_lightsaber_hilt_shrine:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_lightsaber_hilt_shrine, "object/tangible/collection/reward/lightsaber_hilt_shrine.iff")
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; local assert = _G.asse...