repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
realhidden/wargus | scripts/orc/upgrade.lua | 1 | 14147 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/crypt-kryl-feijan/zone.lua | 3 | 5093 | -- 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 |
DashingStrike/Automato-ATITD | scripts/casting.lua | 2 | 2715 | -- Casting Box v1.1 by Bardoth, Revised by Cegaiel
-- You must manually add charcoal and fire up each casting box before pinning them up.
-- Does not take items from casting box.
dofile("common.inc");
dofile("casting.inc");
askText = singleLine([[
Casting Box v1.2 (by Bardoth Revised by Cegaiel) --
Automatically ... | mit |
jsj2008/ValyriaTear | dat/maps/layna_village/layna_village_riverbank_map.lua | 4 | 87116 | map_data = {}
-- The number of rows, and columns that compose the map
map_data.num_tile_cols = 60
map_data.num_tile_rows = 40
-- The tilesets definition files used.
map_data.tileset_filenames = {}
map_data.tileset_filenames[1] = "dat/tilesets/mountain_landscape.lua"
map_data.tileset_filenames[2] = "dat/tilesets/mount... | gpl-2.0 |
SlNPacifist/ProDBG | bin/macosx/tundra/scripts/tundra/syntax/native.lua | 13 | 10292 | -- native.lua -- support for programs, static libraries and such
module(..., package.seeall)
local util = require "tundra.util"
local nodegen = require "tundra.nodegen"
local path = require "tundra.path"
local depgraph = require "tundra.depgraph"
local _native_mt = nodegen.create_eval_subclass {
DeclToEnv... | mit |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/syntax/native.lua | 13 | 10292 | -- native.lua -- support for programs, static libraries and such
module(..., package.seeall)
local util = require "tundra.util"
local nodegen = require "tundra.nodegen"
local path = require "tundra.path"
local depgraph = require "tundra.depgraph"
local _native_mt = nodegen.create_eval_subclass {
DeclToEnv... | mit |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/resistance_torso_heavy_shot_4.meta.lua | 2 | 2755 | 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 |
NRauh/wordgrinder | src/lua/addons/docsetman.lua | 3 | 3690 | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
function Cmd.AddBlankDocument(name)
if not name then
name = PromptForString("Name of new document?", "Please enter the new document name:")
if not name or (name == "... | mit |
james2doyle/lit | deps/pathjoin.lua | 20 | 2808 | --[[lit-meta
name = "creationix/pathjoin"
description = "The path utilities that used to be part of luvi"
version = "2.0.0"
tags = {"path"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local getPrefix, splitPath, joinParts
local isWindows
if _G.jit then
isWindows = _G.jit.os == "Windows"
else
... | apache-2.0 |
hfjgjfg/eli25 | 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 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/sis_kebabi_+1.lua | 1 | 1593 | -----------------------------------------
-- ID: 5599
-- Item: sis_kebabi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -1
-- Intelligence -1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
------------------------------------... | gpl-3.0 |
mojab/.files | .config/awesome/vicious/widgets/pkg.lua | 4 | 1320 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local io = { popen = io.popen }
local math = { max = math.max }
local setmetatable = setmeta... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/interface/ActorStats.lua | 3 | 4695 | -- 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/fear_blue.lua | 3 | 1301 | -- 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 |
BinChengfei/openwrt-3.10.14 | 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 |
RyMarq/Zero-K | scripts/hoverheavyraid.lua | 1 | 1951 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local fireNum = 1
local fire = {
piece 'fire1',
piece 'fire2',
piece 'fire3',
}
local body = piece 'body'
local wakes_1 = piece 'jetl'
local wakes_2 = piece 'jetr'
local wakes_3 = piece 'jetb'
local function WobbleUnit()
local wobbl... | gpl-2.0 |
RyMarq/Zero-K | scripts/turretmissile.lua | 2 | 5917 | local base = piece 'base'
local turret = piece 'turret'
local lever = piece 'lever'
local pod = piece 'pod'
local l_poddoor = piece 'l_poddoor'
local r_poddoor = piece 'r_poddoor'
local base2 = piece 'base2'
local door = piece 'door'
local doorpist = piece 'doorpist'
local arm = piece 'arm'
local hand = piece 'hand'
l... | gpl-2.0 |
RyMarq/Zero-K | effects/weapexp_puff.lua | 7 | 4514 | -- weapexp_puff
-- puff_fire2
return {
["weapexp_puff"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 0,
water = false,
properties = {
a... | gpl-2.0 |
Ferk/Dungeontest | mods/default_extras/farming/init.lua | 6 | 1744 | -- Global farming namespace
farming = {}
farming.path = minetest.get_modpath("farming")
-- Load files
dofile(farming.path .. "/api.lua")
dofile(farming.path .. "/nodes.lua")
dofile(farming.path .. "/hoes.lua")
-- WHEAT
farming.register_plant("farming:wheat", {
description = "Wheat seed",
inventory_image = "farming_... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Metalworks/npcs/Moyoyo.lua | 5 | 1035 | -----------------------------------
-- Area: Metalworks
-- NPC: Moyoyo
-- Type: Standard NPC
-- @zone: 237
-- @pos: 19.508 -17 26.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/ParaWorld/ParaWorldMinimapSurfaceRealtime.lua | 1 | 5195 | --[[
Title: ParaWorld Minimap Surface Realtime
Author(s): LiXizhi
Date: 2020/8/24
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/ParaWorld/ParaWorldMinimapSurfaceRealtime.lua");
local ParaWorldMinimapSurfaceRealtime = commonlib.gettabl... | gpl-2.0 |
NRauh/wordgrinder | src/lua/addons/widescreen.lua | 3 | 2213 | -- © 2013 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
-----------------------------------------------------------------------------
-- Fetch the maximum allowed width.
function GetMaximumAllowedWidth(screenwidth)
local set... | mit |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua | 92 | 7735 | --[[
LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes
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
]]--
module "luci.asteri... | gpl-2.0 |
zcaliptium/Serious-Engine | Sources/luajit/src/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | gpl-2.0 |
p00ria/Grandex | plugins/Shekayat.lua | 2 | 1056 | do
local function action_by_reply(extra, success, result)
if result.from.username then
user_name = '@'..result.from.username
else
user_name = ''
end
local text = result.from.peer_id
send_large_msg(extra.receiver, 'شکایت شما برای کاربر @' ..result.from.username..' ثبت شد \nبه زودی اطلاعات... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_junk/shared.lua | 1 | 3424 | SWEP.ViewModel = "models/weapons/v_aegiskit.mdl"
SWEP.WorldModel = "models/props_debris/wood_board06a.mdl"
SWEP.AmmoIfHas = true
SWEP.Primary.ClipSize = 1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "SniperRound"
SWEP.Primary.Delay = 1
SWEP.Primary.DefaultClip = 6
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.D... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/World/ChunkCpp.lua | 1 | 9385 | --[[
Title: Chunk keep data both on Lua and C++
Author(s): LiXizhi
Date: 2013/8/27
Desc: 16*16(*256) block columns
Since LuaJit is very fast. we will keep data on lua as well, to eliminate all ParaTerrain.GetBlockTemplateByIdx calls.
ParaTerrain.SetBlockTemplateByIdx is still the performance bottle neck.
------------... | gpl-2.0 |
catch222/neural-style | loadcaffe_wrapper.lua | 58 | 2411 | local ffi = require 'ffi'
require 'loadcaffe'
local C = loadcaffe.C
--[[
Most of this function is copied from
https://github.com/szagoruyko/loadcaffe/blob/master/loadcaffe.lua
with some horrible horrible hacks added by Justin Johnson to
make it possible to load VGG-19 without any CUDA dependency.
--]]
local fu... | mit |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-radvd/luasrc/model/cbi/radvd/prefix.lua | 74 | 3766 | --[[
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 |
RyMarq/Zero-K | LuaRules/Configs/StartBoxes/Oktogon v3.lua | 7 | 1759 | local rings = { -- could also get them from map VFS but this way various infrastructure can also in theory access it
{ -- grass (middle)
{ 3389, 9071},
{ 3355, 3466},
{ 8765, 3235},
{ 8910, 8835},
}, { -- outer 1
{ 955, 7866},
{ 4324, 992},
{11148, 4376},
{ 7317, 11477},
}, { -- outer 2
{ ... | gpl-2.0 |
knixeur/notion | mod_xrandr/test_xrandr.lua | 3 | 1864 | -- {{{ mock notion context
local firstscreen = {
geom = function() return { x=0, y=0, w=1680, h=1050 } end,
name = function() return "WScreen<1>" end,
id = function() return 0 end
}
local secondscreen = {
geom = function() return { x=1680, y=0, w=1920, h=1080 } end,
name = function() return "WScreen... | lgpl-2.1 |
Grocel/wire-extras | lua/autorun/client/lib-gui-panel-client.lua | 2 | 5397 | include ("autorun/shared/lib-gui-panel-shared.lua")
--load schemes
guiP_schemeTable = {}
for k,sch in pairs(guiP_colourScheme) do
table.insert(guiP_schemeTable, k)
end
------------------------CLIENT / SERVER COMMUNICATIONS------------------------------
--For enabling / disabling panel (draw code)
function umGetPane... | apache-2.0 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_target_priority.lua | 1 | 15420 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/ui/Focusable.lua | 3 | 1365 | -- 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/creeping_dark.lua | 3 | 1507 | -- 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 |
DashingStrike/Automato-ATITD | scripts/flax_auto.lua | 1 | 40965 | -- flax_auto.lua v1.2 -- by Jimbly, tweaked by Cegaiel and
-- KasumiGhia, revised by Tallow, revised by Tripps
--
-- Plant and harvest seeds then plant and harvest flax, repeat
-- Draws water when needed, optionally rots flax, optionally
-- stores products
--
-- Works Reliably: 2x2, 3x3, 4x4, 5x5
-- May Work (depend... | mit |
gleachkr/luakit | tests/async/test_module_binds_have_descriptions.lua | 2 | 2277 | --- Ensure all module bindings have descriptions.
--
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
local test = require("tests.lib")
local lousy = require("lousy")
local T = {}
local modes = require "modes"
local clear_all_mode_bindings = function ()
local mode_list = modes.get_modes()
for mode_name i... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/model/cbi/asterisk/dialzones.lua | 91 | 3529 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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: trunks.l... | gpl-2.0 |
terinux/ahhhh | plugins/ingroup.lua | 2 | 44019 |
do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tost... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/distortion.lua | 3 | 1417 | -- 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/plugins/monitors/network/active_monitoring/checks/system/active_monitoring.lua | 1 | 4953 | --
-- (C) 2019-21 - ntop.org
--
local checks = require("checks")
local ts_utils = require("ts_utils_core")
local plugins_utils = require("plugins_utils")
local am_utils = plugins_utils.loadModule("active_monitoring", "am_utils")
-- Enable do_trace messages
local do_trace = false
local script = {
-- Script category... | gpl-3.0 |
RyMarq/Zero-K | LuaUI/Widgets/chili/Controls/multiprogressbar.lua | 8 | 4470 | --// =============================================================================
--- Multiprogressbar module
--- Multiprogressbar fields.
-- Inherits from Control.
-- @see control.Control
-- @table Multiprogressbar
-- @bool[opt = false] drawBorder should the border be drawn?
-- @tparam {r, g, b, a} borderColor spec... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Mines/npcs/Gregory.lua | 5 | 1033 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gregory
-- Type: ENM
-- @zone: 234
-- @pos: 51.530 -1 -83.940
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bast... | gpl-3.0 |
DashingStrike/Automato-ATITD | scripts/pottery_wheel.lua | 2 | 8308 | -- Pottery_Wheel.lua v1.0 -- by Darkfyre. Credits to Cegaiel for the base code taken from apiary.lua, time_left code from wood.lua, and elements of the mining_ore.lua
--
-- assert(loadfile("luaScripts/common.inc"))(); --
dofile("common.inc");
askText = singleLine([[
Pottery Wheel - Make Jugs v1.0 by Darkfyre --
... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/tutorial-combat-stats/objects.lua | 3 | 2734 | -- 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/texts/tutorial/stats-calc/calc5.lua | 3 | 1092 | -- 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 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/libs/httpclient/luasrc/httpclient/receiver.lua | 93 | 6049 | --[[
LuCI - Lua Development Framework
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$
]]--
requ... | gpl-2.0 |
kamran2222/Blackeagles | plugins/ingroup.lua | 202 | 31524 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Mines/npcs/Boytz.lua | 1 | 1708 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Boytz
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");... | gpl-3.0 |
RyMarq/Zero-K | units/energysolar.lua | 1 | 2346 | return { energysolar = {
unitname = [[energysolar]],
name = [[Solar Collector]],
description = [[Small Powerplant (+2)]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildCostMet... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/spells/spells.lua | 3 | 16903 | -- 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/init_autofirstbuildfacing.lua | 2 | 2497 | -- $Id$
function widget:GetInfo()
return {
name = "Auto First Build Facing",
desc = "Set buildfacing toward map center on the first building placed",
author = "zwzsg with lotsa help from #lua channel",
date = "October 26, 2008", --29 May 2014
license = "Free",
layer = ... | gpl-2.0 |
RyMarq/Zero-K | effects/arch.lua | 25 | 3934 | -- archshells
-- archplosion
return {
["archshells"] = {
shells = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.97,
... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v2/get/interface/data.lua | 1 | 10429 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local alert_utils = require "alert_utils"
local json = require("dkjson")
local ts_utils = require("ts_utils_core")
local plugins_utils = require("plugins_uti... | gpl-3.0 |
matin-igdery/og | plugins/all.lua | 28 | 4675 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/thirdparty/socket/tp.lua | 146 | 3608 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $
-----------------------------------------------------------------------------
--------------------------... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/goblin_pie.lua | 1 | 1514 | -----------------------------------------
-- ID: 4539
-- Item: goblin_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 12
-- Magic 12
-- Dexterity -1
-- Agility 3
-- Vitality -1
-- Charisma -5
-- Defense % 9
-----------------------------------------
require("script... | gpl-3.0 |
dodo/uzful | widget/calendar.lua | 1 | 4773 | --------------------------------------------------------------------------------
-- @author dodo
-- @copyright 2011 https://github.com/dodo
-- @release v3.4-503-g4972a28
-- original code made by Bzed and published on http://awesome.naquadah.org/wiki/Calendar_widget
------------------------------------------------------... | gpl-3.0 |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/ide/xcode5.lua | 25 | 28102 | -- Xcode 5 Workspace/Project file generation
module(..., package.seeall)
local path = require "tundra.path"
local nodegen = require "tundra.nodegen"
local util = require "tundra.util"
local native = require "tundra.native"
local xcode_generator = {}
xcode_generator.__index = xcode_generator
function xcode_generator... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/GUI/EditCodePage.lua | 1 | 5393 | --[[
Title: EditCode Page
Author(s): LiXizhi
Date: 2014/1/21
Desc: # is used as the line seperator \r\n. Space key is replaced by _ character.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/GUI/EditCodePage.lua");
local EditCodePage = commonlib.ge... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ca.lua | 1 | 2335 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Mahogany Door
-- Involved In Quest: Making Headlines
-- Working 100%
-- Unable to find EventID for Making Headlines quest. Used dialog ID instead.
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
re... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | 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 |
vince06fr/prosody-modules | mod_limit_auth/mod_limit_auth.lua | 31 | 1377 | -- mod_limit_auth
local st = require"util.stanza";
local new_throttle = require "util.throttle".create;
local period = math.max(module:get_option_number(module.name.."_period", 30), 0);
local max = math.max(module:get_option_number(module.name.."_max", 5), 1);
local tarpit_delay = module:get_option_number(module.nam... | mit |
RyMarq/Zero-K | LuaUI/Widgets/gui_chili_endgraph.lua | 2 | 15900 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "EndGame Stats",
desc = "v0.913 Chili replacement for default end game statistics",
author = "Funkenc... | gpl-2.0 |
purebn/ShadowBot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
abasshacker/abbas00 | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
fmassa/nn | SpatialDivisiveNormalization.lua | 39 | 5171 | local SpatialDivisiveNormalization, parent = torch.class('nn.SpatialDivisiveNormalization','nn.Module')
function SpatialDivisiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9,9):fill(... | bsd-3-clause |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/wild_steak.lua | 1 | 1320 | -----------------------------------------
-- ID: 4519
-- Item: wild_steak
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 4
-- Intelligence -2
-- Attack % 25
-- Attack Cap 50
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
groupforspeed/API-WaderTG | plugins/saveplug.lua | 19 | 1055 | --Created by: @WaderTGTeam
--Powered by: @WaderTGTeam
--âڑ ï¸ڈCopyRight all right reservedâڑ ï¸ڈ
local function saveplug(extra, success, result)
local msg = extra.msg
local name = extra.name
local receiver = get_receiver(msg)
if success then
local file = 'plugins/'..name..'.lua'
print('File saving to:'... | gpl-2.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/en-info.lua | 1 | 9193 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OSAMA ▀▄ ▄▀
▀▄ ▄▀ BY OSAMA (@OS_AA23) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OSAMA ▀▄ ▄▀
▀▄ ▄▀ info user : معلوماتي ▀▄ ▄▀
▀▄... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/slice_of_juicy_mutton.lua | 1 | 1332 | -----------------------------------------
-- ID: 4335
-- Item: slice_of_juicy_mutton
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 35
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
rezaforever/ViVo | plugins/stats.lua | 866 | 4001 | 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_prin... | gpl-2.0 |
fegimanam/best | plugins/stats.lua | 866 | 4001 | 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_prin... | gpl-2.0 |
lucaskolstad/dotfiles | .imapfilter/config.lua | 1 | 1248 | #!/usr/bin/env lua
-- This is the entrypoint of the imapfilter application into my configuration.
local thisfile = debug.getinfo(1, 'S').source:match("@(.*)$")
-- This file is always named config.lua so remove
-- as many chars to find the dirname.
local thisdir = thisfile:sub(1, -11)
-- And add it to the load path
pa... | mit |
james2doyle/lit | luvit-loader.lua | 3 | 5886 | --[[
Copyright 2014-2016 The Luvit Authors. All Rights Reserved.
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 o... | apache-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/rooms/forest_clearing.lua | 3 | 3897 | -- 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_chili.lua | 6 | 12249 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Framework",
desc = "Hot GUI Framework",
author = "jK",
date = "WIP",
li... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Entity/EntityBlockBone.lua | 1 | 13863 | --[[
Title: BlockBone Entity
Author(s): LiXizhi
Date: 2015/9/23
Desc: ctrl+right click to open editor.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Entity/EntityBlockBone.lua");
local EntityBlockBone = commonlib.gettable("MyCompany.Aries.Game.En... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Heavens_Tower/npcs/Chumimi.lua | 1 | 3012 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Chumimi
-- Starts and Finishes Quest: The Three Magi
-- @zone 242
-- @pos 0 30 21
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
hfjgjfg/eli25 | plugins/id.lua | 355 | 2795 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
RyMarq/Zero-K | gamedata/armordefs.lua | 2 | 6288 |
Spring.Echo("Loading ArmorDefs_posts")
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local armorDefs = {
SUBS = {
"subraider",
"subscout",
"subtacmissile",
},
CHICKEN = {
"nes... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Guruna-Maguruna.lua | 1 | 1535 | -----------------------------------
-- Area: Port Windurst
-- NPC: Guruna-Maguruna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
----------------------... | gpl-3.0 |
eXhausted/Ovale | scripts/ovale_mage_spells.lua | 1 | 11357 | local OVALE, Ovale = ...
local OvaleScripts = Ovale.OvaleScripts
do
local name = "ovale_mage_spells"
local desc = "[7.0] Ovale: Mage spells"
local code = [[
# Mage spells and functions.
Define(arcane_affinity 166871)
SpellInfo(arcane_affinity duration=15)
Define(arcane_barrage 44425)
SpellInfo(arcane_barrage cd=... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Corann.lua | 1 | 2080 | -----------------------------------
-- Area: Port Bastok
-- NPC: Corann
-- Start & Finishes Quest: The Quadav's Curse
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Port_B... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Memory/PatternBlockEdge.lua | 1 | 2286 | --[[
Title: block edges or corners
Author(s): LiXizhi
Date: 2017/12/25
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Memory/PatternBlockEdge.lua");
local PatternBlockEdge = commonlib.gettable("MyCompany.Aries.Game.Memory.PatternBlockEdge");
----... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Common/HttpFiles.lua | 1 | 4895 | --[[
Title: Temporary Http files used in current World
Author(s): LiXizhi
Date: 2016/12/2
Desc: files are saved to "temp/worldHttpFiles/" folder using md5(url) plus
known file extension according to Content-Type in returned http headers
or file extensions in url.
use the lib:
-----------------------------------------... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Configs/cai/accessory/targetReachableTester.lua | 2 | 1085 | local spGetUnitPosition = Spring.GetUnitPosition
local spRequestPath = Spring.RequestPath
local spGetUnitDefID = Spring.GetUnitDefID
VFS.Include("LuaRules/Utilities/isTargetReachable.lua")
function IsTargetReallyReachable(unitID, x,y,z,ux, uy, uz)
local udid = spGetUnitDefID(unitID)
local moveID = UnitDefs[udid].mov... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/buttered_nebimonite.lua | 1 | 1336 | -----------------------------------------
-- ID: 4267
-- Item: Buttered Nebimonite
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- defense % 25
-- defense Cap 75
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
madpilot78/ntopng | third-party/i18n.lua-master/spec/i18n_interpolate_spec.lua | 3 | 2499 | require 'spec.fixPackagePath'
local interpolate = require 'i18n.interpolate'
describe('i18n.interpolate', function()
it("exists", function()
assert.equal('function', type(interpolate))
end)
it("performs standard interpolation via string.format", function()
assert.equal("My name is John, I am 13", inter... | gpl-3.0 |
abasshacker/abbasgh | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-2.0 |
lubyk/dub | dub/OptParser.lua | 4 | 1366 | --[[------------------------------------------------------
# "dub" options parser
(internal) Simplified yaml parser to retrieve @dub inline options.
--]]------------------------------------------------------
local lub = require 'lub'
local lib = lub.class 'dub.OptParser'
local insert, match = table.inse... | mit |
gleachkr/luakit | lib/go_input.lua | 3 | 2051 | --- Go to the first input on a page and enter insert mode.
--
-- This module adds a key binding to quickly focus the first text input on a
-- page and enter insert mode. A count is also accepted, which allows choosing a
-- specific text input other than the first.
--
-- @module go_input
-- @copyright 2009 Aldrik Dunbar... | gpl-3.0 |
AdamDWalker/Graphics-Work | premake5.lua | 1 | 4121 |
-- A solution contains projects, and defines the available configurations
solution "graphicsByExample"
configurations { "Debug", "Release"}
flags { "Unicode" , "NoPCH"}
srcDirs = os.matchdirs("src/*")
for i, projectName in ipairs(srcDirs) do
-- A project defines one build target
... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/SceneContext/BlockBoneContext.lua | 1 | 5328 | --[[
Title: Block Bone Context
Author(s): LiXizhi
Date: 2015/9/22
Desc: When a Bone block is activated or opened, we will be entering this context.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/SceneContext/BlockBoneContext.lua");
local BlockBone... | gpl-2.0 |
RyMarq/Zero-K | units/bomberriot.lua | 1 | 3938 | return { bomberriot = {
unitname = [[bomberriot]],
name = [[Phoenix]],
description = [[Saturation Napalm Bomber]],
brakerate = 0.4,
buildCostMetal = 360,
builder = false,
buildPic = [[bomberriot.png]],
canFly = true,
... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/chili/Skins/Twilight/skin.lua | 8 | 1700 | --// =============================================================================
--// GlassSkin
local skin = {
info = {
name = "Twilight",
version = "0.1",
author = "KingRaptor",
depend = {
"DarkGlass",
},
}
}
--// =============================================================================
--/... | gpl-2.0 |
pakoito/ToME---t-engine4 | src/luajit2/src/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 |
RyMarq/Zero-K | LuaUI/Widgets/mission_results.lua | 8 | 1806 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Mission Results Handler",
desc = "What it says on the tin",
author = "KingRaptor (L.J. Lim)",
... | gpl-2.0 |
jkassman/wesnoth | data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua | 25 | 2603 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
return function(cfg)
-- Calculate next waypoint and rating for all messengers
-- Return next messenger to move and waypoint toward which it shoul... | gpl-2.0 |
RyMarq/Zero-K | gamedata/modularcomms/weapons/flakcannon.lua | 1 | 1234 | local name = "commweapon_flakcannon"
local weaponDef = {
name = [[Flak Cannon]],
accuracy = 100,
areaOfEffect = 64,
burnblow = true,
canattackground = false,
cegTag = [[flak_trail]],
craterBoost = 0,
craterMult ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.