content
stringlengths
5
1.05M
local S = df_trees.S --stem minetest.register_node("df_trees:nether_cap_stem", { description = S("Nether Cap Stem"), _doc_items_longdesc = df_trees.doc.nether_cap_desc, _doc_items_usagehelp = df_trees.doc.nether_cap_usage, tiles = {"dfcaverns_nether_cap_stem.png"}, is_ground_content = false, groups = {tree = 1, ...
-- init mqtt client with keepalive timer 120sec m = mqtt.Client("esp8266", 120, access_token, "password", 1) print("Connecting to MQTT broker...") m:connect(mqtt_ip, mqtt_port, 0, 1, function(client) print("Connected to MQTT!") end, function(client, reason) print("Could not connect, failed reason: " .. reason) end...
require "/scripts/vec2.lua" require "/scripts/messageutil.lua" require "/scripts/navigationtools/minimap.lua" require "/interface/navigationtools/tilestore.lua" local _init = init local _uninit = uninit local _update = update local isAlive = true local _teleportOut = teleportOut local lastDeathTime = nil local player...
local inspect = require 'inspect' local log = function(level, msg, ...) if type(msg) ~= 'string' then msg = inspect(msg) end if length({ ... }) > 0 then msg = msg .. ' :: ' .. inspect({ ... }) end ngx.log(level, '[metrix] ' .. msg) end local stderr = function(...) log(ngx.STD...
local fs = require('diagnosticls-configs.fs') return { sourceName = 'redpen', -- command = fs.get_executable('redpen'), command = './bin/redpen', args = { '--limit', '50', '%filepath' }, debounce = 100, isStdout = false, isStderr = true, formatPattern = { [[^.*:(\d+):\s(.*)(\r|\n)*$]], { line =...
function onUpdate(elapsed) -- start of "update", some variables weren't updated yet if curStep == 464 then doTweenAngle('left', 'camGame', 10, stepCrochet*0.005, 'circOut') doTweenAngle('left2', 'camHUD', 10, stepCrochet*0.005, 'circOut') elseif curStep == 468 then ...
-- java.require APITest = java.require('party/iroiro/jua/APITest') System = java.require('java/lang/System') Thread = java.require('java/lang/Thread') Class = java.require('java/lang/Class') Short = java.require('java/lang/Short') APITest:assertTrue(Class ~= nil) -- static memebers Thread:sleep(1000) APITest:assertTru...
Citizen.CreateThread(function() while true do Citizen.Wait(0) N_0xf4f2c0d4ee209e20() N_0x4757f00bc6323cfe(GetHashKey("WEAPON_UNARMED"),1.6) N_0x4757f00bc6323cfe(GetHashKey("WEAPON_KNIFE"),0.3) N_0x4757f00bc6323cfe(GetHashKey("WEAPON_DAGGER"),0.3) N_0x4757f00bc6323cfe(GetHashKey("WEAPON_MACHETE"),0.3) N_0...
if _G.WOW_PROJECT_ID == _G.WOW_PROJECT_MAINLINE then return -- Don't load for Retail end LibQuestXPDB = { [1] = {["xp"] = 540, ["level"] = 4}, [2] = {["xp"] = 2450, ["level"] = 30}, [5] = {["xp"] = 390, ["level"] = 20}, [6] = {["xp"] = 335, ["level"] = 5}, [7] = {["xp"] = 170, ["level"] = 2}, ...
slot0 = class("SummaryPageLoading", import(".SummaryPage")) slot1 = 0.05 slot0.OnInit = function (slot0) slot0.textContainer = findTF(slot0._go, "texts") slot0.textTFs = {} eachChild(slot0.textContainer, function (slot0) setActive(slot0, false) table.insert(slot0.textTFs, 1, slot0) end) slot0.timers = {} ...
require("gameData/dataInterfaceBase"); require("common/httpModule") RechargeCardDataInterface = class(DataInterfaceBase); RechargeCardDataInterface.Delegate = { onUseRechargeCardCallBack = "onUseRechargeCardCallBack"; } RechargeCardDataInterface.getInstance = function() if not RechargeCardDataInter...
function OnIf_514000(arg0, arg1, arg2) if arg2 == 0 then FalseGodBIG514000_ActAfter_RealTime(arg0, arg1) end return end function FalseGodBIG514000Battle_Activate(arg0, arg1) local local0 = {} local local1 = {} local local2 = {} Common_Clear_Param(local0, local1, local2) local l...
require "lib/queue" -- Based on Wilson's algorithm function Maze2() local dirs = { {dx = 1, dy = 0}, {dx = -1, dy = 0}, {dx = 0, dy = 1}, {dx = 0, dy = -1} } local data local function key(x, y) -- Fuck you, Lua! Took me an hour to debug this. Without the follow...
--full credit to benningtonguy for his Beeping Tool pitch = {0.7,0.8,0.9,1,1.1,0.9,1,1.3,1.2,1.3,1.4} num = 1 t = Instance.new("Tool", game.Players.LocalPlayer.Backpack) h = Instance.new("Part", t) h.BrickColor = BrickColor.new("Really black") h.Name = "Handle" hBM=Instance.new("BlockMesh",h) hBM.Scale = Vector3.new(0...
local M = {} M.setup = function() require('lualine').setup {} end return M
local mm = {} function mm.loadMap(map) local mapObjects = map.layers[2].objects for i=1,#mapObjects do local obj = mapObjects[i] table.insert(objects.platforms, Platform(obj.x, obj.y, obj.width, obj.height)) end for i=1,#objects.platforms do if not world:hasItem(objects.platforms[i]) then wor...
object_tangible_lair_base_shared_eow_imperial_power_gen = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/lair/base/shared_eow_imperial_power_gen.iff" } ObjectTemplates:addClientTemplate(object_tangible_lair_base_shared_eow_imperial_power_gen, "object/tangible/lair/base/shared_eow_imperia...
local _, NeP = ... -- Locals local GetActionInfo = GetActionInfo local ActionButton_CalculateAction = ActionButton_CalculateAction local GetSpellInfo = GetSpellInfo local wipe = wipe NeP.Buttons = {} local nBars = { "ActionButton", "MultiBarBottomRightButton",...
msg1 = "Obim kvadrata je " msg2 = " cm. Kolika je dužina njegove stranice?" msg3 = "Obim pravougaonika je " msg4 = " cm. Jedna njegova stranica je " msg5 = " puta kraća od druge. Kolika je dužina kraće stranice tog pravougaonika?"
local cv = require 'cv._env' require 'cutorch' -- TODO: remove this after gathering all CUDA packages in a single submodule cv.cuda = cv.cuda or require 'cv._env_cuda' local ffi = require 'ffi' ffi.cdef[[ struct PtrWrapper HOG_ctorCuda( struct SizeWrapper win_size, struct SizeWrapper block_size, stru...
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Misc") local M = _Misc local mod = M:NewModule("TotemBar", "AceEvent-3.0") local eventFrame = CreateFrame("Frame") local function Update(self,event) lo...
SceneManager = require("SceneManager") ArchiveManager = require("ArchiveManager") VictoryScene = {} VictoryScene.name = "VictoryScene" local _FONT_ = nil local _TEXTS_ = {"你打败了他……", "虽然,你仍可以有其他选择……"} local _COLOR_TEXT_ = {r = 137, g = 195, b = 235, a = 255} local _TEXT_SHOW_DELAY_ = 240 local _RECTS_TEXT_ = nil ...
--[[ Written by Syranide, me@syranide.com fixed and updated by minifisch, mail@minifisch.net big thanks to Syranide! :) ]] -- if SERVER then AddCSLuaFile() end if CLIENT then local target = { active = false } local snaptarget = { active = false } local snapkey = false ...
#!/usr/bin/env lua --[[ Copyright (c) 2010 Andreas Krinke 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...
return require("flib.gui")
local compe = require'compe' local Source = require'compe_nvim_lsp.source' local source_ids = {} return { attach = function() vim.api.nvim_exec([[ augroup compe_nvim_lsp autocmd InsertEnter * lua require"compe_nvim_lsp".register() augroup END ]], false) end; register = function() -...
counter = 0 -- IF COUNTER EQUALS 1 THE PLAYER IS IN THE QUEUE -- MESSAGES RegisterNetEvent("pvpsystem:msg") AddEventHandler("pvpsystem:msg", function(numero) notify("You are in the arena: ~b~#"..numero) SetGameplayCamRelativeHeading(0) end) RegisterNetEvent("pvpsystem:msgWon") AddEventHandler("pvpsystem:...
local dao_helpers = require "spec.02-integration.03-dao.helpers" local Factory = require "kong.dao.factory" local utils = require "kong.tools.utils" local DB = require "kong.db" dao_helpers.for_each_dao(function(kong_config) describe("Model (Constraints) with DB: #" .. kong_config.database, function() local serv...
-- -- @@LIB_NAME@@, Version: @@Version@@ -- -- This file is a part of @@LIB_NAME@@. -- -- Author: -- Xiaofeng Yang 2015 -- Vicent Gong 2012 -- -- --- -- -- @module textView2 require("core/constants"); require("core/object"); require("core/res"); require("core/drawing"); require("core/gameString"); require("...
local status_ok, biscuit = pcall(require, "nvim-biscuits") if not status_ok then vim.notify("nvim-biscuits not found!") return end biscuit.setup({ toggle_keybind = "<leader>cb", show_on_start = false, -- defaults to false cursor_line_only = true, default_config = { max_length = 12, min_distance = 5...
QhunCore.SliderUiElement = {} QhunCore.SliderUiElement.__index = QhunCore.SliderUiElement -- constructor --[[ { label: string, storageIdentifyer: string, settings?: { min?: number = 0 max?: number = 100, width?: number = 250, steps?: number = ...
--- -- Premake helper APIs. --- local export = require('export') local State = require('state') local Store = require('store') local premake = _PREMAKE.premake _PREMAKE.VERSION = '6.0.0-next' _PREMAKE.COPYRIGHT = 'Copyright (c) 2002-2021 Jason Perkins and the Premake Project' _PREMAKE.WEBSITE = 'https://github.com/s...
local wibox = require ('wibox') local awful = require ('awful') local gears = require ('gears') local beautiful = require ('beautiful') local color = gears.color.recolor_image --[[ -- Documentation: -- on_cmd => cmd to run when toggling on -- off_cmd => cmd to run when toggling off -- img => overri...
return { extensions = { {octopusExtensionsDir, "core"}, {octopusExtensionsDir, "baseline"}, {octopusExtensionsDir, "orm"}, {octopusExtensionsDir, "app"}, }, octopusExtensionsDir = octopusExtensionsDir, octopusHostDir = octopusHostDir, port = 8080, securePort = 38080, luaCodeCache = "on",...
local playsession = { {"Markle", {422469}}, {"ManuelG", {638356}}, {"tykak", {609020}}, {"Dionysusnu", {679560}}, {"kendoctor", {579224}}, {"OmegaLunch", {661535}}, {"datadrian", {577548}}, {"jimbo6805", {576478}}, {"yulingqixiao", {534476}}, {"Weizenbrot", {571807}}, {"mewmew", {568713}}, {"Pyroman69", {63...
---------------------------------------------------------------------------------- -- Total RP 3 -- Characters and companions tooltip -- --------------------------------------------------------------------------- -- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be) -- -- Licensed under the Apache Lice...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_core/issues/2479 -- -- Description: -- SDL does respond ACK on second start service request (Unprotected => Protected) -- -- Steps to reproduce: -- 1. First service s...
--[[ flags.register("v", "verbose") flags.register("x", "extract") { key = "mode"; } flags.register("l", "list") { key = "mode"; } flags.register("r", "res") { type = flags.list; } Default type is boolean, meaning that -f --foo (set) +f --no-foo (unset) are valid. If type is anything other than boolean, it requ...
--[[lit-meta name = "creationix/coro-fs" version = "2.2.5" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-fs.lua" description = "A coro style interface to the filesystem." tags = {"coro", "fs"} license = "MIT" dependencies = { "creationix/pathjoin@2.0.0" } author = { name = "Tim Ca...
--Copyright 2016 Simon Diepold <simon.diepold@infinitycoding.de> --License: BSD -- prints all available unix like commands function help() print( "load(file) returns the content of a file\n".. "grep(pattern) searches a pattern in all files\n".. "lc(file) counts the number of lines\n"...
-- a finish effect that displays the cooldown at the center of the screen local AddonName, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(AddonName) local AlertFrame = CreateFrame("Frame", nil, UIParent) AlertFrame:SetPoint("CENTER") AlertFrame:SetSize(50, 50) AlertFrame:SetAlpha(0) AlertFrame:Hide() local ...
local MoneyEvents = UserEvent.Money(); local _inventory = {}; local _capacity = 14; local _hold_control = false; local _sell_button = nil; local GAP_BETWEEN_ITEMS = 0.05; --SceneUnits local ITEM_SPRITE_SIZE = obe.Transform.UnitVector(0.1, 0.1); --SceneUnits local SELECTION_SPRITE = "sprites://item_select.png"; local ...
return function(parameters) return { position = parameters.position or {x = 0, y = 0, z = 0}, scale = parameters.scale or {x = 0, y = 0}, anchors = parameters.anchors or {up = 1, left = 1, right = 1, down = 1}, offset = parameters.offset or {up = 0, left = 0, right = 0, d...
local path = require "nvim-lsp-installer.path" local fs = require "nvim-lsp-installer.fs" local process = require "nvim-lsp-installer.process" local platform = require "nvim-lsp-installer.platform" local installers = require "nvim-lsp-installer.installers" local shell = require "nvim-lsp-installer.installers.shell" lo...
local test_utils = require("./test-utils") local path = require("lspconfig").util.path describe("renameFile", function() test_utils.setup() local old_path = path.join(test_utils.test_dir, "old-file.ts") local new_path = path.join(test_utils.test_dir, "new-file.ts") local linked_path = path.join(test_u...
MainLoop = {} MainLoop.Init = function() print('Init====') end MainLoop.Update = function() print('Update====') end MainLoop.Release = function() print('Release====') end
local Object = require("init") ---Extra subclass. Just for test. ---@class lib.object.example-proto-point:lib.object ---@field super lib.object local ProtoPoint = Object:extend("lib.object.example-proto-point") ---@class lib.object.example-point:lib.object.example-proto-point ---@field super lib.object local Point = ...
local crypto = require("crypto") local reqid = crypto.fast_random() local handler = require("handler") local request = {} request[1] = E:request():method() request[2] = E:request():uri() local signature = table.concat(request, " ") -- Decision Table -- (method, path) local entrypoints = { ["GET /api/v1/containers"] = ...
local discordia = require("discordia") local utils = require("miscUtils") local groupUtils = {} local function getTitle(groupNum, name, isLocked) return (isLocked and ":lock: " or "").."Group #"..groupNum.." - "..name end local function getDescription(isLocked, guildSettings) return isLocked and "This gr...
local M = {} local cmp = require('cmp') local feedkey = function(key, mode) vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, true), mode, true) end function M.config() cmp.setup { documentation = { border = { '┌', '─', '┐', '│', '┘', '─', '└', '│' }, winhighl...
local _={} _.entity_name=Pow.currentFile() _.new=function() local result=BaseEntity.new(_.entity_name) result.sprite="wall" BaseEntity.init_bounds_from_sprite(result) -- todo: implement result.is_solid=true return result end return _
-- Override some icons to nonicons -- (https://github.com/yamatsum/nonicons) require('nvim-web-devicons').setup { override = { default_icon = { icon = '', color = '#7982B4', name = 'Default', }, Dockerfile = { icon = '', color = '#0db7ed', name = 'Dockerfile', }, ['.dockerignore'] = { ic...
--[[ --=====================================================================================================-- Script Name: Score Limit Handler, for SAPP (PC & CE) Description: This mod changes the scorelimit required to win the game based on how many player's are currently online. Copyright (c) 2016-2018, Jericho Cro...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('hasan:copCount', function(source, cb) local xPlayers = ESX.GetPlayers() copConnected = 0 for i=1, #xPlayers, 1 do local xPlayer = ESX.GetPlayerFromId(xPlayers[i]) if xPlayer.job.name == 'police' then c...
m = Map("filebrowser", translate("文件管理器")) m.description = translate("FileBrowser是一个基于Go的在线文件管理器,助您方便的管理设备上的文件。") m:section(SimpleSection).template = "filebrowser/filebrowser_status" s = m:section(TypedSection, "filebrowser") s.addremove = false s.anonymous = true o = s:option(Flag, "enabled", translate("启用")) o.rm...
-- 字符串的扩展方法 -- 第一个参数必须为string类型 ---@class StringExtension local StringExtension = {} ---@param s string ---@return string function StringExtension.capitalize(s) local n = string.byte(s) local min = string.byte('a') local max = string.byte('z') local t = string.byte('A') if n >= min and n <= max the...
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function SkinBaudErrorFrame() BaudErrorFrame:StripTextures() S:SetBD(BaudErrorFrame) S:Reskin(BaudErrorFrameClearButton) S:...
if not LaserWall then LaserWall = {} end local path_g = "__laser-walls__/graphics/" local laser_turret = data.raw["electric-turret"]["laser-turret"] --[[ @ LASER name = "laser-interface icon = path_g .. "laser-wall.png" ]] local _layers = { { filename = path_g .. "transparent.png", priority = "ext...
includeFile("custom_content/draft_schematic/armor/component/armor_assault_segment.lua") includeFile("custom_content/draft_schematic/armor/component/armor_battle_segment.lua") includeFile("custom_content/draft_schematic/armor/component/armor_core_assault_advanced.lua") includeFile("custom_content/draft_schematic/armor/c...
-- this is actually a lua function that returns a table. return { name='swing', body={ name='pend1', jointType="rotate", jointAxis="X", translation =vector3(0.000000,2.300000,0.000000 ), -- joint의 위치 geometry ={ { 'Box', translation=vector3(0.35,-0.5,0), size=vector3(0.1,1,0.1), ...
local modules = require(game.ReplicatedStorage.modules) local network = modules.load("network") local tempData = modules.load("tempData") local events = modules.load("events") local utilities = modules.load("utilities") local rand = Random.new() local perkData = { sharedValues = { layoutOrder = 0; subtitle =...
skynet = require "skynet" require "skynet.manager" -- import skynet.register local function task(id) for i = 1,5 do skynet.error("task"..id .." call") skynet.error("task"..id .." return:", skynet.call(".echoluamsg", "lua", "task"..id)) end end skynet.start(function...
require 'spec/setup/defines' _G.remote = { interfaces={} } _G.script = { next_event_id=5000, --Try to avoid clobbering factorio event ids generate_event_name = function() _G.script.next_event_id = _G.script.next_event_id + 1 return _G.script.next_event_id end, on_event = function(_...
assert(true) assert(not pcall(function () assert(false, "message") end))
t_uses = {} local tool_wear_enabled = minetest.settings:get_bool("enable_tool_wear") if tool_wear_enabled == nil then -- Default is enabled tool_wear_enabled = true end if tool_wear_enabled then t_uses.twenty = 20 else t_uses.twenty = 0 end dofile(minetest.get_modpath("tools_obsidian").."/sword.lua") dofile(mine...
function TestFunc() print("Hello world") end TestFunc()
local status_ok, comment = pcall(require, "Comment") if not status_ok then return end comment.setup({ pre_hook = function(ctx) local U = require "Comment.utils" local location = nil if ctx.ctype == U.ctype.block then location = require("ts_context_commentstring.utils").get_cursor_location() ...
local map = vim.api.nvim_set_keymap -- map the leader key map('n', '<Space>', '', {}) local options = { noremap = true } map('n', '<leader><esc>', ':nohlsearch<cr>', options) map('n', ';', ':', options) map('n', '<C-n>', ':NvimTreeToggle<CR>', options) map('n', '<leader>r', ':NvimTreeRefresh<CR>', options) -- map(...
natives["java.lang.System"] = natives["java.lang.System"] or {} natives["java.lang.System"]["load(Ljava/lang/String;)V"] = function(jString) local str = toLString(jString) classpath.dofile(str) end -- TODO: Reimplement this less naively natives["java.lang.System"]["arraycopy(Ljava/lang/Object;ILjava/lang/Obje...
local Bullet = Class { -- TODO: I am temporary - delete me init = function(self, x, y, dx, dy, size, color) self.position = Vector(x, y) self.velocity = Vector(dx, dy) self.size = size self.color = color end } function Bullet:update(dt) self.position = self.position + self.v...
-- -- Copyright (c) 2016-2017, Fangchang Ma. -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file...
-- Here is where all of your serverside hooks should go. -- Change death sounds of people in the police faction to the metropolice death sound. function Schema:PlayerUse(ply,ent ) if(ent:GetClass()=="func_recharge" and !ply:CanLoadArmor()) then //allows using armor charger only for certain people return ...
function table.copy(param) local t = { } for k, v in pairs(param) do t[k] = v end return t end
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] Schema.stunEffects = {}; Schema.combineOverlay = Material("effects/combine_binocoverlay"); Schema.randomDisplayLines = { "Transmitting physical transition vector...", "Modulating external tempe...
local Object = require 'object' local Recipe = {} Recipe.wrapper = require 'recipe.wrapper' Recipe.nested = require 'recipe.nested' function Recipe.new(name, super) return Recipe.recipify({ name }, super) end function Recipe.recipify(t, super) if super then Recipe.extends(t, super) end return setmetatab...
project "VortexAnimatSim" language "C++" kind "SharedLib" files { "../*.h", "../*.cpp"} includedirs { "../../../../include", "../../../StdUtils", "../../../AnimatSim", "../../../../../3rdParty/stlsoft-1.9.117/include" } libdirs { "../../../../bin" } links { "dl"} ...
--[[ --=====================================================================================================-- Script Name: Random Grenades, for SAPP (PC & CE) Implementing API version: 1.11.0.0 Description: Every time you spawn, this script will generate a random number between the value of Min_Fra...
local mappings = { ['<Space>e'] = [[<cmd>lua vim.diagnostic.open_float()<CR>]], ['[d'] = [[<cmd>lua vim.diagnostic.goto_prev()<CR>]], [']d'] = [[<cmd>lua vim.diagnostic.goto_next()<CR>]], ['<Space>q'] = [[<cmd>lua vim.diagnostic.setloclist()<CR>]], ['[b'] = [[:BufferLineCycleNext<CR>]], [']b'] = [[:BufferLi...
--EXAMPLE INDEPENDENT MODULE OSI = { LAYER=1, TITLE="independent_module" VERSION=1.0 AUTHOR="Chad Dunn" DEPENDENCIES="*" -- If dependent, it should list the module by TITLE in a table. Ex. DEPENDENCIES = {"something"} } function func() --do something return result end
local runner = require("test_executive") local console = require("console") -- Record Dispatcher Unit Test Setup -- runner.command("DEFINE test.rec id 8") runner.command("ADD_FIELD test.rec id INT32 0 1 NATIVE") runner.command("ADD_FIELD test.rec counter INT32 4 1 NATIVE") local idmetric = core.metric("id", "dispatc...
--This file generated from little Java and friends :) return {{{-57,74,0}, color("#FFFFFF")}, {{-80,42,0}, color("#FFFFFF")}, {{-80,42,0}, color("#FFFFFF")}, {{-68,-45,0}, color("#FFFFFF")}, {{-68,-45,0}, color("#FFFFFF")}, {{-34,-69,0}, color("#FFFFFF")}, {{-34,-69,0}, color("#FFFFFF")}, {{49,-57,0}, color("#FFFFFF")}...
--This base was originally made by xyzzy, I just adjusted it for these weapons and added proficiency SWEP.PrintName = "NPC Weapon Base" SWEP.Author = "kev675243" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.Category = "NPC Weapons" SWEP.Spawnable = false SWEP.AdminSpawnable = false SWEP.Au...
local dev = {} dev.pretty = function (var) print(dev.fmt(var)) end dev.fmt = function (var, depth) local t = type(var) if t == "table" then depth = depth or 1 local s = "{\n" for k, v in pairs(var) do -- print(k, type(k), v, type(v)) if type(k) ~= "number" then k = "\""..k.."\"" end ...
/* * @package : rlib * @module : rclass * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2020 - 2020 * @since : 3.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE ...
local userId = KEYS[1] local buyNum = tonumber(KEYS[2]) local skuId = KEYS[3] local perSkuLim = tonumber(KEYS[4]) local actId = KEYS[5] local perActLim = tonumber(KEYS[6]) local orderTime = KEYS[7] --用到的各个hash local user_sku_hash = 'sec_'..actId..'_u_sku_hash' local user_act_hash = 'sec_'..actId..'_u_act_hash' lo...
require('mobdebug').on() --////////////////////////////////////////////////////////////////////// --************************ --Floor --************************ local FloorConsts = require('field.FloorConsts') Floor = {} Floor.__index = Floor function Floor.new(dungeonId, floorNo, width, height, fillTile, name) lo...
local Modules = script.Parent.Parent.Parent.Parent local Roact = require(Modules.Roact) local StudioThemeAccessor = require(Modules.Plugin.Components.StudioThemeAccessor) local TextBox = Roact.PureComponent:extend("ColorPicker.TextBox") function TextBox:init() self.state = { hover = false, press = false, isVa...
local events = require "util.events"; describe("util.events", function () it("should export a new() function", function () assert.is_function(events.new); end); describe("new()", function () it("should return return a new events object", function () local e = events.new(); assert.is_function(e.add_handler...
-------------------------------- -- @module Grid3D -- @extend GridBase -- @parent_module cc ---@class cc.Grid3D:cc.GridBase local Grid3D = {} cc.Grid3D = Grid3D -------------------------------- --- ---@return boolean function Grid3D:getNeedDepthTestForBlit() end -------------------------------- --- @{ --- Getter ...
local lib_warehouse = require("__nco-LongWarehouses__/lib/lib_warehouse") local data_util = require("__nco-LongWarehouses__/lib/data_util") ------------------------------------------------------------------------------------- -- On Blueprint Item Replace to Reset Item to Item-Proxy ------------------------------------...
local utils = require'nvim-tree.utils' local M = {} local roots = {} ---A map from git roots to a list of ignored paths local gitignore_map = {} local not_git = 'not a git repo' local is_win = vim.api.nvim_call_function("has", {"win32"}) == 1 local function update_root_status(root) local e_root = vim.fn.shellesca...
local UP_FLOORS = {1386, 3678, 5543, 8599, 10035, 13010} local FIELDS = {1497, 1499, 11095, 11096} local DRAW_WELL = 1369 function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == DRAW_WELL and item.actionid ~= 100) then return false end local check = false fromPosition.stackpos = STACKPOS_G...
local pollution_axov_rnd_drops={item="default:cobble",amo=math.random(3)} local pollution_axov_ano_texture=nil local function pollution_rnddrops(its) if math.random(5)==1 then pollution_axov_rnd_drops={item=its,amo=math.random(25)}end if math.random(20)==1 then pollution_axov_rnd_drops={item="pollution:bottle",am...
require 'ScreenManager' require 'Config' require 'util' function love.load(arg) print("[love.load] Setting up our humble game") love.graphics.setBackgroundColor(Config.screen.background or {0, 0, 0}) -- -- Setup -- love.window.setMode( Config.screen.width, Config.screen.height, { ...
Faction = { Citizen = 0, PanauMilitary = 1, Reapers = 2, Roaches = 3, Ular = 4, Agency = 5, Player = 6 } IsFriendly = {} IsFriendly[Faction.Citizen] = {} IsFriendly[Faction.Citizen][Faction.PanauMilitary] = true IsFriendly[Faction.Citizen][Faction.Reapers] = true IsFriendly[Faction.Citizen][Faction.Roaches] = t...
local shell = require("shell") local fs = require("filesystem") local args, options = shell.parse(...) local function pop(key, convert) local result = options[key] options[key] = nil if result and convert then local c = convert(result) if not c then error('invalid ' .. key .. ': could n...
local _M = {} local cjson = require "cjson" local lock = require "resty.lock" local trie = require "trie" local http = require "resty.http" local cache = require "resty.dns.cache" local os = require "os" local encode = cjson.encode -- ready to serve? local ready = false -- Kubernetes cluster domain for DNS local cl...
function Scene_CB(itemtag, toplayer, toptag, sublayertag, selgrouptag, selitemtag, dataindex) for i, it in pairs(LGlobal_SceneFunctions) do if it[1] == toptag then return it[3](itemtag, toplayer, toptag, sublayertag, selgrouptag, selitemtag, dataindex); end end end
local codeBlockMode = false -- Since this spans multiple lines, it needs to be on the outside -- convertLine: Returns valid HTML from markdown input function convertLine(line) -- Mode states local headingMode = false local emphasisMode = false local boldMode = false local codeMode = false local strikeMode = fals...