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 |
|---|---|---|---|---|---|
RezaShomare1/xy | bot/xybot.lua | 1 | 8173 | 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 = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Benaige.lua | 36 | 1982 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Benaige
-- Standard Merchant NPC
-- @zone 230
-- @pos-142,-6 47
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config.lua | 80 | 1153 | --[[
LuCI - Lua Configuration Interface
(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.controller.l... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/base/luasrc/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | gpl-2.0 |
coderpunch/evolvemod | lua/evolve/plugins/sh_respawn.lua | 1 | 1228 | --[[-----------------------------------------------------------------------------------------------------------------------
Respawn a player
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Respawn"
PLUGIN.Des... | apache-2.0 |
theopolis/thrift | lib/lua/TJsonProtocol.lua | 42 | 18656 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"), you ma... | apache-2.0 |
n0xus/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kalimahf.lua | 34 | 1033 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kalimahf
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/East_Sarutabaruta/npcs/Taby_Canatahey.lua | 34 | 1067 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Taby Canatahey
-- @pos -119.119 -4.106 -524.347 116
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Sarutabaruta/TextIDs... | gpl-3.0 |
misterdustinface/gamelib-common-polyglot | src/try-to-make-a-language/symbiosis/parser.lua | 1 | 8977 | local constants = require 'ast-constants'
local parser = {}
local behavior_head = {
to_insert = constants.end_expression,
capture_following = 0,
delay_capture_while = {},
capture_until = {},
following_name = "comment after end_expression",
}
behavior_head['@'] = {
to_insert = constants.assign_value,
capt... | gpl-2.0 |
coderpunch/evolvemod | lua/evolve/plugins/sh_ranks.lua | 1 | 3501 | --[[-----------------------------------------------------------------------------------------------------------------------
Ranking
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Ranking"
PLUGIN.Description ... | apache-2.0 |
n0xus/darkstar | scripts/zones/Abyssea-Uleguerand/Zone.lua | 32 | 1548 | -----------------------------------
--
-- Zone: Abyssea - Uleguerand
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Uleguerand/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abys... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rohn_Ehlbalna.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rohn Ehlbalna
-- Type: Standard NPC
-- @zone: 94
-- @pos -43.473 -4.5 46.496
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Outer_Horutoto_Ruins/Zone.lua | 28 | 1816 | -----------------------------------
--
-- Zone: Outer_Horutoto_Ruins (194)
--
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zone... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Al_Zahbi/npcs/Zazarg.lua | 38 | 1028 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zazarg
-- Type: Stoneserpent General
-- @zone: 48
-- @pos -41.675 -8 104.452
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/silken_squeeze.lua | 36 | 1215 | -----------------------------------------
-- ID: 5630
-- Item: Silken Squeeze
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +4
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Mashasha_WW.lua | 30 | 3063 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Mashasha, W.W.
-- Border Conquest Guards
-- @pos -599.903 -41.441 165.776 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conqu... | gpl-3.0 |
LuaDist2/lua-cassandra | spec/01-unit/01-rockspec_spec.lua | 1 | 2985 | local _setfenv = setfenv
local function exec(cmd)
local tmp = os.tmpname()
os.execute(cmd.." > "..tmp)
local f = assert(io.open(tmp, "r"))
local stdout = f:read("*a")
os.remove(tmp)
return stdout
end
if not _setfenv then
_setfenv = function(fn, env)
local i = 1
while true do
local name = d... | mit |
Lucaszw/DIGITS | tools/torch/utils.lua | 8 | 8567 | -- Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
require 'torch' -- torch
require 'image' -- for color transforms
package.path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path
require 'logmessage'
------------- UTILITY FUNCTIONS ---------------------------... | bsd-3-clause |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/contrib/luadoc/lua/luadoc/taglet/standard.lua | 93 | 16319 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Porter_Moogle.lua | 41 | 1560 | -----------------------------------
-- Area: Southern San d'Oria [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 80
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/So... | gpl-3.0 |
n0xus/darkstar | scripts/zones/AlTaieu/mobs/Jailer_of_Love.lua | 23 | 5580 | -----------------------------------
-- Area: Al'Taieu
-- NM: Jailer of Love
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
----------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Aravoge_TK.lua | 28 | 4900 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aravoge, T.K.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run M... | gpl-3.0 |
Python1320/wire | lua/entities/gmod_wire_user.lua | 9 | 1183 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire User"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "User"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsIni... | apache-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-GUI/DBM-GUI_DropDown.lua | 1 | 11523 | -- *********************************************************
-- ** Deadly Boss Mods - GUI **
-- ** http://www.deadlybossmods.com **
-- *********************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich (Tanda... | gpl-2.0 |
kurthuwig/faces | Watchfaces/anasha_cummings/now/face.lua | 1 | 1080 | -- This file is part of the Watchfaces project.
-- Read the file README.md for copyright and other information
function about()
local result = {}
result.author = "Anasha Cummings"
result.name = "Now"
return result
end
HOUR_COLORS = {
0xffbc1700,
0xffbb258e,
0xffa52dc3,
0xff5e1b9d,
... | apache-2.0 |
n0xus/darkstar | scripts/zones/Xarcabard/npcs/Cavernous_Maw.lua | 58 | 1897 | -----------------------------------
-- Area: Xarcabard
-- NPC: Cavernous Maw
-- @pos 270 -9 -70
-- Teleports Players to Abyssea - Uleguerand
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-DragonSoul/localization.cn.lua | 1 | 6845 | -- Simplified Chinese by Diablohu(diablohudream@gmail.com)
-- Last update: 2/25/2012
if GetLocale() ~= "zhCN" then return end
local L
-------------
-- Morchok --
-------------
L= DBM:GetModLocalization(311)
L:SetWarningLocalization({
KohcromWarning = "%s:%s"--Bossname, spellname. At least with this we can get bo... | gpl-2.0 |
n0xus/darkstar | scripts/globals/mobskills/Laser_Shower.lua | 14 | 1190 | ---------------------------------------------
-- Laser_Shower
--
-- Description: Deals Darkness damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes:
---------------------------------------------
require("scripts/globals/se... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm6.lua | 19 | 2295 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm6 (???) (Tower 6)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 363.481 23.600 6.335 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/weaponskills/upheaval.lua | 30 | 1538 | -----------------------------------
-- Upheaval
-- Great Axe weapon skill
-- Skill Level: 357
-- Delivers a four-hit attack. Damage varies with TP.
-- In order to obtain Upheaval, the quest Martial Mastery must be completed.
-- Aligned with Flame Gorget, Light Gorget & Shadow Gorget.
-- Aligned with Flame Belt, ... | gpl-3.0 |
coderpunch/evolvemod | lua/evolve/plugins/sv_version.lua | 1 | 1281 | --[[-----------------------------------------------------------------------------------------------------------------------
Evolve version
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Version"
PLUGIN.Descr... | apache-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackwingDescent/localization.es.lua | 1 | 6751 | if GetLocale() ~= "esES" and GetLocale() ~= "esMX" then return end
local L
-------------------------------
-- Dark Iron Golem Council --
-------------------------------
L = DBM:GetModLocalization(169)
L:SetWarningLocalization({
SpecWarnActivated = "Cambia el objetivo a %s!",
specWarnGenerator = "¡Generador ... | gpl-2.0 |
tperalta82/OpenWRT-Builder | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/html/tbform.lua | 19 | 5330 | --[[
--------------------------------------------------------------------------------
-- lineform.lua
--
-- Description: library of framework
-- Library to manipulate forms
--
-- Author(s) [in order of work date]:
-- Fabián Omar Franzotti .
--
-- Configuration files referenced:
-- none
--------------------... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/serving_of_patriarch_sautee.lua | 36 | 1253 | -----------------------------------------
-- ID: 5677
-- Item: Serving of Patriarch Sautee
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP 60
-- Mind 7
-- MP Recovered While Healing 7
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm2.lua | 16 | 1216 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Cheese Hoarder Gigiroon(ZNM T1))
-- @pos -184 -8 24 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 86 | 1449 | --[[
Luci statistics - df plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | gpl-2.0 |
omidtarh/wezardbot | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
RockySeven3161/Unknown.. | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
n0xus/darkstar | scripts/globals/spells/katon_ni.lua | 17 | 1247 | -----------------------------------------
-- Spell: Katon: Ni
-- Deals fire damage to an enemy and lowers its resistance against water.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
----... | gpl-3.0 |
n0xus/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/HomePoint#1.lua | 17 | 1203 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
require("scripts/globals... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-ChamberOfAspects/localization.de.lua | 1 | 4981 | if GetLocale() ~= "deDE" then return end
local L
----------------------------
-- The Obsidian Sanctum --
----------------------------
-- Shadron --
---------------
L = DBM:GetModLocalization("Shadron")
L:SetGeneralLocalization({
name = "Shadron"
})
----------------
-- Tenebron --
----------------
L = DBM:GetM... | gpl-2.0 |
DEVOmarReal/Omar-Real | plugins/badword.lua | 3 | 3363 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Update BY : ▀▄ ▄▀
▀▄ ▄▀ BY OmarReal (Omar_Real) ▀▄ ▄▀
▀▄ ▄▀ BY ALI ALNWAB (LAUESDEVD) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
mpeterv/busted | busted/modules/files/moonscript.lua | 9 | 2814 | local path = require 'pl.path'
local ok, moonscript, line_tables, util = pcall(function()
return require 'moonscript', require 'moonscript.line_tables', require 'moonscript.util'
end)
local _cache = {}
-- find the line number of `pos` chars into fname
local lookup_line = function(fname, pos)
if not _cache[fname]... | mit |
davymai/CN-QulightUI | Interface/AddOns/Skada/locale/frFR.lua | 1 | 20662 | local L = LibStub("AceLocale-3.0"):NewLocale("Skada", "frFR", false)
if not L then return end
L["Absorb"] = "Absorbe"
L["Absorb details"] = "Détails d'absorption"
L["Absorbed"] = "Absorbé"
L["Absorbs"] = "Absorptions"
L["Absorbs and healing"] = "Absorptions et soins"
L["Absorb spells"] = "Sorts d'absorption"
L["Active... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/LibBossIDs-1.0/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Core/Libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Port_Windurst/npcs/Sattsuh_Ahkanpari.lua | 36 | 1598 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sattsuh Ahkanpari
-- Regional Marchant NPC
-- Only sells when Windurst controlls Elshimo Uplands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
p... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h0.lua | 17 | 4498 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Prince Royal's
-- Finishes Quest: A Boy's Dream, Under Oath
-- Involved in Missions: 3-1, 5-2, 8-2
-- @pos -38 -3 73 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
---------------... | gpl-3.0 |
DEVOmarReal/Omar-Real | supergroup.lua | 2 | 72839 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "Promote me to admin first!")
end
for k,v in pairs(result)... | gpl-2.0 |
mpeterv/luacheck | src/luacheck/profiler.lua | 3 | 3944 | -- Require luasocket only when needed.
local socket
local profiler = {}
local metrics = {
{name = "Wall", get = function() return socket.gettime() end},
{name = "CPU", get = os.clock},
{name = "Memory", get = function() return collectgarbage("count") end}
}
local functions = {
{name = "sha1", module = "v... | mit |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/bindings/wxluasocket/wxluasocket_rules.lua | 3 | 7859 | -- ----------------------------------------------------------------------------
-- Rules to build wxWidgets' wxStyledTextCtrl binding for wxLua
-- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua
-- ----------------------------------------------------------------------------
-- ------------------------... | lgpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/GnomishVendorShrinker/LibItemSearch-1.0.lua | 2 | 10291 | --[[
ItemSearch
An item text search engine of some sort
Grammar:
<search> := <intersect search>
<intersect search> := <union search> & <union search> ; <union search>
<union search> := <negatable search> | <negatable search> ; <negatable search>
<negatable search> := !<primitive search> ; <primitive... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-Cataclysm/ThroneOfTides/LadyNazjar.lua | 1 | 2683 | local mod = DBM:NewMod(101, "DBM-Party-Cataclysm", 9, 65)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 79 $"):sub(12, -3))
mod:SetCreatureID(40586)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED",
"SPELL_AURA_REMOVED",
"SPELL_CAST_START",
"SPELL_CA... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 36 | 3895 | --[[
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
$Id: init.lua... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WoD/BloodmaulSlagMines/Gugrokk.lua | 1 | 2919 | local mod = DBM:NewMod(889, "DBM-Party-WoD", 2, 385)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 12458 $"):sub(12, -3))
mod:SetCreatureID(74790)
mod:SetEncounterID(1654)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 150677 150784 150755",
"SPELL_AURA... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm2.lua | 17 | 1335 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm2 (???)
-- Involved In Quest: Messenger from Beyond
-- @pos -716 -10 66 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/comprehension.lua | 3 | 9254 | --- List comprehensions implemented in Lua. <p>
--
-- See the <a href="http://lua-users.org/wiki/ListComprehensions">wiki page</a>
-- <pre class=example>
-- local C= require 'pl.comprehension' . new()
--
-- C ('x for x=1,10') ()
-- ==> {1,2,3,4,5,6,7,8,9,10}
-- C 'x^2 for x=1,4' ()
-- ==> {1,4,9,16}
-- ... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Raimbroy.lua | 17 | 3329 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Raimbroy
-- Starts and Finishes Quest: The Sweetest Things
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
metadeus/luv | oop.lua | 1 | 3838 | local table = require "luv.table"
local loadstring, assert = loadstring, assert
local tostring, getmetatable, setmetatable, error, io, debug, type, pairs, rawget, rawset = tostring, getmetatable, setmetatable, error, io, debug, type, pairs, rawget, rawset
local ipairs, debug, require, select = ipairs, debug, require, s... | bsd-3-clause |
n0xus/darkstar | scripts/zones/Port_Jeuno/npcs/Zona_Shodhun.lua | 34 | 3745 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Zona Shodhun
-- Starts and Finishes Quest: Pretty Little Things
-- @zone 246
-- @pos -175 -5 -4
-----------------------------------
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Mesachedeau_RK.lua | 30 | 3070 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mesachedeau, R.K.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Selbina/npcs/Mathilde.lua | 19 | 1810 | -----------------------------------
-- Area: Selbina
-- NPC: Mathilde
-- Involved in Quest: Riding on the Clouds
-- @pos 12.578 -8.287 -7.576 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
req... | gpl-3.0 |
n0xus/darkstar | scripts/globals/spells/paralyze.lua | 18 | 1997 | -----------------------------------------
-- Spell: Paralyze
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-... | gpl-3.0 |
tossp/lede-k3 | package/lean/mt/drivers/mt_wifi/files/mt7615.lua | 1 | 8863 | #!/usr/bin/lua
-- Alternative for OpenWrt's /sbin/wifi.
-- Copyright Not Reserved.
-- Hua Shao <nossiac@163.com>
package.path = '/lib/wifi/?.lua;'..package.path
local vif_prefix = {"ra", "rai", "rae", "rax", "ray", "raz",
"apcli", "apclix", "apclii", "apcliy", "apclie", "apcliz", }
local function esc(x)
retur... | gpl-2.0 |
qc88209818/JHGame | JHGame/scripting/lua/luajit/LuaJIT-2.0.1/src/jit/bc.lua | 78 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-Cataclysm/WorldBosses/Xariona.lua | 1 | 3818 | local mod = DBM:NewMod("Xariona", "DBM-Party-Cataclysm", 15)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 145 $"):sub(12, -3))
mod:SetCreatureID(50061)
mod:SetModelID(32229)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START",
"SPELL_CAST_SUCCESS",
"SPELL... | gpl-2.0 |
RockySeven3161/Unknown.. | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
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.... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Metalworks/Zone.lua | 28 | 1683 | -----------------------------------
--
-- Zone: Metalworks (237)
--
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/zone");
require("scripts/globals/settings");
requi... | gpl-3.0 |
coderpunch/evolvemod | lua/evolve/plugins/sh_spectate.lua | 1 | 1692 | --[[-----------------------------------------------------------------------------------------------------------------------
Spectate a player
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Spectate"
PLUGIN.D... | apache-2.0 |
marziehf/DataAugmentationNMT | src/TemporalCrossEntropyCriterion.lua | 20 | 3816 | require 'nn'
local crit, parent = torch.class('nn.TemporalCrossEntropyCriterion', 'nn.Criterion')
--[[
A TemporalCrossEntropyCriterion is used for classification tasks that occur
at every point in time for a timeseries; it works for minibatches and has a
null token that allows for predictions at arbitrary timesteps t... | mit |
n0xus/darkstar | scripts/globals/items/coeurl_sub_+1.lua | 35 | 1922 | -----------------------------------------
-- ID: 5167
-- Item: coeurl_sub_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 15
-- Strength 6
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 80
-- Ranged ATT % 22
-- Ranged ATT ... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Crochepallade.lua | 36 | 1043 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Crochepallade -- Name is Moogle for some reason
-- @zone 80
-- @pos -46 2 -8
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextI... | gpl-3.0 |
chengyi818/openwrt | feeds/packages/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua | 15 | 2327 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
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/LICEN... | gpl-2.0 |
alexandre-mbm/SimTools | Miscellaneous/PayloadManager.lua | 2 | 1252 | -- Payload Manager 1.0.0
-- E-mail: pilotjohn at gearsdown.com
--
-- Script to automatically load an aircraft to a random payload level,
-- and to provide a simple mechanism to change payload quantity.
-- Setup:
--
-- 1. Edit "FSUIPC.ini" and add (substitute X for 1 or next # if exists):
-- [Auto]
-- X=Lua Payl... | mit |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/xavante/src/xavante/httpd.lua | 2 | 9122 | -----------------------------------------------------------------------------
-- Xavante HTTP handler
--
-- Authors: Javier Guerra and Andre Carregal
-- Copyright (c) 2004-2007 Kepler Project
--
-- $Id: httpd.lua,v 1.45 2009/08/10 20:00:59 mascarenhas Exp $
--------------------------------------------------------------... | lgpl-3.0 |
LuaDist2/lpeglabel | testrelabelparser.lua | 1 | 8694 | local re = require 'relabel'
function testerror(repatt, msg)
msg = msg:match("^%s*(.-)%s*$") -- trim
local ok, err = pcall(function () re.compile(repatt) end)
assert(not ok)
if msg:match("^[^\n]*\n(.-)$") then
-- expecting a syntax error
err = err:match("^[^\n]*\n(.-)$") -- remove first line (filename)... | mit |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Root/Libs/oUF/elements/castbar.lua | 2 | 13521 | --[[ Element: Castbar
Handles updating and visibility of unit castbars.
Widget
Castbar - A StatusBar to represent spell progress.
Sub-Widgets
.Text - A FontString to represent spell name.
.Icon - A Texture to represent spell icon.
.Time - A FontString to represent spell duration.
.Shield - A ... | gpl-2.0 |
joewan/protoc-gen-lua | example/person_pb.lua | 6 | 3534 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('person_pb')
local PERSON = protobuf.Descriptor();
local PERSON_ID_FIELD = protobuf.FieldDescriptor();
local PERSON_NAME_FIELD = protobuf.FieldDescriptor();
local PERSON_EMAIL_FIELD = protobuf.FieldDescriptor();
local PHONE = protob... | bsd-3-clause |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/list.lua | 3 | 14059 | --- Python-style list class. <p>
-- Based on original code by Nick Trout.
-- <p>
-- <b>Please Note</b>: methods that change the list will return the list.
-- This is to allow for method chaining, but please note that <tt>ls = ls:sort()</tt>
-- does not mean that a new copy of the list is made. In-place (mutable) method... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/RuLude_Gardens/npcs/Tillecoe.lua | 38 | 1037 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Tillecoe
-- Type: Standard NPC
-- @zone: 243
-- @pos 38.528 -0.997 -6.363
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
------------... | gpl-3.0 |
mpeterv/luacheck | spec/filter_spec.lua | 2 | 13644 | local filter_full = require "luacheck.filter".filter
local function filter(issue_arrays, opts)
local report = {}
for i, issues in ipairs(issue_arrays) do
local line_lengths = {}
for issue_index, issue in ipairs(issues) do
issue.line = issue_index
issue.column = 1
line_len... | mit |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-BC/localization.tw.lua | 1 | 9017 | if GetLocale() ~= "zhTW" then return end
local L
-------------------------
-- Hellfire Ramparts --
-----------------------------
-- Watchkeeper Gargolmar --
-----------------------------
L = DBM:GetModLocalization(527)
--------------------------
-- Omor the Unscarred --
--------------------------
L = DBM:GetMo... | gpl-2.0 |
n0xus/darkstar | scripts/globals/spells/bluemagic/1000_needles.lua | 27 | 1687 | -----------------------------------------
-- Spell: 1000 Needles
-- Shoots multiple needles at enemies within range
-- Spell cost: 350 MP
-- Monster Type: Plantoid
-- Spell Type: Magical (Light)
-- Blue Magic Points: 5
-- Stat Bonus: VIT+3, AGI+3
-- Level: 62
-- Casting Time: 12 seconds
-- Recast Time: 120 se... | gpl-3.0 |
xjdrew/levent | levent/queue.lua | 1 | 2966 | --[[
-- author: xjdrew
-- date: 2014-08-08
--]]
local class = require "levent.class"
local hub = require "levent.hub"
local timeout = require "levent.timeout"
local lock = require "levent.lock"
local Queue = class("Queue")
-- if maxsize is nil or less than 0, the queue size is infinite
function Queue:_init(... | mit |
n0xus/darkstar | scripts/zones/Dynamis-San_dOria/bcnms/dynamis_sandoria.lua | 16 | 1180 | -----------------------------------
-- Area: Dynamis San d'Oria
-- Name: Dynamis San d'Oria
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaSandoria]UniqueID",player:getDynamisUniqueID(1281));
SetServerVaria... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WotLK/OldStratholme/OldStratholmeWaves.lua | 1 | 2527 | local mod = DBM:NewMod("StratWaves", "DBM-Party-WotLK", 3)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 168 $"):sub(12, -3))
mod:RegisterEvents(
"UPDATE_WORLD_STATES",
"UNIT_DIED",
"CHAT_MSG_MONSTER_SAY"
)
mod.noStatistics = true
local warningWaveNow = mod:NewAnnounce("WarningWaveNow", 3)
loc... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iwinfo.lua | 78 | 1089 | --[[
Luci configuration model for statistics - collectd interface plugin configuration
(c) 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://ww... | gpl-2.0 |
ppriest/mame | 3rdparty/genie/tests/actions/vstudio/vc2010/test_filters.lua | 47 | 4151 | --
-- tests/actions/vstudio/vc2010/test_filters.lua
-- Validate generation of filter blocks in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vs2010_filters = { }
local suite = T.vs2010_filters
local vc2010 = premake.vstudio.vc2010
--
-- Setup/teardown
--
lo... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | gpl-2.0 |
Azmaedus/GarrisonJukeBox | libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Altar_Room/npcs/Magicite.lua | 19 | 1576 | -----------------------------------
-- Area: Altar Room
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @zone 152
-- @pos -344 25 43
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
SpRoXx/GTW-RPG | [resources]/GTWhospital/hospital_s.lua | 1 | 9425 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
gemini-project/contrib | ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http_headers.lua | 69 | 1716 | local rawget, rawset, setmetatable =
rawget, rawset, setmetatable
local str_gsub = string.gsub
local str_lower = string.lower
local _M = {
_VERSION = '0.01',
}
-- Returns an empty headers table with internalised case normalisation.
-- Supports the same cases as in ngx_lua:
--
-- headers.content_lengt... | apache-2.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/plasma_charge.lua | 18 | 1433 | -----------------------------------------
-- Spell: Plasma Charge
-- Covers you with magical lightning spikes. Enemies that hit you take lightning damage
-- Spell cost: 24 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: STR+3 DEX+3
-- Level: 75
-- Casting... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/withered_rolanberry.lua | 36 | 1157 | -----------------------------------------
-- ID: 5675
-- Item: Withered Rolanberry
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Intelligence 1
-- Agility -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/plantlife_modpack/dryplants/juncus.lua | 8 | 3965 | -----------------------------------------------------------------------------------------------
-- Grasses - Juncus 0.0.5
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- textures & ideas partly by Neuromancer
-- License (everything): WTFPL
-- Contai... | unlicense |
JoMiro/arcemu | src/scripts/lua/Lua/Stable Scripts/Outland/Hellfire Ramparts/BOSS_HellfireRampart_Omor.lua | 30 | 1754 | function Omor_Shadow_Bolt(Unit, event, miscunit, misc)
print "Omor Shadow Bolt"
Unit:FullCastSpellOnTarget(36987,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "A Good Shadow Bolt for you...")
end
function Omor_Spell_reflect(Unit)
print "Omor Spell reflect"
Unit:FullCastSpell(33961)
... | agpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.