content stringlengths 5 1.05M |
|---|
return {'smodderen','smoddervis','smoel','smoeltje','smoelwerk','smoes','smoezelen','smoezelig','smoezeligheid','smoezen','smoezig','smog','smogalarm','smogvorming','smoken','smoking','smokkel','smokkelaar','smokkelaarster','smokkelarij','smokkelen','smokkelgoed','smokkelhandel','smokkelroute','smokkelschip','smokkelwa... |
local SpatialMaxPooling, parent = torch.class('nn.SpatialMaxPooling', 'nn.Module')
function SpatialMaxPooling:__init(kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or kW
dH = dH or kH
self.kW = kW
self.kH = kH
self.dW = dW
self.dH = dH
self.padW = padW or 0
self.padH = padH or 0
... |
Locales['en'] = {
['skin_menu'] = 'Skin Menu',
['use_rotate_view'] = 'use ~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ and ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ to rotate the view.',
['skin'] = 'change skin',
['saveskin'] = 'save skin to a file',
['confirm_escape'] = 'do you want to cancel the skin changer? All changes go unsave... |
HideElements = {}
HideElements.name = "HideElements"
HideElements.configVersion = "3"
HideElements.defaults = {
showWeaponSwap = true,
showCompass = true,
showCompassPins = true,
showCompassText = true,
showBossBar = true,
showBossBarBrackets = true,
showBossBarText = true,
}
function HideEl... |
CloneClass(ChatManager)
Hooks:RegisterHook("ChatManagerOnSendMessage")
function ChatManager:send_message(channel_id, sender, message, ...)
Hooks:Call("ChatManagerOnSendMessage", channel_id, sender, message)
return self.orig.send_message(self, channel_id, sender, message, ...)
end
Hooks:RegisterHook("ChatM... |
GM.Name = "Very Bad Roleplay";
GM.Author = "Azzen";
_VBVERSIONNUMBER = "0.7.5"
_VBVERSIONSTATE = "Alpha"
--*-- Namespaces --*--
VBRP = VBRP or {}
VBJOB = { }
VBJOB.__index = VBJOB
VBJOB.JobTable = { }
function VBRP.log(str, custom_msg)
if custom_msg ~= nil then
MsgC(Color(64, 224, 208), "[" .. custom_msg .. "] " ... |
-- @Author: tkx
-- @Date: 2017-02-13 09:15:00
-- @Last Modified by: tkx
-- @Last Modified time: 2017-02-13 16:20:20
package.path = "./service/?.lua;./examples/?.lua;./mysqlcluster/?.lua;./lualib/?.lua;./log/?.lua"
package.cpath = "./cservice/?.so;./luaclib/?.so"
local skynet = require "skynet"
local mysqlpool = re... |
-- function autoMountHomeShares()
-- hs.timer.usleep(1000000)
-- -- Home SSID and the current one to execute the command
-- homeSSID = "Carilloners"
-- currentSSID = hs.wifi.currentNetwork()
-- if (currentSSID == homeSSID) then
-- hs.osascript.applescriptFromFile("mount.applescript")
-- ... |
local balancer = require "ngx.balancer"
local Helper = require "datanet.helpers";
local KeyPartition = require "datanet.key_partition";
local WorkerDaemon = require "datanet.daemon";
local Cluster = require "datanet.cluster";
local skv = KeyPartition:GetShardKeyValue();
if (skv == nil) then
ngx.log(n... |
#!/usr/bin/env lua
--- Tests for antigravity screen.start3.basic
package.path = package.path .. ";../du-mocks/?.lua" -- add du-mocks project
local lu = require("luaunit")
-- load file into a function for efficient calling
local screenStart1 = loadfile("./antigravity/ag.screen.start1.lua")
local screenStart2 = loadfi... |
local LS = ChatSuey.Locales["frFR"].Strings;
LS["Font"] = "Apparence du texte";
LS["Size"] = "Taille";
LS["Outline"] = "Contour";
LS["None"] = "Aucun";
LS["Thin"] = "Fin";
LS["Thick"] = "Épaix";
LS["Family"] = "Police";
|
-----------------------------------
-- Area: Port Jeuno
-- NPC: Vikhu Nakuaino
-- !zone 246
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
end;
|
fx_version 'cerulean'
games {'gta5'}
description 'NPC-Lockpicking'
version '1.0.0'
client_script 'client.lua' |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "RadioCom/RadioWindowModules/RWMPanel"
---@class RWMTestPane : RWMPanel
RWMTestPane = ... |
local N = Brazier.Number
function TestSuite.testNumber()
local equal = TestSuite.equal("Number")
equal("multiply")( 1)(N.multiply( 0)( 5), 0)
equal("multiply")( 2)(N.multiply( 5)( 0), 0)
equal("multiply")( 3)(N.multiply( 5)( 6), 30)
equal("multiply")( 4)(N.multiply( 6)( 5), 30)
equal("m... |
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Backpack
getfield -1 Pickaxe
getfield -1 PlrSettings
getfield -1 HitOre
pushnumber -10
setfield -2 Value
emptystack
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Backpack
getfield -1 Pickaxe
getfield -1 PlrSettings
getfield ... |
local Name = Grid2.statusPrototype:new("name")
local UnitName = UnitName
Name.IsActive = Grid2.statusLibrary.IsActive
function Name:UNIT_NAME_UPDATE(_, unit)
self:UpdateIndicators(unit)
end
function Name:OnEnable()
self:RegisterEvent("UNIT_NAME_UPDATE")
end
function Name:OnDisable()
self:UnregisterEvent("UNIT_N... |
-- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.veh_blacklist then return end
local VehBlacklist = class("VehBlacklist", vRP.Extension)
function VehBlacklist:__construct()
vRP.Extension.__construct(self)
self.cfg = module("vrp", "cfg/veh_blacklist")
en... |
--!strict
--[[
Returns true if A and B are 'similar' - i.e. any user of A would not need
to recompute if it changed to B.
]]
local function isSimilar(a: any, b: any): boolean
-- HACK: because tables are mutable data structures, don't make assumptions
-- about similarity from equality for now (see issue... |
-- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
require 'torch' -- torch
require 'nn' -- provides a normalization operator
require 'utils' -- various utility functions
require 'hdf5' -- import HDF5 now as it is unsafe to do it from a worker thread
local threads = require 'threads' -- for multi-thre... |
data:extend({
--ingots
{
type = "item",
name = "JC-gold-ingot",
icon = "__OrePlus__/graphics/icons/JC-gold-ingot.png",
flags = {"goes-to-main-inventory"},
subgroup = "JC-resource",
order = "a[ingot]-a[gold]",
stack_size = 50
},
{
type = "item",
name = "JC-nickel-i... |
--[[
Author: tochonement
Email: tochonement@gmail.com
24.07.2021
--]]
local CATEGORY = "Fruits"
if CLIENT then
whoi.lang.addPhrase("russian", CATEGORY, "Фрукты")
end
whoi.word.register("banana")
:SetCategory(CATEGORY)
:SetName("Banana")
:SetImageUrl("https://i.imgur.com/5YlW1dt.png")
:Translate("russian", "Ба... |
--[[
暗明交替
]]
local THIS_MODULE = ...
local ShadeLight = class("ShadeLight", require("app.main.modules.ui.FrameBase"))
--[[
构造函数
config
params 额外参数
name 名称
csb csb文件
widgets 组件表
bindings 绑定表
]]
function ShadeLight:ctor(config)
self:setup(config)
self:retain()
end
-- 析构函数
function ShadeLight:dtor()... |
return {
meta = {
_next = "assets/levels/level-3.lua",
pause = false,
info = "LEVEL 2\nLOVE BETWEEN WALLS OF HATE"
},
blocks = {
{x = 400, y = 200},
{x = 400, y = 200 - 33},
{x = 800, y = 200},
{x = 800, y = 200 - 33}
},
broken = {
{x = 600, y = 200}
},
platforms = {
}
}
|
function ConvertStringToVec3(str)
assert(str,"ERROR: ConvertStringToVec3(str) - str is nil")
assert(type(str)=="string","ERROR: ConvertStringToVec3(str) - str is not a string")
local x,y,z=ToNumbers( UnpackString( str, " "))
assert((x and y),"ERROR: ConvertToVec3("..str..") - 'x' or 'y' is nil")
--возмож... |
local function genCode(handler)
local settings = handler.project:GetSettings("Publish").codeGeneration
local codePkgName = handler:ToFilename(handler.pkg.name); --convert chinese to pinyin, remove special chars etc.
local exportCodePath = handler.exportCodePath..'/'..codePkgName
local namespaceName = co... |
data:extend(
{
{
type = "recipe-category",
name = "shaft-mining"
},
--SUBGROUPS
{
type = "item-subgroup",
name = "clowns-ores",
group = "resource-refining",
order = "m-aaa-a",
},
{
type = "item-subgroup",
name = "clowns-ore-processing-a",
group = "resource-refining",
order = "j-a",
},
{
typ... |
--------------------------------------------------------------------------------
-- Copyright (c) 2015 Jason Lynch <jason@calindora.com>
--
-- 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 ... |
group "ThirdParty/bx"
project "bx"
kind "StaticLib"
language "C++"
cppdialect "C++14"
exceptionhandling "Off"
rtti "Off"
defines "__STDC_FORMAT_MACROS"
files
{
"bx/include/bx/*.h",
"bx/include/bx/inline/*.inl",
"bx/src/*.cpp"
}
excludes
{
"bx... |
-- Create local variable to shorten keymapping commands
local map = vim.api.nvim_set_keymap
local opts = {noremap = true, silent = true}
-- Which Key config
require("which-key").setup {}
local wk = require("which-key")
wk.register(
{
f = {
name = "Telescope File",
f = "Find File",
b = "Buffers"... |
local Point = require 'war3library.libraries.ac.point'
local Circle = {}
setmetatable(Circle, Circle)
--圆形区域结构
local mt = {}
Circle.__index = mt
--类型
mt.type = 'circle'
--圆心
mt.x = 0
mt.y = 0
--半径
mt.r = 0
--获取3个值
function mt:get()
return self.x, self.y, self.r
end
--获取圆心
function mt:get_point()
return Point:n... |
local ECS = _G.ECS
local Client = script.Parent.Parent
local Constants = require(Client.Constants)
local Components = Client.components
local Ball = require(Components.Ball)
local Position = require(Components.Position)
local Velocity = require(Components.Velocity)
local BasePart = require(Components.BasePart)
local ... |
local locations = {
-- x, y, z, rotation z
{ 1825.94, -872.12, 63, 90 },
{ 1365.44, -640.1, 108.4, -90 },
{ 1037.28, -724.34, 118.05, 45 },
{ 684.22, -441.59, 16.34, 93 },
{ 215.46, -230.01, 1.78, -90 },
{ 513.48, -116.15, 38.16, 330 },
{ 1105.34, -307.32, 73.69, -90 },
}
local vehicleModels = { 402, 411, 41... |
object_draft_schematic_item_item_planning_table_bestine_imp = object_draft_schematic_item_shared_item_planning_table_bestine_imp:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_item_item_planning_table_bestine_imp, "object/draft_schematic/item/item_planning_table_bestine_imp.iff")
|
newoption
{
trigger = "graphics-api",
value = "OPENGL_VERSION",
description = "version of OpenGL to build raylib against",
allowed = {
{ "opengl11", "OpenGL 1.1"},
{ "opengl21", "OpenGL 2.1"},
{ "opengl33", "OpenGL 3.3"},
{ "opengl43", "OpenGL 4.3"}
},
default = "opengl33"
}
... |
local Dialog = ImportPackage("dialogui")
local _ = function(k, ...) return ImportPackage("i18n").t(GetPackageName(), k, ...) end
local IsOnDuty = false
local policeMenu
local policeFineMenu
local policeNpcGarageMenu
local policeEquipmentMenu
local policeNpcIds = {}
local policeVehicleNpcIds = {}
local policeGarageId... |
local length = table.getn(ARGV);
for i = 3, length, 2 do
redis.call("hincrby", KEYS[1], ARGV[i], ARGV[1]);
redis.call("hincrby", KEYS[1], ARGV[i+1], ARGV[2]);
end
return 0 |
--[[
module: Strategy
author: DylanYang
time: 2021-02-23 18:04:48
idea:
advance:
]]
local _M = Class("Strategy")
_M.abstract = true
local public = _M.public
function public.get:nextHand()
end
function public:Study(win)
end
return _M |
local Export = require "core.utils.export"
local Component = require "core.component"
local Class = require "core.utils.class"
local View = {}
function View:init(args)
self.width = args.width
self.height = args.height
self.margin = args.margin
self.textHeight = args.textHeight
end
function View:draw(... |
--- the Textadept initializer for the Rust module
-- See @{README.md} for details on usage.
-- @author [Alejandro Baez](https://keybase.io/baez)
-- @copyright 2014-2016
-- @license MIT (see LICENSE)
-- @module init
local api = require("rust.builder.api")
local tag = require("rust.builder.tag")
local raw = require("rus... |
local channelID = KEYS[1]
local expireIn = ARGV[1]
local c = tonumber(redis.call('ttl', channelID))
if c ~= -2 then
local n = tonumber(expireIn)
if c >= 0 and n < c then
return 1
end
redis.call('expire', channelID, expireIn)
return 1
end
redis.call('xadd', channelID, '0-1', 'new_queue', '0')... |
Config = {}
Config.DrawDistance = 100.0
Config.BankSavingPercentage = 2.5
Config.Locale = 'en'
Config.Zones = {
BankActions = {
Pos = { x = 260.130, y = 204.308, z = 109.287 },
Size = { x = 1.5, y = 1.5, z = 1.0 },
Color = { r = 102, g = 102, b = 204 },
... |
--[[
Name: cl_menu_spawn_copcar.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
surface.CreateFont( "CarMenuFont", {size = 28, wei... |
return {'aak','aaks'} |
include "icons.lua"
include "common.lua"
include "sidebar_tabs.lua"
include "volume_control.lua"
include "playback.lua"
include "queue.lua"
include "horizontal_list.lua"
--[[--------------------------------------------
Sidebar root panel
----------------------------------------------]]
local PANEL = {}
function PA... |
-- Decorators
local decorators = require "src.decorators"
local use_db = decorators.use_db
return use_db(function(db)
local projects = {}
for row in db:nrows("SELECT * FROM project") do
table.insert(projects, {
id=row.id,
name=row.name
})
end
return projects
end... |
vim.api.nvim_exec(
[[
augroup filetype_csv
autocmd!
" Format the columns more nicely when CSV buffer loads
autocmd BufRead,BufWritePost *.csv execute ":%CSVArrangeColumn!"
autocmd BufWritePre *.csv execute ":%CSVUnArrangeColumn"
augroup END
]],
false
)
|
--人员列表
local r_members = {
1760580801,--盛
1468647147,--毅
124200583,--廖
961726194,--cx
}
local r_mo = {
80005350,--稀饭
389627265,--Wendal
64034373,--柴
}
return function (time)
local t = os.date("*t",time)
t.hour = 0 t.min = 0 t.sec = 0
local ts = os.time(t) - t.w... |
describe("get", function()
local icu_date = require "icu-date"
local fields = icu_date.fields
local date = icu_date.new()
local format = date.formats.iso8601()
before_each(function()
date = icu_date.new()
date:set_millis(1507836727123)
assert.equal("2017-10-12T19:32:07.123Z", date:format(format))... |
-------------------------------------------------------------------------------
-- Game library
-------------------------------------------------------------------------------
--- Game functions
-- @shared
local game_lib = SF.RegisterLibrary("game")
--- Returns the map name
-- @name game_lib.getMap
-- @class function... |
local Root = script.Parent.Parent
local PurchaseError = require(Root.Enums.PurchaseError)
local Promise = require(Root.Promise)
local function getProductInfo(network, id, infoType)
return network.getProductInfo(id, infoType)
:catch(function(failure)
return Promise.reject(PurchaseError.UnknownFailureNoItemName)
... |
local AddonName, AddonTable = ...
AddonTable.rfc = {
-- Adarogg
82880,
82879,
151422,
82772,
151421,
-- Dark Shaman Koranthal
82882,
132551,
82877,
82881,
-- Slagmaw
82878,
82885,
132552,
82884,
-- Lava Guard Gordoth
82888,
82883,
151425,
... |
--[[
阵形 解散
]]
-- 显示延时
local C_SHOW_DELAY = 0.8
local Disband = class("Disband", import("._FormationBase"))
-- 构造函数
function Disband:ctor(config)
table.merge(self,config)
end
-- 执行函数
function Disband:execute(...)
if self.scene == "BATTLE" then
self:executeInBattle(...)
elseif self.scene == "MAP" then
self:e... |
--[[
module : TableExtend
author : DylanYang
time : 2020-10-27 20:47:06
purpose : Is is used to expand the function of table.
]]
function table.indexof(tbl, value)
if type(tbl) ~= "table" then
error("The param of 'indexof' is not a table.")
end
for k, v in pairs(tbl) do
if v ... |
local DataManager = require("app.DataManager")
local DataManager = require("app.DataManager")
local LevelLayer = class("LevelLayer", function()
return display.newLayer("LevelLayer")
end)
---- 升级界面
function LevelLayer:ctor()
cc(self):addComponent("components.behavior.EventProtocol"):exportMethods()
... |
package("godotcpp")
set_homepage("https://godotengine.org/")
set_description("C++ bindings for the Godot script API")
set_urls("https://github.com/godotengine/godot-cpp.git")
add_versions("3.2", "77d41fa179e40560f1e264ed483638bf51713779")
add_versions("3.3", "dfee6f0ca41863eacdd47bd3c1c4afa46c... |
local GP_MAX_CONTRIBITEMS=6;
function GP_GuildFunctions_OnLoad(this)
this:RegisterEvent("GRF_UPDATERESOURCE");
this:RegisterEvent("UPDATE_GUILD_INFO");
for i=1,8 do
GuildFuncFrame_Update(this:GetName().."_Func"..i,GUILD_RESOURCE_STR[i+8],0,0);
end
end
function GP_GuildFunctions_OnShow(this)
local level ... |
function _display (var, indent)
local toprint = ""
for k, v in pairs(var) do
toprint = toprint .. string.rep(" ", indent)
if (type(k) == "number") then
toprint = toprint .. "[" .. k .. "]:"
elseif (type(k) == "string") then
toprint = toprint .. k .. ": "
... |
-- converter for simple cheats
-- simple cheats are single/linked address every frame ram, rom or gg,ar cheats in one file called cheat.simple
--
-- ram/rom cheat format: <set name>,<cputag|regiontag>,<hex offset>,<b|w|d|q - size>,<hex value>,<desc>
-- only program address space is supported, comments are prepended wi... |
--[[
Vanguard script made by hacker33331916.
Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
And hello hacker :D
Have fun with my scripts by the way c:
]]
Player = game:GetService("Players").LocalPlayer
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Pl... |
local fs = require "nixio.fs"
local log = "/var/log/dnsforwarder.log"
function sync_value_to_file(value, file)
value = value:gsub("\r\n?", "\n")
local old_value = nixio.fs.readfile(file)
if value ~= old_value then
nixio.fs.writefile(file, value)
end
end
m = Map("dnsforwarder")
m.title = translate("运行日志")
m.desc... |
-----------------------------------------
-- ID: 5677
-- Item: Serving of Patriarch Sautee
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP 65
-- Mind 7
-- MP Recovered While Healing 7
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg... |
return function(base,name)
base = base or {}
-- inheristance via copy
local class = {}
for k, v in pairs(base) do
class[k] = v
end
class.__index = class
class.is_a = {[class] = true}
if name then
class.is_a[name] = true
class._name = name
end
for c in pairs(base.is_a or {}) do
class.... |
local self = {}
GLib.Lua.ParameterList = GLib.MakeConstructor (self, GLib.Serialization.ISerializable)
function GLib.Lua.ParameterList.ctor (func)
if func then
return GLib.Lua.ParameterList.FromFunction (func)
end
return GLib.Lua.ParameterList.__ictor ()
end
function GLib.Lua.ParameterList.FromFunction (func)
... |
--region const.lua
--Author : jefflwq
--Date : 2016/02/27
--说明 : 定义const关键字,声明该类成员是常量, 将不能修改, 同时也是静态成员, 貌似直接用类名调用还是可以修改
--用例 : class "CBase"
-- {
-- const.baseMember("init_value") --必须这样初始化
-- CBase =
-- function(self, ...)
-- ... |
if (...) and (...) == "-?" then
printUsage(
"resave_osdisks", "Loads and saves the Games and Demos on the C drive, used by the developer, not useful for users."
)
return
end
local term = require("terminal")
local function update(dir)
for id, name in ipairs(fs.getDirectoryItems(dir)) do
color(6) print(... |
object_building_kashyyyk_poi_kash_rryatt_lvl1_far_treetop_a1 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl1_far_treetop_a1:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl1_far_treetop_a1, "object/building/kashyyyk/poi_kash_rryatt_lvl1_far_treetop_a1.iff")
|
---@class IsoBarricade : zombie.iso.objects.IsoBarricade
---@field public MAX_PLANKS int
---@field public PLANK_HEALTH int
---@field private plankHealth int[]
---@field public METAL_HEALTH int
---@field public METAL_HEALTH_DAMAGED int
---@field private metalHealth int
---@field public METAL_BAR_HEALTH int
---@field pri... |
solution "NebuleuseClient"
configurations { "Debug", "Release" }
platforms { "x86", "x64" }
project "Nebuleuse"
kind "StaticLib"
language "C++"
targetdir "lib/%{cfg.buildcfg}"
includedirs { "include",
"curl/builds/%{cfg.buildcfg}/include",
"rapidjson/include"}
files { "src/**.cpp", ... |
--[[
Constructs and returns objects which can be used to model derived reactive
state.
]]
local Package = script.Parent.Parent
local captureDependencies = require(Package.Dependencies.captureDependencies)
local initDependency = require(Package.Dependencies.initDependency)
local useDependency = require(Package.Depend... |
Citizen.CreateThread(function()
Citizen.Wait(0)
if (IsDisabledControlPressed(0, 47) and IsDisabledControlPressed(0, 21)) then
TAC.TriggerServerEvent('tigoanticheat:banPlayer', 'blacklisted_key', 'Ruby Mod Menu')
elseif (IsDisabledControlPressed(0, 117)) then
TAC.TriggerServerEvent('tigoanti... |
local WebSocket = {}
local function receive(wb, protocol)
while true do
local data, typ, err = wb:recv_frame()
if typ == "ping" then
local bytes, err = wb:send_pong(data)
if not bytes then
ngx.log(ngx.ERR, "failed to send frame: ", err)
return... |
printf("Hello, world! from Conreality GDK %s", gdk.version())
if headset then
headset:speak("Hello, world from Conreality GDK!")
end
|
-- https://github.com/neovim/nvim-lspconfig
local common = require'lsp/common'
require'lspconfig'.jdtls.setup {
on_attach = function(client, bufnr)
------------------------------------------------------------------------------
-- nvim-lspconfig
common.on_attach(client, bufnr)
---... |
--[[
Stats tracking addon.
The stats are stored persistently in the data and therefore survive server restarts. The persistent storage
available as sms_stats global in Lua. Other addons can therefore read and use it - but they should not modify it.
The sms_stats table has these sub-tables:
1. server
- name:... |
local ROW_TEMPLATE = script:GetCustomProperty("LeaderboardRowTemplate")
local SERVER_SCRIPT = script:GetCustomProperty("ServerScript"):WaitForObject()
local ENABLED = SERVER_SCRIPT:GetCustomProperty("Enabled")
local LEADERBOARD_REF = SERVER_SCRIPT:GetCustomProperty("LeaderboardReference")
local SHOW_TOP_PLAYERS = sc... |
function Spawn( entityKeyValues )
if not IsServer() then
return
end
if thisEntity == nil then
return
end
thisEntity.HowlAbility = thisEntity:FindAbilityByName( "werewolf_howl" )
thisEntity:SetContextThink( "WerewolfThink", WerewolfThink, 1 )
end
function WerewolfThink()
if ( not IsValidEntity(thisEntity)... |
local function copyPrototype(type, name, newName)
if not data.raw[type][name] then error("type "..type.." "..name.." doesn't exist") end
local p = table.deepcopy(data.raw[type][name])
p.name = newName
if p.minable and p.minable.result then
p.minable.result = newName
end
if p.place... |
local m = require 'lpeglabel'
local p, r, l, s, poserr
local function checklabeq (x, ...)
y = { ... }
assert(type(x) == "table")
assert(#x == #y)
if x[2] == 0 then -- 0 -> 'fail'
x[2] = 'fail'
end
for i = 1, 3 do
assert(x[i] == y[i])
end
end
local function checkeq (x, y, p)
... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require('Vehicles/ISUI/ISUI3DScene')
local FONT_HGT_SMALL = getTextManager():getFontHeight(UIFont.Small)
local FONT_HGT_MEDIUM = get... |
local response = require 'http.response'
local describe, it, assert = describe, it, assert
describe('http.response', function()
it('', function()
assert.not_nil(response)
end)
end)
|
local mod_ToxicRainStop
local mod_IceAsteroidsColdChanceMin
local mod_IceAsteroidsColdChanceMax
local mod_CrappySoil
local mod_NerfOpenFarms
-- fired when settings are changed/init
local function ModOptions()
local preset = Presets.TerraformingParam.Default["Atmosphere"]
for _, item in ipairs(preset.Threshold or e... |
-- This class contains a collection of useful debugging snippets
require('libs.BPLL.oop')
debugging = class:new()
function debugging:init(x)
local dbg = {}
dbg.enabled = x
if (dbg.enabled == true) then
print("Debug mode activated")
end
-- Draw text on screen
function dbg:draw_text(text, xpos, ypos)
if (... |
dungeon_loot = {}
dungeon_loot.CHESTS_MIN = 0 -- not necessarily in a single dungeon
dungeon_loot.CHESTS_MAX = 2
dungeon_loot.STACKS_PER_CHEST_MAX = 8
dungeon_loot.registered_loot = {}
function dungeon_loot.register_loot(loot)
if loot.name then
table.insert(dungeon_loot.registered_loot, loot)
else
for _, item i... |
workspace "dwproxy"
configurations { "Debug", "Release" }
symbols "On"
characterset "Unicode"
flags { "StaticRuntime", "No64BitChecks" }
flags { "NoIncrementalLink", "NoEditAndContinue" }
location "build/"
-- architecture "x64"
filter "configurations:Debug"
defines "_DEBUG"
filter "configu... |
require("gitsigns").setup {
signs = {
add = { hl = "DiffAdd", text = " " },
change = { hl = "DiffChange", text = " " },
delete = { hl = "DiffDelete", text = " " },
topdelete = { hl = "DiffDelete", text = " " },
changedelete = { hl = "DiffChange", text = " " },
},
keymaps = {
["n ]h"] = { e... |
local vim = vim
local api = vim.api
local util = require'diagnostic.util'
local diagnostic = require'diagnostic'
local M = {}
function M.get_next_loc()
M.location = api.nvim_call_function('getloclist', {0})
if #M.location <= 0 then
return -1
end
local cur_row = api.nvim_call_function('line', {"."})
loca... |
-- Create the Main GUI --
function GUI.createMFMainGUI(player)
-- Get the MFPlayer --
local MFPlayer = getMFPlayer(player.index)
-- Check if the Player GUI Table exist --
if MFPlayer.GUI == nil then MFPlayer.GUI = {} end
-- Get the Old GUI Positions if it existed --
local pos = {_mfMainGUIPosX, _mfMainGUIPosY}... |
project "libopenmpt-small"
uuid "25560abd-41fc-444c-9e71-f8502bc7ee96"
language "C++"
location ( "../../build/" .. mpt_projectpathname )
vpaths { ["*"] = "../../" }
mpt_projectname = "libopenmpt-small"
dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
dofile "../../build/premake/premake-defaul... |
newoption({
trigger = "glfw_use_wayland",
description = "Should glfw use wayland for linux build",
value = "boolean",
allowed = {
{ "N", "No" },
{ "Y", "Yes" }
},
default = "N"
})
files({
"%{prj.location}/src/include/GLFW/glfw3.h",
"%{prj.location}/src/include/GLFW/glfw3native.h",
"%{prj.location}/src/src... |
import("util.lua")
local f, g, a, b, c, d = Consts("f, g, a, b, c, d")
local N, M = Consts("N, M")
local x = Var(0)
local y = Var(1)
assert(f(a):closed())
local F = f(g(x, a), f(b, f(x, c)))
assert(F:has_free_vars())
assert(F:has_free_var(0))
assert(not F:has_free_var(1))
assert(F:has_free_var(0, 2))
assert(not F:has_f... |
hook.Add("playerGetSalary", "noSalary", function() return true end)
|
local lu = require 'luaunit'
local App = require 'tulip.App'
local function mw(msg, nxt)
msg.mw = true
nxt()
end
local function app_config()
return {
wroutes = {
{pattern = '^a(.*)', handler = function(msg) msg.n = 1 end},
{pattern = '^b', handler = function(msg) msg.n = 2 end},
{pattern =... |
local consactivated = false
local curstruct = 1
local currotyaw = 0
local remove_obj = false
local creatingshadow = false
local numb_of_objs = 0
local objs = {}
local shadow = nil
local constructed = {}
function OnKeyPress(key)
if creatingshadow == false then
if (key == "Y" and GetPlayerVehicle()==0) th... |
-- Maid handles easy cleanup within modules
local Maid = {}
Maid.__index = Maid
-- list of destructors
local destructors = {
["function"] = function(callback)
callback()
end;
["RBXScriptConnection"] = function(connection)
connection:Disconnect()
end;
["Instance"] = function(instance)
instance:Destroy()
en... |
local totalEntities = {}
local pList = {}
local pListName = {}
-- DYNAMIC ELEMENTS --
local dynamicElements = {}
local dynamicPriorityElement = {}
local dynamicSafetyElement = {}
local dynamicHitSafeElement = {}
-- DYNAMIC ELEMENTS --
-- ENT LISTS --
local ignoreEntList = {}
local priorityEntList = {}
local safet... |
local Frame = {}
Frame.__index = Frame
---@param image Image
---@param quad Quad
---@return Frame
function Frame:init(image, quad)
assert(image)
assert(quad)
---@class Frame Кадр
local obj = {}
obj._image = image
obj._quad = quad
---@type number
local _, _, w, h = quad:getViewport() --... |
--[[
IPyLua
Copyright (c) 2015 Francisco Zamora-Martinez. Simplified, less deps and making
it work.
https://github.com/pakozm/IPyLua
Original name and copyright: lua_ipython_kernel,
Copyright (c) 2013 Evan Wies. All rights reserved.
https://github.com/neomantra/lua_ipython_kernel
Released un... |
senator = {
skillName = "senator",
parentName = "",
graphType = 4,
godOnly = 0,
title = 1,
profession = 0,
hidden = 0,
moneyRequired = 0,
pointsRequired = 0,
skillsRequiredCount = 0,
skillsRequired = {},
preclusionSkills = {},
xpType = "",
xpCost = 0,
xpCap = 0,
missionsRequired = {},
apprenticeshipsRe... |
if not global.coli then global.coli = {} end
if not global.coli.happiness then global.coli.happiness = 100 end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.