content
stringlengths
5
1.05M
--[[********************************** * * Multi Theft Auto - Admin Panel * * client\main\admin_players.lua * * Original File by lil_Toady * **************************************]] aPlayersTab = {} aPlayers = {} addEvent("aClientPlayerJoin", true) function aPlayersTab.Create(tab) aPlayersTab.Tab = tab -- Pl...
module("lua.includer", package.seeall) local is_dotfile, explode_name, include, skeys, is_day_entry, ordinal_suffix, nice_date, output_day_entry, is_month, nice_month, output_month_entry is_dotfile = function(filename) return filename:sub(1, 1) == '.' end explode_name = function(filename) return filename:match("([^...
--[[ Copyright (C) Ordo Lunaris (Blackhand) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed...
function EventHorizon:InitializeClass() self.config.gcdSpellID = 162794 self.config.past = -1.5 -- Number of seconds to show in the past. Default = -3 self.config.future = 12 -- Number of seconds to show in the future. Default = 12 -- Havoc -- Blade Dance self:newSpell({ requiredTree = 1, required...
return { PlaceObj("ModItemOptionToggle", { "name", "EnableMod", "DisplayName", T(302535920011303, "<color ChoGGi_yellow>Enable Mod</color>"), "Help", T(302535920011793, "Disable mod without having to see missing mod msg."), "DefaultValue", true, }), PlaceObj("ModItemOptionToggle", { "name", "SkipGrid0", ...
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local greenCode = greenCode; local PLUGIN = PLUGIN or greenCode.plugin:Loader(); PLUGIN.class = {}; local TER_PLUGIN = greenCode.plugin:Get("territory"); greenCode.config:Add( "re...
function recipeGetResults(recipe,difficulty) difficulty = difficulty or "normal" local search = recipe if recipe[difficulty] then search = recipe[difficulty] end local results = search.results if search.result then results = {{ type = "item", name = search.result, amount = search.result_count o...
--------------------------------------------- -- Dark Wave -- -- Description: A wave of dark energy washes over targets in an area of effect. Additional effect: Bio -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial -- Notes: Severity of Bio effect varies by time of day, from 8/tic at...
#! /usr/bin/lua require 'Test.More' plan(3) local mp = require 'MessagePack' local function my_cursor_string (str, i, j) return { s = str, i = i or 1, j = j or #str, underflow = function () error "missing bytes" end, } end local function my_unpack (s, i, ...
ITEM.name = "Kopach" ITEM.model ="models/kek1ch/stalker_outfit.mdl" ITEM.newModel ="models/nasca/stalker/male_nbc_lone.mdl" ITEM.description= "Kopach suit." ITEM.longdesc = "This suit is a modified version of the standard Sunrise outfit, composed of a camouflaged CBRN suit with a Class III-a Kevlar vest. Favored by dig...
--Called from ../chiNteractor_04_treeview.lua numTextures=0; prevnumTextures=0; --######################################################### Update textures function UpdateTextures() numTextures=chiTextureQuery(0); if (not (numTextures==prevnumTextures)) then sk=0; for k=1,numTextures do ...
-- Add border to :Lsp* commands -- https://github.com/neovim/nvim-lspconfig/issues/1717 vim.api.nvim_win_set_config(0, { border = "rounded" })
local unixsock = require("unixsock") local json = require("json") NodeSelectDockerImages = Node("SelectDockerImages") NodeSelectDockerContainers = Node("SelectDockerContainers") local dockerClient = unixsock.NewUnixSockClient("/var/run/docker.sock") local ret ret = dockerClient:Get("http://l/images/json?all=1") ret ...
return { PlaceObj("ModItemOptionToggle", { "name", "HideCheatsMenu", "DisplayName", T(0000, "Hide Cheats Menu"), "Help", T(0000, "Hide a menu entry to reduce horizontal space."), "DefaultValue", false, }), PlaceObj("ModItemOptionToggle", { "name", "HideECMMenu", "DisplayName", T(0000, "Hide ECM ...
--[[ Created by Grid2 original authors, modified by Michael --]] local Range = Grid2.statusPrototype:new("range") local Grid2 = Grid2 local tonumber = tonumber local tostring = tostring local UnitIsUnit = UnitIsUnit local UnitInRange = UnitInRange local UnitIsFriend = UnitIsFriend local UnitCanAttack = UnitCanAttack ...
--[[function Spiral(X, Y) local x = 0 local y = 0 local dx = 0 local dy = -1; local t = math.max(X, Y); local maxI = t * t; for i = 0, maxI, 1 do if ((-X/2 <= x) and (x <= X/2) and (-Y/2 <= y) and (y <= Y/2)) then table.insert(pathway, { x = x,...
local Utils = require('golem.utils') local Obect = require('golem.object') local Canvas = {} -- New canvas -- @param number width -- @param number height function Canvas:new(width, height, color) Utils:assertType(width, 'Canvas width', 'number') Utils:assertType(height, 'Canvas height', 'number') if color then ...
local Plugin = SS.Plugins:New("Hide") // When players values get set function Plugin.PlayerSetVariables(Player) CVAR.New(Player, "Hidden", "Hidden", false) end // Chat command local Hide = SS.Commands:New("Hide") function Hide.Command(Player, Args) local Bool = SS.Lib.StringBoolean(Args[1]) CVAR.Update(Player...
function love.conf(t) t.window.title = "Stars Demo" t.window.width = 600 t.window.height = 600 t.window.vsync = false end
if paladin_holy_purification == nil then paladin_holy_purification = class({}) end function paladin_holy_purification:GetAOERadius() local caster = self:GetCaster() local base_radius = self:GetSpecialValueFor("radius") -- Talent that increases radius local talent = caster:FindAbilityByName("special_bonus_unique_...
-------------------------------- -- @module RadioButtonGroup -- @extend Widget -- @parent_module ccui -------------------------------- -- Remove a radio button from this group.<br> -- param radio button instance -- @function [parent=#RadioButtonGroup] removeRadioButton -- @param self -- @param #ccui.RadioButton radi...
wings_blue = { minimumLevel = 0, maximumLevel = 0, customObjectName = "Blue Wings", directObjectTemplate = "object/tangible/wearables/backpack/back_love_day_10_blue_wings.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("wings_blue", wings_blue)
local json = require "cjson" local function format_table(t) local str = '' for k, v in pairs(t) do str = str .. k .. '--' .. v .. '\r\n' end return str end -- JSON TO TABLE local str_json = '{"key1":"this is key1", "key2":"this is key2", "num":1}' local t = json.decode(str_json) ngx.say(form...
local lpeg = require "lpeg" local IS_WINDOWS = (package.config:sub(1,1) == '\\') local D_WIN = function(s) return '%' .. s .. '%' end local D_PSX = function(s) return '$' .. s end local D = IS_WINDOWS and D_WIN or D_PSX local P, C, Cs, Ct, Cp, S = lpeg.P, lpeg.C, lpeg.Cs, lpeg.Ct, lpeg.Cp, lpeg.S local any = P(...
function love.load() target = {} target.x = 300 target.y = 300 target.radius = 40 score = 0 gameFont = love.graphics.newFont(20) font = love.graphics.newFont(80) timer = 10 timerScore = 5 colour = 1 end function love.update(dt) if timer >= 0 then timer = timer - dt ...
local palette = require'scene-anothershootout/palette-anotherworld' local icosphere = require'geometry/icosphere' local shader = require'fogShader' local avatar = require'avatar' local physics = require'physics' local m = {} local dome local colorCycler = 1 local cc = colorCycler local onDesktop = false local pewSoun...
myhighscore = {} dofile(minetest.get_modpath("myhighscore").."/api.lua") dofile(minetest.get_modpath("myhighscore").."/scoreboard.lua")
--[[ Copyright 2016-2020 The Node.lua Authors. All Rights Reserved. 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 la...
vim.g.nvim_tree_ignore = { ".git", "node_modules" } vim.g.nvim_tree_gitignore = 1 vim.g.nvim_tree_auto_open = 1 vim.g.nvim_tree_auto_close = 1 vim.g.nvim_tree_follow = 1 vim.g.nvim_tree_auto_ignore_ft = { "dashboard", "startify" } vim.g.nvim_tree_indent_markers = 1 vim.g.nvim_tree_git_hl = 1 vim.g.nvim_tree_disable_net...
--[[ Copyright: (c) 2014 Jason White 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, p...
RotateObjectState = AbstractState:extends{} function RotateObjectState:init() AbstractState.init(self) SB.SetMouseCursor("resize-x") self.ghostViews = {} end function RotateObjectState:GetRotatedObject(params, bridge) local objectID = params.objectID local angle = params.angle local avgX, avgZ...
item_stoneskin = class(TransformationBaseClass) LinkLuaModifier("modifier_intrinsic_multiplexer", "modifiers/modifier_intrinsic_multiplexer.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_stoneskin_stacking_stats", "items/transformation/stoneskin.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier...
local M={} M.on_attach = function(client) require'lsp_status'.on_attach(client) end return M
local TriHard = require('trihard') local g = love.graphics local function createTexture(w, h) local texture = g.newCanvas() g.setCanvas(texture) g.draw(g.newMesh({ {0, 0, 0, 0, 255, 255, 0}, {w, 0, 1, 0, 0, 255, 255}, {w, h, 1, 1, 255, 0, 255}, {0, h, 1, 1, 0, 0, 255} })) g.setCanvas() retu...
local TdMapName = "ns2_tgns_td" local NetworkMessageNames = {WaveInProgress = "td_WaveInProgress", RecentlyWelded = "td_RecentlyWelded"} local waveInProgress local recentlyWeldedTime = {} local recentWeldTimespanInSeconds = 3 local recentWeldEffectEnabled -- kCatPackDuration = 60 TGNS.RegisterNetworkMessage(NetworkMes...
local moon = require("moon") local redis = require("moon.db.redis") local tbremove = table.remove local tbinsert = table.insert local setmetatable = setmetatable local M = { VERSION = "0.1", ip = "127.0.0.1", port = 6379 } local mt = {__index = M} function M.new(ip, port, max_size) local t = {} ...
surface.CreateFont( "GModWorldtip", { font = "Helvetica", size = 20, weight = 700 }) local cl_drawworldtooltips = CreateConVar( "cl_drawworldtooltips", "1", { FCVAR_ARCHIVE } ) local WorldTip = nil local TipColor = Color( 250, 250, 200, 255 ) -- -- Adds a hint to the queue -- function AddWorldTip( unused1, t...
-- UI local ui = require "tek.ui" -- Validators local validators = require "src.validators.base_validators" -- Controllers local get_task = require "src.controller.get_task" local stop_task = require "src.controller.stop_task" local delete_task = require "src.controller.delete_task" local edit_task_time = require "sr...
--------------------------------------------------------------------------------------------------- -- real_names_redo mod by A S Lewis, based on real_names by Extex101 --------------------------------------------------------------------------------------------------- -- load_names.lua -- Loads lists of names ----...
local M = {} function M.setup(client) local ts = require "nvim-lsp-ts-utils" ts.setup { enable_import_on_completion = true, eslint_bin = "eslint_d", eslint_enable_diagnostics = true, eslint_enable_disable_comments = true, } ts.setup_client(client) end return M
object_draft_schematic_munition_beast_steroid_horse_lizard_mk2 = object_draft_schematic_munition_shared_beast_steroid_horse_lizard_mk2:new { } ObjectTemplates:addTemplate(object_draft_schematic_munition_beast_steroid_horse_lizard_mk2, "object/draft_schematic/munition/beast_steroid_horse_lizard_mk2.iff")
if (mode() == "load") then local mpath = os.getenv("MODULEPATH") mpath = mpath:gsub("/a1/","/a2/") io.stderr:write("MPATH: ",mpath,"\n") pushenv("MODULEPATH",mpath) end
local Debugger = {} Debugger.Clients = {} Debugger.NameMap = {} Debugger.EntVarCounts = {} util.AddNetworkString("metrostroi-debugger-dataupdate") util.AddNetworkString("metrostroi-debugger-entremoved") util.AddNetworkString("metrostroi-debugger-entnamemap") if game.SinglePlayer() then RunConsoleCommand("metrostroi...
--[[Author: Pizzalol Date: 04.03.2015. Awards the bonus gold to the modifier owner only if the modifier owner is alive]] function DevourGold( keys ) local target = MyHero local ability = keys.ability local ability_level = ability:GetLevel() - 1 local bonus_gold = ability:GetLevelSpecialValueFor("bonus_gold", abi...
local Fueled = Class(function(self, inst) self.inst = inst self.consuming = false self.maxfuel = 0 self.currentfuel = 0 self.rate = 1 self.accepting = false self.fueltype = "BURNABLE" self.secondaryfueltype = nil self.sections = 1 self.sectionfn = nil self.period = ...
local parent = ... local members = { "split" } local M = { } for _index_0 = 1, #members do local name = members[_index_0] M[name] = require(parent .. "._" .. name)[name] end return M
------------------ --Suck Suck Suck-- ------------------ --[[ JarLore V 5.2 LocalScript based admin Made by jarredbcv Originally made to rek oxcool1's sb but, I just get banned anywho.. :( ~ChangeLogs~ ;Added anti remove ;Added mode 1,2,3,4,5,6 ;Added Gui for admin control ;Added notifications ]]...
TcpConnect = TcpConnect or class("TcpConnect", net_handler) function TcpConnect:ctor() self.super:ctor() self.recv_cb = nil self.native_handler = native.make_shared_lua_tcp_connect() self.native_handler:init(self) end function TcpConnect:set_recv_cb(cb) self.recv_cb = cb end function TcpConnect:...
require 'torch' local nn_utils = {} -- Sets the weights of a layer to random values within a range. -- @param weights The weights module to change, e.g. mlp.modules[1].weight. -- @param range Range for the new values (single number, e.g. 0.005) function nn_utils.setWeights(weights, range) weights:randn(weights:si...
-- params : ... player = game:GetService("Players").LocalPlayer char = player.Character mouse = player:GetMouse() for i,v in pairs(char:GetChildren()) do if v.ClassName == "BoolValue" then v:Destroy() else if v.ClassName == "NumberValue" then v:Destroy() else if v.ClassName == "IntValue" th...
-- -- This is file `luatex-hyphen.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- luatex-hyphen.dtx (with options: `lua') -- -- This is a generated file (source: luatex-hyphen.dtx). -- -- Copyright (C) 2012 by The LuaLaTeX development team. -- -- This work is u...
local function not_ready() return false, "Sorry this refactor is not ready yet! But I appreciate you very much :)" end return not_ready
--[[ FPS Meter - Client v1.0 by: standardcombo See the FPSMeter_README for information about this module. --]] local UI_TEXT = script:GetCustomProperty("UIText") if UI_TEXT and UI_TEXT.isAssigned then UI_TEXT = UI_TEXT:WaitForObject() else UI_TEXT = nil end local WRITE_TO_GLOBAL = script:GetCustomProperty("Wr...
object_tangible_quest_township_ig88_feeder_component_03 = object_tangible_quest_township_shared_ig88_feeder_component_03:new { } ObjectTemplates:addTemplate(object_tangible_quest_township_ig88_feeder_component_03, "object/tangible/quest/township/ig88_feeder_component_03.iff")
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) function onGetFormulaValues(player, level, attack, f...
----------------------------------------- -- ID: 4541 -- Item: Goblin Drink -- Item Effect: Restores 1 MP while healing / 3 tick 180 mins. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") function onItemCheck(target) return 0 end function onItemUse(target)...
#define 初始化 oninit #include "fl_base.lua" fl_point = nil; missions = {}; missions_count = 0; missions_number = {}; missions_star = {}; mission_page = 0; fl_mission = nil; fl_mission_left = 0; function oninit() fl_point = dlg_load("t_point"); fl_point:enable("background", true); fl_point.pos=Pixel(0,0); fl_point:b...
--====================================================================-- -- Websockets Pusher -- -- Communicate with Pusher.com server -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2014 David McCuskey. All Rights Reserved. --====...
RegisterCommand('adjcar', function(source, args) -- Sentinel Classic if no arg is passed local vehicleName = args[1] or 'sentinel3' if not IsModelInCdimage(vehicleName) or not IsModelAVehicle(vehicleName) then TriggerEvent('chat:addMessage', { args = { 'Nope' } }) retur...
--[[ This file adds a Pokémon with missing informations to data modules, in order to test against it. The Pokémon is SnorloBello, and has no ndex, but the load function may or may not load many other informations. --]] local pokes = require('Poké-data') local pokeabils = require('PokéAbil-data') local eggs = requir...
-- Copyright 2021 Sonu Kumar -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agr...
local Engine = NeP.Engine local faceroll = { buttonMap = { }, lastFrame = false, rolling = false, bars = { "ActionButton", "MultiBarBottomRightButton", "MultiBarBottomLeftButton", "MultiBarRightButton", "MultiBarLeftButton" } } NeP.FaceRoll = CreateFrame('Frame', 'activeCastFrame', UIParent) local acti...
--[[ Copyright © 2019, Sjshovan (Apogee) 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 th...
local oo = oo local SingleTexture = require("gwen.skins.texturing.single") local BorderedTexture = require("gwen.skins.texturing.bordered") local SkinBase = require("gwen.skins.base") local TexturedSkin = oo.InheritClass(SkinBase, "Gwen.Skin.Textured") local function NewBordered(...) local obj = BorderedTexture.New(...
-- ======= Copyright (c) 2003-2012, Unknown Worlds Entertainment, Inc. All rights reserved. ===== -- -- lua\AlienTeam.lua -- -- Created by: Charlie Cleveland (charlie@unknownworlds.com) and -- Max McGuire (max@unknownworlds.com) -- -- This class is used for teams that are actually playing the game...
--[[ Copyright (c) 2019 Void Works See LICENSE in the project directory for license information. Most of the credit for this mod goes to authors below whose code was compiled: Original "Fluid Void" mod by Rseding91 - redesigned by Nibuja05 (control code used for fluid voiding) "High Pressure Pipe" mod by ken...
return function() it("should require without errors", function() local AvatarEditorPrompts = require(script.Parent) expect(AvatarEditorPrompts).to.be.ok() end) end
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(Storage.UnnaturalSelection.Mission05) == 1 then player:setStorageValue(Storage.UnnaturalSelection.Questline, 11) player:setStorageValue(Storage.UnnaturalSelection.Mission05, 2) --Questlog, Unnatural Selection Quest "...
nurla_employee = Creature:new { objectName = "@mob/creature_names:businessman", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "townsperson", faction = "townsperson", level = 4, chanceHit = 0.24, damageMin = 40, damageMax = 45, baseXp = 62, baseHAM = 113, baseHAMmax = 138, armor = 0, r...
------------------------------------------------------------ -- Buffy by Sonaza (https://sonaza.com) -- Licensed under MIT License -- See attached license text in file LICENSE ------------------------------------------------------------ local ADDON_NAME, Addon = ...; local LE = Addon.LE; local _; -- Text Strings BUFF...
local SubType = { [0] = true, [1] = true, [2] = true, [3] = true, } return function (Data) assert(SubType[Data],"丢弃类型【"..Data.."】错误,必须为0,1,2,3其中之一") return Data end
local tree_cb = require'nvim-tree.config'.nvim_tree_callback require'bufferline'.setup{} require'nvim-tree'.setup{ follow = 1, view = { width = 36, mappings = { list = { { key = { '.' }, cb = tree_cb('toggle_dotfiles') }, { key = { 'n' }, cb...
object_static_structure_general_waypoint_personal_cyan = object_static_structure_general_shared_waypoint_personal_cyan:new { } ObjectTemplates:addTemplate(object_static_structure_general_waypoint_personal_cyan, "object/static/structure/general/waypoint_personal_cyan.iff")
function exemplo() print("--------------------------") print("Lado negaivo de dar 'wrap' é que você não tem como retorno o estado da thread") print("--------------------------") coroutine.yield() print("--------------------------") print("Isso retornou nil, em vez de true ou false") print("---------------...
-- Option frame system credits to Shagu, pfUI zUI:RegisterComponent("zOptions", function () ZUI_MINIMAPBUTTON_LINE1 = "Click to toggle Options" ZUI_MINIMAPBUTTON_LINE2 = "Right-click and drag" local faction = UnitFactionGroup("player"); zUI.MinimapButtonFrame = CreateFrame("frame", "zMiniMapButtonFrame", Minimap); z...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
-- Insert 'str' into 't' at a random position from 'left' to 'right' function randomInsert (t, str, left, right) local pos repeat pos = math.random(left, right) until not t[pos] t[pos] = str return pos end -- Generate a random Chess960 start position for white major pieces function chess960 () loca...
local cjson = require "cjson" local crud = require "kong.api.crud_helpers" local split = require("kong.tools.utils").split local RedisFactory = require "kong.plugins.header-based-rate-limiting.redis_factory" local decode_base64 = ngx.decode_base64 local encode_base64 = ngx.encode_base64 local function decode_headers(...
return { summary = 'Get the location of the save directory.', description = 'Returns the absolute path to the save directory.', arguments = {}, returns = { { name = 'path', type = 'string', description = 'The absolute path to the save directory.' } }, notes = [[ The save direct...
return require("opt.plugins.lsp.json")
--============================== Level Buttons ===============================-- LevelButtons = Class() --============================================================================-- function LevelButtons:construct(map, number, y, screenWidth, screenHeight, color) self.map = map self.number = number se...
if not modules then modules = { } end modules ['supp-box'] = { version = 1.001, comment = "companion to supp-box.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- this is preliminary ...
local helpers = require "spec.helpers" describe("cargotest", function() before_each(function() helpers.before_each() vim.api.nvim_command "cd spec/fixtures/rust/crate" end) after_each(function() helpers.after_each() vim.api.nvim_command "cd -" end) it("run suite", function() helpers.view...
for i,type in pairs(boxing.types) do data:extend({ { type = "recipe-category", name = "boxing-" .. type.name, }, }) for j,machine in pairs(data.raw["assembling-machine"]) do if machine.name:sub(1, 18) == "assembling-machine" then table.insert(machine.crafting_categories, "boxing-" .. type.name) end...
description = [[ Reports the number of algorithms (for encryption, compression, etc.) that the target SSH2 server offers. If verbosity is set, the offered algorithms are each listed by type. If the "client to server" and "server to client" algorithm lists are identical (order specifies preference) then the list is sho...
local skynet = require "skynet" skynet.start(function() for i = 1, 1000000000 do -- very long loop if i%100000000 == 0 then print("Endless = ", skynet.stat "endless") print("Cost time = ", skynet.stat "time") end end skynet.exit() end)
return { action = { shoot = { "space", "enter" }, pause = { "esc", "p" } }, axis = { down = {{-1, "w"}, {1, "s"}, {-1, "up"}, {1, "down"}}, right = {{-1, "a"}, {1, "d"}, {-1, "left"}, {1, "right"}} } }
require "lib.classes.class" local NullBehavior = require "lib.physics.behaviors.NullBehavior" require "Global.application.application" -------------------------------------------------------------------------------------------------------- -- class: OverworldInteractuableObjectBehavior -- param: group:str -> the group...
-- -- This plugin add Gotham colorscheme. -- VERSION = "1.1.0" AddRuntimeFile("gotham-colors", "colorscheme", "gotham.micro")
------------------------ -- Myrkr -- ------------------------ require("scripts/globals/aftermath") require("scripts/globals/status") require("scripts/globals/weaponskills") function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar) -- Apply aftermath tpz.aftermath.addStatusEffect(playe...
function start (song) setCamZoom(1) end function update (elapsed) if curStep >= 128 and curStep < 256 then local currentBeat = (songPos / 1000)*(bpm/30) for i=0,7 do setActorX(_G['defaultStrum'..i..'X'] + 5 * math.sin((currentBeat + i*50) * math.pi), i) end end if curStep >= 640 and curStep < 768 then l...
ffi.cdef[[ void* LoadLibraryA(const char* lpLibFileName); void* GetProcAddress(void* hModule, const char* lpProcName); ]] local bass_dll = ffi.C.LoadLibraryA("bass.dll") local BASS_Init = ffi.cast("int(__stdcall*)(int, unsigned long, unsigned long, void*, void*)", ffi.C.GetProcAddress(bass_dll, "BASS_Init"))...
-- project and version set_xmakever("2.2.3") set_project("SpinlockTest") -- add project directories or targets target("SpinlockTest") -- add rules add_rules("mode.debug") add_rules("mode.release") -- set kind set_kind("binary") -- add files add_files("src/**.cpp") a...
local AddonName, Addon = ... local L = Addon.L CheckBox = {} CheckBox.__index = CheckBox; function CheckBox:new(pGroupFrame, pTitle, pPosX, pLineIndex, pOnCheckedChange) local self = {} setmetatable(self, CheckBox) self.checkbox = CreateFrame('CheckButton', nil, pGroupFrame, 'UICheckButtonTemplate') -...
local gears = require('gears') local icons_dir = gears.filesystem.get_configuration_dir() .. 'theme/icons/' return { arrow_down = 'ﰬ', arrow_up = 'ﰵ', battery_charging = '', battery_discharging = '', bluetooth_off = '', bluetooth_on = '', brightness = '', chat = '', chevron_left = '', chevron_right =...
-- https://gabrielpoca.com/2019-11-13-a-bit-more-lua-in-your-vim/ function NavigationFloatingWin() local width = vim.api.nvim_get_option("columns") local height = vim.api.nvim_get_option("lines") local buf = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_var(buf, '&signcolumn', 'no') lo...
-- -- DO NOT DELETE -- -- SETTINGS MODULE -- Made by Redsaph exclusively for Cleartext -- -- janvelasco.com -- github.com/redsaph/cleartext -- -- If you have read this and have the intention -- of using this, please do not delete this flower box -- and just append on it. -- -- Thank you very much. -- -- Last modified b...
local Spell = { } Spell.LearnTime = 30 Spell.Description = [[ Spawns birds at the end of the wand. ]] Spell.ApplyFireDelay = 0.4 Spell.CanSelfCast = false Spell.AccuracyDecreaseVal = 0.1 Spell.NodeOffset = Vector(-791, -32, 0) function Spell:OnFire(wand) local ang = self.Owner:EyeAngles() local pos = self.Owner:...
local cache_location = vim.fn.stdpath 'cache' local bin_folder = jit.os:lower() == 'osx' and 'macOS' or jit.os local nlua_nvim_lsp = { base_directory = string.format( '%s/nlua/sumneko_lua/lua-language-server/', cache_location ), bin_location = string.format( '%s/nlua/sumneko_lua/lua-language-server/b...
--[[ LuCI - UCI model Description: Generalized UCI model FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> 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...