content stringlengths 5 1.05M |
|---|
local metric = monitoring.counter("add_particle_calls", "number of add_particle calls")
minetest.add_particle = metric.wrap(minetest.add_particle)
|
function erato2(n)
if n < 2 then return {} end
if n < 3 then return {2} end
local t = {}
local lmt = (n - 3) / 2
local sqrtlmt = (math.sqrt(n) - 3) / 2
for i = 0, lmt do t[i] = 1 end
for i = 0, sqrtlmt do if t[i] ~= 0 then
local p = i + i + 3
for j = (p*p - 3) / 2, lmt, p do t[j] = 0 end end end
... |
require "lfs"
local attributes = lfs.attributes("input.txt")
if attributes then
print(path .. " was last modified " .. os.date("%c", attributes.modification) .. ".")
-- set access and modification time to now ...
lfs.touch("input.txt")
-- ... or set modification time to now, keep original access time
... |
local util = require"lapis.util"
local keys = require "keys.file"
return function(self)
do
local key = self.params.key
self.access = keys.use(key)
end
local function file_is(path, t) return os.execute(('[ -%s "%s" ]'):format(t, path)) == 0 end
self.virtual = "/" .. util.unescape(self.params.splat or "... |
wrk.method = "POST"
wrk.headers["Content-Type"] = "multipart/form-data; boundary=----WebKitFormBoundaryX3bY6PBMcxB1vCan"
bodyhead = "------WebKitFormBoundaryX3bY6PBMcxB1vCan"
bodyhead = bodyhead .. '\r\n'
bodyhead = bodyhead .. [[Content-Disposition: form-data; name="file"; filename="bench.lua"]]
bodyhead = bodyhead ..... |
function GetDesire()
return (0.0)
end
function Think()
end
|
local worldBossReplay = {}
local worldBossModule = require "module.worldBossModule";
local Time = require("module.Time")
function worldBossReplay:Start(data)
if data then
self.idx = data.idx
else
self.idx = self.savedValues.idx or 1
end
self.savedValues.idx = self.idx
self:initUi()... |
local Util = require(script.Parent.Parent.Shared.Util)
local color3Type = Util.MakeSequenceType({
Prefixes = "# hexColor3 ! brickCOlor3";
ValidateEach = function(value, i)
if value == nil then
return false, ("Invalid or missing number at position %d in Color3 type."):format(i)
elseif value < 0 or value > 255 ... |
dir('bin', '755')
sym('bin/plumb', '../etc/plumb')
dir('boot', '755')
dir('dev', '755')
dir('etc', '755')
dir('home', '755')
dir('mnt', '755')
dir('proc', '755')
dir('root', '700')
dir('run', '755')
dir('sys', '755')
dir('tmp', '755')
dir('var', '755')
dir('var/db', '755')
dir('var/empty', '755')
dir('var/log', '755')
... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- B A T C H E X P O R T P L U G I N --
-----------------------------------------------------------------------------... |
local ls = require("luasnip")
local i = ls.insert_node
local s = ls.snippet
local t = ls.text_node
local f = ls.function_node
local cxx_hello_world = s({ trig = "hello", dscr = "Basic hello world" }, {
t({
"#include <stdio.h>",
"",
"int main(int argc, char** argv)",
"{",
' printf("Hello, World!\\n");',
... |
object_static_structure_content_exar_kun_torture_table = object_static_structure_content_shared_exar_kun_torture_table:new {
}
ObjectTemplates:addTemplate(object_static_structure_content_exar_kun_torture_table, "object/static/structure/content/exar_kun_torture_table.iff")
|
return {'furie','furieus','furore','furies','furieuze','furieuzer','furien','furieust'} |
#!/usr/bin/env luajit
GTop = require("lgi").GTop
GTop.glibtop_init()
-- MEM
mem = GTop.glibtop_mem()
swap = GTop.glibtop_swap()
GTop.glibtop_get_mem(mem)
GTop.glibtop_get_swap(swap)
local function mb(i)
return i / (2^10)
end
print()
print("Total: ", mb(mem.total))
print("Used: ", mb(mem.used - mem... |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP")
RegisterCommand('rebocar', function(source, args, rawCommand)
local user_id = vRP.getUserId({source})
if user_id ~= nil then
local player = vRP.getUserSo... |
-- Init.lua
-- Written by KyrosKrane Sylvanblade (kyros@kyros.info)
-- Copyright (c) 2015-2020 KyrosKrane Sylvanblade
-- Licensed under the MIT License, as per the included file.
-- Addon version: @project-version@
-- This file initializes some settings for Annoying Popup Remover.
--#################################... |
return function()
local isAlive = require(script.Parent.isAlive)
local function withMockCharacter(callback)
local character = Instance.new("Model")
character.Parent = workspace
character.Name = "Character"
local humanoid = Instance.new("Humanoid")
humanoid.Parent = character
callback(character)
char... |
--[[
Luci configuration model for statistics - collectd df plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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... |
package.path = package.path .. ";./test/?.lua;./lua/?.lua"
require "Json"
function test1()
for i = 1, 10 do
print("In Test1: " .. tostring(i))
end
end
function test2(first, last)
for i = first, last do
print("In Test2: " .. tostring(i))
end
end
function sum2(a, b)
local result =... |
classer = require "classer"
local coin = {}
coin.Coin = classer.ncls()
function coin.Coin:_init(world, radius, x, y, tileW, tileH)
self.radius = radius
self.width = radius * 2
self.height = radius * 2
self.x = x
self.y = y
self.ctype = "coin"
self.world = world
self.ox = tileW/2
self.oy = tileH/2
world:add... |
local _, Engine = ...
local L = Engine:NewLocale("enUS")
if not L then return end
---------------------------------------------------------------------
-- System Messages
---------------------------------------------------------------------
-- Core Engine
L["Bad argument #%d to '%s': %s expected, got %s"] = true
L["... |
print("hello, world!")
--> =hello, world!
print(1+2)
--> =3
print(1 == 1.0)
--> =true
print(1, 2)
--> =1 2
print("hello," .. " " .. "world!")
--> =hello, world!
local function max(x, y)
if x > y then
return x
end
return y
end
print(max(2, 3), max(3, 2))
--> =3 3
local function sum(n)
local s = 0
... |
local T, C, L, G = unpack(select(2, ...))
local addon_name = G.addon_name
local font = G.Font
--[[------------------------
-- Group Inspect --
------------------------]]--
party_cd = LibStub("AceAddon-3.0"):NewAddon("party_cd")
if not party_cd then return end
party_cd.Roster = {}
party_cd.Frames = {}
party... |
-- This file contains all commands and chat types of Modern RP Schema.
nut.command.add("gunlicense", {
onRun = function(client, arguments)
local char = client:getChar()
local class = char:getClass()
local classData = nut.class.list[class]
if (classData.law) then
traceData = {}
traceData.start = client:G... |
--------------------------------------------------------------------------------
--- LuaSTG Sub 键盘输入
--- LuaSTG Sub keyboard input
--------------------------------------------------------------------------------
---@class lstg.Input.Keyboard
local M = {}
-------------------------------------------------------... |
local get_player_by_name = minetest.get_player_by_name
local name
local hp
local generic_stat
-- hierarchy = local table of players - player - status value
local stats = {}
--[[
health - how healthy you are
hunger - how hungry you are
thirst - how thirsty you are
exhaustion - can limit your speed/stamina
panic - how... |
--[[
Functions
]]
function rankInfos(group, rank)
if not group or not rank then return {} end
local infos = MySQL.single.await([[
SELECT *
FROM ??
WHERE ?? = ? AND ?? = ?
]],
{ "groups_ranks", "group", group, "rank", rank })
if not infos then return {} end
retur... |
--[[
Copyright 2018 American Megatrends Inc.
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 a... |
function gen_error_obj(status)
local code = status or 1
local message = ""
if code == 1 then
message = "success"
elseif code == 3 then
message = "Authentication Failure"
elseif code == 4 then
message = "Permission denied"
elseif code == 5 then
message = "File/Folder not exist"
elseif code ... |
-- MIT License
-- Copyright (c) 2019 Tsukanov Alexander
-- 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, mod... |
local pretty = require 'core.pretty'
describe('core.pretty', function()
local dump = pretty.dump
it('dump nil', function()
assert.equals('nil', dump())
end)
it('dump default', function()
local cases = {
['1'] = 1,
['"a"'] = 'a',
['true'] = true,
... |
HarmonicsTest1.luaprint("############### Test of orthogonality")
N = 1000
Nt = N
Nv = 2*N
dtheta = math.pi/Nt
dvaphi = 2.0*math.pi/Nv
ell = 2
m = 1
ellp = 2
mp = 1
intgl = 0.0
for i=0,(Nt-1) do
theta = dtheta/2.0 + i*dtheta
for j=0,(Nv-1) do
vaphi = dvaphi/2.0 + j*dtheta
Y1 = chiYlm(ell,m,th... |
ITEM.name = "Тяжелый оруженый мусор"
ITEM.desc = "Свалка больших элементов конструкции оружия и механических частей в очень поврежденном состоянии. \n\nХАРАКТЕРИСТИКИ: \n-технологическое приспособление \n-используется для крафта"
ITEM.price = 1820
ITEM.exRender = false
ITEM.weight = 1.86
ITEM.model = "models/kek... |
local screenWidth, screenHeight = guiGetScreenSize()
local relativeScale, relativeFontScale = math.min(math.max(screenWidth/1600, 0.5), 1), math.min(math.max(screenWidth/1600, 0.85), 1)
local notifications = {}
notifications.list = {}
notifications.offset = 5
notifications.padding = 10
notifications.fontScale = 1
notif... |
-- This file is a part of the LibCVC project.
-- It is subject to the license terms in the LICENSE file found
-- in the top-level directory of this distribution.
-- This simple example shows how to resize an image using LibCVC.
-- No external dependencies are required execept for Alien (a Lua binding to libffi).
-- To... |
-- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Shared.Rpc", function (namespace)
namespace.class("EmptyIncomingRpc", function (namespace)
return {
__inherits__ = function (out)
return {
out.Slipe.Shared.Rpc.IRpc
}
end,
__metadata__ = f... |
local module = {}
function module.init(modName)
module.file = io.open(modName .. ".log", "w")
end
function module.write(message, level)
level = level or "INFO"
module.file:write(os.date("%Y-%m-%d %H:%M") .. " " .. level .. " " .. tostring(message) .. "\n")
module.file:flush()
end
return module |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "First Aid Kit"
ITEM.model = Model("models/firstaid/item_firstaid.mdl")
ITEM.description = "A basic first aid kid used for treating wounds and injuries. Used for healing limbs."
ITEM.category = "Medical"
IT... |
local config = require("waf.config")
local redis = require "resty.redis"
local cjson = require "cjson"
ip = ngx.req.get_post_args()["ip"]
type = ngx.req.get_post_args()["type"]
local red = redis:new()
red:set_timeouts(2000) -- 2 sec
local ok, err = red:connect("127.0.0.1", 6379)
if not ok then
ngx.say("failed to ... |
NeP.Config = {}
local Config = NeP.Config
local data = {}
function Config.Load(tbl)
--debug.print('Config Data Loaded', 'Config')
if tbl == nil then
NePData = {}
data = NePData
else
data = tbl
end
end
function Config.Read(key, ...)
--debug.print('Reading Config Key: ' .. key, 'Config')
key = t... |
style =
{["off_color"] = "000",
["on_color"] = "000",
["line_color"] = "000",
["line_width"] = "2"};
red_style =
{["off_color"] = "000",
["on_color"] = "f00",
["line_color"] = "f00",
["off_line_color"] = "000",
["line_width"] = "3"};
text_style = {["... |
--- @module DataLoader.Dictionary
-- Provides definitions for the Dictionary class, which stores:
-- 1) The map from word strings to their indices.
-- 2) The map from word indices to their vector representation.
require 'torch'
-- The package/class variable
local Dictionary = {}
-------------------- Member Methods... |
local files = require 'files'
local lang = require 'language'
return function (uri, callback)
local state = files.getState(uri)
if not state then
return
end
if not state.ast.docs then
return
end
for _, doc in ipairs(state.ast.docs) do
if doc.type ~= 'doc.field' th... |
--[[
© 2016-2017 TeslaCloud Studios
See license in LICENSE.txt.
--]]
do
local hexDigits = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"}
-- A function to convert a single hexadecimal digit to decimal.
function util.HexToDec(hex)
if (isnumber(hex)) then
return hex
end
... |
-- support for i18n
local S = armor_i18n.gettext
local armor_stand_formspec = "size[8,7]" ..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
default.get_hotbar_bg(0,3) ..
"list[current_name;armor_head;3,0.5;1,1;]" ..
"list[current_name;armor_torso;4,0.5;1,1;]" ..
"list[current_name;armor_legs;3,1.5... |
vim.o.bg = 'dark'
local colors = {
none = {'none','none'},
-- base values
bg_main = {"#000000",0},
fg_main = {"#ffffff",255},
bg_dim = {"#100f10",15},
fg_dim = {"#e0e6f0",226},
bg_alt = {"#191a1b",25},
fg_alt = {"#a8a8a8",169},
-- specifically for on/off states and must be combined with
-- themselves, though... |
return require('src.lua-cor.pack')
:new('src.lua-cor')
:modules(
'arr',
'ass',
'bro',
'cnt',
'com',
'lay',
'log',
'map',
'obj',
'typ',
'vec',
'wrp') |
function onCreate()
-- background shit
makeLuaSprite('whitebg', 'whitebg', -700, -500);
setScrollFactor('whitebg', 1, 1);
addLuaSprite('whitebg', false);
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage
e... |
require 'globals'
require 'assets'
local Menu = require 'gamestates.menu'
local Game = require 'gamestates.game'
function love.load()
GS.switch(Menu)
GS.registerEvents()
end
function love.update(dt)
end
function love.draw()
if GS.current() == Menu then
love.graphics.print('menu')
elseif GS.current() == Game ... |
local M = {}
local sqlite3 = require('lsqlite3')
local db = sqlite3.open('Yatay.db')
local exist_stmt
local insert_stmt
local update_stmt
M.exist = function(project, name)
exist_stmt = assert(db:prepare('SELECT * FROM Yatay WHERE project = ? AND block = ?'))
assert(exist_stmt:bind_values(project, name) == sqlite3... |
object_tangible_item_beast_converted_pugoriss_decoration = object_tangible_item_beast_shared_converted_pugoriss_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_pugoriss_decoration, "object/tangible/item/beast/converted_pugoriss_decoration.iff")
|
local export = {}
local tt = {
["Ꭰ"]="a", ["ꭰ"]="a",
["Ꭱ"]="e", ["ꭱ"]="e",
["Ꭲ"]="i", ["ꭲ"]="i",
["Ꭳ"]="o", ["ꭳ"]="o",
["Ꭴ"]="u", ["ꭴ"]="u",
["Ꭵ"]="v", ["ꭵ"]="v",
["Ꭶ"]="ga", ["ꭶ"]="ga",
["Ꭷ"]="ka", ["ꭷ"]="ka",
["Ꭸ"]="ge", ["ꭸ"]="ge",
["Ꭹ"]="gi", ["ꭹ"]="gi",
["Ꭺ"]="go", ["ꭺ"]="go",
["Ꭻ"]="gu", ["ꭻ"]="gu... |
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! *
---@meta
---
---[4.7]font atlas[parent:]
---
---@class FontAtlas
FontAtlas = {}
---
---[4.7]get font ascender
---
--- @return int
--- @nodiscard
function FontAtlas:getFontAscender() end
---
---[4.7]get glyph
---
--- @param arg0 int
--- @return Gly... |
------------------------------------------------
----[ POINTS NAME ]--------------------
------------------------------------------------
local PointsName = SS.Commands:New("PointsName")
// Branch flag
SS.Flags.Branch("Server", "PointsName")
// Points name command
function PointsName.Command(Player, Args)
local B... |
_CAState = require("state")
local settsvals = { --A table to convert settings2.txt line number to a setting name
"_CAGridW",
"_CAGridH",
"_CAAILevel",
"_CAPlayer1",
"_CAPlayer2",
"_CAPlayer3",
"_CAPlayer4"
}
local function checkValidPlayers() --Makes sure that at least 2 players are present
local pc ... |
workspace "BigBaseV2"
architecture "x64"
startproject "BigBaseV2"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}"
IncludeDir = {}
IncludeDir["fmtlib"] = "vendor/fmtlib/include"
IncludeDir["json"] = "vendor/json/single_include"
IncludeDir["MinHook"] = "vendo... |
local res = {}
res[#res+1] = arg[1]
for i = 2, #arg do
local cmd = arg[i]
if cmd:sub(1, 1) == '-' then
local k, v
local pos = cmd:find('=', 1, true)
if pos then
k = cmd:sub(2, pos - 1)
v = cmd:sub(pos + 1)
else
k = cmd:sub(2)
... |
--[[
module: ColorConst
author: DylanYang
time: 2021-03-26 17:07:07
idea: Sets the usual colors that current project needs
]]
local _M = Class("ColorConst")
_M.singleton = true
local const = _M.public.static.readonly
local static = _M.public.static
--The following common colors can be customized ac... |
local _={}
_.name="Actionbar"
_.new=function(options)
if options==nil then options={} end
options.isService=true
local r=BaseEntity.new(options)
r.isUiDrawable=true
r.editorVisible=false
Entity.afterCreated(r,_,options)
return r
end --new
_.drawUi=function(bar)
local player=CurrentPlayer
if player==... |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/9
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/button_press_emulation.md
-- Item: Use Case 1: Main F... |
--加属性,每个回合结束开始结算cd
function onStart(target, buff)
add_buff_parameter(target, buff, 1)
end
function onPostTick(target, buff)
if buff.not_go_round > 0 then
return
end
buff.remaining_round = buff.remaining_round - 1;
if buff.remaining_round <= 0 then
UnitRemoveBuff(buff);
end
end
function onEnd(target, buff)
... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
function getIdentity(source, callback)
local identifier = GetPlayerIdentifiers(source)[1]
MySQL.Async.fetchAll('SELECT identifier, firstname, lastname, dateofbirth, sex, height FROM `users` WHERE `identifier` = @identifier', {
['@identifi... |
local HomieCommon = {}
HomieCommon.__index = HomieCommon
------------------------------------------------------------------------------
local function FormatInteger(v)
return string.format(math.floor(tonumber(v)))
end
local function tointeger(v)
return math.floor(tonumber(v))
end
local function toboolean(... |
local on_attach = require'completion'.on_attach
require'lspconfig'.tsserver.setup {on_attach = on_attach}
require'lspconfig'.clangd.setup {
on_attach = on_attach,
root_dir = function() return vim.loop.cwd() end
}
require'lspconfig'.pyls.setup {on_attach = on_attach}
require'lspconfig'.julials.setup {on_attach... |
includeFile("custom_content/building/mustafar/terrain/creature_lairs/serverobjects.lua")
--New
includeFile("custom_content/building/mustafar/terrain/must_bridge_rock_arch_50m.lua")
includeFile("custom_content/building/mustafar/terrain/must_bridge_rock_arch_70m.lua")
includeFile("custom_content/building/mustafar/terrai... |
local moduleName = ... or "web"
local M = {}
_G[moduleName] = M
M.extmap = {
txt = "text/plain",
htm = "text/html",
html = "text/html",
gif = "image/gif",
jpg = "imge/jpeg",
png = "image/png",
lua = "text/html",
ico = "image/x-icon",
}
M.reqTypes = {
GET = true,
POST = true
}
M... |
name = "Simple Status Display"
version = "1.1"
description = "Showing Hunger and Health under your mouse!"
author = "Kobayashi Yashiro"
forumthread = ""
api_version = 10
priority = 0
icon_atlas = "modicon.xml"
icon = "modicon.tex"
dont_starve_compatible = false
reign_of_giants_compatible = false
dst_compatib... |
--[[ Author: EarthSalamander #42
Date: 29.01.2018 ]]
courier_movespeed = class({})
function courier_movespeed:GetIntrinsicModifierName()
return "modifier_courier_hack"
end
LinkLuaModifier("modifier_courier_hack", "components/abilities/courier", LUA_MODIFIER_MOTION_NONE)
modifier_courier_hack = modifier_courier_h... |
--[[ A plain implementation of SGD
ARGS:
- `opfunc` : a function that takes a single input (X), the point
of a evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `config` : a table with configuration parameters for the optimizer
- `config.learningRate` : learning rate
- `config.le... |
ITEM.name = "Shotgun Shells"
ITEM.model = "models/Items/BoxBuckshot.mdl"
ITEM.ammo = "buckshot" -- type of the ammo
ITEM.ammoAmount = 15 -- amount of the ammo
ITEM.description = "shotgunammoDesc"
ITEM.classes = {CLASS_EMP, CLASS_SGS, CLASS_REBEL}
ITEM.factions = {FACTION_CONSCRIPT}
ITEM.price = 45
if (CLIENT)... |
-- incredible-gmod.ru
-- simple connections-log example
function IncredibleConnectLogs_DayCount()
local current_date = os.date("!%d_%m_%Y", os.time() + 3 * 60 * 60) -- MSK TimeZoned TimeStamp
local file_path = "incredible_connectlogs/all_"..current_date..".txt"
return file_path, file.Read(file_path, "DATA") or 0
e... |
require"imlua"
require"cdlua"
require"cdluaim"
local canvas = cd.CreateCanvas(cd.NATIVEWINDOW, nil)
canvas:Activate()
local w, h = canvas:GetSize()
local image = im.ImageCreate(w, h, im.RGB, im.BYTE)
image:cdCanvasGetImage(canvas, 0, 0)
error = image:Save("screencapture.jpg", "JPEG")
image:Destroy()
if (er... |
function join(c, s)
local result = ""
if s == nil then
s = ", "
end
for i,v in ipairs(c) do
if i > 1 then
result = result .. s .. v
else
result = result .. v
end
end
return result
end
function format_time(secs)
if secs < 60 then
return secs .. "s"
... |
local Util = require('opus.util')
local device = _G.device
local os = _G.os
local peripheral = _G.peripheral
local term = _G.term
local args = { ... }
local mon = args[1] and device[args[1]] or peripheral.wrap(args[1]) or
peripheral.find('monitor') or
error('Syntax: debug <monitor>')
mon.clear()
... |
--doc see http://wiki.nginx.org/HttpCoreModule#.24uri
function catch(what)
return what[1]
end
function try(what)
status, result = pcall(what[1])
if not status then
what[2](result)
end
return result
end
local ok = nil
local pid = nil
local sig = nil
local doc = nil
local timestamp = 0
local re... |
require("presence"):setup(
{
-- General options
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
neovim_image_text = "The True Editor", -- Text displayed when hovered over the Neovim image
main_image = "neovim"... |
return {
id = 3,
version = "0.2.0",
date = "03/20/2019",
changelog = {
"85 new hats, this brings the hat count to 132 (credit to Nathony1 and Pomatia for many hat ideas)",
}
} |
module 'mock'
CLASS: TiledTextureRect ( GraphicsPropComponent )
:MODEL{
Field 'texture' :asset('texture;framebuffer') :getset( 'Texture' );
Field 'size' :type('vec2') :getset('Size');
Field 'tileSize' :type('vec2') :getset('TileSize');
'----';
Field 'resetSize' :action( 'resetSize' );
}
registerCompo... |
local crypto = require("crypto")
local Settings = {}
-- Construct a new settings object given some rows of settings from the
-- database. Return a Settings object on success and nil, err on failure. If a
-- setting is defined, the Settigns object can be indexed with its name to
-- return its value as a string.
functi... |
-- NPC XP Table
LootTable = {
/*
["zombie"] = { -- Name of key, useful if we don't want to use for loops
class = "npc_zombie", -- Class of the NPC, can find it by using copy to clipboard in the q menu.
value = 1, -- XP Value given when npc is level 1
name = "Zombie", -- Name of the NPC, can be whatever you wan... |
--
-- beginRound: begins the round
--
function beginRound()
-- reset player score data
for _, player in ipairs(getElementsByType("player")) do
setElementData(player, "Score", 0)
setElementData(player, "Rank", "-")
end
-- start round timer
if _timeLimit > 0 then
_missionTimer = exports.missiontimer:createMiss... |
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: ExtraInfo
local Info = {
NONE = 0,
Var = 1,
ReqBody = 2,
}
return Info -- return the module |
local _, Engine = ...
local L = Engine:GetLocale()
-- This module requires a "HIGH" priority,
-- as other modules like the questtracker and the unitframes
-- hook themselves into its frames!
local Module = Engine:NewModule("ActionBars", "HIGH")
Module.Template = {} -- table to hold templates for buttons and ba... |
function onCreate()
makeLuaSprite('xdxdxd', 'xdxdxd', -500, -160);
addLuaSprite('xdxdxd', 'xdxdxd', -500, -160);
scaleObject('xdxdxd', 1, 1)
makeLuaSprite('mmmm', 'mmmm', -500, -160);
addLuaSprite('mmmm', true);
scaleObject('mmmm', 2, 2)
end
function onEvent(name,value1,value2)
... |
local A = FonzAppraiser
A.module 'fa.gui.summary'
local L = AceLibrary("AceLocale-2.2"):new("FonzAppraiser")
local abacus = AceLibrary("Abacus-2.0")
local util = A.requires(
'util.string',
'util.time',
'util.money',
'util.chat'
)
local palette = A.require 'fa.palette'
local notice = A.requi... |
Inherit = 'View'
ToolBarColour = colours.lightGrey
ToolBarTextColour = colours.black
ShadowColour = colours.grey
Title = ''
Flashing = false
CanClose = true
OnCloseButton = nil
OldActiveObject = nil
LoadView = function(self)
local view = self:GetObject('View')
if view.ToolBarColour then
window.ToolBarColour = vie... |
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "PrivateBlocks",
Date = "2014-10-17",
SourceLocation = "https://github.com/madmaxoft/PrivateBlocks",
Description =
[[
Auto-protects each block that each player places or breaks.
Each block that a player builds is ... |
local _vertBuf_x = {}
local _vertBuf_y = {}
local _vertBufLen = 0
local function addVert(x, y)
_vertBufLen = _vertBufLen+1
_vertBuf_x[_vertBufLen] = x
_vertBuf_y[_vertBufLen] = y
end
local function addQuad(x, y, w, h)
addVert(x,y+h)
addVert(x,y)
addVert(x+w,y)
addVert(x+w,y+h)
end
local funct... |
banned = {"SomeBody","OtherPerson"}
for i,j in pairs(game.Players:GetPlayers()) do
for x,y in pairs(banned) do
if string.find(string.lower(j.Name),string.lower(y)) then
j:remove()
end end end
game.Players.PlayerAdded:connect(function(plr)
for x,y in pairs(banned) do
if string.find(string.lower(plr.Name),string.... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeServerAccounts
System.import(function (out)
SlipeServerAccounts = Slipe.Server.Accounts
end)
System.namespace("Slipe.Server.Accounts.Events", function (namespace)
namespace.class("OnDataChangeEventArgs", function (namespace)
local __ctor__
... |
the_curse_of_agony_curse_or_get_worse_buff_modifier = class({})
function the_curse_of_agony_curse_or_get_worse_buff_modifier:OnCreated( kv )
self.attack_damage_percentage = self:GetAbility():GetSpecialValueFor("attack_damage_percentage")
self.buff_spell_amplify_percentage= self:GetAbility():GetSpecialValueFor("b... |
local addonName, addon, _ = ...
_G[addonName] = LibStub('AceAddon-3.0'):NewAddon(addon, addonName, 'AceEvent-3.0')
-- GLOBALS: _G, LibStub, Auctional, TopFit, GameTooltip, Atr_ShowTipWithPricing, TradeSkillListScrollFrame, TradeSkillSkillName, TradeSkillFilterBar
-- GLOBALS: IsAddOnLoaded, CreateFrame, GetCoinTextureS... |
local Field = class("Field")
local KeyRepeat = require("class.KeyRepeat")
local BouncyThing = require("class.BouncyThing")
local Chip = require("class.Chip")
local MonsterType = require("class.MonsterType")
local cursorColor = {0.05, 0.7, 0.8}
function Field:initialize(settings, monsterImg, monsterQuad)
self.set... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local Clockwork = Clockwork;
local tonumber = tonumber;
local IsValid = IsValid;
l... |
http = {}
http.cookie_jar = 'cookies.txt'
http.default_referer = ''
http.xsrf_token = ''
function http.get(url, referer)
referer = referer or http.default_referer
local handle = io.popen('curl -q -k -s -b ' .. http.cookie_jar .. ' -c ' .. http.cookie_jar .. ' -X GET '
.. '-e "' .. referer .. '" '
... |
--[[ Copyright (C) Edgaras Fiodorovas - All Rights Reserved
- Unauthorized copying of this file, via any medium is strictly prohibited
- Proprietary and confidential
- Written by Edgaras Fiodorovas <edgarasf123@gmail.com>, November 2017
-]]
---------------------------------------------------------... |
function CreateJetTransferTexture(property)
-- Create 1D transfer function texture
-- Jet color table from OSPray example
-- r, g, b, alpha
local tf =
{ 0 , 0 , 0.562493 , 1.0
, 0 , 0 , 1 , 1.0
, 0 , 1 , 1 , 1.0
... |
local function GetCard()
end;
|
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\PersonalShieldMixin.lua
--
-- Created by: Andreas Urwalek (andi@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworlds.com =====================
PersonalShieldMixin ... |
local PlayerService = {
RESIST_PHYSICAL = 0,
RESIST_FIRE = 1,
RESIST_COLD = 2,
RESIST_POISION = 3,
RESIST_ENERGY = 4,
EQUIPMENT_DRAG = 0,
EQUIPMENT_RIGHTHAND = 1, -- wielding
EQUIPMENT_LEFTHAND = 2, -- off hand
EQUIPMENT_FEET = 3, -- wearing
EQUIPMENT_LEGS = 4,
EQUIPMENT_TORSO = 5, -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.