content
stringlengths
5
1.05M
require "app.uicommon.WADemoNaviLayer" WADemoVKGiftLayer = class("WADemoVKGiftLayer", function() local layer = WADemoNaviLayer:new() return layer end) function WADemoVKGiftLayer:ctor() self:setNaviTitle("VK礼物") local button_1 = ccui.Button:create() button_1:setTitleText("Friends In Game") ...
return { id = 1, count = 10, }
window = {} game = {} bgm = {} img = {} offsetx = {} offsety = {} x = {} y = {} snowman = {} crosshair = {} snowball = {} function love.load() bgm[0] = love.audio.newSource("assets/bgm1.ogg","stream") bgm[1] = love.audio.newSource("assets/bgm1.ogg","stream") bgm[2] = love.audio.newSource("assets/bgm1.ogg","strea...
--[[local decode = require(script.Parent.MeshClass.ObjDecode) decode:Decode(script.Parent.MeshFiles.Plane)]] local Mesh = require(script.Parent.MeshClass) local mesh = Mesh.new() mesh.scale = 1--Vector3.new(5,10,5)--5 mesh.origin = CFrame.new(0,5,0)-- * CFrame.Angles(0,0,math.rad(90)) --mesh:LoadFromSource(script.Par...
local awful = require('awful') local gears = require('gears') local ruled = require('ruled') local beautiful = require('beautiful') local client_keys = require('configuration.client.keys') local client_buttons = require('configuration.client.buttons') ruled.client.connect_signal( 'request::rules', function() -- Al...
--マスク・チェンジ Mask Change Emergency function c21143945.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetCondi...
--- The init. -- This module is already loaded as global `dslib`. -- Other modules can be loaded via `dslib.mrequire`. -- @module dslib local IE = minetest.request_insecure_environment() local has_IE = IE ~= nil dslib = {} local dslib_version = "0.3.0" dslib.version = dslib_version dslib.internal = {} if has_IE the...
assert(loadfile("debug.lua"))() assert(loadfile("lib_art.lua"))() local battle local menu local function ReturnToMenu() if menu then Command.Environment.Destroy(menu) menu = nil end if battle then Command.Environment.Destroy(battle) battle = nil end menu = Command.Environment.Create(...
local StatSheet = require(script:GetCustomProperty("StatSheet")) local COMPONENT = script:GetCustomProperty("COMPONENT"):WaitForObject() --------------------------------------------------------------------------------------------------------- local OWNER = nil while not OWNER do Task.Wait() for _,player in ip...
AddCSLuaFile() //Module starts here... module("pk_pills",package.seeall) version="#160426" // //Load files // file.CreateDir("pill_config") local restrictions= ("\n"):Explode(file.Read("pill_config/restrictions.txt") or "") local locked_perma={} local locked_game={} for k,v in pairs(util.KeyValue...
-- -- Copyright 2013-2014 John Pormann -- -- 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 l...
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "安全第一!", init_effect = "", time = 0, color = "red", picture = "", desc = "", stack = 1, id = 12290, icon = 12290, last_effect = "", effect_list = { { type = "BattleBuffField", trigger = {}, arg_list = { buff_id =...
ITEM.name = "Stone Hatchet" ITEM.description = "A sturdy stick with a sharpened stone attached to it. It can be used for breaking something or someone." ITEM.model = "models/weapons/yurie_rustalpha/wm-stonehatchet.mdl" ITEM.class = "tfa_rustalpha_stone_hatchet" ITEM.weaponCategory = "melee" ITEM.width = 1 ITEM.height =...
local L, this = ... this.title = "Grouped Binding" this.version = "1.0" this.status = "testing" this.desc = "Used to create data bindings" local lcore = L.lcore local oop = lcore.utility.oop local grouped_binding grouped_binding = oop:static() { construct = function(self, target, method) local internal if (type(...
#!/usr/bin/env tarantool box.cfg{ vinyl_cache = 15 * 1024, -- 15K to test cache eviction } require('console').listen(os.getenv('ADMIN'))
local nn = require 'nn' require 'cunn' require 'cudnn' local Convolution = cudnn.SpatialConvolution local Avg = cudnn.SpatialAveragePooling local ReLU = cudnn.ReLU local Max = nn.SpatialMaxPooling local function createModel(opt) local depth = opt.depth local iChannels local function basicblock(n, stride) ...
// Purchase flags PurchaseFlags = SS.Plugins:New("PurchaseFlags") // Store all flags PurchaseFlags.List = {} // Add a flag to the list function PurchaseFlags.Add(Flag, ID, Cost, Description, Function) local Friendly = Flag Flag = string.lower(Flag) PurchaseFlags.List[Flag] = {Cost, ID, Friendly, Description...
return function(c, s, cs) -- 'simrat39/symbols-outline.nvim' return { {'FocusedSymbol', c.yellow, c.none, s.bold}, } end
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
-- infinite statusline on the earth and they all sucks. -- will write my own statusline which will called roshniline
Main = {} --[[ Functions: Main ]]-- function Main:UseItem(item, slot, cb) local settings = Config.Items[item.name] if not settings then return end -- Get/check the vehicle. local ped = PlayerPedId() local vehicle = GetVehiclePedIsIn(ped) if not DoesEntityExist(vehicle or 0) or GetPedInVehicleSeat(vehicle, -1) ...
local filter = EasyDestroyFilterCriteria:New("Item ID", "id", 20) function filter:Initialize() -- We create the frame here, we'll leave the details on size/anchors to the Filters window. self.frame = self.frame or CreateFrame("Frame", "EDFilterItemID", self.parent, "EasyDestroyEditBoxTemplate") self.frame....
local K, C = unpack(select(2, ...)) local Module = K:NewModule("Skins", "AceEvent-3.0") local _G = _G local pairs = pairs local type = type local hooksecurefunc = _G.hooksecurefunc local IsAddOnLoaded = _G.IsAddOnLoaded local NO = _G.NO Module.SkinFuncs = {} Module.SkinFuncs["KkthnxUI"] = {} function Module:StatusB...
-- contrib/netcfg.lua -- Copyright (C) 2010 Radu A. <admiral0@tuxfamily.org> -- Copyright (C) 2010 Adrian C. (anrxc) <anrxc@sysphere.org> -- Copyright (C) 2012 Arvydas Sidorenko <asido4@gmail.com> -- -- This file is part of Vicious. -- -- Vicious is free software: you can redistribute it and/or modify -- it under th...
--- --- __init__.lua --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- ASSETS = {} ASSETS.tex = { pixel = ASSETS_PATH .. 'pixel.png', } ASSETS.font = { ascii1 = ASSETS_PATH .. 'font\\ascii_1.fnt', ascii2 = ASSETS_PATH .. 'font\\ascii_2.fnt', ascii3 = ASSETS_PATH .. 'font\\a...
minpac.add('tpope/vim-fugitive', {type = 'opt'})
local Stages = { } local StagesArray = { } local States = require("States") local EventSys; function Stages.SetEvent(event) EventSys = event print("CAMERA IS:",lib_Camera) end function Stages.new(id) if StagesArray[id] then return StagesArray[id] end local map = States.new(id) map.Size = Vector2.new(1000, 1000) ...
local L = Auctionator.Locales.Apply local waitingForPricing = false -- Auctionator.Config.Options.VENDOR_TOOLTIPS: true if should show vendor tips -- Auctionator.Config.Options.SHIFT_STACK_TOOLTIPS: true to show stack price when [shift] is down -- Auctionator.Config.Options.AUCTION_TOOLTIPS: true if should show auctio...
function Auctionator.Search.GetEmptyResult(searchTerm, index) -- Remove "" from exact searches so it sorts properly local cleanSearchParameter = searchTerm:gsub("\"", "") return { itemString = "item:1217", itemLevel = index, minPrice = 0, totalQuantity = 0, entries = {}, itemName = Auctio...
RegisterServerEvent('cmg2_animations:sync') AddEventHandler('cmg2_animations:sync', function(target, animationLib,animationLib2, animation, animation2, distans, distans2, height,targetSrc,length,spin,controlFlagSrc,controlFlagTarget,animFlagTarget) print("got to srv cmg2_animations:sync") TriggerClientEvent('cmg2_ani...
----------------------------------- -- Ability: Call Beast -- Calls a beast to fight by your side. -- Obtained: Beastmaster Level 23 -- Recast Time: 5:00 -- Duration: Dependent on jug pet used. ----------------------------------- require("scripts/globals/common") require("scripts/globals/status") require("scripts/globa...
object_tangible_loot_creature_loot_collections_meatlump_king_doll_leg = object_tangible_loot_creature_loot_collections_shared_meatlump_king_doll_leg:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_king_doll_leg, "object/tangible/loot/creature/loot/collections/meatlump_king_...
--- -- A simple text element -- @classmod Label local class = require("middleclass") local Base = require("silicone.elements.Base") local Label = class("silicone.Label", Base) --- -- Internal. -- Internal methods -- @section Internal --- -- Initializes a Label element -- @tparam table spec Menu specification -- @tp...
describe("boolean parsing", function() setup(function() TOML = require "toml" end) it("boolean", function() local obj = TOML.parse[=[ t = true f = false]=] local sol = { t = true, f = false, } assert.same(sol, obj) end) end)
local message = require("kong.hybrid.message") describe("kong.hybrid.message", function() describe(".new()", function() it("happy path", function() local m = message.new("1c8db62c-7221-47d6-9090-3593851f21cb", "control_plane", "test_topic", "test_message") assert.is_table(m) assert.equal("1c8d...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
require 'uio/BaseElement' UIO.Titlebar = {}; function UIO.Titlebar.new(x, y, w, h) local self = UIO.BaseElement.new(x, y, w, h); local titleBarBackground = getTexture("media/ui/Panel_TitleBar.png"); local textColor = {r = 1, g = 1, b = 1, a = 1}; local collapsible = false; local isCollapsed = false; local titl...
crawl_require("dlua/dungeon.lua") -- Integer value from 0 to 100 giving the chance that a ghost-allowing level -- will attempt to place a ghost vault. _GHOST_CHANCE_PERCENT = 10 -- Common setup we want regardless of the branch of the ghost vault. function ghost_setup_common(e) e.tags("allow_dup luniq_player_ghos...
uart.setup(0, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) print (uart.getconfig(0)) local U = {} function sendData (datatosend) uart.write(0, datatosend..tonumber(0x00, 16)) end U.sendData = sendData return U
local BaseCombo = require("invokation.combos.BaseCombo") local FreestyleCombo = require("invokation.combos.FreestyleCombo") describe("FreestyleCombo", function() local combo before_each(function() combo = FreestyleCombo() end) it("inherits from BaseCombo", function() assert.is_true(BaseCombo:class_of...
config = { ambientOcclusion = true, dynamicLights = true, floatingStones = true, fullscreen = false, glow = true, healthBar = "When damaged", islandSmoke = true, resolution = "2560x1440", shadow = "Soft shadow" }
-- -- Author: Ab-47; State: Complete (Version 1.0 Lite). -- Additional Notes; N/A; Rights: All Rights Reserved by Developers and Ab-47. -- Project: AURgmusic/client.lua consisting of 1 file(s). -- Directory: AURgmusic/client.lua -- Side Notes: N/A -- local password = "haha nice try noob, no password here" local screen...
hb.register_hudbar("xp", 0xffffff, "XP", {bar = "xp.png"}, 0, 10, false, nil, nil) local xp_huds = {} minetest.register_on_joinplayer(function(player) local meta = player:get_meta() if meta:get_int("level") <= 0 then meta:set_int("level", 1) end xp_huds[player:get_player_name()] = player:hud_add({ hud_elem_...
local deeper = { _VERSION = "deeper v1.0.0", _DESCRIPTION = "A modification of deep that allows for multiple queues.", _URL = "https://github.com/Nikaoto/deep", _LICENSE = [[ Copyright (c) 2017 Nikoloz Otiashvili Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
-- Nuclear fuel enrichment plant local function get_formspec(craft_type, power, progress, pos) if not progress then progress = 0 end return "size[8,8.5]".. default.gui_bg.. default.gui_bg_img.. default.gui_slots.. ele.formspec.power_meter(power).. "list[context;src;2,0.75;1,1;]".. "image[3.5,0.75;1,1;gui...
lp = game.Players.LocalPlayer person = lp.Name char = lp.Character torso = char:findFirstChild("Torso") ra = char:findFirstChild("Right Arm") la = char:findFirstChild("Left Arm") rl = char:findFirstChild("Right Leg") ll = char:findFirstChild("Left Leg") rs = torso:findFirstChild("Right Shoulder") ls = torso:findFirstCh...
-- call evernote switch to menu function focusEvernoteAndSwitchTo() hs.application.launchOrFocus("Evernote") hs.eventtap.keyStroke({"cmd"}, "j") end local hyper_key_map = { -- most often ["1"] = "Google Chrome", ["2"] = "iTerm", -- editor ["3"] = "Visual Studio Code", ["4"] = "印象笔记", ...
-- test.lua - test suite for findbin module. -- a local copy of findbin to find itself ;) -- 'findbin' -- https://github.com/davidm/lua-find-bin package.preload.findbin_ = function() local M = {_TYPE='module', _NAME='findbin', _VERSION='0.1.1.20120406'} local script = arg and arg[0] or '' local bin = script:gsub...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_junk/watermelon01.mdl") self:PhysicsInitSphere(8) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetCollisionGroup(COLLISION_GROUP_DEBRIS_TRIGGER) self:SetTr...
object_tangible_furniture_all_frn_all_command_console = object_tangible_furniture_all_shared_frn_all_command_console:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_command_console, "object/tangible/furniture/all/frn_all_command_console.iff")
local JumpCommand = { Id = "Jump", Aliases = { "unstun", "unplatformstand" }, Description = "Makes players jump; also sets PlatformStand to false.", Args = { { Type = "players", Name = "Players", Description = "The players to make jump" } } } function JumpCommand.RunServer(_, players) for _, player ...
-- loot database -- -- loot.make: -- Load a dagger, itemid(1) on a map @ pos 194, 254: -- -- items.load({loot.make(1, 194, 254)}) -- -- Add something to the package path to include the itemdb. package.path = package.path .. ";../game/data/?.lua" function file_load(location, filename) local path = location .. ...
-- Powered by Right Click API local ffi = require("ffi") local C = ffi.C local function initialize() DebugError("AnotherFleetLogic initialize()") capi.RegisterAssignAction(AnotherFleetLogic) end -- function AssignCommander_JP(assignment, menu) -- local convertedComponent = ConvertStringTo64Bit(tostring(menu....
class "job.engineer" ("job") local se = job.engineer se.title = "Station Engineer" se.access = { "engine", "engine_equip", "tech_storage", "maint_tunnels", "external_airlocks", "construction", "tcomsat", "mineral_storeroom" } se.extended_access = { "atmospherics" } se.total_positions = 5 s...
if not vim.api.nvim_create_autocmd then return require('gitsigns.nvim.autocmds_compat') end local M = {} function M.autocmd(event, opts) vim.api.nvim_create_autocmd(event, opts) end function M.augroup(name, opts) vim.api.nvim_create_augroup(name, opts or {}) end return M
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)...
local ucic = luci.model.uci.cursor() local dt = require "luci.cbi.datatypes" module("luci.controller.snmpd", package.seeall) function index() entry({"admin", "network", "snmpd"}, alias("admin", "network", "snmpd", "index"), _("SNMPd")) entry({"admin", "network", "snmpd", "index"}, cbi("snmpd")) end
--[[ Author: Angel Arena Blackstars Chronophylos Credits: Angel Arena Blackstars ]] if Gold == nil then DebugPrint ( '[gold/gold] creating new Gold object' ) Gold = class({}) end local GOLD_CAP = 50000 local GPM_TICK_INTERVAL = GOLD_TICK_TIME or 1 -- GOLD_TICK_TIME is located in settings.lua loca...
require 'gui/widget' class 'DragButton' (Widget) function DragButton:__init( atlas, rl, x, y ) Widget.__init( self, x, y, 48, 48 ) self.state = "normal" self.oldstate = "normal" self.atlas = atlas self.bitmap = Bitmap() self.bitmap:setBitmap( self.atlas:getFrame( 'dragbutton_' .. self.state ...
-- module containing common C functions to be used local ffi = require("ffi") ffi.cdef[[ void free(void *ptr); ]] return ffi.C
--[[ Performs a fold over the entries in the given dictionary. ]] local function fold(dictionary, initialValue, callback) local accum = initialValue for key, value in pairs(dictionary) do accum = callback(accum, key, value) end return accum end return fold
--- @module SelectedObjs 客户端选中的物体的控制,单例 --- @copyright Lilith Games, Avatar Team --- @author Sharif Ma local SelectedObjs = ModuleUtil.New('SelectedObjs', ClientBase) local self = SelectedObjs --- 初始化 function SelectedObjs:Init() ---选中的对象,不包含选中容器中的对象 self.arr_selectedUnits = {} ---选中的容器 self.arr_select...
-------------------------------- -- @module Menu -- @extend Layer -- @parent_module cc -------------------------------- -- @function [parent=#Menu] setEnabled -- @param self -- @param #bool bool -------------------------------- -- @function [parent=#Menu] alignItemsVertically -- @param self ------...
ITEM.ID = "poster"; ITEM.Name = "Combine Poster"; ITEM.Description = "A folded adhesive poster containing an image of Combine propaganda."; ITEM.Model = "models/props_junk/garbage_newspaper001a.mdl"; ITEM.Weight = 0.5; ITEM.FOV = 22; ITEM.CamPos = Vector( 50, 50, 50 ); ITEM.LookAt = Vector( 2, 0, 0 ); ...
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2013-2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENCE' document -- -- This file is part of lua-lzqm library. -- -- -- zmq.thread wraps the low-level threads object & a zmq context. -- local T = string.d...
local versionNum = '0.408' function widget:GetInfo() return { name = "Newton Firezone w Puppies'n'Jumps", desc = "v".. (versionNum) .."Adds the Firezone command for Newtons. Allies in an area are targeted.", author = "wolas, xponen, Google Frog, terve886", --xponen (add crash location estimator), terve886 (...
object_tangible_holiday_empire_day_rebel_resistance_kiosks_city_object = object_tangible_holiday_empire_day_shared_rebel_resistance_kiosks_city_object:new { } ObjectTemplates:addTemplate(object_tangible_holiday_empire_day_rebel_resistance_kiosks_city_object, "object/tangible/holiday/empire_day/rebel_resistance_kiosks...
-- SetContactRaw(GlobalScaleform, 0, "Xin Voliteer", "CHAR_DEFAULT") -- local txd = CreateRuntimeTxd('CHAR_PNGTEST') -- local duiObj = CreateDui('https://i.imgur.com/NZaICKc.png', 64, 64) -- _G.duiObj = duiObj -- local dui = GetDuiHandle(duiObj) -- local tx = CreateRuntimeTextureFromDuiHandle(txd, 'CHAR_PNGTEST', dui...
local TLN = require("tileengine_h") local ffi = require("ffi") local C = ffi.load'Tilengine' --local tln = {C=C} ffi.cdef [[ TLN_Tilemap tilemap; ]] map ={} local function init(hres, vres, numlayers, numsprites, numanimations ) return C.TLN_Init(hres, vres, numlayers, numsprites, numanimations) end local f...
--[[ Play a message saved announcement. ]] -- The folder the new message was saved to. folder = args(1) -- The message number that's being saved. message_number = storage("counter", "message_number") return { { action = "play_phrase", phrase = "message_saved", phrase_arguments = message_number .. ":" ...
local component = require("component") local modem = {} local mt = {} function modem.reload() local m = component.list("modem", true) end mt.__index = function (self, key) end setmetatable(modem, mt) return modem
local testing = require('testing')('zip') local zip = require('zip') local fs = require('fs') local stream = require('stream') local assert = require('assert') testing("deflate/inflate", function() local data = fs.readfile('testdata/sub/HighHopes.txt') -- deflate(x) returns a stream of the compressed data loc...
mining_suit_quest_jazeen = { minimumLevel = 0, maximumLevel = 0, customObjectName = "Old Mining Suit", directObjectTemplate = "object/tangible/wearables/bodysuit/bodysuit_s13.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {}, skillMods = {{"surveying", 2}} } addLootItemTemplate...
sptbl["dist"] = { files = { module = "dist.c", header = "dist.h", example = "ex_dist.c", }, func = { create = "ut_dist_create", destroy = "ut_dist_destroy", init = "ut_dist_init", compute = "ut_dist_compute", }, params = { optional =...
return LoadActor(THEME:GetPathG("_combined","life frame"))..{ };
-- mod-version:2 -- lite-xl 2.0 -- Copyright (c) 2022 Ashwin Godbole -- MIT LICENSE local syntax = require "core.syntax" syntax.add { files = { "%.sfl$", "%.sitefl$" }, patterns = { { pattern = "\\.", type = "normal" }, { pattern = { "`", "`", "\\" }, type = "string" }, {...
--!A cross-platform build utility based on Lua -- -- 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...
-- scaffolding entry point for abseil-cpp return dofile("abseil-cpp.lua")
local window_utils = require('floating_tag_preview.window') local highlight_utils = require('floating_tag_preview.highlight') local tag_command_utils = require('floating_tag_preview.tag_command') local auto_command_utils = require('floating_tag_preview.auto_commands') return function(tag_command_options) vim.validat...
local data = { [2800]={0,0,0,0,0,90}, } function edytor_getOffsetData(id) if (not id or tonumber(id)<1) then return end for i,v in ipairs(data) do if v == id then for i2, v2 in ipairs(v) do return v2[2] end end end end
RelativePos = class("RelativePos"); function RelativePos:init(x, y, xoff, yoff) self.x = x; self.y = y; self.xoff = xoff or 0; self.yoff = yoff or 0; end function RelativePos:get_pixel_space(w, h) return (self.x*w)+self.xoff,(self.y*h)+self.yoff end
require "json_list_parser" local found_cnt = 1 local expected_data = { { "2019-01-29 18:00:00", -2.05 }, { "2019-01-29 21:00:00", -2.27 }, { "2019-01-30 00:00:00", -3.64 }, { "2019-01-30 03:00:00", -5.3 }, { "2019-01-30 06:00:00", -5.7 }, { "2019-01-30 09:00:00", -3.75 }, { "2019-01-30 12:0...
-- Author RigidStudios -- Date: 09/03/20 local mather = {}; --[[ Math Parser Api: _math:GetNumbers(string) -->> <number{}> _math.Add(string) -->> ?results and ?remaining | ?number _math.Subtract(string) -->> ?results and ?remaining | ?number _math.Percent(string) -->> ?results and ?remaining | ?number _math.Di...
local stream_type = KEYS[1] local source_id = KEYS[2] local expected_version = tonumber(ARGV[1]) local source_stream = string.format("%s.%s", stream_type, source_id) local current_version = tonumber(redis.call("XLEN", source_stream)) local last_version = current_version local next_sequence_number = redis.call("XLEN", ...
-- xterm-256color handler -- local handler = {} local termio = require("posix.termio") local isatty = require("posix.unistd").isatty handler.keyBackspace = 127 handler.keyDelete = 8 local default = termio.tcgetattr(0) local raw = {} for k,v in pairs(default) do raw[k] = v end raw.oflag = 4 raw.iflag = 0 raw.lflag =...
require "filesystem" local stormlib = require 'ffi.stormlib' local jasshelper = {} jasshelper.path = fs.ydwe_path() / "compiler" / "jasshelper" local config = [[ [jasscompiler] %q "%s$COMMONJ $BLIZZARDJ $WAR3MAPJ" ]] function jasshelper:prepare_common_j(map_path, version) if fs.exists(map_path / 'common.j') the...
-- helper_commands.lua -- Jan 2018 -- None of this is my code. require("lib/oarc_utils") commands.add_command("run", "change player speed bonus", function(command) local player = game.players[command.player_index]; if player ~= nil then if (command.parameter ~= nil) then if command.paramet...
local function AddPlayerModel( name, model ) list.Set( "PlayerOptionsModel", name, model ) player_manager.AddValidModel( name, model ) end AddPlayerModel( "BZGB 1", "Models/mw2guy/BZ/bzgb01.mdl" ) AddPlayerModel( "BZ Ghost", "Models/mw2guy/BZ/bzghost.mdl" ) AddPlayerModel( "...
local ns = require('namespace') local BulletSystem = ns.class("BulletSystem",ns.System) function BulletSystem:requires() return {"bullet"} end function BulletSystem:initialize() ns.System.initialize(self) self.factor = 1 end function BulletSystem:onCollision(ent, other, col) ent.Mesh:setMaterial("Red") other....
--includeFile("tangible/wearables/armor/rebel_assault/armor_appearance_rebel_assault_helmet_gcw.lua") includeFile("tangible/wearables/armor/rebel_assault/armor_rebel_assault_belt.lua") includeFile("tangible/wearables/armor/rebel_assault/armor_rebel_assault_belt_camo.lua") includeFile("tangible/wearables/armor/rebel_ass...
local Draw = require("api.Draw") local Gui = require("api.Gui") local Ui = require("api.Ui") local IItemMeleeWeapon = require("mod.elona.api.aspect.IItemMeleeWeapon") local IItemRangedWeapon = require("mod.elona.api.aspect.IItemRangedWeapon") local ChangeAppearanceMenu = require("api.gui.menu.ChangeAppearanceMenu") lo...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("ActionBar") local AB = _ActionBar local S = R.Skins function AB:CreateVehicleExit() local holder = CreateFrame("Frame", nil, R.UIParent, "SecureHandlerState...
--- Corona wrapper for **fipMultiPage**, a multi-page file stream. -- -- **fipMultiPage** encapsulates the multi-page API. It supports reading/writing multi-page TIFF, ICO and GIF files. -- @module fipMultiPage -- -- Permission is hereby granted, free of charge, to any person obtaining -- a copy of this software and a...
local module = {} local actions = game:GetService('ContextActionService') local action_name = 'Sprint' function module.Start(character) local humanoid = character:WaitForChild('Humanoid') local animator = humanoid:WaitForChild('Animator') local sprinting = false local function Sprint(_, state) local isBegi...
-- Mobs Api (4th March 2016) mobs = {} mobs.mod = "redo" -- Load settings local damage_enabled = minetest.setting_getbool("enable_damage") local peaceful_only = minetest.setting_getbool("only_peaceful_mobs") local disable_blood = minetest.setting_getbool("mobs_disable_blood") local creative = minetest.setting_getbool(...
-- Local instances of Global tables -- local PA = PersonalAssistant local PAC = PA.Constants local PAEM = PA.EventManager local PAHF = PA.HelperFunctions local PALProfileManager = PA.ProfileManager.PALoot -- ===============================================================================================================...
include "bbg_stateutils" --[[ ======================================================================= BBG Custom Unit Commands - Definitions Data and callbacks for enabling custom unit commands to appear and work in the Unit Panel UI. These definitions mimic what appears in data for common unit commands, an...
local nextMove = 0 function OnTick() if os.clock() >= nextMove then myHero:MoveTo(myHero.x+math.random(-2000,2000),myHero.z+math.random(-2000,2000)) nextMove = os.clock() + 15 + math.random(-1,1) end end function OnLoad()print(GetGameVersion():sub(1,10))end
ITEM.name = "Sun Biostimulator" ITEM.description = "Mounted on the chest, this small wave emitter effectively increases the rate at which wounds heal by about ten percent." ITEM.category = "Upgrades" ITEM.model = "models/instrument.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.price = 21000 ITEM.slot = 10 ITEM.isUpgrade = t...
{ name = "Voxel", options = { GAMMA_CORRECTION = {true}, USE_LIGHTING = {true}, USE_COLOR = {true}, USE_MAP = {false, {"map"}}, USE_FOG = {false}, USE_OUTLINE = {false, {"showOutline"}} }, properties = { map = {"texture2D", null}, outlineWidth = {"float", 5}, outlineColor = {"vec3", {...