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 |
|---|---|---|---|---|---|
sajjad94/ASD_KARBALA | plugins/ar-banhammer.lua | 13 | 13810 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ ban hammer : الطرد والحظر ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
allwenandashi/1 | plugins/activeuser.lua | 7 | 11811 | 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 |
sajjad94/ASD_KARBALA | plugins/ar-getlink.lua | 7 | 28100 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ A SPECiAL LINK : الرابط خاص ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
MmxBoy/mmxanti2 | plugins/plugins.lua | 325 | 6164 | 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 |
m-creations/openwrt | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/tunnels.lua | 18 | 2336 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Th... | gpl-2.0 |
ziz/solarus | quests/zsxd/data/enemies/chain_and_ball.lua | 2 | 2671 | -- A ball and its chain, usually controlled by another enemy.
-- The ball is controlled by a circular movement and
-- the chain is a sprite that automatically fits the space between the other enemy and the ball.
-- They usually disappear when the enemy is killed.
nb_links = 10
link_sprite = nil
link_xy = {
{x = 0, y... | gpl-3.0 |
jozadaquebatista/textadept | core/iface.lua | 1 | 23223 | -- Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Scintilla constants, functions, and properties.
-- Do not modify anything in this module. Doing so will have unpredictable
-- consequences.
module('_SCINTILLA')]]
---
-- Map of Scintilla consta... | mit |
lukw00/shogun | examples/undocumented/lua_modular/serialization_complex_example.lua | 21 | 2932 | require 'os'
require 'modshogun'
require 'load'
parameter_list={{5,1,10, 2.0, 10}, {10,0.3,2, 1.0, 0.1}}
function check_status(status)
assert(status == true)
-- if status:
-- print "OK reading/writing .h5\n"
--else:
-- print "ERROR reading/writing .h5\n"
end
function concatenate(...)
local result = ...
for... | gpl-3.0 |
anoutsider/advanced-logistics-system | gui/widgets.lua | 1 | 21761 | --- Add items search frame
function addSearchWidget(player, index)
local guiPos = global.settings[index].guiPos
local contentFrame = player.gui[guiPos].logisticsFrame.contentFrame
local searchFlow = contentFrame["searchFlow"]
local currentTab = global.currentTab[index]
local searchText = global.searchT... | mit |
vanjikumaran/wrk | deps/luajit/src/jit/bcsave.lua | 87 | 18141 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
aryajur/luarocks | src/luarocks/pack.lua | 20 | 7450 |
--- Module implementing the LuaRocks "pack" command.
-- Creates a rock, packing sources or binaries.
--module("luarocks.pack", package.seeall)
local pack = {}
package.loaded["luarocks.pack"] = pack
local unpack = unpack or table.unpack
local path = require("luarocks.path")
local repos = require("luarocks.repos")
loc... | mit |
vzaramel/kong | kong/dao/postgres/base_dao.lua | 1 | 10944 | local query_builder = require "kong.dao.postgres.query_builder"
local validations = require "kong.dao.schemas_validation"
local constants = require "kong.constants"
local pgmoon = require "pgmoon"
local DaoError = require "kong.dao.error"
local Object = require "classic"
local utils = require "kong.tools.utils"
local u... | apache-2.0 |
MmxBoy/Metal-bot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
mamaddeveloper/uzz | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
rigeirani/sg1 | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
deepak78/new-luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i1... | apache-2.0 |
plinkopenguin/wire-extras | lua/weapons/gmod_tool/stools/wire_simulate_data.lua | 2 | 12336 | TOOL.Category = "Wire Extras/Tools"
TOOL.Name = "Simulate Data"
TOOL.Tab = "Wire"
TOOL.Command = nil
TOOL.ConfigName = ""
if ( CLIENT ) then
language.Add( "Tool.wire_simulate_data.name", "Simulate Data Tool" )
language.Add( "Tool.wire_simulate_data.desc", "Used to debug circuits by simulating da... | gpl-3.0 |
ferstar/openwrt-dreambox | feeds/luci/luci/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua | 4 | 1890 | --[[
Luci configuration model for statistics - collectd email plugin configuration
(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... | gpl-2.0 |
Dadido3/D3classic | Lua/Buildmodes/Stickphysic.lua | 2 | 2764 | -- ############################ Build Line #############################
function Command_Build_Mode_Stick(Client_ID, Command, Text_0, Text_1, Arg_0, Arg_1, Arg_2, Arg_3, Arg_4)
System_Message_Network_Send(Client_ID, Lang_Get("", "Buildmode: Stick started"))
Build_Mode_Set(Client_ID, "Stick")
Build_Mode_State_Set(C... | mit |
osgcc/ryzom | ryzom/common/data_common/r2/r2_features_timer.lua | 3 | 24324 | -- In Transalation file
-- Category : uiR2EdTimer --
-- CreationFrom : uiR2EdTimerParameters
-- uiR2EDtooltipCreateFeatureTimer -> tooltip
r2.Features.TimerFeature = {}
local feature = r2.Features.TimerFeature
feature.Name="TimerFeature"
feature.BanditCount = 0
feature.Description="A Timer"
feature.Components = ... | agpl-3.0 |
xinjuncoding/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
rasolllll/tele_gold | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
elixboy/Yelixboy | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
samuelctabor/ardupilot | libraries/AP_Scripting/tests/math.lua | 26 | 25303 | -- $Id: math.lua,v 1.77 2016/06/23 15:17:20 roberto Exp roberto $
--[[
*****************************************************************************
* Copyright (C) 1994-2016 Lua.org, PUC-Rio.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... | gpl-3.0 |
yetsky/extra | luci/applications/luci-chinadns/luasrc/model/cbi/chinadns.lua | 8 | 1329 | --[[
RA-MOD
]]--
local fs = require "nixio.fs"
local running=(luci.sys.call("pidof chinadns > /dev/null") == 0)
if running then
m = Map("chinadns", translate("chinadns"), translate("chinadns is running"))
else
m = Map("chinadns", translate("chinadns"), translate("chinadns is not running"))
end
s = m:section(Typed... | gpl-2.0 |
aryajur/luarocks | src/luarocks/loader.lua | 20 | 8685 |
--- A module which installs a Lua package loader that is LuaRocks-aware.
-- This loader uses dependency information from the LuaRocks tree to load
-- correct versions of modules. It does this by constructing a "context"
-- table in the environment, which records which versions of packages were
-- used to load previous... | mit |
jcmoyer/hug | extensions/string.lua | 1 | 1536 | --
-- Copyright 2013 J.C. Moyer
--
-- 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 ... | apache-2.0 |
weitjong/Urho3D | bin/Data/LuaScripts/20_HugeObjectCount.lua | 24 | 9039 | -- Huge object count example.
-- This sample demonstrates:
-- - Creating a scene with 250 x 250 simple objects
-- - Competing with http://yosoygames.com.ar/wp/2013/07/ogre-2-0-is-up-to-3x-faster/ :)
-- - Allowing examination of performance hotspots in the rendering code
-- - Optionally speeding up ... | mit |
lcheylus/haka | sample/stats/stats_utils.lua | 5 | 2760 |
local function group_by(tab, field)
local ret = {}
for _, entry in ipairs(tab) do
local value = entry[field]
assert(value, string.format("stats are not available on field %s", field))
if not ret[value] then
ret[value] = {}
end
table.insert(ret[value], entry)
end
return ret
end
local function order_by... | mpl-2.0 |
emptyrivers/WeakAuras2 | WeakAuras/Prototypes.lua | 1 | 253945 | if not WeakAuras.IsCorrectVersion() then return end
local AddonName, Private = ...
-- Lua APIs
local tinsert, tsort = table.insert, table.sort
local tostring = tostring
local select, pairs, type = select, pairs, type
local ceil, min = ceil, min
-- WoW APIs
local GetTalentInfo = GetTalentInfo
local GetNumSpecializatio... | gpl-2.0 |
LacusCon/hugula | Client/Assets/Lua/game/brain/Doc.lua | 7 | 3418 | --===================================决策节点====================================================
-------------------------------------条件节点-----------------------------
ConditionNode(luafunction) ConditionNode(Condition)
--条件等待节点
ConditionWaitNode(luafunction) ConditionWaitNode(Condition)
--按一定时间执行的条件节点
DeltaConditionNode... | mit |
MmxBoy/mmxanti2 | bot/utils.lua | 356 | 14963 | 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 |
Dadido3/D3classic | Lua/Physic/Special/Fire.lua | 2 | 1286 | function Physic_Special_Fire(Map_ID, X, Y, Z)
Block_Type = Map_Block_Get_Type(Map_ID, X, Y, Z)
Player_Number = Map_Block_Get_Player_Last(Map_ID, X, Y, Z)
if math.random(5) == 1 then
Map_Block_Change(Player_Number, Map_ID, X, Y, Z, 0, 1, 0, 1, 5)
else
rx = math.random(3)-2
ry = math.random(3)-2
rz = 1
... | mit |
JamesWilko/GoonMod | GoonMod/lua/WeaponFlashlight.lua | 1 | 1482 |
CloneClass( WeaponFlashLight )
Hooks:RegisterHook("WeaponFlashLightInit")
function WeaponFlashLight.init(self, unit)
self.orig.init(self, unit)
Hooks:Call( "WeaponFlashLightInit", self, unit )
end
Hooks:RegisterHook("WeaponFlashLightCheckState")
function WeaponFlashLight._check_state(self)
self.orig._check_state(... | mit |
mamaddeveloper/outo | plugins/commit.lua | 13 | 12985 | -- Commits from https://github.com/ngerakines/commitment.
local doc = [[
/commit
Returns a commit message from whatthecommit.com.
]]
local triggers = {
'^/commit[@'..bot.username..']*'
}
local commits = {
"One does not simply merge into master",
"Merging the merge",
"Another bug bites the dust",
"de-misunder... | gpl-2.0 |
MohammadPishro/Spam-Detector | plugins/configure.lua | 2 | 1420 | local function do_keyboard_config(chat_id)
local keyboard = {
inline_keyboard = {
{{text = _("🛠 Menu"), callback_data = 'config:menu:'..chat_id}},
{{text = _("⚡️ Antiflood"), callback_data = 'config:antiflood:'..chat_id}},
{{text = _("🌈 Media"), callback_data = 'config:... | gpl-2.0 |
vzaramel/kong | spec/integration/dao/cassandra/cascade_spec.lua | 2 | 7669 | local spec_helper = require "spec.spec_helpers"
local env = spec_helper.get_env()
local dao_factory = env.dao_factory
dao_factory:load_plugins({"keyauth", "basicauth", "oauth2"})
describe("Cassandra cascade delete", function()
setup(function()
spec_helper.prepare_db()
end)
describe("API -> plugins", func... | apache-2.0 |
m-creations/openwrt | feeds/luci/build/luadoc/doc.lua | 78 | 3419 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- LuaDoc launcher.
-- @release $Id: luadoc.lua.in,v 1.1 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
--local source = debug.getinfo(1).source or "... | gpl-2.0 |
mehranmix/tel | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-3.0 |
paulmarsy/Console | Libraries/nmap/App/nselib/mongodb.lua | 2 | 22926 | ---
-- Library methods for handling MongoDB, creating and parsing packets.
--
-- @author Martin Holst Swende
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
--
-- Version 0.2
--
-- @args mongodb.db - the database to use for authentication
-- Created 01/13/2010 - v0.1 - created by Martin Holst Swend... | mit |
zhaohao/waifu2x | web.lua | 23 | 6744 | _G.TURBO_SSL = true
local turbo = require 'turbo'
local uuid = require 'uuid'
local ffi = require 'ffi'
local md5 = require 'md5'
require 'pl'
require './lib/portable'
require './lib/LeakyReLU'
local cmd = torch.CmdLine()
cmd:text()
cmd:text("waifu2x-api")
cmd:text("Options:")
cmd:option("-port", 8812, 'listen port')
... | mit |
cochrane/OpenTomb | scripts/trigger/trigger_functions.lua | 2 | 2981 | -- OPENTOMB TRIGGER FUNCTION SCRIPT
-- by Lwmte, April 2015
--------------------------------------------------------------------------------
-- This file contains core trigger routines which are used to initialize, run
-- and do other actions related to trigger array.
-- Trigger array itself is generated on the fly fr... | lgpl-3.0 |
alexd2580/igjam2016 | src/systems/MothershipSystem.lua | 1 | 1588 | local MothershipSystem = class("MothershipSystem", System)
function MothershipSystem:update()
for index, entity in pairs(self.targets) do
--enemy_mothership = entity:get("HasEnemy").enemy_mothership
--enemy_x, enemy_y = enemy_mothership:get("Physical").body:getPosition()
--enemy_pos = Vecto... | mit |
spacebuild/sbep | lua/data/sbep/smallbridge_filename_changes.lua | 3 | 90700 | ------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------
OLD | NEW ... | apache-2.0 |
ImagicTheCat/vRP | vrp/client/audio.lua | 1 | 8346 | -- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.audio then return end
local Audio = class("Audio", vRP.Extension)
-- METHODS
function Audio:__construct()
vRP.Extension.__construct(self)
self.channel_callbacks = {}
self.voice_channels = {} -- map of ... | mit |
masterweb121/telegram-bot | bot/bot.lua | 15 | 6562 | 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 = '0.13.1'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
Godfather021/best | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
alexd2580/igjam2016 | src/systems/AttackSystem.lua | 1 | 2567 | local AttackSystem = class("AttackSystem", System)
local LaserBeam = Component.load({'LaserBeam'})
function AttackSystem:initialize(gamestate)
System.initialize(self)
self.gamestate = gamestate
end
function AttackSystem:update(dt)
for k, entity in pairs(self.targets) do
enemy_mothership = entity:... | mit |
benignoc/ear-training-chord-creation | Classes/Class - Frame.lua | 1 | 3156 | --[[ Lokasenna_GUI - Frame class
---- User parameters ----
(name, z, x, y, w, h[, shadow, fill, color, round])
Required:
z Element depth, used for hiding and disabling layers. 1 is the highest.
x, y Coordinates of top-left corner
w, h Frame size
Optional:
shadow Boolean. Draw a shadow beneath the frame?... | mit |
Murfalo/game-off-2016 | libs/lume.lua | 1 | 9136 | --
-- lume
--
-- Copyright (c) 2014, rxi
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
--
local lume = { _version = "1.3.0" }
local pairs, ipairs = pairs, ipairs
local type, assert, unpack = type, assert, unpack or table.u... | mit |
ImagicTheCat/vRP | vrp/cfg/gui.lua | 1 | 1135 |
-- gui config file
local cfg = {}
-- additional CSS loaded to customize the gui display (see gui/design.css to know the available css elements)
-- it is not recommended to modify the vRP core files outside the cfg/ directory, create a new resource instead
-- you can load external images/fonts/etc using the NUI absol... | mit |
mamaddeveloper/uzz | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
cjshmyr/OpenRA | mods/d2k/maps/atreides-01a/atreides01a.lua | 2 | 5022 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
Godfather021/best | plugins/banhammer.lua | 1 | 16333 | -- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 4
local function kick_user(user_id, chat_id)
if user_id == tostring(our_id) then
send_msg('chat#id'..chat_id, ... | gpl-2.0 |
mamaddeveloper/outo | config.lua | 1 | 2004 | return {
bot_api_key = '138754454:AAHcY427ix65C8XtIb1kgvyoIe2prqxDmg8',
google_api_key = '',
google_cse_key = '',
lastfm_api_key = '',
owm_api_key = '',
biblia_api_key = '',
thecatapi_key = '',
time_offset = 0,
lang = 'en',
admin = 94477327,
admin_name = '💲🔚➰Dev MaMaD Z〽️🔜🔝',
about_text = [[
I am MamadB... | gpl-2.0 |
loringmoore/The-Forgotten-Server | data/actions/scripts/quests/quests.lua | 1 | 1502 | local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey)
if item.uid > 1000 and item.uid <= 22670 then
local itemType = ItemType(item.itemid)
local itemWeight = itemType:getWeight()
local player = Player(cid)
local playerCap = player:getFreeCapaci... | gpl-2.0 |
jfzazo/wireshark-hwgen | src/epan/wslua/template-init.lua | 2 | 4802 | -- init.lua
--
-- initialize wireshark's lua
--
-- This file is going to be executed before any other lua script.
-- It can be used to load libraries, disable functions and more.
--
-- $Id$
--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
--
-- This p... | gpl-2.0 |
jozadaquebatista/textadept | modules/textadept/menu.lua | 1 | 16930 | -- Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Contributions from Robert Gieseke.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Defines the menus used by Textadept.
-- Menus are simply tables and may be edited in place. Submenus have `title`
-- keys with string text.
-- If applicable... | mit |
werpat/MoonGen | rfc2544/benchmarks/throughput.lua | 9 | 14322 | package.path = package.path .. "rfc2544/?.lua"
local standalone = false
if master == nil then
standalone = true
master = "dummy"
end
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local filter = require "filter"
local ffi ... | mit |
frodrigo/osrm-backend | third_party/flatbuffers/tests/MyGame/Example/Vec3.lua | 11 | 1440 | -- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: Example
local flatbuffers = require('flatbuffers')
local Vec3 = {} -- the module
local Vec3_mt = {} -- the class metatable
function Vec3.New()
local o = {}
setmetatable(o, {__index = Vec3_mt})
return o
end
function Vec3_... | bsd-2-clause |
osgcc/ryzom | ryzom/client/data/gamedev/interfaces_v3/out_v2_appear.lua | 3 | 5855 | -- In this file we define functions that serves outgame character creation
------------------------------------------------------------------------------------------------------------
-- create the game namespace without reseting if already created in an other file.
if (outgame==nil) then
outgame= {};
end
--------... | agpl-3.0 |
spark51/spark_robot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
MmxBoy/mmxanti2 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
paulmarsy/Console | Libraries/nmap/App/nselib/packet.lua | 2 | 37533 | ---
-- Facilities for manipulating raw packets.
--
-- @author Marek Majkowski <majek04+nse@gmail.com>
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
local bit = require "bit"
local ipOps = require "ipOps"
local nmap = require "nmap"
local stdnse = require "stdnse"
local string = require "string"
l... | mit |
werpat/MoonGen | rfc2544/utils/utils.lua | 9 | 5501 | local actors = {}
local status, snmp = pcall(require, 'utils.snmp')
if status then
table.insert(actors, snmp)
else
print "unable to load snmp module"
end
local status, sshMikrotik = pcall(require, 'utils.ssh-mikrotik')
if status then
table.insert(actors, sshMikrotik)
else
print "unable to load mikrotik... | mit |
fwmechanic/k_edit | bin.lua | 1 | 2586 | -- if you change or add to this module, _please_ update test\k_lib.lua accordingly!
module( "bin", package.seeall )
require "util"
-- very simple un/packer: supports only fixed length byte strings and 1-/2-/4-byte binary numbers
local function unpack_one( tt, byteSrc, ix, endian )
local at, bytes = tt:m... | gpl-3.0 |
ferstar/openwrt-dreambox | feeds/luci/luci/luci/protocols/pptp/luasrc/model/cbi/admin_network/proto_pptp.lua | 3 | 1659 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | gpl-2.0 |
liminghuang/MavLink_FrSkySPort | Lua_Telemetry/DisplayApmPosition/SCRIPTS/MIXES/celinf.lua | 4 | 3087 | --
-- CellInfo lua
--
-- Copyright (C) 2014 Michael Wolkstein
--
-- https://github.com/Clooney82/MavLink_FrSkySPort
--
-- 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 ... | gpl-3.0 |
ImagicTheCat/vRP | vrp/client/veh_blacklist.lua | 1 | 1482 | -- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.veh_blacklist then return end
local VehBlacklist = class("VehBlacklist", vRP.Extension)
-- METHODS
function VehBlacklist:__construct()
vRP.Extension.__construct(self)
self.veh_models = {} -- map of model... | mit |
focusworld/binbong | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
rasolllll/tele_gold | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Godfather021/best | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
blackteamgourd/Black__Team | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
MRAHS/SBSS-v2 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
m-creations/openwrt | feeds/luci/modules/luci-base/luasrc/ccache.lua | 81 | 1651 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local nixio = require "nixio"
local debug = require "debug"
local string... | gpl-2.0 |
Sevenanths/boson-t-nouveau | NewBosonT/NewBosonT/bin/Debug/boson/data - Copy/gameover.lua | 2 | 16541 | local game_state = ...
local swidth = lt.right - lt.left
if not game_state then
game_state = { score = 0.97, stage_id = 1 }
end
local particle_trace = gen_particle_trace(game_state)
local stage_id = game_state.stage_id
local score = game_state.score
local experiment_no = lt.state.games_played
local prev_best ... | gpl-2.0 |
amohanta/rspamd | test/lua/unit/base32.lua | 9 | 1487 | -- Test zbase32 encoding/decoding
context("Base32 encodning", function()
local ffi = require("ffi")
ffi.cdef[[
void ottery_rand_bytes(void *buf, size_t n);
unsigned ottery_rand_unsigned(void);
unsigned char* rspamd_decode_base32 (const char *in, size_t inlen, size_t *outlen);
char * rspamd_encode_b... | bsd-2-clause |
paulmarsy/Console | Libraries/nmap/App/nselib/iscsi.lua | 1 | 21862 | --- An iSCSI library implementing written by Patrik Karlsson <patrik@cqure.net>
-- The library currently supports target discovery and login.
--
-- The implementation is based on packetdumps and the iSCSI RFC
-- * http://tools.ietf.org/html/rfc3720
--
-- The library contains the protocol message pairs in <code>Packet</... | mit |
yetsky/extra | luci/applications/luci-mwan3/luasrc/model/cbi/mwan/interface.lua | 1 | 10012 | -- ------ extra functions ------ --
function interfaceCheck() -- find issues with too many interfaces, reliability and metric
uci.cursor():foreach("mwan3", "interface",
function (section)
local interfaceName = section[".name"]
interfaceNumber = interfaceNumber+1 -- count number of mwan interfaces config... | gpl-2.0 |
ziz/solarus | quests/zsdx/data/enemies/khorneth.lua | 2 | 4604 | -- The boss Khorneth from @PyroNet.
-- Khorneth has two blades that must be destroyed first.
main_sprite_name = "enemies/khorneth"
left_blade_sprite_name = "enemies/khorneth_left_blade"
right_blade_sprite_name = "enemies/khorneth_right_blade"
-- State
left_blade_life = 4
right_blade_life = 4
blade_attack = false;
fu... | gpl-3.0 |
osgcc/ryzom | ryzom/common/data_common/r2/r2_logic_comp.lua | 3 | 8025 | r2.logicComponents = {}
r2.logicComponents.logicEditors = {
r2.activities,
r2.dialogs,
r2.events,
}
r2.logicComponents.undoRedoInstances = {}
----- INIT ALL EDITORS ----------------------------------------------------
function r2.logicComponents:initLogicEditors()
for k, uiClas... | agpl-3.0 |
iamliqiang/prosody-modules | mod_data_access/mod_data_access.lua | 32 | 4906 | -- HTTP Access to datamanager
-- By Kim Alvefur <zash@zash.se>
local t_concat = table.concat;
local t_insert = table.insert;
local jid_prep = require "util.jid".prep;
local jid_split = require "util.jid".split;
local test_password = require "core.usermanager".test_password;
local is_admin = require "core.usermanager".... | mit |
ferstar/openwrt-dreambox | feeds/luci/luci/luci/applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua | 3 | 14262 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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
... | gpl-2.0 |
m-creations/openwrt | feeds/luci/applications/luci-app-ddns/luasrc/model/cbi/ddns/hints.lua | 34 | 6352 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local SYS = require "luci.sys"
local DDNS = require "luci.too... | gpl-2.0 |
paulmarsy/Console | Libraries/nmap/App/nselib/informix.lua | 2 | 40718 | ---
-- Informix Library supporting a very limited subset of Informix operations
--
-- Summary
-- -------
-- Informix supports both The Open Group Distributed Relational Database
-- Architecture (DRDA) protocol, and their own. This library attempts to
-- implement a basic subset of operations. It currently supports;
-- ... | mit |
ferstar/openwrt-dreambox | feeds/luci/luci/luci/modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 3 | 3383 | --[[
LuCI - Lua Configuration Interface
Copyright 2009-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: ifa... | gpl-2.0 |
sajjad94/ASD_KARBALA | plugins/en-voice.lua | 5 | 1053 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ voice : صوت ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
jozadaquebatista/textadept | doc/markdowndoc.lua | 1 | 8092 | -- Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
local ipairs, type = ipairs, type
local io_open, io_popen = io.open, io.popen
local string_format = string.format
local table_concat = table.concat
-- Markdown doclet for Luadoc.
-- Requires Discount (http://www.pell.portland.or.us/~orc/Code/disco... | mit |
loringmoore/The-Forgotten-Server | data/spells/scripts/monster/undead dragon curse.lua | 12 | 1113 | local combat = {}
for i = 30, 50 do
combat[i] = Combat()
combat[i]:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SMALLCLOUDS)
combat[i]:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
local condition = Condition(CONDITION_CURSED)
condition:s... | gpl-2.0 |
iamliqiang/prosody-modules | mod_ipcheck/mod_ipcheck.lua | 31 | 1776 |
-- mod_ipcheck.lua
-- Implementation of XEP-0279: Server IP Check <http://xmpp.org/extensions/xep-0279.html>
local st = require "util.stanza";
module:add_feature("urn:xmpp:sic:0");
module:hook("iq/bare/urn:xmpp:sic:0:ip", function(event)
local origin, stanza = event.origin, event.stanza;
if stanza.attr.type == "g... | mit |
fanzhangio/kubernetes | test/images/echoserver/template.lua | 195 | 17200 | -- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua
-- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex.
--[[
Copyright (c) 2014 - 2017 Aapo Talvensaari
All rights reserved.
Redistribu... | apache-2.0 |
osgcc/ryzom | ryzom/common/data_common/r2/r2_ui_contextual_commands_new.lua | 3 | 11236 | ----------------------------
-- CONTEXTUAL COMMANDS UI --
----------------------------
-- Code in this file manage the update of the contextual toolbar &
-- contextual menu for the current selected instance, depending on the vailable options
r2.ContextualCommands = r2.newToolbar()
r2.ContextualCommands.MenuCommands... | agpl-3.0 |
golden1232004/torch7 | test/test_sharedmem.lua | 58 | 2639 | require 'torch'
local tester = torch.Tester()
local tests = {}
local function createSharedMemStorage(name, size, storageType)
local storageType = storageType or 'FloatStorage'
local shmName = name or os.tmpname():gsub('/','_')
local isShared = true
local isSharedMem = true
local nElements = size or torch.ra... | bsd-3-clause |
m-creations/openwrt | feeds/luci/applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 61 | 1058 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
m = Map("mactodevinfo", luci.i18n.translate("MAC Device Info Overrides"), translate("Override the information returned by the MAC to Device Info Script (mac-to-devinfo) for a specified range of MAC Addresses"))
s = m:section(Ty... | gpl-2.0 |
jozadaquebatista/textadept | properties.lua | 1 | 7042 | -- Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE.
local buffer = buffer
-- Multiple Selection and Virtual Space
buffer.multiple_selection = true
buffer.additional_selection_typing = true
--buffer.multi_paste = buffer.MULTIPASTE_EACH
--buffer.virtual_space_options = buffer.VS_RECTANGULARSELECTION ... | mit |
slowglass/Restacker | libs/LibAddonMenu-2.0/controls/editbox.lua | 5 | 6493 | --[[editboxData = {
type = "editbox",
name = "My Editbox", -- or string id or function returning a string
getFunc = function() return db.text end,
setFunc = function(text) db.text = text doStuff() end,
tooltip = "Editbox's tooltip text.", -- or string id or function returning a string (optional)
... | mit |
Native-Software/Krea | CoronaGameEditor/bin/Release/Lua Repository/object.lua | 3 | 15978 | --- This module is provided as it by Native-Software for use into a Krea project.
-- @author Frederic Raimondi
-- @copyright Native-Software 2012 - All Rights Reserved.
-- @release 1.0
-- @description Object is a generic class to create a corona display object.
-- <br>Changing the content of this file is at your own ... | gpl-2.0 |
ImagicTheCat/vRP | vrp/modules/group.lua | 1 | 10789 | -- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.group then return end
local lang = vRP.lang
-- this module define the group/permission system (per character)
-- multiple groups can be set to the same player, but the gtype config option can be used to set s... | mit |
GraphicGame/quick-ejoy2d | examples/asset/particle.lua | 22 | 6848 | return {
{
component = {
{id = 3},
{name = "fire"},
{name = "ice"}
},
export = "fire",
type = "animation",
id = 0,
{
{ {
index = 0
}, {
color = 0xffffffff,
index = 1,
add = 0x00,
mat = {1024,0,0,2048,2208,80}
}},
{ {
index = 0
}, {
colo... | mit |
cbeck88/cegui-mirror-two | cegui/src/ScriptModules/Lua/support/tolua++bin/lua/doit.lua | 14 | 1915 | -- Generate binding code
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- Last update: Apr 2003
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support,... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.