content
stringlengths
5
1.05M
ENHANCE_X=350 ENHANCE_Y_3=300 ENHANCE_Y_15=480 ENHANCE_Y_30=660 ENHANCE_FUZZY_NUM=70 function main() mSleep(3000); -- snapshotScreen("/var/touchelf/x.bmp"); -- snapshotRegion("/var/touchelf/x1.bmp",528,70,548,110); -- snapshotRegion("/var/touchelf/x2.bmp",528,310,548,350); -- snapshotRegion("/var/...
return LoadFont("Common Normal") .. { Text=ScreenString("Feet"); BeginCommand=function(self) self:AddAttribute(5, {Length= 4, Diffuse=Color.Red}) end; };
-- This file is part of SUIT, copyright (c) 2016 Matthias Richter local BASE = (...) .. "." local suit = require(BASE .. "core") local instance = suit.new() return setmetatable({ _instance = instance, new = suit.new, getOptionsAndSize = suit.getOptionsAndSize, -- core functions setHovered = functi...
return { "001_200_to_210", }
HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Params.lua") local gravity = 100 local mingravity local maxgravity local mingravity_normal local maxgravity_normal local mingravity_low local maxgravity_low local delta = 0 local period local periodtimer = 0 local wdGameTicks = 0 local wdTTL = 0 ...
local tree_cb = require'nvim-tree.config'.nvim_tree_callback vim.g.nvim_tree_bindings = { { key = '<C-k>', cb = tree_cb('prev_sibling') }, { key = '<C-j>', cb = tree_cb('next_sibling') }, }
levels[15]={timeBetweenParticleCreation=150,numPortExplosionsWeight=150,numDiverterExplosionsWeight=50,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=75,numParticlesInPrisonWeight=75,weightBreakForTwoStars=400,weightBreakForThreeStars=600,background="3",particleSpeed=2,maxParticles=4,particlesToComplete=5,p...
package.path = package.path .. ";../../?.lua" local util = require("util.util") local cjson = require("cjson.safe") function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, {__index = _G.ngx}) _G.ngx = _ngx end describe('Busted unit testing framework', function() before_each(function() moc...
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua") local actions = dofile(minetest.get_modpath("more_chests") .. "/utils/actions.lua") local S = minetest.get_translator("more_chests") local function get_formspec(string) return "size[8,10]" .. default.gui_bg .. default.gui_bg_img .. ...
local keepScroll = false function onCreate() if getPropertyFromClass('ClientPrefs', 'downScroll') == true then keepScroll = true; elseif getPropertyFromClass('ClientPrefs', 'upScroll') == false then setPropertyFromClass('ClientPrefs', 'downScroll', true); end end function onDestroy() if keepScroll == false th...
-- Copyright (c) 2019 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local names = require "cello.names.init" for _ = 1, 100 do print(names.generate("human", "male")) end for _ = 1, 100 do print(names.generate("human", "female")) end
error("NYI: love.filesystem support") local fs = require("love.filesystem") assert(pcall(love.filesystem.init, ".")) assert(pcall(love.filesystem.setSource, "C:\\"))
local function transformBack(position, itemId, transformId) local item = Tile(position):getItemById(itemId) if item then item:transform(transformId) position:sendMagicEffect(CONST_ME_MAGIC_GREEN) end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.itemid ~= 7178 then re...
local computer = require("computer") local MineOSCore = require("MineOSCore") local icon, menu = args[1], args[2] menu:addItem(MineOSCore.localization.setAsWallpaper).onTouch = function() MineOSCore.properties.wallpaperEnabled = true MineOSCore.properties.wallpaper = icon.path MineOSCore.saveProperties() c...
-- debug function DumpComponent( comp ) for name,value in pairs(comp) do if type(value) == "function" then -- local info = debug.getinfo(value,"LnS") -- print(string.format(" %s = function - %s", name, info.source..":"..tostring(info.linedefined))) else if value and type(value) == "table" and value....
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- --------------------------...
-- WebChat example for lev by @kristate / @kristopher -- Based on NodeChat by @ry -- spin-up it up: ./build/lev ./examples/webchat/webchat.lua -- connect via a brower: http://127.0.0.1:9000/ local fs = lev.fs local os = require('os') local _m = require('math') local _t = require('table') local _s = require('string') l...
package.path = '../lib/?;../lib/?.lua;../bin/?.lua;'..package.path -- core require 'Runtime.Coredp' -- utils require 'utils.ConfHandler' require 'ProgressiveTernarization.Progress' package.path = os.getenv("LUA_PATH") require 'dp' package.path = '../lib/?;../lib/?.lua;'..package.path nninit = require 'nninit' requi...
object_building_kashyyyk_rock_kashyyyk_small_s02 = object_building_kashyyyk_shared_rock_kashyyyk_small_s02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_rock_kashyyyk_small_s02, "object/building/kashyyyk/rock_kashyyyk_small_s02.iff")
 local function ColorChanged(s, e) local c = s.SelectedColor print(string.format("Color changed: RGB: 0x%02x%02x%02x", c.R, c.G, c.B)) end this = Gwen.DockLayout.Create(Gwen.Canvas) hsvPicker = Gwen.HSVColorPicker.Create(this) hsvPicker.Dock = Gwen.Dock.Fill hsvPicker.HorizontalAlignment = Gwen.HorizontalAlignm...
-- Copyright 2016 Google Inc, NYU. -- -- 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 or agree...
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...
AddCSLuaFile() properties.Add( "statue", { MenuLabel = "Make Statue", Order = 1500, MenuIcon = "icon16/lock.png", Filter = function( self, ent, ply ) if ( !IsValid( ent ) ) then return false end if ( ent:GetClass() != "prop_ragdoll" ) then return false end if ( ent:GetNWBool( "IsStatue" ) ...
------------------------------------------------------------------------ --[[ CompositeObserver ]]-- -- Is composed of multiple observers ------------------------------------------------------------------------ local CompositeObserver = torch.class("dp.CompositeObserver", "dp.Observer") CompositeObserver.isCompositeObs...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- local testBalloon = false local testWAS = true local widget = require("widget") if (testWAS) then local wickeyappsto...
-- Copyright (C) Kong Inc. local access = require "kong.plugins.basic-auth.access" local kong_meta = require "kong.meta" local BasicAuthHandler = { PRIORITY = 1001, VERSION = kong_meta.version, } function BasicAuthHandler:access(conf) access.execute(conf) end return BasicAuthHandler
local yellowPillow = MoveEvent() yellowPillow:type("stepin") function yellowPillow.onStepIn(player, item, position, fromPosition) if not player or player:isInGhostMode() then return true end player:say("Faaart!", TALKTYPE_MONSTER_SAY) item:getPosition():sendMagicEffect(CONST_ME_POFF) return true end yellowPill...
local HeroChangedWeapon = class("HeroChangedWeapon") function HeroChangedWeapon:initialize(weapon) self.weapon = weapon end return HeroChangedWeapon
object_mobile_chirq_low_f_1 = object_mobile_shared_chirq_low_f_1:new { } ObjectTemplates:addTemplate(object_mobile_chirq_low_f_1, "object/mobile/chirq_low_f_1.iff")
fx_version 'adamant' game 'gta5' data_file 'DLC_ITYP_REQUEST' 'stream/decorations.ytyp' dependencies { 'inventory', } shared_scripts { '@grids/shared/grids.lua', 'shared/config.lua', 'shared/main.lua', 'decorations/*.lua', } client_scripts { '@utils/client/vectors.lua', '@utils/client/misc.lua', '@camera/cl...
return { Name = "kill"; Aliases = {"slay"}; Description = "Kills a player or set of players."; Group = "DefaultAdmin"; Args = { { Type = "players"; Name = "victims"; Description = "The players to kill."; }, }; }
--[[ RegionTrigger ------------- TouchEnded detection in the form of Region3s. Inherits Trigger. When using this class you'll typically want to add Parts to the Whitelist so only specific Parts will start up the Region loop. If you're looking for Region detection for a Player's Character, check out Cha...
local sh = require("shell") local fs = require("filesystem") local tasks = require("tasks") local driver = require("driver") local users = require("users") local filesystem = require("filesystem") tasks.getCurrentProcess().childErrorHandler = function(proc, err) local procType = "process" if proc.isService then pr...
ardour { ["type"] = "EditorAction", name = "Autotune Automation", license = "MIT", author = "David Healey", description = [[Inserts "correction" automation points for X42 Autotune plugin]] } function factory () local autotune_automation_input_values --Persistent variable (session lifespan) ...
package.path = package.path .. ";../?.lua" Object = require "lib/classic" require "obj/Totem" require "obj/WindParticle" WindTotem = Totem:extend() WindTotem.sprite = love.graphics.newImage("res/totem_wind.png") WindTotem.PLAYER_KNOCKBACK = 200 WindTotem.TOTEM_KNOCKBACK = 300 function WindTotem:new(name, coords, are...
local process = require("process") local shell = require("shell") local text = require("text") local tx = require("transforms") local sh = {} sh.internal = {} function sh.internal.isWordOf(w, vs) return w and #w == 1 and not w[1].qr and tx.first(vs,{{w[1].txt}}) ~= nil end local isWordOf = sh.internal.isWordOf ---...
MapOBBMax = Vector(0,0,0) MapOBBMin = Vector(0,0,0) MapCenter = Vector(0,0,-10390) MapBoarder = 0.1 SkyboxOBBMax = SkyboxOBBMax or Vector(0,0,0) SkyboxOBBMin = SkyboxOBBMin or Vector(0,0,0) SkyboxCenter = SkyboxCenter or Vector(0,0,0) ScanMap = function() local Cam = ents.FindByClass("sky_camera") local SkyBoxCent...
-- Frame local b = CreateFrame("Frame", nil, UIParent) b:SetSize(80, 10) b:ClearAllPoints() b:SetPoint("LEFT", PetFrameHappiness, "RIGHT", 32, 0) -- Status Bar b.bar = CreateFrame("StatusBar", nil, b); b.bar:SetWidth(76); b.bar:SetHeight(8); b.bar:SetPoint("LEFT", b, "LEFT", 2, 0); b.bar:SetMinMaxValues(0, 1...
--- Library for using usb4butia boards. -- This library interface with bobot library for -- accessing usb4butia-attached devices. It supports hotplug. -- There will be one object of this type for each bobot device. -- Bobot device's methods (it's api in the bobot terms) are -- available. -- @module bobot -- @alias dev...
----------------------------------------------------------------------------------------- -- -- fun.lua -- ----------------------------------------------------------------------------------------- -- corona local composer = require( "composer" ) local widget = require( "widget" ) local mui = require( "materialui.mui"...
dofile("../framework/framework.lua") SetupSolution("Tutorial17") dofile("tutorials.lua");
local t = Def.ActorFrame{} t[#t+1] = Def.Quad{ InitCommand = function(self) self:FullScreen() end } t[#t+1] = LoadActor("../_songbg.lua") t[#t+1] = Def.Quad{ InitCommand = function(self) self:xy(SCREEN_CENTER_X, SCREEN_HEIGHT):valign(1) self:zoomto(SCREEN_WIDTH,SCREEN_HEIGHT/8):fadetop(1) end } t[#t+1] = ...
Option = {} function Option:apply(v) self.__index = self v = v or nil if v == nil then is_valid = false else is_valid = true end local option = {_is_valid = is_valid, _value = v} return setmetatable(option, self) end function Option:is_valid() return self._is_valid ...
--[[ Copyright (c) 2015 gameboxcloud.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
local cache = require "luacheck.cache" local fs = require "luacheck.fs" local lfs = require "lfs" local sha1 = require "luacheck.vendor.sha1" setup(function() end) describe("cache", function() describe("get_default_dir", function() it("returns a string", function() assert.is_string(cache.get_defaul...
--[[ Bitmap font creator by Dante van Gemert main file Project resources: - UFO spec: http://unifiedfontobject.org/versions/ufo3/ - TTF info: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=IWS-Chapter08 - GUI lib: https://notabug.org/pgimeno/Gspot/wiki - UFO compiler: https://github.com/goog...
local methods = require("null-ls.methods") return { method = methods.internal.FORMATTING, generator = { fn = function(params, done) return done({ { text = params.content[1] == "first" and "sequential" or "second" } }) end, async = true, }, filetypes = { "text" }, }
local m = string.match local gsub = string.gsub require 'formes' require 'capabilities' require 'moves' require 'pokeExtras' local formCache = {} local regionCache = {} local evoCache = {} local nameLUT = {} local formeNames = loadFormesList('formesList.txt') function cacheRegionVariant(poke) local num = poke.dexNu...
-- Adapted from https://ms-jpq.github.io/neovim-async-tutorial/ local co = coroutine local function step(func, callback) local thread = co.create(func) local tick = nil tick = function(...) local ok, val = co.resume(thread, ...) if ok then if type(val) == 'function' then val(tick) els...
-------------------------------------------------------------------------- -- Ring-balancer. -- -- This balancer implements a consistent-hashing algorithm as well as a -- weighted-round-robin. -- -- This loadbalancer is designed for consistent hashing approaches and -- to retain consistency on a maximum level while dea...
function startsWith(s, x) return s:sub(1, #x) == x end function split(s, x) local t = {} for y in s:gmatch("([^" .. x .. "]+)") do table.insert(t, y) end return t end return function(me) return function(path) local place local places if startsWith(path, "./") then places = split(path:sub(3), "/")...
-- executes command as "admin" (* permission) local security = require("security") local shell = require("shell") local args, opts = shell.parse(...) if #args < 1 then io.stderr:write("Usage: sudo <command>\n") return end local cmd = args[1] table.remove(args, 1) local name = opts["user"] or opts["u"] or "admin" i...
-- -- Dressing Room Functions - Allows undress and target model for dressing room -- Copyright (C) 2018 Rachael Alexanderson -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided -- that the following conditions are met: -- -- 1. Redistributions of source ...
-- manage VipsOperation -- lookup and call operations local ffi = require "ffi" local bit = require "bit" local verror = require "vips.verror" local version = require "vips.version" local log = require "vips.log" local gvalue = require "vips.gvalue" local vobject = require "vips.vobject" local Image = require "vips.I...
modifier_spectre_ex_mobility_fear = class({}) if IsClient() then require("wrappers/modifiers") end Modifiers.Fear(modifier_spectre_ex_mobility_fear)
return function() return { { label = "Expression", command = "/insert/row/expression" }, { label = "Terminal", command = "/insert/row/terminal" }, { label = "Command-Line", command = "/insert/row/cli" } } end
return {'ark','arkansas','arke','arkesteijn','arkema','arken'}
RAMZA_ATTACK_HERO_JOB_POINT = 5 RAMZA_ATTACK_BUILDING_JOB_POINT = 5 RAMZA_ATTACK_ANCIENT_JOB_POINT = 5 RAMZA_ATTACK_CREEP_JOB_POINT = 1 RAMZA_USE_ABILITY_JOB_POINT = 5 RAMZA_KILL_BUILDING_JOB_POINT = 50 RAMZA_KILL_HERO_PER_LEVEL_JOB_POINT = 50 RAMZA_KILL_ANCIENT_JOB_POINT = 50 RAMZA_KILL_CREEP_JOB_POINT = 10 RAMZA_QU...
object_mobile_dressed_tatooine_opening_drixa = object_mobile_shared_dressed_tatooine_opening_drixa:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_opening_drixa, "object/mobile/dressed_tatooine_opening_drixa.iff")
if a then for _, v in ipairs(mylist) do print(v) end if b then print("done") end end
local io = require("io") local table_insert = table.insert local FileWriter = {} FileWriter.__index = FileWriter function FileWriter.new(f) local tb = {} tb.path = f tb.tableCount = 0 tb.cache = {} setmetatable(tb,FileWriter) return tb end function FileWriter:WriteLine(s) if not s th...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
-- Get Roblox services local ReplicatedStorage = game:GetService("ReplicatedStorage"); local Players = game:GetService("Players"); local ControllerService = game:GetService("ControllerService"); local RunService = game:GetService("RunService"); local ContextActionService = game:GetService("ContextActionService"); local...
return {'ebbe','ebben','ebbenboom','ebbenhout','ebbenhouten','ebbinge','ebbe','ebbing','ebbers','ebben','ebbeling','ebbelaar','ebbink','ebbelink','ebbenhorst','ebbekink','ebbenbomen','ebbes'}
local tiles = require("tiles") local setmetatable = setmetatable local tostring = tostring local print = print local type = type local string = string local table = table local ipairs = ipairs local pairs = pairs local unpack = unpack local min = math.min module('dawg') local DawgNode = {} DawgNode.__index = DawgNo...
--This file should have all functions that are in the public api and either set --or read the state of this source. local vim = vim local renderer = require("neo-tree.ui.renderer") local manager = require("neo-tree.sources.manager") local events = require("neo-tree.events") local M = { name = "example" } ---Navigate...
local function toboolean(val) val = tostring(val) return val == "1" or val == "true" end local function log_debug( ... ) local result = "" for _,v in ipairs(arg) do result = result .. " " .. tostring(v) end redis.log(redis.LOG_DEBUG, " - " .. result) end
require "Polycode/EventDispatcher" class "CoreServices" (EventDispatcher) function CoreServices:createInstance() local retVal = Polycode.CoreServices_createInstance(self.__ptr) end function CoreServices:Update(elapsed) local retVal = Polycode.CoreServices_Update(self.__ptr, elapsed) end function CoreServices:fi...
---@class ProfessionFactory.Profession : zombie.characters.professions.ProfessionFactory.Profession ---@field public type String ---@field public name String ---@field public cost int ---@field public description String ---@field public IconPath String ---@field public texture Texture ---@field public FreeTraitStack St...
local mode = redis.call('hget', @lock_key, 'mode'); if (mode == false) then redis.call('hset', @lock_key, 'mode', 'read'); redis.call('hset', @lock_key, @lock_id, 1); redis.call('set', @timeout_key .. ':1', 1); redis.call('pexpire', @timeout_key .. ':1', @expire); redis.call('pexpire', @lock_key, @e...
local assets = require 'src/common/assets' local dictionary = require 'src/common/dictionary' local scene = {} function scene.load() love.graphics.setColor(1, 1, 1) love.graphics.setFont(assets.textFont) love.graphics.setBackgroundColor(0, 0, 0) end function scene.draw() love.graphics.setFont(assets.textFont)...
filePath = 'C:\\Users\\nilph\\source\\repos\\Excel Data Import (MySql)\\Excel Data Import (MySql)\\bin\\Debug\\netcoreapp3.1\\File\\Test.xlsx' excelConfig = { path = filePath, sheet = 'Sheet1', startRow = 2 } data = { importData:MakeImportData('id', 'ID'), importData:MakeImportData('name', 'Name') } sys...
local K, _, L = unpack(select(2, ...)) if GetLocale() == "zhCN" then L["%s to dismount."] = "%s 下马." L["%s to leave the vehicle."] = "%s 离开载具." L["AP"] = "攻击强度:" L["AddOn Info Text"] = "|cffffff00插件配置文件支持以下命令|r\n\n|cff00ff00/settings dbm|r, 来应用设置 |cff00ff00DeadlyBossMods.|r\n|cff00ff00/settings msbt|r, 来应用设置 |cff0...
if not rq then rq = {} end rq.big_icons = {}
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- return { exts = {"luafx"}, lexer = wxstc.wxSTC_LEX_CPP, apitype = "glsl", sep = "%.", linecomment = "//", isfndef = function(str) local l local s,e,cap = string.find(str,"^%s*([A-Za-...
local Score = _G.ECS.Component(0) return Score
local HeroModule = require "module.HeroModule" local ItemHelper = require "utils.ItemHelper" local RoleRebornModule=require "module.RoleRebornModule"; local View = {} function View:Start(data) self.view = SGK.UIReference.Setup(self.gameObject); self:InitClick() self.order_list = {} if data.idx and data.idx == 2 t...
-- returns a buffer table local to a thread (no serialized) function torch.getBufferTable(namespace) assert(torch.type(namespace) == 'string') torch._buffer = torch._buffer or {} torch._buffer[namespace] = torch._buffer[namespace] or {} return torch._buffer[namespace] end function torch.getBuffer(namespac...
local lm = require "luamake" lm:import "../renderer/make.lua" if lm.LuaInclude == nil then error "need to define lua directory" end lm:source_set "source_effekseer_callback" { includes = { lm.LuaInclude }, sources = { "efkcallback.c", }, } lm:lua_dll "effekseer_callback" { de...
SILE.hyphenator.languages["lv"] = {}; SILE.hyphenator.languages["lv"].patterns = { "d4z", "d4ž", "a2i", "a2u", "i2e", "e2i", "u2i", "i2u", "o2i", "o2u", "e2u", ".vi1s2a.", ".vi1s2ā.", ".vi1s2i.", ".vi1s2os.", ".vi1s2u.", ".vi1s2iem.", "o1pī", "ū1rē", "i1ta", "ū1ga", "ē1žu", "ū1to", "ā1ni", "i1rē", "i1čo", "ā1bu", "o...
local initiative = Initiative:by_id(param.get("initiative_id")) local initiator = Initiator:by_pk(initiative.id, app.session.member.id) -- TODO important m1 selectors returning result _SET_! local issue = initiative:get_reference_selector("issue"):for_share():single_object_mode():exec() if issue.closed then slot.pu...
pico-8 cartridge // http://www.pico-8.com version 16 __lua__ --paddle padx = 52 pady = 122 padw = 24 padh = 4 --ball ballx = 64 bally = 64 ballsize = 3 ballxdir = 5 ballydir = -3 score = 0 lives = 5 function movepaddle() if btn(0) then padx -= 3 elseif btn(1) then padx += 3 end end function moveball() ...
local maxArraySize = 256 local mainLCDCustomDisplayValues = {} local output = {} for i = 1, maxArraySize do output[#output + 1] = string.format("fPropArray[%d] = new Int32JBoxProperty(\"/custom_properties/prop_array_%d\");", i - 1, i) end for k, output in pairs(output) do print(output) end
-- Example: 2D and 3D points point=object:create() function point:init(x, y) self.x=x self.y=y end function point:show() print('('..self.x..','..self.y..')') end p1=point:new(1, 2) p1:show() -- (1, 2) point3D=point:create() -- inherit from point function point3D:init(x, y, z) self.proto.init(self, x, y) -...
function XYZDrugsTable.Core.GetDataByClass(class) for k, v in ipairs(XYZDrugsTable.Config.Drugs) do if v.ents[class] then return v.ents[class] end end return false end
-------------------------------- -- @module Water -- @extend Sprite -- @parent_module cc -------------------------------- -- -- @function [parent=#Water] create -- @param self -- @param #string tex1 -- @param #string tex2 -- @param #string tex3 -- @param #size_table size -- @param #float hSpeed -- @param #float vSp...
dofile("table_show.lua") dofile("urlcode.lua") local urlparse = require("socket.url") local http = require("socket.http") local item_value = os.getenv('item_value') local item_type = os.getenv('item_type') local item_dir = os.getenv('item_dir') local warc_file_base = os.getenv('warc_file_base') local url_count = 0 lo...
-- ---------------------------------------------------------------------------- -- Rules to build wxWidgets' wxXRC binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua -- ---------------------------------------------------------------------------- -- -----------------------------------...
--- State machine local class = require "lib.middleclass" local StateMachine = class("StateMachine") --- Creates a state machine. -- @param object Table containing the functions -- @param default Table with the default function names. See addState. function StateMachine:initialize(object, default) self.object = o...
local local0 = 0.4 local local1 = 0.4 - local0 local local2 = 2.8 - local0 local local3 = 0.4 - local0 local local4 = 3.2 - local0 local local5 = 0.4 - local0 local local6 = 3.5 - local0 local local7 = 0.4 - local0 local local8 = 4.3 - local0 local local9 = 0.4 - local0 local local10 = 3.8 - local0 local local11 = 0.4 ...
local constants = require("bufferline.constants") ---@class NumbersFuncOpts ---@field ordinal number ---@field id number ---@field lower number_helper ---@field raise number_helper ---@alias number_helper fun(num: number): string ---@alias numbers_func fun(opts: NumbersFuncOpts): string ---@alias numbers_opt '"buffer...
include("shared.lua"); function ENT:Think() local dlight = DynamicLight( self:EntIndex() ); cam.Start3D( EyePos(), EyeAngles() ); for k, v in ipairs( player.GetAll() ) do if (v:Alive()) then if ( dlight and v == self.Owner ) then local lightVector = self:GetPos(); lightVector:Add(Vector(...
local _G = getfenv(0) local oGlow = oGlow local select = select local ATTACHMENTS_MAX_SEND = ATTACHMENTS_MAX_SEND local GetSendMailItem = GetSendMailItem local hooksecurefunc = hooksecurefunc local send = function(self, event) if(not SendMailFrame:IsShown()) then return end for i=1, ATTACHMENTS_MAX_SEND...
if SERVER then AddCSLuaFile() return end TFA.ClientsideModels = TFA.ClientsideModels or {} TFA.RemoveCliensideModel = function( ent ) if ent and ent.Remove then ent.Remove(ent) end ent = nil end TFA.RegisterClientsideModel = function(cmdl,wepv) TFA.ClientsideModels[ #TFA.ClientsideModels + 1 ] = { ["mdl"] = ...
--// German localization //-- local addon, ns = ... local L = ns.L if GetLocale() == "deDE" then -- optionpanel general (or used across multiple panels) L["module Options"] = "modul Optionen" L["Preview"] = "Vorschau" L["texture"] = "Textur" L["height"] = "Höhe" L["width"] = "Breite" L["PosX"] = "PosX" L["Po...
local utils = require ("utils") local socket = require "socket" local irc = require ("irc") local parser = require ("parser") local core = class () function core:new () --self.parser = parser () self.irc = irc (function (...)return self:listener (...) end) self.modules = {} self.commands = {} self.settings ...
local common = require "common" function add_user_token_to_header() local token = common.get_token() if common.is_empty(token) then ngx.status = ngx.HTTP_FORBIDDEN ngx.say('{}') ngx.exit(ngx.HTTP_OK) end -- Change this to use email once nurego provisions user in service now ngx.var.user_token ...
--- === cp === --- --- Core CommandPost functionality. local startTime = os.clock() local require = require local hs = _G.hs local logger = require "hs.logger" logger.defaultLogLevel = "verbose" local application = require "hs.application" l...
--- -- @module CmdrService -- @author Quenty local require = require(script.Parent.loader).load(script) local HttpService = game:GetService("HttpService") local PermissionService = require("PermissionService") local CmdrTemplateProviderServer = require("CmdrTemplateProviderServer") local Promise = require("Promise")...
hooksecurefunc("GossipFrameOptionsUpdate", function() local lastButtonIndex = #GossipFrame.buttons local lastButton = GossipFrame.buttons[lastButtonIndex] if lastButtonIndex > 1 and lastButton:GetText():find(PET_DISMISS) ~= nil then lastButton:SetPoint( "TOPLEFT", GossipFrame_GetTitleButton(lastBu...