content
stringlengths
5
1.05M
local log = require('log') local json = require('dkjson') local http = require('httptunnel') local ltn12 = require('ltn12') local config = require('config') local url = require('socket.url') local goveeapi = {} local function send_v1_request(driver, method, endpoint, json_body) log.debug(string.format("Sending %s %...
------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local Endpoint = require "elasticsearch.endpoints.Endpoint" ------------------------------------------------------------------------------...
return { "000_base_acl", "002_130_to_140", "003_200_to_210", "004_212_to_213", }
object_tangible_furniture_all_frn_diner_bar = object_tangible_furniture_all_shared_frn_diner_bar:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_diner_bar, "object/tangible/furniture/all/frn_diner_bar.iff")
local playsession = { {"mewmew", {136717}}, {"flooxy", {25096}}, {"Hanakocz", {177843}}, {"waxman", {3182}}, {"Kiumajus", {2894}}, {"Kirdiaga", {4037}}, {"cogito123", {159169}}, {"Synessus", {3233}}, {"Dionysusnu", {132267}}, {"EPO666", {113603}}, {"GuidoCram", {65795}}, {"Mark416", {1822}}, {"Kiwicake", {...
APIKEY_DISCORD = {} APIKEY_DISCORD['GENERIC'] = 'Bot ' APIKEY_GOOGLE = '' APIKEY_SEARCH = ''
tmr.alarm(0, 1000, 0, function() dofile("wifi-connect.lua"); dofile("read-sensor.lua"); end)
return LoadActor(THEME:GetPathG("ShockArrowDisplay","Icon"),PLAYER_2);
--[[ CHANGES * Cheapened the crafting recipe for emergency phones. They were too expensive and provided too little heart-point boost for their expense that player the very, very few players who crafted them regretted it. Emergency phones became one of the most *undesirable* items on our server. * Rem...
rspamd_config:register_post_filter(function(task) task:set_pre_result('soft reject', 'Pre Result Set') end)
local ScriptBehaviourUpdateOrder = {} ECS.ScriptBehaviourUpdateOrder = ScriptBehaviourUpdateOrder function ScriptBehaviourUpdateOrder.UpdatePlayerLoop( world ) end
-- function reference local select = select local unpack = unpack -- include local ok, Rediscluster = pcall(require, "rediscluster") if not ok then Rediscluster = { new = function() return nil, "can not find library : rediscluster" end } end local defaultConf = require("storage.conf"...
-- ron protocol local M = {} local log = require 'lumen.log' local sched = require 'lumen.sched' local messaging = require 'rong.lib.messaging' local queue_set = require "rong.lib.queue_set" local seen_notifs = queue_set.new() local view_merge = function(rong, vi) local now = sched.get_time() local view = ro...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = re...
project "Rendering" defineProject("StaticLib", true, "Rendering") dependson("Reflection") dependson("Utils") includeModule("Tools/Reflection", "Reflection") includeModule("Core/Utils", "Utils") includeVulkan() includeGlfw() includeStb() includeVMA() includeRapidJson() includeShaderc()
function assignment() function generator() return 1, 2, 3 end a = 1 b, c, d = nil g = 3 f = 2 e = 1 slot0 = 3 slot3 = 1 slot4, slot5, slot6 = generator() print(a, b, c, d, e, f, g, slot0, 2, g + 1) return end function vararg(...) a = ... c, d = ... t = { ... } s = { 1, 2, 3, ... } sl...
--[[ ui编辑器选择spriteFrame界面 ]] Panel = g_panel_mgr.new_panel_class('editor/dialog/select_sprite_frame_panel') -- overwrite function Panel:init_panel(plist, path, callback) self:add_key_event_callback('KEY_ESCAPE', function() self:close_panel() end) self._layer.OnClick = function() self:c...
local itemDB = require('core.itemDB') local Milo = require('milo') local UI = require('opus.ui') local colors = _G.colors local turtle = _G.turtle local pages = { turtleCraft = UI.WizardPage { index = 2, validFor = 'Turtle Crafting', notice = UI.Text { x = 3, y = 2, textColor = colors.yellow, va...
return { xml = [[<?xml version="1.0" encoding="UTF-8"?> <PathOfBuilding> <Build level="100" targetVersion="3_0" pantheonMajorGod="None" bandit="None" className="Ranger" ascendClassName="Raider" mainSocketGroup="5" viewMode="TREE" pantheonMinorGod="None"> <PlayerStat stat="AverageHit" value="371187.5112"/> <Play...
#!/usr/bin/env lua -------------------------------------------------------------------------------- -- @script OiL Interface Repository Daemon -- @version 1.2 -- @author Renato Maia <maia@tecgraf.puc-rio.br> -- print("OiL Interface Repository 1.2 Copyright (C) 2005-2008 Tecgraf, PUC-Rio") local ipairs = ipairs loca...
WEAPONS_DATA = { { name = "Fist", damage = 15.0, }, { name = "Pistol01", damage = 40.0, }, { name = "Pistol02", damage = 22.0, }, { name = "Pistol03", damage = 21.0, }, { name = "Pistol04", damage = 23.0,...
--[[ A loosely based Material UI module mui-slidepanel.lua : This is for creating slide out panel widgets. The MIT License (MIT) Copyright (C) 2016 Anedix Technologies, Inc. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
GamePrefixCheckUtil = class(); GamePrefixCheckUtil.getInstance = function(self) if not GamePrefixCheckUtil.s_instance then GamePrefixCheckUtil.s_instance = new(GamePrefixCheckUtil); end return GamePrefixCheckUtil.s_instance; end GamePrefixCheckUtil.addPrefix = function(self, prefix) ...
local ffi = require "ffi" local memory = require "memory" local log = require "log" local utils = require "utils" ffi.cdef[[ void *AstraeusClient_init(uint32_t dstIP, uint16_t dstPort); void AstraeusClient_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, uint32_t srcIP, uint16_t srcPort); void Ast...
local plyMeta = FindMetaTable("Player") local finishWarrantRequest local arrestedPlayers = {} /*--------------------------------------------------------------------------- Interface functions ---------------------------------------------------------------------------*/ function plyMeta:warrant(warranter, reason...
local dlg = require ('gui.dialogs') msg6=("Among the gear is a ledger with building plans for all dwarven workshops, better make use of it.") dlg.showMessage("A chance encounter", msg6, COLOR_WHITE, nil) msg5=("You decide to give the dwarves a proper burial; least they haunt you for using their equipment.") dlg.s...
local mType = Game.createMonsterType("Incredibly Old Witch") local monster = {} monster.description = "an incredibly old witch" monster.experience = 0 monster.outfit = { lookType = 54, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 100 monster.maxHealth...
object_tangible_collection_rare_rifle_ld1 = object_tangible_collection_shared_rare_rifle_ld1:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_rifle_ld1, "object/tangible/collection/rare_rifle_ld1.iff")
Collection = class.new(); local __protected = {'parent'}; function Collection:constructor(items) self.items = {}; if( type(items) == 'table' ) then for i,v in pairs(items) do self.items[i] = v; end end end -- Return the number of items behind held function Collection:count() return #self.items; end -- Ch...
local base = require('litcord.structures.base') local Member = class(base) function Member:__updated () for i,role in ipairs(self.roles) do self.roles[i] = self.parent.roles:get(role) end end function Member:kick () return self.parent.parent.rest:request( Route( 'guilds/%s/members/%s', self.parent.id, ...
local completion = {} local conf = require("modules.completion.config") completion["neovim/nvim-lspconfig"] = { config = conf.nvim_lsp, } completion["hrsh7th/nvim-cmp"] = { config = conf.nvim_cmp, requires = { "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lua", "hrsh7th/cmp-nvim-lsp"...
--[[ Project: SA-MP API Author: LUCHARE Website: BlastHack.Net Copyright (c) 2018 ]] local module = {ffi = require 'ffi'} function module.safely_include(mod) if not package.loading then package.loading = {} end if package.loading[mod] == nil then package.loading[mod] = true local v = {require(mod)} packag...
local lrucache = require "resty.lrucache.pureffi" local EXPIRE_IN = 60 * 60 -- it is shared by all the requests served by each nginx worker process: local worker_cache, err = lrucache.new(1000) -- Todo: is it ok to set limit 1000? if not worker_cache then return error("failed to create the cache: " .. (err or "un...
local researchColor = {} -- constants researchColor.defaultColors = { {r = 1.0, g = 0.0, b = 1.0} } -- state researchColor.state = {} researchColor.init = function (state) researchColor.state = state return state end researchColor.initialState = { researchColors = {}, ingredientColors = {}, } res...
return { name = 'CullMode', description = 'How Mesh geometry is culled when rendering.', constants = { { name = 'back', description = 'Back-facing triangles in Meshes are culled (not rendered). The vertex order of a triangle determines whether it is back- or front-facing.', ...
pg = pg or {} slot1 = Vector2(39.2, 19.2) slot2 = Vector2(0, -563.4) slot3 = class("BackYardGridInfo") pg.BackYardGridInfo = slot3 slot3.Ctor = function (slot0, slot1) slot0.start_x = slot1.startX slot0.start_y = slot1.startY slot0.end_x = slot1.endX slot0.end_y = slot1.endY slot0.map = slot1.map end slot3.creat...
-- Routine for NPC "Lola" loadRoutine = function(R, W) if (W:isConditionFulfilled("npc_lola", "sex") and not W:isConditionFulfilled("npc_lola", "after_sex")) then R:setTalkingActive(true) end R:setTilePosition(3,6) R:setFacingDown() R:setLooped(false) end
--[[ desc: Attacker, a system for attacker. author: Musoucrow since: 2018-5-9 alter: 2019-8-9 ]]-- local _Base = require("actor.system.base") ---@class Actor.System.Attacker : Actor.System local _Attacker = require("core.class")(_Base) function _Attacker:Ctor(upperEvent) _Base.Ctor(self, upperEvent, { ...
macros.pi = function(next_char) return '3.14159265359' end
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
Node = Object:extend() -- pretend this to be an enum :p NodeType = { Open = 0, Blocked = 1 } function Node:new(i, j, nodeType) self.i = i or -1 self.j = j or -1 self.nodeType = nodeType or NodeType.Open self.neihgbours = {} self.prev = nil end function Node:reset() self.prev = nil en...
workspace "Mantle" architecture "x64" startproject "OClient" configurations { "Debug", "Release", "Distribution" } -- variables: build configuration -- system(win or mac etc.) -- architecture outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" --Include directories relative to root folder (solution d...
ENT.Base = "lambda_entity" ENT.Type = "point" DEFINE_BASECLASS("lambda_entity") function ENT:PreInitialize() BaseClass.PreInitialize(self) DbgPrint(self, "PreInitialize") end function ENT:Initialize() BaseClass.Initialize(self) DbgPrint(self, "Initialize") end local COND_SEE_PLAYER = 32 function EN...
BuildEnv(...) local Button = Addon:NewClass('Button', 'Button') do GUI:Embed(Button, 'Tooltip') Button:SetTooltipAnchor('ANCHOR_RIGHT') end function Button:Constructor() self:EnableMouse(true) self:RegisterForClicks('LeftButtonUp') self:SetSize(36, 36) self:SetMotionScriptsWhileDisabled(true)...
local AddonName, AddonTable = ... -- 06. WoD > Trade (General Trade Materials) AddonTable.trade = { 113262, -- Sorcerous Water 113261, -- Sorcerous Fire 113263, -- Sorcerous Earth 113264, -- Sorcerous Air 127759, -- Felblight }
--[[ Copyright 2017 YANG Huan (sy.yanghuan@gmail.com). 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 agreed to i...
tool 'bstyle' { app { icon 'icon/bengine-warm.ico', rtti, custom { outputs = 'src/cxx_lexer.cpp', inputs = 'meta/cxx_lexer.rl', rule = 'ragel', command = 'ragel $flags -o $out $in', flags = '-s -C -L -G2', generator = true, restat = tru...
--- Library for accesing the accelerometer of a OpenMoko. -- This module starts two devices, one for each one of the acceleration -- sensors of a OpenMoko FreeRunner smartphone. Runs under SHR-testing OS. -- The module of both devices is "openmoko\_accel". -- The acceleration is measured in mg (1/1000th of earth gravit...
--not exactly part of this library but OK local strings = {} local defaultStrings = { ErrorTemplate = "An error occurred at" } SN3Debug = FILEMAN:DoesFileExist(THEME:GetCurrentThemeDirectory().."debug.txt") if SN3Debug then print("DebugHelpers: SN3 debug mode enabled. Switching to full mode.") end DebugHelpers = {...
local the = require "the" local Data = require "data" local Rmap = the.class() function Rmap:_init(data,opts) self.samples = opts.samples or the.data.samples self.use = opts.use or "y" self.far = opts.far or the.data.far self.debug = opts.debug or false self.min = opts.min or the....
--Start of Global Scope--------------------------------------------------------- Script.serveEvent('Blur3D.OnMessage1', 'OnMessage1') Script.serveEvent('Blur3D.OnMessage2', 'OnMessage2') -- Create viewer for original and filtered 3D image local viewer1 = View.create('viewer3D1') -- Will show in 3D viewer local viewe...
--[[ TheNexusAvenger Data for the skins of pets. The meshes for the Pig, Horse, and Dragon are currently unknown, but the textures are known. --]] return { ["Default"] = { Dog = 132549809, Cat = 132553894, Pig = 133963316, Horse = 133958190, Panda = 132554561, Drago...
local Prop = {} Prop.Name = "Court House" Prop.Government = true Prop.Doors = { Vector( -32, -1452, 1802 ), Vector( -316, -1461, 1802.2800292969 ), Vector( -316, -1555, 1802.2800292969 ), Vector( -180, -2279, 1802.2800292969 ), Vector( -180, -2185, 1802.2800292969 ), { Pos = Vector( 59, -1752, 1802 ), Locked = tr...
if redis.call("EXISTS", KEYS[1]) == 1 then return redis.call("INCR",KEYS[1]) else return nil end
--[[ Copyright (C) 2019 Onset Roleplay Developers: * Logic * Bork Contributors: * Blue Mountains GmbH To do: * ability to view people that have keys to your house by using it near your house door ]]-- -- Variables local colour = ImportPackage("colours") local borkui = ImportPackage("borkui") -- Commands AddComma...
--[[ The MIT License (MIT) Copyright (c) 2014 David Mentler 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, merg...
local TTSSettings = { Name = "TTSSettings", Type = "System", Namespace = "C_TTSSettings", Functions = { { Name = "GetChannelEnabled", Type = "Function", Arguments = { { Name = "channelInfo", Type = "ChatChannelInfo", Nilable = false }, }, Returns = { { Name = "enabled", Type = "bo...
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 PlayerGui getfield -1 StatsGUI getfield -1 InventoryFrame getfield -1 PlaceAbility pushboolean false setfield -2 Disabled emptystack
local notificationText = "COPOM: 10-10 Tiros disparados, Marcado em seu GPS." local blacklistedWeapons = { "WEAPON_STUNGUN", "WEAPON_KNIFE", "WEAPON_KNUCKLE", "WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT", "WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_BOTTLE", "WEAPON_DAGGER", "WEAPON_HATCHET", "WEAPON...
-- UUID generator for Lua 5.3 -- Entropy pool for gathering random bytes local pool = {i = 0, j = 0, k = 0} for i = 1, 256 do pool[i] = i - 1 end -- Absorb a byte into the entropy pool local function absorb(byte) pool.j = (pool.j + pool[pool.i + 1] + byte) % 256 pool[pool.i + 1], pool[pool.j + 1] = pool[p...
--[[ desc:编码文件 auth:Carol Luo ]] return { ---编码类型 types = {"err","c2s","s2c","s2s","s2w","w2s"}, ---功能模块 modes = {"login","mysql","clubs"}, ---对应编码 codes = { err = { login = { }, }, c2s = { }, s2c = { ...
--- -- @classmod FABRIKHandConstraint -- @author Quenty local FABRIKHandConstraint = {} FABRIKHandConstraint.ClassName = "FABRIKHandConstraint" FABRIKHandConstraint.__index = FABRIKHandConstraint function FABRIKHandConstraint.new() local self = setmetatable({}, FABRIKHandConstraint) return self end function FABRI...
--[[ API.SetCondition(string id, string resourceCondition, string dialogIdIfTrue, string dialogIdIfFalse) API.AddText(string id, string text, string animation, table rewardTable = {string resource, string text}) API.AddOption(string id, string text, string targetDialogId) ]] local Dialogs = {} local API =...
local path = require("lapis.cmd.path") local get_free_port get_free_port = require("lapis.cmd.util").get_free_port local loadstring = loadstring or load local AttachedServer AttachedServer = require("lapis.cmd.attached_server").AttachedServer local NginxAttachedServer do local _class_0 local _parent_0 = AttachedSer...
--data.lua require("prototypes/item/item") require("prototypes/entity/entity") require("prototypes/recipe/recipe") --Gui styles local styles = data.raw["gui-style"].default styles["ugg_content_frame"] = { type = "frame_style", parent = "inside_shallow_frame_with_padding", vertical_spacing = 16, } styles["ugg_...
local smart = require("eva.libs.smart.smart") return function() describe("Smart value test", function() it("Should have set and get", function() local v = smart.new() v:set(3) assert(v:get(), 3) v:set(5) assert(v:get(), 5) end) it("Can have min and max range", function() local v1 = smart.ne...
function Client_SaveConfigureUI(alert) Mod.Settings.RemovedConnections = ""; local num = 1; local setnum = 1; local mache = true; while(mache) do if(RemovedConnectionsFields[num] ~= nil)then if(RemovedConnectionsFields[num].GetText() ~= "" or RemovedConnectionsFields[num+1].GetText() ~= "")then local Vor...
--[=[ Meant to be used with a binder @class IKGripBase ]=] local RunService = game:GetService("RunService") local BaseObject = require(script.Parent.Parent.Parent.Classes.BaseObject) local GetController = require(script.Parent.Parent.Parent.Parent.GetController) local GetService = require(script.Parent.Parent.Paren...
return { code = 'EXAMPLE_DLG_OK_CANCEL', key = "EXAMPLE_DLG_OK_CANCEL", }
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== local StaticEventTypeDefinitions = { -- Kad 28/06/2017 14:44:08 - Test events. "EVENT_TYPE_TESTEVENT",-- Kad 28/06/2017 14:41:54 - TODO: Remove! -- Kad 28/06/2017 14:44:01 - Gene...
game = game or {} local sharedDirector = CCDirector:sharedDirector() function testLayer() local s = sharedDirector:getWinSize() local layer = ccs.layer() local label = ccs.label({ text = "Touch", x = s.width/2, y = s.height - 20, }) layer:addWidget(label) local label2 = ccs...
local AimbotEnabled = CreateClientConVar("aimbot_enabled", "0", false, false) local Aimbot_WorldTrace = CreateClientConVar("aimbot_worldtrace", "0", false, false); local CurrentTarget = nil; local TargetBone = "ValveBiped.Bip01_Head1"; local DefaultAimbotPos = Vector(0,35,0); local function GetTarget(dotRange) dotR...
whisper_bird_female = Creature:new { objectName = "@mob/creature_names:whisper_bird_female", socialGroup = "whisperbird", faction = "", level = 15, chanceHit = 0.31, damageMin = 170, damageMax = 180, baseXp = 831, baseHAM = 2000, baseHAMmax = 2400, armor = 0, resists = {5,5,5,5,5,5,5,5,-1}, meatType = "mea...
local strings = { -- Menu -- SI_GROUPDAMAGESHARE_LANG = "en", -- "en" SI_GROUPDAMAGESHARE_SET_ROLE_TOOLTIP = "Select if Damage or Healing is sent", -- "Send HPS instead of DPS" SI_GROUPDAMAGESHARE_MENU_AW_NAME = "Use Accountwide Settings", -- "Use Accountwide Settings" SI_GROUPDAMAGESHARE_MENU_AW_NAME_TOOLTIP...
if GetObjectName(GetMyHero()) ~= "Katarina" then return end require('Inspired') require('DeftLib') local KatarinaMenu = MenuConfig("Katarina", "Katarina") KatarinaMenu:Menu("Combo", "Combo") KatarinaMenu.Combo:Boolean("Q", "Use Q", true) KatarinaMenu.Combo:Boolean("W", "Use W", true) KatarinaMenu.Combo:Boole...
-- -- lib/eai.lua -- this file to be replaced by code generator (codegen.lua) --
--[[------------------------------------------------------------------ HEALTH Displays current player's health with no negative numbers; support for different modes ]]-------------------------------------------------------------------- if CLIENT then local HEALTH_TEXTURE = Material("unrealhud/health.png"); ...
describe("lpjit", function() local lpeg = require 'lpeg' local lpjit = require 'lpjit' local V, R, S, L = lpeg.V, lpeg.R, lpeg.S, lpeg.locale() local rules = { "Tree", Tree = (V("Subtree") + V("Branch")) * ";", Subtree = V("Leaf") + V("Internal"), Leaf = V("Name"), ...
Config = {} -- Set your car's name Config.Car = 'mattress' -- Set up how many options for each part you have. Config.Parts = { -- Important note: P3D Index starts at 0, LUA Index starts at 1. -- If your part is index '0' in p3d, it will be index '1' in here. --[[ ['example'] = { ...
local R = require local _,the,EGS = R"lib", R"the", R"egs" local class,OBJ = _.class, _.OBJ local XPLAIN=class("XPLAIN",OBJ) function XPLAIN:new(left,right) local out = {} for n,col1 in pairs(left.cols.x) do tmp=col1:bins(right.cols.x[n],BIN) if #tmp > 1 then for _,bin in ...
require('nngraph') --[[ An implementation of recurrent batch normalization as explained in: https://arxiv.org/abs/1603.09025 We compute per-time-step batch statistics as part of normalization. Each time step's corresponding nn.BatchNormalization module is stored in self.modules, and the table self.modules is *shared ...
-- - --- Created by Ray1184. --- DateTime: 04/10/2021 17:04 -- - --- Scene management functions. -- - dependencies = { 'libs/utils/Utils.lua', 'libs/backend/HPMSFacade.lua' } scene_manager = { } function scene_manager:new(scene_name, camera) lib = backend:get() insp = inspector:get() local this =...
local create_hunk = require("gitsigns/hunks").create_hunk local ffi = require("ffi") ffi.cdef([[ typedef struct s_mmbuffer { const char *ptr; long size; } mmbuffer_t; typedef struct s_xpparam { unsigned long flags; // See Documentation/diff-options.txt. char **anchors; size_t anchors_nr; } xpp...
local HeroScroll = require "hero.HeroScroll" local EquipHelp = require "module.EquipHelp" local HeroModule = require "module.HeroModule" local ItemHelper = require "utils.ItemHelper" local EquipmentModule = require "module.equipmentModule"; local EquipmentConfig = require "config.equipmentConfig" local EquipRecommend =...
local Twin = require("game/Player") local Tile = require("game/Tile") local GameConstants = require("game/GameConstants") local util = require("lib/helpers") local loadLevel = require("game/LevelLoader") local Resources = require("game/Resources") local Save = require("game/Save") -- there is a lot of dirty code in th...
getglobal game getfield -1 Workspace getfield -1 Banks getfield -1 Bank getfield -1 Lasers getfield -1 Destroy pushvalue -2 pcall 1 0 0 emptystack
local self = {} GLib.Invoker = GLib.MakeConstructor (self, GLib.Event) function self:ctor () end function self:dtor () self:Clear () end function self:AddDestructor (nameOrObject, object) object = object or nameOrObject self:AddListener (nameOrObject, function () object:dtor () end ) return self end fun...
local filesystem = require('gears.filesystem') local with_dpi = require('beautiful').xresources.apply_dpi local get_dpi = require('beautiful').xresources.get_dpi return { -- List of apps to start by default on some actions default = { terminal = 'alacritty', editor = 'nvim', lock = 'i3lock', quake ...
local Deque = require('container/deque') local NoteGesture = sky.Device:extend() NoteGesture.INTERVALS = 'NG_INTERVALS' NoteGesture.ONSETS = 'NG_ONSETS' NoteGesture.DURATIONS = 'NG_DURATIONS' NoteGesture.RESET = 'NG_RESET' function NoteGesture:new(props) self.debug = props.debug or false self.depth = props.depth ...
local root = script.Parent.Parent local PluginModules = root:FindFirstChild("PluginModules") local Style = require(PluginModules:FindFirstChild("Style")) local includes = root:FindFirstChild("includes") local Roact = require(includes:FindFirstChild("Roact")) local Components = root:FindFirstChild("Components") local...
local Controller = {} Controller.__index = Controller function Controller.new(game, drawEngine) local o = {} setmetatable(o, Controller) o.game = game o.drawEngine = drawEngine o.mouseDown = false return o end -- handles key presses -- ! uses globals from main.lua ! function Controller:handl...
local BaseServer = require "dev.demo.net.BaseServer" local GameProtocol = require "dev.demo.net.GameProtocol" local GameServer = class("GameServer",BaseServer) function GameServer.getInstance() if not GameServer.s_instance then GameServer.s_instance = GameServer:create() end return GameServer.s_instance end fu...
-- Systems Manager -- local Modern = require 'modern' local Manager = Modern:extend() -- New -- function Manager:new(host, items) self.host = host self.items = {} -- self:add(items or {}) end -- Teardown -- function Manager:destroy() self:clear() end -- Dispatch event -- function Manager:dispatch(event, ......
fx_version 'adamant' game 'common' clr_disable_task_scheduler 'yes' server_script 'server/**/publish/*.net.dll'
--- -- tile_cutter.lua local TileCutter = { _DESCRIPTION = "A small module for LÖVE that makes it easy to draw square tiles" } local TileCutter_mt = {__index = TileCutter} function TileCutter:new(image, tile_size) self.img = love.graphics.newImage(image) if type(tile_size) == "number" then self...
class("EmojiInfoRequestCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() pg.ConnectionMgr.GetInstance():Send(11601, { type = 0 }, 11602, function (slot0) if slot0.emoji_list then print("request emoji info success") slot1 = getProxy(EmojiProxy) for slot5, slot6 in i...
local t = Def.ActorFrame {}; local Space = '000000000'; t[#t+1] = Def.ActorFrame{ LoadActor("../2nd doors")..{ InitCommand=cmd(setsize,1280,720;CenterY;CenterX); }; }; t[#t+1] = Def.ActorFrame { LoadActor( "DANCELEVEL" )..{ OnCommand=cmd(x,SCREEN_CENTER_X-2;y,SCREEN_TOP+70;); } }; --Frame t[#t+1] = Def....
--- The turtle API allows you to control your turtle. -- -- @module turtle if not turtle then error("Cannot load turtle API on computer", 2) end --- The builtin turtle API, without any generated helper functions. -- -- Generally you should not need to use this table - it only exists for -- backwards compatibility...
------------------------------------------------------------ --- This code is based on the eyescream code released at --- https://github.com/facebook/eyescream --- If you find it usefull consider citing --- http://arxiv.org/abs/1506.05751 ------------------------------------------------------------ require 'hdf5' requ...
--[[ Italian Localization ]]-- local CONFIG = ... local L = LibStub('AceLocale-3.0'):NewLocale(CONFIG, 'itIT') if not L then return end -- general L.GeneralOptionsDesc = 'Impostazioni generali di configurazioni per %s.' L.Locked = 'Blocca la posizione della finestra.' L.Fading = 'Attiva opacità finestra.' L.TipCount...