content
stringlengths
5
1.05M
-- Item local smallStreetLampItem = table.deepcopy(data.raw["item"]["small-electric-pole"]) smallStreetLampItem.name = "small-street-lamp" smallStreetLampItem.order = "a[energy]-a[small-street-lamp]" smallStreetLampItem.place_result = "small-street-lamp" -- Entity local smallStreetLampEntity = table.deepcopy(data.raw...
--[[ This is a module that contains timer functions that can be used to perform different kinds of timing operations. ]] local events = require "events" local timers = {} local timeManager = kf.TimeManager() local ruleMachine = kf.getRuleMachine() --[[ Creates an event timer, and performs the timerCallba...
local lstage = require 'lstage' local pool = require 'lstage.pool' local total = 0 local stage4=lstage.stage( function(name) local index = 0 for ix=0, 10000000 do index = index + 1 end total = total + 1 print("[TOTAL] "..total) end,2) local stage3=lstage.stage( function(name) local index =...
require "app.game.gg.gg" require "app.game.gg.loginserver"
local premakefile_dir = path.translate (os.getcwd ()) local root_dir = premakefile_dir function fold_left (f, zero, xs) local acc = zero for _, v in ipairs (xs) do acc = f (acc, v) end return acc end local vs_standard_preproc_defs = { "NOMINMAX" , "WIN32_LEAN_AND_MEAN" , "_CRT_SECU...
-- Copyright (C) 2020 KGHX <openwrt.ikghx.com> -- Licensed to the public under the GNU General Public License v3. module("luci.controller.frps", package.seeall) function index() if not nixio.fs.access("/etc/config/frps") then return end entry({"admin", "services", "frps"}, cbi("frps"), _("Frps")).dependent = tru...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua/CompMod_FileHooks.lua -- - Dragon -- Dont run from filehook calls on main menu. if not string.find(Script.CallStack(), "Main.lua") then -- Setup file hooks here -- Replace ModLoader.SetupFileHook("lua/Door.lua", "...
local vector = require "lib.hump.vector" local sprite = require "engine.sprite" local Level = require "engine.scenes.base" -- level 1, north city local NorthCity = Level:extend() function NorthCity:enter() -- initialize geometry and player position NorthCity.super.new(self, "scenes/north_city.csv", 2500, 2767...
local packer = require("packer") packer.use({ "voldikss/vim-floaterm", config = function() local wk = require("which-key") -- keymaps in normal mode wk.register({ t = { "<cmd>FloatermToggle<CR>", "Toggle terminal", noremap = true }, }, { prefix = "<leader>", }) -- keymaps in terminal mode wk.reg...
-- vim:sw=2:et: local api = vim.api local inspect = vim.inspect local fn = vim.fn local eval = vim.api.nvim_eval _TEST = true tree = require 'tree' function t_custom_column() if tree.custom.custom then tree.custom.custom = nil end tree.custom.column('icon , filename', { directory_icon='▸', opened_icon='▾', r...
#!/usr/bin/env ljwm -- Small wmutils wtf clone using ljwm local args = {...} if not args[1] then print("Usage: wtf <wid>") os.exit(1) end local xcb = require("xcb.wrapper") local xcbe = require("xcb.enums") local conn = xcb.connect() local win = conn:window(args[1]) conn:set_input_focus(win, xcbe.input_focus.POIN...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Delay = 7200000, Effects = {}, Image = "UI/Messages/Events/02_video_call_2.tga", Prerequisites = {}, ScriptDone = true, Text = T(886083767492, --[[StoryBit TheDoorToSummer_LetNoNobleDeed Text]] '"It ...
local settings_key_prefix = "a2x1_config_bits" .. "-" .. "data_raw_assembling_machine" .. "-" function __settings_startup__data_raw_assembling_machine(data, order) return data:extend( { { type = "int-setting", name = settings_key_prefix .. "crafting_speed", setting_type = "startup",...
include("/scripts/includes/consts.lua") include("/scripts/includes/skill_consts.lua") include("/scripts/includes/attributes.lua") costEnergy = 0 costAdrenaline = 0 activation = 2000 recharge = 4000 overcast = 0 range = RANGE_TOUCH effect = SkillEffectHeal effectTarget = SkillTargetSelf targetType = SkillTargetTypeNone...
--add_property( "lmod", "sticky") local root = "/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09" require("os") load("nixpkgs/16.09") load("imkl/11.3.4.258") load("intel/2016.4") load("openmpi/2.1.1")
class "ShaderRenderTarget" ShaderRenderTarget.SIZE_MODE_PIXELS = 0 ShaderRenderTarget.SIZE_MODE_NORMALIZED = 1 function ShaderRenderTarget:__getvar(name) if name == "id" then return Polycode.ShaderRenderTarget_get_id(self.__ptr) elseif name == "width" then return Polycode.ShaderRenderTarget_get_width(self.__ptr...
local eshield1 = scene:getObjects("eshield1"); local eshield1Spawned = {}; local gun1 = scene:getInstances("gun1"); local gun2 = scene:getInstances("gun2"); local gun3 = scene:getInstances("gun3"); local keeper1 = scene:getObjects("keeper1")[1]; local control1 = scene:getObjects("control1_ph")[1]:findPlaceholderCompone...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISPanel" ---@class ISVolumeBar : ISPanel ISVolumeBar = ISPanel:derive("ISVolumeB...
object_tangible_collection_col_gcw_city_imp_4 = object_tangible_collection_shared_col_gcw_city_imp_4:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_gcw_city_imp_4, "object/tangible/collection/col_gcw_city_imp_4.iff")
--jahcuscator v1.2 by poop sock#7521 & stummy#0001 print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOxl:;;;;codkkOkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkxxxxxxxxxxxxxxxxxxxxdddd") print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOk; .,cdkkkkkOkkkkkkkkkkkkkkkkkkkkkkkkkkkxxxxxxxxxxxxxxxxxxdddd") print("OO...
SWEP.Base = "draconic_gun_base" SWEP.Gun = "drc_snow_spv3ar_lumoria" SWEP.HoldType = "ar2" SWEP.Category = "Draconic: Halo Extras" SWEP.PrintName = "MA4E" SWEP.WepSelectIcon = "vgui/entities/drchalo_ma5d" SWEP.Manufacturer = "Misriah Armory" SWEP.InfoName = "Assault Rifle - Project Lumoria" SWEP.InfoDe...
-- Copyright 2021 Dhiraj Wishal -- SPDX-License-Identifier: Apache-2.0 ---------- Vulkan Backend project description ---------- project "VulkanBackend" language "C++" kind "StaticLib" systemversion "latest" cppdialect "C++20" staticruntime "on" flags { "MultiProcessorCompile" } targetdir "%{wks.location}/Bui...
elepm.register_craft_type("alloy", { description = "Alloying", inputs = 2, icon = "elepower_alloy_furnace.png", }) elepm.register_crafter("elepower_machines:alloy_furnace", { description = "Alloy Furnace", craft_type = "alloy", ele_active_node = true, tiles = { "elepower_machine_top.png", "elepow...
Control = { region = nil, key = nil } function Control:isChangeDirectionKey(key) return self.key == key end function Control:isChangeDirectionTouch(x, y) return self.region:contains(x, y) end function Control:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end
function tostring_r ( t ) local print_r_cache={} local function sub_print_r(str, t, indent) if (print_r_cache[tostring(t)]) then -- print(indent.."*"..tostring(t)) str = str .. "\t" .. indent.."*"..tostring(t) .. "\n" else print_r_cache[tostring(t)]=true if (type(t)=="table") then ...
-- Allows to reset if _STORMFOX_POSTENTITY then timer.Simple(2, function() hook.Run("StormFox2.InitPostEntity") end) end hook.Add("InitPostEntity", "SF_PostEntity", function() hook.Run("StormFox2.InitPostEntity") _STORMFOX_POSTENTITY = true end)
-- view logs -- local logs = require("dotos").getlogs() local tutils = require("textutils") local w, h = require("term").getSize() local printed = 0 for i=1, #logs, 1 do for _, line in ipairs(tutils.wordwrap(logs[i], w)) do print((line:gsub("^%[([%d:]+)%]", "\27[92m[\27[35m%1\27[92m]\27[39m"))) printed = pri...
modifier_fluid_engineer_salad_lunch_lua = class({}) function modifier_fluid_engineer_salad_lunch_lua:IsPurgable() return false end function modifier_fluid_engineer_salad_lunch_lua:DeclareFunctions() return { MODIFIER_PROPERTY_STATS_INTELLECT_BONUS } end function modifier_fluid_engineer_salad_lunch_lua:GetModifie...
-- Called when something is placed -- function somethingWasPlaced(event) -- If Tiles was placed -- if event.tile ~= nil or event.created_entity ~= nil and event.created_entity.name == "tile-ghost" then tilesWasPlaced(event) return end -- Get Values -- local entity = event.created_entity or event.entity or ev...
local ffiloaded, ffi = pcall ( require, "ffi" ) local Pool = require ( pathprefix .. ".pool" ) local Transform = require ( pathprefix .. ".transform" ) local pool local ShapeCircle = setmetatable ( { }, { __call = function ( class, ... ) return class.new ( ... ) end } ) ShapeCircle.__index = ShapeCircle if ffiloade...
local M = {} local filter = require "make4ht-domfilter" -- filters support only html formats function M.test(format) if format == "odt" then return false end return true end function M.modify_build(make) local process = filter {"joincolors"} make:match("html?$", process) return make end return M
local SimpleTree = class("SimpleTree") function SimpleTree:ctor() self.mParent = nil self.mChildren = nil self.mData = nil self.mNext = nil end function SimpleTree:Init(data) self.mData = data; end function SimpleTree:WayToRoot(func) if nil ~= self.mParent then self...
-- volume widget local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local volmon = require("monitors.volmon") local vol_widget_info = wibox.widget.textbox() local vol_widget = wibox.widget { { widget = vol_widget_info }, widget = wibox.container.margin, ...
local manual = ... if not Common_Skill_Check(attacker, _Skill, manual) then return end local enemys = FindAllEnemy() local list = {} local choose_list = Target_list(attacker, nil, nil, _Skill) local multiple_choose = false local focus = false -- [[ if attacker and attacker.game and attacker.game.attacker_player_co...
-- Packet buffering. push() takes arbitrarily chunked data, and -- push_packet() is called for each packet. local packetbuf = {} -- default implementation for convenience. override! function packetbuf:push_packet(data) io.stderr:write("packet: " .. data) end local function read_bigendian(str, n) local acc = 0...
object_tangible_loot_creature_loot_collections_aurebesh_tile_wesk = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_wesk:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_wesk, "object/tangible/loot/creature/loot/collections/aurebesh_tile_wesk.iff")
local run = function (data) for i, v in ipairs(data) do pwm.setup(v.io, 1000, 512) pwm.start(v.io) v.timer = tmr.create() v.timer:register(v.r * 800, tmr.ALARM_SINGLE, function (t) pwm.stop(v.io); t:unregister() end) v.timer:start() end end local stop = function (data) ...
MMS = {} MMS.Name = "MasterMerchantShim" MasterMerchant = {} MMGuild = {} local function OnAddOnLoaded(event, addonName) if addonName == MMS.Name then MMS:Initialize() end end function MMS:Initialize() EVENT_MANAGER:UnregisterForEvent(MMS.Name, EVENT_ADD_ON_LOADED) end -- We're actually gonna jus...
-- Heavily derived from `diffview.nvim`: -- https://github.com/sindrets/diffview.nvim/blob/main/lua/diffview/rev.lua -- local M = {} ---@class Rev ---@field type integer ---@field commit string ---@field head boolean local Rev = {} Rev.__index = Rev ---Rev constructor ---@param commit string ---@return Rev function R...
workspace "Lisa" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to root folder (solution directory) IncludeDir = {} IncludeDir["GLFW"] = "Lisa/vendor/GLFW/include" Inclu...
-- bring externally provided globals into local env explicitly local _G = GLOBAL local TheSim = _G.TheSim local TheNet = _G.TheNet -- file name to persist Discord webhook URL, all lower-case as per quasi-convention. local DISCORD_WEBHOOK_URL_FILE = "discord_webhook_url.txt" -- file name used by "Discord Death Announce...
{data={name="Orb", author="Magnus siiftun1857 Frankline"}, blocks={ {0x132e28, {-29.231, -0.004}, command={faction=1257}}, {0x132ee3, {11.192, 0.002}, bindingId=2}, {0x132e61, {30.676, 33.762}, -2.094}, {0x132e3a, {-17.675, -9.979}, 3.142}, {0x132e3a, {-20.562, -14.999}}, {0x132e5d, {-36.448, -...
ITEM.name = "Broken Leg Piece" ITEM.model = "models/Items/hevsuit.mdl" ITEM.width = 2 ITEM.height = 4 ITEM.desc = "A Piece of for an Artificer Armour \n<color=0, 0, 155>This piece is used to create the artificer armour only usable by Tactical Marines</color>" ITEM.category = "Armour" ITEM.faction = FACTION_TACMARINE
local flvk = flvk or {} local https = require("ssl.https") local ltn12 = require("ltn12") local dkjson = require("dkjson") local function to_vkvalues(table1) local result = {} for key,value in pairs(table1) do if type(value) == "number" then value = tostring(value) elseif type(value) == "boolean" ...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- luacheck: globals prosody.bare_sessions.?.roster local log = require "util.logger".init("rostermanage...
local Typer = require(script.Parent.Parent.Parent.Typer) local function copy(dictionary) local new = {} for key, value in next, dictionary do new[key] = value end return new end return Typer.AssignSignature(Typer.Table, copy)
AddCSLuaFile() SWEP.HoldType = "crossbow" if CLIENT then SWEP.PrintName = "H.U.G.E-249" SWEP.Slot = 2 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 54 SWEP.Icon = "vgui/ttt/icon_m249" SWEP.IconLetter = "z" end SWEP.Base ...
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
local _, Guildbook = ... local debugTypeToClassColour = { ['error'] = CreateColor(Guildbook.Data.Class.DEATHKNIGHT.RGB), ['func'] = CreateColor(Guildbook.Data.Class.HUNTER.RGB), ['event'] = CreateColor(Guildbook.Data.Class.ROGUE.RGB), ['comms_out'] = CreateColor(Guildbook.Data.Class.SHAMAN.RGB), ...
local familiarOnDeath = CreatureEvent("FamiliarDeath") function familiarOnDeath.onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified) local player = creature:getMaster() if not player then return false end local vocation = FAMILIAR_ID[player:getVocation():getBaseI...
function onCreate() addLuaScript('lua_characters/ronshag') setProperty('ronshag.x', -400) setProperty('ronshag.y', 150) addLuaScript('lua_characters/ronmatt') setProperty('ronmatt.x', -675) setProperty('ronmatt.y', 225) addLuaScript('lua_characters/bfbside') setProperty('bfbside.x', 1450) setProperty('bf...
function findPlayer(plr,cel) local target=nil if (tonumber(cel) ~= nil) then target=getElementByID("p"..cel) else -- podano fragment nicku for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), c...
DEFINE_BASECLASS( "base_brush" ) ENT.Spawnable = false ENT.AdminOnly = false ENT.DoNotDuplicate = true function ENT:Initialize() self:PhysicsInit( SOLID_NONE ) self:SetMoveType( MOVETYPE_NONE ) self:SetSolid( SOLID_BBOX ) self:SetNoDraw( true ) self:SetNotSolid( true ) self.DoNotDuplicate = true self.Pa...
local core = require "core" local common = require "core.common" local command = require "core.command" local config = require "core.config" local search = require "core.doc.search" local DocView = require "core.docview" local max_previous_finds = 50 local function doc() return core.active_view.doc end local pre...
-- Title: Pull Dashboard -- Author: Niels Voigt -- Date: 31.01.2020 -- Description: -- Copyright: Niels Voigt -- Licensing: ? PullDashboard = PullDashboard or {}; PullDashboardPerCharDB = PullDashboardPerCharDB or { Frame_myPoint = "CENTER", Frame_myRelativePoint = "CENTER", Frame_myXOfs = -...
local mapgen_chunksize = tonumber(minetest.get_mapgen_setting("chunksize")) -- For getting large regions that don't cross mapgen block boundaries -- For some reason, map chunks generate with -32, -32, -32 as the "origin" minp. To make the large-scale grid align with map chunks it needs to be offset like this. mapgen_h...
-- Warlock Raven.classConditions.WARLOCK = { ["No Pet!"] = { tests = { ["Player Status"] = { enable = true, inCombat = true, hasPet = false }, }, }, } Raven.warlockCreatures = { -- table of spells used to summon warlock creatures along with expected lifetimes [104317] = 22, -- hand of gul'dan (wild i...
package.loadlib("/usr/local/lib/lua/5.2/iuplua52.so", "*") package.loadlib("/usr/local/lib/lua/5.2/cdlua52.so", "*") package.loadlib("/usr/local/lib/lua/5.2/imlua52.so", "*")
local redis = require "resty.redis" local red = redis:new() local server = "redisdb" -- connect red:set_timeout(1000) -- 1 sec local ok, err = red:connect(server, 6379) if not ok then ngx.log(ngx.INFO, "Redis connection failed: ", err) ngx.say("Redis connection failed: ", err) return end local code = ngx....
//________________________________ // // NS2 Combat Mod // Made by JimWest and MCMLXXXIV, 2012 // //________________________________ // combat_Server.lua // sewleks framework Script.Load("lua/PreLoadMod.lua") // Load the script from fsfod that we can hook some functions Script.Load("lua/PathUtil.lua") Script...
-- indicate no memo-izing needed y:set_memo(false); z:set_memo(false); -- indicate that y,z need to be evaluated together conjoin({y, z}) -- z not fully evaluated assert(z:is_eov() == false) -- evaluate y when needed y:eval() -- z fully evaluated as a consequence of y eval assert(z:is_eov() == true)
class("Text", DisplayObject) { text = "", font = native.systemFont, fontSize = display.contentHeight * 0.05, color = new.Color {}, width = 0, create = function(self) self.view = display.newText { text = self.text, x = self.x, y = self.y, wi...
local topWidget = nil; local tabIndex = 1; local tabWidgets = {}; function onInit() -- Create a helper graphic widget to indicate that the selected tab is on top topWidget = addBitmapWidget("tabtop"); topWidget.setVisible(false); -- Deactivate all labels for n, v in ipairs(tab) do tabWidgets[n] =...
local playsession = { {"zarduhasselfrau", {177092}}, {"mewmew", {429230}}, {"wot_tak", {417162}}, {"Skybreaker", {230901}}, {"beranabus", {203244}}, {"KickassLee", {336392}}, {"Delqvs", {351993}}, {"purplerain", {243339}}, {"CustomSocks", {341968}}, {"XaLpHa1989", {305391}}, {"Jaskarox", {288563}}, {"PTP17"...
return require(script.Parent.Parent["roblox_testez@0.4.1"]["testez"])
minetest.register_node("epic:unstash_inv", { description = "Epic unstash inventory block", tiles = { "epic_node_bg.png", "epic_node_bg.png", "epic_node_bg.png", "epic_node_bg.png", "epic_node_bg.png", "epic_node_bg.png^epic_briefcase.png", }, paramtype2 = "facedir", groups = {cracky=3,oddly_breakable...
local ui = script.Parent local Client = ui.Parent local Common = game.ReplicatedStorage.Pioneers.Common local Roact = require(game.ReplicatedStorage.Roact) local UnitInfoLabel = require(ui.UnitInfoLabel) local Label = require(ui.Label) local Tile = require(Common.Tile) local SoundManager = require(Client.SoundManag...
hook.Add("VurtualAmmotypes","vammo_556x45", function() local tbl = table.Copy(kswep_default_ammo) tbl.vestpenetration=KSWEP_ARMOR_III tbl.dmgbase = 10 tbl.dmgvitalmin = 6 tbl.dmgvitalmax = 8 tbl.name = "vammo_556x45_m193" tbl.caliber = "vammo_556x45" tbl.printname = "5.56x45mm M193" tbl.projectiles = 1...
mAcl = {} function mAcl.init() mAcl.data = {} mAcl.data.acls = {} mAcl.data.acls.list = {} mAcl.data.acls.rights = {} mAcl.data.groups = {} mAcl.data.groups.list = {} mAcl.data.groups.content = {} mAcl.gui.init() cSync.addHandler("Acl.aclList", mAcl.sync.aclList) cSync.addHandler("Acl.groupList", mAcl.sy...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local LO = E:NewModule('Layout', 'AceEvent-3.0'); --Cache global variables --Lua functions --WoW API / Variables local CreateFrame = CreateFrame local UIFrameFadeIn, UIFrameFadeOut = UIFrameFadeIn, UIFrameFadeOut lo...
-- import local PathFinderModule = require 'candy.ai.PathFinder' local PathGraph = PathFinderModule.PathGraph local insert = table.insert ---@class PathGraphNavMesh2D : PathGraph local PathGraphNavMesh2D = CLASS: PathGraphNavMesh2D ( PathGraph ) :MODEL {} function PathGraphNavMesh2D:buildFromPolyPaths ( polyPaths )...
slot1 = class("Proxy", import("..observer.Notifier")) slot1.Ctor = function (slot0, slot1, slot2) if slot1 ~= nil then slot0:setData(slot1) end slot0.proxyName = slot2 or slot0.__cname or slot0.NAME end slot1.NAME = "Proxy" slot1.getProxyName = function (slot0) return slot0.proxyName end slot1.setData = func...
local L = LANG.GetLanguageTableReference("deutsch") -- GENERAL ROLE LANGUAGE STRINGS L[SUPERVILLAIN.name] = "Superschurke" L["info_popup_" .. SUPERVILLAIN.name] = [[Du bist ein Superschurke! Versuche ein paar Kristalle mit deinem Messter zu zerstören, um Credits zu verdienen! Das Entfernen der Kristalle entfernt auch ...
print("a")
local name; name = GetSpellInfo(125167); _,_,_,_,_,_,expires = UnitBuff("player",name); if expires then expires = expires-GetTime() if expires < 30 then expires= 1 else expires= 0 end else expires= 1 end
CodexDB["items"]["deDE-tbc"]={ [119]="Deprecated Rogue\'s Vest", [121]="Trapperstiefel", [143]="Monster - Shield, Stormwind Guard", [886]="Schwarzmetallkurzschwert", [997]="_", [1024]="_", [1027]="_", [1117]="Monster - Item, Fishing Pole", [1166]="_", [1167]="_", [1189]="_", [1193]="_", [1254]="Feuerstein", [1255]="_",...
Variable.g({ completion_matching_strategy_list = { 'exact', 'substring', 'fuzzy', 'all' }, completion_matching_ignore_case = true, completion_matching_smart_case = true, completion_trigger_character = { '.' }, completion_trigger_keyword_length = 1, completion_trigger_on_delete = true, completion_trigger_keyword_...
------------------------------------------------------------------------------- -- Declaring module ------------------------------------------------------------------------------- local ConnectionPool = {} ------------------------------------------------------------------------------- -- Declaring instance variables -...
object_tangible_collection_col_dust_durni_01 = object_tangible_collection_shared_col_dust_durni_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_dust_durni_01, "object/tangible/collection/col_dust_durni_01.iff")
--[[ Copyright (C) 2006-2007 Nymbia Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com > This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
#!/usr/bin/lua local json = require('json') file = 'guests.txt' kicked = 'kicked.txt' guests = {} cont = 0; function toJson(data, file) local x = io.open(tostring(file), 'a') x:write(json.encode(data)) x:close() end function fileWriter(data, file) local x = io.open(tostring(file), 'w') x:write(data) x:close()...
-- CSS 2.1 PROPERTY DEFINITIONS --[[ Value : legal values & syntax Initial : initial value Applies to : elements this property applies to Inherited : whether the property is inherited Percentages : how percentage values are interpreted Media : which media groups the property applies to ...
mhf = require("schema_processor") unistd = require("posix.unistd"); local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:seq_struct xmlns:ns1="http://test_example.com"> <one>1</one> <two>2</two> <three>3</three> <four>4</four> <three>3</three> <four>4</four> <three>3</three> <four>4</four...
BUFF.time = 30 BUFF.time_max = 120 if (CLIENT) then function BUFF:HUDExtraPaint(client, perc, hud, margin) if (LocalPlayer():HasBuff(self.uniqueID)) then local time = math.max(0, LocalPlayer():HasBuff(self.uniqueID).time - CurTime()) perc.textColor = color_white perc.y = perc.y - perc.h - margin hud:dr...
function love.conf (t) t.console = false t.window.width = 960 t.window.height = 540 t.window.fullscreen = true end
local roleStarTab = nil local starSkillCfg = nil local heroStarSkillConfig = {} local function GetStarEffect(id) if not starSkillCfg then heroStarSkillConfig = {} starSkillCfg = LoadDatabaseWithKey("star_type", "id") for _, v in pairs(starSkillCfg) do heroStarSkillConfig[v.role...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local BACKFLOWSHOPGOOD_PB = require("BackFlowShopGood_pb") module('BackFlowShopData_pb') BACKFLOWSHOPDATA = protobuf.Descriptor(); local BACKFLOWSHOPDATA_LASTUPDATETIME_FIELD = protobuf.FieldDescriptor(); local BACKFLOWSHOPDATA_GO...
--Copyright Pulse-Eight Limited 2017 function ON_PROPERTY_CHANGED.DeviceIPAddress(propertyValue) P8INT:SETUP() end function ON_PROPERTY_CHANGED.SkyBoxType(propertyValue) P8INT:SETUP() end function string.starts(String,Start) return string.sub(String,1,string.len(Start))==Start end
#!/usr/local/bin/lua tutil = require "TimeUtil" require "CommonFunc" --print(tutil:formatSecond(sec),tutil:getFormat(t)) local ret = string.gsub("ymd:hms","%A","") --print("ret=",ret) local secondTab={ y=31104000,m=2592000,d=86400,h=3600,i=60,s=1 } local dateTimeKeys={ y="year",m="month",d="day",h="hour",i=...
local hu_table = require "hu_table" local function add_to_table(t) local k = 0 for i=1,9 do k = k * 10 + t[i] end hu_table:add(k) end local function gen_table_sub(t, num) for j=1,16 do repeat local index if j <= 9 then if t[j] > 1 then ...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 11.5 SWEP.CaseLength = 22.8 SWEP.MuzVel = 209.973 SWEP.InternalParts = { [1] = {{key = "hbar"}, {key = "lbar"}}, [2] = {{key = "hframe"}}, [3] = {{key = "ergonomichandle"}}, [4] = {{key = "customstock"}}, [5] = {{key = "lightbolt"}, {key =...
slot2 = "ChargeScoreCcsView" ChargeScoreCcsView = class(slot1) ChargeScoreCcsView.onCreationComplete = function (slot0) slot5 = slot0 slot0.model.curTabIndexChangedSignal.add(slot2, slot0.model.curTabIndexChangedSignal, slot0.onTabIndex) slot3 = slot0 slot0.initEffect(slot2) end ChargeScoreCcsView.initEffect =...
--Thanks to Thomas Shaddack for optimizations - 20150707 ARe dns_ip=wifi.ap.getip() local i1,i2,i3,i4=dns_ip:match("(%d+)%.(%d+)%.(%d+)%.(%d+)") x00=string.char(0) x01=string.char(1) dns_str1=string.char(128)..x00..x00..x01..x00..x01..x00..x00..x00..x00 dns_str2=x00..x01..x00..x01..string.char(192)..string.char(1...
itemanimation = class("itemanimation") function itemanimation:init(x, y, i) self.x = x self.y = y self.i = i self.timer = 0 self.v = enemiesdata[self.i] end function itemanimation:update(dt) self.timer = self.timer + dt if enemiesdata[self.i]["directfromblock"] then table.insert(objects["enem...
#!/usr/bin/env snabb local app = require("core.app") local buffer = require("core.buffer") local config = require("core.config") local timer = require("core.timer") local pci = require("lib.hardware.pci") local intel10g = require("apps.intel.intel10g") local intel_app = require("apps.intel.intel...
return {'iade','iaden'}
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local lib = require("core.lib") local consts = require("apps.lwaftr.constants") local ntohs = lib.ntohs local htons = lib.htons local ethertype_ipv4 = consts.ethertype_...
do local function fib_prime(x, acc) if x <= 1 then return acc end return fib_prime(x - 1, acc * x) end (nil)(fib_prime(10, 1)) end
-- bitmasks local struct = require "vstruct" local io = require "vstruct.io" local m = {} function m.unpack(_, buf, width) -- luaJIT 2.0b7 generates incorrect code for this function otherwise, even -- with optimizations turned off if jit then jit.off(true, true) end local mask = {} local ...
local Timu = 0 local Dayy = 0 local thisPath = THEMEDIR().."/Graphics/Global Background/" local function DayNight(self) local this = self:GetChildren() Dayy = 1 - LoadModule("ColorTone.Nighty.lua")() this.DayBG:diffusealpha(Dayy) this.Stars:diffusealpha(scale(Dayy,0,1,1,0.25)) this.Cloud:diffuse(ScaleColor(Da...