content
stringlengths
5
1.05M
-- Picks out 'targets' from a stimulation stream -- this function is called when the box is initialized function initialize(box) dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua") state = 0 box:set_filter_mode(1); do_debug = false end -- this function is called ...
local result = {} local insert = table.insert local remove = table.remove local rcall = redis.call math.randomseed(tonumber(tostring({}):match('0x(.*)$'),16)) local fields = rcall('hkeys', KEYS[1]) for i=1, ARGV[1], 1 do if nil ~= next(fields) then local field = remove(fields, math.random(#fields)) ...
pfDB["units"]["data-turtle"] = { [16395] = { ["coords"] = { [1] = { 80.7, 60, 139, 120 }, [2] = { 25.4, 56.6, 141, 120 }, [3] = { 61.7, 74.1, 1519, 120 }, [4] = { 29.4, 60.5, 1537, 120 }, [5] = { 39.4, 46.7, 1657, 120 }, }, ["lvl"] = "55", }, -- Turtle WoW Stormwind NPC Loc...
local lure = require(select('1', ...):match(".-lure%.")..'init') -- -- Define Class -- local MouseEvent = lure.lib.upperclass:define('MouseEvent', lure.dom.Event) -- -- Left Mouse Button. -- property : MOUSE_BUTTON_LEFT { 0; get='public'; set='nobody'; type='number'; } -- -- Middle Mouse Button. -- ...
--[[ ########################################################## S V U I By: S.Jackson ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select...
local function ChangePhoto(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local Alli = DevAli:get("LaUrEnTEAM:Photo"..result.id_) if not result.profile_photo_ ...
box.cfg { listen = '0.0.0.0:3301'; io_collect_interval = nil; readahead = 16320; memtx_memory = 128 * 1024 * 1024; -- 128Mb memtx_min_tuple_size = 16; memtx_max_tuple_size = 128 * 1024 * 1024; -- 128Mb vinyl_memory = 128 * 1024 * 1024; -- 128Mb vinyl_cache = 128 * 1024 * 1024; -- 128Mb vinyl_max_tuple_size = 1...
-- Bootstrap package.path = package.path .. ";" .. "./?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/vendor/?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/lib/?.lua" .. ";...
include "./vendor/premake/premake_customization/solution_items.lua" include "Dependencies.lua" workspace "Blaze" architecture "x86_64" startproject "Blaze-Editor" configurations { "Debug", "Release", "Dist" } solution_items { ".editorconfig" } flags { "MultiProcessorCompile" } outputdir = "%{c...
x, y = 3, 4 print(x, y) --> 3 4 x, y = y, x -- swap print(x, y) --> 4 3
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 10, "version_minor", 5, }), }, "title", "Safari Info", "id", "ChoGGi_SafariInfo", "steam_id", "2428050982", "pops_any_uuid", "72136be6-4453-4f59-903f-4892...
local errorModel = "models/player/skeleton.mdl" local PANEL = {} AccessorFunc(PANEL, "animationTime", "AnimationTime", FORCE_NUMBER) local function SetCharacter(self, character) self.character = character if (character) then self:SetModel(character:GetModel()) self:SetSkin(character:GetData("skin", 0)) for...
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.2]mesh 2d render[parent:Render#render] --- ---@class Mesh2dRender Mesh2dRender = {} --- ---[3.2]constructor, 5 param --- --- @param arg0 FloatArray#floatarray --- @param arg1 FloatArray#floatarray --- @param arg2 int --- @param ...
local serialStaticNumberCounter = 0 -- // SimpleVehicle adds concrete vehicle methods to SimpleVehicle_3 local SimpleStatic = function() local self = {} -- // maintain unique serial numbers self.serialNumber = serialStaticNumberCounter serialStaticNumberCounter = serialStaticNumberCounter + 1...
local mat_rising = Material( "models/props_combine/stasisshield_sheet" ) --local mat_rising = Material( "models/shadertest/shader4" ) --local mat_rising = Material( "models/props_lab/Tank_Glass001" ) local mat_sparkle = Material("models/effects/comball_tape") --local mat_sparkle = Material( "models/props_combine/...
local mod = DBM:NewMod(971, "DBM-Highmaul", nil, 477) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14994 $"):sub(12, -3)) mod:SetCreatureID(77404) mod:SetEncounterID(1706) mod:SetZone() mod:SetModelSound("sound\\creature\\thebutcher\\VO_60_OGRERAID_BUTCHER_AGGRO.ogg", "sound\\creature\\theb...
local helpers = require("test.unit.helpers")(after_each) local itp = helpers.gen_itp(it) local ffi = helpers.ffi local eq = helpers.eq local mbyte = helpers.cimport("./src/nvim/mbyte.h") local charset = helpers.cimport('./src/nvim/charset.h') describe('mbyte', function() -- Array for composing characters...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) local power1 = Tile(Position({x = 32613, y = 32220, z = 10})) local barrel = Tile(Position({x = 32614, y = 32209, z = 10})) local wall = Tile(Position({x = 32614, y = 32205, z = 10})) local stone = Tile(Position({x = 32614, y = 32206, z = 10}...
net = require("net") function love.load() print("CLIENT") local address = "127.0.0.1:*" --just use a random port to connect local max_connections = 1 --only connecting to server, so only 1 connection needed local max_channels = 1 local in_bandwidth = 0 --unlimited bandwidth local out_bandwidth = 0 --u...
require("msa/Core") function FreazeObject(id) local obj = getObjectFromGUID(id); if obj ~= nil then obj.interactable = false; obj.tooltip = false; end end -- TODO : ipmrove string performance. function TableToString(table, precision) local text = "{" for key, value in pairs(table) ...
local M = {} M.config = function() O.lang.css = { virtual_text = true, formatter = { exe = "prettier", args = {}, }, } end M.format = function() local root_dir = require("project_nvim.project").find_lsp_root() or "" -- use the global prettier if you didn't find the local one local prettier_instance ...
--[[ settings.lua Welcome to the settings file, where you can set different parameters for the mod! This is a .lua file, so comment is needed. ]] --say that we are loading minetest.debug("M.I.L.A " ..mila.version..": Settings file found, loading...") -- 1 for realistic blood, 2 for blood trail, 3 for the mas...
local R = require "rigel" local SOC = require "generators.soc" local C = require "generators.examplescommon" local harness = require "generators.harnessSOC" local G = require "generators.core" local RS = require "rigelSimple" local SDF = require "sdf" local types = require "types" require "types".export() local Zynq = ...
local _, private = ... local RealUI = _G.RealUI --[[ Fonts SystemFont_Shadow_Med1 SystemFont_Shadow_Med1_Outline NumberFont_Outline_Med Fancy16Font ]] local LSM = _G.LibStub("LibSharedMedia-3.0") -- Russian + Latin char languages local LOCALE_MASK = LSM.LOCALE_BIT_ruRU + LSM.LOCALE_BIT_western LSM:R...
local path = mod_loader.mods[modApi.currentMod].scriptPath local clip = require(path .."libs/clip") local utils = require(path .."libs/utils") local Ui2 = require(path .."ui/Ui2") local DecoSet = require(path .."ui/deco/decoSet") local DecoBorder = require(path .."ui/deco/decoBorder") local this = Class.inherit(Ui2) ...
--[[ Goal: wrap long lines without breaking words. --]] local far2_dialog = require "far2.dialog" local M = require "lf4ed_message" local F = far.Flags local insert, concat = table.insert, table.concat -- iterator factory local function EditorBlock (start_line) start_line = start_line or editor.GetInfo().BlockSt...
slot0 = class("AutoLoader") slot1 = false slot2 = false slot3 = import("view.util.RequestPackages.LoadPrefabRequestPackage") slot4 = import("view.util.RequestPackages.LoadReferenceRequestPackage") slot5 = import("view.util.RequestPackages.GetSpineRequestPackage") slot6 = import("view.util.RequestPackages.GetPrefabReque...
skill_buff_twohandmelee_accuracy = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/skill_buff/skill_buff_twohandmelee_accuracy.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("skill_buff_twohandmelee...
import "client-functions" for key, new in pairs(CLuaFunctions) do _G[new] = _G[key] end import "client-example"
local class = require 'lib.middleclass' local Timer = require 'lib.timer' local Light = class ("Light") local imgCenter = love.graphics.newImage("assets/sprites/lightcenter.png") local imgEdge = love.graphics.newImage("assets/sprites/lightedge.png") local buffer = love.graphics.newCanvas() function Light:initialize(...
-- Agent script: server.lua moonagents.global_functions() local socket = require("socket") local s local cli = {} local function Close(c) log("%s: %s:%s disconnected", name_, c:getpeername()) socket_remove(c, 'r') c:close() cli[c]=nil end local function Stop() if s then socket_remove(s, 'r')...
function getColourPalette() return { "red", "blue", "green" } end
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Sasha Harp. --- DateTime: 026, 8/26/21 10:27 PM --- function setLocalCoords(x, y, z) local f local data if not fs.exists('/data/') then fs.makeDir('/data') data = {} data.localCoords = {} data.localCoord...
Proxy = module("lib/Proxy") Tunnel = module("lib/Tunnel") vRP = Proxy.getInterface("vRP") async( function() vRP.loadScript("dispatch", "client") vRP.loadScript("dispatch", "client-cmds") end )
local Game = {} function Game.inRectangle(UpperX, UpperY, LowerX, LowerY) local ActX = getPlayerX() local ActY = getPlayerY() if (ActX >= UpperX and ActX <= LowerX) and (ActY >= UpperY and ActY <= LowerY) then return true else return false end end function Game.getPokemonNumberWithMove(Move) for i=1, getTea...
phone = false phoneId = 0 RegisterNetEvent('camera:phone') AddEventHandler('camera:phone', function() CreateMobilePhone(phoneId) CellCamActivate(true, true) phone = true end) frontCam = false function CellFrontCamActivate(activate) return Citizen.InvokeNative(0x2491A93618B7D838, activate) end -- RemoveLoadin...
require("notifications") if GameRound == nil then GameRound = class({}) end --Liest Rundeninfos ein function GameRound:ReadRoundConfiguration(kv, roundNumber) self.roundNumber = roundNumber self.roundQuestTitle = kv.round_quest_title or "Kaputt" self.roundTitle = kv.round_title or "Kaputt" self.bo...
return PlaceObj("ModDef", { "title", "Fix Expedition Rocket Stuck Unloading", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_FixExpeditionRocketStuckUnloading", "steam_id", "1567028510", "pops_any_uuid", "5f3420c3-e1ef-4c36-a1f9-15580da5e3a5", "author",...
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details -- This file is based on Lua 5.x tests -- https://github.com/lua/lua/tree/master/testes print("testing if-else expressions") function True() return true end function False() return false end funct...
vol = 1 return { title = "xytone", width = 600, height = 600, }
local mod = DBM:NewMod("ToTTrash", "DBM-ThroneofThunder") local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 10977 $"):sub(12, -3)) mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START", "SPELL_AURA_APPLIED...
local lust = require 'test.lust' local describe, it, expect = lust.describe, lust.it, lust.expect local Chest = require 'entities.Chest' describe('Chest', function () it('instantiate', function () expect(Chest()).to.be.a('table') end) local data = { gold = { probability = 100,...
local easing = require("easing") local SPEED_VAR_PERIOD = 5 local SPEED_VAR_PERIOD_VARIANCE = 2 local BlowInWind = Class(function(self, inst) self.inst = inst self.maxSpeedMult = 1.5 self.minSpeedMult = .5 self.averageSpeed = (TUNING.WILSON_RUN_SPEED + TUNING.WILSON_WALK_SPEED)/2 self.speed = 0 self.windA...
local bank_impl = {} function bank_impl.get_bank_info(ctx, req) end function bank_impl.gold_from_bank(ctx, req) end function bank_impl.gold_to_bank(ctx, req) end function bank_impl.bank_trade_details(ctx, req) end return bank_impl
local function onComponentAvailable(_, componentType) local component = require("component") local tty = require("tty") local gpu, screen = component.gpu, component.screen local screen_address = screen.address if gpu.getScreen() ~= screen_address then gpu.bind(screen_address) end local depth = math.floor(2^(...
#!/usr/bin/env lua local String = require "tek.lib.string" local ui = require "tek.ui" local function getline(color, lnr) local line = "Line " .. lnr .. " " .. os.date() .. " - " .. os.date() .. "-------" line = String.new():set(line) line:setmetadata(color, 1, line:len()) return line end ui.Application:new { A...
spawn = { cooldownEnemy, cooldownAsteroid, last = { difficulty, unit } } function spawnerInit() spawn.cooldownEnemy = 90 +rnd(60) spawn.cooldownAsteroid = 60 + rnd(60) spawn.last = {difficulty, unit} end function spawnerUpdate() -- spawning player's remains in the previous attempts for c in all(G.carcas...
-- @Stratiz 2021 :) --- local ReplicatedStorage = game:GetService("ReplicatedStorage") --- local require = require(ReplicatedStorage.SharedModules:WaitForChild("RequireModule")) --- local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetS...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(2786) item:decay() Game.createItem(2677, 3, fromPosition) return true end
object_intangible_beast_bm_urnsoris = object_intangible_beast_shared_bm_urnsoris:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_urnsoris, "object/intangible/beast/bm_urnsoris.iff")
local global = vim.g local lsp = vim.lsp local vars = require('vars') local handlers = {} function handlers.toggle_tree() require('nvim-tree').toggle() end function handlers.handle_tree_open() require('bufferline.state').set_offset(vars.tree_width + 3, vars.tree_offset_label) require('nvim-tree').find_file(t...
local fs = require('fs') local modules = require('./modules') local discordia = require('discordia') discordia.extensions() local client = discordia.Client { cacheAllMembers = true, } local clock = discordia.Clock() clock:on('hour', function() if modules.pooper then modules.pooper(client) end end) client:once...
local create_cooked_fish_recipe = function(fish, result, amount) local recipe = { type = "recipe", name = "cooked-" .. fish .. "-recipe", category = "smelting", energy_required = 8, enabled = true, ingredients = {{ "raw-" .. fish, 1 }}, result = result, result_count = amount, local...
AddCSLuaFile() local vox_combine={} vox_combine[ "11-99officerneedsassistance" ]="npc/metropolice/vo/11-99officerneedsassistance.wav" vox_combine[ "404zone" ]="npc/metropolice/vo/404zone.wav" vox_combine[ "acquiringonvisual" ]="npc/metropolice/vo/acquiringonvisual.wav" vox_combine[ "administer" ]="npc/metropo...
-- Validation script for bootloader storage slots local slot0_enable = slc.config('SLOT0_ENABLE') local slot1_enable = slc.config('SLOT1_ENABLE') local slot2_enable = slc.config('SLOT2_ENABLE') local slot0_size = slc.config('SLOT0_SIZE') local slot1_size = slc.config('SLOT1_SIZE') local slot2_size = slc.config('SLO...
--- Handle keyboard input in Löve2d. -- keysetup -- action map<id, list<input> > -- axis map<id, list<{float,input}> > -- -- keyconfig map<id, list<input> > -- -- id string -- unique between action and axis -- -- input -- KeyConstant -- ":" .. Scancode -- "g:" .. GamepadButton -- "a:" ...
ETaxiConfig = ETaxiConfig or {} //Are we going to use a NPC or a Entity(prop) ETaxiConfig.NPCType = "ent" // Default = "ent"; Available choices are: ent, npc - They must be lowercased //If the booth is an ent we're going to use this model. ETaxiConfig.ENTModel = "models/props_equipment/phone_booth.mdl" // Defau...
local PluginRoot = script.Parent.Parent.Parent.Parent local Roact: Roact = require(PluginRoot.Packages.Roact) local ThemeProvider = require(script.Parent.Parent.ThemeProvider) local ResultsCanvas = require(script.Parent.ResultsCanvas) local ResultsList = Roact.Component:extend("ResultsList") function ResultsList:ren...
--[[ Copyright © 2021, Sjshovan (LoTekkie) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
data:extend { { type = 'custom-input', name = 'picker-beltbrush-corners', key_sequence = 'CONTROL + SHIFT + R' }, { type = 'custom-input', name = 'picker-beltbrush-balancers', key_sequence = 'CONTROL + SHIFT + B' }, { type = 'custom-input', ...
module ('content.triggers', package.seeall) require 'base.trigger' mouse_pressedleft = base.trigger:new {} function mouse_pressedleft:check (x, y) if self.visible then return self.visible:inside(lux.geom.point:new {x,y}) else return true end end
--[[ Operate turtle with enhanced commands ]] EnhancedTurtle = {} EnhancedTurtle.new = function() local obj = {} obj.pos = { x = 0, y = 0, z = 0 } obj.facing = 'north' return setmetatable(obj, {__index=EnhancedTurtle}) end EnhancedTurtle._turn_to_east = function(this) ...
--1 require("packet/BindMeta") if userData== nil then userData= BindMeta("userData") end require("packet/style") if ui_views == nil then ui_views=setmetatable({}, { __mode = 'v'}) BindMetaCreateFindGID(ui_views) end require("KuaCell") local backImg="https://s.momocdn.com/w/u/others/2020/07/13/1594631804940-back.png"...
local PANEL = {} function PANEL:Init() self:SetTitle('') self:SetDraggable(false) self:SetBackgroundBlur(true) self:SetDrawOnTop(true) self.text = vgui.Create('DLabel', self) self.text:Dock(TOP) self.text:SetText('') self.text:SizeToContents() self.text:SetContentAlignment(5) self.text:SetTextColo...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ERRORCODE_PB = require("ErrorCode_pb") module('QueryLotteryCDRes_pb') QUERYLOTTERYCDRES = protobuf.Descriptor(); local QUERYLOTTERYCDRES_ERRORCODE_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_COOLDOWN_FIELD = ...
-- ===================================================================================== -- Name: handlers.lua -- Author: Gurpreet Singh -- Url: https://github.com/ffs97/awesome-config/themes/thunderclouds/ ... -- ... handlers.lua -- License: The MIT License (MIT) -- -- Theme...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0173-Read-Generic-Network-Signal-data.md -- -- Description: Resumption of subscription for custom and RPC spec VehicleData for one -- ...
local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local timer local in_combat = false local award_queue = {} local function IsRLorML() if UnitInRaid("player") then local loot_method, ml_party_id, ml_raid_i...
local c = 0 local j = 0 local i = 0 while j < 10 do i = 0 while i < 1000000 do local b = 1 c = c + b i = i + 1 end j = j + 1 end print(c)
local config = require('config'); local gui = { }; local variables = { ['Disable All'] = { {}, ImGuiVar_BOOLCPP }, ['AutoPosition'] = { {}, ImGuiVar_BOOLCPP }, ['AutoWS'] = { {}, ImGuiVar_BOOLCPP }, ['AutoCast'] = { {}, ImGuiVar_BOOLCPP }, ['AutoHeal'] = { {},...
if (SERVER) then AddCSLuaFile("shared.lua") SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true end if (CLIENT) then SWEP.DrawAmmo = true SWEP.ViewModelFOV = 64 SWEP.ViewModelFlip = false SWEP.CSMuzzleFlashes = false SWEP.PrintName = "Police Ram" SWEP.Author = "Jake_1305" SWEP.Slot = 3 SWEP....
--- The keywords can optionally be used with another library by directly requiring this file --- @usage --- async, await = require "orderly/keywords" (MyPromiseLib, function(promise, handler) promise:Then(handler) end, function(promise, handler) promise:Catch(handler) end) local coroMap = {} local function resume(c...
require("class") require("util") StateKaleidoscope = class() function StateKaleidoscope:_init() self.canvas = love.graphics.newCanvas(love.graphics.getWidth(), love.graphics.getHeight()) self.size = 4 self.mousePosition = { x = 0, y = 0, } self.pressed = false self.random = false self.direction = { x =...
function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'jumpp3'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'jumpp'); --put in mods/sounds/ setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'silence'); --put in mods/music/ ...
-- TODO: Rewrite needed local var = ngx.var return function(self) self.ajax = var.http_x_requested_with == "XMLHttpRequest" end
---------------------------------------- Overview ------------------------------------------ -- Name: Investment Dashboard -- Notes: Copyright (c) 2017 Jeremy Gulickson -- Version: 1.6.08312017 -- Format: major.minor.mmddyyyy -- -- Description: ...
local checkluatype = SF.CheckLuaType local dgetmeta = debug.getmetatable local math_sqrt = math.sqrt local math_exp = math.exp local math_log = math.log local math_sin = math.sin local math_cos = math.cos local math_min = math.min local math_acos = math.acos local math_clamp = math.Clamp local math_max = math.max loca...
-- IupTree Example in IupLua -- Creates a tree with some branches and leaves. -- Two callbacks are registered: one deletes marked nodes when the Del key -- is pressed, and the other, called when the right mouse button is pressed, -- opens a menu with options. require( "iuplua" ) require( "iupluacontrols" )...
local _origin, _ang, _scale local _key, _mouse_input, _dist = KEY_E, false, 2.9 ^ 10 local panel_list = {} -- > Overwrite hovered function local PANEL = FindMetaTable( "Panel" ) panel_is_hovered = panel_is_hovered or PANEL.IsHovered --[[ function PANEL:IsHovered() -- > 3D2D support if panel_list[self] then ...
require "classes.constants.screen" AnchorPoints={} function AnchorPoints:new() local this = display.newGroup() local public = this local private = {} local background = display.newImageRect("img/backgroundAnchorPoints.png", 360, 570) local secondHand = display.newImageRect("img/clockHand.png", 190...
object_building_kashyyyk_decd_trillium_palm_tall02 = object_building_kashyyyk_shared_decd_trillium_palm_tall02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_decd_trillium_palm_tall02, "object/building/kashyyyk/decd_trillium_palm_tall02.iff")
function onCreatePost() makeLuaText('sicks', 'Sicks:' .. getProperty('sicks'), 200, 0, 375); makeLuaText('goods', 'Goods:' .. getProperty('goods'), 200, 0, 400); makeLuaText('bads', 'Bads:' .. getProperty('bads'), 200, 0, 425); makeLuaText('shits', 'Shits:' .. getProperty('shits'), 200, 0, 450); addLuaText('sicks'...
bus = { button = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() bus.window[1] = guiCreateWindow((screenW - 384) / 2, (screenH - 212) / 2, 384, 212, "SUSA-TRANS", false) guiWindowSetSizable(bus.window[1], false) guiWindowSetMovable(bus.window[1],false) guiSetVisible(bus.wi...
function BulletsMixin:GetBulletFalloffStart() return kBulletDamageFalloffStart end function BulletsMixin:GetBulletFalloffEnd() return kBulletDamageFalloffEnd end function BulletsMixin:GetBulletFalloffFraction() return kBulletDamageFalloffFraction end function BulletsMixin:ApplyBulletGameplayEffects(pl...
--- === CTRLESC === --- --- Rebind caps lock to escape when pressed alone, --- control modifier when pressed with other keys --- -- -- Almost none of this is original work, just combined some existing solutions -- See Readme for more info -- -- -- TODO -- Tests -- Docs -- Remove any utilities/functions speciifc to m...
function comparaison(nb_1,nb_2) return (nb_1 > nb_2) end local x = comparaison(5,3) local maTable = {1,5,8,3,0,2,6,7,9,4} print(table.concat(maTable)) print(unpack(maTable)) table.sort(maTable) print(table.concat(maTable)) print(unpack(maTable)) print(x)
-- for plain text output remove emph that gets turned to _word_ otherwise, and make strong become smallcap/uppercase --export ZBS=/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio --export LUA_PATH="./?.lua;$ZBS/lualibs/?/?.lua;$ZBS/lualibs/?.lua" --export LUA_CPATH="$ZBS/bin/?.dylib;$ZBS/bin/clibs53/?.dyli...
-- -- Addon _fiu_gui_TotAndcache_1.lua -- Author marcob@marcob.org -- StartDate 08/04/2017 -- local addon, cD = ... cD.sTOFrames = {} cD.sCACFrames = {} local zlFrames = {} local ILStock = {} local lastBGused = {} local tfS...
-- HTTP related patterns local _M = {} -- RFC 7230 local http_core = require "lpeg_patterns.http.core" _M.OWS = http_core.OWS _M.RWS = http_core.RWS _M.BWS = http_core.BWS _M.chunk_ext = http_core.chunk_ext _M.comment = http_core.comment _M.field_name = http_core.field_name _M.field_value = http_core.field_value _M....
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local RISKMAPINFOS_PB = require("RiskMapInfos_pb") local ROLERISKINFO_PB = require("RoleRiskInfo_pb") module('RiskInfo2DB_pb') RISKINFO2DB = protobuf.Descriptor(); local RISKINFO2DB_INFOS_FIELD = protobuf.FieldDescriptor(); local ...
--[[ desc:支付服务 auth:Carol ]] local class = require("class") local super = require("service_super") local skynet = require("skynet.manager") local sharedata = require("skynet.sharedata") local queue = require("skynet.queue") local cs = queue() ---@class service_payment:service_super @服务基类 local service = class...
local fs = _G.fs local function deleteIfExists(path) if fs.exists(path) then fs.delete(path) print("Deleted outdated file at: "..path) end end -- cleanup outdated files deleteIfExists('sys/apps/shell') deleteIfExists('sys/etc/app.db') deleteIfExists('sys/extensions') deleteIfExists('sys/network') deleteIfE...
Panel = g_panel_mgr.new_panel_class('editor/dialog/uieditor_edit_bezier_action') SetPositionCommand = CreateClass() function SetPositionCommand:__init__(panel, target, position, positionFormat, lastPosition, lastPositionFormat) self.panel = panel self.target = target self.currPosition = position self.currPosition...
modifier_sniper_headshot_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sniper_headshot_lua:IsHidden() return true end function modifier_sniper_headshot_lua:IsPurgable() return false end -----------------------------------------...
local Block={} function Block:new(x, y, w, h) local init={ x=x or nil, y=y or nil, w=w or nil, h=h or nil } return setmetatable(init, {__index=self}) end function Block:draw() lg.rectangle("fill", self.x-self.w/2, self.y-self.h/2, self.w, self.h) end function Block:update(dt) end return Block
-- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.shairplay", package.seeall) function index() if not nixio.fs.access("/etc/config/shairplay") then return end local page = entry({"admin", "services", "shairplay"}, cbi("sh...
BuildEnv(...) ApplicantPanel = Addon:NewModule(CreateFrame('Frame', nil, ManagerPanel), 'ApplicantPanel', 'AceEvent-3.0', 'AceTimer-3.0') local function _PartySortHandler(applicant) return applicant:GetNumMembers() > 1 and format('%08x', applicant:GetID()) end local APPLICANT_LIST_HEADER = { { key ...
#!/usr/bin/env tarantool -- gh-4231: run box_load_and_execute() (it is box.execute value -- before box will be loaded) in several fibers in parallel and -- ensure that it returns correct results (i.e. that the function -- waits until box will be fully configured). -- -- The test can be configured to call box.execute()...
--[[ ╔════════════════════════════════════╗ ║ Settings for windwp/nvim-autopairs ║ ╚════════════════════════════════════╝ --]] require("nvim-autopairs").setup { }
local Studio = settings().Studio local t = require(script.Parent:FindFirstChild("t")) --- local Themer = {} local syncedObjects = {} local colorSpecifierInterface = t.union( t.enum(Enum.StudioStyleGuideColor), t.wrap(function(value) local guideColor, guideModifier = value[1], value[2] local...