content stringlengths 5 1.05M |
|---|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
local _slots = {
{
goto_spot = "",
groups = {
["A"] = true,
},
spots = {
"Visitslide",
},
},
{
attach = "DecorInt_04",
goto_spot = "Pathfind",
groups = {
["B"] = true,
},
spots = {
"Visitbench",
},
},
}
PrgAmbientLi... |
local st = require "util.stanza";
local json = require "cjson";
-- detect new jibri start recording action and add recorder_identity info to metadata
module:hook("pre-iq/full", function(event)
local stanza = event.stanza;
if stanza.name == "iq" then
local jibri = stanza:get_child('jibri', 'http://jitsi... |
-- Regex Parser
-- Parses to an internal IL representation used for the construction of an NFA
local parser = {}
function parser.lexRegex(regexStr)
local termEaten
local function peek()
return regexStr:sub(1, 1)
end
local pos = 0
local function eatc()
local c = peek()
termEaten = termEaten .. c... |
--[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
--]]
local lpeg = require("lpeg")
local tostring = tostring
local pairs, ipairs = pairs, ipairs
local next, type = next, type
local error = error
local util = require("json.decode.util")
local build... |
CreateListCategory( "Entities", "<insert description>" )
CreateListFunction( "CreateUnit", "Create a unit (squad member)" )
CreateListArgument( "pos", "array<number>", "Spawn position for unit. {x,y}, or {xy} allowed." )
CreateListArgument( "squadID", "int", "ID of squad that the unit will be added to. D... |
---------------------------------------------
-- Amon Drive
--
-- Description: Performs an area of effect weaponskill. Additional effect: Paralysis + Petrification + Poison
-- Type: Physical
-- 2-3 Shadows?
-- Range: Melee range radial
-- Special weaponskill unique to Ark Angel TT. Deals ~100-400 damage.
--------... |
-- local dbg = require("debugger")
-- dbg.auto_where = 2
local slice = require'tools.list'.slice
local table = {"a", "b", "c"}
describe("empty", function()
it("does nothing", function()
slice({}, 1, 0, function()
error("Never risen")
end)
end)
end)
describe("not empty", function()
it("still may no... |
local ok, spellsitter = pcall(require, "spellsitter")
if not ok then
vim.notify "Could not load spellsitter"
return
end
spellsitter.setup {
-- Whether enabled, can be a list of filetypes, e.g. {'python', 'lua'}
enable = true,
-- Highlight to use for bad spellings
hl = "SpellBad",
-- Spellchecker to use... |
local setttings = {}
setttings = {}
return setttings
|
-- AUTO BUILD, DON'T MODIFY!
dofile "autobuild/cocos2d-ui-types.lua"
name = "cocos2d_ui"
path = "../../frameworks/libxgame/src/lua-bindings"
headers = [[
#include "lua-bindings/lua_conv.h"
#include "lua-bindings/lua_conv_manual.h"
#include "lua-bindings/LuaCocosAdapter.h"
#include "cclua/xlua.h"
#... |
novaorionTravel3ScreenPlay = ScreenPlay:new {
numberOfActs = 1,
}
registerScreenPlay("novaorionTravel3ScreenPlay", true)
function novaorionTravel3ScreenPlay:start()
if (isZoneEnabled("naboo")) then
self:spawnMobiles()
self:spawnSceneObjects()
end
end
function novaorionTravel3ScreenPlay:spawnSceneObjects()
... |
--------------------------------
-- @module Waves
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
-- brief Set the amplitude rate of the effect.<br>
-- param amplitudeRate The value of amplitude rate will be set.
-- @function [parent=#Waves] setAmplitudeRate
-- @param self
-- @param #fl... |
--[[
doc - Dig ore chunk
]]
target_ores = {
'minecraft:coal_ore',
'minecraft:iron_ore',
'minecraft:gold_ore',
'minecraft:lapis_ore',
'minecraft:redstone_ore',
'minecraft:lit_redstone_ore',
'minecraft:diamond_ore',
-- 'minecraft:obsidian',
'minecraft:glowstone',
'minecraft:qua... |
return {
summary = 'Create a new Thread.',
description = 'Creates a new Thread from Lua code.',
arguments = {
code = {
type = 'string',
description = 'The code to run in the Thread.'
},
filename = {
type = 'string',
description = 'A file containing code to run in the Thread.'
... |
local state = {}
state._NAME = ...
local Body = require'Body'
local timeout = 10.0
local t_entry, t_update, t_exit
function state.entry()
print(state._NAME..' Entry' )
-- Update the time of entry
local t_entry_prev = t_entry -- When entry was previously called
t_entry = Body.get_time()
t_update = t_entry
... |
include( "shared.lua" )
local function PermWepsVIPShop( )
local pShop = vgui.Create( "DFrame" )
pShop:SetSize( 400, 400 )
pShop:SetPos( ScrW( )*0.5, ScrH( )*0.5 )
pShop:SetTitle( "PermWeps VIP Shop" )
pShop:SetSizable( true )
pShop:SetDeleteOnClose( false )
pShop:Center( )
pShop:MakePopup( )
local button_he... |
local st = require "util.stanza";
local services = module:get_option("external_services");
local xmlns_extdisco_1 = "urn:xmpp:extdisco:1";
local xmlns_extdisco_2 = "urn:xmpp:extdisco:2";
module:add_feature(xmlns_extdisco_1);
module:add_feature(xmlns_extdisco_2);
local function handle_services(event)
local origin, ... |
local require_paths =
{"?.lua", "?/init.lua", "vendor/?.lua", "vendor/?/init.lua"}
love.filesystem.setRequirePath(table.concat(require_paths, ";"))
local tick = require("tick")
local typeutils = require("typeutils")
local window = require("window")
local drawing = require("drawing")
local miscutils = require("miscut... |
--[[FDOC
@id CharaTppDemoPuppet
@category Script Character
@brief Demo人形
]]--
CharaTppDemoPuppet = {
----------------------------------------
--各システムとの依存関係の定義
--
-- GeoやGrなどの各システムのJob実行タイミングを
-- 「キャラクタのJob実行後」に合わせ、
-- システムを正常に動作させるために必要。
-- 使用するシステム名を記述してください。
--
-- "Gr" : 描画を使うなら必要
-- "Geo" : 当たりを使うなら必要
-- "... |
local core = require "sys.core"
local rpc = require "saux.rpcraw"
local rpcproto = require "saux.xproto"
local dns = require "sys.dns"
local serialize = require "sys.serialize"
local rpcDef = require "saux.rpcDef"
local client = {
m_Server = nil
}
local rpcclient
-- global function like getserverfd can be defin... |
include( "shared.lua" )
AccessorFunc( ENT, "texture", "Texture" )
AccessorFunc( ENT, "drawNextFrame", "DrawNextFrame" )
local rendering = false
local mat = CreateMaterial( "UnlitGeneric", "GMODScreenspace", {
[ "$basetexturetransform" ] = "center .5 .5 scale -1 -1 rotate 0 translate 0 0",
[ "$texturealpha" ] = "0",... |
function pointCloud()
local depthBuffer=sim.getVisionSensorDepthBuffer(depthCam)
local header = {seq=0,stamp=simROS.getTime(), frame_id="k"}
local points = {}
--local point = {x=0,y=0,z=0}
--local ch = {name="distance",values={}}
local channel = {}
for i=1,64,1 do
local xAngle=((32-i... |
----
-- Tests for the xlsxwriter.lua.
--
-- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
plan(5)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require 'xlsxwriter.worksheet'
local worksheet
----
-- Test the _write_odd_header() method.
--
caption =... |
---
-- @class ENT
-- @desc Dummy ent that just spawns a random TTT weapon and kills itself
-- @section ttt_random_weapon
ENT.Type = "point"
ENT.Base = "base_point"
ENT.autoAmmoAmount = 0
---
-- @param string key
-- @param string|number value
-- @realm shared
function ENT:KeyValue(key, value)
if key == "auto_ammo" t... |
--- original code: https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn/commits/master
--- modify by kevinma
local ScriptHelper = require 'klib/helper/script_helper'
local KC = require 'klib/container/container'
local AUTOFILL_TURRET_AMMO_QUANTITY = 10
local AUTOFILL_VEHICLE_FUEL_QUANTITY = 50
local AUTOFILL_... |
toX = {};
toY = {};
eToX = {};
eToY = {};
defX = {};
defY = {};
eDefX = {};
eDefY = {};
mod = -1;
camMod = -1;
mirror = true;
--le robé el codigo al bbpanzu jijijija
local angleshit = 1;
local anglevar = 2;
function onCreate()
for i = 0, 3, 1
do
toX[i] = 0;
toY[i] = 0;
eToX[i] = 0... |
-----------------------------------
-- Area: Batok Markets
-- NPC: Zaira
-- Standard Merchant NPC
-- !pos -217.316 -2.824 49.235 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs")
require("scripts/globals/shop")
function onTrigger(player, npc)
local stock =
{
... |
local _M = {}
local cache = require "resty.gateway.cache"
local get_cache = cache.get
local set_cache = cache.set
local ngx_re_find = ngx.re.find
local util = require("resty.gateway.util")
local function url_routes_sort(a,b)
return a["order_no"] < b["order_no"]
end
-- 根据ratelimit_url的配置返回匹配前缀的table
local function... |
package("magnum")
set_homepage("https://magnum.graphics/")
set_description("Lightweight and modular C++11/C++14 graphics middleware for games and data visualization.")
set_license("MIT")
add_urls("https://github.com/mosra/magnum/archive/refs/tags/$(version).zip",
"https://github.com/mosra... |
local fail = false
print("Test: unm...")
if -a ~= a*-1 then
print("\tFail: -a")
fail = true
end
if -na ~= a then
print("\tFail: -na")
fail = true
end
if -b ~= bn("-123456789012345678901234567") then
print("\tFail: -b")
fail = true
end
if -nf ~= nf*-1 then
print("\tFail: -nf")
fail =... |
local ECS = require('wacky-ecs')
local width, height = love.graphics.getDimensions()
-- Create components for position, velocity, size, color
ECS.Component.new('position', function(x, y)
return {x = x, y = y}
end)
ECS.Component.new('velocity', function(vx, vy)
return {vx = vx, vy = vy}
end)
ECS.Component.new('size... |
return {
PlaceObj("ModItemOptionToggle", {
"name", "NewMinute",
"DisplayName", T(302535920011346, "Each Minute"),
"DefaultValue", false,
}),
PlaceObj("ModItemOptionToggle", {
"name", "NewHour",
"DisplayName", T(302535920011347, "Each Hour"),
"DefaultValue", false,
}),
PlaceObj("ModItemOptionToggle", {
... |
local profileKeeper = require "profileKeeper"
local accountPool = require "accountPool"
require "customizer"
local customizer = createCustomizer()
function launch()
local profile = profileKeeper.selectedProfile
if customizer.profileName then
if profileKeeper.profiles[customizer.profileName] then
profile = prof... |
return function()
local bindableEvent = Deus:Load("Deus.BindableEvent")
local event
beforeEach(function()
event = bindableEvent.new()
end)
describe("object", function()
it("new() should give a table", function()
expect(event).to.be.a("table")
end)
end)
... |
require("http_common")
require("user_model")
require("user_view")
local function getUser(stream, headers)
--Extract user name from URI.
local pattern = "/UserService/Users/(%w+)"
local userName = getKeyFromHeaders(headers,
pattern)
if not userName then
setHeaders(stream,... |
local M = {}
local dap = require('dap')
M.stop_debugger = function()
dap.disconnect()
dap.close()
end
M.setup = function()
local options = { noremap = true, silent = true }
vim.api.nvim_set_keymap("n", "<leader>b", "<cmd>lua require'dap'.toggle_breakpoint()<cr>", options)
vim.api.nvim_set_keymap("n", "<le... |
local actions = require('telescope.actions')
require('telescope').setup {
defaults = {
file_sorter = require'telescope.sorters'.get_fzy_sorter,
file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new,
... |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_shutnik" )
local utils = require(GetScriptDirectory() .. "/util")
local mutil = requ... |
--黒の魔導陣
--Dark Magic Circle
--Script by dest
--e1 needs updated files from https://github.com/Fluorohydride/ygopro-scripts/pull/273 in order to work
function c900909057.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CH... |
local kernel = {}
kernel.language = "glsl"
kernel.category = "composite"
kernel.name = "yuv420f"
kernel.fragment =
[[
// Using BT.709 which is the standard for HDTV
const P_COLOR mat3 kColorMap = mat3(
1, 1, 1,
0, -.18732, 1.8556,
1.57481, -.46813, 0);
// BT.601, which is th... |
Locales['de'] = {
['actions'] = 'Aktionen',
['amount'] = 'Betrag',
['balance'] = 'Kontostand',
['bank'] = 'Bank',
['bill_amount'] = 'Rechnungsbetrag',
['billing'] ... |
table.max = function(t)
if #t == 0 then
return nil
end
local m = t[1]
for i = 2, #t do
if t[i] > m then
m = t[i]
end
end
return m
end
palindromes = {}
for x = 100, 999, 1 do
for y = 100, 999, 1 do
product = x * y
s = tostring(product)
if s == string.reverse(s) then
... |
i = 0
if i == 0 then
print("test")
end
while i ~= 0 do
print("test")
end
repeat
print("test")
until i == 0
for j = 0, 1, 1 do
print("test")
end
|
--[[
--=====================================================================================================--
Script Name: Force Chat, for SAPP (PC & CE)
Description: Force a player to say something.
Command Examples:
/fchat 1 hello there!
* Forces player #1 to say "hi there" (uses global chat format)
> output: Chalw... |
local constant = {}
--庄家模式
constant.BankerMode = {
YING = 1, -- 赢家做庄
LIAN = 2, -- 连庄 按顺序坐庄
RAND = 3, -- 随机庄家
}
constant.OVER_TYPE = {
NORMAL = 1, --正常胡牌
FLOW = 2, --流局
}
constant.TYPE = {
CHI = 1,
PENG = 2,
PENG_GANG = 3,
MING_GANG = 4,
AN_GANG = 5,
HU = 6,
TING = 7
}
constant.FANTYPE = {
QIA... |
---@class HairOutfitDefinitions
HairOutfitDefinitions = HairOutfitDefinitions or {};
-- forbid some haircut for later in the apocalypse
-- also make some available only for certain outfit
HairOutfitDefinitions.haircutDefinition = {};
local cat = {};
cat.name = "MohawkShort";
cat.onlyFor = "Punk,Bandit,Redneck,Biker,Pr... |
local line_height= get_line_height()
local option_set_elements= (SCREEN_HEIGHT / line_height) - 5
local sect_width= SCREEN_WIDTH/2
local sect_height= SCREEN_HEIGHT
local rate_coordinator= setmetatable({}, rate_coordinator_interface_mt)
rate_coordinator:initialize()
dofile(THEME:GetPathO("", "art_helpers.lua"))
dofile(... |
-- alnbox, alignment viewer based on the curses library
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use
describe("alnbox.columnDigit", function()
it("gets a digit for top header", function()
local columnDigit = require 'alnbox.columnDigit'
local digits = {}
local... |
object_tangible_collection_deathtrooper_alpha_torn_shirt_01 = object_tangible_collection_shared_deathtrooper_alpha_torn_shirt_01:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_deathtrooper_alpha_torn_shirt_01, "object/tangible/collection/deathtrooper_alpha_torn_shirt_01.iff") |
pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
|
-- Source: https://github.com/AmrEldib/cmder-powerline-prompt
--- promptValue is whether the displayed prompt is the full path or only the folder name
-- Use:
-- "full" for full path like C:\Windows\System32
local promptValueFull = "full"
-- "folder" for folder name only like System32
local promptValueFolder = "fo... |
local id = {}
local ids = {}
function id.get(name)
return ids[name]
end
function id.new(name, newID)
ids[name] = newID
end
return id
|
return PlaceObj("ModDef", {
"title", "Alien Visitors",
"version", 2,
"version_major", 0,
"version_minor", 2,
"saved", 0,
"image", "Preview.png",
"id", "ChoGGi_AlienVisitors",
"steam_id", "1569952407",
"pops_any_uuid", "9be66a96-5731-4b56-8176-1af851ce18c4",
"author", "ChoGGi",
"lua_revision", 249143,
"code"... |
local map = require "settings.utils".map
local g = vim.g
g.floaterm_autoclose = 0
g.floaterm_width=0.85
g.floaterm_height=0.65
-- g.floaterm_winblend=0.7
g.floaterm_autoinsert=1
g.floaterm_keymap_kill = '<F10>'
g.floaterm_keymap_toggle = '<F12>'
g.floaterm_title = '[$1/$2]'
-- g.floaterm_title = require"settings.ut... |
local mod = DBM:NewMod("d286", "DBM-WorldEvents", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 14030 $"):sub(12, -3))
mod:SetCreatureID(25740)--25740 Ahune, 25755, 25756 the two types of adds
mod:SetModelID(23447)--Frozen Core, ahunes looks pretty bad.
mod:SetZone()
mod:SetReCombatTime... |
local capDashCountOnGround = {}
capDashCountOnGround.name = "FrostHelper/CapDashOnGroundTrigger"
capDashCountOnGround.placements = {
name = "normal"
}
return capDashCountOnGround |
local function table_deepcopy_internal(orig, cyclic)
cyclic = cyclic or {}
local copy = orig
if type(orig) == 'table' then
local mt, copy_function = getmetatable(orig), nil
if mt then copy_function = mt.__copy end
if copy_function == nil then
copy = {}
if cycl... |
require("graphics")
dataref("first_axis", "sim/joystick/joystick_axis_values", "readonly", 0)
dataref("second_axis", "sim/joystick/joystick_axis_values", "readonly", 1)
function draw_some_stuff()
for i=0, 360, 30 do
graphics.set_color(0, 0, 1)
graphics.draw_angle_line(500, 500, i, 200)
gra... |
--------------------------------------------------------------------------------------
-- Simple tile mapper script by Infinite Rain, based on a sample by Unreal Software --
--------------------------------------------------------------------------------------
if not CSample then
require("sys/lua/CS2D-AmplifiedScripti... |
return
{
"prototypes.angel-petro-additions",
"prototypes.angel-refining-additions",
"prototypes.chrome",
"prototypes.clay",
"prototypes.fluorite",
"prototypes.limestone",
"prototypes.manganese",
"prototypes.platinum",
"prototypes.salt",
"prototypes.sand",
"prototypes.soil",
} |
return {
romMatch = function(name) startsWith(name:lower(), "lsdj") end,
groups = {
{
"Off",
require("MidiSync"),
require("MidiSyncArduinoboy"),
require("MidiMap")
}, {
require("AutoPlay")
}
}
}
|
---@type vm
local vm = require 'vm.vm'
local searcher = require 'core.searcher'
function vm.getRefs(source, field)
return searcher.requestReference(source, field)
end
function vm.getAllRefs(source, field)
return searcher.requestAllReference(source, field)
end
|
local bit = require 'bit'
local M = {}
function M.IPv6(address)
--[[
(c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0... |
return {'zojuist','zoja','zojas'} |
msg = {"pravougli", "jednakokraki", "kosougli"}
|
-- Query and log client software
local st = require"util.stanza";
local uuid = require"util.uuid".generate;
local xmlns_iq_version = "jabber:iq:version";
local version_id = uuid();
local xmlns_disco_info = "http://jabber.org/protocol/disco#info";
local disco_id = uuid();
module:hook("presence/bare", function(event)
... |
local config = require("config")
local nvim_lsp = require("lspconfig")
local servers = {
"gopls",
"pyright",
"rust_analyzer",
}
local function on_attach(client, bufnr)
config.buf_set_options(bufnr, {
omnifunc = "v:lua.vim.lsp.omnifunc"
})
config.buf_set_keymaps(bufnr, {
n = {
... |
local M = {}
local height_period = 50 -- period of distance measurements
local height_threshold = 250
local height_histeresis = 3
M.omni = nil
M.apds = assert(require('apds9960'))
local proximity_cb_list = require'cb_list'.get_list()
M.proximity_cb_list = proximity_cb_list --list of callbacks for distance sensor
... |
local lsp = vim.lsp
lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
underline = true,
update_in_insert = false,
virtual_text = { spacing = 4, prefix = "●" },
severity_sort = true,
})
lsp.handlers["textDocument/hover"] = lsp.with(lsp.handlers.hover, {... |
RegisterNetEvent("caue-police:purchaseVehicle")
AddEventHandler("caue-police:purchaseVehicle", function(params)
local src = source
local cid = exports["caue-base"]:getChar(src, "id")
if not cid then return end
local accountId = exports["caue-base"]:getChar(src, "bankid")
local bank = exports["caue... |
---------------------------------------------
-- Wheel of Impregnability
---------------------------------------------
local ID = require("scripts/zones/Empyreal_Paradox/IDs")
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
-... |
--[[
Food Equipment - Server
by: standardcombo
v1.0
--]]
local EQUIPMENT = script.parent
local STANCE = script:GetCustomProperty("AnimationStance")
local BINDING = script:GetCustomProperty("ActionBinding")
local pressedListener = nil
local releasedListener = nil
local leftListener = nil
function OnBindingPresse... |
net.dns.setdnsserver('8.8.8.8', 0)
net.dns.setdnsserver('4.4.4.4', 1)
function thingspeak_write(key, target_temp, current_temp, cooling_on)
print('updating thingspeak')
net.dns.resolve('api.thingspeak.com', function(_, ip)
if not ip then
print('cannot lookup api.thingspeak.com')
... |
----------------------------------------------------------------
-- Licensed under the GNU General Public License v2
-- (C) 2019, Alexander Koch <lynix47@gmail.com>
----------------------------------------------------------------
-- environment
local type = type
local tonumber = tonumber
local io = { open = io.ope... |
--[[
desc: CowardGoblin, a component of coward goblin.
author: SkyFvcker
since: 2018-9-17
alter: 2019-3-31
]]--
local _STRING = require("lib.string")
local _RESOURCE = require("lib.resource")
local _RESMGR = require("actor.resmgr")
---@class Actor.Component.Duelist.CowardGoblin
---@field public phyDef number
---@... |
class 'MeshTriangle'
function MeshTriangle:__init( position, size )
self.angle = Angle()
self.a = position + self.angle * Vector3( 0, 0, 0 )
self.b = position + self.angle * Vector3( -size, 0, -size )
self.c = position + self.angle * Vector3( size, 0, -size )
self.forward_multi = 5
self.width_multi = 1.5
self.s... |
data:extend(
{
{
type = "fluid",
name = "tungstic-acid",
subgroup = "tungsten-processing",
default_temperature = 25,
heat_capacity = "1KJ",
base_color = {r=0, g=0.2, b=0.7},
flow_color = {r=0.5, g=0.5, b=0.5},
max_temperature = 100,
icon = "__Engineersvsenvironmentalist__/graphics/... |
--[[
Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann
--]]
local newtimer = require("lain.helpers").newti... |
local skynet = require "skynet"
require "skynet.manager"
local mysql = require "skynet.db.mysql"
local backupToMysqlTime = tonumber(skynet.getenv("backupToMysqlTime"))
local CMD = {}
local pool = {}
local queue = {}
local maxconn
local index = 2
local function getconn(sync)
local db
if sync then
db =... |
return function()
local config = require("doom.core.config").config
vim.g.dashboard_session_directory = require("doom.core.system").doom_root .. "/sessions"
vim.g.dashboard_default_executive = "telescope"
vim.g.dashboard_custom_section = {
a = {
description = { " Load Last Session SPC... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
if CLIENT then return end |
corsec_special_ops_major = Creature:new {
objectName = "@mob/creature_names:corsec_major_aggro",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "corsec",
faction = "corsec",
level = 181,
chanceHit = 13,
damageMin = 1045,
damageMax = 1800,
baseXp = 17178,
baseHAM = 126000,
baseHAMmax = 15... |
local default_kick_bases = {
{{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0}}; -- 0
{{ 0, 0},{ 1, 0},{ 1,-1},{ 0, 2},{ 1, 2}}; -- R
{{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0},{ 0, 0}}; -- 2
{{ 0, 0},{-1, 0},{-1,-1},{ 0, 2},{-1, 2}}; -- L
};
local i_kick_bases = {
{{ 0, 0},{-1, 0},{ 2, 0},{-1, 0},{ 2, 0}}; -- 0
... |
local computer = computer or require("computer")
local component = component or require("component")
local eeprom = component.proxy(component.list("eeprom")())
local fs = component.proxy(eeprom.getData())
local internet = component.proxy(component.list("internet")())
local gpu = component.proxy(component.list("gpu")())... |
package '../snowflakes'
local system = require 'system'
local xpfs = require 'xpfs'
local c = require 'c'
local lua = require 'lua'
local list = require 'list'
local params = require 'commonParams'
local function testedLuaFile(path, host)
local sourceFile = path:gsub('(.+)(%.lua)', '%1_q%2')... |
local buffer = {}
local dirs = {
{0, 1},
{1, 0},
{1, 1},
{-1, 1},
{-1, 0},
{1, -1},
{0, -1},
{-1, -1},
}
local W = 40
local H = 30
function math.round(x)
if x > 0 then
return math.ceil(x)
else
return math.floor(x)
end
end
function iround(x)
if x > 0 then... |
local app = app
-- create system graphic objects
local pMainOverlay = app.Graphic(0, 0, 256, 64)
app.UIThread.setMainOverlay(pMainOverlay)
local pSubOverlay = app.Graphic(0, 0, 128, 64)
app.UIThread.setSubOverlay(pSubOverlay)
local function addMainGraphic(graphic)
if graphic then pMainOverlay:addChildOnce(graphic)... |
-- seed.lua
-- Implements the /seed command.
function HandleSeedCommand(Split, Player)
if not(Split[2]) then
Player:SendMessageInfo(cChatColor.LightGray .. "Seed: " .. Player:GetWorld():GetSeed())
else
local World = cRoot:Get():GetWorld(Split[2])
local WorldName = Split[2]
if not(World) then
Player:SendMe... |
return {'abma'} |
SR = {
lastError = ""
}
function SR:isAdmin( playerID )
local ids = GetPlayerIdentifiers( playerID )
for k,v in pairs( self.admins ) do
if findi( ids, v ) ~= nil then
return true
end
end
return false
end |
--[[------------------------------------------------------------------------------------------------------
Text for info tab
--------------------------------------------------------------------------------------------------------]]
CQB_VER = 2.2
CQB_ABOUT = [[
Base version 2.2 Aug 7, 2020
Developer: J... |
object_draft_schematic_furniture_wod_ns_potted_plant_scem_08 = object_draft_schematic_furniture_shared_wod_ns_potted_plant_scem_08:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_ns_potted_plant_scem_08, "object/draft_schematic/furniture/wod_ns_potted_plant_scem_08.iff")
|
DataMapping = {}
DataMapping.Icons = {};
DataMapping.SearchTypes = {};
DataMapping.SourceFields = {};
DataMapping.ImportFields = {};
DataMapping.ImportFields.Bibliographic = {};
DataMapping.ImportFields.Item = {};
DataMapping.ImportFields.StaticHolding = {};
--Typical Settings that shouldn't need user configuration
Da... |
--[[
© 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 COMMAND = Clockwork.command:New("DoorSetOwnable");
COMMAND.tip = "Set an ow... |
--import the objects
player = require "objects/player"
Enemy = require "objects/enemy"
local anim8 = require 'lib/anim8'
--some global variables
createEnemyTimerMax = 0.6
createEnemyTimer = createEnemyTimerMax
score = 0
scale_factor = 0.9
-- table to store the enemies
enemies = {}
function love.load()
--define a... |
WonState = State:extend()
local levels = require "data.levels"
local levelNames = { "tutorial", "1", "2", "3" }
local tanks = require "data.tanks"
local tankNames = { "T-18", "T-12", "R-10", "B-47" }
function WonState:init()
WonState.super.init(self)
self.name = "won"
self.hasNext = false
self.next = nil
log.i... |
-- sort a list of integers
i = 1
int_list = {}
while arg[i] ~= nil do
table.insert(int_list, arg[i])
i = i + 1
end
table.sort(int_list)
io.write(table.concat(int_list, ' ') .. '\n')
|
/*
_ ___ ___ ___
/_\ / __| __| / __|_ __ _____ _ __ ___
/ _ \ (__| _| \__ \ V V / -_) '_ (_-<
/_/ \_\___|_| |___/\_/\_/\___| .__/__/
By Bubbus! |_|
Global configuration for the SWEPs!
//*/
// What accuracy scheme to use? Choose fro... |
slot0 = class("HoloLiveLinkLinkSelectMediator", import("view.base.ContextMediator"))
slot0.HUB_ID = 3
slot0.register = function (slot0)
slot0:BindEvent()
slot0:requestDataFromServer()
end
slot0.requestDataFromServer = function (slot0)
pg.ConnectionMgr.GetInstance():Send(26101, {
type = MiniGameRequestCommand.REQ... |
include("shared.lua")
surface.CreateFont( "Roboto", {
font = "Roboto", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
extended = false,
size = 14,
weight = 500,
})
local function ToggleScoreboard(toggle)
if toggle then
local scrw, scrh = ScrW(), ScrH()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.