content stringlengths 5 1.05M |
|---|
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, pincode, username, password
local auth, ipv6
device = section:taboption("general", Value, "device", translate("Modem device"))
device.rmempty ... |
ReturnRaidManager.Constants = {}
ReturnRaidManager.Constants.ClassColors = {
HUNTER = {r = 0.67, g = 0.83, b = 0.45},
Hunter = {r = 0.67, g = 0.83, b = 0.45},
WARLOCK = {r = 0.58, g = 0.51, b = 0.79},
Warlock = {r = 0.58, g = 0.51, b = 0.79},
PRIEST = {r = 1.0, g = 1.0, b = 1.0},
Priest = {r = ... |
local Sideload = require('sconce.Sideload')
return function(tester)
local suite = torch.TestSuite()
function suite.test_sideload_forward()
local get_tensor = function()
return torch.Tensor{2, 2}
end
local input = torch.Tensor{1, 1}
local sideload = Sideload.new(get_tensor)
local actual =... |
return function()
local isLight = require(script.Parent.isLight)
it("throws if argument is not a Color3", function()
expect(pcall(isLight, true)).to.equal(false)
end)
it("returns `true` for white", function()
expect(isLight(Color3.new(1, 1, 1))).to.equal(true)
end)
it("returns `false` for black",... |
--[[
PlayState Class
Author: Colton Ogden
cogden@cs50.harvard.edu
The PlayState class is the bulk of the game, where the player actually controls the bird and
avoids pipes. When the player collides with a pipe, we should go to the GameOver state, where
we then go back to the main menu.
]]
Play... |
local Game_component = {}
function Game_component:new()
local gc = {}
-- callback for love.load()
function gc:load()
end
-- callback for love.update()
function gc:update(dt)
end
-- callback for love.draw()
function gc:draw()
end
return gc
end
return Game_component
|
local response = require("lib.response")
local _M = {}
-- todo controller extends
function _M:index(request)
return response:json(0, 'index args', request.params)
end
return _M
|
local M = {}
local p = require 'polarmutex.colorschemes.tokyodark.palette'
function M.setup()
vim.g.terminal_color_0 = p.black
vim.g.terminal_color_1 = p.red
vim.g.terminal_color_2 = p.green
vim.g.terminal_color_3 = p.yellow
vim.g.terminal_color_4 = p.blue
vim.g.terminal_color_5 = p.purple
... |
local PANEL = {}
--AccessorFunc( PANEL, "m_ConVarR", "ConVarR" )
--[[---------------------------------------------------------
Name: Init
-----------------------------------------------------------]]
function PANEL:Init()
self.ConVars = {}
self.Options = {}
end
--[[---------------------------------------------... |
Citizen.CreateThread(function()
while true do
for k, v in pairs(RecentlyUsedHidden) do
local now = os.time()
if v <= now then
TriggerClientEvent('ND_hospital:client:HiddenSetup', k)
RecentlyUsedHidden[k] = nil
end
end
Citi... |
fx_version 'cerulean'
games { 'gta5' }
author 'DISTINCTIVE DEVELOPMENT - Oulsen'
description 'Persistent flashlight'
version '1.1.1'
files{
"Newtonsoft.Json.dll",
"config.json"
}
client_scripts {
"DD-PERSISTENTFLASHLIGHT.Client.net.dll"
}
server_scripts {
"DD-PERSISTENTFLASHLIGHT.Server.net.dll"
} |
local Color3 = import("../types/Color3")
local GuiObject = import("./GuiObject")
local InstanceProperty = import("../InstanceProperty")
local Rect = import("../types/Rect")
local Signal = import("../Signal")
local UDim2 = import("../types/UDim2")
local ScaleType = import("../Enum/ScaleType")
local Vector2 = import("../... |
ITEM.name = "Saiga-12"
ITEM.desc = "A pre-war Automatic Shotgun that fires 12 Gauge Buckshot"
ITEM.model = "models/arxweapon/saiga.mdl"
ITEM.class = "m9k_mrp_saiga"
ITEM.weaponCategory = "primary"
ITEM.width = 4
ITEM.height = 2
ITEM.price = 300 |
--
-- SPDX-FileCopyrightText: Copyright (c) 2019, 2022 Andreas Sandberg <andreas@sandberg.uk>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
local nixio = require "nixio"
m = Map("gosolis", translate("GoSolis"),
translate("GoSolis configuration"))
local hostname = luci.model.uci.cursor():get_first("system", ... |
-- border used for customize gameplay primarily but feel free to attempt to use it for something else and have it not work
local borderAlpha = 0.2
local buttonHoverAlpha = 0.6
return Def.ActorFrame {
Name = "BorderContainer", -- not really necessary to have this in an actorframe unless the border is more complex
... |
---@class CS.FairyGUI.RichTextField : CS.FairyGUI.Container
---@field public htmlPageContext CS.FairyGUI.Utils.IHtmlPageContext
---@field public htmlParseOptions CS.FairyGUI.Utils.HtmlParseOptions
---@field public emojies CS.System.Collections.Generic.Dictionary_CS.System.UInt32_CS.FairyGUI.Emoji
---@field public textF... |
-- Use noise on a grid
VERTEX_SHADER = [[
#version 400
layout (location = 0) in vec3 vp;
layout (location = 1) in vec3 vn;
out vec3 color;
uniform mat4 uViewMatrix, uProjectionMatrix;
uniform float uTime;
void main() {
color = vec3(1.0, 0.0, 0.0);
float force = .6;
float speed = 4.0;
vec2 p = -1.0 + 2.... |
-- example HTTP POST script which demonstrates setting the
-- HTTP method, body, and adding a header
counter = 0
request = function()
wrk.method = "POST"
wrk.headers["Content-Type"] = "application/json"
wrk.body = '{ "timestamp": "2020-06-24T15:27:00.123456Z", "ip": ' .. counter .. ', "url": "some/path" }'... |
-- modified by bc1 from 1.0.3.144 brave new world code
-- extend full unit & building info pregame
-- extend AI mood info
-- code is common using gk_mode and bnw_mode switches
-- compatible with Communitas breaking yield types
-- TODO: lots !
local civ5_mode = InStrategicView ~= nil
local civBE_mode = not civ5_mode
lo... |
--- Window library
-- @module window
-- @alias lib
local lib = {}
local ui = require("OCX/OCUI")
local logger = require("log")("Window Manager")
local draw = require("OCX/OCDraw")
local gpu = require("driver").gpu
local tasks = require("tasks")
local desktop = {}
-- The buffer containing the desktop wallpaper
local wa... |
local json = require("scripts.json_util")
local result = {version = "0.2.0"}
json.set_comments(result, {
version = "\z
====================================================================================================\n\z
This file is generated. To make changes to this file modify the\n\z
scripts/gene... |
object_building_kashyyyk_decd_trillium_palm_tall01 = object_building_kashyyyk_shared_decd_trillium_palm_tall01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_decd_trillium_palm_tall01, "object/building/kashyyyk/decd_trillium_palm_tall01.iff")
|
local ffi = require 'ffi'
ffi.cdef [[
struct timeval {
long tv_sec;
long tv_usec;
};
void gettimeofday(struct timeval *tv, void *p);
]]
local time, timeMT, timevalMT = {}, {}, {}
setmetatable(time, timeMT)
function timeMT:__call(...)
local now = time.new(...)
ffi.C.gettimeofday(now, nil)
return now
end
func... |
-- This module may be used as basis for application
-- controllers. It can handle CGI headers, inputs
-- output buffering and some more.
local Controller = {}
Controller.__index = Controller;
-- Controller's constructor.
function Controller.new()
local self = setmetatable({}, Controller);
-- set some basic de... |
Config = {}
Config.AlignMenu = "center" -- this is where the menu is located [left, right, center, top-right, top-left etc.]
Config.CreateTableInDatabase = true -- enable this the first time you start the script, this will create everything in the database.
Config.KeyPrice = 150
Config.Weapons = true -- enable this i... |
dofile("math_s.lua")
dofile("am2320.lua")
dofile("managerGpio.lua")
dofile("handlerTRH.lua")
--dofile("_ds18b20.lua")
--local function ds18b20()
-- return getTemp(7)
--end
function getSensors(cn)
local data={}
-- rh,t=am2320_h()
-- data.rh, data.temp = rh/10, t/10
data.rh, data.temp = 51, 26
-- data.r... |
--[[
Author: Kyoma
Filename: LibTitleLocale.lua
Version: 4 (Summerset)
Total: 115 titles
]]--
local libLoaded
local LIB_NAME, VERSION = "LibTitleLocale", 4
local lib, oldminor = LibStub:NewLibrary(LIB_NAME, VERSION)
if not lib then return end
local LocaleTitles =
{
["fr"] =
{
[2] =
{
... |
gcd = math.random(7) + 2
jimenilac = math.random(24) + 5
jbrojilac = math.random(jimenilac - 2) + 1
gcd2 = lib.math.gcd(jimenilac, jbrojilac)
jimen = jimenilac / gcd2
jbroj = jbrojilac / gcd2
if (gcd == gcd2) then
gcd = gcd - 1
end
imenilac = jimen * gcd
brojilac = jbroj * gcd
|
Config = {}
Config.DrawDistance = 100
Config.Size = { x = 1.5, y = 1.5, z = 1.5 }
Config.Color = { r = 0, g = 0, b = 0 }
Config.Type = 1
Config.Locale = 'fr'
Config.EnableLicense = true
Config.LicensePrice = 0
Config.Zones = {
GunShop = {
legal = 0,... |
if (SERVER) then
AddCSLuaFile()
end
--AKMS
sound.Add({
name="Weapon_AK47.Single",
volume = 1.0,
pitch = {100,105},
sound = "weapons/AK47/AK47_fp.wav",
level = 145,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_AK47.SingleSilenced",
volume = 1.0,
pitch = {100,105},
sound = "weapons/AK47/AK47_suppressed_fp... |
---@undocumented
---@vararg any
function ConscriptProgression_PenalSpeech (...) end
---@undocumented
---@vararg any
function ConscriptProgression_PenalUnlock (...) end
---@undocumented
---@vararg any
function CTRL_IndexOperator (...) end
---@undocumented
---@vararg any
function DebugEconomy (...) end
---@undocument... |
--[[--
translated_string = -- translated string
_(
string_to_translate, -- string to translate
{
placeholder_name1 = text1, -- replace all occurrences of "#{placeholder_name1}" with the string text1
placeholder_name2 = text2, -- replace all occurrences of "#{placeholder_name2}" with t... |
local DB = require('../handler/economy.lua')
local MAX_COLUMNS = 10
command.Register("leaderboard", "leaderboard", "economy", function(msg,args)
local stmt = DB.db:prepare[[
SELECT id, tag, stars FROM users ORDER BY stars DESC
]]
local list = ''
for i=0,MAX_COLUMNS do
local step = stmt:step()
if step ... |
-- guide_picture
local Config = {}
local picture = LoadDatabaseWithKey("guide_picture","id") or {};
function Config.getConfig(id)
if picture then
if id then
return picture[id]
else
return picture
end
else
ERROR_LOG("说明表为空")
end
end
return Config;
-- ... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetNWInt("overlaymode", 1)
self:SetNWInt("OOO", 0)
self.range = 512
self:SetNWInt("range", 512)
self.Ac... |
------------------------------------------------
----[ PURCHASE ]----------------------------------
------------------------------------------------
local Purchase = SS.Commands:New("Purchase")
// Purchase command
function Purchase.Command(Player, Args)
local Panel = SS.Panel:New(Player, "Purchase Categories")
l... |
vim.keymap.set('n', '<F5>', '<Cmd>update|mkview|edit|TSBufEnable highlight<Cr>')
|
require "poop"
assert(make_poop() == "poop")
|
structures_of_xunra_unholy_discharge = class({})
function structures_of_xunra_unholy_discharge:OnSpellStart()
--- Get Caster, Victim, Player, Point ---
local caster = self:GetCaster()
local caster_loc = caster:GetAbsOrigin()
local playerID = caster:GetPlayerOwnerID()
local player = PlayerResource:GetPlayer(pl... |
-----------------------------------------------------
ITEM.name = "Chateau L'Hermitage 1884"
ITEM.desc = "Bottle of Chateau L'Hermitage Red Wine, 1884."
ITEM.category = "Alcohols"
ITEM.model = "models/foodnhouseholditems/wine_red3.mdl"
ITEM.hunger = 20
ITEM.thirst = 50
ITEM.empty = false
ITEM.permit = "consum... |
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'python3', '-m', 'esbonio' },
filetypes = { 'rst' },
root_dir = util.find_git_ancestor,
},
docs = {
description = [[
https://github.com/swyddfa/esbonio
Esbonio is a language server for [Sphinx](https://www.sphinx-doc.org/e... |
ChaosMonkey = {}
function ChaosMonkey.new(rand_stack)
local self = {}
self.destinations = {}
self.pipeline = {}
self.rand_stack = rand_stack or {}
self.rand_index = 1
self.write_stats = {}
self.read_stats = {}
function self:random()
if self.rand_index > #self.rand_stack then... |
-- 每个area是一个赛场,本服务是赛场管理器
local skynet = require "skynet"
require "skynet.manager"
local game_mgr = require "game_mgr"
local CMD = {}
function CMD.start()
game_mgr:init()
end
function CMD.get_game(game_id)
return game_mgr:get_game(game_id)
end
local function dispatch(_, session, cmd, ...)
local f = CMD[c... |
local wibox = require 'wibox'
local beautiful = require 'beautiful'
local awful = require 'awful'
local launcher = wibox.widget {
widget = wibox.widget.imagebox,
image = beautiful.awesome_icon,
buttons = {
awful.button({}, 1, function()
awful.spawn(require('config.apps').launcher)
... |
/*
Perma SWEP system by Hackcraft STEAM_0:1:50714411
PermSweps = {
ply = {swep1, swep2},
Group = {
superadmin = {swep1, swep2}
}
EDS = {
5 = {swep1, swep2}
}
}
*/
// Players
util.AddNetworkString("PermSweps_GetInventoryFromServer")
util.AddNetworkString("PermSweps_SendInventoryToCli... |
GLib.BitConverter = {}
local bit_band = bit.band
local bit_lshift = bit.lshift
local bit_rshift = bit.rshift
local math_floor = math.floor
local math_frexp = math.frexp
local math_ldexp = math.ldexp
local math_huge = math.huge
-- Integers
function GLib.BitConverter.UInt8ToUInt8s (n)
return n
end
function GLib.Bi... |
-- luacheck: ignore 212
local Lex = require 'lex'
local Util = require 'util'
local to_hash = Util.to_hash
local sf = string.format
-- local concat = Util.concat
local UNOPR = { 'not', '-', '~', '#' }
local BINOPR = {
{ '+', 10, 10 },
{ '-', 10, 10 },
{ '*', 11, 11 },
{ '%', 11, 11 },
{ '^', 14, ... |
ITEM.name = "Деревянная коробка"
ITEM.desc = "Простейший деревянный ящик."
ITEM.model = "models/container4.mdl"
ITEM.width = 2
ITEM.height = 2
ITEM.invW = 4
ITEM.invH = 4
ITEM.locksound = "hgn/crussaria/devices/door_regular_stopclose.wav"
ITEM.opensound = "hgn/crussaria/devices/door_regular_opening.wav"
|
--Core
_G.DoReady = {}
--Paladin
_G.DoReady.Paladin = {}
_G.DoReady.Paladin.Protection = {}
_G.DoReady.Paladin.Protection.Raid = {}
_G.DoReady.Paladin.Protection.MythicPlus = {}
_G.DoReady.Paladin.Protection.MythicPlus.Fortified = {}
_G.DoReady.Paladin.Protection.MythicPlus.Tyrannical = {}
_G.DoReady.Paladin.Retributi... |
require("pixel")
N=3*3
function sponge(x,y,z,d)
if d < 1 then
pix3d(x,y,z)
else
sponge(x,y,z,d/3)
sponge(x+d,y,z,d/3)
sponge(x+2*d,y,z,d/3)
sponge(x,y+d,z,d/3)
sponge(x+2*d,y+d,z,d/3)
sponge(x,y+2*d,z,d/3)
sponge(x+d,y+2*d,z,d/3)
sponge(x+2*d,y+2*d,z,d/3)
sponge(x... |
AssistantReadyCheck = CreateFrame("Frame");
AssistantReadyCheck:RegisterEvent("READY_CHECK");
AssistantReadyCheck:RegisterEvent("READY_CHECK_CONFIRM");
AssistantReadyCheck:RegisterEvent("READY_CHECK_FINISHED");
local readyCheckPlayers, readyCheckAllReady;
AssistantReadyCheck:SetScript("OnEvent", function(self, event,... |
function write_file()
file = io.open("lua.txt", "w+")
--LatLong
latlong = get_latlong();
if (latlong.latitude ~= nil and latlong.longitude ~= nil) then
file:write("latitude:", latlong.latitude, " longitude:", latlong.longitude, "\n");
end
--Recordings
recordings = get_recordings()
for j=1,#... |
--[[
// FileName: PlayerCarousel.lua
// Written by: darthskrill
// Description: Module for building the UI for the player selection carousel
]]
local PlayerCarousel = {}
PlayerCarousel.__index = PlayerCarousel
-- SERVICES
local GuiService = game:GetService("GuiService")
local CoreGuiService = game:GetService("Core... |
useConfig = require "RTS use config";
useConfig(1, 25);
|
id = 'V-38663'
severity = 'medium'
weight = 10.0
title = 'The system package management tool must verify permissions on all files and directories associated with the audit package.'
description = 'Permissions on audit binaries and configuration files that are too generous could allow an unauthorized user to gain privil... |
--[[
Variables
]]
local currentTarget = nil
local currentTargetCoords = nil
local skilling = false
local insideSouthSide = false
--[[
Functions
]]
local function breakInToRegister()
skilling = true
local registerId = string.format("%.2f", currentTargetCoords.x) .. "_" .. string.format("%.2f", cu... |
local ACF = ACF
local Message = SERVER and ACF.PrintLog or ACF.PrintToChat
local Names = {
[1] = "Sandbox",
[2] = "Classic",
[3] = "Competitive"
}
local Settings = {
Gamemode = function(_, _, Value)
local Mode = math.Clamp(math.floor(tonumber(Value) or 2), 1, 3)
if Mode == ACF.Gamemode then return end
ACF... |
-- See Copyright Notice in lal.lua
local utl = require 'lal/lang/util'
local CodeChunk = require 'lal/lang/chunk'
local List = require 'lal/util/list'
local class = require 'lal/util/class'
-----------------------------------------------------------------------------
local function concatChunkValues(LC... |
--[[
AztupBrew(Fork of IronBrew2): obfuscation; Version 2.7.2
]]
return(function(SonaBona_h,SonaBona_a,SonaBona_q)local SonaBona_k=string.char;local SonaBona_e=string.sub;local SonaBona_n=table.concat;local SonaBona_o=math.ldexp;local SonaBona_r=getfenv or function()return _ENV end;local SonaBona_m=select;local SonaBo... |
skill_action = {
[17001] = { },
[17002] = { },
[17003] = { },
[31001] = { },
[31002] = { },
[31003] = { },
[31004] = { },
[31005] = { },
[31006] = { },
[31007] = { },
[31008] = { },
[34001] = { },
[35001] = { },
[35002] = { },
[35003] = { },
[35004] = { },
[35005] = { },
[35006] = { },
[35007] = { },
[35008] = { },
[35... |
-------------------------------------------------------------------------------
-- DungeonWaypoints by Artoo, US-Lightbringer
-- <Psychosocial>, http://psychosocial-lightbringer.enjin.com
-------------------------------------------------------------------------------
local AceLocale = LibStub:GetLibrary("AceLocale-... |
local skynet = require "skynet"
local area_list = require "area_list"
local M = {}
function M:init()
self.area_tbl = {}
self:create_area_by_list()
end
function M:create_area_by_list()
for _,v in ipairs(area_list) do
--skynet.error("创建游戏赛场 "..v.name)
local addr = skynet.newservice(v.servic... |
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP .. "/intllib.lua")
-- 0.4.17 or 5.0 check
local y_off = 20
if minetest.registered_nodes["default:permafrost"] then
y_off = 10
end
-- rideable horse
mobs:register_mob("mob_horse:horse", {
type = "animal",
visual =... |
local db = require('persistable')('working_directory')
local shell = require('shell')
local arg = ...
local wdName = arg or 'default'
local wdTable = db.read() or {}
local cwd = shell.getWorkingDirectory()
wdTable[wdName] = cwd
db.write(wdTable)
print('> new "' .. wdName .. '" working dir: ' .. cwd) |
AddCSLuaFile()
ENT.Base = "npc_nb_base"
// Moddable
ENT.AttackAnims = { "attackB", "attackD", "attackE", "attackF", "swatleftmid", "swatrightmid" }
ENT.AnimSpeed = 1.2
ENT.AttackTime = 0.5
ENT.MeleeDistance = 64
ENT.BreakableDistance = 96
ENT.Damage = 60
ENT.BaseHealth = 200
ENT.MoveSpeed = 50
ENT.MoveAnim = ACT_WA... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
include("STALKERNPCBaseVars.lua")
ENT.HitBoxToHitGroup = {
[0] = HITGROUP_HEAD,
[16] = HITGROUP_CHEST,
[15] = HITGROUP_STOMACH,
[5] = HITGROUP_RIGHTARM,
[2] = HITGROUP_LEFTARM,
[12] = HITGROUP_RIGHTLEG,
[8] = HITGROUP_LEFTLEG
}
E... |
function ui.sidebarHeadWhatCanIDo ()
ui.sidebarHead( function ()
--ui.image{ attr = { class = "right icon24" }, static = "icons/48/info.png" }
ui.heading {
level = 2, content = _"What can I do here?"
}
end )
if not app.session.member then
ui.sidebarSection( function()
ui.heading { leve... |
-- For the example the controls and camera are disabled, but you might
-- want to handle this else where in your game.
Events.ConnectForPlayer("color_picker_enable_player", function(player)
player.movementControlMode = MovementControlMode.VIEW_RELATIVE
player.lookControlMode = LookControlMode.RELATIVE
end)
Events.C... |
ENT.Type = "anim"
ENT.PrintName = "방송 시스템"
ENT.Author = "Chessnut"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.Category = "Nutscript"
ENT.PersistentSave = false;
if (SERVER) then
function ENT:Initialize()
self:SetModel("models/props_lab/citizenradio.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVE... |
local L = LibStub("AceLocale-3.0"):NewLocale("ArcaniteCoordinator", "ruRU")
L = L or {}
L["Arcanite Coordinator"] = "Арканитовый Координатор"
L["ArcaniteCoordinator"] = "АрканитовыйКоординатор"
L["Minimap Button"] = "Кнопка на Миникарте"
L["minimapDesc"] = "Включить кнопку на миникарте. Потребуется перезагрузка /reload... |
return require("installer/integrations/ls/helpers").npm.builder({
install_package = "vim-language-server",
lang = "vimls",
})
|
require "XmlWriter"
require "vmath"
local function GenStringFromArray(theArray)
local array = {" "}
for i, vector in ipairs(theArray) do
array[#array + 1] = " " .. table.concat(vector, " ");
end
return table.concat(array, "\n");
end
local positions = {};
local colors = {};
local topFan = ... |
local route_6_0 = DoorSlot("route_6","0")
local route_6_0_hub = DoorSlotHub("route_6","0",route_6_0)
route_6_0:setHubIcon(route_6_0_hub)
local route_6_1 = DoorSlot("route_6","1")
local route_6_1_hub = DoorSlotHub("route_6","1",route_6_1)
route_6_1:setHubIcon(route_6_1_hub)
|
local cache = require "luacheck.cache"
local config = require "luacheck.config"
local expand_rockspec = require "luacheck.expand_rockspec"
local format = require "luacheck.format"
local fs = require "luacheck.fs"
local globbing = require "luacheck.globbing"
local luacheck = require "luacheck"
local multithreading = req... |
modifier_vengeful_special_attack = class({})
function modifier_vengeful_special_attack:OnCreated(params)
if IsServer() then
self.max_range = self:GetAbility():GetSpecialValueFor("link_range")
self.extra_damage = self:GetAbility():GetSpecialValueFor("extra_damage")
self.root_duration = self:... |
return {
name = "Adventurer";
description = "A fledgling explorer can pick up many neat tricks on their adventures.";
pointsGainPerLevel = 1;
startingPoints = 0;
lockPointsOnClassChange = true;
minLevel = 1;
maxLevel = 10;
-- visual attributes
layoutOrder = 1;
bookColor = Color3.fr... |
owners = "epicikr"
bannedlist = {""}
loopkill = {""}
orbsafetestmode=false
antiban=true
buildnumber=5
if orbsafetestmode==true then
buildnumber=5 .. " testmode"
antiban = false
end
if orbsafetestmode==true then
script.Parent = game.Workspace
else
script.Parent = nil
end
selected = "BRICKER24alt"
local credit = coroutin... |
module(..., package.seeall)
--------------------------------------------------------------------------------
-- Event Handler
--------------------------------------------------------------------------------
function onCreate(e)
layer = flower.Layer()
scene:addChild(layer)
-- group1
group1 = flower.Gr... |
local Prop = {}
Prop.Name = "N 010, Subterrâneo"
Prop.Cat = "Subterrâneo"
Prop.Price = 750
Prop.Doors = {
Vector(-196, 3183, -383),
Vector(-196, 3089, -383),
}
GM.Property:Register( Prop ) |
local combat = {}
for i = 20, 70 do
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 6000)
condition:setParameter(CONDITION_PARAM_STAT_MAGICPOINTSPERCENT, i)
combat[i] = Combat()
combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
combat[i]:setParameter... |
--************************
--name : SINGLE_AG_BT_01
--ver : 0.1
--author : Kintama
--date : 2004/09/08
--lang : en
--desc : terminal mission
--npc :
--************************
--changelog:
--2004/09/08(0.1): Added description
--************************
function DIALOG()
NODE(0)
... |
table1 = {}
table1[1], table1[2], table1[3] = 10, 10, 20
summator = function(some_table)
sum = 0
for counter = 1, #some_table, 1 do
sum = sum + some_table[counter]
end
return sum
end
table2 = {10, 20, 30, 40, 50}
print("The sum is: ", summator(table1))
print("The sum is: ", summator(table2)) |
local TerminalGroupHandler = require("modutram.terminal.TerminalGroupHandler")
local Station = require("modutram.Station")
local Slot = require("modutram.slot.Slot")
local t = require("modutram.types")
describe('TerminalGroupHandler', function ()
local identMatrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0,... |
-- Server
local drivers = {}
local payouts = {
[1] = function() return (math.random(50, 75)) end,
[2] = function() return (math.random(80, 120)) end,
[3] = function() return (math.random(80, 200)) end,
[4] = function() return (math.random(120, 200)) end,
[2] = function() return (math.random(200, 500)) en... |
local key = require 'lustre.handshake.key'
local Handshake = require 'lustre.handshake'
local utils = require "spec.utils"
describe('handshake', function ()
it('build_key_from', function ()
local key = key.build_accept_from('dGhlIHNhbXBsZSBub25jZQ==');
utils.assert_eq(key, 's3pPLMBiTxaQ9kYGzzhZRbK+... |
--[[-------------------------------------------------------------------
Map Fixes
---------------------------------------------------------------------]]
hook.Add("OnRoundChange", "RemoveWaterSplashes", function()
-- Displace laser damage
for _, v in pairs( ents.FindByName("laserdamage") ) do
if IsValid(v) then
... |
-- Copyright (C) 2016 Pau Carré Cardona - All Rights Reserved
-- You may use, distribute and modify this code under the
-- terms of the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt).
require "inn"
require 'optim'
require 'torch'
require 'xlua'
local nn = require 'nn'
local locatorconv = {}
fun... |
object_building_general_naboo_sacred_place_skaak_bunker = object_building_general_shared_naboo_sacred_place_skaak_bunker:new {
}
ObjectTemplates:addTemplate(object_building_general_naboo_sacred_place_skaak_bunker, "object/building/general/naboo_sacred_place_skaak_bunker.iff")
|
function copy(obj, seen)
if type(obj) ~= 'table' then return obj end
if seen and seen[obj] then return seen[obj] end
local s = seen or {}
local res = setmetatable({}, getmetatable(obj))
s[obj] = res
for k, v in pairs(obj) do res[copy(k, s)] = copy(v, s) end
return res
end
return copy; |
----
-- Handles remote world functionality.
--
-- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk)
--
-- @module SDK.Remote.World
-- @see SDK.Remote
--
-- @author [Depressed DST Modders](https://github.com/dstmodders)
-- @copyright 2020
-- @license MIT
-- @release ... |
local M = {}
local fn = vim.fn
local api = vim.api
local uv = vim.loop
local middleware_tbl = {}
local MiddleWare = {cache_enabled = true}
function M.get(regname)
return middleware_tbl[regname]
end
function M.set(regname, middleware)
middleware_tbl[regname] = middleware
end
function M.del(regname)
middl... |
local json = require('json')
local curl = require('http.client').new()
local utils = require('dockerapi.utils')
-- https://docs.docker.com/engine/api/v1.35/#operation/SwarmInspect
local function inspect(url, unix_socket)
local r = curl:get(
string.format('%s/swarm', url),
{unix_socket = unix_socket... |
PlayerFlyState = Class{__includes = EntityFlyState}
function PlayerFlyState:init(player)
self.entity = player
end
function PlayerFlyState:enter(enterParams)
self.entity:changeJetState("fly")
end
function PlayerFlyState:update(dt)
self.entity.direction:reset()
if love.keyboard.isDown('left') then
... |
local function map(mod, key, exec)
vim.keymap.set(mod, key, exec)
end
local wk = require("which-key")
local function telescope()
return require("telescope.builtin")
end
wk.register({
q = { "<cmd>close<CR>", "close" },
w = { "<cmd>wa<CR>", "save" },
Q = { "<cmd>quitall<CR>", "quit" },
["'"] = {
function(... |
-- Deadlock (deadlock-beltboxes-loaders) integration
if deadlock then
-- Tier table
local nuclear_tier_table = {
transport_belt = "nuclear-transport-belt",
colour = {r=0,g=1,b=0},
underground_belt = "nuclear-underground-belt",
splitter = "nuclear-splitter",
technology = "... |
--氷水艇キングフィッシャー
--
--Script by Trishula9
function c101107008.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101107008,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
e1:... |
function user_setup()
state.OffenseMode:options('Normal', 'Acc', 'Refresh', 'Hybrid', 'Learning', 'AM3')
state.WeaponskillMode:options('Normal', 'Acc')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal', 'PDT', 'Learning')
gear.capes = {}
gear.capes.tp = { name="Rosmerta... |
local Character = require 'game.world.character.character'
local Util = require 'util'
local AnnoyingBastard = {}
AnnoyingBastard.__index = AnnoyingBastard
setmetatable(AnnoyingBastard, { __index = Character })
function AnnoyingBastard.create(world, player, x, y, npcNumber)
local self = Character.create(world, x... |
DEFINE_BASECLASS( "mp_service_browser" )
SERVICE.Name = "Webpage"
SERVICE.Id = "www"
SERVICE.Base = "res"
SERVICE.Abstract = true -- This service must be handled as a special case.
if CLIENT then
function SERVICE:OnBrowserReady( browser )
BaseClass.OnBrowserReady( self, browser )
browser:OpenURL( self.url )... |
--[[ Copyright 2014 Sergej Nisin
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 agreed to in w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.