content
stringlengths
1
1.05M
size
int64
5
1.05M
max_stars_repo_name
stringlengths
5
114
--[[ General -> Profiles Tab -> General & Advanced Tabs --]] local L = Grid2Options.L --============================== local GetAllProfiles, GetUnusedProfiles do local profiles, values = {}, {} local function GetProfiles(showCurrent) wipe(profiles) wipe(values) Grid2.db:GetProfiles(profiles) for _,k in pa...
4,568
mrbandler/wow-ui
local defaults = require'hop.defaults' local hint = require'hop.hint' local M = {} M.hint = hint.hint -- Setup user settings. M.opts = defaults function M.setup(opts) -- Look up keys in user-defined table with fallback to defaults. M.opts = setmetatable(opts or {}, {__index = defaults}) -- Insert the highligh...
527
rish987/hop.nvim
registerNpc(394, { walk_speed = 290, run_speed = 670, scale = 225, r_weapon = 1036, l_weapon = 0, level = 112, hp = 139, attack = 643, hit = 370, def = 802, res = 246, avo...
1,076
RavenX8/osirosenew
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CInfoPickupManager = inherit(cSingleton) function CInfoPickup...
828
Noneatme/iLife-SA
rifle_acid_beam = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Acid beam", directObjectTemplate = "object/weapon/ranged/rifle/rifle_acid_beam.iff", craftingValues = { {"mindamage",60,110,0}, {"maxdamage",170,360,0}, {"attackspeed",12.7,7.4,0}, {"woundchance",11,25,0}, {"hitpoints",750,750,0...
937
V-Fib/FlurryClone
ESX = nil Citizen.CreateThread(function() while true do Wait(5) if ESX ~= nil then else ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) end end end) local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = ...
12,118
Proof93/Zero2HeroRP_ESX
local utils = require("rust-tools.utils.utils") local util = vim.lsp.util local config = require("rust-tools.config") local M = {} local function get_params() return vim.lsp.util.make_position_params() end M._state = { winnr = nil, commands = nil } local set_keymap_opt = { noremap = true, silent = true } -- run t...
3,734
zmtq05/rust-tools.nvim
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") --[ ARRAY ]------------------------------------------------------------------------------------------------------------------------------ local valores = { { item = "cafe", quantidade = 1, compra = 8 }, ...
2,503
brazucas/fivem-data
if mods['Krastorio2'] then data:extend({ -- -- Basic science { type = "bool-setting", name = "k2-automation-science-pack", default_value = true, setting_type = "startup", order = "AA-AA-S1" }, -- K2 extended science packs { type = "bool-settin...
1,061
RedRafe/science-not-invited
-------------------------------------------------------------------------------- -- config.lua -------------------------------------------------------------------------------- local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio > 1.5 and 800 or math.ceil(120...
487
GymbylCoding/CBEffects
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
3,962
xuyanbo03/lab
#!/usr/bin/env lua return { -- MySQL connect = { name = 'MySQL-test', user = 'luadbi', pass = 'testing12345!!!', }, encoding_test = { {'unsigned', 12435212 }, {'unsigned', 463769 }, {'signed', 8574678 }, {'signed', -12435212 }, {'unsigned', 0 }, {'s...
835
moteus/lua-odbc-dbi
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/2 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/current_module_status_data.md -- Item: Use Case 1: Ma...
1,872
ychernysheva/sdl_atf_test_scripts
--[[ desc: * Container, be responsible for saving object. * CAREFULLY: Container isn't object's upper, it doesn't manage object. author: Musoucrow since: 2018-3-11 alter: 2019-8-19 ]]-- ---@param start int @defalut=1 local function _RefreshTransfer(self, start) start = start or 1 for n=start, #self._transf...
3,848
LeomRonald/DFQ-Original
local assert = assert do --- local local a, b, c a, b, c = 0, 1 assert(a == 0) assert(b == 1) assert(c == nil) a, b = a+1, b+1, a+b assert(a == 1) assert(b == 2) a, b, c = 0 assert(a == 0) assert(b == nil) assert(c == nil) end do --- global !private_G a, b, c = 0, 1 assert(a == 0) assert...
724
DemiMarie/LuaJIT-test-cleanup
-- Copyright © 2016 Silv3r <silv3r@proshine-bot.com> -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICENSE file for more details. name = "Leveling: Route 20 (near Cinnabar)" author...
1,430
liquid8796/ProScript
local tbTable = GameMain:GetMod("_SkillScript") local tbSkill = tbTable:GetSkill("ZSZY") function tbSkill:Cast(skilldef, from) end function tbSkill:Apply(skilldef, key, from) end function tbSkill:FightBodyApply(skilldef, fightbody, from) if fightbody and fightbody.Npc then local npc = fightbody.N...
574
xArshy/Skycoveringworld
--- ATLAS PARK local spawnOnce = false -- Called after MOTD for now. function player_connected(id) --Id is player entity Id printDebug('player_connected Id: ' .. tostring(id)) Tasks.UpdateTasksForZone('Atlas Park') Contacts.SpawnContacts('Atlas Park') if spawnOnce == false then --spinner...
2,189
cat4hurricane/Segs
--[[ - util.lua - Handy module containing various functions for game development in lua, particularly with Love2D. - Authored by Thomas Smallridge (sundowns) - https://github.com/sundowns/lua-utils MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to a...
6,953
sundowns/grim-gamers
-- Copyright 2008 Yanira <forum-2008@email.de> -- Licensed to the public under the Apache License 2.0. require("nixio.fs") m = Map("hd-idle", translate("HDD Idle"), translate("HDD Idle is a utility program for spinning-down external " .. "disks after a period of idle time.")) s = m:section(TypedSection, "hd-idle"...
868
spiccinini/luci
shaders = require("core.shaders") BaseEntity = require("entities.core.baseentity") NPCBullet = require("entities.npcbullet") Goomba = require("entities.core.goomba") Gorilla = class("Gorilla", Goomba) Gorilla.spritesheet = SpriteSheet:new("sprites/gorilla.png", 32, 32) function Gorilla:initialize...
1,830
qwook/dpsht
--[[---------------------------------------------------------------------------- Copyright (c) 2016-present, 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...
1,695
wanyenlo/multipathnet
-- @start -- @namespace com.github.mounthuaguo.mongkeyking.lua -- @version 0.1 -- @name Base64 Encode -- @description Base64 encode and decode -- @author heramerom -- @type action -- @action Copy With Base64 Encode -- @action Copy With Base64 Decode -- @action Replace With Base64...
1,986
Mount-Huaguo/MonkeyKingScripts
local geezifylua = require('geezifylua') local test_data = require('test_case') describe('arabify', function() it('should convert every geez number in the test data to its equivalent arab number', function() for i,v in ipairs(test_data) do print(v[2]) ...
412
yilkalargaw/geezify-lua
include("shared.lua") function ENT:Draw() local ret = hook.Call("onDrawSpawnedWeapon", nil, self) if ret ~= nil then return end self:DrawModel() if self.dt.amount == 1 then return end local Pos = self:GetPos() local Ang = self:GetAngles() local text = FrenchRP.getPhrase("amount") .. self....
2,218
Sxcret/FrenchRP
WireLib = WireLib or {} local pairs = pairs local setmetatable = setmetatable local rawget = rawget local next = next local IsValid = IsValid local LocalPlayer = LocalPlayer local Entity = Entity local string = string local hook = hook -- extra table functions -- Returns a noniterable version of tbl. So indexing st...
24,256
Python1320/wire
-- https://github.com/windwp/nvim-autopairs require("nvim-autopairs").setup()
78
brucelee07/nvim-config
--[[ # Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights # reserved. # # This file contains proprietary Detector Content created by Cisco Systems, # Inc. or its affiliates ("Cisco") and is distributed under the GNU General # Public License, v2 (the "GPL"). This file may also include Detector Co...
4,954
Snur/proxySSL
bristleback_bristleback_lua = class({}) LinkLuaModifier( "modifier_bristleback_bristleback_lua", "lua_abilities/bristleback_bristleback_lua/modifier_bristleback_bristleback_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Passive Modifier function bri...
422
GIANTCRAB/dota-2-lua-abilities
function onStepIn(cid, item, position, fromPosition) level = 150 if getPlayerLevel(cid) < level then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Somente level " .. level .. " ou mais podem passar aqui.") ...
384
Renanziinz/Otziinz
local K, C, L, _ = select(2, ...):unpack() if C["Loot"].rolllootframe ~= true then return end local unpack = unpack local pairs = pairs local time = time local CreateFrame, UIParent = CreateFrame, UIParent local IsShiftKeyDown = IsShiftKeyDown local GetLootRollTimeLeft = GetLootRollTimeLeft -- Based on teksLoot(by T...
13,310
mopd/KkthnxUI_WotLK
identitycontrols = {}; function setCurrent(name) local idctrl = identitycontrols[name]; if idctrl then -- Deactivate all identities for k, v in pairs(identitycontrols) do v.setCurrent(false); end -- Set active idctrl.setCurrent(true); end end function addIdentity(name, isgm) loca...
1,047
sweetrpg/fantasy-grounds-genesys-ruleset
function TelekeneticBlobGetMarkedTarget(caster) local ability = caster:FindAbilityByName("telekenetic_blob_mark_target") if ability ~= nil then return ability.lastCastTaget end return nil end function TelekeneticBlobFlySetup(modifier, fixedSpeed) if modifier:ApplyHorizontalMotionController() == false or mod...
4,240
GuChenGuYing/DOTA2-AI-Fun
-- 微信验证 -- 每个需要用到的服务都需要在启动的时候调wx.init -- local http = require "bw.web.http_helper" local sha256 = require "bw.auth.sha256" local json = require "cjson.safe" local map = {} -- appid -> access local function request_access_token(appid, secret) assert(appid and secret) local ret, resp = http.get(...
2,717
xiaozia/bewater
require("bin.npc") require("bin.gstate") require("bin.battlestate") lvgp = lvgp or love.graphics local val = 0 platform = {} volume = 1 focusvar = love.window.hasMouseFocus() scrw, scrh = lvgp.getDimensions() function love.load() minimx = 736 exitx = 768 guiRender = true isPaused = false Pausab...
6,845
Aggrotadpole/brack
#! /usr/bin/env lua -- -- libtest-reflect-var.lua -- Copyright (C) 2015 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the MIT license. -- local libtest = require("eol").load("libtest") assert.Not.Nil(libtest) function check_variable(variable, expected_name, expected_readonly, e...
879
aperezdc/eris
class "SkeletonAnimation" function SkeletonAnimation:SkeletonAnimation(...) local arg = {...} for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycode.SkeletonAnimation(unpac...
1,493
my-digital-decay/Polycode
--[[ BattleguardSartura.lua ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the sta...
2,958
499453466/Lua-Other
--------------------------------------------- -- Slowga --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/msg") --------------------------------------------- function onAbilityCheck(play...
757
PaulAnthonyReitz/topaz
------------- --- Armor --- ------------- -- Ver 1.0 -- -- Fire-Forged Armor -- armor:register_armor("draconis:helmet_fire_draconic_steel", { description = "Fire-forged Draconic Steel Helmet", inventory_image = "draconis_inv_helmet_fire_draconic_steel.png", groups = {armor_head=1, armor_heal=18,...
3,675
ronoaldo/draconis
object_building_general_ord_cantina = object_building_general_shared_ord_cantina:new { } ObjectTemplates:addTemplate(object_building_general_ord_cantina, "object/building/general/ord_cantina.iff")
197
V-Fib/FlurryClone
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "nixio.util" local tp = require "luci.template.parser" local block = io.popen("block info", "r") local ln, dev, devices = n...
8,343
WYC-2020/luci
-- -- YATM Brewery -- local mod = foundation.new_module("yatm_brewery", "0.2.0") mod:require("registries.lua") mod:require("api.lua") mod:require("nodes.lua") mod:require("items.lua") mod:require("fluids.lua") mod:require("tests.lua")
239
IceDragon200/mt-yatm
-- lightsout v0.0.0 -- -- -- llllllll.co/t/lightsout -- -- -- -- ▼ instructions below ▼ grid__=include("lightsout/lib/ggrid") MusicUtil = require "musicutil" lattice=require("lattice") engine.name="PolyPerc" function init() grid_=grid__:new() local redrawer=metro.init() redrawer.time=1/15 redrawer.count...
1,944
schollz/lightsout
local t = require('luatest') local http_lib = require('http.lib') local g = t.group() g.test_template_1 = function() t.assert_equals(http_lib.template("<% for i = 1, cnt do %> <%= abc %> <% end %>", {abc = '1 <3>&" ', cnt = 3}), ' 1 &lt;3&gt;&amp;&quot; 1 ...
1,598
a1div0/http
--[[ This is a guide for how to use this game as a starting point to create your own RPGs or other games. This entire system uses one shared storage key. Go to 'Window' -> 'Shared Storage', and create a key or make one of your existing keys associated with this game. Find 'APISharedKey' in Project Content, and c...
5,480
Core-Team-META/Corehaven
-- icon set definition format -- -- indexed by unique identifier, referenced with icon_ prefix -- search path is prefixed icons/setname (same as lua file) -- -- source to the synthesizers and builtin shaders are in icon.lua -- -- 1. static image: -- ["myicon"] = { -- [24] = "myicon_24px.png", -- [16] = "myicon_16px.png...
1,335
letoram/durden
workspace "LiquidEngine" basedir "../workspace/" language "C++" cppdialect "C++17" architecture "x86_64" -- Set editor as starting project startproject "Liquidator" setupLibraryDirectories{} setupPlatformDefines{} linkPlatformLibraries{} setupToolsetOptions{} incl...
1,012
GasimGasimzada/liquid-engine
----------------------------------- -- Area: The Garden of Ru'Hmet -- Mob: Ix'aern DRG ----------------------------------- local ID = require("scripts/zones/The_Garden_of_RuHmet/IDs") ----------------------------------- function onMobFight(mob, target) -- Spawn the pets if they are despawned -- TODO: summon a...
1,497
MatthewJHBerry/topaz
--[[ This file has been modified by Andreas Pittrich <andreas.pittrich@web.de> in behalf of the german pirate party (Piratenpartei) www.piratenpartei.de Original Disclaimer: ------- LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the...
1,750
alxhh/piratenluci
return {'amnesie','amnestie','amnestiemaatregel','amnestieregeling','amnestieverlening','amnestiewet','amnioscoop','amnioscopie','amnestieen','amnioscopen','amnioscopieen'}
172
terrabythia/alfabeter
blocFunctions = {} function function_binding(toBind) for k, v in pairs(toBind) do blocFunctions[k] = function(position) local newObjs = {}; for i in string.gmatch(v, "%S+") do table.insert(newObjs, Engine.Scene:createGameObject(i)({position = position})); ...
2,748
Alaznist/Examples
local ffi = require('ffi') local log = require('log') local fun = require('fun') local yaml = require('yaml') local fiber = require('fiber') local socket = require('socket') local boxerrno = require('errno') local expd = require('memcached.expirationd') require('memcached.libparser') ffi_parser = ffi.load('libparser...
29,056
tarantool/memcached
function love.load() auth = require "lib/auth" login = require "bin/login" process = require "lib/process" sha256 = require "lib/sha256" end function love.update() process.update() end function love.draw() windowCanvases = process.renderCanvases() window.drawWindows(windowCanvases) end
300
BEN1JEN/snowballOS
--[[ ########################################################## Inked Shadow Vaults By: keivamp ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select ...
33,551
UdoChudo/InkedSV
(terralib.loadfile("test.t"))() import "darkroom" darkroomSimple.setImageSize(128,64) im out(x,y) [uint8[3]](darkroom.vectorSelect({x>10,x>20,x>50},{255,0,0},{0,255,255})) end test(out)
188
jameshegarty/darkroom
local class = require('class') local constants = require('constants') local Time = require('utils/Time') local abs, modf, fmod, floor = math.abs, math.modf, math.fmod, math.floor local format = string.format local date, time, difftime = os.date, os.time, os.difftime local isInstance = class.isInstance local MS_PER_S ...
4,672
Mishio595/momiji
hslk_item_synthesis({ "双铁剑=铁剑x3+铁盾x3", -- 等于 { { "双铁剑", 1 }, { "铁剑", 3 }, { "铁盾", 3 } } }) local items = { { Name = "铁剑", Ubertip = "主动演示(效果需要自己处理,本图无效果)|n被动演示(效果需要自己处理,本图无效果)", Art = "ReplaceableTextures\\CommandButtons\\BTNSteelMelee.blp", goldcost = 1000, lumbercost =...
3,252
hunzsig-warcraft3/w3x-h-lua-helloworld-sdk
local voteClass = {} voteClass.__index = voteClass function amapvote.CreateVote() local instance = {} setmetatable(instance, voteClass) instance:ctor() return instance end function voteClass:ctor() self._options = {} self._votes = {} self._started = false self._duration = 30 self._startTime = ...
2,327
maritaria/amapvote
--[[ MIT License Copyright (c) 2021 Michael Wiesendanger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
10,029
RagedUnicorn/wow-classic-pvpwarn
-- ========================= -- BUBBLY.NVIM BRANCH BUBBLE -- ========================= -- Created by: datwaft [github.com/datwaft] local bubble_factory = require'bubbly.factories.bubble' local settings = { symbol = vim.g.bubbly_symbols.branch, color = vim.g.bubbly_colors.branch, style = vim.g.bubbly_styles.br...
1,251
ratheesh/bubbly.nvim
function findOpenGL() configuration{} if os.is("Linux") then if os.isdir("/usr/include") and os.isfile("/usr/include/GL/gl.h") then return true end return false end --assume OpenGL is available on Mac OSX, Windows etc return true end function initOpenGL() configuration {} configuration {"Wind...
1,756
juj/bullet3
local Game = {} local ScreenWidth, ScreenHeight = love.graphics.getDimensions() local DistBetweenCards = 45 function Game:enter(from, index) self.gui = Suit.new() self.index = index self.cards = {} self.currentPlayerTurnIndex = nil self.roundCombination = nil self.roundStrongestCard = nil self.roundSequence...
3,354
MynameisBI/thirteen-madness
--[[Author: Pizzalol Date: 27.09.2015. Calculate the rift position and play the particle]] function RealityRiftPosition( keys ) local caster = keys.caster local target = keys.target local caster_location = caster:GetAbsOrigin() local target_location = target:GetAbsOrigin() local ability = keys.ability local a...
4,274
kulakaa073/SpellLibrary
--proc/window/class: window classes in the winapi sense. --this is unrelated to the oo API for windows (see msdn for what a window class means). setfenv(1, require'winapi') require'winapi.winuser' --register/unregister ffi.cdef[[ typedef struct tagWNDCLASSEXW { UINT cbSize; UINT _style; WNDPROC ...
3,559
finnw/grodlob
local abclua = require "abclua" -- Tests check wheter ABCLua can parse a given ABC string -- and reproduce it exactly. This only tests the parser and emitter, -- and it only tests those strings which are unchanged by the parse/emit process. function reproduce(str) -- parse, then regenerate local parse...
9,703
johnhw/abclua
local parent, ns = debugstack():match[[\AddOns\(.-)\]], oUF local oUF = ns.oUF or _G.oUF local LMH = LibStub('LibMobHealth-4.0') oUF.colors.health = {49/255, 207/255, 37/255} local Update = function(self, event, unit) if(self.unit ~= unit) then return end local health = self.Health if(health.PreUpdate)...
3,809
sativahigh/SohighUI
AddCSLuaFile() PANEL.Base = "Panel" function PANEL:Init() self.CurrentSearch = "" self.OldResults = -1 self.RebuildResults = false self:Dock( TOP ) self:SetHeight( 20 ) self:DockMargin( 0, 0, 0, 3 ) self.Search = self:Add( "DTextEntry" ) self.Search:Dock( FILL ) self.Search:SetPlaceholde...
4,731
Jck123/gmodserver
CustomizableWeaponry:addFireSound("CW_G18_FIRE", "weapons/dmg_glock/fire.wav", 1, 100, CHAN_WEAPON) CustomizableWeaponry:addFireSound("CW_G18_FIRE_SUPPRESSED", "weapons/dmg_glock/fire-silenced.wav", 0.5, 50, CHAN_WEAPON) --weapons/cw_mp5/mp5_fire_suppressed.wav CustomizableWeaponry:addReloadSound("CW_G18_MAGIN", "weap...
615
JacubRSTNC/PoliceRP-OpenSource
modifier_aura_attack_speed = class(Modifier) LinkLuaModifier("modifier_aura_attack_speed", modifier_aura_attack_speed) function modifier_aura_attack_speed:OnCreated () self.GetModifierBonus = self.GetModifierBonus self:SetVisible(false) --self:AttachVariableModifier("attack_speed"); end function modifier_aura_att...
804
chrisinajar/spark
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. -- -- As per the sublicensing clause, this file is also MIT/X11 Licensed. -- ** Copyright (c) 2010-...
10,213
maranda/metronome
--Realms is Minetest mod that allows you to use multiple diferent lua landscape generators --and control exactly where each one runs on the map through the realms.conf file realms={} local c_air = minetest.get_content_id("air") local c_stone = minetest.get_content_id("default:stone") local c_dirt = minetest.get_cont...
32,129
PowerOlive/fractured
--Example1.lua -- --Simplest possible example of using IAP Badger to purchase an IAP. --------------------------------- -- -- IAP Badger initialisation -- --------------------------------- --Load IAP Badger local iap = require("iap_badger") --Create the catalogue local catalogue = { --Informa...
1,432
happymongoose/iap_badger
local turtle = require "turtle" local utils = {} function utils.selectItem(name) for i=1,16 do turtle.select(i) local data = turtle.getItemDetail() if data ~= nil then if string.find(data.name, name) then return i; end end end return 0 end function utils.selec...
3,781
alexejsailer/mock-turtle-api-computer-craft
class "TronConfig" TronConfig.Dev = false TronConfig.Defaults = { Radius = 10, MaxRadius = 400, Vehicles = { { model_id = 43 } }, MinPlayers = 2, MaxPlayers = 8 } TronConfig.Maps = { { name = "Блюдо", position = Vector3(6922.432129, 718.890442, 1037.218994), radius = 35, ma...
36,170
Hallkezz/KoastFreeroam-2021
space = box.schema.space.create('tweedledum') i0 = space:create_index('primary', { type = 'tree', parts = {1, 'num'}, unique = true }) i1 = space:create_index('i1', { type = 'tree', parts = {2, 'num'}, unique = false }) i2 = space:create_index('i2', { type = 'tree', parts = {3, 'num'}, unique = false }) i3 = space:crea...
3,051
gridgentoo/Tarantool.Lua.Net
--- 客户端模块基础类, Client Module Base Class -- @module ClientBase, Client-side -- @copyright Lilith Games, Avatar Team -- @author Yuancheng Zhang local ClientBase = class('ClientBase') function ClientBase:GetSelf() return self end --- 加载的时候运行的代码 function ClientBase:InitDefault(_module) -- print(string.format('[Cli...
701
endaye/social-island
EditorDisableShout = EditorDisableShout or class(MissionScriptEditor) function EditorDisableShout:create_element() self.super.create_element(self) self._element.class = "ElementDisableShout" self._element.values.elements = {} self._element.values.disable_shout = true end function EditorDisableShout:_build_panel(...
479
MiamiCenterPL/BeardLib-Editor
---- -- Handles console functionality. -- -- Currently doesn't do much except having a helper which extends a `ConsoleScreen` to add new word -- prediction dictionaries (auto-complete) to the console input field: -- -- SDK.Console.AddWordPredictionDictionaries({ -- { delim = "SDK.", num_chars = 0, words = {...
2,013
dstmodders/dst-mod-sdk
local fs = require('efmls-configs.fs') local formatter = 'autopep8' local command = string.format('%s -', fs.executable(formatter)) return { formatCommand = command, formatStdin = true, }
194
lucax88x/efmls-configs-nvim
-- array_a print("array_a[0] = "..array_a[1]) print("array_a[50] = "..array_a[50]) print("array_a[51] = "..array_a[51]) print("array_a[100] = "..array_a[100]) print("==============================================") -- map_a print("map_a[10.2] = "..map_a[10.2]) print("map_a[10.3] = "..map_a[20.3]) print("=============...
841
sailzeng/zcelib
function Server_StartGame(game, standing) local SUPPLYLIMITMULT = 30 local defaultBonuses = game.Map.Bonuses local overriddenBonuses = game.Settings.OverriddenBonuses local publicGameData = Mod.PublicGameData publicGameData.supplyLimitData = {} publicGameData.whiteList = {} --Array of player IDs for whom attri...
1,510
achance6/WLattrition
local ChangeHistoryService = game:GetService("ChangeHistoryService") local TextService = game:GetService("TextService") local HttpService = game:GetService("HttpService") local RunService = game:GetService("RunService") local Selection = game:GetService("Selection") if (not RunService:IsStudio()) then warn("Properties...
17,858
Blupo/PropertiesMod
--[[ Desc: User Interface Manager (Singleton) Author: SerDing Since: 2018-08-14 15:41:03 Last Modified time: 2018-08-14 15:41:03 Docs: * Manage all panels * Handle input from mouse and virtual buttons. ]] local _Vector2 = require("utils.vector2") local _MATH = require("engine.math") local _INPUT =...
7,703
SerDing/Gear-of-Fate
local mod = foundation.new_module("foundation_node_sounds", "1.0.1") mod:require("node_sounds.lua") foundation.com.node_sounds = foundation.com.NodeSoundsRegistry:new()
171
IceDragon200/mt-foundation
local DSL = "podman" local DEBUGGING = false --> Toggle DEBUG() calls local HOST = false --> Toggle --network host mode local domain = os.getenv("PODMAN_DOMAIN") or "home.arpa" local creds = os.getenv("PODMAN_CREDS") local systemd_unit_pre = { [===[ [Unit] Description=__CNAME__ Container Wants=network.target After=net...
22,928
tongson/lopper
--[[ © 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("RankDemote"); COMMAND.tip = "CmdRankDemote...
2,053
xRJx/Clockwork-1
-- luacheck: globals ngx import require 'lua-nucleo.import' local resty_redis = require 'resty.redis' -------------------------------------------------------------------------------- local redis do local conn redis = function() if conn then return conn end conn = assert(resty_redis:new()) ...
534
agladysh/highload2016
local constants = {} constants.AUTH_URL = "https://roarn.space/api/studio/authenticate" return constants
106
roarnpkg/plugin
module 'mock' EnumGrowDirection = _ENUM_V{ 'x', 'y' } CLASS: UIGridLayout ( UILayout ) :MODEL{ Field 'size' :type( 'vec2' ) :getset( 'Size' ) :meta{ decimals = 0 }; Field 'gridSize' :type( 'vec2' ) :getset( 'GridSize' ); Field 'growDirection' :enum( EnumGrowDirection ); '----'; Field 'margin' :type('vec4...
3,494
tommo/mock
-- (Public domain.) -- This texmfcnf.lua file should contain only your personal changes from the -- original texmfcnf.lua (for example, as chosen in the installer). -- -- That is, if you need to make changes to texmfcnf.lua, put your custom -- settings in this file, which is .../texlive/YYYY/texmfcnf.lua, rather than -...
605
waqas4afzal/LatexUrduBooksTools
local cjson = require "cjson" describe("operations protocol", function() local build_request local operation local config local params local snapshot setup(function() snapshot = assert:snapshot() assert:set_parameter("TableFormatLevel", -1) build_request = require("resty.aws.request.build") ...
7,680
kweedagama/lua-resty-aws
-- Copyright (c) 2021 <dev@brigid.jp> -- This software is released under the MIT License. -- https://opensource.org/licenses/mit-license.php function love.conf(t) t.gammacorrect = true t.window.resizable = true t.window.highdpi = true end
246
brigid-jp/brigid-core
local moduleInfo = { name = "customCommandsMessageSenderExternalWidget", desc = "API helper for external widgets using the module", author = "PepeAmpere", date = "2017-02-13", license = "MIT", } -- @description public API for anyone who wants to inject or edit custom commands via own widget local newSendCustomMes...
4,986
spring1944/submodule-customCommands
--[[ Copyright 2021 Todd Austin 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 writing,...
3,881
FreeMasen/edge_landevmon
-- Generated by CSharp.lua Compiler local System = System local SlipeClientGui local SlipeMtaDefinitions System.import(function (out) SlipeClientGui = Slipe.Client.Gui SlipeMtaDefinitions = Slipe.MtaDefinitions end) System.namespace("Slipe.Client.Gui", function (namespace) -- <summary> -- Represents a Cegui but...
1,620
DezZolation/trains
if not minetest.settings:get_bool("creative_mode") then minetest.register_item(":", { type = "none", wield_image = "wieldhand.png", wield_scale = {x=1,y=1,z=2.5}, tool_capabilities = { full_punch_interval = 0.9, max_drop_level = 0, groupcaps = { crumbly = {times={[2]=3.00, [3]=1.50}, uses...
3,092
oilboi/WasteLands_Survival
ChatTypeInfo = {} ChatTypeInfo.SYSTEM = {} -- MessageFrame DEFAULT_CHAT_FRAME = {} function DEFAULT_CHAT_FRAME:AddMessage(msg) print(msg) end function DEFAULT_CHAT_FRAME:SetMaxLines() end -- Lua API unpack = table.unpack tinsert = table.insert format = string.format -- why is WoW so backwards function string.spl...
961
Ketho/WowpediaDoc
object_tangible_quest_imperial_itp_kaja_spy_data_terminal = object_tangible_quest_imperial_shared_itp_kaja_spy_data_terminal:new { } ObjectTemplates:addTemplate(object_tangible_quest_imperial_itp_kaja_spy_data_terminal, "object/tangible/quest/imperial/itp_kaja_spy_data_terminal.iff")
287
V-Fib/FlurryClone
local func = function(p, uv) local before = os.time() local async async = uv.new_async(function(a, b, c) p('in async notify callback') p(a, b, c) uv.close(async) end) local args = {500, 'string', nil, false, 5, "helloworld", async} local unpack = unpack or table.unpack uv.new_thread(function(n...
608
Keith994/navigator.lua