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 |
|---|---|---|---|---|---|
tarantool/luarocks | src/luarocks/upload/api.lua | 1 | 8061 |
local api = {}
local cfg = require("luarocks.core.cfg")
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
local persist = require("luarocks.persist")
local multipart = require("luarocks.upload.multipart")
local Api = {}
local function upload_config_file()
... | mit |
p00ria/Grandex | plugins/Auto_Leave.lua | 2 | 1078 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
jsj2008/ValyriaTear | dat/maps/layna_village/layna_village_south_entrance_right_house_script.lua | 4 | 4104 | -- Set the namespace according to the map name.
local ns = {};
setmetatable(ns, {__index = _G});
layna_village_south_entrance_right_house_script = ns;
setfenv(1, ns);
-- The map name, subname and location image
map_name = "Mountain Village of Layna"
map_image_filename = "img/menus/locations/mountain_village.png"
map_s... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/NplBrowser/NplBrowserPlugin.lua | 1 | 20693 | --[[
Title: NplBrowserPlugin
Author(s): leio, big
Date: 2019.3.24
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/NplBrowser/NplBrowserPlugin.lua");
local NplBrowserPlugin = commonlib.gettable("NplBrowser.NplBrowserPlugin");
local id = "nplbr... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Configs/StartBoxes/Adansonia v4.lua | 8 | 4382 | local boxes = {
[0] = {
boxes = {
{
{3669, 5960},
{2238, 5424},
{2257, 5473},
{2259, 5560},
{2261, 5628},
{2254, 5660},
{2182, 5796},
{2157, 5838},
{2124, 5860},
{2056, 5897},
{2006, 5945},
{1973, 5996},
{1938, 6072},
{1917, 6158},
{1916, 6221},
{194... | gpl-2.0 |
adde88/Nerdpack-Zylla | rotations/warlock/affliction.lua | 1 | 12863 | local _, Zylla = ...
local unpack = _G.unpack
local NeP = _G.NeP
local Mythic_Plus = _G.Zylla.Mythic_Plus
local GUI = {
unpack(Zylla.Logo_GUI),
-- Header
{type = 'header', size = 16, text = 'Keybinds', align = 'center'},
{type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..'Pause|... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Cloister_of_Storms/Zone.lua | 1 | 1135 | -----------------------------------
--
-- Zone: Cloister_of_Storms
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
require("scripts/zones/Cloister_of_Storms/TextIDs");
-----------------------------------
-- onI... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/alert_keys/host_alert_keys.lua | 1 | 1087 | --
-- (C) 2020-21 - ntop.org
--
-- ##############################################
local host_alert_keys = {
host_alert_normal = 0,
host_alert_smtp_server_contacts = 1,
host_alert_dns_server_contacts = 2,
host_alert_ntp_server_contacts = 3,
host_alert_flow_floo... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Assets/CreateAssetBagPage.lua | 1 | 7759 | --[[
Title: CreateAssetBagPage.html code-behind script
Author(s): LiXizhi
Date: 2010/2/2
Desc: This page is only used by Aries Developers to create the bag xml file.
A bag xml file is a descriptive file for all objects that a user can create in a given bag.
For example, see "temp/mybag/helloassets/grass.bag.xml"
use ... | gpl-2.0 |
hfjgjfg/eli25 | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
rigeirani/sss | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
andr3wmac/Torque6 | build/scripts/Torque6.lua | 4 | 5951 | function Torque6()
project "Torque6"
targetname "Torque6"
language "C++"
kind "SharedLib"
targetdir (BUILD_DIR)
includedirs {
path.join(LIB_DIR, "assimp/include"),
path.join(LIB_DIR, "bgfx/include"),
path.join(LIB_DIR, "bullet"),
... | mit |
zhevron/Tome | Tome.UI.Notes.lua | 1 | 4239 | --
-- Tome.UI.Notes.lua
-- Maintained by Lyrai @ Faeblight NA (Zhevron @ Github)
--
-- This file is part of Tome.
--
-- Tome 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, o... | gpl-3.0 |
kellabyte/snabbswitch | src/core/lib.lua | 7 | 21130 | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local getopt = require("lib.lua.alt_getopt")
local syscall = require("syscall")
require("core.clib_h")
-- Returns true if x and y are structurally similar (isomorphic).
function equal (x, y)
if type(x) ~= type(y) then return false end
if type... | apache-2.0 |
madpilot78/ntopng | scripts/lua/rest/v2/reset/pool/config.lua | 1 | 1246 | --
-- (C) 2019-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path
require "lua_utils"
local snmp_import_export = require "snmp_import_export"
local plugins_... | gpl-3.0 |
Aminrezaa/megareborn | bot/utils.lua | 14 | 16238 | --Begin Utils.lua By #BeyondTeam :)
function serialize_to_file(data, file, uglify)
file = io.open(file, 'w+')
local serialized
if not uglify then
serialized = serpent.block(data, {
comment = false,
name = '_'
})
else
serialized = serpent.dump(data)
end
file:write(serialized)
... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Dapraugeant.lua | 1 | 1441 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Dapraugeant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/que... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/light_cone.lua | 2 | 1797 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
devFRIND/M.F.I_BOT | plugins/ar-plugins.lua | 7 | 6398 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
Grocel/wire-extras | lua/wire/gates/freefall_string.lua | 4 | 5585 | AddCSLuaFile( "wire/gates/freefall_string.lua" )
function string.instr(stringIn, toFind, start)
local i = 1
local start = start or 1
if (stringIn == "" || type(stringIn) != "string") then return -2 end
if (toFind == "" || type(toFind) != "string") then return -2 end
local stringLength = string.len(st... | apache-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/town-iron-council/traps.lua | 3 | 2573 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
dwindow/dwindow | oem-3dvstar/dwindow/dwindow_UI/Language/zhCN.lua | 1 | 15902 | local L_zhCN =
{
LCID = {"简体中文", 2052, 3076},
["Source Aspect"] = "来源宽高比",
["Don't ask again"] = "不再提示",
["(Fonts Loading)"] = "(字体正在载入中)",
["Gerneral 120Hz Glasses"] = "普通120Hz眼镜",
["Move Left (A)"] = "向左移动画面 (A)",
["Video"] = "视频",
["Forced Deinterlace"] = "强制去除隔行扫描",
["Saturation"] = "饱和度",
["Preview"... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/thirdparty/jit/bcsave.lua | 20 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | gpl-3.0 |
pakoito/ToME---t-engine4 | src/luabitop/bittest.lua | 17 | 2353 | -- Test cases for bit operations library. Public domain.
local bit = require"bit"
local vb = {
0, 1, -1, 2, -2, 0x12345678, 0x87654321,
0x33333333, 0x77777777, 0x55aa55aa, 0xaa55aa55,
0x7fffffff, 0x80000000, 0xffffffff
}
local function cksum(name, s, r)
local z = 0
for i=1,#s do z = (z + string.byte(s, i)*... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/ui/Waiter.lua | 2 | 4030 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
taneja88/octalcanvas | vendor/plugins/delayed_job/lib/delayed/backend/redis/bulk_update.lua | 28 | 1444 | local action, id_string, flavor, query, now = unpack(ARGV)
local ids = {}
if string.len(flavor) > 0 then
if flavor == 'current' then
ids = redis.call('ZRANGE', Keys.queue(query), 0, -1)
elseif flavor == 'future' then
ids = redis.call('ZRANGE', Keys.future_queue(query), 0, -1)
elseif flavor == 'strand' t... | agpl-3.0 |
RyMarq/Zero-K | gamedata/modularcomms/weapons/riotcannon.lua | 1 | 1164 | local name = "commweapon_riotcannon"
local weaponDef = {
name = [[Riot Cannon]],
areaOfEffect = 144,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 1,
craterMult = 2,
customParams = ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Phaviane.lua | 5 | 1025 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Phaviane
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos: -4.000 0.000 -28.000
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Memory/MemoryActor.lua | 1 | 6384 | --[[
Title: Memory Actor
Author(s): LiXizhi
Date: 2017/6/2
Desc: Actor is the base class for a tightly related group of time-series-based concept(entity) in memory.
A memory clip may contain one or more memory actors. Actor is like an abstract concept in the brain that never separates.
When an actor is activated, it w... | gpl-2.0 |
eXhausted/Ovale | conditions.lua | 1 | 208647 | --[[--------------------------------------------------------------------
Copyright (C) 2009, 2010, 2011, 2012, 2013 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014, 2015 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]----------------------------------------------------------------... | mit |
llX8Xll/DEVKEEPER1 | VIPTEAM/VIPTEAM.lua | 1 | 7842 | 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("./VIPTEAM/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/mcml/pe_aries_combatpet.lua | 1 | 19874 | --[[
Title:
Author(s): Leio
Date: 2011/07/19
Desc:
---++ aries:combatpet attributes
| gsid | pet gsid |
| show_icon | show the pet icon, grey icon is shown if we do not own the pet |
| show_if_not_owned | default to false. if true, it will hide the entire mcml node if the current user already owned the pet. plus it ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Periqia/Zone.lua | 1 | 1102 | -----------------------------------
--
-- Zone: Periqia
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Periqia/TextIDs"] = nil;
require("scripts/zones/Periqia/TextIDs");
-----------------------------------
-- onInitialize
----------------------... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/texts/tutorial/stats-calc/calc4.lua | 3 | 1061 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/thirdparty/jit/bc.lua | 20 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
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
$Id$
]]--
local... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/feed_power.lua | 3 | 1798 | -- ToME - Tales of Middle-Earth
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any la... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/breath_fire.lua | 6 | 1864 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/prefs_reload_utils.lua | 1 | 2679 | --
-- (C) 2014-21 - ntop.org
--
local prefs_reload_utils = {}
-- ###########################################
-- Key used to determine if it is time to reload in-memory preferences.
-- This key is set by Redis.cpp, when a preference is changed.
-- NOTE: keep it in sync with ntop_defines.h PREFS_CHANGED
local prefs_ch... | gpl-3.0 |
vince06fr/prosody-modules | mod_roster_command/mod_roster_command.lua | 31 | 5484 | -----------------------------------------------------------
-- mod_roster_command: Manage rosters through prosodyctl
-- version 0.02
-----------------------------------------------------------
-- Copyright (C) 2011 Matthew Wild
-- Copyright (C) 2011 Adam Nielsen
--
-- This project is MIT/X11 licensed. Please see the
--... | mit |
fegimanam/best | bot/utils.lua | 646 | 23489 | 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 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/resistance_torso_pistol_shot_3.meta.lua | 2 | 2766 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
yanarsin/shivayi | bot/utils.lua | 646 | 23489 | 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 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_San_dOria/npcs/Patolle.lua | 1 | 1813 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Patolle
-- Only sells when San d'Oria controlls Kuzotz Region
-- Working 100%
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/globals/quests"] = nil;
require(... | gpl-3.0 |
xunto/luafudge | src/luafudge.lua | 3 | 3733 | local fudge = {}
local levels = {}
levels.russian = {
"хуже некуда", "совсем-совсем-совсем ужасно" , "совсем-совсем ужасно",
"совсем ужасно", "ужасно", "плохо", "посредственно",
"нормально", "хорошо", "прекрасно", "превосходно", "легендарно",
"легендарно+", "легендарно++", "легендарно+++", "как Аллах"
... | gpl-3.0 |
lvml/mpv-plugin-excerpt | excerpt.lua | 1 | 14380 | -- This script allows to create excerpts of a video that is played,
-- press "i" to mark the begin of the range to excerpt,
-- press "o" to mark the end of the range to excerpt,
-- press "I" to continue playback at the "begin" location,
-- press "O" to jump to the "end" location and pause there,
-- press "x" to actua... | gpl-2.0 |
Lleafll/sws-lleaf | Test.lua | 1 | 25279 | local SWS_ADDON_NAME, StatWeightScore = ...;
local TestSuite = StatWeightScore:NewModule(SWS_ADDON_NAME.."Test");
local ScoreModule;
local ScanningTooltipModule;
local StatsModule;
local Utils;
local L;
function TestSuite:OnInitialize()
ScoreModule = StatWeightScore:GetModule(SWS_ADDON_NAME.."Score");
Scannin... | mit |
madpilot78/ntopng | scripts/lua/rest/v1/get/system/alert/list.lua | 2 | 1656 | --
-- (C) 2021-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path
local format_utils = require "format_utils"
local alert_utils = require "alert_utils"
... | gpl-3.0 |
derkling/dotfiles | awesome/lain/layout/uselesspiral.lua | 6 | 3560 |
--[[
Licensed under GNU General Public License v2
* (c) 2014, projektile
* (c) 2013, Luke Bonham
* (c) 2009, Uli Schlachter
* (c) 2008, Julien Danjolu
... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Oggbi.lua | 1 | 3152 | -----------------------------------
-- Area: Port Bastok
-- NPC: Oggbi
-- Starts and Finishes: Ghosts of the Past, The First Meeting
-- @zone 236
-- @pos -159 -7 5
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
vince06fr/prosody-modules | mod_mam/mamprefsxml.lib.lua | 36 | 1467 | -- XEP-0313: Message Archive Management for Prosody
-- Copyright (C) 2011-2013 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local st = require"util.stanza";
local xmlns_mam = "urn:xmpp:mam:0";
local global_default_policy = module:get_option("default_archive_policy", false);
local default_attrs = {
always = true... | mit |
ahemid/openvswitch | net/luci-app-sqm/files/sqm-cbi.lua | 4 | 8072 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Steven Barth <steven@midlink.org>
Copyright 2014 Dave Taht <dave.taht@bufferbloat.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
http:... | gpl-2.0 |
dodo/uzful | util.lua | 1 | 12551 | --------------------------------------------------------------------------------
-- @author dodo
-- @copyright 2011 https://github.com/dodo
-- @release v3.4-503-g4972a28
--------------------------------------------------------------------------------
local util = { module = {}, string = {} }
local io = require("io")
... | gpl-3.0 |
salehvw0011/stfbot | plugins/ActiveUser.lua | 11 | 11812 | local function checktodaygr(cb_extra, success, result)
local hash = ''
local thash=''
for k,user in pairs(result.members) do
thash = 'today:'..user.peer_id
if redis:get(thash) then
if redis:get(thash) < os.date("%x",os.time() + 16200) then
hash = 'utmsgst:'..user.peer_id..':'..cb_extra
redis:set(hash,0)
... | gpl-2.0 |
TerraME/publish | tests/layout/basic/Application.lua | 1 | 12395 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2016 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | gpl-3.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua | 78 | 7996 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
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
$Id$
]]--
lo... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Movie/VideoSharingUpload.lua | 1 | 7590 | --[[
Title: video sharing upload
Author(s):
Date:
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Movie/VideoSharingUpload.lua");
local VideoSharingUpload = commonlib.gettable("MyCompany.Aries.Game.Movie.VideoSharingUpload");
VideoSharingUpload.... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/rooms/money_vault.lua | 3 | 1929 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
fmassa/nn | FlattenTable.lua | 18 | 3118 | local FlattenTable, parent = torch.class('nn.FlattenTable', 'nn.Module')
function FlattenTable:__init()
parent.__init(self)
self.output = {}
self.input_map = {}
self.gradInput = {}
end
-- Recursive function to flatten a table (output is a table)
local function flatten(output, input)
local input_map -- has... | bsd-3-clause |
lyzardiar/seal2d | luasrc/thirdparty/socket/ltn12.lua | 33 | 8589 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
------------------------------------------------------------------------... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/achievements/player.lua | 3 | 2967 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/whips.lua | 3 | 1495 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/blocks/BlockSlab.lua | 1 | 2298 | --[[
Title: Slab Based Block
Author(s): LiXizhi
Date: 2013/1/23
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/blocks/BlockSlab.lua");
local block = commonlib.gettable("MyCompany.Aries.Game.blocks.BlockSlab")
--------------------------------... | gpl-2.0 |
salehvw0011/stfbot | plugins/All.lua | 14 | 4453 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
madpilot78/ntopng | scripts/callbacks/system/startup.lua | 1 | 9419 | --
-- (C) 2013-21 - ntop.org
--
--
-- This script is executed once at startup similar to /etc/rc.local on Unix
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
-- Important: load this before any other alert related module
local plugin... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/shertul-fortress/npcs.lua | 3 | 6674 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
RyMarq/Zero-K | ModelMaterials/255_features_fallback.lua | 8 | 1229 | local matTemplate = VFS.Include("ModelMaterials/Templates/defaultMaterialTemplate.lua")
local materials = {
featuresFallback = Spring.Utilities.MergeWithDefault(matTemplate, {
texUnits = {
[0] = "%%FEATUREDEFID:0",
[1] = "%%FEATUREDEFID:1",
},
feature = true,
deferredOptions = {
materialIndex = 255,... | gpl-2.0 |
TerminalShell/zombiesurvival | gamemode/maps/zm_hauntedmanor_v1.lua | 1 | 2161 | hook.Add("InitPostEntityMap", "Adding", function()
local SRL={Vector(-254.19750976563,-685.88067626953,-22.953275680542),Vector(-108.41053771973,-690.50183105469,-23.968748092651),Vector(-438.01739501953,-704.39770507813,-23.968748092651),Vector(-437.08544921875,-582.66363525391,-23.968748092651),Vector(-435.974456... | gpl-3.0 |
adde88/Nerdpack-Zylla | rotations/monk/brewmaster.lua | 1 | 11320 | local _, Zylla = ...
local unpack = _G.unpack
local NeP = _G.NeP
local Mythic_Plus = _G.Zylla.Mythic_Plus
local GUI = {
unpack(Zylla.Logo_GUI),
-- Header
{type = 'header', size = 16, text = 'Keybinds', align = 'center'},
{type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..... | mit |
RyMarq/Zero-K | units/cloakaa.lua | 1 | 3788 | return { cloakaa = {
unitname = [[cloakaa]],
name = [[Gremlin]],
description = [[Cloaked Anti-Air Bot]],
acceleration = 1.5,
brakeRate = 1.92,
buildCostMetal = 150,
buildPic = [[cloakaa.png]],
canGuard ... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/NetClientHandler.lua | 1 | 27196 | --[[
Title: NetClientHandler
Author(s): LiXizhi
Date: 2014/6/25
Desc: used on client side, represent a connection to server.
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Network/NetClientHandler.lua");
local NetClientHandler = commonlib.gettable("MyC... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Waters/npcs/Otete.lua | 1 | 1360 | -----------------------------------
-- Area: Windurst_Waters
-- NPC: Otete
-- Only sells when Windurst controlls Li'Telor Region
-- Working 100%
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = n... | gpl-3.0 |
mysql/mysql-proxy | lib/active-transactions.lua | 6 | 2468 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bibiki_Bay/npcs/Tswe_Panipahr.lua | 1 | 1080 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Tswe Panipahr
-- Type: Manaclipper
-- @zone: 4
-- @pos: 484.604 -4.035 729.671
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
---------------... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/gifts/antimagic.lua | 3 | 6493 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
RyMarq/Zero-K | LuaUI/Widgets/api_preselection.lua | 2 | 6931 | function widget:GetInfo()
return {
name = "Pre-Selection Handler",
desc = "Utility Functions for handling units in selection box and under selection cursor",
author = "Shadowfury333",
date = "Jan 6th, 2016",
license = "GPLv2",
version = "1",
layer = 1000,
enabled = true, --... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/dish_of_spaghetti_peperoncino.lua | 1 | 1334 | -----------------------------------------
-- ID: 5188
-- Item: dish_of_spaghetti_peperoncino
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 30
-- Health Cap 70
-- Vitality 2
-- Store TP 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/get_countries_data.lua | 1 | 2037 | --
-- (C) 2013-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local json = require("dkjson")
require("country_utils")
sendHTTPContentTypeHeader('text/html')
-- Table parameters
local currentPage = _GET["currentPage"]
local ... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 86 | 1449 | --[[
Luci statistics - df plugin diagram definition
(c) 2008 Freifunk Leipzig / 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
http://www.apache.... | gpl-2.0 |
gleachkr/luakit | doc/luadoc/widget.label.lua | 4 | 1948 | --- Label widget
--
-- DOCMACRO(available:ui)
--
-- The label widget shows a single line of formatted text. It is not editable by the
-- user.
--
-- @class widget:label
-- @prefix label
-- @author Mason Larobina
-- @copyright 2010 Mason Larobina <mason.larobina@gmail.com>
--- @property padding
-- The widget padding. T... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Ship_bound_for_Selbina/npcs/Maera.lua | 3 | 1239 | -----------------------------------
-- Area: Ship bound for Selbina
-- NPC: Maera
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
require("scripts/zones/Ship_bound_for_Selbina/TextIDs");
-----... | gpl-3.0 |
Grocel/wire-extras | lua/entities/gmod_wire_dupeport/init.lua | 4 | 13400 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Dupe Teleporter"
ENT.OverlayDelay = 0
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetUseType( SIMPLE_USE )
... | apache-2.0 |
dodo/uzful | menu/switch.lua | 1 | 4341 | --------------------------------------------------------------------------------
-- @author dodo
-- @copyright 2015 https://github.com/dodo
-- @release v3.4-503-g4972a28
--------------------------------------------------------------------------------
local naughty = require("naughty")
local switch = {}
local capi = ... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/gravity_spike.lua | 3 | 3158 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 1 | 3760 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/anti-spam.lua | 10 | 5213 | 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 user on Redis
if msg.from.type == 'user' then
local hash = 'user:'..msg... | gpl-2.0 |
jsj2008/ValyriaTear | dat/maps/layna_forest/layna_forest_south_east_script.lua | 2 | 30474 | -- Set the namespace according to the map name.
local ns = {};
setmetatable(ns, {__index = _G});
layna_forest_south_east_script = ns;
setfenv(1, ns);
-- The map name, subname and location image
map_name = "Layna Forest"
map_image_filename = "img/menus/locations/layna_forest.png"
map_subname = ""
-- The music file use... | gpl-2.0 |
purebn/ShadowBot | plugins/lock_username.lua | 4 | 1038 | --shared @blackhatchannel
antiusername = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['username'] then
i... | gpl-2.0 |
jkassman/wesnoth | data/ai/micro_ais/cas/ca_lurkers.lua | 25 | 3877 | local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local H = wesnoth.require "lua/helper.lua"
local function get_lurker(cfg)
-- We simply pick the first of the lurkers, they have no strategy
local lurker = AH.get_units_with_moves {
side = wesnoth.current... | gpl-2.0 |
fyrchik/xlua | exercises/rectangles/rectangles_spec.lua | 3 | 1620 | local rectangles = require('rectangles')
describe('rectangles', function()
it('should find 0 rectangles in an empty grid', function()
assert.equal(0, rectangles.count({}))
end)
it('should find 0 rectangles in a non-empty grid', function()
assert.equal(0, rectangles.count({
' ',
' '
}... | mit |
p00ria/Grandex | bot/utils.lua | 1 | 25087 | 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 |
eXhausted/Ovale | ActionBar.lua | 1 | 7951 | --[[--------------------------------------------------------------------
Copyright (C) 2012 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
-- Keep data about... | mit |
adde88/Nerdpack-Zylla | rotations/rogue/outlaw.lua | 1 | 12132 | local _, Zylla = ...
local unpack = _G.unpack
local NeP = _G.NeP
local Mythic_Plus = _G.Zylla.Mythic_Plus
local GUI = {
unpack(Zylla.Logo_GUI),
-- Header
{type = 'header', size = 16, text = 'Keybinds', align = 'center'},
{type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..'Pause|r'... | mit |
NPLPackages/paracraft | script/apps/Aries/mcml/pe_aries2.lua | 1 | 13138 | --[[
Title: all controls for Aries specific tags
Author(s): WangTian
Date: 2009/10/17
Desc: all aries specific tags
--+++ aries:miniscenecameramodifier
| *property* | *desc* |
| IsRotateModel | true to rotate model instead of camera. default to false. |
use the lib:
--------------------------------------------------... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/chronomancy/chronomancer.lua | 2 | 8582 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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 Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/CodeAPI_MotionLooks.lua | 1 | 37104 | --[[
Title: CodeAPI
Author(s): LiXizhi
Date: 2018/5/16
Desc: sandbox API environment
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/CodeAPI_MotionLooks.lua");
-------------------------------------------------------
]]
NPL.load("(gl)script/apps/Arie... | gpl-2.0 |
fmassa/nn | SpatialFullConvolution.lua | 42 | 1589 | local SpatialFullConvolution, parent = torch.class('nn.SpatialFullConvolution','nn.Module')
function SpatialFullConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
... | bsd-3-clause |
tempbottle/openlua | src/test/cont.lua | 2 | 1219 | require ( "contract.lua" )
Point = { x = 1 , y = 1 }
function Point : __invariant ( )
return self . x > 0 and self . y > 0
end
function Point : New ( o )
o = o or { }
setmetatable ( o , self )
rawset ( self , "__index" , self )
o = Contract . EquipInv ( o )
Contract . JustCheckInv ... | mit |
pakoito/ToME---t-engine4 | src/luajit2/dynasm/dasm_x86.lua | 73 | 58651 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | gpl-3.0 |
a690700752/dotfiles | nvchad/mappings.lua | 1 | 2790 | local M = {}
M.disabled = {
n = {
["<leader>/"] = {},
["<leader>h"] = {},
["<leader>v"] = {},
},
v = {
["<leader>/"] = {},
},
}
M.comment = {
-- toggle comment in both modes
n = {
["<leader>;"] = {
function()
require("Comment.api").toggle.linewise.current()
end,
"toggle comment",
},
}... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.