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 |
|---|---|---|---|---|---|
Laterus/Darkstar-Linux-Fork | scripts/globals/conquestguards.lua | 1 | 8116 | -----------------------------------
--
-- ConquestGuards
--
-----------------------------------
-----------------------------------
-- San d'Oria Inventory
-- {Option,CP,Item}
-----------------------------------
SandInv = {0x80A1,0x000A,0x1055,0x80A0,0x0007,0x1056,0x80A3,0x2328,0x3CB5,
0x80A2... | gpl-3.0 |
pakoito/ToME---t-engine4 | src/luajit2/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/liluat.lua | 4 | 16529 | --[[
-- liluat - Lightweight Lua Template engine
--
-- Project page: https://github.com/FSMaxB/liluat
--
-- liluat is based on slt2 by henix, see https://github.com/henix/slt2
--
-- Copyright © 2016 Max Bruckner
-- Copyright © 2011-2016 henix
--
-- Permission is hereby granted, free of charge, to any person obtaining a... | gpl-3.0 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_centeroffset.lua | 1 | 7976 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Grocel/wire-extras | lua/entities/gmod_wire_useholoemitter/init.lua | 2 | 4996 | AddCSLuaFile( "cl_init.lua" );
AddCSLuaFile( "shared.lua" );
include( "shared.lua" );
// wire debug and overlay crap.
ENT.WireDebugName = "Interactable Holographic Emitter"
ENT.OverlayDelay = 0;
ENT.LastClear = 0;
// init.
function ENT:Initialize( )
// set model
util.PrecacheModel( "models/ja... | apache-2.0 |
RyMarq/Zero-K | lups/ParticleClasses/UnitCloaker.lua | 6 | 8780 | -- $Id: UnitCloaker.lua 3871 2009-01-28 00:09:23Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local UnitCloaker = {}
UnitCloaker._... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Yughott_Grotto/Zone.lua | 1 | 1123 | -----------------------------------
--
-- Zone: Yughott_Grotto
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
require("scripts/zones/Yughott_Grotto/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
Grocel/wire-extras | lua/entities/gmod_wire_wirer/init.lua | 4 | 22011 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Wired Wirer"
ENT.OverlayDelay = 0
//ownership functions adapted from E2 code (Thanks Syranide) :)
local function isOwner(self, entity)
return (getOwner(self, entity) == self.Owner)
end
local functio... | apache-2.0 |
jkassman/wesnoth | data/ai/micro_ais/cas/ca_zone_guardian.lua | 26 | 5275 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local function get_guardian(cfg)
local filter = cfg.filter or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.side,
{ ... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/thirdparty/moonscript/util.lua | 5 | 2390 |
module("moonscript.util", package.seeall)
moon = {
is_object = function(value)
return type(value) == "table" and value.__class
end,
type = function(value)
base_type = type(value)
if base_type == "table" then
cls = value.__class
if cls then return cls end
end
return base_type
end
}
function pos_to... | gpl-3.0 |
abasshacker/abbas00 | plugins/owners.lua | 284 | 12473 |
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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/chats/temporal-rift-start.lua | 3 | 1381 | -- 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 |
Ali-2h/hackerbot | plugins/Boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
RyMarq/Zero-K | scripts/turretaaclose.lua | 1 | 3880 | include "constants.lua"
local scriptReload = include("scriptReload.lua")
-- Pieces
local base = piece 'base'
local body = piece 'body'
local turret = piece 'turret'
local launcher1 = piece 'launcher1'
local launcher2 = piece 'launcher2'
local firepoint1 = piece 'firepoint1'
local firepoint2 = piece 'firepoint2'
loca... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Mheca_Khetashipah.lua | 5 | 1047 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mheca Khetashipah
-- Type: Standard NPC
-- @zone: 241
-- @pos: 66.881 -6.249 185.752
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/class/generator/actor/OnSpots.lua | 3 | 1787 | -- 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 |
Billiam/promise.lua | spec/2.2.2_spec.lua | 2 | 4066 | local Helper = require('spec.helper.helper')
local Promise = require('promise')
local dummy = { dummy = 'dummy' }
local sentinel = { sentinel = 'sentinel' }
describe("2.2.2: If `onFulfilled` is a function,", function()
describe("2.2.2.1: it must be called after `promise` is fulfilled, with `promise`’s fulfillment va... | mit |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/test/t_path.lua | 28 | 2760 | module(..., package.seeall)
local path = require "tundra.path"
local native = require "tundra.native"
local function check_path(t, p, expected)
p = p:gsub('\\', '/')
t:check_equal(p, expected)
end
unit_test('path.normalize', function (t)
check_path(t, path.normalize("foo"), "foo")
check_path(t, path.normaliz... | mit |
devFRIND/M.F.I_BOT | plugins/stats.lua | 8 | 4015 | do
-- Returns a table with `name` and `msgs`
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_pri... | gpl-2.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/image.lua | 11 | 1090 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
local function toimage(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'photo'..msg.from.id..'.jpg'
print('File downloaded to:', result)
os.rename(r... | gpl-2.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/ar-boomzain2.lua | 1 | 5027 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY osama ▀▄ ▄▀
▀▄ ▄▀ BY osama (@os_aa23) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY osama ▀▄ ▄▀
▀▄ ▄▀ broadcast : منع الجيوش ▀▄ ▄▀
▀... | gpl-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/rpc/luasrc/jsonrpcbind/uci.lua | 81 | 1914 | --[[
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
ht... | gpl-2.0 |
vince06fr/prosody-modules | mod_auth_custom_http/mod_auth_custom_http.lua | 32 | 1346 | -- Prosody IM
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local new_sasl = require "util.sasl".new;
local json_encode = require "util.json";
local http = require "socket.http";
local options = module:get... | mit |
pakoito/ToME---t-engine4 | game/engines/default/modules/boot/data/gfx/shaders/textoutline.lua | 5 | 1048 | -- 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 |
zhutaorun/2DPlatformer-SLua | Assets/StreamingAssets/Lua/Logic/LgBombPickup.lua | 1 | 2321 | --
-- Bomb pickup class.
--
-- @filename LgBombPickup.lua
-- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved.
-- @license The MIT License (MIT)
-- @author Yaukey
-- @date 2015-09-05
--
local YwDeclare = YwDeclare
local YwClass = YwClass
local DLog = YwDe... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Areas/ServerPage.lua | 1 | 15214 | --[[
Title: ServerPage
Author(s): LiPeng
Date: 2014/8/26
Desc:
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Areas/ServerPage.lua");
local ServerPage = commonlib.gettable("MyCompany.Aries.Creator.Game.Desktop.ServerPage");
ServerPage.ShowPage()
----------... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Areas/ChatSystem/KpQuickWord.lua | 1 | 6475 | --[[
Title: The quick word menu for keepwork
Author(s): leio
Date: 2020/5/6
Desc:
Use Lib:
-------------------------------------------------------
local KpQuickWord = NPL.load("(gl)script/apps/Aries/Creator/Game/Areas/ChatSystem/KpQuickWord.lua");
KpQuickWord.OnQuickword();
-------------------------------------------... | gpl-2.0 |
wjingzhe/ActiveStar | cocos2d/external/lua/luajit/src/dynasm/dasm_arm.lua | 74 | 34483 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Open_sea_route_to_Mhaura/Zone.lua | 1 | 1153 | -----------------------------------
--
-- Zone: Open_sea_route_to_Mhaura
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
require("scripts/zones/Open_sea_route_to_Mhaura/TextIDs");
--------------------------... | gpl-3.0 |
hfjgjfg/eli25 | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_resupply/init.lua | 1 | 1743 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function SWEP:Deploy()
gamemode.Call("WeaponDeployed", self.Owner, self)
self:SpawnGhost()
return true
end
function SWEP:OnRemove()
self:RemoveGhost()
end
function SWEP:Holster()
self:RemoveGhost()
return true
end
function SWEP:Sp... | gpl-3.0 |
kellabyte/snabbswitch | src/apps/vpn/vpws.lua | 7 | 7085 | -- Virtual Private Wire Service (VPWS)
-- Provides a L2 VPN on top of IP (v4/v6) and GRE
--
-- This app has two connections, customer and uplink. The former
-- transports Ethernet frames while the latter transports Ethernet
-- frames encapsulated in IP/GRE. The push() method performs the
-- appropriate operation depe... | apache-2.0 |
madpilot78/ntopng | scripts/lua/rest/v1/acknowledge/host/alerts.lua | 1 | 1073 | --
-- (C) 2013-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 alert_utils = require "alert_utils"
local alert_consts = require "alert_consts"
... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/achievements/talents.lua | 3 | 2411 | -- 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/gfx/particles/feed_strengths.lua | 3 | 1841 | -- 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/engines/default/engine/ui/GenericContainer.lua | 3 | 1161 | -- 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 |
RyMarq/Zero-K | LuaRules/Configs/StartBoxes/Bryce_Arena_fixed_2.lua | 17 | 1187 | return {
[0] = {
startpoints = {
{2785,1270},
},
boxes = {
{
{2212,655},
{3359,655},
{3359,1884},
{2212,1884},
},
},
},
[1] = {
startpoints = {
{5530,6840},
},
boxes = {
{
{4915,6226},
{6144,6226},
{6144,7455},
{4915,7455},
},
},
},
[2] = {
startp... | gpl-2.0 |
rudiniemeijer/NodeMCU-Lua-WS2812-matrix-displays | demo-textdisplay.lua | 1 | 1367 | -- Text display for WS2812 RGB Matrix Display
-- Copyright (c) 2017 Rudi Niemeijer
-- Requires the use of WS2812 plot functions and charset
dofile("matrixutility.lc")
-- dofile("matrixtext.lc")
-- !!!!
-- These functions must eventually reside in matrixtext.lc
function plotchar(c, x, y, hue) -- Plot character c 8x8 b... | mit |
crazyboy11/spol | bot/utils.lua | 473 | 24167 | 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 |
jkassman/wesnoth | host.lua | 26 | 2733 | -- host.lua --
-- Try to host a game called "Test"
local function plugin()
local function log(text)
std_print("host: " .. text)
end
local counter = 0
local events, context, info
local helper = wesnoth.require("lua/helper.lua")
local function idle_text(text)
counter = counter + 1
if counter... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/gfx_bloom_shader.lua | 2 | 17769 | function widget:GetInfo()
return {
name = "Bloom Shader",
desc = "Sets Spring In Bloom",
author = "Floris", -- orginal bloom shader: Kloot
date = "24-9-2016",
license = "",
layer = 9,
enabled = false,
}
end
----------------------------------------------------------------------... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua | 74 | 1512 | --[[
LuCI p910nd
(c) 2008 Yanira <forum-2008@email.de>
(c) 2012 Jo-Philipp Wich <jow@openwrt.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... | gpl-2.0 |
electrodude/pipeworks | routing_tubes.lua | 2 | 6937 |
-- the default tube and default textures
pipeworks.register_tube("pipeworks:tube", "Pneumatic tube segment")
minetest.register_craft( {
output = "pipeworks:tube_1 6",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "", "", "" },
{ ... | lgpl-2.1 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Aht_Urhgan_Whitegate/npcs/Bajahb.lua | 3 | 1237 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Bajahb
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
TerraME/publish | data/sp.lua | 1 | 1691 | -------------------------------------------------------------------------------------------
-- 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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/telmur/npcs.lua | 3 | 3160 | -- 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/minimap_startbox_new.lua | 2 | 11012 | function widget:GetInfo() return {
name = "Start Boxes",
desc = "Shows start-boxes during placement",
author = "trepan, jK, Rafal, Sprung",
date = "2007-2015",
license = "GNU GPL, v2 or later",
layer = 1002,
enabled = true,
} end
local mapX = Game.mapSizeX
local mapZ = Game.mapSizeZ
l... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/blocks/BlockLight.lua | 1 | 1157 | --[[
Title: BlockLight
Author(s): LiXizhi
Date: 2016/9/21
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/blocks/BlockLight.lua");
local block = commonlib.gettable("MyCompany.Aries.Game.blocks.BlockLight")
------------------------------------... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_San_dOria/npcs/Deguerendars.lua | 1 | 2072 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Deguerendars
-- Only sells when San d'Oria contrls Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/traps/complex.lua | 3 | 9361 | -- 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 |
jkassman/wesnoth | data/ai/micro_ais/cas/ca_fast_combat.lua | 6 | 5874 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local FAU = wesnoth.require "ai/micro_ais/cas/ca_fast_attack_utils.lua"
local LS = wesnoth.require "lua/location_set.lua"
local ca_fast_combat = {}
function ca_fast_combat:evaluation(ai, cfg, self)
self.data.move_cache = ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Southern_San_dOria/npcs/Anxaberoute.lua | 1 | 1493 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Anxaberoute
-- Type: Standard Info NPC
-- @zone: 230
-- @pos: 108.892 0.000 -49.038
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/alert_definitions/flow/alert_remote_access.lua | 1 | 1392 | --
-- (C) 2019-21 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
lo... | gpl-3.0 |
vince06fr/prosody-modules | mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua | 31 | 1380 | -- Copyright (C) 2013-2014 Kim Alvefur
-- This file is MIT/X11 licensed.
module:set_global();
local digest_algo = module:get_option_string(module:get_name().."_digest", "sha1");
local fingerprints = {};
local function hashprep(h)
return tostring(h):gsub(":",""):lower();
end
local function hashfmt(h)
return h:gsu... | mit |
madpilot78/ntopng | scripts/lua/rest/v1/import/snmp/config.lua | 2 | 1188 | --
-- (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 json = r... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Ronan.lua | 1 | 2795 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ronan
-- Start & Finishes Quest: Out of One's Shell
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/titles");
p... | gpl-3.0 |
hfjgjfg/eli25 | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/axes.lua | 2 | 2875 | -- 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/rooms/zones/zoisla.lua | 3 | 1489 | -- 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/chili_old/Controls/button.lua | 2 | 1165 | --//=============================================================================
Button = Control:Inherit{
classname= "button",
caption = 'button',
defaultWidth = 70,
defaultHeight = 20,
noFont = false,
}
local this = Button
local inherited = this.inherited
--//==========================================... | gpl-2.0 |
hfjgjfg/sss25 | plugins/domaintools.lua | 359 | 1494 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function check(name)
local api = "https://domainsearch.p.mashape.com/index.php?"... | gpl-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 30 | 2105 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Christian Gagneraud <chris@techworks.ie>
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$
]]... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua | 1 | 1483 | -----------------------------------------
-- ID: 4601
-- Item: Bowl of Sopa de Pez Blanco
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 12
-- Dexterity 6
-- Mind -4
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
requir... | gpl-3.0 |
nimaghorbani/creed | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Al_Zahbi/npcs/Allard.lua | 37 | 1186 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Allard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/tannen-tower-1.lua | 3 | 1730 | -- 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/rest/v2/delete/interface/alerts.lua | 1 | 1176 | --
-- (C) 2013-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 alert_utils = require "alert_utils"
local alert_consts = require "alert_consts"
... | gpl-3.0 |
salehvw0011/stfbot | plugins/apps.lua | 1 | 1544 | do
local function run(msg, matches)
if matches[1]:lower() == 'app' then
local url = http.request('http://api.magic-team.ir/plazza/search.php?key='..URL.escape(matches[2]))
local jdat = json:decode(url)
items = jdat
local text = ''
local msgss = 0
for item in pairs(items) do
msgss = msgss + 1
text = tex... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 5 | 1038 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Head Craftsman
-- @zone: 240
-- @pos: -194.499 -3 58.692
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/chats/pre-charred-scar.lua | 3 | 1499 | -- 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 |
hfjgjfg/eli25 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Configs/lups_napalm_fxs.lua | 8 | 2058 | local napalm = {
default = {
colormap = { {0, 0, 0, 0.01}, {0.75, 0.75, 0.9, 0.02}, {0.45, 0.2, 0.3, 0.1}, {0.4, 0.16, 0.1, 0.12}, {0.3, 0.15, 0.01, 0.15}, {0.3, 0.15, 0.01, 0.15}, {0.3, 0.15, 0.01, 0.15}, {0.1, 0.035, 0.01, 0.15}, {0, 0, 0, 0.01} },
count = 4,
life = 175,
... | gpl-2.0 |
eriche2016/nn | init.lua | 1 | 4703 | require('torch')
nn = {} -- define the global nn table
require('nn.THNN')
require('nn.utils')
require('nn.ErrorMessages')
require('nn.Module')
require('nn.Container')
require('nn.Concat')
require('nn.Parallel')
require('nn.Sequential')
require('nn.DepthConcat')
require('nn.Bottle')
require('nn.Linear')
require('... | bsd-3-clause |
gleachkr/luakit | config/theme.lua | 2 | 2157 | --------------------------
-- Default luakit theme --
--------------------------
local theme = {}
-- Default settings
theme.font = "12px monospace"
theme.fg = "#fff"
theme.bg = "#000"
-- Genaral colours
theme.success_fg = "#0f0"
theme.loaded_fg = "#33AADD"
theme.error_fg = "#FFF"
theme.error_bg = "#F00"
-- War... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/webcore.lua | 2 | 1972 | -- 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 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Cloister_of_Frost/mobs/Shiva_Prime.lua | 1 | 1879 | -----------------------------------
-- Area: Cloister of Frost
-- NPC: Shiva Prime
-- Involved in Quest: Trial by Ice
-- @zone 203
-- @pos
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requ... | gpl-3.0 |
RyMarq/Zero-K | units/chickena.lua | 1 | 4513 | return { chickena = {
unitname = [[chickena]],
name = [[Cockatrice]],
description = [[Assault/Anti-Armor]],
acceleration = 1.08,
activateWhenBuilt = true,
brakeRate = 1.23,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = fals... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/dialogs/ViewHighScores.lua | 3 | 1605 | -- 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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/inferno.lua | 2 | 1569 | -- 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 |
james2doyle/lit | deps/sha1/init.lua | 8 | 4499 | --[[lit-meta
name = "creationix/sha1"
version = "1.0.2"
homepage = "https://github.com/luvit/lit/blob/master/deps/sha1.lua"
description = "Pure Lua implementation of SHA1 using bitop"
authors = {
"Tim Caswell"
}
]]
-- http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf
local bit = re... | apache-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/libs/nixio/docsrc/nixio.lua | 151 | 15824 | --- General POSIX IO library.
module "nixio"
--- Look up a hostname and service via DNS.
-- @class function
-- @name nixio.getaddrinfo
-- @param host hostname to lookup (optional)
-- @param family address family [<strong>"any"</strong>, "inet", "inet6"]
-- @param service service name or port (optional)
-- @return ... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/events/glimmerstone.lua | 2 | 2076 | -- 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/class/BigNews.lua | 2 | 2993 | -- 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 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/base/luasrc/model/firewall.lua | 84 | 11156 | --[[
LuCI - Firewall model
Copyright 2009 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
Unless required by applica... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Terude-Harude.lua | 5 | 1047 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Terude-Harude
-- Type: Head Craftsman
-- @zone: 241
-- @pos: -32.350 -2.679 -116.450
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--... | gpl-3.0 |
RyMarq/Zero-K | LuaRules/Gadgets/cmd_raw_move.lua | 1 | 25990 | function gadget:GetInfo()
return {
name = "Command Raw Move",
desc = "Make unit move ahead at all cost!",
author = "xponen, GoogleFrog",
date = "June 12 2014",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true,
}
end
include("LuaRules/Configs/customcmds.h.lua")
if gadgetHandler:IsSyncedCode(... | gpl-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-qos/luasrc/model/cbi/qos/qos.lua | 41 | 2689 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
loc... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/towns/zigur.lua | 3 | 7300 | -- 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 |
osamaalbsraoy/osama_albsraoy1989 | plugins/anti_media.lua | 1 | 2518 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OSAMAALBSRAOY ▀▄ ▄▀
▀▄ ▄▀ BY OSAMAALBSRAOY (@OS_AA23) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OSAMAALBSRAOY ▀▄ ▄▀
▀▄ ▄▀ كتم الوسائط ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v2/get/l7/category/consts.lua | 2 | 1217 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local json = require "dkjson"
local rest_utils = require "rest_utils"
--
-- Read all the defined L7 application categories
-- Example: curl -u admin:admin -H... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Motion.lua | 1 | 2807 | --[[
Title: NplMicrobitDef_Motion
Author(s): leio
Date: 2019/11/29
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Motion.lua");
-------------------------------------------------------
]]
NPL.export({... | gpl-2.0 |
vince06fr/prosody-modules | mod_http_muc_log/mod_http_muc_log.lua | 15 | 8601 | local mt = require"util.multitable";
local datetime = require"util.datetime";
local jid_split = require"util.jid".split;
local nodeprep = require"util.encodings".stringprep.nodeprep;
local uuid = require"util.uuid".generate;
local it = require"util.iterators";
local gettime = require"socket".gettime;
local url = requir... | mit |
madpilot78/ntopng | scripts/plugins/collectors/host_log_collector/checks/syslog/host_log.lua | 1 | 1735 | --
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local checks = require("checks")
local syslog_utils = require "syslog_utils"
local syslog_module = {
-- Script category
category = checks.check_categorie... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/example/load.lua | 3 | 2608 | -- 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 |
RyMarq/Zero-K | scripts/dronelight.lua | 2 | 1439 | include "constants.lua"
--pieces
local base, fan, barrel, flare, thrust1, thrust2 = piece('base', 'fan', 'barrel', 'flare', 'thrust1', 'thrust2')
local blades = {piece('b1', 'b2', 'b3', 'b4', 'b5', 'b6')}
local smokePiece = {base}
--constants
local rotorSpeed = math.rad(1080)
local rotorAccel = math.rad(240)
--varia... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/vaults/trickvault.lua | 3 | 5982 | -- 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/alert_definitions/flow/alert_ndpi_http_suspicious_user_agent.lua | 1 | 1338 | --
-- (C) 2019-21 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
lo... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/jewelry.lua | 3 | 3755 | -- 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/dbg_ceg_spawner.lua | 8 | 3055 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "CEG Spawner",
desc = "v0.031 Spawn CEGs",
author = "CarRepairer",
date = "2010... | gpl-2.0 |
madpilot78/ntopng | scripts/locales/it.lua | 1 | 304288 | local lang = {
["abort"] = "Cancella",
["action"] = "Azione",
["actions"] = "Azioni",
["active_flows"] = "Flussi Attivi",
["activities"] = "Attività",
["activity"] = "Attività",
["add"] = "Aggiungi",
["admin_status"] = "Admin",
["advanced"] = "Avanzate",
["aggregation"] = "Aggregazione",
["alias"]... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.