content
stringlengths
5
1.05M
-- local ts_utils = require 'nvim-treesitter.ts_utils' local utils = require("go.utils") local impl = "impl" -- GoImpl f *Foo io.Writer -- use ts to get name local function get_struct_name() local row, col = unpack(vim.api.nvim_win_get_cursor(0)) local name = require("go.ts.go").get_struct_node_at_pos(row, col) ...
function createCountdownTimer(second) local ms = second * 1000 -- ms为countdown的Upvalue local function countDown() ms = ms - 1 return ms end return countDown end local timer1 = createCountdownTimer(1) for i=1, 3 do print( timer1() ) end
--- The Roblox test runner script. -- This script can run within Roblox to perform automated tests. -- -- @author LastTalon -- @version 0.1.0, 2020-10-13 -- @since 0.2 -- -- @module TestRunner -- @throws when the tests fail -- Dependencies -- print("Runner: Loading dependencies...") local ReplicatedStorage = game:Get...
-- -- a simple etcd task_center connector -- local MD5 = require('lib.MD5').sumhexa local Promise = require('lib.Promise') local JSON = require('lib.JSON') local JSON_decode = function(...) return JSON:decode(...) end local JSON_encode = function(...) return JSON:encode_pretty(...) end -- task center at etcd, code fro...
#!/usr/bin/env lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the --...
Talk(12, "少侠别担心,或许谢法王知道该书的下落.", "talkname12", 0); do return end;
local ffi = require 'ffi' ffi.cdef [[ const char sqlite3_version[]; ]] -- attempt to load statically-linked version, otherwise try dynamically-linked local lib if pcall(function() assert(ffi.C.sqlite3_version ~= nil) end) then lib = ffi.C else lib = ffi.load 'sqlite3' end ffi.cdef [[ const char* sqlite3_lib...
-- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcal...
return { act = { destroy = { prompt = function(_1) return ("Destroy %s?"):format(_1) end, execute = function(_1) return ("%s was destroyed."):format(_1) end, }, pick_up = { prompt = function(_1) return ("Pick up %s?"):format(_1) end, }, } }
--烙印追放 -- --Script by Trishula9 function c101108072.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,101108072+EFFECT...
------------------------------------------------------------------------------- -- Metrics captures - analysis of blocks. Output is syntax highlight, declarations of variables, function definitions and function calls -- @release 2011/05/04, Ivan Simko --------------------------------------------------------------------...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Compatibility -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not reskins.bobs then return end if not mods["electricboiler"] then return end local entities = { ["electric-boiler"] = {t...
local ShockTears = RegisterMod( "ShockTear",1 ); local ShockTearsItem = Isaac.GetItemIdByName("Technology Zero") local ShockTearsCostume = Isaac.GetCostumeIdByPath("gfx/characters/zerohead.anm2") local had = false local oldSeed = nil local maxDistance = 350 function ShockTears:UPDATE() local game = Game()...
-- Copyright 2020, Sjors van Gelderen require("area") require("disk") require("input") require("vector2") local graphics = love.graphics local image = love.image local mouse = love.mouse Pattern = {} function Pattern.new() local self = {} self.size = Vec2.new(128, 256) self.zoom = 8 self.translation = V...
local C = {} function C:init(unit) self.unit = unit end local from = Vec2(0,0) local target = Vec2(40, -220) local targets = { Vec2(40, -220), Vec2(-100, -400), Vec2(-100, -600), Vec2(120, -1000) } local tindex = 1 local tlfrom = Vec2(0,0) local tltarget = Vec2(0, 0) local brfrom = Vec2(0,0) local ...
#!/usr/bin/env luajit --------------------------- -- State Machine Manager -- --------------------------- -- dofile'../fiddle.lua' local ok = pcall(dofile,'../fiddle.lua') if not ok then dofile'fiddle.lua' end require'gcm' -- Cache some functions local get_time, usleep = unix.time, unix.usleep -- Cleanly exit on Ctrl...
function SpawnPoints() return { constructionworker = { { worldX = 41, worldY = 12, posX = 184, posY = 242, posZ = 0 } }, fireofficer = { { worldX = 41, worldY = 12, posX = 173, posY = 219, posZ = 0 } }, parkranger = { { worldX = 41, worldY = 12, posX = 253, posY = 247, posZ = 0 } }, policeoffi...
return [[ { "Lang": "pl", "Name": "polski", "Spawner.Title": "Spawner ", "Spawner.Trains1": "Składów", "Spawner.Trains2": "Maks.", "Spawner.WagNum": "Wagonów", "Spawner.AutoCouple": "Połącz wagony", "Entities.gmod_subway_81-717_mvm.Spawner.Texture.Name": "Skin", "Entities.gmod_subway_81-717_mvm.Spa...
local SceneEntity = require "njli.statemachine.sceneentity" local GameplaySceneEntity = {} GameplaySceneEntity.__index = GameplaySceneEntity local json = require('json') setmetatable(GameplaySceneEntity, { __index = SceneEntity, __call = function (cls, ...) local self = setmetatable({}, cls) self...
---@class FogOfWar C_FogOfWar = {} ---@param uiMapID number ---@return number|nil fogOfWarID function C_FogOfWar.GetFogOfWarForMap(uiMapID) end ---@param fogOfWarID number ---@return FogOfWarInfo|nil fogOfWarInfo function C_FogOfWar.GetFogOfWarInfo(fogOfWarID) end ---@class FogOfWarInfo ---@field fogOfWarID number...
Portada = Image.load("Imagenes/Portada.png") for n = 255, 0, -10 do negro = Image.createEmpty(480,272) negro:clear(Color.new(0,0,0,n)) screen:blit(0,0,Portada) screen:blit(0,0,negro) screen.flip() System.sleep(2) end screen:blit(0,0,Portada) System.sleep(4000) for n = 0, 255, 10 do Portada:clear(...
-------------------------------- -- @module Physics3DSliderConstraint -- @extend Physics3DConstraint -- @parent_module cc -------------------------------- -- -- @function [parent=#Physics3DSliderConstraint] setPoweredAngMotor -- @param self -- @param #bool onOff -- @return Physics3DSliderConstraint#Physics3DSliderC...
-------------------------------- -- @module TMXObjectGroup -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#TMXObjectGroup] setPositionOffset -- @param self -- @param #vec2_table vec2 -------------------------------- -- @function [parent=#TMXObjectGroup] getProperty...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local ffi = require("ffi") local ipv4 = require("lib.protocol.ipv4") ffi.cdef([[ unsigned long long strtoull (const char *nptr, const char **endptr, int base); ]]) function toint...
local indent = require'snippets.utils'.match_indentation local lua = { req = [[local ${2:${1|S.v:match"([^.()]+)[()]*$"}} = require '$1']], func = [[function${1|vim.trim(S.v):gsub("^%S"," %0")}(${2|vim.trim(S.v)})$0 end]], ["local"] = [[local ${2:${1|S.v:match"([^.()]+)[()]*$"}} = ${1}]], ["for"] = indent [[ f...
-- *********************************************************************************************************************** -- THIS IS THE CODE FOR THE GOALS -- *********************************************************************************************************************** goals = {} -- create goals table -- *...
local S = aurum.get_translator() local function make(pos, random) gtextitems.set_node(pos, { title = S("You @1!", aurum.flavor.generate_mocking(random(2), random)), text = S("You are a @1, and a @2. Understand, @3?", aurum.flavor.generate_mocking(random(8), random), aurum.flavor.generate_mocking(random(8), random...
--!nonstrict -- Manages groups of selectable elements, reacting to selection changes for -- individual items and triggering events for group selection changes local Packages = script.Parent.Parent local Roact = require(Packages.Roact) local Cryo = require(Packages.Cryo) local t = require(Packages.t) local FocusContext...
----------------------------------- -- Area: The Eldieme Necropolis -- NM: Cwn Cyrff ----------------------------------- mixins = {require("scripts/mixins/job_special")} ----------------------------------- function onMobDeath(mob, player, isKiller) end
-- Copyright 2014-2015 Greentwip. All Rights Reserved. local enemy = import("app.objects.characters.enemies.base.enemy") local barrel = class("jetbird", enemy) function barrel:onCreate() self.default_health_ = 5 self.still_ = true self.walking_ = false self.kinematic_body_size_ = cc.size(40....
require 'entity' require 'sprite' TileEntity = Entity:extend() function TileEntity:init(conf) local conf = extend({ w = 32, h = 32, left = true, }, conf or {}) Entity.init(self, conf) self.x = self.x + 14 self.y = self.y + 10 end function TileEntity:drawLocal() sx = se...
project "SPIRV-Cross" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") files { "spirv.h", "spirv.hpp", "spirv_cfg.cpp", ...
local ini = init -- Opens the tech loader interface, unless the player has ignored it or already has the dash tech equipped. init = function() if ini then ini() end if not status.statusProperty("weditTechLoaderIgnored", false) and player.equippedTech("body") ~= "dash" then player.interact("ScriptPane", "/inter...
-- See LICENSE for terms local Strings = ChoGGi.Strings -- blank CObject class we add to all the objects below for easier deleting DefineClass.ChoGGi_ODeleteObjs = { __parents = {"CObject"}, } -- simplest entity object possible for hexgrids (it went from being laggy with 100 to usable, though that includes some use...
local Base = {} local Book = require ("src.entity.interactable.book") local Cacti = require ("src.entity.interactable.cacti") Base.items = {} Base.items [Book.oState] = Book Base.items [Cacti.oState] = Cacti return Base
return function(renderCharacter) if not renderCharacter:FindFirstChild("LowerTorso") then return false end if renderCharacter:FindFirstChild("LANTERN_TEMP_EQUIP") then return false end local lanternModel = script.Parent:Clone() lanternModel.application:Destroy() lanternModel.Name = "LANTERN_TEMP_EQUIP" for...
return {'scandinavisch','scandinavische','scabies','scabreus','scafander','scala','scalair','scalp','scalpeermes','scalpel','scalperen','scampi','scan','scanapparaat','scanapparatuur','scandaleus','scanderen','scandinavistiek','scannen','scanner','scanning','scapulier','scarabee','scatologisch','scandinavist','scanbaar...
-- --[[ ---> 用于统计各接口流量信息。 -------------------------------------------------------------------------- ---> 参考文献如下 -----> / ----------------------------------------------------------------------------------------------------------------- --[[ ---> 统一函数指针 --]] local require = require -------------------------------------...
-- logger -- acts as a multiplexer to all attached appenders. -- events will be forwarded to each in turn. -- may itself also act as an appender for another logger. local mkset = _log.mkset local mkexploder = _log.mkfnexploder local childsep = "." local validatename = function(name) local prefix = "libmtlog.new.log...
#!/usr/bin/env lua -- MoonFLTK example: keyboard.lua -- -- Derived from the FLTK test/keyboard.cxx example (http://www.fltk.org) -- fl = require("moonfltk") function MyWindow() local my_window = fl.window_sub(495, 215, arg[0]) my_window:override_handle(function(event) if event == 'mousewheel' then ...
-- DNA Scanner AddCSLuaFile() DEFINE_BASECLASS "weapon_tttbase" SWEP.HoldType = "normal" if CLIENT then SWEP.PrintName = "dna_name" SWEP.Slot = 8 SWEP.ViewModelFOV = 10 SWEP.DrawCrosshair = false SWEP.EquipMenuData = { type = "item_weapon", ...
#! /usr/bin/env lua local M = require 'posix.termio' local F = require 'posix.fcntl' local U = require 'posix.unistd' local dev = arg[1] or '/dev/ttyUSB0' -- Open serial port and do settings local fds, err = F.open(dev, F.O_RDWR + F.O_NONBLOCK) if not fds then print('Could not open serial port ' .. dev .. ':',...
local plrs,http,nc = game:GetService("Players"),game:GetService("HttpService"),game:GetService("NetworkClient") local BBF = loadstring(game:HttpGet("https://raw.githubusercontent.com/ceat-ceat/BecomeFumoStuff/main/BBF/BBF.lua"))() if not BBF then return end if _G.BBFbnt then BBF.warn("BetterNameTags is already running,...
local vim = vim local utils = require("neo-tree.utils") local defaults = require("neo-tree.defaults") local renderer = require("neo-tree.ui.renderer") local mapping_helper = require("neo-tree.mapping-helper") local events = require("neo-tree.events") local log = require("neo-tree.log") local popups = require("neo-tree....
return { General = { NPCName = ""; -- Change this to a theme you've added to the Themes folder in order to override default theme settings. [accepts string] ShowName = false; -- When true, the NPC's name will be shown when the player talks to them. [accepts boolean] FitName = true; -- When true, t...
local util = require("spec.util") describe("vararg scope", function() it("works", util.check [[ local function f(a: number, ...: string): boolean local function g(a: number, ...: number): number local n = select(1, ...) return n / 2 end return true end ...
previous_score = 0 function correct_score () local current_score = data.score if data.score > previous_score then local delta = data.score - previous_score previous_score = data.score return delta else return 0 end end -- reward occasionally goes out of sync with the score variable, this puts ...
BanditCamps = {} maxCamps = 5 pedPollResults = {} CampCoords = { {x = 1781.9, y = 3892.9, z = 34.4, lastCreated=0}, {x = 1750.0, y = 3227.0, z = 41.2, lastCreated=0}, {x = 214.7, y = -30.9, z = 69.7, lastCreated=0}, {x = 89.8, y = -204.9, z = 54.5, lastCreated=0}, {x = -368.8, y = -122.4, z = 38.7, lastCreated=...
return {'cru','cruciaal','crucifix','cruise','cruiseboot','cruisecontrol','cruisen','cruiser','cruiseschip','cruiseterminal','crux','cruzeiro','cruijff','cruz','crutzen','crum','cruijsen','cruiming','cruijssen','crul','cruts','crucq','cruden','cruyff','cruises','cruces','cruciale','crucifixen','crue','cruisede','cruise...
-- Compiled with https://roblox-ts.github.io v0.2.14 -- October 15, 2019, 8:52 PM Pacific Daylight Time local TS = _G[script]; local exports = {}; local _0 = TS.import(TS.getModule("roblox-BezierFunctions").out.index); local ComputeCubicBezierPoint, ComputeCubicBezierDerivativeWithRespectToTimestamp, ComputeQuadraticB...
-- -- Copyright (C) 2016-2018 Frogtoss Games, Inc. -- -- CTF by Michael Labbe -- export with: -- export ctf.bin -i 76 -s 4 -c 16 dev = false ent_list = {} types = {} tick_count = 0 default_hw = {4,4} -- 8x8 block halfwidths cam={0,0} -- world top-left killfloor = -100 -- spike killfloor, set by adding killtouch entit...
----------------- -- Gnat Attack -- ----------------- -- Keith Davis -- -- (c) 2021 -- -- ZuniSoft -- SWARM_SIZE = 20 SWARM_MAX_SPEED = 6 EXPLOSION_DURATION = 30 function setup() viewer.mode = FULLSCREEN_NO_BUTTONS -- set player position sx,sy = WIDTH / 2, HEIGHT / 2 -- tables j = {} m ...
local initial_window_width, initial_window_height local window_width, window_height local music, current_music local sounds local textures local viewport_width local viewport_height local time_step local time_acc local prefs local data = {} local screens = {} local current_screen local max_vol = 100 local lf = { _VE...
-- Note taker/searcher based on code from ventolin found at https://github.com/Hammerspoon/hammerspoon/issues/782 -- support functions local ss = {} local utils = {} ss.u = utils function utils.splitPath(file) local parent = file:match('(.+)/[^/]+$') if parent == nil then parent = '.' end local filename = file...
---格式化代码实用工具 ---@class Format ---@field Black String String ---@field DarkBlue String String ---@field DarkGreen String String ---@field DarkAqua String String ---@field DarkRed String String ---@field DarkPurple String String ---@field Gold String String ---@field Gray String String ---@field DarkGray String String -...
local PLUGIN = PLUGIN PLUGIN.name = "Bodygroup Manager" PLUGIN.author = "Gary Tate" PLUGIN.description = "Allows players and administration to have an easier time customising bodygroups." ix.lang.AddTable("english", { cmdEditBodygroup = "Customise the bodygroups of a target." }) ix.command.Add("CharEdi...
RAYTRACER_DIR = (path.getabsolute("..") .. "/") local RAYTRACER_BUILD_DIR = (RAYTRACER_DIR .. "_build/") solution "raytracer" configurations { "debug", "development", "release", } platforms { "x32", "x64", "native" } language "C++" configurati...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_P = require(script:GetCustomProperty("APIProjectile")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local EFFECT_TEMPLATE = script:GetCustomProperty("EffectTemplate") local TELEGRAPH_TEMPLATE = script:GetCustomProperty...
local M = {} local function draw() for id, player in pairs(network.players) do local vehicle_id = vehiclemanager.id_map[player.current_vehicle] or -1 local vehicle = be:getObjectByID(vehicle_id) local vehicle_position = vec3() if (not vehicle) or (kisstransform.inactive[vehicle_id]) then if kis...
DigtronLayout = {} DigtronLayout.__index = DigtronLayout local modpath_awards = minetest.get_modpath("awards") ------------------------------------------------------------------------- -- Creation local get_node_image = function(pos, node) local node_image = {node=node, pos={x=pos.x, y=pos.y, z=pos.z}} local node_...
config = { t0 = true, t1 = "hello" }
local env = require("tangerine.utils.env") local fennel = {} local function format_path(path, ext, macro_3f) _G.assert((nil ~= macro_3f), "Missing argument macro? on fnl/tangerine/fennel.fnl:14") _G.assert((nil ~= ext), "Missing argument ext on fnl/tangerine/fennel.fnl:14") _G.assert((nil ~= path), "Missing argum...
ClimbLadder = {} ClimbLadder.e = {} ------------------------------------------------------ -- System events ------------------------------------------------------ function ClimbLadder:new() local u = {} setmetatable(u, self) self.__index = self return u end function ClimbLadder:onConnect() self.dt = 0 se...
local F, C, L = unpack(select(2, ...)) local TOOLTIP = F:GetModule('Tooltip') local wipe, tinsert, tconcat = table.wipe, table.insert, table.concat local IsInGroup, IsInRaid, GetNumGroupMembers = IsInGroup, IsInRaid, GetNumGroupMembers local UnitExists, UnitIsUnit, UnitIsDeadOrGhost, UnitName = UnitExists, UnitIsUnit,...
local WeightedBCECriterion = require('sconce.WeightedBCECriterion') return function(tester) local function criterionJacobianTest(cri, input, target) local eps = 1e-6 local _ = cri:forward(input, target) local dfdx = cri:backward(input, target) -- for each input perturbation, do central difference ...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local utils = require("utils") -- -- A variable-length unsigned integer using base128 encoding. 1-byte groups -- consis...
--- --- Generated by MLN Team (https://www.immomo.com) --- Created by MLN Team. --- DateTime: 15-01-2020 17:35 --- --- --- TabSegmentView的标签布局样式 --- ---@note 默认居左,可以设置为居中,居右不常用 ---@link https://www.immomo.comTabSegmentAlignment.html ---@class TabSegmentAlignment @parent class ---@public field name string ---@type ...
Elona.TargetText = { ItemOnCell = { And = " und ", MoreThanThree = function(itemCount) return ("Hier liegen %s Gegenstände."):format(itemCount) end, Item = function(itemNames) return ("Du siehst hier %s."):format(itemNames) end, Construct = f...
DefineClass.Workplace = { __parents = { "ShiftsBuilding", "Holder", "DomeOutskirtBld"}, properties = { {template = true, id = "max_workers", name = T(833, "Max workers per shift"), default = 5, category = "Workplace", editor = "number", min = 0, max = 20, slider = true, modifiable = true}, {t...
-- -- LUA script to send an email when the main door is opened -- during business hours -- commandArray = {} -- Name of the door sensor DoorSensor = '' -- Name of the alarm bell device AlarmBell = '' -- Name of the alarm volume device AlarmVolume = '' -- Pattern of sensors name (ex: 'Sensor - ') SensorPatternName = ''...
class "UIImage" { extends "UIObject", new = function (self, x,y,width,height, image) -- self:super(x,y, width,height) UIObject.instanceMethods.new(self, x,y, width,height) -- self.super not working for two level inhertance self.image = image end, update = function (self, dt, transform) self.transform...
local engineTextures = { -- atlases "$units", "$units1", "$units2", -- cubemaps "$specular", "$reflection", "$map_reflection", "$sky_reflection", -- specials "$shadow", "$heightmap", -- SMF-maps "$grass", "$detail", "$minimap", "$shading", "$normals", -- SSMF-maps "$ssmf_normals", "$ssmf_specula...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local link = {} local mattata = require('mattata') function link:init() link.commands = mattata.commands(self.info.username):command('link').table link.help = '/l...
--- === cp.i18n.language === --- --- Provides the set of ISO 693-1/2/3 language codes and names. --- The return value can be iterated as a list, or you can find a --- specific language by either its two-character code (`alpha2`), English-based three-character code (`alpha3B`), --- local name, or English name. --- --- F...
local exports = {} local tap = require('tap') local fiber = require('fiber') local response = require('authman.response') local error = require('authman.error') local validator = require('authman.validator') local v = require('test.values') -- model configuration local config = validator.config(require('test.config'))...
-- State of the game. This way our data is separated from our functionality return { buttonLeft = false, buttonRight = false, gameOver = false, palette = { {1, 0, 0, 1}, -- red {1, 1, 0, 1}, -- yellow {0, 1, 0, 1}, -- green {1, 1, 1, 1}, -- white {0.5, 0, 0.5, 0.5} -- blue }, paused = false, stageClear...
u_ = require("underscore") local defaultEvent = 'change' local lo = {} lo.meta = { _computed = { __call = function(self, ...) local arguments = {...} if (#arguments > 0) then self:set(...) else return self:get() end end, }, _observable = { __call = function(s...
function newplatform(plf) local name = plf.name local description = plf.description -- Register new platform premake.platforms[name] = { cfgsuffix = "_"..name, iscrosscompiler = true } -- Allow use of new platform in --platfroms table.insert(premake.option.list["platform"].allowed, { name, description }) ...
-- very simple lexer program which looks at all identifiers in a Lua -- file and checks whether they're in the global namespace. -- At the end, we dump out the result of count_map, which will give us -- unique identifiers with their usage count. -- (an example of a program which itself needs to be careful about what --...
function DrawHarborBits() pos = Vector(-14484, 14355, 0) --render.DrawBox(pos, Angle(0,0,0), pos+Vector(10,10,10), pos-Vector(10,10,10), Color(255,255,255,255)) end function DrawMainHud() surface.SetTexture(0) -- surface.SetFont( "HudText" ) -- surface.SetTextColor( 255, 255, 255, 150) -- surface.SetT...
local PauseGame = {} PauseGame.__index = PauseGame function PauseGame:new() local this = { args = "" } return setmetatable(this, PauseGame) end function PauseGame:keypressed(key, scancode, isrepeat) if key == "escape" then sceneDirector:exitSubscene() end end function PauseGame:...
local class = require "xgame.class" local timer = require "xgame.timer" local runtime = require "xgame.runtime" local EventAgent = require "xgame.EventAgent" local LuaComponent = require "cc.LuaComponent" local Mediator = class("Mediator") function Mediator:ctor(view) self.view = view ...
function _init(args) if #args < 2 then print("Usage: unmount <drive> [force]") return sys.exit(1) end if not fs.unmount(args[1], args[2] == "force") then print("Could not unmount '" .. args[1] .. "' drive") end end
-- bbl-twitter "Barebones Lua Twitter" -- -- Copyright (c) 2011 Angus Gratton, released under the MIT License -- (see the included file LICENSE.) -- -- See the README.md file for details or visit http://github.com/projectgus/bbl-twitter -- -- adapted by xxopxe@gmail.com -- * table as module. -- * twitter api 1.1 -...
local api = vim.api local ts_utils = require("nvim-treesitter.ts_utils") local config = require("tabout.config") local node = require("tabout.node") local utils = require("tabout.utils") local logger = require("tabout.logger") local M = {} local debug_node = function(line, col, node) if not node then logg...
---------------------------------------------------------------------------------------- -- Description: Tactical Position specifications for testing purposes -- Created by: Matthew Jack ---------------------------------------------------------------------------------------- AI.TacticalPositionManager.Test = AI.Tac...
local awful = require("awful") local naughty = require("naughty") -- trufflebar specific key handling local function run_keygrabber( args ) local trufflebar = args.trufflebar local mid_widget = trufflebar:get_children_by_id("middle_widget_nested") trufflebar_grabber = awful.keygrabber({ -- you ac...
project ("plugin_bimg") kind "SharedLib" includedirs { path.join(BX_DIR, "include"), path.join(BIMG_DIR, "include"), path.join(BGFX_DIR, "include"), } links { "bx", "bimg", "bimg_decode", "bgfx", "ariengine", } files { "../src/plugins/bimg/**.cpp", "../src/plugins/bim...
mytable = {"aa"} -- 普通表 mymetatable = {"bb"} -- 元表 setmetatable(mytable,mymetatable) -- 把 mymetatable 设为 mytable 的元表 --[[ setmetatable({},{}) ]] getmetatable(mytable); other = { foo = 3 } t = setmetatable({}, other) print(t.foo) t = setmetatable({}, { __index = other }) print(t.foo) t = setmetatab...
--esmobs v1.3 --maikerumine --made for Extreme Survival game --License for code WTFPL --Andrey created mob spawner for his world needs --minetest.register_alias("lagsmobs:cursed_stone", "esmmobs:cursed_stone") --minetest.register_alias("mobs:cursed_stone", "esmmobs:cursed_stone") --[[ minetest.register_node("esmobs:cu...
ActivityBeatMonsterNianCommand = import("controller.command.activity.ActivityBeatMonsterNianCommand") ActivityBeUpdatedCommand = import("controller.command.activity.ActivityBeUpdatedCommand") ActivityBossExchangeTicketCommand = import("controller.command.activity.ActivityBossExchangeTicketCommand") ActivityBossNormalUp...
TOOL.Category = "Render" TOOL.Name = "#tool.trails.name" TOOL.ClientConVar[ "r" ] = 255 TOOL.ClientConVar[ "g" ] = 255 TOOL.ClientConVar[ "b" ] = 255 TOOL.ClientConVar[ "a" ] = 255 TOOL.ClientConVar[ "length" ] = 5 TOOL.ClientConVar[ "startsize" ] = 32 TOOL.ClientConVar[ "endsize" ] = 0 TOOL.ClientConVar[ "material...
Talk(0, "狄兄,请你先到河洛客栈,若有需要你帮忙时,我再去找你.", "talkname0", 1); Leave(37); ModifyEvent(1, 7, 1, 1, 971, -1, -1, 5090, 5090, 5090, 0, -2, -2); ModifyEvent(1, 8, 1, 1, -1, -1, -1, 5094, 5094, 5094, 0, -2, -2); ModifyEvent(1, 10, 1, 1, 971, -1, -1, 5092, 5092, 5092, 0, -2, -2); jyx2_ReplaceSceneObject("1","NPC/狄云","1"); do return...
config = { commande = "touches", -- Commande pour ouvrir le menu touches = { {button = "[F1]", description = "Ouvrir la boutique"}, {button = "[F2]", description = "Ouvrir le téléphone"}, {button = "[F3]", description = "Ouvrir les animations"}, {button = "[F5]", descriptio...
local popup = require("neogit.lib.popup") local status = require 'neogit.status' local input = require 'neogit.lib.input' local notif = require("neogit.lib.notification") local git = require("neogit.lib.git") local a = require 'plenary.async_lib' local await, async, scheduler = a.await, a.async, a.scheduler local M = ...
------ Real Jumps module ------- function ReplaceAllJumps(toggle) if toggle == "on" then print("RealJump module activated") PersistentVars["DGM_RealJump"] = true CharacterLaunchOsirisOnlyIterator("DGM_CharacterReplaceJumpSkills") else print("RealJump module deactivated") ...
local packets = { out = { -- outgoing PACKET_NPC_INTERACTION = 0x1A, PACKET_NPC_CHOICE = 0x5B, PACKET_IDX_UPDATE = 0x15, PACKET_TRADE_OFFER = 0x34, PACKET_TRADE_MENU_ITEM = 0x36, }, inc = { -- incoming PACKET_MENU_INFO = 0x5C, PACKET_INCOMING_CHAT = 0x17, PACKET_NPC_ACTION = 0x2...
--~ Copyright (c) 2014-2020 QUIKSharp Authors https://github.com/finsight/QUIKSharp/blob/master/AUTHORS.md. All rights reserved. --~ Licensed under the Apache License, Version 2.0. See LICENSE.txt in the project root for license information. local QuikSharpFunctions = {} --------------------------------- -- Сервисные...
local function RCon(ply, cmd, args) if not FAdmin.Access.PlayerHasPrivilege(ply, "RCon") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return end local CommandArgs = table.Copy(args) CommandArgs[1] = nil CommandArgs = table.ClearKeys(CommandArgs) RunConsoleCommand(args[1], unpack(CommandArgs)) end FAdmi...
--[[ Copyright 2021 Manticore Games, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...