content
stringlengths
5
1.05M
require('middleclass') require('Sprite') --[[ tex 存有动画帧的纹理句柄。 nframes 动画帧数 FPS 动画回放速度,以帧每秒为单位。 x,y即小图在大图中的坐标 x 动画第一帧在纹理中的X坐标,以纹理坐标为单位。 y 动画第一帧在纹理中Y坐标,以纹理坐标为单位。 w 动画帧的宽度。 h 动画帧的高度。 ]] --[[ Play 开始播放动画 Stop 停止播放动画 Resume (从暂停等状态)恢复动画。 Update 更新动画 IsPlaying 检测动画是否正在播放。 SetMode 设置回放模式。 Se...
local SP = SmoothyPlates local Utils = SP.Utils local SmoothyPlate = {} -- Create Class Table SmoothyPlate.__index = SmoothyPlate -- Create backfall for lookup setmetatable( SmoothyPlate, { -- Setup cunstructor call in metatable __call = function(cls, ...) return cls._constructor(...) end } ) -- Convenie...
function OutputMessage:addData(data) if type(data) == 'boolean' then self:addU8(NetworkMessageTypes.Boolean) self:addU8(booleantonumber(data)) elseif type(data) == 'number' then if math.isu8(data) then self:addU8(NetworkMessageTypes.U8) self:addU8(data) el...
-- 对消息进行CQ码转义操作 local cq_escape = function(s) local r = s:gsub(',', ',') :gsub('[', '[') :gsub(']', ']') :gsub('&', '&') return r end -- 对消息进行CQ码去转义操作 local cq_unescape = function(s) local r = s:gsub(',', ',') :gsub('[', '[') :gsub(']', ']...
require("script.reload-tech-unlock")
---@meta ---@class ccui.HBox :ccui.Layout local HBox={ } ccui.HBox=HBox ---* ---@param size size_table ---@return boolean function HBox:initWithSize (size) end ---@overload fun(size_table:size_table):self ---@overload fun():self ---@param size size_table ---@return self function HBox:create (size) end ---* ---@r...
local Angle = require('neural.angle') local ni = require('neural.interface') local Util = require('util') local os = _G.os local RADIUS = 13 local ROTATION = math.pi / 16 local args = { ... } local TARGET = args[1] or error('Syntax: robotWars <targetName>') local uid = ni.getID and ni.getID() or error('I...
Ambi.General.Global = Ambi.General.Global or {} -- ------------------------------------------------------------------------------------- local Color = function( nRed, nGreen, nBlue, nAlpha ) return { r = nRed, g = nGreen, b = nBlue, a = nAlpha or 255 } end local C_DEFAULT = Color( 0x0, 0x0, 0x0 ) -- ------------------...
local APP = {} -- Base data APP.name = "Home" APP.id = "home" APP.desc = "The base app" -- Used in the app store APP.appStore = false -- Can be installed from the app store APP.show = false -- Show the app on the home -- Background APP.Background = function(w, h) surface.SetDrawColor(255, 255, 255, 255) surface.Set...
function CreateButton() general_width = 40 general_height = 30 button_no_0 = Button.New() button_no_0.x = WIN_WIDTH/16 button_no_0.y = WIN_HEIGHT - WIN_HEIGHT/24 button_no_0.width = general_width button_no_0.height = general_height end function CreateForms() cal_bar = Form.New() cal_bar.x = 0 ...
return {'bui','buidel','buidelbeer','buideldier','buideldieren','buideleekhoorn','buidelrat','buidelwolf','buien','buienlijn','buigbaar','buigbaarheid','buigen','buiger','buigijzer','buiging','buigingsuitgang','buigingsvorm','buigpunt','buigspanning','buigspier','buigtang','buigvastheid','buigzaam','buigzaamheid','buii...
--[[ Prepare a message reply for saving. ]] -- Message data. mailbox = storage("send_reply_info", "mailbox") domain = storage("send_reply_info", "domain") timestamp = storage("record", "last_recording_timestamp") duration = storage("record", "last_recording_duration") recording_name = storage("record", "last_recordi...
local SettingLayer = class("SettingLayer", function() return display.newLayer("SettingLayer") end) function SettingLayer:ctor(event) cc(self):addComponent("components.behavior.EventProtocol"):exportMethods() local panel = cc.ui.UIImage.new("ui/panel2.png") :align(display.CENT...
return{ name = 'carkeys', description = 'Car Keys', type = 'material', info = 'a set of ownerless car keys', MAX_ITEMS = 10, }
mapFields = require "lib/mapFields" if self.ask_yes_no("Here you are, right in front of the hideout! What? You want to return to Showa Town?") then target.field = mapFields.getID("ShowaTown") else self.say("If you want to return to Showa Town, then talk to me.") end
require('luarpc') function _OnInit() test() end function _OnFrame() end
scriptId = 'com.tylercasson.scripts.pandora' -- Wave In to skip to the next song -- Hold a Wave Out gesture and rotate arm to adjust volume. -- Tip: If you pinch your fingers together as if you were grabbing a volume -- knob, this might make a little more sense and feel more natural -- Spread Fingers to toggle play ...
local utils = require("utils") local assert = assert local clamp = utils.clamp local MonsterCrouchState = utils.newClass() function MonsterCrouchState:init(monster) self.monster = assert(monster) self.monster.game.systems.box:setDimensions( monster.id, monster.stats.crouchWidth, monster.stats.crouchHeight) ...
local exception = {} exception.CONTENT_TYPE_WAS_NIL = { code = 100001, data = {}, msg = "The contentType was nil" } exception.PARAMS_WAS_FAIL = { code = 100002, data = {}, msg = "The query or bodys dataType was failed" } exception.REQUEST_WAS_FAIL = { code = 100003, data = {}, msg = "The request was fail" } exception....
table.insert(data.raw["technology"]["personal-roboport-equipment"].effects,{type="unlock-recipe",recipe="big-personal-roboport-equipment"}) table.insert(data.raw["technology"]["personal-roboport-equipment"].effects,{type="unlock-recipe",recipe="small-personal-roboport-equipment"}) data:extend( { { type = "techno...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions local SlipeSharedVehicles local ArrayInt32 System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedVehicles = Slipe.Shared.Vehicles ArrayInt32 = System.Array(System.Int32) end) System.namespace("Slipe.Sh...
local map = vim.api.nvim_set_keymap local wk = require("which-key") local opt = { noremap = true, silent = true, } vim.g.mapleader = " " vim.g.maplocalleader = " " wk.register({ ["<Tab>"] = {"<C-W>w","Shift Window"}, f = { name = "File", -- optional group name f = { "<cmd>Telescope find_files<cr>"...
local PANEL = {} AccessorFunc(PANEL, "SelectedPanel", "SelectedPanel") AccessorFunc(PANEL, "MinWidth", "MinWidth", FORCE_NUMBER) function PANEL:Init() local vbar = self:GetVBar() vbar:SetHideButtons(true) vbar:SetWide(8) function vbar:Paint(w, h) surface.SetDrawColor(Advisor.Theme.ScrollPanel...
------------------------------------------------------------------------------- -- -- tek.ui.class.poplist -- Written by Timm S. Mueller <tmueller at schulze-mueller.de> -- See copyright notice in COPYRIGHT -- -- OVERVIEW:: -- [[#ClassOverview]] : -- [[#tek.class : Class]] / -- [[#tek.class.object : Object]] / -- [...
fx_version 'adamant' game 'gta5' shared_scripts { 'sh_config.lua', } client_scripts { '@utils/client/blips.lua', 'cl_groups.lua', 'cl_trackers.lua', } server_scripts { '@utils/server/players.lua', 'sv_groups.lua', 'sv_trackers.lua', }
local Entity = require "me.strangepan.libs.secretary.v1.Entity" local PhysObject = require "me.strangepan.libs.secretary.v1.PhysObject" local assert_that = require "me.strangepan.libs.truth.v1.assert_that" local translation = require "me.strangepan.games.mazerino.common.mazerino.util.translation" local class = require ...
local types = require "resty.nettle.types.common" local context = require "resty.nettle.types.sha3" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local setmetatable = setmetatable local hashes = { sha3_224 = { length = 28, context = co...
return function(config, makeImmutable) -- very complicated config file! config.colors = {} config.colors.count = 10 config.colors.get = function(cur, min, max) -- Scale to effective range [min, max] local range = max - min cur = cur - min -- Determine how big on...
------------------------------------------------------------------------------ -- -- This file is part of the Corona game engine. -- For overview and more information on licensing please refer to README.md -- Home page: https://github.com/coronalabs/corona -- Contact: support@coronalabs.com -- ------------------------...
VEHICLE = {}; VEHICLE.ID = 's'; VEHICLE.FID = '19'; VEHICLE.Name = 'Murcielago'; VEHICLE.Make = "Lamborghini"; VEHICLE.Model = "Murcielago"; VEHICLE.Script = "murcielago"; VEHICLE.Cost = 350000; VEHICLE.PaintJobCost = 9000; VEHICLE.DF = true; VEHICLE.CustomBodyGroup = nil; VEHICL...
-- Chisel description description = "Shows requests which load extra modules with a summary at the end" short_description = "rails dynamic modules" category = "misc" args = {} -- Initialization callback function on_init() -- Request the fileds that we need fnum = chisel.request_field("evt.num") ftype = chisel.r...
function init_loc(keys) local caster = keys.caster caster.loc_1 = caster:GetAbsOrigin() caster.is_apply = true end function is_apply(keys) local caster = keys.caster local loc_2 = caster:GetAbsOrigin() local charge_distance = keys.ability:GetSpecialValueFor("charge_distance") local distance...
data:add_multi( "core.portrait", { { name = "face10", source = "__theme__/theme/beautify/portrait/face10.bmp" }, { name = "face11", source = "__theme__/theme/beautify/portrait/face11.bmp" }, { name = "face12", source = "__theme__/...
cc = cc or {} ---Physics3DHingeConstraint object ---@class Physics3DHingeConstraint : Physics3DConstraint local Physics3DHingeConstraint = {} cc.Physics3DHingeConstraint = Physics3DHingeConstraint -------------------------------- ---@overload fun(mat4_table, mat4_table):float ---@overload fun():float ---@param transA ...
require("runtime-core/src/vnode") require("@vue/shared/ShapeFlags") require("@vue/shared/PatchFlags") require("runtime-core/src") require("@vue/runtime-test") require("runtime-core/src/componentRenderUtils") describe('vnode', function() test('create with just tag', function() local vnode = createVNode('p') e...
-- name="demo1" ltp=true logger = { file = "/tmp/moochine_demo1.log", level = "DEBUG", } debug={ on=true, to="response", -- "ngx.log" } config={ templates="templates", } subapps={ demo3 = { path="/Volumes/KDr2/Work/appwill/moochine/demos/demo3", config={ ...
redis.setresp(3) for m, generalID in pairs(redis.call( 'ZRANGEBYSCORE', KEYS[1], ARGV[1], ARGV[2])) do local inwords = {''} local haben = {''} for i, atomic in pairs(redis.call( 'ZRANGEBYSCORE', 'general:atomic', generalID, generalID)) do local atomic_hash = redis.call('HGETALL', 'atom...
local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) -- Intllib localization support local S, NS = dofile(modpath .. "/intllib.lua") -- Namespace borders = { settings = {}, calcs = {}, } assert(loadfile(modpath .. "/settings.lua"))(modname, S) assert(loadfile(modpath .. "/no...
package.path = package.path .. ";./lua/?.lua;./lua/?/init.lua" local yapre = yapre local debug_log = require("utils.debug_log") yapre.dbg = require("utils.debugger") yapre.dbg.read = yapre.DebugRead yapre.dbg.write = yapre.DebugWrite require("utils.strict") require("utils.table_save") local palette_data = require(...
function start() local driverType = irr.driverChoiceConsole(); if driverType == irr.EDT_COUNT then return 1; end local device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480)); if device == nil then return 1; end local driver = device.getVideoDriver(); local smgr = device.getScen...
class 'Pigeon' function Pigeon:__init() self.superman = false self.rolls = true self.grapple = true self.score = 0 self.superspeed = false self.name = "Нажмите Shift или RB чтобы ускориться. Нажмите Ctrl чтобы сбавить скорость." self.nameTh = "%i км/ч %i метров\n" self.default_speed = 50 self....
ITEM.name = "Box of Nails" ITEM.desc = "A box that contains steel nails" ITEM.model = "models/props_lab/box01a.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.money = {2, 10}
function scN2SViewControllerOnCreate(viewController, parameter) if(viewController == nil) then return end if(viewController.onCreate ~= nil) then viewController:onCreate(parameter) end end function scN2SViewControllerOnSCMessageProcess(viewController, parameter) if(viewController == nil) then return end ...
--[[ Executor module The executor module is used to execute system commands, such as running a C compiler or external applications. ]] local tabler = require 'nelua.utils.tabler' local pegger = require 'nelua.utils.pegger' local platform = require 'nelua.utils.platform' local fs = require 'nelua.utils.fs' -- luacov:...
require('onmt.init') local cmd = onmt.utils.ExtendedCmdLine.new('translate.lua') local options = { { '-src', '', [[Source sequences to translate.]], { valid = onmt.utils.ExtendedCmdLine.fileExists } }, { '-tgt', '', [[Optional true target sequences.]] }, { '-output', 'pred....
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 VR" local typeoverwrite = nil -- Flat 2 engines ACF.RegisterEngineClass(class, { Name = "ACFE VR Engines", }) do function ACF_DefineEngineold(id,da...
require('LuaGameScripts\\UIObject') Buttons = {} local newUI0 = UIObject:new() newUI0.Position = { x = 505, y = 572, z = 0 } newUI0.Rotation = { x = 0, y = 0, z = 0, w = 1 } newUI0.Scale = { x = 1, y = 1, z = 1 } newUI0.Height = 24 newUI0.Width = 221 newUI0.Type = 'BUTTON' newUI0.ButtonType = 'CONTROLS' newUI0.ImagePa...
local FIELD_KEY = "blockexchange_license" function blockexchange.set_license(playername, license) local player = minetest.get_player_by_name(playername) if player then player:get_meta():set_string(FIELD_KEY, license) end end function blockexchange.get_license(playername) local player = minetest.get_player_by_na...
--[[----------------------------------------------------------------------------------------------------------------------- Spectate a player -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Spectate" PLUGIN.D...
-- Functions: ------------------------------------------------------- function model.readInfo() -- Read all the data stored in the model local data=sim.readCustomDataBlock(model.handle,model.tagName) if data then data=sim.unpackTable(data) else data={} end -- All the da...
local M = {} M.filetypes = {} -- LuaFormatter off M.filetypes.help = {long_name = "Normal", short_name = "N"} M.filetypes.normal_pending = {long_name = "N-Pending", short_name = "N-P"} M.filetypes.visual = {long_name = "Visual", short_name = "V"} M.filetypes.visual_line = {long_name = "V-Lin...
#!/usr/bin/env lua -- MoonAL example: source.lua -- -- Get/set parameters of a source object. al = require("moonal") al.trace_objects(true) -- Open a device, create a context and a source object device = al.open_device() context = al.create_context(device) source = al.create_source(context) -- Utilities to set/get...
MODULE.Name = "HUD" MODULE.Author = "Q2F2 & Ghosty" MODULE.Realm = 2 MODULE.Credits = "Based on geist by ghosty; https://github.com/TrenchFroast/ghostys-server-stuff/blob/master/lua/autorun/client/geist_hud.lua" local tag = "BaseWars.HUD" function MODULE:__INIT() surface.CreateFont(tag, { font = "Roboto", s...
return {'ieder','iedere','iedereen','iedema','iedereens','ieders','iedereen'}
--LaserPointer.lua --Implements the visual part of the VR laser pointer --Written by Kyle, September 2016 local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local ContextActionService = game:GetService("ContextActionService") local UserInputService = game:GetService("UserInpu...
local count=0 for index, key in pairs(redis.call('keys', ARGV[1])) do redis.call('del', key) count = count + 1 end return count
-- -- c_helper_functions.lua -- --------------------------------------------------------------------------------------- -- original code from faza3 delphi command line application -- cybermoon.w.interia.pl --------------------------------------------------------------------------------------- function toint(n) lo...
local Components = { {label = _U('sex'), name = 'sex', value = 0, min = 0, zoomOffset = 0.6, camOffset = 0.65}, {label = _U('face'), name = 'face', value = 0, min = 0, zoomOffset = 0.6, camOffset = 0.65}, {label = _U('skin'), name = 's...
function GetSeedFromWorld(a_World) local Path = a_World:GetIniFileName() local Ini = cIniFile() Ini:ReadFile(Path) return Ini:GetValue("Seed", "Seed") end function ConvertStringToNumber(a_String) assert(type(a_String) == 'string') local Num = "" for I = 1, a_String:len() do Num = Num .. string.byte(a...
local skynet = require 'skynet' function cancelable_timeout(ti, func) local function cb() if func then func() end end local function cancel() func = nil end skynet.timeout(ti, cb) return cancel end return cancelable_timeout
-- cfg.lua -- Important Configuration Options local cfg = { -- The scenario can be played as a soft-mod or normal mod. In soft-mod -- mode, the scenario can be played in multiplayer without having the -- mod installed. However the artillery turret and rocket turret are not -- available. To start the...
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local logger = require(Modules.src.utils.Logger) local MarketplaceService = game:GetService('MarketplaceService') local Players = game:GetService('Players') local M = require(Modules.M) local Rodux ...
----------------------------------- -- Area: Castle Oztroja -- NPC: _47r -- !pos 20.000 24.168 -25.000 151 ----------------------------------- local ID = require("scripts/zones/Castle_Oztroja/IDs") ----------------------------------- function onTrigger(player,npc) player:messageSpecial(ID.text.PROBABLY_WORKS_WITH...
--[[ This is CGC-specific configuration. The default settings are very close to those that were used during the CGC final event. ]]-- ------------------------------------------------------------------------------- -- This plugin is to be used together with the Decree Linux Kernel. -- The Decree kernel has a custom bin...
object_tangible_tcg_series3_house_sign_tcg_s02 = object_tangible_tcg_series3_shared_house_sign_tcg_s02:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series3_house_sign_tcg_s02, "object/tangible/tcg/series3/house_sign_tcg_s02.iff")
require 'paths' require 'torch' require 'image' require 'util' require 'util/file' local TORCH_DIR = paths.concat(os.getenv('HOME'), '.torch') local DATA_DIR = paths.concat(TORCH_DIR, 'data') dataset = {} -- Check locally and download dataset if not found. Returns the path to the -- downloaded data file. function ...
local module = {} module.Dark = {} module.Light = {} module.Dark.Background = Color3.fromRGB(29, 29, 29) module.Dark.Accent = Color3.fromRGB(65, 65, 65) module.Dark.ScrollBar = Color3.fromRGB(44, 44, 44) module.Dark.ScrollerBackground = Color3.fromRGB(23, 23, 23) module.Dark.Elevated = Color3.fromRGB(37, 37, 37) modu...
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
-- Test NEWTABLE, GET/SETTABLE, MUL a = {} a["test"] = 6 b = a["test"] * 2
local Plugin = script.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Constants = require(Plugin.Core.Util.Constants) local Components = Plugin.Core.Components local Foundation = Components.Foundation local LabeledFieldTemplate = require(Foundation.LabeledFieldTemplate) l...
repeat wait() until game.Players.LocalPlayer.Character local t=Instance.new("Tool", game.Players.LocalPlayer.Character) t.Name="Sten" t.GripPos=Vector3.new(0.5, -0.475, -0.1) local h=Instance.new"Part" h.FormFactor="Custom" h.Size=Vector3.new(0.4, 0.8, 3.4) h.Name="Handle" h.Parent=t local mesh=Instance.new("SpecialMe...
local modules = require(game:GetService("ReplicatedStorage"):WaitForChild("modules")) local network = modules.load("network") return { --> identifying information <-- id = 90; --> generic information <-- name = "Mushtown Rune"; rarity = "Common"; image = "rbxassetid://2747737875"; description = "A mag...
local K, C = unpack(KkthnxUI) local Module = K:NewModule("Skins") local _G = _G local table_wipe = _G.table.wipe local IsAddOnLoaded = _G.IsAddOnLoaded C.defaultThemes = {} C.themes = {} C.otherSkins = {} function Module:RegisterSkin(addonName, func) C.otherSkins[addonName] = func end function Module:LoadSkins(li...
-- Temporary function to quickly copy prototypes local function create_entity(new_name, category, name, ingredients) local entity = table.deepcopy(data.raw[category][name]) entity.name = new_name entity.minable.result = new_name local entity_item = table.deepcopy(data.raw.item[name]) entity_item....
local compe = require'compe' local Source = {} function Source.new() local self = setmetatable({}, { __index = Source }) vim.api.nvim_call_function('necosyntax#initialize', {}) -- self.__include_files = {} return self end -- デフォルトの設定を返す function Source.get_metadata(self) return { priority = 100, d...
----------------------------------- -- Area: Metalworks -- NPC: Lutia -- Type: Standard NPC -- !pos 24.076 -17 -33.060 237 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(2...
Hud = { Timing = 2000, X = 0.02, Y = 0.67, Directions = { [0] = 'N', [1] = 'NW', [2] = 'W', [3] = 'SW', [4] = 'S', [5] = 'SE', [6] = 'E', [7] = 'NE', [8] = 'N' }, Zones = { ['AIRP'] = "Los Santos International Airport", ['ALAMO'] = "Alamo Sea", ['ALTA'] = "Alta", ['ARMYB'] = "Fort Zancudo", ['BANH...
--(C)2014 Juan Carlos Gonzalez Amestoy local ffi=require('ffi') ffi.cdef[[ typedef void* rvmTapeDecoderProtocolS; typedef void z80; typedef void rvmAY3819XT; typedef void rvmUpd765S; typedef void rvmAudioMixerS; struct _spectrumPlus2A; typedef uint32_t* (*rvmSpeccyStep)(void *speccy,bool fast,uint32_t* buffer); typ...
--Derp gun Player = game:GetService("Players").luxulux Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] LeftLeg = Character["Left Leg"] RightArm = Character["Right Arm"] RightLeg = Charact...
local Players = game:GetService("Players") local TextService = game:GetService("TextService") local MessageCommand = { Id = "Message", Aliases = { "m" }, Description = "Shows a message that covers all players' screens.", Args = { { Type = "string", Name = "Content", Description = "The content of the mes...
-- this file is generated by program! -- don't change it manaully. -- source file: example_building.xls -- created at: Wed Sep 09 08:10:45 2015 local data = {} data[1] = { id = 1, name = "house", use_money = 1000, use_food = 2.33, is_init = true, defense = 100, args1 = {1,2,3}, args2 = {1.23,2,3.23}, args3 =...
require "hdf5" require "nn" require "cunn" local batch_size = 256 -- Model net = nn.Sequential() net:add(nn.SpatialConvolution(3, 64, 5, 5, 1, 1, 2, 2)) -- 1 input image channel, 6 output channels, 5x5 convolution kernel net:add(nn.ReLU()) -- non-linearity net:add(nn.SpatialConvolution(64, 64, ...
local RunService = game:GetService("RunService") local CLIENT = script.Parent.Parent local DataValues = require(CLIENT.DataValues) local bools = DataValues.bools return function(ResetText, text_obj, newTextFields, yield) if text_obj and text_obj:IsA("TextLabel") or text_obj:IsA("TextButton") or text_obj:IsA("TextBox...
function Armory:GetRequiresPower() return false end function Armory:GetCanBeUsedConstructed() return false end function Armory:OnUse() end
guthlevelsystem = guthlevelsystem or {} -- Config -- The maximum LVL that player can get guthlevelsystem.MaximumLVL = 50 -- Should we save data on timer (recommended) or save on every functions calls guthlevelsystem.SaveOnTimer = true -- If 'SaveOnTimer' is on true, the time...
local result = { item("button", "UIButtonImage", {Priority=10, UpTexture="Up.png", DownTexture="Down.png",Dock={0.9,0.1},Anchor={0.5,0.5}}).items( connect("this","ClickUp" ,"../UIItem:panel","Click") ), item("text","UIText",{Priority=10,Text="Click button ==>",Dock={0.8,0.1},Anchor={0.5,0.5},SizeX=-1.0,...
local Milo = require('milo') local InputChest = { name = 'input', priority = 10, } function InputChest:cycle(context) for node in context.storage:filterActive('input') do for slot, item in pairs(node.adapter.list()) do context.storage:import(node, slot, item.count, item) end end end Milo:registerTask(Inpu...
local win = am.window{width = 400, height = 400} -- create the shader program for rendering kaleidoscope local vshader1 = [[ precision mediump float; attribute vec2 vert; attribute vec2 uv; uniform float t; uniform mat4 MVP; varying vec2 v_uv; void main() { v_uv = (MVP * vec4(uv, 0....
TOOL.Category = "Tunnel Vision IO" TOOL.Name = "IO STool Connector" TOOL.Command = nil TOOL.ConfigName = "" if SERVER then function TOOL:Restart() self:SetStage(0) self:ClearObjects() end function TOOL:LeftClick(tr) if tr.Hit and IsValid(tr.Entity) and list.Contains( "TV_IO_ents", tr.Entity:GetClass...
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
local x, y = guiGetScreenSize() local theJobsTable = { --[ID] = { "occ", "team", skin, wep,r,g,b }, [0] = { "Criminal", "Criminals", nil, nil,255,0,0 }, [1] = { "SWAT Officer","SWAT Team", 293, 3,0,0,255 }, [2] = { "Military Forces","Military Forces", 287, 3,0,150,0 }, [3] = { "Governme...
--捕食植物ビブリスプ -- --Script by JSY1728 function c101108017.initial_effect(c) --Effect 1 : Search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101108017,0)) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) ...
#!/usr/bin/lua -- Originally released under the the Romantic WTF Public License -- Original version here: -- http://getmoai.com/wiki/index.php?title=Concatenate_your_Lua_source_tree args = {...} fs = require"lfs" files = {} root = args[1]:gsub( "/$", "" ) :gsub( "\\$", "" ) function scandir (root, pat...
local maxvalue = 1; local centervalue = false; local stateicononvalue = "indicator_checkon"; local stateiconoffvalue = "indicator_checkoff"; local sourcenode = nil; local stateicons = {}; function onInit() -- get the source node local sourcenodename; if sourcename then sourcenodename = sourcename[1...
local function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end local function cleanup_key_value(input) local ret = {} for k, value in pairs(input) do local lines = string.split(value, '\n') -- console.log('lines', lines) local key = tostring(k) local cleanKey = key:gmatc...
-- C/C++ require'lspconfig'.clangd.setup {} -- Python require'lspconfig'.pyright.setup {} -- Rust require'lspconfig'.rust_analyzer.setup {} -- Lua local sumneko_root_path = '/usr/share/lua-language-server' local sumneko_binary = '/usr/bin/lua-language-server' require'lspconfig'.sumneko_lua.setup { cmd = {sumnek...
local zproto = require "zproto" local M = zproto:parse [[ error_a 0x10000 { .cmd:integer 1 .errno:integer 2 } auth_r 0x11000 { .account:string 1 .passwd:string 2 .server:integer 3 } auth_a 0x11001 { .uid:uinteger 1 .gate:string 2 .token:integer 3 } login_r 0x1102 { .uid:uinteger 1 .t...
---- -- App - A class for writing the Excel XLSX App file. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- require "numberbook.xlsxwriter.strict" local Xmlwriter = require "numberbook.xlsxwriter.xmlwriter" ------------------------------------------------------------------------------ -- -- Constructor...
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')APICKF=b.getInterface('API')cAPI=a.getInterface('cAPI')hpp={}a.bindInterface("hpp_tattoos",hpp)Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end end)API_Database={}local c=expor...
---------------------------------------------------------------------------------- --- Total RP 3 --- This file contains the addon main loading sequence. --- --------------------------------------------------------------------------- --- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) --- Copyright 2014-2...