repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
spam999/TELETEST
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
viruscamp/NPCScan
_NPCScan.Overlay/Locales/Locale-esES.lua
1
2667
--[[**************************************************************************** * _NPCScan.Overlay by Saiket * * Locales/Locale-esES.lua - Localized string constants (es-ES/es-MX). * ***************************************************************************...
gpl-3.0
Hzj-jie/koreader
frontend/luadata.lua
5
4867
--[[-- Handles append-mostly data such as KOReader's bookmarks and dictionary search history. ]] local LuaSettings = require("luasettings") local dbg = require("dbg") local dump = require("dump") local logger = require("logger") local util = require("util") local LuaData = LuaSettings:new{ name = "", max_back...
agpl-3.0
PilzAdam/nodetopia
mods/deco/init.lua
1
4466
--[[ Nodetopia Copyright (C) 2013 PilzAdam <pilzadam@minetest.net> 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 3 of the License, or (at your option) any later version. This progra...
gpl-3.0
miladsadeghii/Tabchi-plus
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
matinbot/matinbot
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
heryii/snabb
lib/ljndpi/ndpi/protocol_ids_1_7.lua
13
12470
-- Generated by ljdnpi's tools/update-protocol-ids script local T = { [0] = "PROTOCOL_UNKNOWN", [1] = "PROTOCOL_FTP_CONTROL", [2] = "PROTOCOL_MAIL_POP", [2] = "PROTOCOL_HISTORY_SIZE", [3] = "PROTOCOL_MAIL_SMTP", [4] = "PROTOCOL_MAIL_IMAP", [5] = "PROTOCOL_DNS", [6] = "PROTOCOL_IPP", [7] = "PROTOCOL_HT...
apache-2.0
Shayan123456/shayanhallaji123
plugins/banhammer.lua
175
5896
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
larsbergstrom/skia
tools/lua/dump_clipstack_at_restore.lua
147
1096
function sk_scrape_startcanvas(c, fileName) canvas = c clipstack = {} restoreCount = 0 end function sk_scrape_endcanvas(c, fileName) canvas = nil end function sk_scrape_accumulate(t) if (t.verb == "restore") then restoreCount = restoreCount + 1; -- io.write("Clip Stack at restore #...
bsd-3-clause
plinkopenguin/wiremod
lua/effects/jump_in.lua
17
1690
EFFECT.Mat = Material( "effects/select_ring" ) /*--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------*/ function EFFECT:Init( data ) local TargetEntity = data:Get...
apache-2.0
Hzj-jie/koreader
frontend/ui/widget/filechooser.lua
1
21801
local BD = require("ui/bidi") local Device = require("device") local DocSettings = require("docsettings") local DocumentRegistry = require("document/documentregistry") local OpenWithDialog = require("ui/widget/openwithdialog") local ConfirmBox = require("ui/widget/confirmbox") local Font = require("ui/font") local Menu...
agpl-3.0
10se1ucgo/iceball
pkg/base/lib_crosshair.lua
4
7744
--[[ This file is part of Ice Lua Components. Ice Lua Components 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 version 3 of the License, or (at your option) any later version. ...
gpl-3.0
aminbotmaker/light
plugins/torrent_search.lua
223
1059
local https = require ('ssl.https') local ltn12 = require ("ltn12") local function search_kickass(query) local url = 'https://kat.cr/json.php?q='..URL.escape(query) local resp = {} local b,c = https.request { url = url, protocol = "tlsv1", sink = ltn12.sink.table(resp) } resp = table.concat(...
gpl-2.0
gamebooster/dota2-lua-engine
LuaJIT/src/jit/dump.lua
20
19502
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
gpl-3.0
idtek/extendwork
lib/cocos2d-x/scripting/lua/luajit/LuaJIT-2.0.2/src/jit/dump.lua
20
19502
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
apache-2.0
Nostrademous/Dota2-FullOverwrite
bot_obsidian_destroyer.lua
1
2209
------------------------------------------------------------------------------- --- AUTHOR: Nostrademous --- GITHUB REPO: https://github.com/Nostrademous/Dota2-FullOverwrite ------------------------------------------------------------------------------- require( GetScriptDirectory().."/constants" ) local heroData = r...
gpl-3.0
heryii/snabb
lib/ljsyscall/syscall/netbsd/ffifunctions.lua
18
4386
-- define system calls for ffi, NetBSD specific calls local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string require...
apache-2.0
FrankX0/nodemcu-firmware
lua_modules/ds3231/ds3231.lua
7
6906
-------------------------------------------------------------------------------- -- DS3231 I2C module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Tobie Booth <tbooth@hindbra.in> -------------------------------------------------------------------------------- require("bit") require("i2...
mit
openwhisk/openwhisk-apigateway
scripts/lua/lib/dataStore.lua
3
6885
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
apache-2.0
sumowares/killpro
libs/AceLibrary/AceLibrary.lua
1
21697
--[[ Name: AceLibrary Revision: $Rev: 13374 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Iriel (iriel@vigilance-committee.org) Tekkub (tekkub@gmail.com) Revision: $Rev: 13374 $ Website: http://www.wowace.com/ Documentation: ht...
gpl-3.0
Shayan123456/shayanhallaji123
plugins/help.lua
290
1653
do -- Returns true if is not empty local function has_usage_data(dict) if (dict.usage == nil or dict.usage == '') then return false end return true end -- Get commands for that plugin local function plugin_help(name) local plugin = plugins[name] if not plugin then return nil end local text = "" if ...
gpl-2.0
plinkopenguin/wiremod
lua/wire/stools/explosive.lua
9
4600
WireToolSetup.setCategory( "Physics" ) WireToolSetup.open( "explosive", "Explosive", "gmod_wire_explosive", nil, "Explosives" ) TOOL.ClientConVar = { model = "models/props_c17/oildrum001_explosive.mdl", effect = "Explosion", trigger = 1, -- Wire input value to cause the explosion damage = 200, -- Damage to infli...
apache-2.0
jarun/sysdig
userspace/sysdig/chisels/v_sports.lua
4
1963
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
mamad007/mamad007
plugins/groupmanager.lua
166
11272
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
LuaDist2/lgi
lgi/record.lua
3
7088
------------------------------------------------------------------------------ -- -- lgi - handling of structs and unions -- -- Copyright (c) 2010, 2011,2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ------------------------------------------------...
mit
Hzj-jie/koreader
frontend/ui/otamanager.lua
1
19689
--[[-- Checks for updates on the specified nightly build server. ]] local BD = require("ui/bidi") local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local Device = require("device") local Event = require("ui/event") local InfoMessage = require("ui/widget/infomessage") local M...
agpl-3.0
joshkel/qdz
class/ui/GameUI.lua
1
3319
-- Qi Daozei -- Copyright (C) 2013 Josh Kelley -- -- based on -- ToME - Tales of Middle-Earth -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini -- -- 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 Soft...
gpl-3.0
RagEmu/Renewal
tools/item_merge.lua
1
23065
-- This file is part of RagEmu. -- http://ragemu.org - https://github.com/RagEmu/Renewal -- -- Copyright (C) 2016 RagEmu Dev Team -- -- RagEmu 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 ...
gpl-3.0
idtek/extendwork
sample/coinflip/scripts/scenes/MenuScene.lua
1
1757
local MenuScene = class("MenuScene", function() return display.newScene("MenuScene") end) function MenuScene:ctor() self.bg = display.newSprite("#MenuSceneBg.png", display.cx, display.cy) self:addChild(self.bg) self.adBar = require("views.AdBar").new() self:addChild(self.adBar) -- create men...
apache-2.0
MrFastBot/Fast
libs/feedparser.lua
543
11955
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = (loadfile "./libs/XMLElement.lua")() local dateparser = (loadfile "./libs/dateparser.lua")() local URL = (loadfile "./libs/url.lua")() local tinsert, tremove, tconcat = table.insert...
gpl-2.0
Hzj-jie/koreader
spec/unit/input_spec.lua
6
5084
describe("input module", function() local Input setup(function() require("commonrequire") Input = require("device/input") end) describe("handleTouchEvPhoenix", function() --[[ -- a touch looks something like this (from H2Ov1) Event: time 1510346968.993890, type 3 (EV_ABS), code 57 (ABS_...
agpl-3.0
alirezair/king-rabbit
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
pctoools23/ali
plugins/info.lua
10
22224
local function callback_reply(extra, success, result) --icon & rank ------------------------------------------------------------------------------------------------ userrank = "Member" if tonumber(result.from.id) == 122774063 then userrank = "Master ⭐⭐⭐⭐" send_document(org_chat_id,"umbrella/stickers/master.webp"...
gpl-2.0
Hzj-jie/koreader
frontend/socketutil.lua
2
6170
--[[-- This module contains miscellaneous helper functions specific to our usage of LuaSocket/LuaSec. ]] local Version = require("version") local http = require("socket.http") local https = require("ssl.https") local ltn12 = require("ltn12") local socket = require("socket") local socketutil = { -- Init to the def...
agpl-3.0
heryii/snabb
lib/ljsyscall/syscall/linux/arm64/nr.lua
24
5171
-- arm64 syscall numbers are the new architecture defaults -- so we could reuse this file for other architectures -- note that there are some name differences for new 32 bit architectures local nr = { SYS = { io_setup = 0, io_destroy = 1, io_submit = 2, io_cancel = 3, io_getevents = 4, setxattr = 5, ls...
apache-2.0
lipp/lua-jet
spec/value_matcher_spec.lua
1
2001
local vm = require'jet.daemon.value_matcher' describe( 'The jet.daemon.value_matcher module', function() it('equals', function() local pred = vm.new({ value = { equals = '123' } }) assert.is_true(pred('123')) assert.is_falsy(pred(123)) ...
mit
skuater/radare2-bindings
libr/lang/p/radare.lua
8
16276
-- -- radare lua api -- -- 2008 pancake <youterm.com> -- ========== -- -- -- -- Namespaces -- -- -- -- ========== -- Radare = {} Radare.Analyze = {} Radare.Print = {} Radare.Search = {} Radare.Config = {} Radare.Code = {} Radare.Hash = {} Radare.Debugger = {} Radar...
lgpl-3.0
TwistedScorpio/OTHire
data/spells/scripts/attack/poison_storm.lua
2
1228
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_GREEN_RINGS) local area = createCombatArea(AREA_CROSS6X6) setCombatArea(combat, area) local condition = createConditionObject(CONDITION_POISON) setConditionParam(condi...
gpl-3.0
cloudwu/lua-cjson
lua/cjson/util.lua
4
6971
local json = require "cjson" -- Various common routines used by the Lua CJSON package -- -- Mark Pulford <mark@kyne.com.au> -- Determine with a Lua table can be treated as an array. -- Explicitly returns "not an array" for very sparse arrays. -- Returns: -- -1 Not an array -- 0 Empty table -- >0 Highest index ...
mit
hpychan/verse
plugins/smacks.lua
1
3704
local xmlns_sm = "urn:xmpp:sm:2"; function verse.plugins.smacks(stream) -- State for outgoing stanzas local outgoing_queue = {}; local last_ack = 0; -- State for incoming stanzas local handled_stanza_count = 0; -- Catch incoming stanzas local function incoming_stanza(stanza) if stanza.attr.xmlns == "jabbe...
mit
ENDrain/vRP-plusplus
vrp/modules/map.lua
1
1567
local client_areas = {} -- free client areas when leaving AddEventHandler("vRP:playerLeave",function(user_id,source) client_areas[source] = nil end) -- create/update a player area function vRP.setArea(source,name,x,y,z,radius,height,cb_enter,cb_leave) local areas = client_areas[source] or {} client_areas[sour...
mit
tst2005/lua-lockbox
lockbox/kdf/pbkdf2.lua
1
2614
local Bit = require("lockbox.util.bit"); local String = require("string"); local Array = require("lockbox.util.array"); local Stream = require("lockbox.util.stream"); local Math = require("math"); local AND = Bit.band; local OR = Bit.bor; local NOT = Bit.bnot; local XOR = Bit.bxor; local LROT = Bit.lrotate; local RRO...
mit
cecile/Cecile_RecipeTooltip
src/Cecile_RecipeTooltip/libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua
7
8157
--[[----------------------------------------------------------------------------- Slider Widget Graphical Slider, like, for Range values. -------------------------------------------------------------------------------]] local Type, Version = "Slider", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
artistic-2.0
DarthFutuza/JediKnightGalaxies
JKGalaxies/glua/dice.lua
2
7049
--Dice Roller System --Written by Futuza (2021) --[[ Simple dice rolling system. Currently it rolls dice locally in a small range by default (same as /say's range), but you can specify a chat channel. eg: /roll 20, rolls a 20 sided dice. /roll 75 338, rolls 75 338 sided dice. /roll 20 ...
gpl-2.0
tst2005/lua-lockbox
lockbox/cipher/mode/cfb.lua
1
3103
local Array = require("lockbox.util.array"); local Stream = require("lockbox.util.stream"); local Queue = require("lockbox.util.queue"); local String = require("string"); local Bit = require("lockbox.util.bit"); local CFB = {}; CFB.Cipher = function() local public = {}; local key; local blockCipher; local padd...
mit
plinkopenguin/wiremod
lua/entities/gmod_wire_egp/lib/objects/text.lua
10
3692
-- Author: Divran local Obj = EGP:NewObject( "Text" ) Obj.h = nil Obj.w = nil Obj.text = "" Obj.fontid = 1 Obj.size = 18 Obj.valign = 0 Obj.halign = 0 Obj.angle = 0 local surface_SetTextPos local surface_DrawText local surface_SetTextColor local surface_CreateFont local surface_SetFont local surface_GetTextSize local ...
apache-2.0
DarthFutuza/JediKnightGalaxies
JKGalaxies/glua/resources/entities/pzk_tourneynode.lua
3
4522
-- Classname to be used for this entity (Mandatory, without this defined, the entity is discarded by the loader) ENT.ClassName = "pzk_tourneynode" -- Type of this entity (generic, logical, mover and trigger are currently supported, also mandatory for the loader to accept this entity) ENT.Type = "generic" -- Scripted en...
gpl-2.0
xsmart/opencvr
3rdparty/civetweb/test/1000images.lua
11
8259
mg.write("HTTP/1.1 200 OK\r\n") mg.write("Connection: close\r\n") mg.write("Content-Type: text/html; charset=utf-8\r\n") mg.write("\r\n") t = os.time() if not mg.request_info.query_string then cnt = 1000 else cnt = tonumber(mg.get_var(mg.request_info.query_string, "cnt")) end cnt = 100*math.floor(cn...
mit
plinkopenguin/wiremod
lua/entities/gmod_wire_hdd.lua
9
8356
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Flash EEPROM" ENT.WireDebugName = "WireHDD" if CLIENT then return end -- No more client function ENT:OnRemove() for k,v in pairs(self.CacheUpdated) do file.Write(self:GetStructName(k),self:MakeFloatTable(self.Cache[k])) end end functio...
apache-2.0
fduch2k/mal
lua/step6_file.lua
40
3471
#!/usr/bin/env lua local table = require('table') local readline = require('readline') local utils = require('utils') local types = require('types') local reader = require('reader') local printer = require('printer') local Env = require('env') local core = require('core') local List, Vector, HashMap = types.List, typ...
mpl-2.0
Hzj-jie/koreader
plugins/zsync.koplugin/main.lua
2
9887
local DataStorage = require("datastorage") local InputContainer = require("ui/widget/container/inputcontainer") local InfoMessage = require("ui/widget/infomessage") local UIManager = require("ui/uimanager") local ltn12 = require("ltn12") local DEBUG = require("dbg") local _ = require("gettext") local ffi = require("ff...
agpl-3.0
DaanVanYperen/ns2-turbo
output/lua/Weapons/Marine/Pistol.lua
1
8507
// ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= // // lua\Weapons\Pistol.lua // // Created by: Charlie Cleveland (charlie@unknownworlds.com) and // Max McGuire (max@unknownworlds.com) // // ========= For more information, visit us at http://www.u...
gpl-3.0
LotekHeavy/helicopter
init.lua
1
6940
-- -- Helper functions -- local function get_sign(i) if i == 0 then return 0 else return i/math.abs(i) end end -- -- Heli entity -- local heli = { physical = true, collisionbox = {-1,-0.6,-1, 1,0.3,1}, makes_footstep_sound = false, collide_with_objects = true, visual = "mesh", mes...
lgpl-2.1
uskdum/xbot
bot/utils.lua
61
15380
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
OlegGirko/ldbox
modes/obs-rpm-build+pp/fs_rules.lua
2
27429
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Copyright (C) 2011 Nokia Corporation. -- Licensed under MIT license. -- Rule file interface version, mandatory. -- rule_file_interface_version = "105" ---------------------------------- -- use "==" to test options as long as there is only one possible option, ...
lgpl-2.1
zdimension/FreeRaider
FreeRaider/FreeRaider/bin/Debug/scripts/strings/russian/generic.lua
7
4038
-- OPENTOMB GENERIC STRINGS - RUSSIAN LANGUAGE -- by Lwmte, Jan 2015 -------------------------------------------------------------------------------- -- This set of strings is used globally in all engine versions for various -- menu entries, notify pop-ups, inventory entries etc. --------------------------------------...
lgpl-3.0
FrankX0/nodemcu-firmware
lua_examples/ucglib/UcgLogo.lua
18
5054
-- setup SPI and connect display function init_spi_display() -- Hardware SPI CLK = GPIO14 -- Hardware SPI MOSI = GPIO13 -- Hardware SPI MISO = GPIO12 (not used) -- Hardware SPI /CS = GPIO15 (not used) -- CS, D/C, and RES can be assigned freely to available GPIOs local cs = 8 -- GPIO15, pull-d...
mit
lijieamd/ardupilot
Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua
178
29694
--[[ KAP UAV Exposure Control Script v3.2 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
cecile/Cecile_RecipeTooltip
src/Cecile_RecipeTooltip/libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
16
5437
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 23 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(...
artistic-2.0
DarthFutuza/JediKnightGalaxies
JKGalaxies/glua/framework/minigames/slicing/APIReference.lua
3
3652
SlicingGame API --[[ ------------------------------------------------ Jedi Knight Galaxies Lua Code Slicing Written by BobaFett --------------------------------------------------]] local SlicingGame = {} local NODETYPE_ALARM = 0 local NODETYPE_RELAY = 1 local NODETYPE_RESET = 2 local NODETYPE_ACCESS1 = 3 local ...
gpl-2.0
pressureaa/neural-style
neural_style.lua
18
11663
require 'torch' require 'nn' require 'image' require 'optim' local loadcaffe_wrap = require 'loadcaffe_wrapper' -------------------------------------------------------------------------------- local cmd = torch.CmdLine() -- Basic options cmd:option('-style_image', 'examples/inputs/seated-nude.jpg', 'Styl...
mit
heryii/snabb
lib/ljsyscall/syscall/netbsd/ffitypes.lua
24
15760
-- This is types for NetBSD and rump kernel, which are the same bar names. local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, t...
apache-2.0
bananu7/Prison-Breakage
main.lua
1
3011
require"map" require"prisoner" function love.load(arg) if arg[#arg] == "-debug" then require("mobdebug").start() end require("libraries.loveframes") require("ui") love.graphics.setDefaultFilter("nearest", "nearest", 0) map = Map map:load("assets/images/tiles/") map:generate() Prisoner.sprit...
mit
koniu/luaosc
src/osc/client.lua
1
1776
--[[ -- luaosc Copyright (C) 2009 Jost Tobias Springenberg <k-gee@wrfl.de> -- This file is part of luaosc. luaosc 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 3 of the Licen...
gpl-3.0
disseminate/coi
gamemode/shared.lua
1
1200
DeriveGamemode( "base" ); GM.Name = "Conflict of Interest"; GM.Author = "disseminate"; function RequireDir( dir ) local files = file.Find( GM.Folder .. "/gamemode/" .. dir .. "/*.lua", "GAME" ); if( CLIENT ) then files = file.Find( GM.FolderName .. "/gamemode/" .. dir .. "/*.lua", "LUA" ); end EXPORTS = { }; ...
mit
heryii/snabb
src/lib/virtio/net_driver.lua
12
4361
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Application to connect to a virtio-net driver implementation -- -- Licensed under the Apache 2.0 license -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Copyright (c) 2015 Virtual Open Systems -- module(..., package.seeall) local d...
apache-2.0
joshkel/qdz
load.lua
1
5259
-- Qi Daozei -- Copyright (C) 2013 Josh Kelley -- -- based on -- ToME - Tales of Middle-Earth -- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini -- -- 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 Soft...
gpl-3.0
hohoCode/NAMAS
summary/data.lua
9
4950
-- -- Copyright (c) 2015, 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. -- -- Author: Alex...
bsd-3-clause
alireza1998/black-dev
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
zdimension/FreeRaider
FreeRaider/FreeRaider/bin/Debug/scripts/gameflow/TR4.lua
2
7987
-- Gameflow Script for OpenTomb -- Game: Tomb Raider: IV -- Version: 1.0 -- By: Gh0stBlade --------------------------------------------------------------------------------------------------------------------------------------------------------- gameflow_paths[Game.IV].numlevels = 38; --------------------------------...
lgpl-3.0
TeleDALAD/AAA
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
pctoools23/ali
plugins/savepl.lua
14
1060
--Created by: @janlou & @Alirezame --Powered by: @SUDO_TM & @AdvanTM --⚠️CopyRight all right reserved⚠️ local function saveplug(extra, success, result) local msg = extra.msg local name = extra.name local receiver = get_receiver(msg) if success then local file = 'plugins/'..name..'.lua' print('File savi...
gpl-2.0
jordyvl/VLWARESERVER
src/usrbin/2d.lua
2
2569
local tArgs = {...} if #tArgs < 1 then print("Usage: "..shell.getRunningProgram().." <map>") return end local mappath = shell.resolve(tArgs[1]) local mapfile = fs.open(mappath, "r") if not mapfile then mapfile = fs.open(mappath, "w") mapfile.write(textutils.serialize({[0] = {[0] = 32768}})) mapfile.close() end m...
mit
plinkopenguin/wiremod
lua/entities/gmod_wire_forcer.lua
9
3588
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Forcer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Forcer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) self:NetworkVar( "Bool", 0, "ShowBeam" ) self:NetworkVar( "Bool", 1, "BeamHighlight"...
apache-2.0
Creeper2009/OpenLuther
floppy/lib/package.lua
1
2951
local package = {} package.path = "/lib/?.lua;/usr/lib/?.lua;/home/lib/?.lua;./?.lua" local loading = {} local loaded = { ["_G"] = _G, ["bit32"] = bit32, ["coroutine"] = coroutine, ["math"] = math, ["os"] = os, ["package"] = package, ["string"] = string, ["table"] = table } package.loaded = loaded l...
mit
barreeeiroo/BarrePolice
mattata.lua
1
85037
--[[ _ _ _ _ __ ___ __ _| |_| |_ __ _| |_ __ _ | '_ ` _ \ / _` | __| __/ _` | __/ _` | | | | | | | (_| | |_| || (_| | || (_| | |_| |_| |_|\__,_|\__|\__\__,_|\__\__,_| v2.0.0 Copyright 2017 Matthew Hesketh <wrxck0@gmail.com> & Diego Barreiro <diego...
mit
live-clones/luatex
source/texk/web2c/luatexdir/luasocket/samples/cddb.lua
46
1419
local socket = require("socket") local http = require("socket.http") if not arg or not arg[1] or not arg[2] then print("luasocket cddb.lua <category> <disc-id> [<server>]") os.exit(1) end local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi" function parse(body) local lines = string.gfind(bo...
gpl-2.0
WicopeeDot/addons
mingeban-commands/lua/mingeban/commands/game.lua
1
2042
if SERVER then local kill = mingeban.CreateCommand({"kill", "wrist", "suicide"}, function(caller, line) local ok = hook.Run("CanPlayerSuicide", ply) if ok == false then return false, "Can't suicide" end caller:KillSilent() caller:CreateRagdoll() end) kill:SetAllowConsole(false) local revive = mingeb...
mit
Hajimokhradi/zli
libs/dateparser.lua
31
6347
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c37231841.lua
7
1339
--軽量化 function c37231841.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --draw local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(37231841,0)) e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW) e2:SetType(E...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c40542825.lua
2
2562
--憑依装着-ライナ function c40542825.initial_effect(c) --special summon proc local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetRange(LOCATION_HAND+LOCATION_DECK) e1:SetCondition(c40542825.spcon) e1:SetOperation(c40542825.spop) e...
gpl-2.0
Turttle/darkstar
scripts/zones/The_Garden_of_RuHmet/MobIDs.lua
30
1432
----------------------------------- -- Area: The Garden of Ru'Hmet -- Comments: -- posX, posY, posZ --(Taken from 'mob_spawn_points' table) ----------------------------------- -- Ix'Aern (DRG)'s minions - Wynavs IxAernDRG = 16921022; wynavA = 16921023; wynavB = 16921024; wynavC = 16921025; -- First Aw'Aerns in each g...
gpl-3.0
dickeyf/darkstar
scripts/globals/items/dish_of_spaghetti_tonno_rosso_+1.lua
18
1379
----------------------------------------- -- ID: 5624 -- Item: Dish of Spaghetti Tonno Rosso +1 -- Food Effect: 60 Mins, All Races ----------------------------------------- -- Health % 13 -- Health Cap 185 -- Dexterity 2 -- Vitality 3 ----------------------------------------- require("scripts/globals/status"); ------...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c3972721.lua
9
1805
--グリード・グラード function c3972721.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_END_PHASE) e1:SetCondition(c3972721.condition) e1:SetTarget(c3...
gpl-2.0
dickeyf/darkstar
scripts/zones/Beadeaux/npcs/The_Afflictor.lua
13
1182
----------------------------------- -- Area: Beadeaux -- NPC: The Afflictor -- @zone 147 -- @pos <many> ----------------------------------- package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beadeaux/TextIDs"); require("scripts/globals/quests"); require(...
gpl-3.0
fgenesis/Aquaria_experimental
game_scripts/scripts/maps/node_seehealthup.lua
1
1406
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
fgenesis/Aquaria_experimental
game_scripts/scripts/maps/node_enter_abyss.lua
6
1088
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c24382602.lua
2
3286
--光の霊堂 function c24382602.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --extra summon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_EXTRA_SUMMON_COUNT) e2:SetRange(LOCATION_FZON...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c73866096.lua
9
1262
--ドドドドロー function c73866096.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,73866096+EFFECT_COUNT_CODE_OATH) e1:SetCost(c73866096.cost) e1:SetTarget(c73866096.target) e1:SetOperation(c738...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c8400623.lua
4
2475
--邪龍アナンタ function c8400623.initial_effect(c) c:EnableReviveLimit() --cannot special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE) c:RegisterEffect(e1) --special...
gpl-2.0
Turttle/darkstar
scripts/zones/Maze_of_Shakhrami/TextIDs.lua
7
1507
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6383; -- Obtained: <item>. GIL_OBTAINED = 6384; -- Obtained <number> gil. KEYITEM_OBTAINED = 6386; -- Obtained...
gpl-3.0
dickeyf/darkstar
scripts/globals/items/rolanberry_pie_+1.lua
19
1325
----------------------------------------- -- ID: 4339 -- Item: rolanberry_pie_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 60 -- Intelligence 3 -- Health Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); -----------------------...
gpl-3.0
mchaza/soka
src/team.lua
1
8180
require 'libraries/vector' require 'agent' require 'control' require 'util' Team = { } function Team:new(no, x, y) local instance = {} setmetatable(instance, self) self.__index = self instance.no = no instance.agents = {} instance.score = 0 instance.win = false instance.size = Global[findGlobal('Team Size')...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c18114794.lua
4
2337
--サモンブレーカー function c18114794.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) -- local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(18114794,0)) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetRange(LOCAT...
gpl-2.0
dickeyf/darkstar
scripts/zones/The_Shrouded_Maw/Zone.lua
32
1779
----------------------------------- -- -- Zone: The_Shrouded_Maw (10) -- ----------------------------------- package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/The_Shrouded_Maw/TextIDs"); ---------------------...
gpl-3.0
shadyproject/wim-ng
WIM/Localization/enUS.lua
1
18077
--[[ Language Localization: enUS Translated by: name <email address> ]] WIM.AddLocale("enUS", { ["WIM (WoW Instant Messenger)"] = true, ["_Description"] = "WIM is an addon that brings a familiar feel to communicating through chat in The World of Warcraft. On this screen you will be able to customize WI...
mit
SalvationDevelopment/Salvation-Scripts-TCG
c100213001.lua
2
3021
--ディアバウンド・カーネル --Diabound Kernel --Scripted by Eerie Code function c100213001.initial_effect(c) --Increase ATK local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100213001,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c98024118.lua
7
1546
--ホワイトポータン function c98024118.initial_effect(c) --lp damage local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCondition(c98024118.indcon) e1:SetValue(1) c:RegisterEffect(e1) --lp damage local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(9...
gpl-2.0
dickeyf/darkstar
scripts/zones/Ranguemont_Pass/Zone.lua
19
1813
----------------------------------- -- -- Zone: Ranguemont_Pass (166) -- ----------------------------------- package.loaded["scripts/zones/Ranguemont_Pass/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Ranguemont_Pass/TextIDs"); require("scripts/globals...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c30786387.lua
2
2434
--花積み function c30786387.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(30786387,0)) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c30786387.target) e1:SetOperation(c30786387.activate) c:RegisterEffect(e1) --tohand local e2=Effect.Creat...
gpl-2.0