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 |
|---|---|---|---|---|---|
magic0115/nginx_lua_concat_module | nginx_lua_concat_module.lua | 1 | 12986 | require "nginx_lua_concat_module_util"
local arrays = require "arrays"
local log = require "log"
local strings = require "strings"
local tables = require "tables"
local timedog = require "timedog"
local page_cache = require "page_cache"
---------------------------缓存工具开始---------------------
--[[
@param 缓存开启 set $co... | mit |
Gwynthell/FFDB | scripts/zones/Yhoator_Jungle/npcs/Ilieumort_RK.lua | 8 | 2940 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Ilieumort, R.K.
-- Outpost Conquest Guards
-- @pos 200.254 -1 -80.324 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Al_Zahbi/npcs/Iphaaf.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Iphaaf
-- Type: Mihli's Attendant
-- @zone: 48
-- @pos -28.014 -7 64.371
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/spells/jubaku_ichi.lua | 8 | 1791 | -----------------------------------------
-- Spell: Jubaku: Ichi
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------... | gpl-3.0 |
infernalnephilim/Urho-gra | bin/Data/LuaScripts/18_CharacterDemo.lua | 2 | 20894 | -- Moving character example.
-- This sample demonstrates:
-- - Controlling a humanoid character through physics
-- - Driving animations using the AnimationController component
-- - Manual control of a bone scene node
-- - Implementing 1st and 3rd person cameras, using raycasts to avoid the 3rd person ca... | mit |
Vivitarut/darkstar | scripts/globals/items/black_sole.lua | 17 | 1331 | -----------------------------------------
-- ID: 4384
-- Item: Black Sole
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
CCAAHH/best | plugins/boobs.lua | 24 | 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 |
kepler155c/opus-apps | builder/supplier.lua | 1 | 9175 | local Event = require('opus.event')
local MEProvider = require('core.meProvider')
local Message = require('core.message')
local Point = require('opus.point')
local TableDB = require('core.tableDB')
local Util = require('opus.util')
local device = _G.device
local os = _G.os
local turtle = _G.t... | mit |
Gwynthell/FFDB | scripts/zones/Carpenters_Landing/Zone.lua | 1 | 1278 | -----------------------------------
--
-- Zone: Carpenters_Landing (2)
--
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Carpenters_Landing/TextIDs");
----------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Meriphataud_Mountains_[S]/Zone.lua | 8 | 1317 | -----------------------------------
--
-- Zone: Meriphataud_Mountains_[S] (97)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Meriphataud_Mountains_[S]/TextIDs");
--------------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/mobskills/Chains_of_Cowardice.lua | 25 | 1179 | ---------------------------------------------
-- Chains of Apathy
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/keyitems");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Bastok_Markets/npcs/Reet.lua | 34 | 1352 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Reet
-- Adventurer's Assistant
-- @zone 235
-- @pos -237 -12 -41
-------------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Windurst_Waters_[S]/npcs/Ransnana.lua | 38 | 1050 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ransnana
-- Type: Standard NPC
-- @zone: 94
-- @pos -22.008 -13.339 122.819
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/Metalworks/npcs/Pius.lua | 23 | 1832 | -----------------------------------
-- Area: Metalworks
-- NPC: Pius
-- Involved In Mission: Journey Abroad
-- @pos 99 -21 -12 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zon... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Metalworks/npcs/Pius.lua | 23 | 1832 | -----------------------------------
-- Area: Metalworks
-- NPC: Pius
-- Involved In Mission: Journey Abroad
-- @pos 99 -21 -12 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zon... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/abilities/pets/stone_ii.lua | 6 | 1152 | ---------------------------------------------------
-- Stone 2
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Beadeaux/TextIDs.lua | 5 | 1373 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Bastok_Mines/npcs/Aulavia.lua | 30 | 1603 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Aulavia
-- Regional Marchant NPC
-- Only sells when Bastok controls Vollbow.
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/shop");
require("scripts/globals/conquest");
package... | gpl-3.0 |
coderpunch/evolvemod | lua/evolve/menu/tab_z_bans.lua | 1 | 3555 | --[[-----------------------------------------------------------------------------------------------------------------------
Tab with ban management
-----------------------------------------------------------------------------------------------------------------------]]--
local TAB = {}
TAB.Title = "Bans"
TAB.Descript... | apache-2.0 |
n0xus/darkstar | scripts/globals/items/prime_angler_stewpot.lua | 36 | 1919 | -----------------------------------------
-- ID: 5612
-- Item: Prime Angler Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10%
-- MP +15
-- Dexterity 2
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while healing 2
-- Accuracy 15% ... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/ginger_cookie.lua | 34 | 1344 | -----------------------------------------
-- ID: 4394
-- Item: ginger_cookie
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic Regen While Healing 5
-- Plantoid Killer 5
-- Slow Resist 5
-----------------------------------------
require("scripts/globals/status");
---------... | gpl-3.0 |
hnakamur/couv | test/test-sockname.lua | 1 | 2475 | local uv = require 'couv'
local exports = {}
local TEST_PORT = 9123
exports['tcp.sockname'] = function(test)
local connectPort
coroutine.wrap(function()
-- Wait 1 sec to avoid EADDRINUSE.
uv.sleep(1000)
local handle = uv.Tcp.new()
handle:bind(uv.SockAddrV4.new('127.0.0.1', TEST_PORT))
handle... | mit |
n0xus/darkstar | scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua | 17 | 2685 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment)
-- @pos -170 39 -504 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/spells/bluemagic/power_attack.lua | 28 | 1761 | -----------------------------------------
-- Spell: Power Attack
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 1
-- Stat Bonus: MND+1
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time: 7.2... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-Cataclysm/BlackrockCaverns/AscendantLordObsidius.lua | 1 | 1135 | local mod = DBM:NewMod(109, "DBM-Party-Cataclysm", 1, 66)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 79 $"):sub(12, -3))
mod:SetCreatureID(39705)
mod:SetZone()
mod:SetUsedIcons(8)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED",
"SPELL_AURA_REFRESH",
"SPELL_AUR... | gpl-2.0 |
qllpa/TAEFWN | plugins/lock_tag.lua | 5 | 1246 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Palborough_Mines/Zone.lua | 27 | 1673 | -----------------------------------
--
-- Zone: Palborough_Mines (143)
--
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
---------... | gpl-3.0 |
yo2seol/P4-Wireshark-Dissector | tests/outputs/heavy_hitter-ipv4.lua | 2 | 2234 | -- Auto-generated dissector from P4 header
-- Helper functions
-- Return a slice of a table
function table_slice(input_table, first, last)
local subtable = {}
for i = first, last do
subtable[#subtable + 1] = input_table[i]
end
return subtable
end
-- Convert a number to bits
function tobits(number, bitcou... | apache-2.0 |
astrofra/harfang-lua-experiments | unit-a-interceptor-remake/src/starfield.lua | 1 | 2293 | -- Starfield 3D
require 'common'
max_stars = 0
particle_size = 5.0
stars = {}
starfield_size = gs.Vector3(50, 50, 25)
camera_velocity = gs.Vector3()
pos_dt = gs.Vector3()
zoom = 100.0
camera_pos = gs.Vector3(0, 0, 5)
function starfield_init(_max_stars)
-- global stars, max_stars, starfield_size
ma... | mit |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-fenv.lua | 10 | 1366 | --- testing Lua 5.1/5.2 compatibility functions
-- these are global side-effects of pl.utils
local utils = require 'pl.utils'
local asserteq = require 'pl.test'.asserteq
local _,lua = require 'pl.app'. lua()
-- utils.execute is a compromise between 5.1 and 5.2 for os.execute changes
-- can we call Lua ?
local ok,code ... | apache-2.0 |
kurthuwig/faces | Watchfaces/jakub_chalupa/trek/face.lua | 1 | 1784 | -- This file is part of the Watchfaces project.
-- Read the file README.md for copyright and other information
function about()
local result = {}
result.author = "Jakub Chalupa"
result.name = "Trek"
return result
end
function textLayer(canvas)
timeFont:drawCentered(canvas,
DateFormat:for... | apache-2.0 |
CameronHynes/OpenRA | mods/cnc/maps/nod05/nod05.lua | 10 | 10863 | NodUnitsVehicle = { 'bike', 'bike', 'bggy', 'ltnk', 'bike', 'bike' }
NodUnitsRocket = { 'e1', 'e1', 'e1', 'e1' }
NodUnitsGunner = { 'e3', 'e3', 'e3', 'e3' }
GDIReinforceUnits = { 'e2', 'e2', 'e2', 'e2', 'e2' }
Gdi1Units = { ['e1'] = 3, ['e2'] = 1 }
Gdi2Units = { ['e1'] = 2, ['e2'] = 1 }
Gdi3Units = { ['jeep'] = 1 }
Gd... | gpl-3.0 |
n0xus/darkstar | scripts/zones/East_Ronfaure_[S]/npcs/qm5.lua | 27 | 1615 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: qm5 "???"
-- Involved in Quests: Steamed Rams
-- @pos 380.015 -26.5 -22.525
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Crawlers_Nest/TextIDs.lua | 9 | 1594 | --- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6569; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6574; -- Obtained: <item>.
GIL_OBTAINED = 6575; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6577; -- Obtaine... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Port_San_dOria/TextIDs.lua | 9 | 4857 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED_1 = 6414; -- You cannot obtain the <<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>#<<<BAD CHAR: 8280>>><<<BAD CHAR: 80>>><<<BAD CHAR: 80>>>.<<<Prompt>>>
ITEM_CANNOT_BE_OBTAINED_2 = 6415; -- You cannot obtain the <<<Possib... | gpl-3.0 |
Python1320/wire | lua/entities/gmod_wire_weight.lua | 10 | 1062 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Weight"
ENT.WireDebugName = "Weight"
if CLIENT then return end -- No more client
local MODEL = Model("models/props_interiors/pot01a.mdl")
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
... | apache-2.0 |
seeker24/butlr | plugins/warn.lua | 1 | 4462 | local plugin = {}
local function doKeyboard_warn(user_id)
local keyboard = {}
keyboard.inline_keyboard = {
{
{text = _("Reset warns"), callback_data = 'resetwarns:'..user_id},
{text = _("Remove warn"), callback_data = 'removewarn:'..user_id}
}
}
return keyboard
end
function plugin.o... | gpl-2.0 |
xennygrimmato/nmt | src/OpenNMT/onmt/modules/Bridge.lua | 8 | 2185 | --[[ Bridge between encoder and decoder. ]]
local Bridge, parent = torch.class('onmt.Bridge', 'onmt.Network')
local options = {
{
'-bridge', 'copy',
[[Define how to pass encoder states to the decoder. With `copy`, the encoder and decoder
must have the same number of layers.]],
{
enum = {'copy... | lgpl-3.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/strict.lua | 12 | 1573 | --- Checks uses of undeclared global variables.
-- All global variables must be 'declared' through a regular assignment
-- (even assigning nil will do) in a main chunk before being used
-- anywhere or assigned to inside a function.
-- @module pl.strict
require 'debug'
local getinfo, error, rawset, rawget = debug.getin... | apache-2.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-text.lua | 7 | 3375 | local T = require 'pl.text'
local utils = require 'pl.utils'
local Template = T.Template
local asserteq = require 'pl.test'.asserteq
local OrderedMap = require 'pl.OrderedMap'
local t1 = Template [[
while true do
$contents
end
]]
assert(t1:substitute {contents = 'print "hello"'},[[
while true do
... | apache-2.0 |
Python1320/wire | lua/entities/gmod_wire_expression2/core/e2doc.lua | 10 | 5189 | local eliminate_varname_conflicts = true
if not e2_parse_args then include("extpp.lua") end
local readfile = readfile or function(filename)
return file.Read("entities/gmod_wire_expression2/core/" .. filename, "LUA")
end
local writefile = writefile or function(filename, contents)
print("--- Writing to file 'data/e2d... | apache-2.0 |
adamjedlicka/ForgeUI | ForgeUI_Nameplates/ForgeUI_Nameplates.lua | 1 | 31041 | require "Window"
local ForgeUI
local ForgeUI_Nameplates = {}
-----------------------------------------------------------------------------------------------
-- Constants
-----------------------------------------------------------------------------------------------
tClassEnums = {
[GameLib.CodeEnumClass.Warrior] ... | mit |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/seq.lua | 3 | 13478 | --- Manipulating sequences as iterators.
-- @class module
-- @name pl.seq
local next,assert,type,pairs,tonumber,type,setmetatable,getmetatable,_G = next,assert,type,pairs,tonumber,type,setmetatable,getmetatable,_G
local strfind = string.find
local strmatch = string.match
local format = string.format
local mrandom = ma... | lgpl-3.0 |
kbehafarin/newfies-dialer | lua/callcenter_conf.lua | 4 | 4806 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2013 Star2Billing S.L.
--
--... | mpl-2.0 |
xjdrew/levent | tests/test_lock.lua | 1 | 1241 | local levent = require "levent.levent"
local lock = require "levent.lock"
local exceptions = require "levent.exceptions"
local e = lock.event()
local as1 = lock.async_result()
local as2 = lock.async_result()
local as3 = lock.async_result()
function dump_stats()
local t = levent.stats("all")
for k,v ... | mit |
davymai/CN-QulightUI | Interface/AddOns/DBM-Naxx/FrostwyrmLair/Kel'Thuzad.lua | 1 | 3613 | local mod = DBM:NewMod("Kel'Thuzad", "DBM-Naxx", 5)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 142 $"):sub(12, -3))
mod:SetCreatureID(15990)
mod:SetEncounterID(1114)
--mod:SetModelID(15945)--Doesn't work at all, doesn't even render.
mod:SetMinCombatTime(60)
mod:SetUsedIcons(1, 2, 3, 4, 5, 6, 7, ... | gpl-2.0 |
n0xus/darkstar | scripts/globals/weaponskills/rudras_storm.lua | 30 | 1690 | -----------------------------------
-- Rudra's Storm
-- Dagger weapon skill
-- Skill level: N/A
-- Deals triple damage and weighs target down (duration: 60s). Damage varies with TP.
-- Aligned with the Aqua Gorget, Snow Gorget & Shadow Gorget.
-- Aligned with the Aqua Belt, Snow Belt & Shadow Belt.
-- Element: N... | gpl-3.0 |
DEVOmarReal/Omar-Real | plugins/help1.lua | 1 | 9817 | do
function run (msg, matches)
local reply_id = msg ['id']
if matches[1]== 'مساعدة' and is_momod(msg) then
local omar = [[🔋 ⚡️ RealBot√ ⚡️ 🔋
📌🔶➖🔶➖🔷➖🔶➖🔷📌
📪 /مساعدة2 :: عرض اوامر العامة
📪 /مساعدة3 :: عرض اوامر الطرد
📪 /مساعدة4 :: عرض اوامر التنظيف
📪 /مساعدة5 :: عرض اوامر الميديا
📪 /مساعدة6 :: عرض اوامر... | gpl-2.0 |
p00ria/Iranbot | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ozhanf/ozhanf--bot | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
Arashbrsh/lifeiran | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackrockFoundry/localization.ru.lua | 1 | 2178 | if GetLocale() ~= "ruRU" then return end
local L
---------------
-- Gruul --
---------------
L= DBM:GetModLocalization(1161)
---------------------------
-- Oregorger, The Devourer --
---------------------------
L= DBM:GetModLocalization(1202)
---------------------------
-- The Blast Furnace --
---------------------... | gpl-2.0 |
LuaDist2/lua-aplicado | test/cases/0001-filesystem.lua | 2 | 22056 | --------------------------------------------------------------------------------
-- 0001-filesystem.lua: tests for file system
-- This file is a part of Lua-Aplicado library
-- Copyright (c) Lua-Aplicado authors (see file `COPYRIGHT` for the license)
---------------------------------------------------------------------... | mit |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WoD/localization.cn.lua | 1 | 5093 | --Mini Dragon(projecteurs@gmail.com)
--Thanks to Yike Xia
--Last update: Dec 4, 2014@11926
if GetLocale() ~= "zhCN" then return end
local L
-----------------------
-- <<<Auchindoun>>> --
-----------------------
-----------------------
-- Protector of Auchindoun --
-----------------------
L= DBM:GetModLocalization(11... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
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 |
n0xus/darkstar | scripts/zones/Horlais_Peak/bcnms/shattering_stars.lua | 19 | 2368 | -----------------------------------
-- Area: Horlais Peak
-- Name: Shattering stars - Maat Fight
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/ques... | gpl-3.0 |
CameronHynes/OpenRA | mods/ra/maps/monster-tank-madness/monster-tank-madness.lua | 6 | 13988 | AlliedUnits =
{
{ delay = 0, types = { "1tnk", "1tnk", "2tnk", "2tnk" } },
{ delay = DateTime.Seconds(3), types = { "e1", "e1", "e1", "e3", "e3" } },
{ delay = DateTime.Seconds(7), types = { "e6" } }
}
ReinforceBaseUnits = { "1tnk", "1tnk", "2tnk", "arty", "arty" }
CivilianEvacuees = { "c1", "c2", "c5", "c7", "c8" }... | gpl-3.0 |
Lexicality/AncientGLuaCrap | lua/entities/sent_ropeladder/init.lua | 1 | 1727 | include("shared.lua")
AddCSLuaFile"shared.lua"
AddCSLuaFile"cl_init.lua"
local other
function ENT:SpawnFunction( ply, tr )
if not tr.Hit then return end
local ent = ents.Create("sent_ropeladder")
ent:SetPos( tr.HitPos)
ent:Spawn()
ent:Activate()
local phys = ent:GetPhysicsObject()
if (phys:IsValid()) then
phys... | mit |
tanxunrong/mruby-toy | lualib/http/httpd.lua | 1 | 5851 | local table = table
local httpd = {}
local http_status_msg = {
[100] = "Continue",
[101] = "Switching Protocols",
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-Authoritative Information",
[204] = "No Content",
[205] = "Reset Content",
[206] = "Partial Content",
[300] = "Multiple Choices"... | mit |
n0xus/darkstar | scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua | 30 | 1726 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Proud Beard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/events... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Windurst_Waters/npcs/Zelala.lua | 38 | 1035 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Zelala
-- Type: Map Marker
-- @zone: 238
-- @pos 169.855 -1.295 -3.238
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
--------------... | gpl-3.0 |
tanxunrong/mruby-toy | service/datacenterd.lua | 1 | 2164 | local skynet = require "skynet"
local command = {}
local database = {}
local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
return db
else
return query(db[key], ...)
end
end
function command.QUERY(key, ...)
local d = database[key]
if d then
return query(d, ...)
end
... | mit |
xubigshu/skynet | examples/login/gated.lua | 17 | 2187 | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
... | mit |
mpeterv/luacheck | src/luacheck/check.lua | 3 | 3133 | local check_state = require "luacheck.check_state"
local core_utils = require "luacheck.core_utils"
local parse_inline_options = require "luacheck.stages.parse_inline_options"
local parser = require "luacheck.parser"
local stages = require "luacheck.stages"
local utils = require "luacheck.utils"
local inline_option_fi... | mit |
tperalta82/OpenWRT-Builder | feeds/xwrt/webif-iw-lua-openssl/files/usr/lib/lua/lua-xwrt/openssl.lua | 26 | 38586 | require("lua-xwrt.addon.string")
require("lua-xwrt.addon.uci")
require("lua-xwrt.html.form")
require("lua-xwrt.xwrt.translator")
require("lua-xwrt.addon.io")
--io.stderr = io.stdout
function upload(dir,file)
print(dir,file)
local algo = util.file_load("/etc/openssl/"..dir.."/"..file)
print([[Pragma: public
Expires: 0... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Den_of_Rancor/npcs/HomePoint#2.lua | 19 | 1194 | -----------------------------------
-- Area: Den_of_Rancor
-- NPC: HomePoint#2
-- @pos 182 34 -62 160
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Den_of_Rancor/TextIDs");
require("scripts/globals/homepoin... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/bloody_bolt.lua | 11 | 1425 | -----------------------------------------
-- ID: 18151
-- Item: Bloody Bolt
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
function onAdditionalEf... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Gamygyn.lua | 16 | 1259 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Marquis Gamygyn
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
funct... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua | 78 | 1344 | --[[
Luci configuration model for statistics - collectd dns 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 a... | gpl-2.0 |
coderpunch/evolvemod | lua/evolve/plugins/sh_jail.lua | 1 | 3404 | --[[-----------------------------------------------------------------------------------------------------------------------
Jail a player
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Jail"
PLUGIN.Descripti... | apache-2.0 |
n0xus/darkstar | scripts/globals/weaponskills/rampage.lua | 30 | 1464 | -----------------------------------
-- Rampage
-- Axe weapon skill
-- Skill level: 175
-- Delivers a five-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:50%
-- 100%TP 2... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/_5ia.lua | 19 | 2623 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Strange Apparatus
-- @pos: 375 20 -259 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
require("scripts/zones/Maze_of_Shakhrami/TextIDs");
require("scripts/globals/strangeapparatus");
-----... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Aurora/AddOns/Blizzard_VoidStorageUI.lua | 1 | 2763 | local F, C = unpack(select(2, ...))
C.themes["Blizzard_VoidStorageUI"] = function()
F.SetBD(VoidStorageFrame, 20, 0, 0, 20)
F.CreateBD(VoidStoragePurchaseFrame)
VoidStorageBorderFrame:DisableDrawLayer("BORDER")
VoidStorageBorderFrame:DisableDrawLayer("BACKGROUND")
VoidStorageBorderFrame:DisableDrawLayer("OVERLAY... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Maurinne.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maurinne
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -127.185 0.000 179.193
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Shepherd.lua | 23 | 1059 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Goblin Shepherd
-- Note: Place holder Soulstealer Skullnix
-----------------------------------
require("scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Mount_Kamihr/Zone.lua | 34 | 1279 | -----------------------------------
--
-- Zone: Mount Kamihr
--
-----------------------------------
package.loaded["scripts/zones/Mount_Kamihr/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Kamihr/TextIDs");
---------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/AlTaieu/npcs/HomePoint#1.lua | 17 | 1228 | -----------------------------------
-- Area: AlTaieu
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/homepoint");
--------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Daruru_WW.lua | 30 | 3076 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Daruru, W.W.
-- Type: Border Conquest Guards
-- @pos -120.393 -25.822 -592.604 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
hamed9898/maxbott | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
misterdustinface/gamelib-common-polyglot | src/for-niki/fonts.lua | 2 | 1810 | return {
-- ["CaviarDreams 20"] = love.graphics.newFont("fonts/Caviar-Dreams/CaviarDreams.ttf", 20),
-- ["CaviarDreams 16"] = love.graphics.newFont("fonts/Caviar-Dreams/CaviarDreams.ttf", 16),
-- ["Pacifico 20"] = love.graphics.newFont("fonts/pacifico/Pacifico.ttf", 20),
-- ["Quicksand 20"] = love.graphics.newF... | gpl-2.0 |
ArmanIr/loloamad | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Config/config.lua | 1 | 11722 | Qulight["media"] = {
["font"] = [=[Interface\Addons\QulightUI\Root\Media\qFont.ttf]=], -- main font in Qulight UI
["pxfont"] = [=[Interface\Addons\QulightUI\Root\Media\pxFont.ttf]=],
["fontsize"] = 13, -- size of font
["texture"] = "Interface\\AddOns\\QulightUI\\Root\\Media\\statusba... | gpl-2.0 |
Python1320/wire | lua/effects/thruster_ring.lua | 10 | 1604 |
EFFECT.Mat = Material( "effects/select_ring" )
/*---------------------------------------------------------
Initializes the effect. The data is a table of data
which was passed from the server.
---------------------------------------------------------*/
function EFFECT:Init( data )
local size = 16
self:SetCo... | apache-2.0 |
DEVOmarReal/Omar-Real | plugins/wphoto.lua | 1 | 2303 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ Update BY : ▀▄ ▄▀
▀▄ ▄▀ BY OmarReal (Omar_Real) ▀▄ ▄▀
▀▄ ▄▀ BY ALI ALNWAB (LAUESDEVD) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/LibBossIDs-1.0/LibBossIDs-1.0.lua | 1 | 67699 | --[[
Name: LibBossIDs-1.0
Revision: $Revision: 91 $
Author: Elsia
Website: http://www.wowace.com/addons/libbossids-1-0/
Documentation:
SVN: svn://svn.wowace.com/wow/libbossids-1-0/mainline/trunk
Description: Provide a table of mobIDs that belong to boss mobs (instance bosses, raid bosses, world bosses)
Dependencies: Li... | gpl-2.0 |
ddysher/turbo | examples/chunked.lua | 12 | 1209 | --- Turbo.lua Streaming write example
--
-- Copyright 2013 John Abrahamsen
--
-- 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 re... | apache-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/qm3.lua | 31 | 1464 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: The Picture ??? in Vemalpeau's house
-- Involved in Quests: Under Oath
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/windurst_salad.lua | 35 | 1465 | -----------------------------------------
-- ID: 4555
-- Item: windurst_salad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 20
-- Agility 5
-- Vitality -1
-- Ranged ACC % 8
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
n0xus/darkstar | scripts/zones/RuAun_Gardens/npcs/qm2.lua | 16 | 1440 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Seiryu's Spawn)
-- Allows players to spawn the HNM Seiryu with a Gem of the East and a Springstone.
-- @pos 569 -70 -80 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
------------------... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/items/tiger_cod.lua | 18 | 1319 | -----------------------------------------
-- ID: 4483
-- Item: tiger_cod
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Zmini/WorldFlightMap.lua | 1 | 9141 | local FlightmapCoordinates = { -- semi-accurate sizes for the different flight maps, these were manually calculated
[1] = { -- Kalimdor
left = 10970,
top = 12470,
width = 24340,
},
[2] = { -- eastern kingdoms
left = 12246.47,
top = 12257.98,
width = 28800.54,
},
[3] = { -- outland
left = 10677... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Porter_Moogle.lua | 41 | 1549 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 231
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm1.lua | 16 | 1195 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Ob(ZNM T1))
-- @pos 542 0 -129 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ruins/TextID... | gpl-3.0 |
httpomid/qw | plugins/ingroup.lua | 1 | 65164 | 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.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
ppriest/mame | plugins/json/init.lua | 6 | 22885 | -- license:MIT
-- copyright-holders:David Kolf
local exports = {}
exports.name = "luvit/json"
exports.version = "2.5.0"
exports.homepage = "http://dkolf.de/src/dkjson-lua.fsl"
exports.description = "David Kolf's JSON library repackaged for lit."
exports.tags = {"json", "codec"}
exports.license = "MIT"
exports.author =... | gpl-2.0 |
Python1320/wire | lua/entities/gmod_wire_colorer.lua | 8 | 5736 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Colorer"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Colorer"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then
local color_box_size = 64
function ENT:GetWorldTipBodySize()
... | apache-2.0 |
sini370/telelife | plugins/time.lua | 94 | 3004 | -- 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 |
n0xus/darkstar | scripts/zones/Mount_Zhayolm/npcs/_1p6.lua | 19 | 1052 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Engraved Tablet
-- @pos 320 -15.35 -379 61
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.