content stringlengths 5 1.05M |
|---|
return loadfile('mbedtls.lua')(true) |
local minGangMemberConnected = 0
local QBCore = exports['qb-core']:GetCoreObject()
function checkGroup(table, val)
for k, v in pairs(table) do
if val == v.label then
return true
end
end
return false
end
function removeGroup(tab, val)
for k, v in pairs(tab) do
if v.l... |
player_manager.AddValidModel( "PMC2_10", "models/player/PMC_2/PMC__10.mdl" ) list.Set( "PlayerOptionsModel", "PMC2_10", "models/player/PMC_2/PMC__10.mdl" ) |
Func = {}
_G.Func = Func
function Func.bind(fn, ...)
local args = { ... }
return function(...)
local args2 = table.combine(args, { ... })
return fn(table.unpack(args2))
end
end
|
---
-- Autoconfiguration.
-- Copyright (c) 2016 Blizzard Entertainment
---
local p = premake
local clang = p.tools.clang
function clang.try_compile(cfg, text)
-- write the text to a temporary file.
local cppFile = path.join(cfg.objdir, "temp.cpp")
if not io.writefile(cppFile, text) then
return nil
end
local ou... |
local GM = GM or GAMEMODE
surface.CreateFont("Font", {font = "Arial",extended = false,size = 40,}) -- Then font named 'Font' compacted on one line
surface.CreateFont("DButton", {font = "Arial",extended = false,size = 20,}) -- Then font named 'Font' compacted on one line
surface.CreateFont("Text", {font = "Arial",extend... |
object_ship_kessel_mine_turret_tier1 = object_ship_shared_kessel_mine_turret_tier1:new {
}
ObjectTemplates:addTemplate(object_ship_kessel_mine_turret_tier1, "object/ship/kessel_mine_turret_tier1.iff")
|
---@diagnostic disable: lowercase-global
---↑仮にまじめなもの作るとしたらこのdiagnosticは消す
---@diagnostic disable: undefined-global
---↑fuとかbmdとか認識してくれないからしかたない
--どーせ固定値だからいいと思う
CONFIG_FILE_PATH = [[C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Config\VoiceAutoTool_Config\AutoTool_Config.lua]]
--デフォの値
VOICEF... |
--[[ Skarvald_Dalronn.lua
This script was written and is protected
by the GPL v2. This script was released
by Azolex of the Blua Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- Azolex, October 26, 2008.... |
-- Flat 6 engines
ACF_DefineEngine( "2.8-B6", {
name = "2.8L Flat 6 Petrol",
desc = "Car sized flat six engine, sporty and light",
model = "models/engines/b6small.mdl",
sound = "acf_base/engines/b6_petrolsmall.wav",
category = "B6",
fuel = "Petrol",
enginetype = "GenericPetrol",
weight = 100,
torque = 136,
... |
function muteVoice(thePlayer, commandName, targetPlayer, ...)
if exports.mrp_integration:isPlayerTrialAdmin(thePlayer) or exports.mrp_integration:isPlayerSupporter(thePlayer) then
local targetPlayer, targetPlayerName = exports.mrp_global:findPlayerByPartialNick(thePlayer, targetPlayer)
if targetPlayer then
... |
local LrApplication = import 'LrApplication'
local LrDialogs = import 'LrDialogs'
local LrTasks = import 'LrTasks'
local LrLogger = import 'LrLogger'
LrTasks.startAsyncTask(function ()
local catalog = LrApplication.activeCatalog()
-- This is the string that would come out of the COCO Json file
local fname = "w... |
local lmdb = require('dns.lmdb')
local dns = require('dns')
local ffi = require('ffi')
local tokey = dns.utils.searchkey
local M = {}
-- Storage format in the DB
local entry_t = ffi.typeof('struct { uint16_t count; uint8_t data[?]; }')
local entry_pt = ffi.typeof('struct { uint16_t count; uint8_t data[]; } *')
-- Ca... |
collectibles =
{
{"qe_fireratheart", 1},
{"qe_batblood", 2},
{"qe_bone", 3}
}
markers = {
{
map = "res/map/gandria/gandria.tmx",
position = {3575, 2650},
step = 0
},
{
map = "res/map/gandria/gandria.tmx",
position = {975, 2875},
step = -1
}
}
|
---------------------------------------------------------------------------------------------------
-- func: setplayernation
-- desc: Sets the target players nation.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss... |
interfaces {
USER =
{
inputs =
{
SEEK = {'s64'}
},
outputs =
{
SET_VID_POS = {'s64'},
TOGGLE_TOGETHERNESS = {'int'}
},
}
}
|
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local pairs = pairs
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local function SkinLFGuild()
if E.private.skins.blizzard.enable ~= true ... |
local kStatusTranslationStringMap = debug.getupvaluex(Scoreboard_ReloadPlayerData, "kStatusTranslationStringMap")
kStatusTranslationStringMap[kPlayerStatus.WraithFade]="Wraith"
debug.setupvaluex( Scoreboard_ReloadPlayerData, "kStatusTranslationStringMap", kStatusTranslationStringMap) |
include "map_builder.lua"
include "trajectory_builder.lua"
options = {
map_builder = MAP_BUILDER,
trajectory_builder = TRAJECTORY_BUILDER,
map_frame = "map",
tracking_frame = "base_link",
published_frame = "base_link",
odom_frame = "odom",
provide_odom_frame = false,
publish_frame_projected_to_2d = tru... |
modifier_vengeful_mobility_displacement = class({})
function modifier_vengeful_mobility_displacement:OnCreated(params)
if IsServer() then
self.original_scale = self:GetParent():GetModelScale()
self:GetParent():SetModelScale(self.original_scale/1.5)
EFX("particles/econ/events/ti10/blink_dagger_start_ti10.vpcf", ... |
modifier_phoenix_fire_spirits_nb2017 = class({})
--------------------------------------------------------------------------------
function modifier_phoenix_fire_spirits_nb2017:IsPurgable()
return false
end
--------------------------------------------------------------------------------
function modifier_phoenix_fi... |
ones = {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", ""}
tens = {"X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC", ""}
hundreds = {"C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM", ""}
array_name = {""}
|
--LUA 1.0.2 for JsMacros 1.2.3
minecraft = jsmacros:getMinecraft()
networkProxy = (minecraft.getNetworkProxy or minecraft.method_1487)(minecraft)
if not hud:getOpenScreen() then
local UUID = luajava.bindClass("java.util.UUID")
local Session = reflection:getClass("net.minecraft.class_320", "net.minecraft.client... |
function love.conf(cfg)
cfg.window.title = "MonteXO"
end
|
local chitvalue = nil;
local allowdropvalue = false;
local dragging = false;
function onInit()
super.onInit();
if chit then
chitvalue = chit[1];
if User.isHost() or getDatabaseNode().isOwner() then
setHoverCursor("hand");
end
end
if allowdrop then
if string.lower(allowdrop[1]) == "true" th... |
local dream = require("3DreamEngine")
love.window.setTitle("Lamborghini Example")
--settings
dream:setSky(love.graphics.newImage("examples/Lamborghini/garage.hdr"))
dream.cam.fov = 70
dream:init()
--materials
dream:loadMaterialLibrary("examples/Lamborghini/materials")
--objects
local car = dream:loadObject("examples... |
local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1").."/.."
local set_timer_timeout, memory, memory2, gui, input, bit, callback = set_timer_timeout, memory, memory2, gui, input, bit, callback
local warn = '========== The ROM must be running before running this script'
io.stderr:write(warn)
print(w... |
--[[
- PLAIN FREAMEWORK ( https://github.com/viticm/plain-simple )
- $Id connect.lua
- @link https://github.com/viticm/plain-simple for the canonical source repository
- @copyright Copyright (c) 2021 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2021/12/06 13:56
- @uses ... |
require "Scripts/Enemies/IEnemy"
require "Scripts/Levels/ILevel"
require "math"
Explosive =
{
_name = "Explosive",
_health = 3,
_damage = 10,
_attackPattern = {},
_speed = 0,
_modifiers = {},
}
setmetatable(Explosive, {__index = IEnemy})
Explosive.__index = Explosive
function Explosive:Create(newID, ori... |
include('shared.lua')
function ENT:Initialize()
end
function ENT:Draw()
if IsValid( self.Entity:GetNWEntity( "QuestOwner", nil ) ) and self.Entity:GetNWEntity( "QuestOwner", nil ) != LocalPlayer() then return end
self.Entity:DrawModel()
end
|
local stdnse = require "stdnse"
local shortport = require "shortport"
local stringaux = require "stringaux"
local tn3270 = require "tn3270"
local table = require "table"
description = [[
Using the CICS transaction CEMT, this script attempts to gather information
about the current CICS transaction server reg... |
-- ---------------------------------------------
-- ColladaShape.lua 2014/03/23
-- Copyright (c) 2014 Jun Mizutani,
-- released under the MIT open source license.
-- ---------------------------------------------
package.path = "../LjES/?.lua;" .. package.path
require("Collada")
require("Shape")
Collad... |
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
API = Proxy.getInterface("API")
cAPI = Tunnel.getInterface("API")
---------------------------
-- MEDIC MANAGEMENT API --
---------------------------
-- Variables
RegisterNetEvent('FRP:MEDIC:checkdeath')
AddEventHandler('FRP:MEDIC... |
-----------------------------------------
-- LOCALIZED GLOBAL VARIABLES
-----------------------------------------
local ZGV = _G.ZGV
local tinsert,tremove,sort,min,max,floor,type,pairs,ipairs = table.insert,table.remove,table.sort,math.min,math.max,math.floor,type,pairs,ipairs
local print = ZGV.print
local L = ... |
class("SecondSummaryPage5", import(".SummaryAnimationPage")).OnInit = function (slot0)
setText(slot0._tf:Find("window_6/name"), slot0.summaryInfoVO.name)
setText(slot0._tf:Find("window_6/time/Text"), "「" .. slot0.summaryInfoVO.registerTime .. "」")
setText(slot0._tf:Find("window_6/day/Text"), slot0.summaryInfoVO.days... |
local Concord = require "libs.concord"
local Player = Concord.component(function(c)
c.speed = 100
c.jumpForce = 80
end)
return Player
|
-- Copyright (C) 2011-2015 Anton Burdinuk
-- clark15b@gmail.com
-- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd
upnp_type=
{
['video'] = 1,
['audio'] = 2,
['image'] = 3
}
upnp_class=
{
['video'] = 'object.item.videoItem',
['audio'] = 'object.item.audioItem.musicTrack'
} ... |
-- MYTHIC MONKEY BOSS --
-- MYTHIC MONKEY ( mythic_monkey )
-- MONKEY MAULER ( monkey_mauler )
-- DIVINE MONKEY ( divine_monkey )
-- MONKEY BASHER ( monkey_basher )
-- SPIRIT MONKEY ( spirit_monkey )
-- MONKEY AVENGER ( monkey_avenger )
-- [ MONKEY 1 KEY BOSS ] --
dummy_mythic_monkey = {
on_healed = function(mob, he... |
object_tangible_saga_system_rewards_planet_hologram_tatooine_02 = object_tangible_saga_system_rewards_shared_planet_hologram_tatooine_02:new {
}
ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_planet_hologram_tatooine_02, "object/tangible/saga_system/rewards/planet_hologram_tatooine_02.iff")
|
--- Schadensklassen
DamageClasses = {}
DamageClasses.DC_Bullet = nil
DamageClasses.DC_Chaos = nil
DamageClasses.DC_Evil = nil
DamageClasses.DC_Hero = nil
DamageClasses.DC_Pierce = nil
DamageClasses.DC_Siege = nil
DamageClasses.DC_Strike = nil
|
function Teleporting_onUse21 (pUnit, Event, pMisc)
pMisc:Teleport (530,-2541.02,6387.15,201.629)
end
RegisterGameObjectEvent (5000025, 4, "Teleporting_onUse21")
|
local ICON = "__MomosTweak__/graphics/icons/"
local subgroup = data.raw.item["iron-stick"].subgroup
local name = "advanced-plastics"
local expectResult = {"advanced-plastics", 1}
local recipeName = momoTweak.genRecipeNameFromResult(expectResult)
data:extend({
{
type = "item",
name = "advanced-plastics"... |
client_script 'client.lua'
server_script '@mysql-async/lib/MySQL.lua'
server_script 'server.lua' |
function Command_Build_Mode_Cancel(Client_ID, Command, Text_0, Text_1, Arg_0, Arg_1, Arg_2, Arg_3, Arg_4)
System_Message_Network_Send(Client_ID, Lang_Get("", "Buildmode: Canceled"))
local State = Build_Mode_State_Get(Client_ID)
if State == 2 then
Build_Mode_String_Set(Client_ID, 0, "")
end
CPE_Selection_Cuboid_D... |
-- // Dependencies
--local PlayerManager, Base = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Universal/ESP/PlayerManager.lua"))()
local PlayerManager, Base = loadstring(game:HttpGet("https://raw.githubusercontent.com/InkognoitoCurry/ROBLOX/master/Universal/ESP/PlayerManager.lua"... |
----MAXIME
function addPurchaseHistory(thePlayer, perkName, cost)
return true
end
function fetchStations()
dbQuery(
function(qh)
local res, rows, err = dbPoll(qh, 0)
if rows > 0 then
for index, row in ipairs(res) do
if type(row["owner"]) == "string" then
table.insert(donorStations, row )
... |
project "glfw"
kind "StaticLib"
language "c"
includedirs {"glfw/include", "glfw/src"}
targetdir "../libs"
objdir "../tmp/glfw"
files {
"glfw/src/internal.h",
"glfw/include/GLFW/glfw3.h",
"glfw/include/GLFW/glfw3native.h",
"glfw/src/clipboard.c", "glfw/src/context.c", "glfw/src/gamma.c", "glfw/src/init.... |
module(...,package.seeall)
local ffi = require("ffi")
local types = require("pf.types") -- Load FFI declarations.
local pcap -- The pcap library, lazily loaded.
local verbose = os.getenv("PF_VERBOSE");
local MAX_UINT32 = 0xffffffff
ffi.cdef[[
typedef struct pcap pcap_t;
int pcap_datalink_name_to_val(const char *nam... |
--- AceConfig-3.0 wrapper library.
-- Provides an API to register an options table with the config registry,
-- as well as associate it with a slash command.
-- @class file
-- @name AceConfig-3.0
-- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $
--[[
AceConfig-3.0
Very light wrapper library that co... |
-------------------------------------------------------------------------------
-- Spine Runtimes License Agreement
-- Last updated May 1, 2019. Replaces all prior versions.
--
-- Copyright (c) 2013-2019, Esoteric Software LLC
--
-- Integration of the Spine Runtimes into software or otherwise creating
-- derivat... |
--[[ Created by Grid2 original authors, modified by Michael ]]--
local Grid2 = Grid2
local Grid2Frame = Grid2Frame
local GetTime = GetTime
local min = min
local AlignPoints = Grid2.AlignPoints
local defaultBackColor = { r=0, g=0, b=0, a=1 }
local function Bar_CreateHH(self, parent)
local bar = self:CreateFrame("Sta... |
local cc = cc
cc.FileUtils:getInstance():addSearchPath("src")
cc.FileUtils:getInstance():addSearchPath("res")
cc.FileUtils:getInstance():addSearchPath("res/ui")
cc.FileUtils:getInstance():addSearchPath("res/skill")
cc.FileUtils:getInstance():addSearchPath("res/role")
-- CC_USE_DEPRECATED_API = true
require "cocos.init"... |
--Yeahh, idk anymore. Since no one buys scripts anymore, i might aswell just throw this on the internet for all of you to enjoy--
--IF IT DOESN'T WORK, YOU'LL HAVE TO WEAR A SHIRT AND A PANTS, THIS IS A COMMON PROBLEM!--
--Since VengefulExtras showcased my script, i saw a couple of flaws, i will try to fix this.--
--Fe... |
nut.command.Register({
adminOnly = true,
syntax = nut.lang.Get("syntax_bool"),
onRun = function(client, arguments)
local dat = {}
dat.start = client:GetShootPos()
dat.endpos = dat.start + client:GetAimVector() * 96
dat.filter = client
local trace = util.TraceLine(dat)
local entity = trace.Entity
if... |
local skynet = require "skynet"
local mode = ...
local function dump(t, prefix)
for k,v in pairs(t) do
print(prefix, k, v)
if type(v) == "table" then
dump(v, prefix .. "." .. k)
end
end
end
if mode == "child" then
local datasheet = require "skynet.datasheet"
skynet.start(function()
... |
require('modules.revised') -- Modulo de OOP
require('maptile') -- Modulo que carrega os tiles
require('modules.comand') -- Modulo que le e executa os comandos
local graphics = require('modules.gra') -- Modulo dis graficos e a UI
local font = require('modules.font') -- Modulo da fonte
Button = require('modules.button')... |
-- EventHandler, made by Tocutoeltuco#0000
local initializingModule = true
local onEvent
local GAME_PAUSED = false
local CYCLE_DURATION = 3100
local RUNTIME_LIMIT = 45
local SCHEDULE = {
["PlayerBonusGrabbed"] = true,
["PlayerDataLoaded"] = true,
["PlayerRespawn"] = true,
["PlayerLeft"] = true,
["Pl... |
function plugindef()
finaleplugin.Author = "Robert Patterson"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Version = "1.0"
finaleplugin.Date = "June 18, 2021"
finaleplugin.CategoryTags = "Layout"
return "Load SMuFL Engraving Defaults", "Load SMuF... |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local SignUpType = require('consts').SignUpType
local SignUpPlugin = {}
local AccountInfo = require('AccountInfo')
function SignUpPlugin.bind(theClass)
local function handleSignUpResponse(gameConn, signUpParams, respData, callback)
local this = gameConn
dump(respDat... |
local Com = include("com", ...)
local ComBody = class("ComBody", Com)
function ComBody:ctor()
end
function ComBody:match(req, res)
local content_type = req.headers['content-type']
if type(content_type) ~= 'string' then
return
end
local ret = content_type:find('application/x%-www%-form%-urlencoded')
if ret and... |
-----------------------------------
-- Area: Waughroon Shrine
-- Mob: Metsanneitsyt
-- BCNM: Grove Guardians
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onMobInitialize(mob)
mob:setMod(tpz.mod.SLEEPRES, 50)
end
function onMobDeath(mob, player... |
local a=require("cc.expect")local b=require("am.ui.base").BaseObject;local c=require("am.core")local d=require("am.log")local e=require("am.event")local f=require("am.peripheral")local g=require("am.progress")local h={}local i=b:extend("am.c.CollectJob")h.CollectJob=i;function i:init(j,k,l)a.expect(1,j,"string")a.expec... |
local gamepaused = {}
local game_objects = {}
bungee_font = love.graphics.newFont(
"/fonts/Bungee_Inline/BungeeInline-Regular.ttf", 40 )
function gamepaused.enter( prev_state, ... )
game_objects = ...
end
function gamepaused.update( dt )
end
function gamepaused.draw()
for _, obj in pairs( game_objects ) d... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
local enum = require("enum")
local stringstream = require("string_stream")
D... |
local NetLib = {}
local socket = require "socket"
local HOST = "208.67.222.222"
local PORT = 53
local TIMEOUT = 1
function NetLib.hasConnection()
local hasConnection = true
local tcp = assert(socket.tcp())
tcp:settimeout(TIMEOUT, 't')
local receive, errorMessage = tcp:connect(HOST, PORT)
if not receive then
... |
local table = require("__flib__.table")
local constants = {}
constants.marker_entry = {
[0] = 0,
[1] = 1,
[4] = 2,
[5] = 3,
[16] = 4,
[17] = 5,
[20] = 6,
[21] = 7,
[64] = 8,
[65] = 9,
[68] = 10,
[69] = 11,
[80] = 12,
[81] = 13,
[84] = 14,
[85] = 15,
}
constants.selection_types = table... |
RecipeCategoryEnum = RecipeCategoryEnum or {}
RecipeCategoryEnum.advancedCrafting = "advanced-crafting"
RecipeCategoryEnum.basicCrafting = "basic-crafting"
RecipeCategoryEnum.centrifuging = "centrifuging"
RecipeCategoryEnum.chemistry = "chemistry"
RecipeCategoryEnum.crafting = "crafting"
RecipeCategoryEnum.craftingWit... |
------------------------------------------------------------
-- Account utils is a util namespace for wrapping account --
-- specific actions into clean and easilly read funcs. --
------------------------------------------------------------
local A = {}
function A.setupNewAccount( account, dm )
account:setInter... |
CaveBot.Extensions.Supply = {}
local ui
-- first function called, here you should setup your UI
CaveBot.Extensions.Supply.setup = function()
--ui = UI.createWidget('SupplyItemList')
--local widget = UI.createWidget('SupplyItem', ui.list)
--widget.item.onItemChange = function(newItem)
--widget.fields.min.onTex... |
--[[
h[t] = tanh(W[x->h]x[t] + W[hr->h]h[t-1] + b[1->h]) (1)
]]
function srnn.units.getRNNUnit(inputSize, outputSize, layers, dropout)
local input -- the input of a step
local inputs = {} -- real input to this step
local init_outs = {} -- previous output for each layer
local outputs = {} -- outputs generated for e... |
local conf = {}
-- 总开关,关闭之后就无法使用自己配置的牌
conf.isUserMake = true
-- 庄家
conf.iMianPlayer = 0
-- 是否开启个人配牌
conf.isOpen1 = true
conf.isOpen2 = true
conf.isOpen3 = true
-- {
-- 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 120,
-- 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 220,
-... |
local __ENV_COUNT = 0; -- Remove local for weird bug
__ENVIRONMENTS = {};
function LuaCore.CreateNewEnv(env)
local ENV = env or {};
if env == nil then
ENV["__ENV_ID"] = __ENV_COUNT;
ENV["__ENV_ENABLED"] = true;
ENV["__TRIGGERS"] = {};
setmetatable(ENV, {__index=_G});
__E... |
-- game constants
local gameConst =
{
---- buildings
Wall = {toughness=50, materialCost = 1, workCost = 3 , repairRequestLimitMultip = 0.75},
Gun = {toughness=1, materialCost = 10, workCost = 10, firePeriod = 7000, misilesDamage = 5, chargingWorkCost = 10},
Keep = { ... |
local function call_with_file(f, path, mode)
local ____id = {io.open(path, mode)}
local __h = ____id[1]
local __e = ____id[2]
if not __h then
error(__e)
end
local __x1 = f(__h)
__h.close(__h)
return __x1
end
local function read_file(path)
return call_with_file(function (f)
return f.read(f, "*a... |
--[[
clarkewanglei@gmail.com
--]]
require("fileopt")
require("commonutils")
function buildimage(releasepath,releasefile,port,imagename,entrypointsh,telnetrpm)
local centos7jdk8 = 'hljiangtao/centos7jdk8'
local dpct = 'docker inspect --type=image '.. centos7jdk8
local tt = io.popen(dpct)
print(dpct)
l... |
local wildcard_pattern = require 'wildcard_pattern'
local patterns = {
wildcard_pattern.from_wildcard("*.lua"),
wildcard_pattern.from_wildcard("spec/*.lua"),
}
local function should_match(path)
assert.are.same(path, wildcard_pattern.any_match(patterns, path))
end
local function should_not_match(path)
... |
-- Specifies set of pictures and animations used by more entities, to avoid duplication.
-- The standard set of transport belt pictures (vertical/horizontal + endigns + startings)
-- are used in transport belt, transport belt to ground and splitter.
ending_patch_prototype =
{
--[[
sheet =
{
filename = "__base__/g... |
local Prop = {}
Prop.Name = "Beach House 1"
Prop.Cat = "House"
Prop.Price = 1500
Prop.Doors = {
Vector( 12158, -8944, 404.25 ),
Vector( 12158, -8848, 404.25 ),
Vector( 11518, -9006, 404 ),
Vector( 11630, -9018, 404 ),
Vector( 11454, -8806, 404 ),
Vector( 11266, -8658, 404 ),
Vector( 11534, -8902, 540 ),
Vector(... |
Atlas = {}
Atlas.__index = Atlas
function Atlas:new(image, tw, th)
local o = {}
setmetatable(o, self)
self = o
self.image = image
self.quads = {}
self.spritesize = { tw, th }
nh = image:getWidth() / tw
nv = image:getHeight() / th
n = nh * nv
for i = 0, n - 1 do
x = (i %... |
--------------------------------------------------
------- FREECAM FOR FIVEM MADE BY KIMINAZE -------
--------------------------------------------------
Cfg = {}
-- specify, if menu should be accessible via button press
Cfg.useButton = false
-- default: 178 (DELETE)
Cfg.button = 178
-- specify, if menu should be acc... |
project "spdlog"
kind "StaticLib"
language "C"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("build/" .. outputdir .. "/%{prj.name}")
files {
"src/**.cpp",
"include/**.h"
}
filter "system:linux"
systemversion "latest"
staticruntime "On"
... |
local S = farming_craft.intllib
local modlist=minetest.get_modnames()
-- code from tenplus1 farming mod
-- cutting board
minetest.register_craftitem(":farming:cutting_board", {
description = S("Cutting Board"),
inventory_image = "farming_cutting_board.png",
groups = {food_cutting_board = 1, flammable = 2},
})
min... |
local addonName, addonTable = ...
AutoInvite = addonTable
AutoInvite.autoInviteFrame = CreateFrame("Frame", "AutoInvite", UIParent)
AutoInvite.autoInviteFrame:RegisterEvent("PLAYER_LOGIN")
AutoInvite.autoInviteFrame:RegisterEvent("CHAT_MSG_WHISPER")
AutoInvite.autoInviteFrame:SetScript("OnEvent", function(self, event,... |
-----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Door:Lion Springs
-- !pos 96 0 106 80
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,... |
local SettingsData = Classes.ModSettingsClasses.SettingsData
---@class ProfileSettings
local ProfileSettings = {
Type = "ProfileSettings",
ID = "",
---@type SettingsData
Settings = nll
}
ProfileSettings.__index = ProfileSettings
---@param id string
---@param settings SettingsData|nil
function ProfileSettings:Cre... |
SB.Include(SB_VIEW_DIR .. "editor.lua")
PlayersWindow = Editor:extends{}
PlayersWindow:Register({
name = "playersWindow",
tab = "Misc",
caption = "Teams",
tooltip = "Edit teams",
image = SB_IMG_DIR .. "person.png",
order = 1,
})
function PlayersWindow:init()
self:super("init")
self.te... |
local new = require 'class'
local geo = require 'geo'
local Morsel = require 'food'
local World = new.class()
function World:init(state)
self.state = state
self.food = {}
end
function World:eat(i)
self.state:point(1)
table.remove(self.food, i)
end
function World:draw()
for _, m in ipairs(self.food) do
... |
local M = {}
M.config = function()
local gps = require 'nvim-gps'
require('lualine').setup {
options = {
globalstatus = true,
},
sections = {
lualine_b = {
'branch',
'diff',
{
'diagnostics',
sources = { 'nvim_diagnostic' },
symbols = { ... |
-----------------------------------
-- Author : Reyn
-- Date : 2016-06-29
-- Comment : 日志记录
-----------------------------------
local Log = {}
local level_tab = {'LOG_DEBUG', 'LOG_INFO', 'LOG_WARNING', 'LOG_ERROR'}
Log.LEVEL = table.readOnly(table.enum(1, table.unpack(level_tab)))
local L... |
TOOL.Category = 'Flux'
TOOL.Name = 'Text Tool'
TOOL.Command = nil
TOOL.ConfigName = ''
TOOL.permission = 'texts'
TOOL.ClientConVar['text'] = 'Sample Text'
TOOL.ClientConVar['style'] = '1'
TOOL.ClientConVar['scale'] = '1'
TOOL.ClientConVar['fade... |
local api = vim.api
Buffer = require("sql.ui.buffer")
Utils = require("sql.utils")
function OPEN()
vim.cmd('tabnew')
buffer = Buffer:new(vim.api.nvim_get_current_buf())
buffer:set_filetype('sql')
buffer:set_name('testname')
end
|
local word = request('^.words.word')
local name = request('^.words.name')
return
{
name = 'goto_statement',
word('goto'),
name,
}
|
--[[
© 2021 FedeIlLeone
EditStats - EditStats client side module
Functions:
EditStats.Init()
EditStats.Submit() --> [Table]
--]]
local EditStats = {}
local Players = game:GetService("Players")
local Frames = script.Parent.Parent.Frames
local EditStatsFrame = Frames.Pages.EditStatsFrame
local recen... |
list.Set( "PlayerOptionsModel", "MedicMarine", "models/player/samzanemesis/MarineMedic.mdl" )
list.Set( "PlayerOptionsModel", "SpecialMarine", "models/player/samzanemesis/MarineSpecial.mdl" )
list.Set( "PlayerOptionsModel", "OfficerMarine", "models/player/samzanemesis/MarineOfficer.mdl" )
list.Set( "PlayerOptions... |
local Linq = require "linq";
require "list";
--- @type List|ReadOnlyCollection|OrderedEnumerable|Enumerable
local List = Linq.List;
--- @type Enumerable
local Enumerable = Linq.Enumerable;
describe("List:Add", function()
it("adds an item", function()
local list = List.New({"a", 12, false, {}});
a... |
-------------------------------------------------------------------------------
-- Spine Runtimes License Agreement
-- Last updated January 1, 2020. Replaces all prior versions.
--
-- Copyright (c) 2013-2020, Esoteric Software LLC
--
-- Integration of the Spine Runtimes into software or otherwise creating
-- der... |
return function(showNames)
return {
type = script.Name,
showNames = showNames,
}
end |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
local ATTRIBUTEINFO_PB = require("AttributeInfo_pb")
module('ItemForge_pb')
ITEMFORGE = protobuf.Descriptor();
local ITEMFORGE_ATTRS_FIELD = protobuf.FieldDescriptor();
local ITEMFORGE_UNREPLACEDATTR_FIELD = protobuf.FieldDescript... |
return {
Properties = {
["Name"] = "Original Light";
["ImageId"] = "rbxassetid://2919688393";
},
Settings = {
["Background Color"] = Color3.fromRGB(255, 255, 255);
["Built-in Function Color"] = Color3.fromRGB(0, 0, 127);
["Comment Color"] = Color3.fromRGB(0, 127, 0);
["Error Color"] = Color3.fro... |
local loader = {}
local log = require("log")
local notification = require("notification")
local configdir = love.filesystem.getSaveDirectory()
function loader.loadFile(file, clonesTbl)
if file and love.filesystem.getInfo(file, "file") then
log.info("[CLONES] Load: %s/%s", configdir, file)
local status, chunk... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.