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 |
|---|---|---|---|---|---|
HeavensSword/darkstar | scripts/globals/weaponskills/onslaught.lua | 3 | 1959 | -----------------------------------
-- Onslaught
-- Axe weapon skill
-- Skill Level: N/A
-- Lowers target's params.accuracy. Additional effect: temporarily increases Attack.
-- Available only when equipped with the Relic Weapons Ogre Killer (Dynamis use only) or Guttler or Cleofun Axe (with Latent active).
-- These Rel... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Conflux_Surveyor.lua | 3 | 3429 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Conflux Surveyor
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts/z... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Bostaunieux_Oubliette/Zone.lua | 5 | 1690 | -----------------------------------
--
-- Zone: Bostaunieux_Oubliette (167)
--
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bostaunieux_Oubliette/TextIDs");
require("scripts/zones/Bostaunieux_Oubliette... | gpl-3.0 |
LOVE-Party/Love-LD18 | minimap.lua | 1 | 1234 | require "lib/SECS"
minimap = class:new()
function minimap:init(p,a,b,s)
self.width = 180
self.height = 180
self.x = 600
self.y = 400
self.player = p
self.arena = a
self.bulls = b
self.spawnlist = s
self.xratio = a.width/self.width
self.yratio = a.height/self.height
end
function minimap:update(... | mit |
HeavensSword/darkstar | scripts/zones/Upper_Jeuno/npcs/Couvoullie.lua | 3 | 1397 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Couvoullie
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
f... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_riverfin_soup.lua | 3 | 1635 | -----------------------------------------
-- ID: 6069
-- Item: Bowl of Riverfin Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- Accuracy % 14 Cap 90
-- Ranged Accuracy % 14 Cap 90
-- Attack % 18 Cap 80
-- Ranged Attack % 18 Cap 80
-- Amorph Killer 5
-----------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/serving_of_flounder_meuniere.lua | 3 | 1316 | -----------------------------------------
-- ID: 4584
-- Item: serving_of_flounder_meuniere
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 6
-- Mind -1
-- Ranged ACC 15
-- Ranged ATT % 14
-- Ranged ATT Cap 25
-- Enmity -3
-----------------------------------------
require("scrip... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/blast_shot.lua | 10 | 1354 | -----------------------------------
-- Blast Shot
-- Marksmanship weapon skill
-- Skill Level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:30%
-- 100%TP 2... | gpl-3.0 |
ariasezar/smart | plugins/groupmanager.lua | 1 | 131994 | local function modadd(msg)
local hash = "gp_lang:"..msg.to.id
local lang = redis:get(hash)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
if not lang then
return '#》*You are not bot admin*🚷'
else
return '#》_شما مدیر ربات نیستید_🚷'
end
end
... | gpl-3.0 |
marcoag/awesome-config | themes/vinyl/theme.lua | 1 | 5820 | -- bamboo, awesome3 theme, by zhuravlik, based on Zenburn
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesom... | gpl-3.0 |
Wedmer/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/rule-details.lua | 9 | 8793 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require "luci.sys"
local utl = require "luci.util"
local dsp = require "luci.dispatcher"
local nxo = require "nixio"
local ft = require "luci... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Vemalpeau.lua | 5 | 2106 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Vemalpeau
-- Involved in Quests: Under Oath
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fq.lua | 5 | 2281 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: West Plate
-- !pos 150 -32 14 195
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local state0 = 8;
local state1 = 9;
local DoorOffset = npc:getID() - 25; -- _5f1
if... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Giddeus/npcs/Laa_Mozi.lua | 5 | 1769 | -----------------------------------
-- Area: Giddeus
-- NPC: Laa Mozi
-- Involved in Mission 1-3
-- !pos -22 0 148 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");... | gpl-3.0 |
icrazyboy/- | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
Openarl/PathOfBuilding | Classes/ListControl.lua | 1 | 14466 | -- Path of Building
--
-- Class: List Control
-- Basic list control.
--
-- This is an abstract base class; derived classes can supply these properties and methods to configure the list control:
-- .label [Adds a label above the top left corner]
-- .dragTargetList [List of controls that can receive drag events from th... | mit |
vmercierfr/kong | kong/cli/config.lua | 21 | 2239 | #!/usr/bin/env lua
local constants = require "kong.constants"
local cutils = require "kong.cli.utils"
local IO = require "kong.tools.io"
local args = require("lapp")(string.format([[
For development purposes only.
Duplicate an existing configuration for given environment.
Usage: kong config [options]
Options:
-c,... | mit |
ind9/kong | spec/plugins/ssl/fixtures.lua | 29 | 1779 | return {
cert = [[-----BEGIN CERTIFICATE-----
MIICSTCCAbICCQDZ7lxm1iUKmDANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJV
UzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEN
MAsGA1UECgwES29uZzELMAkGA1UECwwCSVQxETAPBgNVBAMMCHNzbDEuY29tMB4X
DTE1MDUxOTAwNTAzNloXDTE1MDYxODAwNTAzNlowaTELMAkGA1UEBhMCVVMxEzAR
BgNVBAgMCkNh... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Al_Zahbi/npcs/Suldiran.lua | 5 | 1196 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Suldiran
-- Type: NPC Quest
-- !pos 42 -7 -43 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Al_Zahbi/TextIDs");
require("scripts/globals/npc_util");
... | gpl-3.0 |
wsmith323/hammerspoon | extensions/crash/init.lua | 9 | 1479 | --- === hs.crash ===
---
--- Various features/facilities for developers who are working on Hammerspoon itself, or writing extensions for it. It is extremely unlikely that you should need any part of this extension, in a normal user configuration.
local crash = require "hs.crash.internal"
local fnutils = require "hs.fn... | mit |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/npcs/Gallijaux.lua | 5 | 3489 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Gallijaux
-- Starts The Rivalry
-- !pos -14 -2 -45 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("sc... | gpl-3.0 |
mosy210/fast-spam | plugins/service_entergroup.lua | 279 | 2147 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = chat_name or ''
chat_id = "chat#id" .. (... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/spells/shellra_v.lua | 5 | 1115 | -----------------------------------------
-- Spell: Shellra
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
func... | gpl-3.0 |
legospacy/rainbow-arena | objects/entities/Combatant.lua | 1 | 1057 | --- Require ---
local Class = require("lib.hump.class")
local vector = require("lib.hump.vector")
local util = require("lib.util")
local circle = require("util.circle")
--- ==== ---
--- Classes ---
local ent_Physical = require("objects.entities.Physical")
--- ==== ---
--- Class definition ---
local ent_Combatant ... | mit |
lu-zero/vlc | share/lua/intf/luac.lua | 116 | 2333 | --[==========================================================================[
luac.lua: lua compilation module for VLC (duplicates luac)
--[==========================================================================[
Copyright (C) 2010 Antoine Cellerier
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Xarcabard/npcs/Jeantelas_RK.lua | 3 | 2960 | -----------------------------------
-- Area: Xarcabard
-- NPC: Jeantelas, R.K.
-- Type: Outpost Conquest Guards
-- !pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requ... | gpl-3.0 |
xtao/ntopng | scripts/lua/if_stats_ndpi.lua | 1 | 2182 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "graph_utils"
interface.find(ifname)
is_historical = interface.isHistoricalInterface(interface.name2id(ifname))
ifstats = interface.getStats()
format = _... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/iron_tempest.lua | 25 | 1382 | -----------------------------------
-- Iron Tempest
-- Great Axe weapon skill
-- Skill Level: 40
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
wsmith323/hammerspoon | extensions/doc/makeLuaDocs.lua | 21 | 14722 | -- -[x] do separate parse of manual text for lua.man and lua.func so manual actually approximates real manual with function defs in chapters
-- -[x] instead of converting . to _ in func, create sub tables
-- -[x] same for man? No, hs.doc then splits toc into submodules/modules
-- -[x] move func to root?
-- -[ ] a way ... | mit |
HeavensSword/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_EV.lua | 5 | 1228 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel EV
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
-----... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/pets/inferno.lua | 4 | 1110 | ---------------------------------------------------
-- Inferno
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
---------------------------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Western_Adoulin/npcs/Dangueubert.lua | 7 | 1338 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dangueubert
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- !pos 5 0 -136 256
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/bowl_of_humpty_soup.lua | 3 | 1034 | -----------------------------------------
-- ID: 4521
-- Item: Bowl of Humpty Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 35
-- Magic 5
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
EMCTeamIR/bot | plugins/lock_eng.lua | 52 | 1075 |
antienglish = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_eng'] then
... | gpl-2.0 |
LuaDist2/fun-alloyed | tests/indexing.lua | 5 | 1319 | --------------------------------------------------------------------------------
-- index
--------------------------------------------------------------------------------
print(index(2, range(5)))
--[[test
2
--test]]
print(index(10, range(5)))
--[[test
nil
--test]]
print(index(2, range(0)))
--[[test
nil
--test]]
pr... | mit |
cogwerkz/gUI4 | gUI4_UnitFrames/units/focus.lua | 1 | 11785 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local oUF = gUI4.oUF
if not oUF then return end
local parent = gUI4:GetModule("gUI4_UnitFrames")
if not parent then return end
local module = parent:NewModule("Focus", "GP_AceEvent-3.0")
l... | mit |
HeavensSword/darkstar | scripts/globals/spells/regen_ii.lua | 5 | 1480 | -----------------------------------------
-- Spell: Regen II
-- Gradually restores target's HP.
-----------------------------------------
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status")... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Legata.lua | 5 | 1692 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Legata
-- Starts and Finishes Quest: Starting a Flame (R)
-- @zone 230
-- !pos 82 0 116
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
arrayfire/arrayfire-lua | examples/image_processing/morphing.lua | 4 | 3900 | --[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | bsd-3-clause |
natuan241/Algorithm-Implementations | Warshall/Lua/Yonaba/warshall_test.lua | 26 | 1155 | -- Tests for warshall.lua
local w = require 'warshall'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, d)
if #t ~= #d then return false end
if #t[1] ~= #d[1] then return false end
local n = #t
... | mit |
HeavensSword/darkstar | scripts/globals/items/bowl_of_miso_ramen+1.lua | 3 | 1571 | -----------------------------------------
-- ID: 6461
-- Item: bowl_of_miso_ramen_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +105
-- STR +6
-- VIT +6
-- DEF +11% (cap 175)
-- Magic Evasion +11% (cap 55)
-- Magic Def. Bonus +6
-- Resist Slow +15
----------------------------------... | gpl-3.0 |
Wedmer/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua | 11 | 54059 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NX ... | apache-2.0 |
pd2-linux/tina | feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/processes.lua | 78 | 1093 | --[[
Luci configuration model for statistics - collectd processes 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 Lic... | gpl-2.0 |
grmmhp/RaycastingEngine | conf.lua | 1 | 3361 | function love.conf(t)
t.identity = 'RaycastingEngine' -- The name of the save directory (string)
t.version = "0.10.2" -- The LÖVE version this game was made for (string)
t.console = true -- Attach a console (boolean, Windows only)
t.accelerometerjoystick = true -- Enable t... | gpl-3.0 |
natuan241/Algorithm-Implementations | Floyd_Warshall/Lua/Yonaba/floyd_warshall_test.lua | 26 | 1638 | -- Tests for floyd_warshall.lua
local fw = require 'floyd_warshall'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, d)
if #t ~= #d then return false end
if #t[1] ~= #d[1] then return false end
loc... | mit |
qwook/dpsht | libs/loveframes/objects/imagebutton.lua | 7 | 7576 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- imagebutton object
local newobject = loveframes.NewObject("imagebutton", "loveframes_object_imagebutton", true)
--[[----... | mit |
HeavensSword/darkstar | scripts/globals/items/inferno_axe.lua | 7 | 1034 | -----------------------------------------
-- ID: 16709
-- Item: Inferno Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(pl... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 76 | 2595 | --[[
Luci statistics - ups plugin diagram definition
Copyright © 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright © 2012 David Woodhouse <dwmw2@infradead.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | gpl-2.0 |
haolly/slua_source_note | build/luajit-2.1.0-beta3/src/jit/dis_x86.lua | 49 | 32818 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
ignacio/LuaNode | test/simple/test-next-tick-errors.lua | 2 | 1053 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
function test()
local order = {}
local exceptionHandled = false
-- This nextTick function will throw an error. It should only be called once.
-- When it throws an error, it should still get removed from the queue.
process.nextTick(... | mit |
pd2-linux/tina | feeds/luci/applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua | 117 | 18881 | --[[
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 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua | 23 | 8232 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 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
htt... | apache-2.0 |
Wedmer/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua | 62 | 2782 | -- 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 uci = require "luci.model.uci".cursor()
local ipc = require "luci.ip"
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/spells/protectra_v.lua | 5 | 1030 | -----------------------------------------
-- Spell: Protectra V
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
crazyhamedboy/bbb | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
samijon/best | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Donmo-Boronmo_WW.lua | 3 | 2997 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Donmo-Boronmo, W.W.
-- Type: Outpost Conquest Guards
-- !pos -294.470 15.806 420.117 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Davoi/npcs/Sedal-Godjal.lua | 5 | 3545 | -----------------------------------
-- Area: Davoi
-- NPC: Sedal-Godjal
-- Mini Quest used in : Whence Blows the Wind
-- !pos 185 -3 -116 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("script... | gpl-3.0 |
alip/envtag | src/commands/stats.lua | 1 | 5352 | #!/usr/bin/env lua
-- envtag stats command
-- vim: set ft=lua et sts=4 sw=4 ts=4 fdm=marker:
-- Copyright 2009 Ali Polatel <alip@exherbo.org>
-- Distributed under the terms of the GNU General Public License v2
require "alt_getopt"
require "envutils"
local log = envutils.log
local logv = envutils.logv
local function ... | gpl-2.0 |
alexazhou/VeryNginx | verynginx/lua_script/module/status.lua | 2 | 2138 | -- -*- coding: utf-8 -*-
-- -- @Date : 2015-01-27 05:56
-- -- @Author : Alexa (AlexaZhou@163.com)
-- -- @Link :
-- -- @Disc : record nginx infomation
local json = require "json"
local _M = {}
local KEY_STATUS_INIT = "I_"
local KEY_START_TIME = "G_"
local KEY_TOTAL_COUNT = "F_"
local KEY_TOTAL_COUNT_SUC... | lgpl-3.0 |
Maliv/cyber | plugins/invite.lua | 52 | 1260 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
muhkuh-sys/org.muhkuh.tests-uart | templates/test.lua | 1 | 4409 | module("@MODULE_NAME@", package.seeall)
require("parameters")
require("uart_test")
CFG_strTestName = "@TEST_NAME@"
CFG_aParameterDefinitions = {
{
name="verbose",
default=0,
help="Verbose level.",
mandatory=false,
validate=parameters.test_uint32,
constrains=nil
},
{
name="unit",
default=0,
help=... | gpl-2.0 |
dkorolev/tarantool | test/app/pcall.test.lua | 9 | 1157 | #!/usr/bin/env tarantool
print[[
--------------------------------------------------------------------------------
-- #267: Bad exception catching
--------------------------------------------------------------------------------
]]
box.cfg{
logger="tarantool.log",
slab_alloc_arena=0.1,
}
function pcalltest()
... | bsd-2-clause |
haolly/slua_source_note | jit/jit/bcsave.lua | 40 | 18344 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
Dota-2-5v5v5v5/GameFolder | scripts/vscripts/trialsofretribution.lua | 1 | 100298 | -- This is the primary trialsofretribution trialsofretribution script and should be used to assist in initializing your game mode
TRIALSOFRETRIBUTION_VERSION = "1.00"
-- Set this to true if you want to see a complete debug output of all events/processes done by trialsofretribution
-- You can also change the cvar '... | gpl-3.0 |
christakahashi/nodemcu-firmware | lua_examples/mcp23008/mcp23008_leds.lua | 82 | 1504 | ---
-- @description Shows control of 8 GPIO pins/LEDs via I2C with the MCP23008 I/O expander.
-- Tested on odeMCU 0.9.5 build 20150213.
-- @date March 02, 2015
-- @circuit Connect 8 LEDs withs resistors to the GPIO pins of the MCP23008.
-- Connect GPIO0 of the ESP8266-01 module to the SCL pin of the MCP23008.
-- Co... | mit |
HeavensSword/darkstar | scripts/globals/items/gastraphetes.lua | 3 | 4276 | -----------------------------------------
-- ID: 19001
-- Item: Gastraphetes
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WE... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-coovachilli/luasrc/model/cbi/coovachilli_radius.lua | 12 | 1823 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/items/plate_of_tentacle_sushi.lua | 3 | 1460 | -----------------------------------------
-- ID: 5215
-- Item: plate_of_tentacle_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Mind -1
-- Accuracy % 20 (cap 18)
-- Ranged Accuracy % 20 (cap 18)
-- Double Attack 1
--------------------------------... | gpl-3.0 |
lu-zero/vlc | share/lua/playlist/metacafe.lua | 113 | 2150 | --[[
$Id$
Copyright © 2007 the VideoLAN team
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.
This program is distribut... | gpl-2.0 |
mosy210/fast-spam | plugins/torrent_search.lua | 223 | 1059 | local https = require ('ssl.https')
local ltn12 = require ("ltn12")
local function search_kickass(query)
local url = 'https://kat.cr/json.php?q='..URL.escape(query)
local resp = {}
local b,c = https.request
{
url = url,
protocol = "tlsv1",
sink = ltn12.sink.table(resp)
}
resp = table.concat(... | gpl-2.0 |
crazyhamedboy/bbb | plugins/anti_spam.lua | 435 | 3886 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
EMCTeamIR/bot | plugins/anti_spam.lua | 435 | 3886 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
mahdib9/99 | plugins/ingroup.lua | 5 | 60011 | 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[tostr... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/spells/huton_ichi.lua | 7 | 1074 | -----------------------------------------
-- Spell: Huton: Ichi
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Hall_of_Transference/Zone.lua | 5 | 6524 | -----------------------------------
--
-- Zone: Hall_of_Transference
--
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transference/TextIDs");
require("scripts/globals/teleports");
require("script... | gpl-3.0 |
natuan241/Algorithm-Implementations | Comb_Sort/Lua/Yonaba/comb_sort_test.lua | 26 | 1166 | -- Tests for comb_sort.lua
local comb_sort = require 'comb_sort'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
... | mit |
dromozoa/dromozoa-http | test/test_uri.lua | 1 | 1774 | -- Copyright (C) 2015,2019 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http 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,... | gpl-3.0 |
pd2-linux/tina | feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-chan.lua | 80 | 1726 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/abilities/warlocks_roll.lua | 1 | 2834 | -----------------------------------
-- Ability: Warlock's Roll
-- Enhances magic accuracy for party members within area of effect
-- Optimal Job: Red Mage
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 46
-- Phantom Roll +1 Value: 1
--
-- Die Roll |No RDM |With RDM
-- -------- -------- -----------
-- 1 ... | gpl-3.0 |
forivall-mirrors/orxonox-game-code | data/gui/scripts/CampaignMenu.lua | 1 | 2757 | --CampaignMenu.lua
local P = createMenuSheet("CampaignMenu")
function P:onShow()
P:updateButtons()
end
function P.updateButtons()
P.updateButton(0, winMgr:getWindow("orxonox/MissionOneButton"))
P.updateButton(1, winMgr:getWindow("orxonox/MissionTwoButton"))
P.updateButton(2, winMgr:getWindow("orxonox... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/twashtar.lua | 3 | 3305 | -----------------------------------------
-- ID: 19457
-- Item: Twashtar
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPON... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 5 | 3759 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- !pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
ind9/kong | spec/unit/dao/entities_schemas_spec.lua | 13 | 9528 | local api_schema = require "kong.dao.schemas.apis"
local consumer_schema = require "kong.dao.schemas.consumers"
local plugins_configurations_schema = require "kong.dao.schemas.plugins_configurations"
local validations = require "kong.dao.schemas_validation"
local validate_entity = validations.validate_entity
require "... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/items/uberkuchen.lua | 3 | 1298 | -----------------------------------------
-- ID: 5615
-- Item: uberkuchen
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 10
-- MP % 3 (cap 15)
-- Intelligence 3
-- HP Recovered While Healing 2
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/glo... | gpl-3.0 |
xtao/ntopng | scripts/lua/modules/traffic_stats.lua | 1 | 5384 | --
-- (C) 2014 - ntop.org
--
-- ########
function updateKey(hash_name, key_name, value)
io.write("# "..key_name.." += "..value.."\n")
if(hash_name[key_name] == nil) then
hash_name[key_name] = value
else
hash_name[key_name] = hash_name[key_name] + value
end
end
-- ######
function hash2json(hash_n... | gpl-3.0 |
Deiz/naev | dat/missions/sirius/achack/achack04.lua | 10 | 16446 | --[[
-- This is the fourth mission in the Academy Hack minor campaign.
-- This mission is started from a helper event.
--]]
include "fleethelper.lua"
include "proximity.lua"
include "enum.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1... | gpl-3.0 |
captain-mayhem/captainsengine | heroquest/HQClient/scripts/events.lua | 2 | 2497 | attacktable = {n = 0;}
hittable = {n = 0;}
turntable = {n = 0;}
movetable = {n = 0;}
starttable = {n = 0;}
function attacking(x, y)
local name = getCreatureProperty(x, y, "name");
local plyr = getCreatureProperty(x, y, "player");
local size = table.getn(attacktable);
if size < 1 then
return
end
for i=s... | lgpl-2.1 |
Wedmer/luci | build/luadoc/luadoc/doclet/debug.lua | 175 | 1048 | -----------------------------------------------------------------
-- LuaDoc debugging facilities.
-- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $
-----------------------------------------------------------------
module "luadoc.doclet.debug"
function printline()
print(string.rep('-', 79))
end
------... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Despachiaire.lua | 5 | 2356 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Despachiaire
-- !pos 108 -40 -83 26
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local currentCOPMission = pl... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Mupia_RK.lua | 3 | 2967 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Mupia, R.K.
-- Border Conquest Guards
-- !pos -241.334 -1 478.602 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require(... | gpl-3.0 |
vmercierfr/kong | kong/vendor/resty_http.lua | 21 | 6248 | local pairs = pairs
local type = type
local tonumber = tonumber
local tostring = tostring
local setmetatable = setmetatable
local encode_args = ngx.encode_args
local tcp = ngx.socket.tcp
local concat = table.concat
local insert = table.insert
local upper = string.upper
local lower = string.lower
local sub ... | mit |
HeavensSword/darkstar | scripts/zones/Kazham/npcs/Majjih_Bakrhamab.lua | 4 | 1086 | -----------------------------------
-- Area: Kazham
-- NPC: Majjih Bakrhamab
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
function onTrade(... | gpl-3.0 |
dromozoa/dromozoa-http | test/test_proxy.lua | 1 | 1176 | -- Copyright (C) 2019 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http 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-3.0 |
marcoag/awesome-config | themes/obscur/theme.lua | 2 | 5486 | -- oscur, awesome3 theme, by Manuel F. <mfauvell@esdebian.org>,
-- licensed under the Creative Commons Attribution-Share (Alike License: http://creativecommons.org/licenses/by-sa/3.0/)
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config ... | gpl-3.0 |
peymankhanas8487/Horror_Avatar | plugins/groupmanager.lua | 166 | 11272 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_cr... | gpl-2.0 |
Wedmer/luci | libs/luci-lib-nixio/root/usr/lib/lua/nixio/fs.lua | 184 | 3723 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
dkorolev/tarantool | src/lua/net_box.lua | 1 | 33196 | -- net_box.lua (internal file)
local msgpack = require 'msgpack'
local fiber = require 'fiber'
local socket = require 'socket'
local log = require 'log'
local errno = require 'errno'
local ffi = require 'ffi'
local digest = require 'digest'
local yaml = require 'yaml'
local urilib = require 'uri'
-- packet codes
loca... | bsd-2-clause |
aciditeam/deep-gp | deepImport.lua | 1 | 2990 | ----------------------------------------------------------------------
--
-- Deep Genetic Programming: Reifying an AI researcher.
--
-- Functions for data import
--
----------------------------------------------------------------------
----------------------------------------------------------------------
-- Imports
r... | mit |
pd2-linux/tina | feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua | 78 | 1628 | --[[
Luci configuration model for statistics - collectd df 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 at... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.