content
stringlengths
5
1.05M
--redis_queued.lua --redis消息队列处理 REDIS_QUEUED = {} setmetatable(REDIS_QUEUED, {__index = _G}) local _ENV = REDIS_QUEUED function deal_with_reply(reply) if not is_table(reply) then return end -- trace("__ REDIS_QUEUED:deal_with_reply() __ is %o ", reply) if reply.channel == REDIS_CHAT_CHANN...
local i18n = require "i18n" local lfs = require "lfs" return function(self) -- Set locale self.i18n = i18n local locale = self.req.headers["Content-Language"] or "en" i18n.setLocale(locale) i18n.loadFile("src/locale/en.lua") -- Get locale file local path = "src/locale" for file in lfs.dir(path) do loca...
local shared = require("scripts.stageapi.shared") local mod = require("scripts.stageapi.mod") StageAPI.LogMinor("Loading Boss Handler") StageAPI.FloorInfo = {} StageAPI.FloorInfoGreed = {} local stageToGreed = { [LevelStage.STAGE1_1] = LevelStage.STAGE1_GREED, [LevelStage.STAGE2_1] = LevelStage.STAGE2_GREED,...
test_run = require('test_run').new() -- -- When master's registering an anonymous replica, it might ignore the replica's -- current vclock, and skip the data in range (replica_clock, master_clock). -- box.schema.user.grant('guest', 'replication') _ = box.schema.space.create('test') _ = box.space.test:create_index('pk'...
module 'mock' --TODO: a generic anim curve & attr manager -------------------------------------------------------------------- --Simple helpers -------------------------------------------------------------------- -- function simpleCurveAnim() -- local anim = MOAIAnim.new() -- end function buildAnimCurve( keys ) lo...
-- nvim-lspconfig -- Configure available LSPs -- https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md -- -- Note that all languag e servers aside from `sumneko_lua` are installed via Nix. See: -- `../../../../home/neovim.nix`. vim.cmd 'packadd nvim-lspconfig' local lspconf = require 'lspconfig' lspconf.bash...
package("muslcc") set_kind("toolchain") set_homepage("https://musl.cc/") set_description("static cross- and native- musl-based toolchains.") if is_host("windows") then if is_arch("arm64") then set_urls("https://github.com/xmake-mirror/musl.cc/releases/download/$(version)/aarch64-li...
return { entities = { {"accumulator", {x = 1, y = -3}, {dead = 0.4}}, {"accumulator", {x = 3, y = -3}, {dead = 0.4}}, {"accumulator", {x = -3, y = -2}, {dead = 0.4}}, {"medium-electric-pole-remnants", {x = -0.5, y = -1.5}, {}}, {"laser-turret-remnants", {x = -2, y = 1}, {dir = "south", }}, {...
ESX.Trace = function(msg) if Config.EnableDebug then print(('[es_extended] [^2TRACE^7] %s^7'):format(msg)) end end ESX.SetTimeout = function(msec, cb) local id = ESX.TimeoutCount + 1 SetTimeout(msec, function() if ESX.CancelledTimeouts[id] then ESX.CancelledTimeouts[id] = nil else cb() end end) E...
-- -- YATM Spacetime deals with instant transportion and other space and time manipulating nodes. -- local mod = foundation.new_module("yatm_spacetime", "1.1.0") mod:require("util.lua") mod:require("spacetime_meta.lua") mod:require("spacetime_network.lua") mod:require("api.lua") mod:require("nodes.lua") mod:require("...
includeFile("custom_content/draft_schematic/weapon/appearance/weapon_appearance_2h_maul_legendary.lua") includeFile("custom_content/draft_schematic/weapon/appearance/weapon_appearance_2h_sword_avatar_wke_toothpick.lua") includeFile("custom_content/draft_schematic/weapon/appearance/weapon_appearance_2h_sword_kashyyk.lua...
function GetLivingPlayers( onTeam ) local allPly = team.GetPlayers( onTeam ) local livingPly = {} for _, v in pairs(allPly) do if( IsValid(v) && v:Alive() ) then livingPly[#livingPly + 1] = v end end return livingPly end -- now realised there is a flag to ignore ws, don't use this it's not done.... functio...
local utils = require('util') local url = require('url') local fs = require('fs') local path = require('path') local uv = require('luv') local tap = require('util/tap') local assert = require('assert') local m3u8 = require('hls/m3u8') local tsWriter = require('hls/writer') local tsReader = require('hls/...
-- Base16 Paraiso color -- Author: Jan T. Sott -- to be use in your theme.lua -- symlink or copy to config folder `local color = require('color')` local M = {} M.base00 = "#2f1e2e" -- ---- M.base01 = "#41323f" -- --- M.base02 = "#4f424c" -- -- M.base03 = "#776e71" -- - M.base04 = "#8d8687" -- + M.base05 = "#a39e9b" ...
--|> SIMPLEX | Easy-to-use interaction system <|-- -- ShutoExpressway -- The global settings for Simplex. return { InteractionKeys = { Desktop = Enum.KeyCode.E, Console = Enum.KeyCode.ButtonX }, }
Socket,Address,Interface,Buffer = require('t.Net.Socket'),require('t.Net.Address'),require('t.Net.Interface'),require('t.Buffer') ipAddr = arg[1] and arg[1] or Interface.default( ).address.ip port = arg[2] and arg[2] or 8888 udpsock = Socket( 'UDP', 'ip4' ) adr = Address( ipAddr, port ) print( udpsock, adr ) ud...
-- AERGO BILLBOARDS -- UNDER DEVELOPMENT -- GLOBAL STATE VARIABLES state.var { __GEO = state.map(2), -- Geographic Coordinate System for outdoors map __OUTDOORS = state.map(1) -- outdoors collectable data --_b_aer_coupon = state.value() -- bignum aer of 1 collectable ticket } function constructor() _...
local csv = require("utils.csv") local L = Class(require("levelhead.data.base")) function L:initialize() --parse data file local rawHeaders self.data, rawHeaders = csv.parseString(love.filesystem.read("data/propertyLists.tsv"),"\t") --parse headers self.headers = {} for _,v in ipairs(rawHeaders) do local raw...
-- fibonacci function with cache -- very inefficient fibonacci function function fib(n) N=N+1 if n<2 then return n else return fib(n-1)+fib(n-2) end end -- a general-purpose value cache function cache(f) local c={} return function (x) local y=c[x] if not y then y=f(x) c[x]=y ...
local redis = require "skynet.db.redis" local rediscluster = require "skynet.db.redis.cluster" local mongo = require "skynet.db.mongo" local cdbmgr = class("cdbmgr") function cdbmgr:init() self.db_type = skynet.getenv("db_type") self.db_is_cluster = skynet.getenv("db_is_cluster") self.dbs = {} ...
local filesystem = require("filesystem") local dirent = {} function dirent.files(path) return filesystem.list(path) end return dirent
--- -- @module HumanoidTrackerService -- @author Quenty local require = require(script.Parent.loader).load(script) local Players = game:GetService("Players") local HumanoidTracker = require("HumanoidTracker") local HumanoidTrackerService = {} function HumanoidTrackerService:Init() assert(not self._humanoidTracker...
-- Will track whether prompt is currently open local promptIsOpen = false --[[ table object: interface PromptInfo { placeholder: string; description: string; id: string; title: string; isClosable?: boolean; } ]] ---@param promptTable table --- --- NOTE: Need to handle an export spam triggering many prompts...
----------------------------------------- -- ID: 5004 -- Scroll of Valor Minuet III -- Teaches the song Valor Minuet III ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(396) end function onItemUse(target) target:addSpell(396) end
1.Chop 2.Gum 3.Smoke 4.Buddha 5.Flame 6.Phoenix 7.Rumble 8.String 9.Ice 10.Magma 11.Light
mul = settings.startup["advanced-electric-multiplier-advanced-accumulator"].value data:extend( { { type = "recipe", name = "advanced-accumulator", energy_required = 30, enabled = false, ingredients = { {"accumulator", mul + 1}, {"iron-plate", 10}, {"electronic-circuit", 5} ...
--[[ Option Data Modifiers Defines performance options selectable for individual systems ]] function navcomp.plotter:SetSegmentSmoothingOn () navcomp.data.useSegmentSmoothing = true navcomp.data.isOptionDataChanged = true end function navcomp.plotter:SetSegmentSmoothingOff () navcomp.data.useSegmentSmoothing...
local M = {} M.description = 'Integration between nvim-notify and telescope' M.requisite = { 'nvim-notify', 'telescope', } M.after = { 'nvim-notify', 'telescope', } M.activation = { wanted_by = { 'nvim-notify', 'telescope', } } function M.config() require("telescope").load_extension("notify") ...
--[[ File name: init.lua Description: main module code for the serene quest system Author: oldmilk --]] local module = {} local class = require(script.class) local ridge = require(game.ReplicatedStorage:WaitForChild("modules").ridge) function getQuestProfile(player) local playerDataStore = ridge.getPl...
local Base = GMethod.loadScript("game.UI.Dialog.ViewTemplates.BaseTemplate") do -- 仿Scroll的layout实现,简化代码实现 local LayoutImplement = {} Base.registerImplement("LayoutImplement", LayoutImplement) -- 加载 function LayoutImplement:_static_load(data) self._scrollCallback = data.callback se...
function initiateProgram () -------------------------------------------------------------------------------- sprite = {} users={} char={} obj = {} sx, sy, xx, yy = 1, 1, 0, 0 -------------------------------------------------------------------------------- require "0modules0.loadingContent.loadAllLuaFiles" loadAllLua...
local ubus = require "ubus" local bit32 = require "bit32" local function get_wifi_interfaces() local u = ubus.connect() local status = u:call("network.wireless", "status", {}) local interfaces = {} for _, dev_table in pairs(status) do for _, intf in ipairs(dev_table['interfaces']) do table.insert(in...
local GameObject = require 'squeak.gameObject' local Component = require 'squeak.component' local TestComponent = Component:extend() describe('gameObject', function() local c, g before_each(function() c = TestComponent() g = GameObject() end) it('works at all', function() assert.are.equal('table...
function on_activate(parent, ability) local cur_mode = parent:get_active_mode() if cur_mode ~= nil then cur_mode:deactivate(parent) end local effect = parent:create_effect(ability:name()) effect:deactivate_with(ability) effect:add_num_bonus("ranged_accuracy", -10) local stats = parent:...
local cancel = THEME:GetString("ScreenSelectMusicTutorial", "FooterTextSingleSong") if PREFSMAN:GetPreference("ThreeKeyNavigation") then cancel = THEME:GetString("ScreenSelectMusicTutorial", "FooterTextSingleSong3Key") end return LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(_screen.cx, _screen.h - ...
-- .. "</br>" -- .. translate("For more information on different options check ") -- .. [[ <a href="https://adguard.com/en/adguard-dns/overview.html#instruction">]] -- .. "AdGuard.com" .. [[</a>]] .. ", " -- .. [[ <a href="https://cleanbrowsing.org/guides/dnsoverhttps">]] -- .. "CleanBrowsing.org" .. [[</...
local PANEL = {} function PANEL:Init() self:SetFont("VBFONT_DERMANORMAL") self:SetTextColor(COLOR_WHITE) self.AlternativeColorScheme = false end function PANEL:Paint(w, h) if self.AlternativeColorScheme then draw.RoundedBox(0, 0, 0, w, h, COLOR_BUTTON_NORMAL) if self:IsHovered() then draw.Rou...
if arg[1] == "down" then turtle.dropDown() elseif arg[1] == nil then turtle.drop() elseif arg[1] == "up" then turtle.dropUp() else print("Invalid drop direction.") end
local T, C, L = Tukui:unpack() ---------------------------------------------------------------- -- Raid Cooldowns -- Author: Allez -- Editor: Luaerror ---------------------------------------------------------------- if (not C.RaidCD.Enable) then return end local RaidCooldowns = { ["DEATHKNIGHT"] = { [6199...
require "util" local Screen = require "widgets/screen" local Button = require "widgets/button" local AnimButton = require "widgets/animbutton" local Image = require "widgets/image" local UIAnim = require "widgets/uianim" local NumericSpinner = require "widgets/numericspinner" local TextEdit = require "widgets/textedit"...
Enemy = class(Character) function Enemy:init(id, sprite, hp, moveSpeed, invincibilityTime, attackDist, attackDamage, attackDamageTime, collisionDist, detectDist, collisionDamage, pursueDist, startAttackDist) Character.init(self, id, sprite, hp, moveSpeed, invincibilityTime, attackDist, attackDamage, attackDamageTim...
VERSION = "1.0.1" local micro = import("micro") local util = import("micro/util") local config = import("micro/config") local buffer = import("micro/buffer") local utf8 = import("utf8") --get a half-finished word at the cursor position . local function getCurrentWordHead(bp) local curpos = -bp.Cursor.Loc ...
local gui = require("__flib__.gui-beta") local toolbar = require("gui/toolbar") local events_table = require("gui/events_table") local function header(gui_id) return { type = "flow", ref = {"titlebar"}, children = { {type = "label", style = "frame_title", caption = {"rocket-log.header"}, ignored_by...
require("runtime-core/src/component") require("runtime-core/src/directives") require("@vue/shared") require("runtime-core/src/warning") require("runtime-core/src/vnode") require(".") function createAppContext() return {config={isNativeTag=NO, devtools=true, performance=false, globalProperties={}, optionMergeStrategi...
local playsession = { {"mewmew", {652890}}, {"NekoBaron", {3517758}}, {"Giatros", {324457}}, {"dpoba", {562827}}, {"Bratanchikov", {10744}}, {"coucounoir", {19198}}, {"LT.Jack", {411925}}, {"Zorzzz", {2994001}}, {"ratboyboxshall", {3035963}}, {"peggeleg", {8147}}, {"Watermelon141", {8549}}, {"Sjetil", {6012...
--- Array methods. -- Modules -- local af = require("arrayfire_lib") -- Exports -- local M = {} -- See also: https://github.com/arrayfire/arrayfire/blob/devel/src/api/cpp/array.cpp -- -- local Dims = {} -- function M.Add (array_module, meta) local Call = array_module.Call local CallWrap = array_module.CallWrap ...
local _tostring = tostring local _tonumber = tonumber local _unpack = unpack --VALIDATION if(not KEYS[1] or not _tostring(KEYS[1])) then return redis.error_reply('NO ROOM NAME KEY') end if(ARGV) then for x=1, #ARGV do if(not _tostring(ARGV[x])) then return redis.error_reply('ROOM PARAM INVALID') end end end --===...
local DS = LibStub("AceAddon-3.0"):GetAddon("Doom Shards", true) if not DS then return end local WS = DS:NewModule("warningSound", "AceEvent-3.0") -- can't use sound since it's a legacy option :/ local LSM = LibStub("LibSharedMedia-3.0") -------------- -- Upvalues -- -------------- local GetTime = GetTime local pai...
local config = require "api-umbrella.proxy.models.file_config" local http = require "resty.http" local is_empty = require("pl.types").is_empty local json_decode = require("cjson").decode local json_encode = require "api-umbrella.utils.json_encode" local server = config["elasticsearch"]["_first_server"] local _M = {} ...
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) TriggersWindow = Editor:extends{} TriggersWindow:Register({ name = "triggersWindow", tab = "Logic", caption = "Triggers", tooltip = "Edit triggers", image = Path.Join(SB.DIRS.IMG, 'cog.png'), order = 1, }) function TriggersWindow:init() ...
function func() return 69 end
local _G = _G local NeP = NeP ------------------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------------------------------------...
local TP = {} --TODO FIX THIS TP.tp = 100 -- THE ACTUAL TP VALUE TP.visualtp = 0 -- What the WHITE/RED bar displays TP.laggedtp = 0 -- What the orange bar displays TP.maxtp = 100 -- The maximum amount of TP allowed! TP.highlighted = 0 -- How much TP is highlighted to sho...
return function() require'nvim-treesitter.configs'.setup { highlight = { enable = true, -- false will disable the whole extension }, incremental_selection = { enable = true, keymaps = { -- mappings for incremental selection (visual map...
local Character = {} local RunServ = game:GetService("RunService") local PlayerServ = game:GetService("Players") local Settings = require(script.Parent.Settings) Character.Container = nil Character.CharacterObject = nil Character._connection = nil function Character:CreateContainer() self.Container = Instance.new(...
--[[ Save Structure The SaveStructure module contains the default SaveStructure. To add something to the SaveStructure simply add an Item to the SaveStructure table like this.We're going to add gems to the SaveStructure. And that's it it updates new and old player data structures local saveStructure = { Coins ...
-- vim: ts=4:sw=4:sts=4:expandtab local checks = require('checks') local Registry = require('metrics.registry') local Counter = require('metrics.collectors.counter') local Gauge = require('metrics.collectors.gauge') local Histogram = require('metrics.collectors.histogram') local Summary = require('metrics.collectors...
local Modules = {} function import(modname, dir) dir = dir or "server" modname = dir.."/"..modname local oldModule = Modules[modname] if oldModule then return oldModule end local pathname = modname .. ".lua" local newModule = {} Modules[modname] = newModule setmetatable(new...
require'gitsigns'.setup{ signs = { add = {text = '▋'}, change = {text = '▋'}, delete = {text = '▁'}, topdelete = {text = '▔'}, changedelete = {text = '▋'}, }, keymaps = {}, preview_config = { border = '', }, } local map = require'map' map.n{'<leader><leader>gp', '<c...
local PATH = (...):gsub('%.[^%.]+$', '') local Ffi = require("ffi") local Transform = require(PATH..".transform") -- Localize 'cos' and 'sin' for a bit more performance in VoxelBatch:updateVoxel local cos = math.cos local sin = math.sin -- Define the module, as well as the vertex format local VoxelBatch = { ...
--- Utilities -- local Table = require(script.Parent.Table) local TableMerge = Table.Merge local Utilities = {} --Constants local REMOTE_EVENT_ENUM = { PLAYER_READY = 0; ENTITY_CREATE = 1; ENTITY_ADD_COMPONENTS = 2; ENTITY_REMOVE_COMPONENTS = 3; ENTITY_ADD_REMOVE_COMPONENTS = 4; ENTITY_RE...
--Mr.Z<zenghuaguo@hotmail.com> local NXFS = require "nixio.fs" local SYS = require "luci.sys" local HTTP = require "luci.http" local DISP = require "luci.dispatcher" local m,s,o local LUCI_VER,ADBYBY_VER,Status LUCI_VER=SYS.exec("awk '/^Version/{print $2}' /usr/lib/opkg/info/luci-app-adbyby.control") if SYS.call("[...
local common = require('ntb.common'); local ninjaFileBuilderMt = {}; local function getNinjaBuildCmd_(explicitOutputs, rule, inputs, implicitDependencies, orderOnlyDependencies, implicitOutputs, vars) local into = {}; table.insert(into, "build " .. common.ninjaEscapePaths(explicitOutputs)); if implicitOutputs and...
data:extend({ { type = "electric-pole", name = "substation-mk2", icon_size = 32, icon = "__FactorioExtended-Power__/graphics/icons/substation-mk2.png", flags = {"placeable-neutral", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "substation-mk2"}, max_health = 400, corpse = "...
description = [[ Decodes the VSNNUM version number from an Oracle TNS listener. ]] local shortport = require "shortport" local nmap = require "nmap" local comm = require "comm" local stdnse = require "stdnse" local string = require "string" local U = require "lpeg-utility" author = "Daniel Miller" license = "Same as ...
--returns the powerset of s, out of order. function powerset(s, start) start = start or 1 if(start > #s) then return {{}} end local ret = powerset(s, start + 1) for i = 1, #ret do ret[#ret + 1] = {s[start], unpack(ret[i])} end return ret end --non-recurse implementation function powerset(s) local t ...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] UserVehicles = {} UserVehiclesByPlayer = {} CUserVehicle = inh...
----------------------------------- -- Area: Beadeaux (254) -- Mob: Zircon Quadav -- Note: PH for Zo'Khu Blackcloud ----------------------------------- local ID = require("scripts/zones/Beadeaux/IDs"); require("scripts/globals/mobs"); function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) tpz...
object_tangible_loot_creature_loot_collections_dejarik_ghhhk = object_tangible_loot_creature_loot_collections_shared_dejarik_ghhhk:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_dejarik_ghhhk, "object/tangible/loot/creature/loot/collections/dejarik_ghhhk.iff")
local _, addon = ... local Store = addon.magi.GetStore('Base') local General = addon.magi.AddStoreCategory(Store, 'General') addon.magi.AddIds(addon.magi.AddCategorySection(General, 'Alcohol', addon.magi.CategoryTypes.Consumable), { 182121, 183616, 37898, 80914, }) addon.magi.AddIds(addon.magi.AddCa...
local method = ngx.req.get_method() local key = "12345" local h = ngx.req.get_headers() local token = h.Authorization ngx.say("step 5") if token == nil then ngx.exit(ngx.HTTP_FORBIDDEN) end md_hash = token:match("([^Token ].+)") if method == "POST" or method == "PUT" then ngx.req.read_body() -- explicitly...
local Debug = require("OOP.Config").Debug; local Number1 = enum("One","Two","Three"); assert(Number1.One == 1); assert(Number1.Two == 2); assert(Number1.Three == 3); local Number2 = enum { Four = 4, Five = 5, Six = 6 }; assert(Number2.Four == 4); assert(Number2.Five == 5); assert(Number2.Six == 6); local ...
--Very First install only script --It will install "gitTrans" which download/upload manager from github code local GITTRANSURL='https://raw.githubusercontent.com/SemteulGaram/OpenComputers-Remi/master/src/gitTrans.lua' local comp = require 'component' local fs = require 'filesystem' local inet = nil local function ch...
return PlaceObj("ModDef", { "title", "Just Music", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_OnlyRadioMusic", "steam_id", "1701116117", "pops_any_uuid", "a92baeaf-5c48-41c0-8b48-e8b48a0dcb94", "author", "ChoGGi", "lua_revision", 249143, "code", {...
GUI.AddSpriteSheetItem("Mainmenubackground", "gui/textures/texturehudmainmenu.bctex", { TextureWidth = "256", TextureHeight = "256", UPixelOffset = "0", VPixelOffset = "136", UPixelScale = "200", VPixelScale = "120", AngleOffset = "0" }) GUI.AddSpriteSheetItem("MainmenuCircle_anim00", "gui/textures/textur...
cnt = redis.call('INCR', KEYS[1]) if cnt > ARGV[1] then return 1 end if cnt == 1 then redis.call('PEXPIRE', KEYS[1], ARGV[2]) end return 0
tusk_walrus_wallop_nb2017 = class({}) LinkLuaModifier( "modifier_tusk_walrus_wallop_nb2017", "modifiers/modifier_tusk_walrus_wallop_nb2017", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier( "modifier_tusk_walrus_wallop_enemy_nb2017", "modifiers/modifier_tusk_walrus_wallop_enemy_nb2017", LUA_MODIFIER_MOTION_HORIZONTAL ) ---...
require'nvim-web-devicons'.setup { override = { ['vim'] = { icon = '', color = '#3C8376', name = 'Vim' }, ['.vimrc'] = { icon = '', color = '#3C8376', name = 'Vimrc' }, ['.gvimrc'] = { icon = '', color = '#3C8376', name = 'Gvimrc' }, ...
Data.Input = { --No id ["FlashCtrl"] = -1, ["FlashScrollDown"] = -1, ["FlashScrollUp"] = -1, ["FlashCancel"] = -1, ["FlashHome"] = -1, ["Action1"] = 1, ["FlashLeftMouse"] = {1, 4}, ["FlashRightMouse"] = 2, ["FlashMiddleMouse"] = 3, ["FlashAlt"] = 62, ["ActionMenu"] = 110, ["CameraCenter"] = 111, ["CameraT...
json = require("cjson") Wrangler = require("init")() time = require("time") Wrangler:addFilter("id", function(self, object, name, value) return object.id == value end) Wrangler:addFilter("first_name", function(self, object, name, value) return object.first_name:match(value) ~= nil end) Wrangler:addFilter("last_n...
--startup.lua version="2.1.0" ip="192.168.254.72" -- setup I2c and connect display function init_i2c_display() -- SDA and SCL can be assigned freely to available GPIOs local sda = 6 local scl = 5 local sla = 0x3c print(" initializng I2c OLED display on pins "..sda.." and "..scl) ...
local compatibility = {} local event = require("__flib__.event") local constants = require("scripts.constants") local infinity_loader = require("scripts.entity.infinity-loader") function compatibility.add_cursor_enhancements_overrides() if remote.interfaces["CursorEnhancements"] and remote.call("CursorEnha...
--[[ Copyright 2019 Teverse @File core/client/cameraController.lua @Author(s) Jay --]] local controller = {} controller.camera = workspace.camera local target = nil controller.setTarget = function(t) target = t controller.camera.position = target.position + vector3(0,20,-50) controller.camera:lookAt(t...
--#if profiler -- profiler window -- usage: -- 1. require this file as `profiler` -- 2a. initialise stat labels with the color you want (default: white): -- profiler.window:fill_stats(color) -- then, each time you need to show the profiler, use: -- profiler.window:show() -- 2b. alternatively, use the la...
local function demarshal(value) local slen,val = string.match(value,"([0-9]+):(.*)") local nlen = tonumber(slen) local demarshal_name = string.sub(val,1,nlen) local demarshaller = KeyStore.demarshallers[demarshal_name] if demarshaller == nil then ScenEdit_SpecialMessage(ScenEdit_Pla...
-- bekiroj addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for i, player in pairs(getElementsByType("player")) do exports.mrp_anticheat:changeProtectedElementDataEx(player, "usingThisShop", false, false, true) end end) function setShopCurrentUser(shop, player) local oldS...
local ffi = require("ffi") --require ("compiler"); local Lib_table = ffi.load("openvswitch") local stringz = require("stringz") local json = require("ovs.lib.json"); ffi.cdef[[ struct table_style; /* Manipulating tables and their rows and columns. */ struct table { struct cell *cells; struct column *column...
function Func1(param1) print("Func2 begin.") Func2(param1 + 10) print("Func1 end.") return 30 end function Func2(value) print("Func1 begin.") --coroutine.yield(10, value) print("Func2 end.") end function add(a, b) return a + b end test = { a='123', b='456' } --print(concat(te...
function widget:GetInfo() return { name = "Alternate Chat Keys", desc = "Binds alt/shift+enter for ally/spec chat, alt+backspace for fullscreen toggle" , author = "", date = "", license = "Anyone who uses this widget has to email me a horse", layer = 0, enabled = true } end local binds={ ...
-- FiveM Heli Cam by mraes -- Version 1.3 2017-06-12 RegisterServerEvent('heli:spotlight') AddEventHandler('heli:spotlight', function(state) local serverID = source TriggerClientEvent('heli:spotlight', -1, serverID, state) end)
local F, C = unpack(select(2, ...)) tinsert(C.themes["FreeUI"], function() -- Dressup Frame F.ReskinPortraitFrame(DressUpFrame) -- F.Reskin(DressUpFrameOutfitDropDown.SaveButton) F.Reskin(DressUpFrameCancelButton) F.Reskin(DressUpFrameResetButton) -- F.StripTextures(DressUpFrameOutfitDropDown) -- F.ReskinDropDown...
return {'gogme','gogogirl','gogo','gogen','gogogirls'}
local Draw = require("api.Draw") local Gui = require("api.Gui") local I18N = require("api.I18N") local Input = require("api.Input") local IInput = require("api.gui.IInput") local InputHandler = require("api.gui.InputHandler") local SaveFs = require("api.SaveFs") local UiList = require("api.gui.UiList") local UiWindow =...
Auctionator.Selling.Events = { BagItemClicked = "bag_item_clicked", BagRefresh = "bag_refresh", RequestPost = "selling_request_post", RefreshHistory = "selling_refresh_history", AuctionCreated = "selling_auction_created", SellSearchStart = "sell_search_start", PriceSelected = "price_selected", RefreshSe...
local Fields, TestCase = require "luv.fields", require "luv.dev.unittest".TestCase module(...) local Field = TestCase:extend{ __tag = .....".Field", testAbstract = function (self) self.assertThrows(function () Fields.Field() end) end } local Char = TestCase:extend{ __tag = .....".Char", testSimple = function ...
print("10" + 1) print("10 + 1") --print("hello" + 1) -- ERROR (cannot convert "hello") --[[ Lua applies such coercions not only in arithmetic operators, but also in other places that expect a number, such as the argument to math.sin. ]] -- Conversely, whenever Lua finds a number where it expects a string, it...
--[[ Netherstorm -- Ethereum Nexus-Stalker.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- B...
--delphi memory search for given string. result is also a string for x64 bit longint 'simulation' function memFindString(target,startOffset) --create table memTable = {} --pass starting offset in first table field. starting offset also passed as string memTable[1] = startOffset for i=2,string.len(target) do --...
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Iron Hat"] = { type = "Helmet", subType = "Armour", socketLimit = 4, tags = { default = true, armour = true, helmet = true, str_armour = true, }, armour = { ArmourBase = 9, }, req = { str ...
if not socket then error("No socket.") end