content
stringlengths
5
1.05M
local imgui_helper = {} function imgui_helper.decimal_input(propery_name, value, update_func) local ok, text = imgui.InputText(propery_name, value, imgui.ImGuiInputTextFlags_CharsDecimal | imgui.ImGuiInputTextFlags_EnterRetu...
-- schema file for both the pre-function and post-function plugin return function(plugin_name) local typedefs = require "kong.db.schema.typedefs" local loadstring = loadstring local function validate_function(fun) local func1, err = loadstring(fun) if err then return false, "error parsing " .. pl...
#!/usr/bin/lua -- requires lua file system -- https://keplerproject.github.io/luafilesystem/ -- depending on your lua distribution it may be -- installed already. -- require "lfs" local md5 = require "md5" function config() -- Windows users: use '/' as directory separator, not '\' -- set manually to a...
--[[ LuCI - Lua Configuration Interface Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> 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 $Id$ ]]-- lo...
local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local UIBlox = InGameMenuDependencies.UIBlox local t = InGameMenuDependencies.t local Cryo = InGameMenuDependencies.Cryo local withStyle = UIBlox....
#! /usr/bin/env lua local oldprint = print _G.print = function (...) oldprint (...) io.stdout:flush () end local Arguments = require "argparse" local Config = require "ardoises.config" local Gettime = require "socket".gettime local Http = require "ardoises.jsonhttp.socket-redis" local Lustache = requir...
flashlight = {} function flashlight.ApplyMod(dt) for i, v in ipairs(listOfArrows) do if (v.direction == 4 and v.tempPosition < gh * 0.820) or (v.direction == 2 and v.tempPosition > gh * 0.180) or (v.direction == 1 and v.tempPosition < gw * 0.680) or (v.direction == 3 and v.tempPosition > gw * 0.320) then ...
--[[ MIT License Copyright (c) 2022 Michael Wiesendanger 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, mod...
local PANEL = {} local setting_namespace = PAM.setting_namespace:GetChild("dark_votescreen") local scale = setting_namespace and setting_namespace:GetSetting("scale"):GetActiveValue() or 100 scale = scale / 100 -- alignment helping values local option_button_size = math.floor(150 * scale) local option_image_size = m...
#!/usr/bin/env lua5.1 require("libhello") hello.hello()
require("env") require("utils") if mods["Krastorio2"] then local car_prototype = getPrototype("car", "lasercar") local tank_prototype = getPrototype("car", "lasertank") local train_prototype = getPrototype("locomotive", TRAIN_EQUIPEMENT_GRID_NAME) local car_source = getEquipementGridList("kr-car-grid"...
local fiber = require('fiber') local Shared = require('metrics.collectors.shared') --- Collector to produce count and average value metrics. -- Average value is is calculated between two subsequent `:collect` calls. local Average = Shared:new_class('average') function Average:new(name, help) local obj = Shared.n...
relentless_purbole = Creature:new { objectName = "@mob/creature_names:purbole_relentless", socialGroup = "purbole", faction = "", level = 21, chanceHit = 0.33, damageMin = 180, damageMax = 190, baseXp = 1803, baseHAM = 6300, baseHAMmax = 7700, armor = 0, resists = {110,110,120,10,10,140,-1,-1,-1}, meatType...
--[[ Name: "sv_hooks.lua". Product: "nexus". --]] local MOUNT = MOUNT; -- Called when nexus has loaded all of the entities. function MOUNT:NexusInitPostEntity() if ( nexus.config.Get("cash_enabled"):Get() ) then self:LoadCash(); end; end; -- Called just after data should be saved. function MOUNT:PostSaveData() ...
-- Copyright (C) by OpenResty Inc. local ffi = require 'ffi' local base = require "resty.core.base" base.allows_subsystem('http') local C = ffi.C local ffi_cast = ffi.cast local ffi_new = ffi.new local ffi_str = ffi.string local FFI_OK = base.FFI_OK local new_tab = base.new_tab local get_string_buf = base.get_strin...
package.loaded.messagehandler = nil package.loaded.messagetype = nil package.loaded.message = nil package.loaded.socket = nil package.loaded.syncdconfig = nil package.loaded.utils = nil local component = require("component") local internet = component.isAvailable("internet") and component.internet local event = require...
local DATA = Class() function DATA:getRow(selector) if type(selector)=="number" then -- +1 to convert from 0-indexed levelhead ID's to 1-indexed Lua lists -- empty table so indexing a value that isn't set returns nil and not error local out = self.data[selector+1] if out then return out else ...
--[[-------------------------------------------------------------------------- -- -- File: ULUsbProxy.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: August 2, 2010 -- ------------------------------------------...
local camera = {} camera.x = 0 camera.y = 0 camera.scaleX = 1 camera.scaleY = 1 camera.rotation = 0 camera.intensity = 0 local ww, wh = love.graphics.getDimensions() function camera:set() local shaking = math.random() > 0.5 and self.intensity or -self.intensity love.graphics.push() love.graphics.rotate(-...
--[[ This allows for really easy communication between Client and Server Simply move ClientRemote to the client and ServerRemote to the server, then define a folder (under CONFIG) in both modules of where you wish to store the remotes Server and Client remotes are connected through passing the same name Example On ...
local Isotopes = {} Isotopes.symbols = {"n","H","He","Li","Be","B","C","N","O","F","Ne","Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca","Sc","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn","Ga","Ge","As","Se","Br","Kr","Rb","Sr","Y","Zr","Nb","Mo","Tc","Ru","Rh","Pd","Ag","Cd","In","Sn","Sb","Te","I","Xe","Cs","Ba","La","Ce...
local ffi = require("ffi") local A = require("android") ffi.cdef[[ int chdir(const char *path); char *getcwd(char *buf, size_t size); ]] local function chdir(path) if ffi.C.chdir(path) == 0 then return true else return nil, "Unable to change working directory to '" ..path.."'" end end loc...
for pid, player in pairs(game.players) do local pset = settings.get_player_settings(pid) if pset.autocolor_on.value == true then local color = {} color.r = pset.autocolor_r.value / 255 color.g = pset.autocolor_g.value / 255 color.b = pset.autocolor_b.value / 255 color.a...
require 'Coat.Role' role 'Breakable' has.is_broken = { is = 'rw', isa = 'boolean' } function method:_break () self.is_broken = true return "I broke" end singleton 'Car' with 'Breakable' has.engine = { is = 'ro', isa = 'Engine' }
--[[ Write a function to determine whether the binary representation of a number is a palindrome. ]] function ispalindrome(n) local function binaryreplen(n) local len = 0 for i = 1, 32 do if bit32.extract(n, i - 1, 1) > 0 then len = i end end return len end local len = binary...
package("pango") set_homepage("https://www.pango.org/") set_description("Framework for layout and rendering of i18n text") set_license("LGPL-2.0") set_urls("https://gitlab.gnome.org/GNOME/pango/-/archive/$(version)/pango-$(version).tar.gz") add_urls("https://gitlab.gnome.org/GNOME/pango.git") ...
function GamePlayCentralManager:add_move_unit(unit, from, to, speed, done_callback) self._move_units = self._move_units or {} for k, move_unit in pairs(self._move_units) do if move_unit.unit == unit then table.remove(self._move_units, k) end end if not alive(unit) then return e...
#!/usr/bin/env luajit local unpack = unpack or require'table'.unpack local unix=require'unix' local razor = require'razor_imu' local settings = razor.settings local fname = arg[1] or "/dev/imu" print("Opening imu...") local f_imu = assert(io.open(fname, "w+")) print("Opened IMU", f_imu) f_imu:setvbuf"no" f_imu:flush()...
local _G = _G local unpack = _G.unpack if not _G.AddOnSkins then return end local AS = unpack(_G.AddOnSkins) if not AS:CheckAddOn('REHack') then return end function AS:REHack() AS:SkinFrame(_G.HackListFrame) AS:SkinFrame(_G.HackEditFrame) AS:SkinCloseButton(_G.HackListFrameClose) AS:SkinCloseButton(_G.HackEdi...
--require getScriptFilename so we can add current path to modelSearch Path require("getScriptFilename") vrjLua.appendToModelSearchPath(getScriptFilename()) --find the path of an MP3 file and store it in "mp3Path" variable mp3Path = vrjLua.findInModelSearchPath("SampleMP3.mp3") --In order to play the sound, we ...
--------------------------------------------------------------------------------- -- Table enum special item 1. Color = { 'RED', }
workspace "DevineArchitect" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = %{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture} project "DivineArchitecture" location "DivineArchitecture" kind "SharedLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") o...
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\Weapons\Alien\GorgeTunnelAbility.lua -- -- Created by: Andreas Urwalek (andi@unknownworlds.com) -- -- Gorge builds hydra. -- -- ========= For more information, visit us at http://www.unknownworlds.com ====...
local tArgs = {...} local sPath = shell.resolve(tArgs[1]) if #tArgs == 0 then print("Usage: cat <path>") return end local file = fs.open(sPath, "r") textutils.pagedPrint( file.readAll() )
require "cocoa" local o = cocoa.NSString:stringWithUTF8String_(arg[1] or "Hello!") local c = cocoa.NSConnection:defaultConnection(); c:setRootObject_(o); if not c:registerName_("lua-server") then error("registerName failed") end local running = false repeat local next = cocoa.NSDate:dateWithTimeIntervalSinceNow_(1...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
---@meta ---@class unknown ---@class any: unknown ---@class nil: any ---@class boolean: any ---@class number: any ---#if VERSION >= 5.3 then ---@class integer: number ---#else ---@alias integer number ---#end ---@class thread: any ---@class table: any ---@class string: any ---@class userdata: any ---@class lightuserda...
function SetIntermediateAndTargetDirs(configuration) if _ACTION then filter { "configurations:" .. configuration, "platforms:x86" } objdir("../.generated/build/" .. os.target() .. "/" .. _ACTION .. "/intermediate") targetdir("../.generated/build/" .. os.target() .. "/" .. _ACTION .. "/output/x86/" .. confi...
model = ModelData() model:setName("shield_generator") model:setRadius(75) model:setScale(1.5) model:setMesh("Shield bubble generator.obj") model:setTexture("Shield bubble generator.jpg") model:setSpecular("Shield bubble generator specular.jpg") --model = ModelData() --model:setName("space_station_4") --model:setMesh("...
--------------------------------------------------------------- -- Copyright 2021 Deviap (https://deviap.com/) -- --------------------------------------------------------------- -- Made available under the MIT License: -- -- https://github.com/deviap/deviap-main/blob/master/LICENSE -- ...
Config = {} Config.DrawDistance = 100.0 Config.MaxInService = -1 Config.EnablePlayerManagement = true Config.EnableSocietyOwnedVehicles = false Config.Locale = 'fr' Config.FacturesDays = 3 -- nb jours pour afficher les factures Config.MinParkingSlots = 2 Confi...
require("ts3init") require("chancreate/channelCreator") local chancreate = { const = { MODULE_NAME = "ChanCreator", MODULE_FOLDER = "chancreate", DEBUG = 0, DEBUG_MSG_IN_CHAT = 1, }, var = {}, } local registeredEvents = { onConnectStatusChangeEvent = cc_events.onConnectStatusChangeEvent, onNewChannelCrea...
local PANEL = {} local paintFunctions = {} paintFunctions[0] = function(this, w, h) surface.SetDrawColor(0, 0, 0, 50) surface.DrawRect(0, 0, w, h) end paintFunctions[1] = function(this, w, h) end function PANEL:Init() if (IsValid(nut.gui.skills)) then nut.gui.skills:Rem...
--[[ #part of the 3DreamEngine by Luke100000 jobs.lua - processes all kind of side tasks (shadows, blurring ambient lighting, rendering sky dome, ...) --]] local lib = _3DreamEngine --load jobs lib.jobs = { } for d,s in ipairs(love.filesystem.getDirectoryItems(lib.root .. "/jobs")) do local name = s:sub(1, #s-4) li...
-- stacle/micro.lua © Dirk Laurie 2018, MIT license similar to Lua's -- Primitives of Micro FORTH local VM = require"stacle.vm" local vm = VM{} local concat, define, enddef, erase, pop = vm.concat, vm.define, vm.enddef, vm.erase, vm.pop return { SHOWSTACK = function(stack) stack.tostring = func...
MESAGE_HANDLED = 0; MESSAGE_CREATED = 1; MESSAGE_UNHANDLED = 2; controllerId = -1 hasCreated = false lastBroadcast = 0; function sendCreate() if controllerId == -1 then return end if math.abs(lastBroadcast - os.time()) < api_os.calcTime(10) then return end lastBroadcast = os.time(...
require("nn") -- Construct a multi-resolution convolution network (with 2 resolutions): model = nn.ParallelTable() conv_bank1 = nn.Sequential() conv_bank1:add(nn.SpatialConvolution(3,16,5,5)) conv_bank1:add(nn.Threshold()) model:add(conv_bank1) conv_bank2 = nn.Sequential() conv_bank2:add(nn.SpatialConvolution(3,16,5,5...
setfenv(1, require "sysapi-ns") require "vm.vm-windef" local bor = bit.bor local VM = SysapiMod("VM") function VM.alloc(handle, size, protect, allocType) local mem = ffi.C.VirtualAllocEx( handle, nil, size, allocType or bor(MEM_COMMIT, MEM_RESERVE), protect or PAGE_EXECUTE_READWRITE ) if...
--[[ #part of the 3DreamEngine by Luke100000 materials.lua - load and process materials --]] local lib = _3DreamEngine function lib:registerMaterial(material, name) name = name or material.name if material.registeredAs then error("This material already have been registered with the name '" .. material.registeredA...
function treeToPlayer(player) local approved_list = { 'increased_cycle_speed_while_boosting', 'invulnerability_while_boosting', 'increased_luck_while_boosting', 'projectile_ninety_degree_change', 'projectile_random_degree_change', 'wavy_projectiles', 'fast_slow', 'slow_fast', 'energy_shield', 'barr...
local Spell = { } Spell.LearnTime = 480 Spell.Description = [[ Makes your opponent cast random spell on himself if he has the wand. Works only on players. ]] Spell.FlyEffect = "hpw_purple_main" Spell.ImpactEffect = "hpw_purple_impact" Spell.ApplyDelay = 0.5 Spell.AccuracyDecreaseVal = 0.33 Spell.Category = HpwRewr...
--------Plugins config-------- -- Install Packer local packer_url = 'https://github.com/wbthomason/packer.nvim' local dest_path = os.getenv('HOME')..'/.local/share/nvim/site/pack/packer/start/packer.nvim' packer_bootstrap = vim.fn.system({'git', 'clone', '--depth', '1', packer_url, dest_path}) -- Plugin autocompile v...
MaterialHash = { None = 0x0, Unk = 0x962c3f7b, Concrete = 0x46ca81e8, ConcretePothole = 0x1567bf52, ConcreteDusty = 0xbf59b491, Tarmac = 0x10dd5498, TarmacPainted = 0xb26eefb0, TarmacPothole = 0x70726a55, RumbleStrip = 0xf116bc2d, BreezeBlock = 0xc72165d6, Rock = 0xcdeb5023, ...
#!/usr/local/bin/lua local post = {} --make a post and return true or false depending on the succes local function send(board, message, replyTo) if not replyTo then replyTo = 0 end local cmd = 'curl -d "content='..message..'&replyTo='..replyTo..'" -X POST "'..board..'" --silent' local c = io.p...
slib.Animator.RegisterAnimation( 'forward_jump_anim', 'models/animations/sharkvil/m_anim_forward_jump.mdl' )
local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local getData = ReplicatedStorage:WaitForChild("GetBookData") local open = ReplicatedStorage:WaitForChild("OpenBook") local Books = require(ReplicatedSto...
-- -- wcwidth.lua -- Copyright (C) 2016 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the MIT license. -- -- -- Divides a number by two, and rounds it up to the next odd number. -- local halfodd = (function () -- Lua 5.3 has bit shift operators and integer division. local ok, f = pcall(functi...
flipblock = class:new() local switchblockswitched = false function flipblock:init(x, y, t, r) --PHYSICS STUFF self.cox = x self.coy = y self.x = x-1 self.y = y-1 self.speedy = 0 self.speedx = 0 self.width = 1 self.height = 1 self.static = true self.active = true self.category = 2 self.gravity = 0 self.po...
local wait = coroutine.yield -- menu for configuring inputs local function main_config_input() local pretty_names = {loc("up"), loc("down"), loc("left"), loc("right"), "A", "B", "X", "Y", "L", "R", loc("start")} local menu_x, menu_y = unpack(main_menu_screen_pos) local ignoreMenuPressesTimer = nil menu_y = me...
local lib = require'nvim-tree.lib' local openfile = require'nvim-tree.actions.open-file' local actions = require'telescope.actions' local action_state = require'telescope.actions.state' local M = {} local view_selection = function(prompt_bufnr, map) actions.select_default:replace(function() actions.close(prompt_...
project "CppSharedLib" kind "SharedLib" language "C++" files { "*.cpp", "CppSharedLib.def" } configuration "Debug" targetdir "lib/debug" configuration "Release" targetdir "lib/release" if _ACTION == "clean" then os.rmdir("lib") end
--------------------------------------- --------- Deobfuscator----------------- --------------------------------------- function Deobfuscate(Player, BlockX, BlockY, BlockZ, BlockFace, BlockType, BlockMeta) local RelX = BlockX % 16 local ChunkX = (BlockX - RelX) / 16 local RelZ = BlockZ % 16 local ChunkZ = (Blo...
--[[ Script Version 2.1 Changelog Revision 2 Grapefruit grenade, a nickname that US Army troops named their fragmentation grenades because they (somewhat) resembled grapefruits. Script by DarkShadow6 Changelog: o 2.1 o Updated with love from Five-seveN. Limb controllers fixed. o 2.0 o Started changelog. ...
local json = require "json" local user = require "lib.models.user" local log = require "lib.bussiness.log" local localStore = {} function localStore.save( filename, dataTable ) --encode table into json string local jsonString = json.encode( dataTable ) -- create a file path for corona i/o local pat...
local M = {}; local mod = require "mod"; local tex = require "tex"; local spr = require "spr"; local snd = require "snd"; local mus = require "mus"; local font = require "font"; local function LoadAll() tex.mbf_big_00 = TextureLoad(mod.dir .. "textures/mbf_big_00.png"); tex.mbf_big_04 = TextureLoad(mod.d...
return { [1] = { name = '测试BUFF', effects = {}, layer = 1, time = 3000, level = 1, } }
object_intangible_vehicle_swoopracer_purple_pcd = object_intangible_vehicle_shared_swoopracer_purple_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_swoopracer_purple_pcd, "object/intangible/vehicle/swoopracer_purple_pcd.iff")
local _, Private = ... if Private.initialized then local name = "nerien_ovale_warrior_protection" local desc = string.format("[9.1] %s: Warrior - Protection", Private.name) local code = [[ # Adapted from Wowhead's "Protection Warrior Rotation Guide - Shadowlands 9.1.0" # by Llarold-Area52 # https://www.wowhead.com/...
ITEM.name = "Crowbar" ITEM.description = "crowbarDesc" ITEM.model = "models/weapons/w_crowbar.mdl" ITEM.class = "weapon_crowbar" ITEM.weaponCategory = "melee" ITEM.width = 2 ITEM.height = 1 ITEM.price = 500 ITEM.iconCam = { ang = Angle(-0.23955784738064, 270.44906616211, 0), fov = 10.780103254469, pos = Vector(0, 20...
-- /area radar local sp = simple_protection local S = sp.translator local data_cache local function colorize_area(name, force) if force == "unclaimed" or not force and not data_cache then -- Area not claimed return "[colorize:#FFF:50" end if force == "owner" or not force and data_cache.owner == name then ...
require 'colorizer'.setup()
--require 'nn' --local model_utils=require 'model_utils' local VOXAEnet = {} function VOXAEnet.voxae() local x = nn.Identity()() local conv1 = nn.SpatialConvolution(1,32,7,7,2,2)(x) local conv1_relu = nn.LeakyReLU(0.1,true)(conv1) local conv2 = nn.SpatialConvolution(32,64,5,5,2,2)(conv1_relu) lo...
data:extend({ -- Buildings { type = "recipe-category", name = "k2cp-buildings" }, { type = "recipe", name = "k2cp-village", category = "k2cp-buildings", enabled = true, energy_required = 10, ingredients = { {"wood", 400}, {"stone", 200}, }, ...
local AddonName, AddonTable = ... AddonTable.steamvault = { -- Hydromancer Thespia 27789, 27806, 27475, 27508, 27783, 27784, -- Mekgineer Steamrigger 27791, 27794, 27790, 27792, 27787, 27793, 27795, -- Warlord Kalithresh 29351, 27801, 27738, ...
-- This is not a class -- Provide main and all states an interface for switching states local FSM = {} local state; -- This stores the state table/module, not the name FSM.states = { IdleState = require "states.idlestate", SlideState = require "states.slidestate", SlideCooldownState = require "states.slidecool...
local modifiers = { flint = { cracky = {times={[3]=1.20}, uses=5, maxlevel=1}, crumbly = {times={[1]=2.90, [2]=1.50, [3]=0.30}, uses=5, maxlevel=1}, snappy = {times={[2]=1.3, [3]=0.20}, uses=5, maxlevel=1}, choppy = {times={[2]=2.70, [3]=1.20}, uses=5, maxlevel=1}, damagegroups = {fleshy = 1}, explody = n...
object_tangible_collection_rare_pistol_white_thranta = object_tangible_collection_shared_rare_pistol_white_thranta:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_pistol_white_thranta, "object/tangible/collection/rare_pistol_white_thranta.iff")
local luacomp = require("libluacomp") local loading = {} local function prequire(module) checkArg(1, module, "string") if package.loaded[module] ~= nil then return package.loaded[module] elseif not loading[module] then local library, status, step step, library, status = "not found", package.searchp...
--[[ THIS CODE IS DEVELOPED AND MAINTAINED BY TheDwarfer Have fun, try not to blow it up. -TheDwarfer ]] local modemChannel = 1 -- Connect to the server to send/receive data local adress = "ws://localhost:4000" local ws, err = http.websocket(adress) -- Find the wireless modems local wirelessModems = table.pack(...
-- Generated by CSharp.lua Compiler return function (out) do out = (out and #out > 0) and (out .. '.') or "" local require = require local load = function(module) return require(out .. module) end -- load all files load("FUI") load("FUIComponent") load("FUIStackComponent") load("FUIWi...
--oo/controls/edit: standard edit control --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.controlclass' require'winapi.edit' require'winapi.gdi' Edit = subclass({ __style_bitmask = bitmask{ tabstop = WS_TABSTOP, border = WS_BORDER, readonly = ES_READONLY, multiline ...
#!/usr/local/openresty/bin/resty -- Copyright (C) 2020 by chrono local cjson = require "cjson.safe" print('hello geoip') -- https://github.com/anjia0532/lua-resty-maxminddb -- get full info --[[ local geo = require 'resty.maxminddb' if not geo.initted() then geo.init("/mnt/share/GeoLite2-City.mmdb") end --]] --...
--[[ ################################################################################ # # Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), t...
return { base0A = "EBCB8B", base04 = "566074", base07 = "ced4df", base05 = "bfc5d0", base0E = "B48EAD", base0D = "81A1C1", base0C = "97b7d7", base0B = "A3BE8C", base02 = "434C5E", base0F = "BF616A", base03 = "4C566A", base08 = "ba5c65", base01 = "3B4252", base00 =...
--COASM-19 Assembler local bit = require("bit") local band, lshift, rshift = bit.band, bit.lshift, bit.rshift --== ISA Variables ==-- --The assembler error messages, they're passed to string.format --So take care of the special character % local errorMessages = { "Label identifier can't start with a digit", --1 ...
local Dryable = Class(function(self, inst) self.inst = inst self.product = nil self.drytime = nil end) function Dryable:SetProduct(product) self.product = product end function Dryable:GetProduct() return self.product end function Dryable:GetDryingTime() return self.drytime end function Dryab...
require 'nn' require 'utils' local _ = require 'underscore' -- read in word vectors - one per line function readWordVec(filename) local file = io.open(filename, "r"); local data = {} local parts local wordVec = {} -- global for line in file:lines() do parts = line:split(" ") wordVec[parts[1]] = _.rest(parts)...
--[[ This file provides the Context class. By default, LNVL scripts cannot interact with “the outside world.” They are trapped in a sandbox: the LNVL.ScriptEnvironment global table. However, since LNVL is intended to be a component embedded in other games we need a way to share data between LNVL dialog scripts and ...
--- --- ColaFramework --- Copyright © 2018-2049 ColaFramework 马三小伙儿 --- 斗地主各种数据定义 --- local LandlordData = Class("LandlordData") function LandlordData:initialize() self.playerIntegration = 0 self.computerOneIntegration=0 self.computerTwoIntegration=0 end
object_ship_z95_tier10 = object_ship_shared_z95_tier10:new { } ObjectTemplates:addTemplate(object_ship_z95_tier10, "object/ship/z95_tier10.iff")
pg = pg or {} pg.enemy_data_statistics_240 = { [12900811] = { cannon = 0, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 20001, air = 0, rarity = 1, dodge = 0, torpedo = 0, durability_growth = 6800, antiaircraft = 0, reload_growth = 0, dodge_growth = 0, speed = 30...
require('constants') if player_has_item(STOLEN_GOODS_ID) then if creature_has_humanoid_followers(PLAYER_ID) then clear_and_add_message("SNAKES_STOLEN_GOODS_SID") remove_object_from_player(STOLEN_GOODS_ID) set_creature_additional_property(PLAYER_ID, QUEST_ACEY_STOLEN_GOODS_COMPLETE, "1") else clear...
ReactContext = require "ReactContext" pi = require "pi" pi(ReactContext.createContext("d.v.")) pi(ReactContext.createContext("d.v2", function (x) return x + x end))
function ProgressBar(x,y,height,width,percent) local old_color = {love.graphics.getColor()} love.graphics.setColor(kCOLOR_UI_ACCENT) love.graphics.rectangle('fill', x, y, width, height) love.graphics.setColor(kCOLOR_UI) love.graphics.rectangle('fill', x, y, math.floor(width * percent), height) if percent > ...
data:extend({ { type = "item", name = "Paper", icon = "__PokemonTCGFactory__/graphics/icons/paper.png", icon_size = 64, subgroup = "cards", stack_size = 999, }, { type = "item", name = "Ink", icon = "__PokemonTCGFactory__/graphics/icons...
-- This file is generated by proto-gen-lua. DO NOT EDIT. -- The protoc version is 'v3.19.2' -- The proto-gen-lua version is 'Develop' local protobuf = require "protobuf.protobuf" local registry = require "protobuf.registry" local proto2_nested_messages_pb_desc = require "proto2.nested_messages_pb_desc" local proto2...
--stolen from ultralight, thanks freem local grade = ... assert(grade, "needs a grade") return LoadFont("_fishfingers large")..{ Text=THEME:GetString("Grade",grade); InitCommand=cmd(diffuse,Color.Orange;shadowlength,1;strokecolor,color("#00000000")); };
--[[ ########################################################## S V U I By: Failcoder ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select...
C_ActionBar = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ActionBar.FindFlyoutActionButtons) ---@param flyoutID number ---@return number[] slots function C_ActionBar.FindFlyoutActionButtons(flyoutID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ActionBar.FindPetActionButtons) ---@par...
local _={} _[16]={} _[15]={} _[14]={} _[13]={tags=_[16],text=" is english or generic"} _[12]={tags=_[16],text="idk::esperanto::name::string"} _[11]={tags=_[15],text=" is french"} _[10]={tags=_[15],text="pierre::french::name::string"} _[9]={tags=_[14],text=" is english or generic"} _[8]={tags=_[14],text="bob::name::stri...