content
stringlengths
5
1.05M
require("code.entities-and-paths") require("code.fancy-trees") require("code.map-tiles-code")
--[=[ @c TextChannel x Channel @t abc @d Defines the base methods and properties for all Discord text channels. ]=] local pathjoin = require('pathjoin') local Channel = require('containers/abstract/Channel') local Message = require('containers/Message') local WeakCache = require('iterables/WeakCache') local SecondaryC...
local tinsert = table.insert local Route = { map = { get = {}, post = {} } } function Route.register(self, app, url, callback, method) if method == "GET" then tinsert(self.map.get, {url, callback}) elseif method == "POST" then tinsert(self.map.post, {ur...
-- 2lazy so i'll just paste ancient fframe code local FRAME = {} local greyed = Color(80, 80, 80) local borderWide = Color(0, 0, 0, 150) local border = Color(10, 10, 10) local close_hov = Color(235, 90, 90) local close_unhov = Color(205, 50, 50) local function LC(col, dest, vel) local v = vel or 10 if not IsColor...
local PANEL = {} function PANEL:Init() local width = ScrW() * 0.3 AdvNut.util.DrawBackgroundBlur(self); self.IsKeepOpen = false; timer.Simple(0.5, function() if(LocalPlayer():KeyDown(IN_SCORE)) then self.IsKeepOpen = true; end; end); self:SetSize(width, ScrH()) self:SetPos(-width, 0) self:SetPaintBac...
local requires = require('src.requires') local log = require('src.log')() local fs = require('src.fs') local cmd = require('src.command')('init', 'initialize chunk', function(args) if args:has_flag('global') then current_directory = lcm_home end requires:unsilence() if args:has_flag('silent') then requires:s...
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- Description: unit test file for iptable ------------------------------------------------------------------------------- package.cpath = "./build/?.so;" F = string.format describe("iptable object length: ", functio...
--加载socket网络库 local socket = require "socket" -- 创建udp连接 local udp = socket.udp() -- socket按块来读取数据,直到数据里有信息为止,或者等待一段时间 -- 这显然不符合游戏的要求,所以把等待时间设为0 udp:settimeout(0) -- 和客户端不同,服务器必须知道它绑定的端口,否则客户号将永远找不到它。 --绑定主机地址和端口 --“×”则表示所有地址;端口为数字(0----65535)。 --由于0----1024是某些系统保留端口,请使用大于1024的端口。 udp:setsockname('*', 12345) loca...
--!A cross-platform build utility based on Lua -- -- 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...
require "ConditionalSpeech__Core" --- Filter Template --[[ function ConditionalSpeech_Filter.TEMPLATE(text, intensity) --volume shift is optional to include local volumeShift = 0 --- Actual filter stuff here local results = filterResults:new(text,volumeShift) return results end end ]] --- Object type for f...
---@class ac.LightPollution ---@field position vec3 ---@field radius number @Radius in meters. ---@field tint rgb ---@field density number ffi.cdef [[ typedef struct { vec3 position; float radius; rgb tint; float density; } light_pollution; ]] ac.LightPollution = ffi.metatype('light_pollution', { __index = {}, __t...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Disables = { "Boost20_DronePrototypes_BreakDrone", }, Effects = {}, Prerequisites = {}, ScriptDone = true, SuppressTime = 1500000, Text = T(250911336687, --[[StoryBit Boost20_DronePrototypes_Final...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by littlefogcat. --- print("sc1") _G = {} foo = function() print("modified!") end foo() --observable = luajava.newInstance("top.littlefogcat.demolist.luaj.avoidoverride.Observable") -- --callback = function() -- --print("sc1 callback") -- ...
local opts = { noremap = true, silent = true } vim.cmd("filetype plugin on") -- Shorten function name local map = vim.api.nvim_set_keymap -- Remap comma as leader key map("", "<Space>", "<Nop>", opts) vim.g.mapleader = "," vim.g.maplocalleader = "," -- other map("n", "<Enter>", "o<Esc>", opts) map("n", "<S-Enter>", ...
local twoPi = 2 * math.pi local ChassisHelper = {} function ChassisHelper:GetFastestRotation(wheels) local topVelc = 0 for i = 1, #wheels do if wheels[i].RotVelocity.Magnitude > topVelc then topVelc = wheels[i].RotVelocity.Magnitude end end return topVelc end function ChassisHelper:Get...
require 'torch' graph = {} require('graph.graphviz') require('graph.Node') require('graph.Edge') --[[ Defines a graph and general operations on grpahs like topsort, connected components, ... uses two tables, one for nodes, one for edges ]]-- local Graph = torch.class('graph.Graph') function Graph:__init() self....
----------------------------------- -- -- Zone: Abdhaljs_Isle-Purgonorgo -- ----------------------------------- local ID = require("scripts/zones/Abdhaljs_Isle-Purgonorgo/IDs") require("scripts/globals/keyitems") ----------------------------------- function onInitialize(zone) end function onZoneIn(player, prevZone) ...
_G.deb = function(obj) naughty.notify({ preset = naughty.config.presets.critical, title = "Debug Output", text = tostring(obj), position = "top_right"}) end _G.max_client = function(c) if c.maximized_horizontal == true and c.maximized_vertical == true then local s = c.screen c.maximized_horizontal = false ...
local S = df_mapitems.S local growth_multiplier = 1 if minetest.get_modpath("df_farming") then growth_multiplier = df_farming.config.plant_growth_time end minetest.register_node("df_mapitems:glow_worm", { description = S("Glow Worms"), _doc_items_longdesc = df_mapitems.doc.glow_worms_desc, _doc_items_usagehelp = ...
-- BLUA Scripting Project -- Part of OutlandZoning Division -- Scripted by Hellgawd -- Give full credits if posting function UmbWD_OnKill(pUnit,Event) pUnit:RemoveEvents(); end function UmbWD_EnterCombat(pUnit,Event) pUnit:RegisterEvent("hittest_1",1000, 0) pUnit:FullCastSpell(34871) end function hittest_1(pUnit, ...
require('libraries.doodlehouse.dscolor.rgba') Colors = require('libraries.doodlehouse.dscolor.colors') -- takes the number function setColor(index, alpha) -- offsets the numbers to get to pico indicies local c = Colors[index + 1] c[4] = alpha or 1 love.graphics.setColor(unpack(c)) end function setBack...
if qchat and IsValid(qchat.pPanel) then qchat:Close() end qchat = { Author = "Q2F2 (/id/q2f2)", Contact = "notq2f2@gmail.com", } qchat.shortcut = { [".lenny"] = [[( ͡° ͜ʖ ͡°)]], [".iunno"] = [[¯\_(ツ)_/¯]], [".flip"] = [[(╯°□°)╯︵ ┻━┻]], [".unflip"] = [[┬─┬ ノ( ゜-゜ノ)]], } local Legacy = CreateClientConVar("qc...
local PLUGIN = PLUGIN PLUGIN.name = "RE:Vendors" PLUGIN.author = "STEAM_0:1:29606990" -- Chessnut original code PLUGIN.description = "Adds NPC vendors that can sell things." ix.lang.AddTable("russian", { ['vendorTitleInvSize'] = "Размер инвентаря", ['vendorSlideWInvSize'] = "Ширина", ['vendorSlideHInvSize'] = "Вы...
--- Event handlers related to archivespace search, event registration usually in main.lua function CallNumberSubmitCheck(sender, args) if tostring(args.KeyCode) == "Return: 13" then performSearch(searchTerm, 'call number') end end function TitleSubmitCheck(sender, args) if tostring(args.KeyCode) == "Return: 13" ...
package.path = package.path .. ";./libs/?.lua" package.cpath = "./libs/?/?.so;" .. package.cpath local lpeg = require "lpeg" local S, R, P, V = lpeg.S, lpeg.R, lpeg.P, lpeg.V local C, Cc, Cg, Cf, Ct, Cmt, Cs = lpeg.C, lpeg.Cc, lpeg.Cg, lpeg.Cf, lpeg.Ct, lpeg.Cmt, lpeg.Cs local function createLuaGrammar() local asci...
function write_gpio(num,pin_index,bits) write_gpio_unsigned( num + shl(1, bits-1), pin_index, bits ) end function write_gpio_unsigned(num,pin_index,bits) local lastbit_i = 0x5f80+pin_index+bits-1 local mask = 1 for j=0,bits-1 do local bit = shr(band(num, mask), j) poke(lastbit_i-j, bit*255) mask = s...
local diagnostics = { 'diagnostics', -- table of diagnostic sources, available sources: -- nvim_lsp, coc, ale, vim_lsp sources = {'nvim_diagnostic'}, -- displays diagnostics from defined severity sections = {'error', 'warn', 'info', 'hint'} -- all colors are in format #rrggbb -- color_er...
// Generated by github.com/davyxu/tabtoy // Version: 2.8.10 module table { export var TTask : table.ITTaskDefine[] = [ { Id : 1001, MainTask : 1000, SubTask : 1, Count : 1, Desc : "分享1次", Reward : "6001-2000" }, { Id : 1002, MainTask : 1000, SubTask : 2, Count : 1, Desc : "分享1次", Reward : "6001-2000" }, { Id :...
local function ShouldRender( hole, pos ) if rendering then return false end if not hole:GetDrawNextFrame() then return false end if not IsValid( hole:GetPartner() ) then return false end if hole:GetForward():Dot( pos - hole:GetPos() ) < 0 then return false end return true end hook.Add( "RenderScene", "BulletHoles...
onWin = function(W) W:addConditionProgress("boss", "BossRoyalguards") W:unlockAchievement("ACH_KILL_ROYAL_GUARDS") W:setMap("res/map/gandriacastle/gandriacastle.tmx", 638, 360) end onLose = function(W) W:setMap("res/map/gandriacastle/gandriacastle.tmx", 638, 360) end
-- Tests for luagit2's oid module functions describe("oid methods test", function() local luagit2 = require("luagit2") local obj_id local obj_id_string = "1385f264afb75a56a5bec74243be9b367ba4ca08" -- Object ID of Fixtures/new_test_repo/README local obj_id_semi_zero_a, obj_id_semi_zero_b local ...
local pg = require "pgsql" local function wait4conn(self) local reset=false while self.conn:status() ~= pg.CONNECTION_OK and self.run == true and self.closed == false do trace("Resetting pgsql connection", self.conn) self.conn:reset() reset=true end return reset end local function conne...
---@class ServerOptions.TextServerOption : zombie.network.ServerOptions.TextServerOption ServerOptions_TextServerOption = {} ---@public ---@return String function ServerOptions_TextServerOption:getType() end ---@public ---@return ConfigOption function ServerOptions_TextServerOption:asConfigOption() end ---@public --...
-- Lua extended vocabulary of basic tools. -- Written by Cosmin Apreutesei. Public domain. -- Modifications by Sled local glue = {} local min, max, floor, ceil, log = math.min, math.max, math.floor, math.ceil, math.log local select, unpack, pairs, rawget = select, unpack, pairs, rawget --math ---------------------...
--[[ smapi.lua Interface with thinkpad battery information Licensed under GNU General Public License v2 * (c) 2013, Conor Heine ...
ui_page 'html/ui.html' dependency 'vrp' files { 'html/ui.html', 'html/logo.png', 'html/dmv.png', 'html/cursor.png', 'html/styles.css', 'html/questions.js', 'html/scripts.js', 'html/debounce.min.js' } server_scripts { '@vrp/lib/utils.lua', 'server.lua' } client_script { 'client.lua', 'GUI.lua' }
local LFS = require( "lfs" ) local utils = {} function utils.fileExists( path ) local f = io.open( path, "r" ) if( not f ) then return false end f:close() return true end; function utils.requireCheck( rpath ) if( not rpath ) then error( "requireCheck failed: nil path", 1 ) return ...
-- below functions are taken from MMExtension repo, as they're not released yet and I don't feel like writing my own saving function, because I might screw something up -- Saves a string into a file (overwrites it) local string_sub = string.sub function io.save(path, s, translate) local f = assert(io.open(path, trans...
require('weblit-websocket') require('weblit-app') .bind {host = "0.0.0.0", port = 8080 } -- Set an outer middleware for logging requests and responses .use(require('weblit-logger')) -- This adds missing headers, and tries to do automatic cleanup. .use(require('weblit-auto-headers')) .websocket({ path...
local BaseWindow = require('code_action_menu.windows.base_window') local AnchorWindow = BaseWindow:new() -- The anchor window is just a reference to an already existing window that is -- used as an anchor for a window stack. Thereby it can't be opened, nor closed. -- In fact it is just used to read data and still imp...
--Item require("prototypes.timecraftchanges") --Item group require("prototypes.item-groups-automatization") require("prototypes.item-groups-energy") require("prototypes.item-groups-logistic") require("prototypes.item-groups-mining") require("prototypes.item-groups-module") require("prototypes.item-groups-nuclear") requ...
Site = {} Site.__index = Site --[[ Functions ]]-- function Site:Create(id) local site = setmetatable({ id = id }, Site) site.groups = {} site.hashes = {} return site end function Site:Activate() -- Settings. local settings = self:GetSettings() if settings == nil then return end -- Groups. self:RegisterGro...
-- print a OSD message with a key binding ...just a tad convoluted -- NOTE: this key-binding / function will only work when the GUI window is activated, and NOT through a CLI -- ... `⌘+s` will snap a screenshot of the mpv output window. -- TODO: migrate / figure out todo with Javascript local mp = require 'mp' local u...
local layout_data = { { {0.0, 0.0, 1, 1}, }, { {0.0, 0.2, 1, 0.8}, {0.0, 0.0, 1, 0.2}, }, { {0.0, 0.2, 1, 0.6}, {0.0, 0.0, 1, 0.2}, {0.0, 0.8, 1, 0.2}, }, { {0.2, 0.2, 0.8, 0.6}, {0.2, 0.0, 0.8, 0.2}, {0.0, 0.8, 1, 0.2},...
local combat = createCombatObject() arr = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
local E, C, L = select(2, ...):unpack() if not C.quest.enable and not C.quest.auto_collapse then return end ---------------------------------------------------------------------------------------- -- Auto collapse ObjectiveTrackerFrame in instance ---------------------------------------------------------------------...
--- allows for easy creation of "controller" style entities that only draw a single sprite local jautils = require("mods").requireFromPlugin("libraries.jautils") local drawableSpriteStruct = require("structs.drawable_sprite") local controllerEntity = {} function controllerEntity.createHandler(name, placements, place...
local utils = require('rust-tools.utils.utils') local vim = vim local M = {} local function get_params() return { textDocument = vim.lsp.util.make_text_document_params(), } end local function handler(_, result) vim.lsp.util.jump_to_location(result) end -- Sends the request to rust-analyzer to ge...
local nmap = require "nmap" local os = require "os" local shortport = require "shortport" local sslcert = require "sslcert" local stdnse = require "stdnse" local string = require "string" description = [[ Retrieves a server's SSL certificate. The amount of information printed about the certificate depends on the verbo...
one_handed_maces_db = { id0 = { source = "Gren Tornfur", drop_rate = "0.0", name = "Deathstalker's Headcracker", category_territory = "", territory = "War Zone", id = "0", expansion = "", location = "Darkshore" }, id1 = { source = "Twilight Prophet Graeme", drop_rate = "0.0", name = "Sentinel's...
----------------------------------------------------------------------------- -- An icon representing a basic node. -- -- Original Image Copyright (c) 2006-2007 Everaldo Coelho. -- Distributed under GNU General Public License. -- http://www.everaldo.com/crystal/?action=license ---------------------------------------...
function write(addr, data) if addr >= 0x8000 and addr <= 0xffff then mapper_switch_chr(0x0, 8, data & 0x3) mapper_switch_prg(0x8000, 32, (data >> 4) & 0x3) end end
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
-- File Monitor -- To write a monitor, you must implement the monitor_X method, -- where X is the name of the monitor. function monitor_file(name,startcmd,stopcmd,restartcmd) -- we need a table with the commands, so build from parameters -- if needed if not (type(startcmd) == "table") then startcmd = { sta...
local bit32 = require("bit") local ffi = require "ffi" local function new_registers(registers, cache) for k,v in pairs { display_enabled = true, window_tilemap = cache.map_0, window_attr = cache.map_0_attr, window_enabled = true, tile_select = 0x9000, background_tilemap = cache.map_0, b...
pg = pg or {} pg.enemy_data_statistics_263 = { [13600104] = { cannon = 35, reload = 150, speed_growth = 0, cannon_growth = 2000, battle_unit_type = 60, air = 0, base = 126, dodge = 0, durability_growth = 33600, antiaircraft = 40, speed = 10, reload_growth = 0, dodge_growth = 0, luck = 0, ...
local parser = require("moocscript.parser") local compile = require("moocscript.compile") describe("test success #switch", function() local mnstr=[[ a, b = ...; switch a { case 1: return 10 case 2, 3: switch b { case 4: return 40 ...
function sprint(msg,...) return string.format(msg,...) end function isAllowed(level) if Config.Debug then if isTable(Config.DebugLevel) and not emptyTable(Config.DebugLevel) then for _,lev in pairs(Config.DebugLevel) do if lev == level then return true ...
--[[ local myNAME = "merBandAidZouiFixes" local EM = EVENT_MANAGER local SV = {} local function onLoaded(eventCode, addonName) if addonName == "ZO_Ingame" then EM:UnregisterForEvent(myNAME, eventCode) SV = ZO_SavedVars:NewAccountWide("ZO_Ingame_SavedVariables", 17, myNAME, SV) end end EM:Regi...
local json = require( "acid.json" ) local cjson = require( "cjson" ) function test.enc(t) local cases = { {nil , nil, 'null'}, {{}, nil, '{}'}, {{}, {is_array=true}, '[]'}, {{1, "2"}, nil, cjson.encode({1, "2"})}, {{a=1, b='2', c={c1=1}}, nil, cjson.encod...
#!/usr/bin/env lua require 'Test.More' plan(6) if not require_ok 'Spore.Middleware.Parameter.Force' then skip_rest "no Spore.Middleware.Parameter.Force" os.exit() end local mw = require 'Spore.Middleware.Parameter.Force' is( require 'Spore'.early_validate, false, "early_validate" ) local req = require 'Spo...
--IF YOU WANT TO MODIFY THIS SWEP GO TO RCS_SCOUT INSTEAD, UNLESS IF YOU WANT TO EDIT THE FUNCTIONS OR SOMETHING THEN GO AHEAD if (SERVER) then AddCSLuaFile("shared.lua") SWEP.Weight = 5 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if (CLIENT) then SWEP.PrintName = "AWP" SWEP.Author ...
UTIL = UTIL or require "util" Game = Game or require "game" local game function love.load() game = Game:new() game.coins:add(20, 20) game.scene:load("Fase1") end function love.draw() game:draw() end function love.update(dt) dt = dt * UTIL.tile local walk = 0 if love.keyboard.isDown("a")...
require 'ffxi.recast'; local config = require('config'); local party = require('party'); local actions = require('actions'); local packets = require('packets'); local buffs = require('behaviors.buffs') local healing = require('behaviors.healing'); local jwhm = require('jobs.whm'); local magic = require('magic'); local...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PrgAmbientLife["Visitbarchair"] = function(unit, bld, obj, spot, slot_data, slot, slotname) local rnd, _x, _y, _z unit:PushDestructor(function(unit) unit:Detach() end) obj:SetStateText("idle", const.eDontCrossfade) unit:PlayState("spacebarSitSt...
-- south path room = { short = "south001", name = "Town Path", description = [[This is the path through the town.]] } exits = { { name="North", alias="N", lua="center000", description = "There is a path to the north, it seems to go to the town center." }, { name="South", alias="S", lua="south002...
--[[ Following table is database of PCI devices identifiers and drivers in OpenWrt to support them. Feel free to expand it with additional devices. Every device has to have numerical 'vendor' and 'device' identifier and list of 'packages' defined. Please also add comment with device name. ]] local db = { { -- Qualcom...
-- Online Interiors IPL Edits -- Use https://github.com/Bob74/bob74_ipl/wiki to edit below -- Low End House (Location)
local CRYPT = require "lcrypt" local dhsecret = CRYPT.dhsecret local dhexchange = CRYPT.dhexchange local DH = {} function DH.dhsecret (...) return dhsecret(...) end function DH.dhexchange (...) return dhexchange(...) end -- 初始化函数 return function (t) for k, v in pairs(DH) do t[k] = v end return DH end
-- -- $Id$ -- module( "resmng" ) svnnum("$Id$") propCharacter = { [CHAR_TEST] = { ID = CHAR_TEST, Name = nil, Skeleton = "Hero/test", Shape = {10001,10002,10003,10004,10005}, HeadImage = "ui/sprite/head", AttrID = 1, Skills = {[resmng.AttackName.LightFi...
--[[ Flappy Bird Clone Lua Build for Love2d PlayState for state passed from StateMachine Defines behavior and updates/rendering Author: Troy Martin beef.erikson.studios@gmail.com ]] PlayState = Class{__includes = BaseState} PIPE_SPEED = 60 PIPE_WIDTH = 70 PIPE_HEIGHT = 288 BIRD_WIDTH = 38 B...
t1 = {} t1.value = "one" t2 = {} t2.value = "two" t3 = {} t3.value = "three" mt = {} setmetatable(t1, mt) setmetatable(t2, mt) setmetatable(t3, mt) mt.__concat = function (table, other) return table.value .. other.value end assert(t1 .. t2 == "onetwo") assert(t1 .. t3 == "onethree") assert(t2 .. t3 == "twothree"...
/* * @package : rlib * @module : ipcrypt * @requires : rbit * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2020 - 2020 * @since : 3.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io *...
local pairs = pairs local type = type local xpcall = xpcall local setmetatable = setmetatable local Router = require("lor.lib.router.router") local Request = require("lor.lib.request") local Response = require("lor.lib.response") local View = require("lor.lib.view") local supported_http_methods = require("lor.lib.meth...
local autoplace_utils = require("autoplace_utils") function world_autoplace_settings(world, noise_layer, rectangles) local ret = { { influence = 0.1, noise_layer = noise_layer, noise_persistence = 0.7, octaves_difference = -1 } } autoplace_utils.peaks(rectangles, ret) return...
-- Extreme Reactors Control by SeekerOfHonjo -- -- Original work by Thor_s_Crafter on https://github.com/ThorsCrafter/Reactor-and-Turbine-control-program -- -- Version 1.0 -- -- Loads the Touchpoint API (by Lyqyd) shell.run("cp /extreme-reactors-control/config/touchpoint.lua /touchpoint") os.loadAPI("touchpoint") she...
--[[lit-meta name = "creationix/defer-resume" version = "0.1.0" homepage = "https://github.com/creationix/lua-postgres/blob/master/defer-resume.lua" description = "A helper to resume a coroutine on a later stack." tags = {"coro"} license = "MIT" contributors = { "Tim Caswell", } ]] local uv = requi...
-- FIXME: naming sucks.. ActiveDrawing = LCS.class{} function ActiveDrawing:init() self.activeDrawingTextures = {} end function ActiveDrawing:SetActiveTexture(originalTextureObj) local originalTexture = originalTextureObj.texture local activeTexture = self.activeDrawingTextures[originalTexture] if act...
local results = require "script.results" itemList = {} function itemList.create(player) local ui_state = ui.ui_state(player) local search_box = ui_state.left_column.add{type="text-box", name="fi_textbox_search_items"} local item_list_holder = ui_state.left_column.add{type="frame", direction="vertical", s...
local gpio=... print("gpio: "..gpio) gpio.write(gpio, gpio.HIGH) gpio.mode(gpio, gpio.OUTPUT)
food = {"парадајз", "сир", "маслине", "шунку", "печурке", "саламу"}
local filesystem = require('gears.filesystem') local theme_dir = filesystem.get_configuration_dir() .. '/theme' local theme = {} theme.icons = theme_dir .. '/icons/' theme.font = 'Inter Regular 10' theme.font_bold = 'Inter Bold 10' -- Colorscheme theme.system_black_dark = '#4C566A' theme.system_black_light = '#6C768...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local B = E:NewModule('Blizzard', 'AceEvent-3.0', 'AceHook-3.0'); E.Blizzard = B; --No point caching anything here, but list them here for mikk's FindGlobals script -- GLOBALS: IsAddOnLoaded, LossOfControlFrame, Cre...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseGuildList_pb', package.seeall) local BSEGUILDLIST = protobuf.Descriptor(); local BSEGUILDLIST_MYGUILDID_FIELD = protobuf.FieldDescriptor(); local BSEGUILDLIST_GUILDLIST_FIELD = protobuf.FieldDescriptor(); local BSEGUILDLIST_REQU...
includes( "Engine", "EntryPoint", "Platform", "Render", "Robotic" )
translations.ru = { name = "ru", fullname = "Русский", -- Сообщения об ошибках corrupt_map = "<r>Поврежденная карта. загрузите другую.", corrupt_map_vanilla = "<r>[ОШИБКА] <n>Не удается получить информацию о карте.", corrupt_map_mouse_start = "<r>[ОШИБКА] <n>Карта должна иметь начальную позицию (точку появления ...
-- MIT license Lupus590 -- a better way of doing this might be soemthing like this https://metis.madefor.cc/ local ccStringsUrl = "https://raw.githubusercontent.com/SquidDev-CC/CC-Tweaked/f7e3e72a6e8653f192b7dfad6cf4d072232e7259/src/main/resources/data/computercraft/lua/rom/modules/main/cc/strings.lua" if not pcall(...
function start() local driverType = irr.driverChoiceConsole(); if driverType == irr.EDT_COUNT then return 1; end local device = irr.createDevice(driverType, irr.dimension2d_u32(512, 384)); if device == nil then return 1; end device.setWindowCaption("cpgf Irrlicht Lua Binding - 2D Graphics Demo...
----------------------------------------------------------------------------------------------- -- Client Lua Script for ForgeUI -- -- name: credits_module.lua -- author: Winty Badass@Jabbit -- about: ForgeUI module for displaying credit in main ForgeUI window -------------------------------------------------------...
PLUGIN.name = "Global map" PLUGIN.author = "STEAM_0:1:29606990" PLUGIN.description = "" if (SERVER) then return end local draw, surface, TEXT_ALIGN_CENTER = draw, surface, TEXT_ALIGN_CENTER local SH_SZ = SH_SZ ix.map = ix.map or { texture = Material("gmodz/global_map/rp_stalker_v2.png"), objects = {}, gui = { m...
CAMERA_ENUMS = { SPEED_CAMERA = 1, --// Checks the individuals speed against the speed limit, issues an automatic ticket. CHAR_CHECK_CAMERA = 2, --// Checks the individuals information against the CAD, issues an automatic BOLO. (On CAD & in-game) PLATE_CAMERA = 3, --// Checks the vehicle plate against the C...
local a={}a._startRoute={-155.01356506348,6140.6962890625,32.335067749023}a._routes={[1]={-546.85333251953,5566.2963867188,59.569416046143},[2]={-580.40179443359,5465.05078125,60.359615325928},[3]={-923.66589355469,5269.41796875,84.011985778809},[4]={-568.50189208984,5179.25390625,98.315795898438},[5]={-642.04534912109...
cine = {} function cine.Init() -- Hide UI Keep Mouse SetSkyModel(sky.blizzardSky) -- BlzHideOriginFrames(true) -- BlzFrameSetVisible(BlzGetFrameByName("ConsoleUIBackdrop", 0), false) CinematicFilterGenericBJ(0.00, BLEND_MODE_BLEND, mask.black, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0) local t = CreateTrigger() Trigge...
object_mobile_outbreak_undead_deathtrooper_15_m = object_mobile_shared_outbreak_undead_deathtrooper_15_m:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_undead_deathtrooper_15_m, "object/mobile/outbreak_undead_deathtrooper_15_m.iff")
object_tangible_storyteller_prop_pr_ch9_installation_gas_harvester = object_tangible_storyteller_prop_shared_pr_ch9_installation_gas_harvester:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_installation_gas_harvester, "object/tangible/storyteller/prop/pr_ch9_installation_gas_harvester.iff...
local numToName = { [1] = "Ritalin", [2] = "LSD", [3] = "Cocaine", [4] = "Ecstasy", [5] = "Heroine", [6] = "Weed", ["Ritalin"] = 1, ["LSD"] = 2, ["Cocaine"] = 3, ["Ecstasy"] = 4, ["Heroine"] = 5, ["Weed"] = 6, } local drugsTable = {} addEvent("getDrugsFromQuery",true) addEventHandler("getDrugsFromQuery",r...
class 'ActiveRecord::Adapters::Pg' extends 'ActiveRecord::Adapters::Abstract' ActiveRecord.Adapters.Pg.types = { primary_key = 'bigserial primary key', string = 'character varying', text = 'text', integer = 'integer', float = 'float', decimal = 'decimal', datetime = 'timestamp', timestamp = 'timestamp'...
local M = {} local function currentTime() return tonumber( ( hs.execute("/usr/local/opt/coreutils/libexec/gnubin/date +%s%N") ) )/1000000000 end M.currentTime = currentTime function M.functionWithTimes(fn, ...) local start = current_time() result = table.pack(fn(...)) print("elapsed seconds: "...
-- Random Distribution Script -- Robert Edwards 2003 -- This script is in the public domain and can be used for any purpose -- I just hope its useful as an example of binary IO in lua for mappy shifttab = {} shifttab[0] = 1 shifttab[1] = 256 shifttab[2] = 65536 shifttab[3] = 16777216 function ShowError(m...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- package.path = package.path .. ";../src/?.lua"; local IpcSender = require "ipc.CommunicationPartner.IpcSender" local socket = require "socket" local receivedResponse = false local function onMessageReceived(_message) ...