content
stringlengths
5
1.05M
AuctionatorConfigSellingFrameMixin = CreateFromMixins(AuctionatorPanelConfigMixin) function AuctionatorConfigSellingFrameMixin:OnLoad() Auctionator.Debug.Message("AuctionatorConfigSellingFrameMixin:OnLoad()") self.name = AUCTIONATOR_L_CONFIG_SELLING_CATEGORY self.parent = "Auctionator" self:SetupPanel() end ...
env = require('test_run') test_run = env.new() test_run:cmd("push filter '(.builtin/.*.lua):[0-9]+' to '\\1'") -- gh-2025 box.savepoint s1 = nil s1 = box.savepoint() box.rollback_to_savepoint(s1) box.begin() s1 = box.savepoint() box.rollback() box.begin() box.rollback_to_savepoint(s1) box.rollback() engine = test_...
local Fs = require("api.Fs") local MapEntrance = require("mod.elona_sys.api.MapEntrance") local state = require("mod.test_room.internal.global.state") local Event = require("api.Event") local Log = require("api.Log") local function require_all_in(dir) return Fs.iter_directory_items(dir, "full_path") :map(Fs.c...
SkadaPerCharDB = { ["total"] = { ["healingabsorbed"] = 0, ["dispells"] = 9, ["ccbreaks"] = 1, ["time"] = 697, ["interrupts"] = 8, ["damage"] = 1704040, ["players"] = { { ["healingabsorbed"] = 0, ["class"] = "WARRIOR", ["damaged"] = { }, ["dispells"] = 0, ["role"] = "DAMAGER", ...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.delayTime = 0 ENT.range = 256 ENT.radiationamount = 1 ENT.geigerHeavy = {"geiger/heavy/geiger_heavy_1.wav", "geiger/heavy/geiger_heavy_2.wav", "geiger/heavy/geiger_heavy_3.wav", "geiger/heavy/geiger_heavy_4.wav", "geiger/heavy/geiger_...
local E, C, L, _ = select(2, shCore()):unpack() if C.main.autoLoot ~= true then return end ---------------------------------------------------------------------------------------- -- Loot roll confirmation (tekKrush by Tekkub) --------------------------------------------------------------------------------------...
function create(x, y, width, height) entity = getNewEntity("baseLuaEntity") sizeMultiplier = getGlobalValue("sizeMultiplier") setEntityX(entity, x * sizeMultiplier) setEntityY(entity, y * sizeMultiplier) addEntityValue(entity, "orientation", "bool") setEntityValue(entity, "orientation", true) ...
ITEM.name = "Soda Bottle" ITEM.model = "models/props_junk/garbage_plasticbottle003a.mdl" ITEM.hungerAmount = 8 ITEM.cookable = false ITEM.foodDesc = "A Pet Bottle of Soda." ITEM.price = 3 ITEM.quantity = 10
local uv = require 'luv' local helper = require'helper' local ssl = require 'luv.ssl' ----------------------------------------------- ---[[ local count = 0 local function setInterval (fn, ms) local handle = uv.new_timer() uv.timer_start(handle, ms, ms, fn) return handle end setInterval(function () print(os...
local rbxDebug = {} rbxDebug.traceback = debug.traceback rbxDebug.profilebegin = function() end rbxDebug.profileend = function() end -- debug.loadmodule will be added by createEnvironment since it needs access to -- the environment. return rbxDebug
FogVolume = { type = "FogVolume", --ENTITY_DETAIL_ID=1, Properties = { bActive = 1, VolumeType = 0, Size = { x = 1, y = 1, z = 1 }, color_Color = { x = 1, y = 1, z = 1 }, fHDRDynamic = 0, -- -1=darker..0=normal..1=brighter bUseGlobalFogColor = 0, GlobalDensity = 1.0, DensityOffset = ...
ITEM.ID = "bugbait"; ITEM.Name = "Antlion Pheromone Pod"; ITEM.Description = "A bit of an antlion guard that smells disgusting."; ITEM.Model = "models/weapons/w_bugbait.mdl"; ITEM.Weight = 1; ITEM.FOV = 7; ITEM.CamPos = Vector( 50, 50, 50 ); ITEM.LookAt = Vector( 0, 0, 0 ); ITEM.BulkPrice = 3500; ITEM...
-- add all elements of array `a' function add (a) local sum = 0 for i,v in ipairs(a) do sum = sum + v end return sum end
local _, XB = ... XB.Locale = {} local locale = GetLocale() function XB.Locale:TA(gui, index) if XB.Locale[locale] and XB.Locale[locale][gui] then if XB.Locale[locale][gui][index] then return XB.Locale[locale][gui][index] end end return XB.Locale.zhCN[gui][index] or 'INVALID STRING' end
-- Required by gamemode -- component list. comment out things to disable them -- require('components/filters/index') -- require('components/abilities/index') -- require('components/reflexfilters/index') -- require('components/minimap/index') -- require('components/creeps/index') -- require('components/points/index') -...
for i,v in pairs(file.list()) do print(i,v) end --assert(l1=="line 1\n") os.exit(0)
local component = require("component"); local computer = require("computer"); local fs = require("filesystem") function getFileFromUrl(url, path, overwrite) local continue = true if fs.exists(path) then if overwrite == true then continue = true else continue = false end end if continue ...
local ItemPurchaseSystem = dofile(GetScriptDirectory() .. "/constants/ItemPurchaseSystem") local ItemsToBuy = { "item_tango", "item_tango", "item_branches", "item_branches", "item_slippers", "item_slippers", "item_magic_stick", "item_recipe_magic_wand", --大魔棒7.14 "item_circlet", "item_recipe_wraith_band", "item_circl...
--[[ GD50 Legend of Zelda Author: Colton Ogden cogden@cs50.harvard.edu ]] EntityWalkState = Class{__includes = BaseState} function EntityWalkState:init(entity, dungeon) self.entity = entity self.entity:changeAnimation('walk-down') self.dungeon = dungeon -- used for AI control se...
--------------------------------- -- GLOBAL VARIABLES --------------------------------- local WIDGET_START_X = 173 local WIDGET_START_Y = 43 local WIDGET_WIDTH = 40 local WIDGET_HEIGHT = 24 local function layout() lcd.drawFilledRectangle(WIDGET_START_X, WIDGET_START_Y, WIDGET_WIDTH, WIDGET_HEIGHT, ERASE) lcd.drawR...
object_draft_schematic_weapon_tusken_elite = object_draft_schematic_weapon_shared_tusken_elite:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_tusken_elite, "object/draft_schematic/weapon/tusken_elite.iff")
demo_start_clock = nil demo_is_starting = true function demo_open_screen() gsplus = gs.GetPlus() gsplus:RenderInit(SCR_WIDTH, SCR_HEIGHT) end function demo_close_screen() if gsplus ~= nil then gsplus:RenderUninit() gsplus = nil end end function demo_init() frame_count = 0 logo_phase = 0 ...
--NOTE:session:ExpectNotification("notification_name", { argument_to_check }) is chanegd to session:ExpectNotification("notification_name", {{ argument_to_check }}) due to defect APPLINK-17030 --After this defect is done, please reverse to session:ExpectNotification("notification_name", { argument_to_check }) --------...
client_script 'afterStart_client.lua' server_script 'afterStart_server.lua'
-- ----------------------------------------- -- FlightFactor B757/767 Strobe Lights LUA Script -- Created by SGRA -- v1.0 24-Nov-2021 -- ----------------------------------------- if PLANE_ICAO == "B752" or PLANE_ICAO == "B753" or PLANE_ICAO == "B762" or PLANE_ICAO == "B763" then -- Defines the Landing Light DataR...
slot0 = class("GuildChatBubble", import(".ChatBubble")) slot0.init = function (slot0) slot0.nameTF = findTF(slot0.tf, "name_bg/name"):GetComponent("Text") slot0.face = findTF(slot0.tf, "face/content") slot0.circle = findTF(slot0.tf, "shipicon/frame") slot0.timeTF = findTF(slot0.tf, "time"):GetComponent("Text") sl...
local Mcts = require('Mcts') local Tree = require('Mcts.Tree') local Rule = require('Rule') local ThreadPool = require('ThreadPool') local ParallelMap = require('ThreadPool.ParallelMap') love.timer = require('love.timer') local m = {} local function checkNumIterations(cfg) cfg.numIterations = cfg.numIterations - 1 ...
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_rogue_spells", 10000) if not __exports then return end local __Scripts = LibStub:GetLibrary("ovale/Scripts") local OvaleScripts = __Scripts.OvaleScripts __exports.register = function() local name = "ovale_rogue_spells" local desc = "[7.0] Ovale: Rogue sp...
return { whitelist_globals = { ['.'] = { '_', 'love', } } }
function Strong(elem) return pandoc.SmallCaps(elem.c) end
ModifyEvent(-2, 2, 0, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2); ModifyEvent(11, 94, 1, 1, 109, -1, -1, 5294, 5294, 5294, -2, -2, -2); do return end;
local chatExpression_pin2_map = require("qnFiles/qnPlist/games/chatExpression_pin2"); chatExpress= { name="chatExpress",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignRight, { name="touchView",type=0,typeName="View",time=88137617,r...
local Candlestick = {} setmetatable(Candlestick, { __call = function(self) local item = { open = self.open, close = self.close, high = self.high, low = self.low, volume = self.volume } setmetatable(item, { __tostring = ...
-- SendCmpct Packet local packet = {} packet.name = "sendcmpct" packet.type = 22 packet.fields = { mode = ProtoField.uint8("handshake.sendcmpct.mode", "Mode", base.DEC), version = ProtoField.uint64("handshake.sendcmpct.version", "Version", base.DEC) } function packet.parse(pro...
local screen = require 'hs.screen' local drawing = require 'hs.drawing' local log = require'hs.logger'.new('ColorShade') local colorShade = {} colorShade.__index = colorShade colorShade.name = "ColorShade" colorShade.version = "0.1" colorShade.author = "Brad Parks" colorShade.homepage = "https://github.com/bradparks/...
if mods["Krastorio2"] then local matter = require("__Krastorio2__/lib/public/data-stages/matter-util") local silica_matter = { item_name = "silica", minimum_conversion_quantity = 10, matter_value = .65, energy_required = 2, only_deconversion = false, need_stabilizer = false, unlocked_by_t...
local skynet = require "skynet" local log = require "chestnut.skynet.log" local context = require "chestnut.agent.AgentContext" local REQUEST = require "chestnut.agent.request" local RESPONSE = require "chestnut.agent.response" local traceback = debug.traceback local assert = assert local login_type = skynet.getenv '...
local defaultdata = {Wallet = 8000, Bank = 0, Clothes = {}, Cars = {}, Property = {}, Inventory={}} local currentdatabuff = {Wallet = 0, Bank = 0, Clothes = {}, Cars = {}, Property = {}, Inventory={}} local NetIDBuffer = {} function FetchDiscordID(source) for k,v in pairs(GetPlayerIdentifiers(source))do ...
fprp.declareChatCommand({ command = "sleep", description = "Go to sleep or wake up", delay = 1.5 }); fprp.declareChatCommand({ command = "wake", description = "Go to sleep or wake up", delay = 1.5 }); fprp.declareChatCommand({ command = "wakeup", description = "Go to sleep or wake up", delay = 1.5 });
--- Actions with time like delay or get time info -- @submodule Actions local const = require("adam.const") local ActionInstance = require("adam.system.action_instance") local M = {} --- Trigger event after time elapsed. Trigger event is optional -- @function actions.time.delay -- @tparam number|variable seconds Am...
return { binary_bytes = request('binary_bytes'), binary_units = request('binary_units'), frequency = request('frequency'), general_number = request('general_number'), general_time = request('general_time'), }
--setfenv(1,_G) local meta = {} local co = setmetatable({},meta) _G.co = co -- todo -- error handler wrapper? -- select() polling support (epoll() please :c) -- co.make steal parameters -- ? local waitticks = {} local -- internal identifiers for error control SLEEP, CO_RET, SLEEP_TICK, CO_END, ...
ESX = nil local dataCache = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function reloadServerData() print("esx_business: Syncing businesses from database") dataCahe = {} for key,val in ipairs(MySQL.Sync.fetchAll('SELECT * FROM businesses;')) do dataCache[val["id"]]...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("process_xor_value") TestProcessXorValue = {} function TestProcessXorValue:test_process_xor_value() local r = ProcessXorValue:from_file("src/process_xor_1.bin") luaunit.assertEquals(r.k...
local PossessBarFrame = _G.PossessBarFrame if not PossessBarFrame then return end -------------------------------------------------------------------------------- -- Possess bar -- Lets you move around the bar for displaying possess abilities ----------------------------------------------------------------------------...
include("names") r = math.random(#zensko_ime_nom) ime = zensko_ime_nom[r] bank = math.random(289000) + 711000 car = math.random(199999) + 600001 salary = math.random(99990) + 100010 cost = math.random(39990) + 20010 rest = bank - car - cost + salary
function f(x) return x*5; end for i=1, f(5) do print(i); end for i=10,1,-1 do print(i); end for i=1,10 do print(i); end tbl = {"alpha", "beta", ["one"] = "uno", ["two"] = "dos"}; for key, value in pairs(tbl) do print(key, value); end
function dewPoint(data) node.egc.setmode(node.egc.ALWAYS) local c local a, b,temp, rh =17.27, 237.7, data.temp, data.rh/100 c=((a*temp)/(b+temp))+ln(rh) local dp = round((((b*c)/(a-c))*10)/10,2) c,a,b,temp,rh=nil,nil,nil,nil,nil return dp end function round(n, dec) node.egc.setmode(node.egc.ALWAYS) lo...
local coverage = require('charon.coverage') local test = {} test.should_return_a_table = function() local data = coverage.analyze("@lib/charon/coverage.lua") assert( type(data) == 'table' ) end test.should_return_a_total_coverage = function() local data = coverage.analyze("@lib/charon/coverage.lua") assert(ty...
objects = {} types = {} lookup = {} function lookup.__index(self, i) return self.base[i] end object = {} object.speed_x = 0; object.speed_y = 0; object.remainder_x = 0; object.remainder_y = 0; object.hit_x = 0 object.hit_y = 0 object.hit_w = 8 object.hit_h = 8 object.facing = 1 object.solid = true object.freeze = 0 f...
-- _PCC_SHALLOW_COPY function _PCC_SHALLOW_COPY(_PCC_t) local _PCC_t2 = {} for _PCC_k,_PCC_v in pairs(_PCC_t) do _PCC_t2[_PCC_k] = _PCC_v end return _PCC_t2 end -- END -- _PCC_SHALLOW_COPY function _PCC_NEW_MULTI_DIM_ARRAY(_PCC_dim) local MT = {}; for _PCC_i=0, _PCC_dim do MT[_P...
local greenCode = greenCode; local table = table; local pairs = pairs; --[[ Define the territory class metatable. --]] TERRITORY_CLASS = TERRITORY_CLASS or {__index = TERRITORY_CLASS}; function TERRITORY_CLASS:__call( parameter, failSafe ) return self:Query( parameter, failSafe ); end; function T...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taumila -- Starts and Finishes Quest: Tiger's Teeth (R) -- !pos -140 -5 -8 230 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/titles") require("scripts/globals/shop") require("scripts/globals/ques...
workspace "Shaderer" architecture "x86_64" startproject "Shaderer" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["GLFW"] = "3rdparty/GLFW/include" IncludeDir["Glad"] = "3rdparty/Glad/include" IncludeDir["ImGui"] = "3rdpart...
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
local args = { ... } local ui = args[1] assert(ui, 'Imevul UI library not found') local gfx = ui.lib.cobalt.graphics ---@class Bar : Object Basic "progress bar" style meter ---@field public value number ---@field public minValue number ---@field public maxValue number ---@field public color string ---@field public gra...
require 'torch' require 'nn' require 'cunn' require 'optim' require 'pl' local adversarial = {} function rmsprop(opfunc, x, config, state) -- (0) get/update state local config = config or {} local state = state or config local lr = config.learningRate or 1e-2 local alpha = config.alpha or 0.9 l...
return { id = "face_chill", price = 50, onSale = true, }
function PlayerManager:_dodge_T5_boost() local bonus = self:upgrade_value("player", "dodge_T5_boost") local stamina_regen = self:player_unit():movement():_max_stamina() * bonus.stamina local armor_regen = self:player_unit():character_damage():_max_armor() * bonus.armor mx_log_chat('self:player_unit():character_dam...
-- Function to convert a table to a string -- Metatables not followed -- Unless key is a number it will be taken and converted to a string function t2s(t) -- local levels = 0 local rL = {cL = 1} -- Table to track recursion into nested tables (cL = current recursion level) rL[rL.cL] = {} local result = {} do rL[...
require("sdurw") require("sdurws") function openpackage (ns) for n,v in pairs(ns) do if _G[n] ~= nil then print("name clash: " .. n .. " is already defined") else _G[n] = v end end end openpackage(sdurw) openpackage(sdurws) rwstudio = getRobWorkStudioInstance() -- load workce...
Class = require "lib.hump.class" vector = require "lib.hump.vector" SimpleParticle = require "game.particles.simpleParticle" Entity = require "entity" MindRayProjectile = Class{__includes = Entity, init = function(self, x, y, dx, dy) Entity.init(self, x, y) self.velocity = vector(dx, dy) self.type = "playerray"...
---@class DeepCoreStatePolicy local DeepCoreStatePolicy = {} ---@param previous_state_context table<string, any> ---@return table<string, any> function DeepCoreStatePolicy:on_enter(previous_state_context) end ---@param state_context table<string, any> function DeepCoreStatePolicy:on_update(state_context) end ---@par...
-- Dialogue for NPC "npc_jana" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_jana", "talked")) then DL:setRoot(1) else DL:setRoot(2) end if (not DL:isConditionFulfilled("npc_jana", "talked")) then DL:createNPCNode(1, 5, "DL_Jana_Hello") -- Hello there! You look like you're freezin...
srv = net.createServer(net.TCP) srv:listen(502, function(conn) local cc = function(data) if (data ~= nil and #data == 13) then print("TCP response: ", dataToString(data)) conn:send(data) end end conn:on("receive", function(sck, payload) --payload:gsub(".", f...
-- vim:sw=2 -- https://github.com/solutionroute/dotfiles/blob/master/config/nvim/lua/solutionroute/settings.lua -- -- Include in here only nvim-specific configuration not tied to or dependent on -- plugins; at the end; organizing plugin-specific settings in a relevant config/* file. local vim = vim local api = vim.api...
local mLibs = exports["meta_libs"] local progBar = (Config.UseProgBars and exports["progbars"] or false) local Vector = mLibs:Vector() local Scenes = mLibs:SynchronisedScene() local sceneObjects = {} local SlingNextFrame = false local MarketAccess = false local StopInfluence = false loc...
local config = {} function config.nvim_treesitter() vim.api.nvim_command('set foldmethod=expr') vim.api.nvim_command('set foldexpr=nvim_treesitter#foldexpr()') require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", highlight = { enable = true, }, textobjects = { sel...
-- SPDX-License-Identifier: MIT -- Copyright (c) 2019 oO (https://github.com/oocytanb) describe('Test cytanb_fake_vci', function () local RoundVector3 = function (vec, decimalPlaces) return Vector3.__new( vci.fake.Round(vec.x, decimalPlaces), vci.fake.Round(vec.y, decimalPlaces), ...
local mock = require "deftest.mock.mock" local unload = require "deftest.util.unload" local function wait_until(cb) local co = coroutine.running() timer.delay(0.01, true, function(self, handle, elapsed_time) if cb() then timer.cancel(handle) coroutine.resume(co) end end) coroutine.yield() end local func...
local AmbientSound local AmbientSoundTimer local SpottedBy = {} AddEvent("OnPackageStop", function() DestroySound(AmbientSound) DestroyTimer(AmbientSoundTimer) end) AddEvent("OnPackageStart", function() AmbientSound = CreateSound("client/sounds/chased.mp3", true) SetSoundVolume(AmbientSound, 0.0) ...
fx_version 'cerulean' game 'gta5' name 'template' client_script 'dist/client/client.js' server_script 'dist/server/server.js'
local Cuboid = assert(foundation.com.Cuboid) local ng = Cuboid.new_fast_node_box local Groups = assert(foundation.com.Groups) local FakeMetaRef = assert(foundation.com.FakeMetaRef) local is_table_empty = assert(foundation.com.is_table_empty) local is_blank = assert(foundation.com.is_blank) local data_network = assert(y...
--[[ desc: Vanish, A buff of vanish. author: Musoucrow since: 2018-9-30 alter: 2019-1-24 ]]-- local _Base = require("actor.buff.base") ---@class Actor.Buff.Vanish : Actor.Buff local _Vanish = require("core.class")(_Base) function _Vanish:Exit() if (_Base.Exit(self)) then self._entity.battle.dea...
require "ISUI/ISPanel" require "ISUI/ISButton" require "ISUI/ISInventoryPane" require "ISUI/ISResizeWidget" require "ISUI/ISMouseDrag" require "defines" ---@class CharacterInfoPage : ISPanel CharacterInfoPage = ISPanel:derive("CharacterInfoPage"); function CharacterInfoPage:initialise() ISPanel.initialise(self); ...
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- Description: unit test file for iptable ------------------------------------------------------------------------------- package.cpath = "./build/?.so;" describe("iptable.network(): ", function() expose("ipt: ", ...
bars = shader('Shaders/ZXSpectrumBars.mgfxo') title = text(_TEXT); function reset() x = 1920 i = 0 bombdone = false bombtime = 0 end function draw(time) bars.set("Time", time); bars.set("Rand", math.random(1, 100)); bars.on(); title.draw(); bars.off(); end
----------------------------------------- -- ID: 28540 -- Warp Ring -- Transports the user to their Home Point ----------------------------------------- require("scripts/globals/teleports") require("scripts/globals/status") ----------------------------------------- function onItemCheck(target) return 0 end funct...
local polled = false return Def.ActorFrame { InitCommand = function(self) self:x(26) if SL.IsEtterna then self:SetUpdateFunction( function() polled = false end ):SetUpdateFunctionInterval(0.05) end end, Def.Quad { BeginCommand = function(self) self:diffuse(color("#000a11")...
return { { effect_list = { { type = "BattleBuffFixAmmo", trigger = { "onAttach" }, arg_list = { damage_rate = 1, index = { 2 } } } } }, { effect_list = { { type = "BattleBuffFixAmmo", trigger = { "onAttach" }, arg_list = { damage_...
vim.opt.completeopt = { "menu", "menuone", "noselect" } -- Don't show the dumb matching stuff. vim.opt.shortmess:append("c") local cmp = require("cmp") -- TODO setup cmp highlights cmp.setup({ snippet = { expand = function(args) require("luasnip").lsp_expand(args.body) end, }, ...
cflags{ '-I $outdir', '-I $srcdir', '-I $srcdir/mi', '-I $srcdir/parse', '-I $srcdir/util', } yacc('gram', '$srcdir/parse/gram.y') build('copy', '$outdir/gram.h', '$outdir/gram.tab.h') lib('libparse.a', [[ $outdir/gram.tab.c parse/( dump.c err.c export.c fold.c infer.c names.c node.c specialize...
--ZFUNC-isabsolute-v1 local function isabsolute( path ) --> res --ZFUNC-rootprefix-v1 local function rootprefix( path ) local remote = path:match[[^//%w+/]] or path:match[[^\\%w+\]] if remote then return remote end local unix = path:sub( 1, 1 ) if unix == "/" then return unix end l...
--[[ Copyright (c) 2009, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > All rights reserved. ]] --[[ Generic Bar Frame Template ]] local _, Bartender4 = ... local Bar = CreateFrame("Button") local Bar_MT = {__index = Bar} local table_concat, table_insert, tostring, assert, pairs, min, max = table.conca...
#!/usr/bin/wpexec --[[ WP Virtual HSP/HFP mic This is a wireplumber standalone script or plugin that creates a virtual mic for every bluetooth device that supports both HSP/HFP and A2DP profiles. This virtual mic is automatically connected to the actual mic when it exists and the profile is automatically ...
local playsession = { {"rjdunlap", {14194}}, {"XaLpHa1989", {871}}, {"Ed9210", {343987}}, {"James_Hackett", {522444}}, {"Preums", {21565}}, {"adam1285", {3695}}, {"Dimon312", {28765}}, {"HYPPS", {262004}}, {"Cloudtv", {3133}}, {"Weizenbrot", {96983}}, {"jackazzm", {70063}}, {"yulingqixiao", {4898}}, {"bera...
local Zip_mt = {} local Zip = {} local status, ffi = pcall(require, "ffi") -- print(ffi.abi('le')) ffi.cdef([[ typedef struct __attribute__((packed)) { uint32_t header; // offset 0 uint16_t minVersion; // offset 4 uint16_t generalFlag; // offset 6 uint16_t compres...
-- ########################### -- -- THIS TEMPLATE IS CURRENTLY INCOMPLETE -- -- ########################### -- --- kitty transform, expects a table in the shape: -- -- @param colors { -- fg = "#000000", -- bg = "#000000", -- cursor_fg = "#000000", -- cursor_bg = "#000000", -- selection_fg = "#000000", -- s...
-- s-300pmu2 92h6e tr (truck) GT = {}; GT_t.ws = 0; set_recursive_metatable(GT, GT_t.generic_stationary); set_recursive_metatable(GT.chassis, GT_t.CH_t.STATIC); GT.chassis.life = 4; GT.visual.shape = "30h6_truck"; GT.visual.shape_dstr = "30h6_truck_d"; GT.visual.fire_pos[2] = 1; GT.snd.radarRotation = "RadarRotation...
local PlotScripts = {}; PlotScripts.__index = PlotScripts function PlotScripts:new() return setmetatable({ plots = { { {"Ele acorda sem sua mulher ao lado, vai até a cozinha...", "Põe dois pratos na mesa, mas não sente sua presença","De qualquer forma ele tem que trabalhar..."},...
object_tangible_loot_npc_loot_blue_wiring_generic = object_tangible_loot_npc_loot_shared_blue_wiring_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_blue_wiring_generic, "object/tangible/loot/npc/loot/blue_wiring_generic.iff")
--[=[ @class IKAimPositionPriorities ]=] local IKAimPositionPriorities = { DEFAULT = 0; LOW = 1000; MEDIUM = 3000; HIGH = 4000; } table.freeze(IKAimPositionPriorities) return IKAimPositionPriorities
local ADDON_NAME = "GamePadHelper_TooltipPrice" local ADDON_VERSION = 1.00 -- TODO: use LibPrice local COLOR_GAME = ZO_ColorDef:New("FFFFFF") local COLOR_TTC = ZO_ColorDef:New("EECA2A") local COLOR_TITLE = ZO_ColorDef:New("FFFFFF") local COLOR_DETAILS = ZO_ColorDef:New("B2B2B2") local PRICE_ICON = ZO_Currency_GetGa...
local function abs(n) return n<0 and -n or n end local function atLeastOne(n) return n>1 and n or 1 end local sethook = debug.sethook local function count(f, ...) local c = 0 sethook(function() c = c + 1 end, "c") f(...) sethook() return c end local function decrement(x) return x - 1 end local function id(x) ...
#!/usr/bin/env lua local cjson = require'cjson' local tinsert = table.insert local ev = require'ev' local websockets = require'websockets' local ws_ios = {} local context = nil local log = function(...) print('zbus-websocket-bridge',...) end local zm = require'zbus.member' local zbus_config = require'zbus....
--[[ Settings GUI Definitions Copyright 2018 okulo ]] local GC = GuildContributionsAddonContainer local CLASS = GC.Class() GC.SettingsGUIClass = CLASS function CLASS:Initialize( aDb ) self.Db = aDb self.LamWksp = GC.ADDON_NAME.."_LamWksp" self.PanelData = { type = "panel", name...
Class = require 'class' local player = Class{} function player:init (x, y, keyUp, keyDown) self.speed = 240 self.x = x self.y = y self.keyUp = keyUp self.keyDown = keyDown end function player:update (dt) if love.keyboard.isDown(self.keyUp) then self.y = self.y - dt*self.speed end if love.keyboar...
staticRuntime = "on" -- VS only. on -> MultiThreaded, off -> MultiThreadedDLL. workspace "Firefly" architecture "x86_64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}...
--------------------------------------------- -- Spoil -- -- Description: Lowers the strength of target. -- Type: Enhancing -- Utsusemi/Blink absorb: Ignore -- Range: Self -- Notes: Very sharp evasion increase. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/glob...
-- moreglass/init.lua moreglass = {} moreglass.BASENAME = "moreglass" moreglass.modpath = minetest.get_modpath(moreglass.BASENAME) local modpath = moreglass.modpath -- modpath pointer dofile(modpath.."/api.lua") -- run api dofile(modpath.."/glass.lua") -- load glass if not minetest.get_modpath("morelights") then do...