content stringlengths 5 1.05M |
|---|
Queue = {
attempts = {},
banned = {},
bans = {},
connecting = {},
whitelist = {},
}
--[[ Functions ]]--
function Queue:Init()
self.banned.tokens = {}
-- Cache bans.
local bans = exports.GHMattiMySQL:QueryResult("SELECT * FROM `bans` WHERE `unbanned`=0")
for index, row in ipairs(bans) do
self:AddBan(row)
... |
-- Imugi Show Hide Window With Command
-- William R. Good 03-22-19
if not SUPPORTS_FLOATING_WINDOWS then
-- to make sure the script doesn't stop old FlyWithLua versions
logMsg("imgui not supported by your FlyWithLua version")
return
end
function ishwwc_on_build(ishwwc_wnd, x, y)
imgui.TextUnformatted("Th... |
-- ***************************************************************
--
-- Copyright 2017 by Sean Conner. All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either ... |
local eventName = "garageBreakVehicles"
local function CreateEvent()
local function StartTouch(ent, chance)
if not ent:IsVehicle() or CGM13.Vehicle:IsBroken(ent) then return end
if math.random(1, 100) <= chance then
timer.Simple(math.random(2, 6), function()
if not ent:IsValid() then ret... |
local F, C, L = unpack(select(2, ...))
local module = F:GetModule("Misc")
local menuFrame = CreateFrame("Frame", "aSettingsMarkingFrame", UIParent, "UIDropDownMenuTemplate")
local menuList = {
{text = "Clear", func = function() SetRaidTarget("target", 0) end},
{text = "Skull", func = function() SetRaidTarget("target... |
local class = require "utils.class"
local OrderQueue = class({})
-- table.unpack = table.unpack or unpack;
-- table.pack = table.pack or function(...) return {...} end
function OrderQueue:_init_()
self.queue = {}
self.notify = {}
end
function OrderQueue:Pop(order)
local o = self.queue[1];
if o an... |
return {
name = "james2doyle/rndm",
version = "0.0.2",
description = "random string generator",
tags = { "rndm", "random", "string", "generator" },
license = "MIT",
author = { name = "james2doyle", email = "james2doyle@gmail.com" },
homepage = "https://github.com/james2doyle/lit-rndm",
dependencies = {
... |
-- prints to stdout file ready to be `require`d in your game
local file = arg[1]
if not file then
print("usage: lua " .. arg[0] .. " ./tiles_list")
os.exit()
end
local data = {}
local fmt = ' %s = { x=%d, y=%d, w=%d, h=%d, animLen=%d, isAnim=%s },'
local tn = tonumber
local fp, err = io.open(arg[1], 'r')
if ... |
--[[Author: Pizzalol
Date: 11.01.2015.
Checks if it is night time to see if it should apply the night modifier
If it is day then it removes it if the caster has the night modifier]]
function HunterInTheNight( keys )
local caster = keys.caster
local ability = keys.ability
local modifier = keys.modifier
if not Ga... |
Zones = {
{
Coords = vector3(229.4284, -418.1848, 48.09515),
Radius = 0.8,
},
{
Coords = vector3(236.0107, -420.9793, 48.09515),
Radius = 0.8,
},
{
Coords = vector3(1843.076, 2585.989, 46.01429),
Radius = 1.0,
},
{
Coords = vector3(1834.164, 2594.318, 46.0143),
Radius = 1.0,
},
} |
require("config")
require("framework.init")
-- define global module
game = {}
function game.startup()
game.showDemoScene()
end
function game.exit()
--cc.Director:getInstance():endToLua()
os.exit()
end
function game.showDemoScene()
display.replaceScene(require("MainScene").new(), "fade", 0.6, display... |
-- Safe Data Store
-- Crazyman32
-- February 3, 2017
--[[
Works exactly like the real DataStore.
safeDataStore.Failed(method, key, errorMessage)
--]]
local SafeDataStore = {}
SafeDataStore.__index = SafeDataStore
local MAX_ATTEMPTS = 5
local ATTEMPT_INTERVAL = 2
local dataStoreService = game:GetService("D... |
if not matches[2] then
dx.mining:showConfigs()
return
end
local val = matches[4]
if val == "true" or val == "yes" or val == "on" then val = true end
if val == "false" or val == "no" or val == "off" then val = false end
local numberVal = tonumber(val)
val = numberVal and numberVal or val
dx.mining:toggle(ma... |
--[[local spam = {}
function antiSpam()
if (spam[source]) then
spam[source] = 1
elseif (spam[source] >= 5) then
cancelEvent()
exports.UDCdx:new(source, "Refrain from command spamming, please")
else
spam[source] = spam[source] + 1
end
end
addEventHandler("onPlayerCommand", root, antiSpam)
function clearAn... |
-- =======================================================================================
-- Plugin: fileFinder.lua
-- Programmer: Cooper Santillan
-- Last Modified: October 18, 2021 10:10am
-- =======================================================================================
-- Description: Find files in determi... |
local Popup = require("nui.popup")
local Text = require("nui.text")
local defaults = require("nui.utils").defaults
local is_type = require("nui.utils").is_type
local event = require("nui.utils.autocmd").event
local function init(class, popup_options, options)
popup_options.enter = true
popup_options.buf_options =... |
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Content-Type: text/html\r\n")
mg.write("\r\n")
mg.write([[<html><body>
<p>This is Lua script example 2, served by the
<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>,
version ]] .. mg.version .. [[.
</p><p>
The following features are available:
<... |
local colors = {
bg = "#202328",
fg = "#bbc2cf",
aqua = "#3affdb",
beige = "#f5c06f",
blue = "#51afef",
brown = "#905532",
cyan = "#008080",
darkblue = "#081633",
darkorange = "#f16529",
green = "#98be65",
grey = "#8c979a",
lightblue = "#5fd7ff",
lightgreen = "#31b53e",
magenta = "#c678dd",
... |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Extended Bus"
ENT.WireDebugName = "Extended Bus"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS)
self:SetMoveType( MOVETYPE_VPHYSICS)
self:SetSolid( SOLID_VPHYSICS)
self:Se... |
local match_signup_tips=
{
name="match_signup_tips",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter,
{
name="background",type=1,typeName="Image",time=72841520,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1... |
local family = "Courier New"
local size = 10
if platform == "mac" then
family = "Menlo"
size = 12
elseif platform == "win" then
family = "Consolas"
elseif platform == "x11" then
family = "Monospace"
end
return {
font = {
family = family,
size = size
},
indent = {
tabs = true,
width = 4,
... |
local u = require("utils")
local lsp = vim.lsp
local M = {}
M.format_async = function(err, _, result, _, bufnr)
if err ~= nil or result == nil then return end
if not vim.api.nvim_buf_get_option(bufnr, "modified") then
local view = vim.fn.winsaveview()
lsp.util.apply_text_edits(result, bufnr)
... |
local npairs = require('nvim-autopairs')
local utils = require('../utils')
local lsp = require('lspconfig')
function completion_confirm()
if vim.fn.pumvisible() ~= 0 then
if vim.fn.complete_info()['selected'] ~= -1 then
return vim.fn['compe#confirm'](npairs.esc('<cr>'))
else
return npairs.esc('<c... |
local M = {}
local u = require("util")
function M.config()
local ok, dap = pcall(function()
return require("dap")
end)
if not ok then
return
end
-- Configurations
dap.adapters.lldb = {
type = "executable",
command = "/usr/bin/lldb-vscode",
name = "lldb",
}
dap.configurations.cpp =... |
local getDescendantsWhichIsA = require(script.Parent.getDescendantsWhichIsA)
local function clearAllDescendantsWhichIsA(parent: Instance, className: string)
for _, descendant in getDescendantsWhichIsA(parent, className) do
descendant:Destroy()
end
end
return clearAllDescendantsWhichIsA
|
--
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
-- Rudimentary com... |
help([[
Exposes a python instance running 3.9.7 for rivanna.
]])
local workspace = "/project/ds6011-sp22-002"
local name = myModuleName()
local version = myModuleVersion()
local base = pathJoin(workspace, "python/base")
prepend_path("PATH", pathJoin(base, 'versions', version, 'bin'))
setenv("LD_LIBRARY_PATH", pathJ... |
DefineClass.EffectDepositMarker = {
__parents = { "DepositMarker" },
properties = {
{ category = "Deposit", name = T(11450, "Deposit Type"), id = "deposit_type", editor = "combo", items = ClassDescendantsCombo("EffectDeposit"), default = "" },
},
new_pos_if_obstruct = false,
}
function EffectDepositMarker:Spaw... |
setenv("B","1.0b")
set_alias("BB","bb")
|
AddCSLuaFile()
ENT.Base = "bw_base"
ENT.Type = "anim"
ENT.PrintName = "Base Electricals"
ENT.Model = "models/props_c17/metalPot002a.mdl"
ENT.Skin = 0
ENT.IsElectronic = true
ENT.PowerRequired = 5
ENT.PowerCapacity = 1000
function ENT:DrainPower(val)
if not self:IsPowered(val) then return false end
self:SetPower... |
if select(1,...) == "-?" then
printUsage("version","Print the current version number.")
return
end
color(11) print("LIKO-12 V".._LIKO_Version)
if old then
color(6) print("Updated from: V".._LIKO_Old)
end
|
-- must be a set of ids
local idSet = KEYS[1];
-- must be a key, which holds metadata for a given id, with a `*` as a substitute for an id from idSet. Optional
local metadataKey = KEYS[2];
-- hashKey to use for sorting, which is taken from `metadataKey` hash, Optional.
local hashKey = ARGV[1];
-- ASC / DESC
local orde... |
return {
CORE = require("CORE/core"),
UTILS = require("UTILS/utils"),
TYPES = require("TYPES/types")
} |
--[[
Sklepy z odzieza
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.gracz-sklep_odziezowy
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
@contents Kacper "SzaG" Budak <szag@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local sklepy = {
--... |
--[[
author by soniceryd
Date:2016/07/09
Desc: urlmapping configuration
]]--
local urlmapping = {
v1 = {}
}
urlmapping.v1.GET = {
{pattern="/default",controller="luaweb.api.default.Contoller",action="index"}
}
return urlmapping |
---@class CS.UnityEngine.Canvas : CS.UnityEngine.Behaviour
---@field public renderMode number
---@field public isRootCanvas boolean
---@field public pixelRect CS.UnityEngine.Rect
---@field public scaleFactor number
---@field public referencePixelsPerUnit number
---@field public overridePixelPerfect boolean
---@field pu... |
return
{
[11] = {id=11,title='测试1',sender='系统',content='测试内容1',award={1,},},
[12] = {id=12,title='测试2',sender='系统',content='测试内容2',award={1,},},
[13] = {id=13,title='测试3',sender='系统',content='测试内容3',award={1,2,3,},},
[14] = {id=14,title='测试4',sender='系统',content='测试内容4',award={2,3,},},
[15] = {id=15,title='测试5',sender... |
--[[
Made by Fenrier.
]]
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character[... |
--- Provide a mini validation library based on lua type and presence.
local validator = {}
function validator.present_string(name)
return {name = name, kind = "string"}
end
function validator.present_number(name)
return {name = name, kind = "number"}
end
function validator.present_function(name)
return {name =... |
local lib = require "resty.libxl.library"
local setmetatable = setmetatable
local ffi = require "ffi"
local ffi_new = ffi.new
local r = ffi_new("int[1]", 0)
local g = ffi_new("int[1]", 0)
local b = ffi_new("int[1]", 0)
local color = {}
color.__index = color
function color.new(opts)
retur... |
ITEM.name = "S&W M10 Revolver"
ITEM.description = "The Smith & Wesson Model 10 is a revolver of worldwide popularity. It was the successor to the Smith & Wesson .32 Hand Ejector Model of 1896 and was the first Smith & Wesson revolver to feature a cylinder release latch on the left side of the frame like the Colt M1889.... |
--------------------------------------------------------------------------------
--<[ Общие события ]>-----------------------------------------------------------
--------------------------------------------------------------------------------
addEvent( "Character.onCharacterSpawn", false ) -- Персонаж заспавнен... |
local input = io.open('1SonarSweep.txt', 'r')
function SonarSweeps(input)
local prev = 9999999999
local change = {}
local count = 0
for line in input:lines() do
local current = tonumber(line)
if (current > prev) then
count = count + 1
end
prev = current
end
print("part 1: " .. count)
end
function S... |
--This script builds a tree from a Lua table and puts the child nodes in parenthesis to the node if child nodes are not http site adresses
--1. read input tree
dofile("C:\\Tree\\html_Tree\\Tree_Baum_node_content.lua")
--test with: print(Tree[1][1][2])
outputfile1=io.open("C:\\Tree\\html_Tree\\Tree_Baum_node_content.ht... |
--[[
--This file implements orthognoal linear module, which wraps orthogonal weight normalization
--into the linear module for 2D input used in MLP architecture.
--
-------------------------------------------------------------------
--Author: Lei Huang
--mail: huanglei@nlsde.buaa.edu.cn
---
--]]
local Linear_Weight_... |
-- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua/NSL/nsl_predict.lua
-- - Dragon
-- Load shared defs
Script.Load("lua/NSL/nsl_shared.lua")
-- Load predict defs |
Scene = {}
function newScene(t)
self = t or {}
setmetatable(self, Scene)
Scene.__index = Scene
return self
end
function Scene.start(...)
end
function Scene.draw()
end
function Scene.update(dt)
return true
end
function Scene.mousemoved(x, y)
end
function Scene.mousepressed(x, y, button)
end
function Sce... |
local _, ns = ...
local B, C, L, DB, P = unpack(ns)
local AB = P:GetModule("ActionBar")
local Bar = B:GetModule("Actionbar")
-----------------
-- Credit: ElvUI
-----------------
local function ClearTimers(object)
if object.delayTimer then
P:CancelTimer(object.delayTimer)
object.delayTimer = nil
end
end
local fun... |
local oakrouting = require("resty.oakrouting")
local match_count = 100000
local table_insert = table.insert
local match_path
local routers = {}
for i = 1, match_count do
table_insert(routers, {
path = "/bench/" .. ngx.md5(i) .. "/{name}",
method = "GET",
handler = function() end
})
... |
-----------------------------------------------------------------------------
-- An icon representing a diff.
-----------------------------------------------------------------------------
module(..., package.seeall)
NODE = {
prototype = "@Image",
file_name = "diff.png",
copyright = "Yuri Takhteyev",
title = "... |
local blips = {
-- Example {title="", colour=, id=, x=, y=, z=},
-- Postes de polices
{title="Дървар", colour=21, id=285, x=-582.984375, y=5359.9150390625, z=70.242919921875}, -- -582.984375,5359.9150390625,70.242919921875
{title="Дървар", colour=21, id=285, x=-580.0170288086, y=5276.4233398438, z=70.264877319336},... |
local skynet = require "skynet"
local ini = require "utils.inifile"
local validator = require "utils.validator"
local text = require("text").app
local log = require "log"
local sys = require "sys"
local api = require "api"
local running = false
local frpcini = sys.run_root.."/frpc.ini"
local svc = "frpc"
local localho... |
local M = {}
M.base_30 = {
white = "#b0b0b0",
darker_black = "#151b21",
black = "#1a2026", -- nvim bg
black2 = "#20262c",
one_bg = "#242a30",
one_bg2 = "#292f35",
one_bg3 = "#2e343a",
grey = "#42484e",
grey_fg = "#474d53",
grey_fg2 = "#50565c",
light_grey = "#565c62",
red = "#ac8a8... |
require 'user/plugins/packer'
require 'user/plugins/treesitter'
require 'user/plugins/git-signs'
require 'user/plugins/indent-blank-line'
require 'user/plugins/null-ls'
require 'user/plugins/nvim-tree'
require 'user/plugins/telescope'
require 'user/plugins/harpoon'
require 'user/plugins/nvim-dashboard'
require 'user/pl... |
if ACF.Version then --fallback to old acf, its not set in acf3
function ACF_DefineEngineold(id,data)
ACF_DefineEngine(id,data)
end
else
local class = "zACFE B"
local typeoverwrite = nil
-- Flat 2 engines
ACF.RegisterEngineClass(class, {
Name = "ACFE Flat Engines",
})
do
function ACF_DefineEngineold(id,da... |
local module = {}
-- CONFIG
cfg_wifi = require("CFG_wifi")
local mod_timer -- dynamic timer object
local mod_callback = nil
local function wifi_wait_ip()
if wifi.sta.getip()== nil then
print("IP?")
else
mod_timer:unregister()
mod_timer = nil
print("IP: "..wifi.sta.getip()... |
local function explosion_effects(pos,strength)
minetest.sound_play("td_explosion", {pos = pos, gain = strength/100, max_hear_distance = 60,}, true)
minetest.add_particlespawner({
amount = 20,
time = 0.1,
minpos = vector.add(pos,{x=-0.5,y=-0.5,z=-0.5}),
maxpos = vector.add(pos,{x=0.5,y=0.5,z=0.5}),
minvel = ... |
-- This is an example showing how to configure analog input settings on
-- on T-Series devices.
print("Configure & Read Analog Input")
ainChannels = {0,1} -- Read AIN0 and AIN1
ainRange = 10 -- +/-10V
ainResolution = 1 -- Fastest
ainSettling = 0 -- Default
-- This function can be used to configure general analog inpu... |
function _G.stringify(data)
if data == nil then
return "nil"
end
return tostring(data)
end
function _G.listToString(data)
local s = "{"
for k, v in pairs(data) do
local toAppend = stringify(v)
if type(v) == "table" then
toAppend = listToString(v)
... |
function SpawnPoints()
return {
constructionworker = {
{ worldX = 41, worldY = 15, posX = 212, posY = 3, posZ = 0 }
},
fireofficer = {
{ worldX = 41, worldY = 15, posX = 212, posY = 3, posZ = 0 }
},
parkranger = {
{ worldX = 41, worldY = 15, posX = 212, posY = 3, posZ = 0 }
},
policeofficer = ... |
local body_data = require("app.public.data.body_data")
local global_data = {}
function global_data.load()
--读取全局变量
g_data = {}
g_data.player = {[1]=body_data.new()}
g_data.language = 0--默认中文
g_data.gate_id = 1--当前关卡
g_data.wait_time = 3--找怪等待时间
end
return global_data |
local web = require 'lj.web'
web.route {'/', function(req, resp, param)
resp:say {'hello, resty web!'}
end}
web.route {'/baidu', function(req, resp, param)
local http = require "resty.http"
local hc = http:new()
local ok, code, headers, status, body = hc:request { url = "http://www.baidu.com/", }
... |
-- A lualine theme that infers palette from the current style.
local palette = require('monarized.palette')
local M = {
normal = {
a = {bg = palette.accent0, fg = palette.bg0, gui = 'bold'},
b = {bg = palette.bg1, fg = palette.fg0},
c = {bg = palette.bg1, fg = palette.fg1}
},
insert = {
a = {bg =... |
--local expect = require("cc.expect").expect -- Init ComputerCraft built-in expect function.
--^^^ Not available in os.loadAPI() ^^^
--local function expectColor(var)
--
--end
function drawpixel(x,y,c)
--expect(1, x, "number")
--expect(2, y, "number")
term.setPixel(x,y,c)
end
function drawRect(x,y,x2,y2,c)... |
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
function file_exists(name)
local f=... |
local tArgs, installer, err = {...}, nil, nil
local response = http.get("https://raw.githubusercontent.com/blunty666/CC-Programs-and-APIs/master/installer/main.lua")
if response then installer = response.readAll() response.close() else printError("Failed to download installer script") return end
installer, err = loa... |
Panel = g_panel_mgr.new_panel_class('editor/uieditor/uieditor_action_demon')
-- overwrite
function Panel:init_panel(actionName)
self:updateAction(actionName)
end
function Panel:updateAction(actionName)
if actionName == self.actionName then
self:close_panel()
else
self.actionName = act... |
project "Utils-RapidJSON"
AddModuleConfig()
uuid "6F48D799-73F6-4581-AC7D-1A5A322A21AB"
pchheader "stdafx_RapidJSON.h"
pchsource "../src/stdafx_RapidJSON.cpp"
defines
{
"RAPIDJSON_HAS_STDSTRING=0",
"RAPIDJSON_SSE2",
}
includedirs
{
"../Externals/rapidjson/include",
}
|
local playsession = {
{"ruetama", {759638}},
{"waxman", {268447}},
{"drill95", {263569}},
{"WorldofWarIII", {826616}},
{"remarkablysilly", {613986}},
{"tykak", {168265}},
{"belbo", {636652}},
{"Flashbacks", {796974}},
{"Sharuh", {695439}},
{"akrause", {262840}},
{"Krengrus", {818580}},
{"sjonny87", {777417}... |
local BulletKonkie = Projectile:extend("BulletKonkie")
function BulletKonkie:new(x, y, angle)
BulletKonkie.super.new(self, x, y)
self:setImage("bosses/lekkerchat/konkie")
self.solid = 0
self:addIgnoreOverlap(LekkerChat, SolidTile)
self.autoFlip.x = false
self.speed = 700
self.velocity.x = -self.speed
self.... |
--[[
s:UI NPC Scan
Martin Karer / Sezz, 2014
http://www.sezz.at
--]]
local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI");
local M = S:CreateSubmodule("NPCScan");
local Apollo = Apollo;
local log;
-----------------------------------------------------------------------------
... |
-- +-- lolwut
-- V
local Path_PATH=({...})[1]:gsub("[%.\\/]path$", "") .. '/'
local class =require (Path_PATH .. 'vendor/30log')
local Path=class { _toX, _toY, _fromX, _fromY, _passableCallback, _options, _dirs}
function Path:__init(toX, toY, passableCallback, options)
self._toX =toX
self._toY =toY
... |
local helper = require("curstr.lib.testlib.helper")
local curstr = helper.require("curstr")
describe("vim/search", function()
before_each(helper.before_each)
after_each(helper.after_each)
it("file_one", function()
curstr.setup({
sources = {["vim/search"] = {opts = {source_pattern = "\\v\\k+", search_... |
require "conf"
require "audio"
require "Screens/menu"
require "Game/game"
require "Screens/gameover"
--require "PUC_Logo/PUC_Logo"
require "RPG_Full_Logo/RPG_Logo"
require "inputData"
--io.stdout:setvbuf("no")
local gameState = RPG_Logo--PUC_Logo
local goToState
function love.load()
menu.load()
audio.load()
ga... |
--[[
-- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
-- its licensors.
--
-- For complete copyright and license terms please see the LICENSE at the root of this
-- distribution (the "License"). All use of this software is governed by the License,
-- or, if provided, by the license be... |
local _2afile_2a = "fnl/conjure/event.fnl"
local _0_
do
local name_0_ = "conjure.event"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/lo... |
object_mobile_dressed_officer_merc5 = object_mobile_shared_dressed_officer_merc5:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_officer_merc5, "object/mobile/dressed_officer_merc5.iff")
|
package("lzo")
set_homepage("http://www.oberhumer.com/opensource/lzo")
set_description("LZO is a portable lossless data compression library written in ANSI C.")
set_license("GPL-2.0")
add_urls("http://www.oberhumer.com/opensource/lzo/download/lzo-$(version).tar.gz")
add_versions("2.10", "c0f892943... |
-- nil, significa "sin referencia"
nombre = "Mucha informacion"
if nombre == nil then
print("No tiene referencia")
else
print("con referencia")
end
nombre = nil -- aquí elmino la referencia
-- libero memoria
if nombre == nil then
print("No tiene referencia")
else
print("con referencia")
end
---
... |
package.path = "../?.lua;"..package.path;
local winman = require("WinMan")
local spiroapp = require("BEST_spiroapp")
local framestatapp = require("BEST_framestat")
local keyboardapp = require("BEST_CompKeyboard")
local GImage = require("GIMage")
local GRandomLines = require("GRandomlines")
local desktopWidth = 1024... |
-- add / change settings in here too
aliveai.team_fight=true --attacking members from other teams
aliveai.set_bones=true --set bones on death
aliveai.constant_node_testing=false -- constantly checks if bots can use nodes / vehicles, usefull for test vehilces
aliveai.check_spawn_space=true -- e.g.g che... |
---@class CS.UnityEngine.BuoyancyEffector2D : CS.UnityEngine.Effector2D
---@field public surfaceLevel number
---@field public density number
---@field public linearDrag number
---@field public angularDrag number
---@field public flowAngle number
---@field public flowMagnitude number
---@field public flowVariation numbe... |
require ('prototypes.animations.travel-worm')
local travel_worm_sounds = require('prototypes.entity.travel-worm-sounds')
local movement_triggers = require('__base__.prototypes.entity.movement-triggers')
local hit_effects = require ('__base__.prototypes.entity.hit-effects')
local sounds = require('__base__.prototypes.en... |
id = 'V-38686'
severity = 'medium'
weight = 10.0
title = 'The systems local firewall must implement a deny-all, allow-by-exception policy for forwarded packets.'
description = 'In "iptables" the default policy is applied only after all the applicable rules in the table are examined for a match. Setting the default poli... |
if not table.pack then
function table.pack (...)
return {n=select('#',...), ...}
end
end
if not table.unpack then
table.unpack = unpack
end
function memoize( fn )
local function fnKey( ... )
local key = ""
local args = table.pack( ... )
for i = 1, args.n do
... |
local usingStroke = false;
local usingFill = true;
local function randomColor()
local r = random(30,255)
local g = random(30,255)
local b = random(30,255)
return color(r,g,b,0x7f)
end
function setup()
background(0x80)
end
function draw()
if not usingStroke then
noStroke()
else... |
-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("data-util");
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend(
{
{
type = "technology",
name = "aluminum-matter-processing",
icons =
{
{
icon = util.k2assets().."/tec... |
local vigenere = require("vigenere")
local secretKey = "iLoveLua"
local text = "Hello, World!"
local encrypted = vigenere.encrypt(text, secretKey)
local decrypted = vigenere.decrypt(encrypted, secretKey)
print("Original Text: " .. text)
print("Encrypted Text: " .. encrypted)
print("Decrypted Text: " .. decrypted)
... |
local utils = require('/usr/local/openresty/nginx/lua/utils')
local json_decode = utils.json_decode
local limit_req = require "resty.limit.req"
local lim, err = limit_req.new("mylimit", 5000, 2000)
if err ~= nil then
ngx.log(ngx.ERR,"limit_req.new fail: ", err)
end
local balance_table = require("/usr/local/openr... |
t={}
t[10001] = {
hp = 100,
name = "a",
def = 5,
atk = 10
}
t[10002] = {
hp = 100,
name = "b",
def = 6,
atk = 11
}
t[10003] = {
hp = 100,
name = "c",
def = 7,
atk = 12
}
t[10004] = {
hp = 100,
name = "d",
def = 8,
atk = 13
}
t[10005] = {
hp = 100,
name = "e",
def = 9,
atk = 14
}
t[10006] = {
hp = ... |
local Modules = script.Parent.Parent.Parent
local Roact = require(Modules.Roact)
local RoactRodux = require(Modules.RoactRodux)
local Input = require(Modules.Plugin.Components.Input)
local Data = require(Modules.Plugin.Components.Data)
local Info = require(Modules.Plugin.Components.Info)
local PickerMenu = require(Mo... |
-- hiscore.lua
-- by borgar@borgar.net, CC0 license
--
-- This uses MAME's built-in Lua scripting to implement
-- high-score saving with hiscore.dat infom just as older
-- builds did in the past.
--
local exports = {
name = 'hiscore',
version = '1.0.1',
description = 'Hiscore',
license = 'CC0',
author = { name = '... |
require "socket"
math.randomseed(socket.gettime()*1000)
math.random(); math.random(); math.random()
random_string = "adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00adsadasd00ad... |
module 'mock_edit'
--------------------------------------------------------------------
EditorEntity = mock.EditorEntity
|
--[[
Name: "sh_citizen.lua".
Product: "nexus".
--]]
local CLASS = {};
CLASS.color = Color(150, 100, 50, 255);
CLASS.factions = {FACTION_CITIZEN};
CLASS.isDefault = true;
CLASS.description = "A regular Citizen living in the city.";
CLASS_CITIZEN = nexus.class.Register(CLASS, "Citizen"); |
local condition = Condition(CONDITION_DROWN)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition:addDamage(20, 5000, -20)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setArea(createCombatArea(AREA_SQU... |
XYZ_HITMAN = {}
XYZ_HITMAN.Config = {}
XYZ_HITMAN.Core = {}
XYZ_HITMAN.Core.ActiveHits = {}
XYZ_HITMAN.Core.ClaimedHits = {}
XYZ_HITMAN.Phones = {}
print("Loading Hitman System")
local path = "xyz_hitman/"
if SERVER then
local files, folders = file.Find(path .. "*", "LUA")
for _, folder in SortedPairs(folders, tr... |
RenderModel = function(model , pos , angle , color)
for n = 1 , #model do
if #model[n] == 3 then
Render:FillTriangle(
angle * model[n][1] + pos ,
angle * model[n][2] + pos ,
angle * model[n][3] + pos ,
color
)
elseif #model[n] == 2 then
Render:DrawLine(
angle * model[n][1] + pos ,
... |
TestUtil = {}
function TestUtil:testIntToPos()
local edge = math.floor(0xFFFF / 2)
local subjects = {
vector.new(edge, edge, edge),
vector.new(-edge, -edge, -edge),
vector.new(0, 0, 0),
vector.new(1, 1, 1),
vector.new(-1, -1, -1)
}
for _, pos in pairs(subjects) do
local int = stm.pos_t... |
local desc_EN = [[Platform Signs is a mod to demostrate the Livetext mod, which permets any mods to put dynamically generated text on game scene.
Though, this mod is still a very interesting one to use mod.
The Livetext mod must be activated to use this mod.
There are two types of signs in this mod: 1. Station name sig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.