repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
notcake/wire | lua/wire/stools/addressbus.lua | 9 | 3086 | WireToolSetup.setCategory( "Advanced" )
WireToolSetup.open( "addressbus", "Data - Address Bus", "gmod_wire_addressbus", nil, "Address Buses" )
if ( CLIENT ) then
language.Add( "Tool.wire_addressbus.name", "Address bus tool (Wire)" )
language.Add( "Tool.wire_addressbus.desc", "Spawns an address bus. Address spaces ma... | apache-2.0 |
rodrigo-machado/verigraph | src/repl/lua/help.lua | 2 | 16569 | --[[ Lua "help" module
allows setting docstrings for Lua objects,
and optionally forwarding help calls
to other subsystems that have introspective
information about objects (Luabind, osgLua
included)
]]
--[[ Original Author: Ryan Pavlik <rpavlik@acm.org> <abiryan@ryand.net>
Copyright 2011 Iowa State University.
Distri... | gpl-3.0 |
notcake/wire | lua/entities/gmod_wire_weight.lua | 10 | 1062 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Weight"
ENT.WireDebugName = "Weight"
if CLIENT then return end -- No more client
local MODEL = Model("models/props_interiors/pot01a.mdl")
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
... | apache-2.0 |
shayanchabok007/antispam_new_ok | plugins/dictionary.lua | 58 | 1663 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
BLavery/esuite-lua | library/lib-THINGSPEAK.lua | 1 | 1583 | -- https://captain-slow.dk/2015/04/16/posting-to-thingspeak-with-esp8266-and-nodemcu/
APIKEY=APIKEY or "-- need your thingspeak write apikey --"
print("ThingSpeak Init" .. APIKEY)
if not rtcmem then
print("Needs rtcmem in build")
return
end
-- simplistic: just 1 field of data per call! But it works!
func... | mit |
JoakimLindbom/ago | weatherreporter/Belysning.lua | 1 | 1346 | for key,value in pairs(content) do print(key,value) end
Mediaroom_window = 'uuid=76697596-8e50-487f-9217-91b6db4ad171'
turnOn = function (lamp)
sendCmd ("On", lamp)
end
turnOff = function (lamp)
sendCmd ("Off", lamp)
end
sendCmd = function (cmd, lamp)
command = 'command=' ..cmd
dev='uuid=' .. lamp
... | gpl-3.0 |
destroyerdust/AutoReply | Libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 38 | 6512 | --[[-----------------------------------------------------------------------------
Keybinding Widget
Set Keybindings in the Config UI.
-------------------------------------------------------------------------------]]
local Type, Version = "Keybinding", 24
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | mit |
notcake/wire | lua/wire/server/wirelib.lua | 2 | 37272 | -- Compatibility Global
if not WireLib then return end
WireAddon = 1
local ents = ents
local timer = timer
local string = string
local table = table
local hook = hook
local concommand = concommand
local Msg = Msg
local MsgN = MsgN
local pairs = pairs
local ipairs = ipairs
local IsValid = IsValid
local tostring = tos... | apache-2.0 |
notcake/wire | lua/wire/stools/input.lua | 9 | 1591 | WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" )
WireToolSetup.open( "input", "Numpad Input", "gmod_wire_input", nil, "Numpad Inputs" )
if CLIENT then
language.Add( "tool.wire_input.name", "Input Tool (Wire)" )
language.Add( "tool.wire_input.desc", "Spawns a input for use with the wire system." )
l... | apache-2.0 |
Lua-cURL/Lua-cURLv3 | src/lua/cURL/impl/cURL.lua | 2 | 18218 | --
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2014-2021 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of Lua-cURL library.
--
local module_info = {
_NAME = "Lua-cURL";
_VERSION = "0.3.13... | mit |
armersong/luaj | test/lua/perf/fannkuch.lua | 6 | 1518 | -- The Computer Language Benchmarks Game
-- http://shootout.alioth.debian.org/
-- contributed by Mike Pall
local function fannkuch(n)
local p, q, s, odd, check, maxflips = {}, {}, {}, true, 0, 0
for i=1,n do p[i] = i; q[i] = i; s[i] = i end
repeat
-- Print max. 30 permutations.
if check < 30 then
i... | mit |
ZeeBeast/AeiaOTS | data/actions/scripts/vip/Kopia vipdoor.lua | 1 | 1176 | function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
if vipstatus == 1 then
doTransformItem(item.uid, item.itemid + 1)
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if playerpos.... | agpl-3.0 |
dmccuskey/dmc-autostore | dmc_corona/dmc_autostore.lua | 4 | 16160 | --====================================================================--
-- dmc_corona/dmc_autostore.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2013-2015 David McCuskey. All Rights Reserved.... | mit |
effelsberg/loveCodea | loveCodea/Physics.lua | 1 | 13509 | -- -- ---- ------ ---------- ---------------- --------------------------
--
-- This file is part of loveCodea.
-- Copyright 2012 Stephan Effelsberg
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
-- -- ---- ------ ---------- ---------------- --------------------------
p... | mit |
ZeeBeast/AeiaOTS | data/npc/scripts/TP/Reed.lua | 2 | 1288 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end... | agpl-3.0 |
notcake/wire | lua/entities/gmod_wire_egp/cl_init.lua | 9 | 1335 | include('shared.lua')
ENT.gmod_wire_egp = true
function ENT:Initialize()
self.GPU = GPULib.WireGPU( self )
self.RenderTable = {}
self:EGP_Update( EGP.HomeScreen )
end
function ENT:EGP_Update( Table )
self.NeedsUpdate = true
self.NextUpdate = Table
end
function ENT:_EGP_Update( bool )
self.NeedsUpdate = nil
... | apache-2.0 |
Kkthnx-WoW/KkthnxUI | KkthnxUI/Core/Conflicts.lua | 1 | 4356 | local K, C = unpack(select(2, ...))
-- Prevent users config errors and using other UIs over mine.
local _G = _G
local DisableAddOn = _G.DisableAddOn
local ReloadUI = _G.ReloadUI
local UNKNOWN = _G.UNKNOWN
-- Force user to disable KkthnxUI if another AddOn is enabled with it!
if IsAddOnLoaded("KkthnxUI") and IsAddOn... | mit |
tianye910208/luamake | src/util.lua | 1 | 2168 | --util.lua--------------------------
--@tianye112197
--@2016-12-07
------------------------------------
local lfs = require("lfs")
function lsdir(path, ext, ret)
ret = ret or {}
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
local f = path.."/"..file
... | mit |
eagle14/snippy-get | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
gdevillele/dockercraft | world/Plugins/ProtectionAreas/CurrentLng.lua | 5 | 3025 |
-- CurrentLng.lua
-- This file provides all the translatable strings
-- The expectation is that the translators will create copies of this file, translate the texts and then the users will overwrite this file with a specific language version
-- Note that the individual languages must not have ".lua" extension, otherwi... | apache-2.0 |
sjznxd/lc-20121230 | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
LazyZhu/openwrt-luci-trunk-mod | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/startup.lua | 74 | 2567 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local inits = { }
for _, name ... | apache-2.0 |
huncrys/mtasa-blue | vendor/luajit/dynasm/dasm_mips.lua | 5 | 36126 | ------------------------------------------------------------------------------
-- DynASM MIPS32/MIPS64 module.
--
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local mips64 = mips64
... | gpl-3.0 |
MustaphaTR/MustaphaTR-s-D2K-Mod | mods/mtrsd2k/maps/harkonnen-02b/harkonnen02b-AI.lua | 1 | 3183 | IdlingUnits = { }
AttackGroupSize =
{
easy = 6,
normal = 8,
hard = 10
}
AttackDelays =
{
easy = { DateTime.Seconds(4), DateTime.Seconds(9) },
normal = { DateTime.Seconds(2), DateTime.Seconds(7) },
hard = { DateTime.Seconds(1), DateTime.Seconds(5) }
}
AtreidesInfantryTypes = { "light_inf" }
AtreidesVehicleTypes ... | gpl-3.0 |
dtmuller/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- 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 ma... | apache-2.0 |
LuttyYang/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua | 26 | 1475 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local peeraddr, ip6addr
local tunlink, defaultroute, metric, ttl, mtu
peeraddr = section:taboption("general", Value, "peerad... | apache-2.0 |
HASSAN-IRQ/tele-bot | plugins/en-tele-bot4.lua | 1 | 1079 | --[[
help dev : اوامر المطور
--]]
do
local function run(msg, matches)
if is_sudo(msg) and matches[1]== "help dev" then
return [[
✔️All orders to operate without setting / او !
ا🔸➖🔹➖🔸➖🔹➖🔸
❣ sosuper : Upgrade Super Group
❣ add : To activate Group
❣ rem : To disable Group
❣ setowner : Raisi... | gpl-2.0 |
MeltWS/ProShinePathfinder | Pathfinder/Maps/LinkMap.lua | 1 | 1152 | local cpath = select(1, ...) or "" -- callee path
local function nTimes(n, f, x) for i = 0, n - 1 do x = f(x) end return x end -- calls n times f(x)
local function rmlast(str) return str:sub(1, -2):match(".+[%./]") or "" end -- removes last dir / file from the callee path
local cppdpath = nTimes(3, rmlast, cpath) -- ca... | mit |
sjznxd/lc-20121230 | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 80 | 3097 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
zhongyiqun/skynet-master-note | test/testbson.lua | 29 | 1541 | local bson = require "bson"
local sub = bson.encode_order( "hello", 1, "world", 2 )
do
-- check decode encode_order
local d = bson.decode(sub)
assert(d.hello == 1 )
assert(d.world == 2 )
end
local function tbl_next(...)
print("--- next.a", ...)
local k, v = next(...)
print("--- next.b", k, v)
return k, v
end... | mit |
ibr773/TPBOT | plugins/redis.lua | 2 | 1720 | --[[
_____ ____ ____ ___ _____
|_ _| _ \ | __ ) / _ \_ _|
| | | |_) | | _ \| | | || |
| | | __/ | |_) | |_| || |
|_| |_| |____/ \___/ |_|
KASPER TP (BY @kasper_dev)
_ __ _ ____ ____ _____ ____ _____ ____
| |/ / / \ / ___|| _ \| ... | gpl-2.0 |
abolfazlabbasifx/fullbot | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | agpl-3.0 |
jvesely/gegl | bin/lua/init.lua | 1 | 9380 |
ffi = require('ffi')
lgi = require 'lgi'
os = require 'os'
GLib = lgi.GLib
GObject = lgi.GObject
Mrg = require('mrg')
Gegl = lgi.Gegl
ffi.cdef[[
typedef void* GList;
typedef void* GeglNode;
typedef void* GeglBuffer;
typedef void* GeglProcessor;
typedef void* GThread;
typedef void* GHashTable;
enum _... | lgpl-3.0 |
sjznxd/lc-20121230 | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 80 | 3636 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
UpToskybot/UptoSky | plugins/antilink.lua | 1 | 1488 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_link'] then
lock_li... | gpl-2.0 |
Sewerbird/Helios2400 | lib/debugGraph.lua | 1 | 4124 | --[[
UNLICENSE
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
I... | mit |
Walkman100/telegram-bot | plugins/help.lua | 1 | 1649 | 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 |
PenguinToast/PenguinGUI | lib/inspect.lua | 1 | 9240 | inspect ={
_VERSION = 'inspect.lua 3.0.0',
_URL = 'http://github.com/kikito/inspect.lua',
_DESCRIPTION = 'human-readable representations of tables',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy... | apache-2.0 |
lost-RD/FoundationPack | modules/babel.lua | 1 | 9761 | --[[
Babel, a simple internationalisation tool for LÖVE 2D and standalone
Lua applications (using lfs).
Copyright (C) 2013 MARTIN Damien
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 ... | mit |
zhongyiqun/skynet-master-note | lualib/skynet/dns.lua | 6 | 8977 | --[[
lua dns resolver library
See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail
-- resource record type:
-- TYPE value and meaning
-- A 1 a host address
-- NS 2 an authoritative name server
-- MD 3 a mail destination (Obsolete - use MX... | mit |
alexeyknyshev/android_cash_points | server/bin/redis_scripts/clusterdata.lua | 1 | 9626 | local reqPayload = ARGV[1]
local dataExpireTime = tonumber(ARGV[2]) or 300
if not reqPayload then
redis.error_reply('no such json payload')
end
local req = cjson.decode(reqPayload)
if not req.longitude then
return redis.error_reply('no such required argument: longitude')
end
if not req.latitude then
ret... | mit |
paladiyom/uzzbot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
MINIONBOTS/ESOMinion | ESOMinion/globals.lua | 1 | 7134 | ml_globals = {}
ml_globals.level1Timer = 0
ml_globals.level2Timer = 0
ml_globals.level3Timer = 0
-- our version of EVENT_MANAGER:RegisterForEvent("Globals_Common", EVENT_GLOBAL_MOUSE_DOWN, OnGlobalMouseDown)
function ml_globals.RegisterLuaEventCallbackHandlers()
d("Registering Events..")
--mycode = [[
--function t... | gpl-2.0 |
abolfazlabbasifx/fullbot | plugins/admin.lua | 27 | 10309 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | agpl-3.0 |
akaStiX/premake-core | src/actions/vstudio/vs2010_vcxproj_filters.lua | 13 | 3410 | --
-- vs2010_vcxproj_filters.lua
-- Generate a Visual Studio 201x C/C++ filters file.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local project = p.project
local tree = p.tree
local m = p.vstudio.vc2010
--
-- Generate a Visual Studio 201x C++ project, with support for t... | bsd-3-clause |
telemanagerplus/TeleManagerPlus | plugins/id.lua | 12 | 7187 |
do
local function scan_name(extra, success, result)
local founds = {}
for k,member in pairs(result.members) do
if extra.name then
gp_member = extra.name
fields = {'first_name', 'last_name', 'print_name'}
elseif extra.user then
gp_member = string.gsub(extra.user, '@', '')
... | gpl-2.0 |
alirezaSO/cpumb | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
mortezamosavy999/index3 | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
adminmagma/test | plugins/qr.lua | 14 | 1737 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
nuko8/awesome | tests/test-spawn-snid.lua | 8 | 1615 | --- Tests for spawn's startup notifications.
local runner = require("_runner")
local test_client = require("_client")
local manage_called, c_snid
client.connect_signal("manage", function(c)
manage_called = true
c_snid = c.startup_id
assert(c.machine == awesome.hostname,
tostring(c.machine) .. ... | gpl-2.0 |
kepler155c/opus | sys/modules/opus/entry.lua | 1 | 9422 | local class = require('opus.class')
local os = _G.os
-- convert value to a string (supporting nils or numbers in value)
local function _val(a)
return a and tostring(a) or ''
end
local Entry = class()
function Entry:init(args)
self.pos = 0
self.scroll = 0
self.value = args.value
self.width = args.width or 256
... | mit |
Syjgin/disconnect | Bin/Data/LuaScripts/01_HelloWorld.lua | 1 | 1798 | -- This first example, maintaining tradition, prints a "Hello World" message.
-- Furthermore it shows:
-- - Using the Sample utility functions as a base for the application
-- - Adding a Text element to the graphical user interface
-- - Subscribing to and handling of update events
require "LuaScripts... | mit |
mahdidoraj/secret | plugins/Time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
LuttyYang/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
randy1/conky | extras/convert.lua | 2 | 5274 | #! /usr/bin/lua
local usage = [[
Usage: convert.lua old_conkyrc [new_conkyrc]
Tries to convert conkyrc from the old v1.x format to the new, lua-based format.
Keep in mind that there is no guarantee that the output will work correctly
with conky, or that it will be able to convert every conkyrc. However, it
should pr... | gpl-3.0 |
ahmedtaleb93/ahmed.t.h | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
dev-Maximus/ProtectionTeam | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
sose12/AOS_SHARO56 | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
LuttyYang/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua | 17 | 5674 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require "luci.sys"
local zones = require "luci.sys.zoneinfo"
local fs = require "nixio.fs"
local conf = require "luci.config"
local m, s, o
... | apache-2.0 |
Germanunkol/Affair | main.lua | 4 | 8124 |
network = require( "network" )
-- COMMANDs are used to identify messages.
-- Custom commands MUST be numbers between (including) 128 and 255.
-- Make sure these are the same on client and server.
-- Ideally, put them into a seperate file and include it from both client
-- and server. Here, I leave it in the main file... | mit |
gdevillele/dockercraft | world/Plugins/APIDump/Classes/WebAdmin.lua | 28 | 2144 | return
{
cWebAdmin =
{
Desc = "",
Functions =
{
GetHTMLEscapedString = { Params = "string", Return = "string", Notes = "(STATIC) Gets the HTML-escaped representation of a requested string. This is useful for user input and game data that is not guaranteed to be escaped already." },
},
}, -- cWebAdmin
... | apache-2.0 |
huncrys/mtasa-blue | Client/core/premake5.lua | 1 | 1278 | project "Client Core"
language "C++"
kind "SharedLib"
targetname "core"
targetdir(buildpath("mta"))
filter "system:windows"
includedirs { "../../vendor/sparsehash/src/windows" }
linkoptions { "/SAFESEH:NO" }
buildoptions { "-Zm130" }
filter {}
includedirs {
"../../Shared/sdk",
".",
"../sdk",
... | gpl-3.0 |
nimaghorbani/dozdi10 | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
cal101/nodemcu-firmware | lua_examples/email/send_email_smtp.lua | 82 | 4640 | ---
-- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU
-- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access.
-- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access.
-- To o... | mit |
kepler155c/opus | sys/apps/network/telnet.lua | 1 | 2311 | local Event = require('opus.event')
local Socket = require('opus.socket')
local Util = require('opus.util')
local kernel = _G.kernel
local shell = _ENV.shell
local term = _G.term
local window = _G.window
local function telnetHost(socket, mode)
local methods = { 'clear', 'clearLine', 'setCursorPos', 'write', 'b... | mit |
viszkoktamas/OpenRA | mods/cnc/maps/gdi06/gdi06.lua | 12 | 6352 | IslandSamSites = { SAM01, SAM02 }
NodBase = { PowerPlant1, PowerPlant2, PowerPlant3, PowerPlant4, PowerPlant5, Refinery, HandOfNod, Silo1, Silo2, Silo3, Silo4, ConYard, CommCenter }
FlameSquad = { FlameGuy1, FlameGuy2, FlameGuy3 }
FlameSquadRoute = { waypoint4.Location, waypoint12.Location, waypoint4.Location, waypoin... | gpl-3.0 |
LazyZhu/openwrt-luci-trunk-mod | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua | 84 | 2006 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
mca = s:tabop... | apache-2.0 |
SmoothKat/external_skia | tools/lua/skia.lua | 207 | 1863 | -- Experimental helpers for skia --
function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
----------------... | bsd-3-clause |
lost-RD/FoundationPack | modules/loader.lua | 1 | 6516 |
require "love.filesystem"
require "love.image"
require "love.audio"
require "love.sound"
local loader = {
_VERSION = 'love-loader v2.0.2',
_DESCRIPTION = 'Threaded resource loading for LÖVE',
_URL = 'https://github.com/kikito/love-loader',
_THREAD = 'http://love2d.org/forums/viewtopic.php?f=... | mit |
SayedSadat/Tab | lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
mcaleavya/bcc | src/lua/bcc/vendor/posix.lua | 8 | 2147 | --[[
Copyright 2016 GitHub, Inc
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, software
distr... | apache-2.0 |
gdevillele/dockercraft | world/Plugins/APIDump/Hooks/OnKilled.lua | 38 | 1204 | return
{
HOOK_KILLED =
{
CalledWhen = "A player or a mob died.",
DefaultFnName = "OnKilled",
Desc = [[
This hook is called whenever player or a mob dies. It can be used to change the death message.
]],
Params =
{
{ Name = "Victim", Type = "{{cEntity}}", Notes = "The player or mob that died" },
... | apache-2.0 |
ForgiveAndromedalol/btw | init.lua | 1 | 23389 | --- BTW (BETTER THAN WOOL) MOD. CONTAINS THE NODES, THE RECIPES, AND CRAFTINGS.
--- MADE BY: ForgiveAndromedalol
minetest.register_node("btw:red", {
description = "RED BLOCK",
tiles = {"red.png"},
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
light_source ... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 13 | 6103 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tosuka-Porika
-- Starts Quests: Early Bird Catches the Bookworm, Chasing Tales
-- Involved in Quests: Hat in Hand, Past Reflections, Blessed Radiance
-- Involved in Missions: Windurst 2-1, Windurst 7-1, Windurst 8-2, CoP 3-3
-- @pos -26 -... | gpl-3.0 |
MakanEXE/Cyclone | bot/SaTaN_bot.lua | 1 | 10195 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
askore/LootSecretary | src/lua/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua | 3 | 11204 | --[[ $Id: AceGUIWidget-DropDown-Items.lua 1137 2016-05-15 10:57:36Z nevcairiel $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
local IsLegion = select(4, GetBuildInfo()) >= 70000
-- Lua APIs
local select, assert = select, assert
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame = CreateFrame
local... | apache-2.0 |
dwmw2/luci | applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 56 | 3828 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | apache-2.0 |
vlapsley/outback | mods/mesecons/mesecons_doors/init.lua | 5 | 3586 | -- Modified, from minetest_game/mods/doors/init.lua
local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
pos.y = pos.y + dir
if not minetest.get_node(pos).name == check_name then
return
end
local p2 = minetest.get_node(pos).param2
p2 = params[p2 + 1]
minetest.swap_node(pos, {name = ... | lgpl-2.1 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/ini.lua | 2 | 1353 | -- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt.
-- Ini LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('ini')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, le... | gpl-3.0 |
Bobbyjoness/To-Do-App-Client | libs/hump/signal.lua | 27 | 2769 | --[[
Copyright (c) 2012-2013 Matthias Richter
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, modify, merge, publish, dis... | mit |
dejayc/CooL | Examples/BasicApp/config-framework.lua | 1 | 1551 | --[[ CooL( Corona Object-Oriented Lua )
https://github.com/dejayc/CooL
Copyright 2011 Dejay Clayton
All use of this file must comply with the Apache License,
Version 2.0, under which this file is licensed:
http://www.apache.org/licenses/LICENSE-2.0 --]]
return {
display =
{
s... | apache-2.0 |
rpetit3/darkstar | scripts/globals/mobskills/Vorpal_Wheel.lua | 37 | 1063 | ---------------------------------------------
-- Vorpal Wheel
--
-- Description: Throws a slicing wheel at a single target.
-- Type: Physical
-- Utsusemi/Blink absorb: No
-- Range: Unknown
-- Notes: Only used by Gulool Ja Ja, and will use it as a counterattack to any spells cast on him. Damage increases as his he... | gpl-3.0 |
tommo/gii | lib/lua/mock_edit/EditorCanvas/CanvasItem.lua | 1 | 6177 | module 'mock_edit'
CLASS: CanvasItemManager ( EditorEntity )
:MODEL{}
function CanvasItemManager:__init()
self.items = {}
self.activeItem = false
self.hoverItem = false
self.focusItem = false
self.activeMouseButton = false
self.factorZoom = 1
end
function CanvasItemManager:onLoad()
local view = self:getVi... | mit |
rpetit3/darkstar | scripts/globals/items/soft-boiled_egg.lua | 18 | 1174 | -----------------------------------------
-- ID: 4532
-- Item: soft-boiled_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/more_chests/cobble.lua | 8 | 3467 | local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
minetest.register_node("more_chests:cobble", {
description = "Cobble Chest",
tiles = {"default_cobble.png", "default_cobble.png", "default_cobble.png",
"default... | unlicense |
rpetit3/darkstar | scripts/zones/Crawlers_Nest/npcs/qm12.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm12 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 99.326 -0.126 -188.869 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
jgm/lunamark-standalone | src/lunamark/entities.lua | 2 | 6199 | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- Functions for dealing with HTML/XML entities.
local M = {}
local unicode=require("unicode")
local utf8=unicode.utf8
local character_entities = {
["quot"] = 0x0022,
["amp"] = 0x0026,
["apos"] =... | mit |
yaser1382/BDReborn | plugins/BotOn_Off.lua | 7 | 1837 | --Start By @Tele_Sudo
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if not _config.disabled_cha... | gpl-3.0 |
tenvick/hugula | Client/tools/luaTools/win/210/lua/jit/dis_arm.lua | 78 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
rpetit3/darkstar | scripts/zones/Dynamis-Jeuno/npcs/qm1.lua | 13 | 1216 | -----------------------------------
-- Area: Dynamis Jeuno
-- NPC: ??? (Spawn when mega is defeated)
-----------------------------------
package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Dynamis-Jeuno/TextIDs");... | gpl-3.0 |
vlapsley/outback | mods/mesecons/mesecons_gates/init.lua | 1 | 4566 | local nodebox = {
type = "fixed",
fixed = {{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }},
}
local function gate_rotate_rules(node, rules)
for rotations = 0, node.param2 - 1 do
rules = mesecon.rotate_rules_left(rules)
end
return rules
end
local function gate_get_output_rules(node)
return gate_rotate_rules(node, {... | lgpl-2.1 |
dmccuskey/dmc-objects | dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
dmccuskey/dmc-objects | examples/DMC-Arch-ufo2/dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
dmccuskey/dmc-objects | examples/DMC-MultiShapes/dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
dmccuskey/dmc-objects | examples/Corona-Graphics-Fishies/dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
ManStache/PokeBotBad | BizHawk-1.11.6/Lua/socket/ftp.lua | 144 | 9120 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $
-----------------------------------------------------------------------------
-------------------... | mit |
sys4-fr/server-minetestforfun | mods/columnia/init.lua | 8 | 20751 | -- Minetest 0.4 mod: columnia by Glunggi(former Stairs Copyright by(C) 2011-2012 Kahrl <kahrl@gmx.net> Copyright (C) 2011-2012 celeron55, Perttu Ahola)
-- See README.txt for licensing and other information.
columnia = {}
-- The Blueprint
minetest.register_craftitem("columnia:blueprint", {
description = "Column Bluep... | unlicense |
rpetit3/darkstar | scripts/zones/Yhoator_Jungle/npcs/qm2.lua | 13 | 1933 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: ??? Used for Norg quest "Stop Your Whining"
-- @pos -94.073 -0.999 22.295 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
r... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Rabao/npcs/Maryoh_Comyujah.lua | 13 | 2086 | -----------------------------------
-- Area: Rabao
-- NPC: Maryoh Comyujah
-- Involved in Mission: The Mithra and the Crystal (Zilart 12)
-- @pos 0 8 73 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/roast_turkey.lua | 18 | 1176 | -----------------------------------------
-- ID: 5620
-- Item: roast_turkey
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 4
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.