content stringlengths 5 1.05M |
|---|
local function recursive_tbl_update(base, new)
if new == nil then
new = {}
end
for key, value in pairs(new) do
if type(base[key]) == 'table' then
recursive_tbl_update(base[key], value)
else
base[key] = value
end
end
end
return {
recursive_tbl_update = recursive_tbl_update,
}
|
ring_rifle = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Cad Banes Luck",
directObjectTemplate = "object/tangible/wearables/ring/aakuan_ring.iff",
craftingValues = {},
customizationStringNames = {},
customizationValues = {},
skillMods = {
{"rifle_accuracy", 25},
{"rifle_hit_while_moving", 25}... |
local hibernate = "hibernate.cfg.xml"
--------------------------------------------------------------------------------
local cfgfile = io.open(hibernate, "r")
local buffer = cfgfile:read("*a")
cfgfile:close()
local host, database = buffer:match('<property name="hibernate.connection.url">jdbc:mysql://(%d%d?%d?%.%d%... |
ai = {lockX=0,lockY=0,distance = 10,aiTimer=0,maxAi=.05,
floor,
ceiling,
flapTimer=0, maxFlap =0.2}
function ai:lock(x,y)
self.lockX, self.lockY = x,y
end
function ai:update(x,y,movement,dt)
self.aiTimer = self.aiTimer+dt
self.flapTimer = self.flapTimer+dt
if self.aiTimer >= self.maxAi then
self.ai... |
local function Precursors(client, team)
local teamNumber = tonumber(team)
if not teamNumber then
--teamNumber = client:GetTeamNumber()
Log("Need team number")
end
GetGamerules():SwitchTeamType(teamNumber, kPrecursorTeamType)
end
CreateServerAdminCommand("Console_precursors", Pr... |
local main = {}
local json = require "dkjson"
local lunardrink = require "lunardrink"
function main.index(page)
page:redirect('index.html')
end
function main.make(page)
local drink = page.GET.drink or "maitai"
local tbl = lunardrink.mix_drink(drink)
local str = json.encode(tbl)
page:enable_cors()... |
---@class Clothing.ClothingPatch : zombie.inventory.types.Clothing.ClothingPatch
---@field public tailorLvl int
---@field public fabricType int
---@field public scratchDefense int
---@field public biteDefense int
---@field public hasHole boolean
---@field public conditionGain int
Clothing_ClothingPatch = {}
---@public... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local common = ReplicatedStorage.common
local lib = ReplicatedStorage.lib
local event = ReplicatedStorage.event
local PizzaAlpaca = require(lib.P... |
ENT.Base = "aw_weapon_base"
ENT.Type = "anim"
ENT.Author = "The HellBox"
ENT.Spawnable = false
ENT.ShootingAngle = Angle()
ENT.ShootingOffset = 30
ENT.AmmoAmount = 1
ENT.Cooldown = 3
function ENT:PostSetupDataTables()
self:NetworkVar( "Int", 3, "HookState" )
end
|
local cjson = require("cjson");
local redis = require("resty.redis");
local misc = require("misc");
local main = function ()
local rsp = {};
ngx.header["Access-Control-Allow-Origin"] = "*";
if "POST" ~= ngx.req.get_method() then
rsp["result"] = "405";
rsp["message"] = "method not allowed"... |
require('colorizer').setup {
'css';
'scss';
'javascript';
'json';
'yaml';
html = {
mode = 'foreground';
}
}
|
return {
id = "wcheadphones",
name = "Workclock's Headphones",
description = "For noobs.",
type = "hat",
rarity = 3,
hidden = false,
}
|
-- state variables
local speed = 0
local strafespeed = 0
local rotX, rotY = 0,0
local velocityX, velocityY, velocityZ
local startX, startY, startZ
-- configurable parameters
local options = {
invertMouseLook = false,
normalMaxSpeed = 2,
slowMaxSpeed = 0.2,
fastMaxSpeed = 12,
smoothMovement = true,
... |
NPC = {}
NPC.Jobs = {}
NPC.Jobs.ValidJobs = {
["unemployed"] = {
name = "Unemployed",
paycheck = 10
},
["ems"] = {
name = "EMS",
paycheck = 150,
whitelisted = false,
ranks = {
[1] = "EMT",
[2] = "Paramedic",
[3] = "Lieutenan... |
local previewers = require("telescope.previewers")
local Job = require("plenary.job")
local new_maker = function(filepath, bufnr, opts)
opts = opts or {}
filepath = vim.fn.expand(filepath)
Job:new({
command = "file",
args = { "--mime-type", "-b", filepath },
on_exit = function(j)
local mime_t... |
local base = require('imgui.Widget')
---@class xe.ToolPanel:im.Widget
local M = class('editor.ToolPanel', base)
local im = imgui
local wi = require('imgui.Widget')
function M:ctor()
base.ctor(self, 'Tools')
--self:setFlags(
-- im.WindowFlags.NoTitleBar,
-- im.WindowFlags.HorizontalScrollb... |
-- ==============
-- SIGNIFY BUBBLE
-- ==============
-- Created by datwaft <github.com/datwaft>
local settings = {
color = vim.g.bubbly_colors.signify,
style = vim.g.bubbly_styles.signify,
symbol = vim.g.bubbly_symbols.signify,
}
if not settings.color then
require'bubbly.utils.io'.warning[[[BUBBLY.NVIM] ... |
DEBUG = true
ConGuardInstances = {}
function init()
if (SERVER) then
addEvent("onPlayerNetworkTimeout", true)
addEvent("onPlayerNetworkInterruptionLimitReached", true)
addEventHandler(
"onPlayerResourceStart",
root,
function(resource)
if ... |
--[[
Copyright 2014-2015 The Luvit 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 law o... |
-- Main grid methods
local layouts = {}
-- Define monitor names for layout purposes
local display_home = "f.lux profile"
local display_laptop = "Color LCD"
local display_monitor = "Thunderbolt Display"
-- Define window layouts
-- Format reminder:
-- {"App name", "Window name", "Display Name", "unitrect", "fra... |
--------------------------------------------------------------------------------
-- Here is a handy Lua command line script for listing all nodes that are owned
-- by specific players (like steel doors, locked chests, etc.) in your map
-- database. Just change the following variables at the head of the script:
--
-- ... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
---------------------------------------------------------------------------------
--
-- @type EditorCommand
--
---------------------------------------------------------------------------------
local EditorCommand = Class( "EditorCommand" )
function EditorCommand.register( clazz, name )
editorCommandRegistryClass( c... |
--
-- Setup nvim-cmp.
--
local cmp = require'cmp'
local lspkind = require "lspkind"
lspkind.init()
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
formatting = {
format = lspkind.cmp_format {
with_text = true,
menu = {
buff... |
LibRoot.Imgui = SrcDir() .. "r1.render/imgui"
-- ==============================================================================
ModuleRefInclude["imgui"] = function()
includedirs
{
LibRoot.Imgui .. "/",
LibRoot.Imgui .. "/backends/",
LibRoot.Imgui .. "/freetype/",
LibRoot.Imgu... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule('Blizzard')
local _G = _G
function B:KillBlizzard()
if E.global.general.disableTutorialButtons then
_G.HelpOpenTicketButtonTutorial:Kill()
_G.HelpPlate:Kill()
_G.HelpPlateTooltip:Kill()... |
ITEM.name = "VSS Vintorez"
ITEM.description= "The VSS 'Vintorez' is issued primarily to Spetsnaz units for undercover or clandestine operations, a role made evident by its ability to be stripped down for transport in a specially fitted briefcase.\nThe weapon has an integral suppressor which wraps around the barrel.\nTh... |
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Priestess Delrissa", 585, 532)
if not mod then return end
mod:RegisterEnableMob(24553, -- Apoko
24554, -- Eramas Brightblaze
24555, -- Garaxxas
24556, -- Zelfan
24557, -- Kaga... |
local end_up = 0.35
local skill = Skill( "fire_ball" )
skill:SetDescription("Throw a fireball, which explodes on impact.")
skill:SetStages({ end_up })
skill:SetCastTime( 0.5 )
skill:SetMaxLive( 10 )
skill:SetCooldown( 10 )
skill:SetDamageType( "fire" )
local moveSpeed = 5000
local blastRange = 1000
local blastDamage =... |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {}
|
slot0 = class("MetaCharacterRepairLayer", import("...base.BaseUI"))
slot0.getUIName = function (slot0)
return "MetaCharacterRepairUI"
end
slot0.init = function (slot0)
slot0:initTipText()
slot0:initData()
slot0:findUI()
slot0:addListener()
end
slot0.didEnter = function (slot0)
slot0:doRepairProgressPanelAni()
... |
object_tangible_loot_npc_loot_disguise_makeup_kit_generic = object_tangible_loot_npc_loot_shared_disguise_makeup_kit_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_disguise_makeup_kit_generic, "object/tangible/loot/npc/loot/disguise_makeup_kit_generic.iff")
|
-- Link's collider
player = world:newCircleCollider(1300, 800, 40)
player:setCollisionClass("Player")
-- Player properties
player.width = 96 -- width of the animation frames
player.height = 96 -- height of the animation frames
player.speed = 360
player.isMoving = false
player.dir = "down"
player.item = 2 -- number c... |
modifier_mana_into_health = class(Modifier)
LinkLuaModifier("modifier_mana_into_health", modifier_mana_into_health)
function modifier_mana_into_health:OnCreated ()
self.GetModifierBonus = self.GetModifierBonus
self:SetVisible(true)
end
function modifier_mana_into_health:OnAttached()
if(self:GetCaster():GetId() ==... |
local Util = require('opus.util')
local Peripheral = Util.shallowCopy(_G.peripheral)
function Peripheral.getList()
if _G.device then
return _G.device
end
local deviceList = { }
for _,side in pairs(Peripheral.getNames()) do
Peripheral.addDevice(deviceList, side)
end
return deviceList
end
function Periph... |
---Model API documentation
---Model API documentation
---@class model
model = {}
---Cancels all animation on a model component.
---@param url string|hash|url the model for which to cancel the animation
function model.cancel(url) end
---Gets the id of the game object that corresponds to a model skeleton bone.
---The re... |
-- Minecraft Computercraft script for having a turtle build a cylindrical tower.
-- Assumes no obstructions, turtle starts from the base of the tower on the left side
-- and builds straight up.
-- Requires: nothing
-- Instructions:
-- 0) Fuel turtle
-- 1) Fill the inventory with blocks the tower shoud be made of
-- 2)... |
local modkeys = {}
--modkeys.super = 'Mod4'
--modkeys.ctrl = 'Control'
--modkeys.shift = 'Shift'
--modkeys.alt = 'Mod1'
return modkeys
|
return {
name = 'Sabalan Pipeline',
checkpoints = {
LinearTransform(Vec3(0.040810, 0.000000, 0.999167), Vec3(0.000000, 1.000000, 0.000000), Vec3(-0.999167, 0.000000, 0.040810), Vec3(-873.548828, 148.250992, -708.107422)),
LinearTransform(Vec3(-0.621267, 0.000000, 0.783599), Vec3(0.000000, 1.0000... |
cpgf.import("cpgf", "builtin.debug");
function overrideEventReceiver(receiver, room, env, driver)
local Room = room;
local Driver = driver;
local skin = env.getSkin();
local font = env.getFont("../../media/fonthaettenschweiler.bmp");
if font then
skin.setFont(font);
end
local window = env.addW... |
local terminalOverRednet = require("remoteShell.terminalOverRednet")
peripheral.find("modem", function(side)
rednet.open(side)
end)
-- TODO: mbs support? choosable startup program
-- TODO: arg checks
-- TODO: file transfer
-- TODO: folder/drive mounting
-- TODO: remote peripherals
-- TODO: client c... |
require("rrpg.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
function newfrmInstalled()
__o_rrpgObjs.beginObjectsLoading();
local obj = gui.fromHandle(_obj_newObject("form"));
local self = obj;
local ... |
gemai = {}
b.dofile("actions.lua")
b.dofile("context.lua")
b.dofile("entity.lua")
|
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
-- This test assumes that JIT is on, starts recording on 2-th iteration and
-- fails with "missing metamethod" message (grep... |
local g, opt = vim.g, vim.opt
opt.termguicolors = true
opt.background = "dark"
g.material_style = "darker"
require("material").setup({
popup_menu = "dark",
text_contrast = { darker = true },
contrast_widonws = { "packer", "fzf", "terminal" },
})
require("which-key").register({
["<leader>mm"] = {
"<cmd>l... |
require("ypcall") -- must be first, as it changes globals
require("asm")
require("testing")
local labels = asm.loadlabels("build/taus.lbl")
function test_chartEffConvert ()
local chartEffConvertDivisor
if labels.chartEffConvert == labels.div3 then
chartEffConvertDivisor = 3
elseif labels.chartEffConvert == label... |
scriptPath = chinGetScriptPath()
chiDefaultFloorObj = chiObjectCreate("CHI_WORLD_DEFAULTFLOOR")
chiDefaultFloorSurf = chiObjectLoadSurface(scriptPath.."/obj/D01_FloorTile.obj")
chiObjectAddSurface(chiDefaultFloorObj,chiDefaultFloorSurf)
chiDefaultFloorMat = chiMaterialCreate("CHI_WORLD_DEFAULTFLOOR")
chiDefaultFloo... |
--[[
TheNexusAvenger
Controls the UI for the timer and round loading.
--]]
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(Rep... |
local WIDGET, VERSION = 'CheckBox', 2
local GUI = LibStub('NetEaseGUI-2.0')
local CheckBox = GUI:NewClass(WIDGET, 'CheckButton', VERSION)
if not CheckBox then
return
end
function CheckBox:Constructor()
self:SetSize(16, 16)
--customized
self:SetBackdrop{
bgFile = [[Interface\BUTTONS\WHITE8X8.... |
local layerBase = require("games/common2/module/layerBase");
--[[
玩家头像功能层
]]
local HeadLayer = class(layerBase);
HeadLayer.Delegate =
{
};
HeadLayer.s_cmds = {
};
HeadLayer.ctor = function(self)
self:init();
end
HeadLayer.dtor = function(self)
end
HeadLayer.init = function (self)
if ... |
TestModule = {}
register_module(TestModule,"TestModule");
function TestModule.Init()
io.write("TestModule Init!\n");
io.write("Addr of pPluginManager " .. tostring(pPluginManager) .. "\n");
local pKernelModule = pPluginManager:FindKernelModule("NFCKernelModule");
io.write("Addr of NFCKernelModule " .. tostring(p... |
ENT.Type = "anim"
ENT.Base = "base_wire_entity"
ENT.PrintName = "Wire Keyboard"
ENT.Author = "Divran"
ENT.Contact = "www.wiremod.com"
ENT.Purpose = "Send key input to the server."
ENT.Instructions = "Click Use on it to activate it."
ENT.Spawnable = false
E... |
-- MONOXIDE UI LIB BETA 0.1 - DO NOT SHARE WITH ANYONE WHO IS NOT A BETA TESTER.
getgenv().MonoxideWindows = {}
local CoreGui = game:GetService("CoreGui")
if not MonoxideWindows then
MonoxideWindows = {}
end
for i,v in next, MonoxideWindows do
if CoreGui:FindFirstChild("MonoxideLib"):FindFirstChild(v) then
... |
include("shared.lua")
AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local ent=ents.Create(ClassName)
ent:SetPos(tr.HitPos+tr.HitNormal*50)
ent:Spawn()
ent:Activate()
ent.Owner=ply
ent:SetSkin(math.random(0,1))
ent:SetBodygroup(3,1)
return ent
end
ENT.Aerodynam... |
local K, C = unpack(select(2, ...))
local Module = K:GetModule("Skins")
function Module:ReskinSpy()
if not C["Skins"].Spy then
return
end
if not K.CheckAddOnState("Spy") then
return
end
if Spy_MainWindow.Background then
Spy_MainWindow.Background:CreateBorder()
Spy_MainWindow:StripTextures()
else
Spy_... |
--[[
Jason A. Petrasko forked from josip on the love2d forums,
posted here: https://love2d.org/forums/viewtopic.php?f=5&t=89025&hilit=love+editor
and on GH here: https://github.com/jmiskovic/indeck
no license attached anywhere?
]]
-- make sure we have a class commons implementation!
if (class == nil) then
class_commo... |
--- === cp.apple.finalcutpro.content.Clip ===
---
--- Represents a clip of media inside FCP.
local axutils = require("cp.ui.axutils")
local Table = require("cp.ui.Table")
local Clip = {}
Clip.mt = {}
Clip.type = {}
--- cp.apple.finalcutpro.content.Clip.type.filmstrip
--- Constant
--- A constant for clips which... |
-- STRIP CAMERA 1
stripCamera1 = nil
stripCamera1Col = nil
stripCamera1ColWarn = nil
stripCamera1Speed = nil
function resourceStart(res)
-- STRIP CAMERA 1
stripCamera1 = createObject(1293, 1342.5859375, -1471.4306640625, 12.939081573486, 0, 0, 347.48364257813)
exports.pool:allocateElement(stripCamera1)
... |
-- Fetching script: copy all files necessary for the MIT Linux release
-- of the scheduler.
-- The `root` variable points to the Lua framework's root directory.
root = "../luafwk"
-- List of file copies to perform:
--
-- * ">" lines introduce a new target directory;
-- paths are relative to the current working dir... |
local sql = read_file_in_plugin_dir("sequences.sql")
local key = "sequences"
local function check(host, unix_ts)
local result = storage:query(sql, host, unix_ts)
if not(result.rows[1] == nil) and not(result.rows[1][1] == nil) then
local sequence_name, remaining_capacity = result.rows[1][1], result.rows[1][2]
... |
azura_black_ethereum = class({})
--------------------------------------------------------------------------------
-- Ability Start
function azura_black_ethereum:OnSpellStart()
-- unit identifier
local caster = self:GetCaster()
local target = self:GetCursorTarget()
-- get references
local max_target = self:GetSpe... |
Config = {}
Config.PlateLetters = 4
Config.PlateNumbers = 4
Config.PlateUseSpace = false
Config.SpawnVehicle = true -- TRUE if you want spawn vehicle when buy
Config.TestDrive = true -- TRUE if you want enable test drive
Config.TestDriveTime = 10 -- TIME in SEC
Config.Build2060 = true
Config.Locale = 'en' |
--[[--------------------------------------------------------------------------
Copyright (c) 2009-2021, Google LLC
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 sour... |
--[[
Copyright 2017 wrxck <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local statistics = {}
local mattata = require('mattata')
local redis = require('mattata-redis')
function statistics:init()
statistics.help = [[/statistics - Shows statistical informatio... |
---
-- Created by IntelliJ IDEA.
-- @author callin2@gmail.com
-- @copyright 2012 임창진
--
local storyboard = require("storyboard")
local PS = require("classes.ParticleSugar").instance()
local scene = storyboard.newScene()
function scene:createScene(event)
end
-- Called immediately after scene has moved onscreen:
func... |
local ffi = require "ffi"
local ffi_cdef = ffi.cdef
ffi_cdef[[
typedef struct ripemd160_ctx {
uint32_t state[5];
uint64_t count;
uint8_t block[64];
unsigned int index;
} RIPEMD160_CTX;
]] |
local net_ReadEntity = net.ReadEntity
local net_ReadString = net.ReadString
local net_ReadUInt = net.ReadUInt
local net_Receive = net.Receive
local tostring = tostring
local isnumber = isnumber
local IsValid = IsValid
PLib:Precache_G("net.Start", net.Start)
local net_Start = PLib:Get_G("net.Start")
local math_random =... |
local uv = require('uv')
local parseUrl = require('url').parse
local connect = require('coro-net').connect
local tlsWrap = require('coro-tls').wrap
local rex = require('rex')
local getaddrinfo = require('./utils').getaddrinfo
local httpCodec = require('http-codec')
local wrapper = require('coro-wrapper')
local httpAuth... |
---Find primes smaller than this number:
LIMIT=100000
primes={}
---Checks to see if a number is prime or not
function isPrime(n)
for i, prime in pairs(primes) do
if prime*2 > n then break end
if (n%prime == 0) then return end
end
table.insert(primes, n)
end
---Print all the prime numbers within range
for i=2... |
--- Utility module for loading files into tables and
-- saving tables into files.
-- Implemented separately to avoid interdependencies,
-- as it is used in the bootstrapping stage of the cfg module.
--module("luarocks.persist", package.seeall)
local persist = {}
package.loaded["luarocks.persist"] = persist
local util... |
workspace "SBXS"
language "D"
configurations { "Test" }
location "build"
filter "configurations:Test"
flags { "UnitTest", "CodeCoverage" }
optimize "Off"
project "UnitTests"
kind "ConsoleApp"
files {"src/run_unit_tests.d", "src/sbxs/**.d"}
targetdir "build"
|
--[[
-- Clone table format
["CLONED GAME ID"] = {
[CLONE REVISION] = { id = "ORIGINAL GAME ID", version = REVISION }
}
]]
return {
["GTME01"] = {
[2] = { id = "GALE01", version = 2 }, -- UnclePunch Training Mode
},
["MNCE02"] = {
[2] = { id = "GALE01", version = 2 }, -- Melee Netplay Community Build
},
["SDR... |
-- mod-version:2 -- lite-xl 2.0
local core = require "core"
local style = require "core.style"
local command = require "core.command"
local keymap = require "core.keymap"
local DocView = require "core.docview"
local config = require "core.config"
-- Colors can be configured as follows:
-- underline color = `style.b... |
gen_medium_win_s01_loot_deed = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Medium Generic House, Style 1 (Windowed) Blueprint",
directObjectTemplate = "object/tangible/loot/loot_schematic/gen_md_win_01_loot_schem.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {}
... |
local loader = function(loader, ...)
local record = require"_cqueues.dns.record"
for k, v in pairs(record.class) do
if type(k) == "string" then
record[k] = v
end
end
for k, v in pairs(record.type) do
if type(k) == "string" then
record[k] = v
end
end
for k, v in pairs(require"cqueues.dns.packet".s... |
local constants = require("constants")
local styles = data.raw["gui-style"].default
styles.rb_list_box_item = {
type = "button_style",
parent = "list_box_item",
left_padding = 4,
right_padding = 4,
horizontally_squashable = "on",
horizontally_stretchable = "on",
disabled_graphical_set = styles.list_box_... |
--AUTOCOMPLETE FOR IDEA DO NOT REMOVE OR REQUIRE
---@class DRAW_PIXELS
drawpixels = {}
---Method for drawing circle:
function drawpixels.circle(buffer_info, pox_x, pox_y, diameter, red, green, blue, alpha)end
---Method for drawing filled circle:
function drawpixels.filled_circle(buffer_info, pos_x, pos_y, diameter, re... |
local naughty = require("naughty")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gears = require("gears")
local theme_path = string.format("%s/.config/awesome/themes/%s/", os.getenv("HOME"), "something")
local theme = {}
------------
-- colors --
---... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local model = require "game.model.role_model"
local CTask = require "game.model.role.task"
local config = require "game.template.task"
local countMgr = require "game.model.countMgr"
local timetool =... |
AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "MP5"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 2
SWEP.SlotPos = 0
SWEP.IconLetter = "x"
killicon.AddFont("weapon_mp52", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255))
end
SWEP.Base = "weapon_cs_base2"
SWEP.Spawnable = true
SWEP.Adm... |
local _0_0 = nil
do
local name_23_0_ = "conjure.client.clojure.nrepl"
local loaded_23_0_ = package.loaded[name_23_0_]
local module_23_0_ = nil
if ("table" == type(loaded_23_0_)) then
module_23_0_ = loaded_23_0_
else
module_23_0_ = {}
end
module_23_0_["aniseed/module"] = name_23_0_
module_23_0_["... |
--the goal
--[[spawn weather entity checker to instantly fall to ground to find a column to spawn snow in
create table for snow to spawn
when player enters new node spawn new entities
create column of snow
repeat
when player goes out radius delete particlespawner
]]
--radius of rain
local rad = 7
weather = 2
loc... |
local socket = require "levent.socket"
local levent = require "levent.levent"
local seri = require "levent.tpseri"
local dns = require "levent.dns"
local mt = {}
mt.__index = mt
BUFLEN = 4096
mt.get_base_header = function(self)
local start_pos, end_pos
while true do
self.client_buffer = self.client... |
---@class ItemBoostGroup
local ItemBoostGroup = {
ID = "",
Entries = {},
Limit = -1,
Applied = 0,
Chance = 100,
Type = "ItemBoostGroup"
}
ItemBoostGroup.__index = ItemBoostGroup
---@param boost ItemBoost
---@param vars table
local function SetVars(boost, vars)
if vars ~= nil then
if vars.Limit ~= nil then bo... |
--[[
This file is a general memory stream interface.
The primary objective is to satisfy the needs of the
truetype parser, but it can be used in general cases.
It differs from the MemoryStream object in that it can't
write, and it has more specific data type reading
convenience calls.
Mo... |
log = {};
function log.format(...)
local s = "";
local first = true;
for _, v in pairs({...}) do
if first then
s = tostring(v);
first = false;
else
s = s .. " " .. tostring(v);
end
end
return s;
end
function log.critical(...)
obe.Debu... |
local _=BaseEntity.new("help_screen",true)
_.active=false
_.drawUnscaledUi=function()
local message="F12 - debugger"
love.graphics.print("Help:", 0, 80)
love.graphics.print(message, 0, 100)
end
return _
|
local cutils = require 'libcutils'
local cVector = require 'libvctr'
local basic_serialize = require 'Q/UTILS/lua/basic_serialize'
local should_save = require 'Q/UTILS/lua/should_save'
-- TODO Indrajeet make 2 args, one is name of table, other is filename
-- function internal_save(name, value, saved)
local function i... |
keyCodes = {[0] = "leftMouse", [1] = "middleMouse", [2] = "rightMouse", [13] = "enter", [276] = "left",
[273] = "up", [275] = "right", [274] = "down", [304] = "shift", [32] = "space", [8] = "backspace", [303] = "shift", [301] = "capslock"}
shiftKeyCodes = {[39] = "\"",[44] = "<",[45] = "_",[46] = ">",[47] = "?",[48] =... |
local AddonName, AddonTable = ...
AddonTable.shadowlab = {
-- Ambassador Hellmaw
27885, -- Soul-Wand of the Aldor
27887, -- Platinum Shield of the Valorous
27888, -- Dream-Wing Helm
27889, -- Jaedenfire Gloves of Annihilation
27908, -- Leggings of Assassination
27884, -- Ornate Boots
--... |
--[[
With Luade, you can share text, URLs and files with your scripts.
For that, just create a script IN THIS DIRECTORY. Then, when you share a text, an URL or a file, you can select 'Run Lua Script' and select the script you created.
--]]
sharesheet.string() -- Retrieves text
sharesheet.url() -- Retrieves an URL
sha... |
local keymap = require 'utils'.keymap
-- Set barbar's options
vim.g.bufferline = {
-- Enable/disable auto-hiding the tab bar when there is a single buffer
auto_hide = false,
-- Enable/disable current/total tabpages indicator (top right corner)
tabpages = true,
-- Enable/disable close button
closable = fals... |
--
-- Quiz: sample project
-- By TiagoDanin
-- Version: 1.0.0
--[==[
The MIT License (MIT)
Copyright (c) 2016 Tiago Danin
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 res... |
function get_info(cmd, default)
local f = io.popen (cmd, "r");
local rev = nil
if f ~= nil then
rev = f:read("*a")
f:close ();
end
if rev == nil or rev == "" then
rev = default
end
return rev
end
-- NOTE: cal also be found in '.git/HEAD'
BRANCH_PATH = get_info("git rev-parse --abbrev-re... |
local routing = require 'web.middleware.routing'
local describe, it, assert = describe, it, assert
describe('web.middleware.routing', function()
it('', function()
assert.not_nil(routing)
end)
end)
|
-- Copyright 2017-2022 Jason Tackaberry
--
-- 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 agr... |
Tags_prototype = function()
local this = {}
this.__public_static = {
-- Public Static Variables
-- Public Static Funcs
}
this.__private_static = {
-- Private Static Variables
-- Private Static Funcs
}
this.__public = {
-- Public Variables
list = {},
key_bindings = {},
sele... |
----
-- Tests for the xlsxwriter.lua worksheet class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
plan(10)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require "xlsxwriter.worksheet"
local Sharedstrings = require "xlsxwriter.sharedstrings"
lo... |
----------------------------------------
-- Outfitter Copyright 2006-2018 John Stephen
-- All rights reserved, unauthorized redistribution is prohibited
----------------------------------------
Outfitter.Debug =
{
InventoryCache = false,
EquipmentChanges = false,
EquipmentManager = false,
NewItems = fals... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://assets-cdn.github.com">
<link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
<link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
<link rel="dns-prefetch" href=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.