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 |
|---|---|---|---|---|---|
daofeng2015/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 11 | 4909 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/WorldEdit/worldedit/primitives.lua | 9 | 8518 | --- Functions for creating primitive shapes.
-- @module worldedit.primitives
local mh = worldedit.manip_helpers
--- Adds a sphere of `node_name` centered at `pos`.
-- @param pos Position to center sphere at.
-- @param radius Sphere radius.
-- @param node_name Name of node to make shere of.
-- @param hollow... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Vamorcote.lua | 17 | 2625 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vamorcote
-- Starts and Finishes Quest: The Setting Sun
-- @zone: 231
-- @pos -137.070 10.999 161.855
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/No... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Uleguerand_Range/mobs/Jormungand.lua | 3 | 2435 | -----------------------------------
-- Area: Uleguaerand Range
-- NPC: Jormungand
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInit... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Goraow.lua | 34 | 2470 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Goraow
-- Starts Quests: Vengeful Wrath
-- @pos 38 .1 14 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("script... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Rubahah.lua | 20 | 1390 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Rubahah
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require(... | gpl-3.0 |
velukh/MplusLedger | Libs/AceHook-3.0/AceHook-3.0.lua | 9 | 19391 | --- **AceHook-3.0** offers safe Hooking/Unhooking of functions, methods and frame scripts.
-- Using AceHook-3.0 is recommended when you need to unhook your hooks again, so the hook chain isn't broken
-- when you manually restore the original function.
--
-- **AceHook-3.0** can be embeded into your addon, either exp... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/cup_of_caravan_tea.lua | 36 | 1282 | -----------------------------------------
-- ID: 5927
-- Item: Cup of Caravan Tea
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 22
-- MP 32
-- Charisma 6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/email/hud.lua | 12 | 1235 | local hudkit = dofile(minetest.get_modpath("email") .. "/hudkit.lua")
email.hud = hudkit()
function email.update_hud(player)
local name = player:get_player_name()
local inbox = email.get_inbox(name)
if inbox and #inbox > 0 then
if email.hud:exists(player, "email:text") then
email.hud:change(player, "email:text... | unlicense |
msburgess3200/PERP | gamemodes/perp/gamemode/sv_modules/job_dispatcher.lua | 1 | 1547 |
GM.JobPaydayInfo[TEAM_DISPATCHER] = {"as a paycheck for being a police dispatcher.", 75};
GM.JobEquips[TEAM_DISPATCHER] = function ( Player )
Player:Give("weapon_perp_nightstick");
Player:Give("weapon_perp_handcuffs");
end
function GM.Dispatcher_Join ( Player )
if (Player:HasBlacklist(GAMEMODE.teamToBlacklist[T... | mit |
unknownssassss/sudo_meti | bot/bot.lua | 4 | 15318 | tg = dofile("./tg/tdcli.lua")
URL = require("socket.url")
http = require("socket.http")
https = require("ssl.https")
ltn12 = require("ltn12")
http.TIMEOUT = 10
serpent = loadfile("./files/serpent.lua")()
feedparser = loadfile("./files/feedparser.lua")()
json = loadfile("./files/JSON.lua")()
mimetype = loadfile("./files... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bibiki_Bay/npcs/qm4.lua | 9 | 1451 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: ??? COP mission spawn Dalham
-- @pos
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bibiki_Bay/TextIDs");
------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Carpenters_Landing/Zone.lua | 2 | 1652 | -----------------------------------
--
-- 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/leremieu_taco.lua | 35 | 1867 | -----------------------------------------
-- ID: 5175
-- Item: leremieu_taco
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Health Regen While Healing 1
-- Magic Regen While Healing 1
-- Defense ... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/weapon_lock_pick.lua | 1 | 1391 |
local ITEM = {};
ITEM.ID = 43;
ITEM.Reference = "weapon_lock_pick";
ITEM.Name = "Lock Pick";
ITEM.Description = "Useful for going where you don't belong.\n\nRequires level 3 strength to use.";
ITEM.Weight = 5;
ITEM.Cost = 200;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/... | mit |
devilrap978/devil_rap65 | plugins/admin.lua | 41 | 9539 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Enhanced_Lizard.lua | 5 | 1050 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Lizard
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Outer_Horutoto_Ruins/npcs/Grounds_Tome.lua | 34 | 1157 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function on... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/translations/japanese.lua | 3 | 3112 | return {
["sprite path"] = "sprite path",
["right upperarm"] = "右 上腕",
["neck"] = "首",
["size y"] = "Y軸のサイズ",
["draw shadow"] = "影を表示",
["copy"] = "コピー",
["start size"] = "開始 サイズ",
["clip"] = "クリップ",
["size"] = "サイズ",
["reset view"] = "カメラをリセット",
["right calf"] = "右 ふくらはぎ",
["effect"] = "エフェクト",
["max"] = "最大",
["angle... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier_[S]/npcs/Luhk_Leotih_MC.lua | 38 | 1069 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Luhk Leotih, M.C.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Home_Point.lua | 8 | 1196 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Home Point
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
groupforspeed/TeleSniper | plugins/inrealm.lua | 2 | 25143 | -- 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 is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
moteus/ZipWriter | lua/ZipWriter.lua | 1 | 39352 | --- Create zip archives.
--
-- Based on http://wiki.tcl.tk/15158
--
-- @module ZipWriter
--
-- @usage
-- local ZipWriter = require "ZipWriter"
--
-- local function make_reader(fname)
-- local f = assert(io.open(fname, 'rb'))
-- local chunk_size = 1024
-- local desc = { -- `-rw-r-----` on Unix
-- ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua | 17 | 2534 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Leypoint
-- Teleport point, Quest -- NAVIGATING THE UNFRIENDLY SEAS RELATED --
-- @pos -200.027 -8.500 80.058 51
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require("scripts/globals/settings");
re... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Jeuno/npcs/Red_Ghost.lua | 34 | 2108 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Red Ghost
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/quests");
requ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/AlTaieu/mobs/Ru_aern.lua | 6 | 2998 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Ru_aern
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
-------------------------... | gpl-3.0 |
subzrk/BadRotations | Rotations/Hunter/Beastmaster/BeastmasterKuukuu.lua | 1 | 33368 | local rotationName = "Kuukuu"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1,... | gpl-3.0 |
dargosch/home_center_2_addons | Utilities/lighting.lua | 1 | 4920 | --- Functions that maupulates lighting.
-- @section lighting
--- A function that manages gradual dimming up of a device.
-- The function will see to it that the device will gradually be dimmed up from a start level to an endpoint level within a
-- specified time frame.
-- @tparam number dimmerID The ID of the dimmer... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Yuli_Yaam.lua | 36 | 1817 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Yuli Yaam
-- Involved In Quest: Wondering Minstrel
-- Working 100%
-- @zone = 238
-- @pos = -61 -4 23
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/mesecons/mesecons/actionqueue.lua | 9 | 3389 | mesecon.queue.actions={} -- contains all ActionQueue actions
function mesecon.queue:add_function(name, func)
mesecon.queue.funcs[name] = func
end
-- If add_action with twice the same overwritecheck and same position are called, the first one is overwritten
-- use overwritecheck nil to never overwrite, but just add t... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/RuAun_Gardens/npcs/HomePoint#3.lua | 3 | 1712 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#3
-- @pos -312 -42 -422 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RuAun_Garde... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-minidlna/luasrc/model/cbi/minidlna.lua | 87 | 5720 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.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... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/QuBia_Arena/mobs/Archlich_Taber_quoan.lua | 6 | 1076 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Archlich Taber'quoan
-- Mission 5-1 BCNM Fight
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnMobSpawn(mob)
end;
-------------------------------... | gpl-3.0 |
Vanderlay/tfs-TDEvent | data/lib/TWD/towerDefenseLib.lua | 1 | 7379 | dofile('data/lib/TWD/towerDefenseSpellsArea.lua')
dofile('data/lib/TWD/towerDefenseConfig.lua')
targetTurret = nil
turretPosition = nil
local twdEvents = {
"TWDOnLose",
"TWDBuildWindow",
"TWDOtherWindow",
"TWDHealthChange"
}
function Player.resetValues(self)
self:removeItem(2557,... | gpl-2.0 |
joshimoo/Algorithm-Implementations | Depth_First_Search/Lua/Yonaba/handlers/gridmap_handler.lua | 182 | 2356 | -- A grid map handler
-- Supports 4-directions and 8-directions moves
-- This handler is devised for 2d bounded grid where nodes are indexed
-- with a pair of (x, y) coordinates. It features straight (4-directions)
-- and diagonal (8-directions) moves.
local PATH = (...):gsub('handlers.gridmap_handler$','')
local Nod... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/npcs/job_medic.lua | 1 | 5312 |
local NPC = {};
NPC.Name = "Emergency Medical Support Agency";
NPC.ID = 13;
NPC.Model = Model("models/players/perp2/m_4_07.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = Vector(-3788.1167, -7042, 198.0313);
NPC.Angles = Angle(0, 180, 0);
NPC.ShowChatBubble = "Normal";
... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/hunters_prelude.lua | 5 | 1489 | -----------------------------------------
-- Spell: Hunter's Prelude
-- Gives party members ranged attack accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingChe... | gpl-3.0 |
sjznxd/luci-0.11-aa | modules/admin-mini/luasrc/model/cbi/mini/luci.lua | 11 | 1381 | --[[
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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/prime_seafood_stewpot.lua | 36 | 1861 | -----------------------------------------
-- ID: 5239
-- Item: Prime Seafood Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while heal... | gpl-3.0 |
JulianVolodia/awesome | lib/awful/tooltip.lua | 4 | 9612 | -------------------------------------------------------------------------
--- Tooltip module for awesome objects.
--
-- A tooltip is a small hint displayed when the mouse cursor
-- hovers a specific item.
-- In awesome, a tooltip can be linked with almost any
-- object having a `:connect_signal()` method and receiving
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 17 | 1888 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -775 2 -460 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Xarcabard/mobs/Duke_Berith.lua | 19 | 1286 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Duke Berith
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Windurst/npcs/Lebondur.lua | 36 | 1564 | -----------------------------------
-- Area: Port Windurst
-- NPC: Lebondur
-- Regional Marchant NPC
-- Only sells when Windurst controls Vollbow.
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["sc... | gpl-3.0 |
karottenreibe/luakit | lib/go_next_prev.lua | 1 | 1591 | ----------------------------------------------------------------
-- Follow "next" or "prev" links on a page --
-- © 2009 Aldrik Dunbar (n30n) --
-- © 2010 Mason Larobina (mason-l) <mason.larobina@gmail.com> --
------------------------------------------------------------... | gpl-3.0 |
togolwb/skynet | lualib/skynet/injectcode.lua | 108 | 2610 | local debug = debug
local table = table
local FUNC_TEMP=[[
local $ARGS
return function(...)
$SOURCE
end,
function()
return {$LOCALS}
end
]]
local temp = {}
local function wrap_locals(co, source, level, ext_funcs)
if co == coroutine.running() then
level = level + 3
end
local f = debug.getinfo(co, level,"f").func
... | mit |
satreix/awesome | vicious/contrib/pop.lua | 18 | 1422 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Boris Bolgradov <>
--
-- This widget type depends on luasocket.
--
-- Widget arguments are host, port, username and
-- password, i.e.:
-- {"mail.myhost.com", 110, "John", "132435"}
----------------... | mit |
m2mselect/owrt | feeds/luci/libs/luci-lib-httpclient/luasrc/httpclient.lua | 62 | 9481 | -- Copyright 2009 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
local nixio = require "nixio"
local ltn12 = require "luci.ltn12"
local util = require "luci.util"
local table = require "table"
local http = require "luci.http.protocol"
local date = requir... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Endracion.lua | 4 | 6027 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Endracion
-- @pos -110 1 -34 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Meriphataud_Mountains/npcs/Three_Steps_IM.lua | 8 | 2967 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Three Steps, I.M.
-- Type: Border Conquest Guards
-- @pos -120.393 -25.822 -592.604 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
asimonov-im/wesnoth | data/lua/helper.lua | 2 | 9423 | --! #textdomain wesnoth
local helper = {}
local wml_actions = wesnoth.wml_actions
--! Returns an iterator over all the sides matching a given filter that can be used in a for-in loop.
function helper.get_sides(cfg)
local function f(s)
local i = s.i
while i < #wesnoth.sides do
i = i + 1
if wesnoth.match_si... | gpl-2.0 |
sjznxd/luci-0.11-aa | protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua | 24 | 4064 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | apache-2.0 |
hb9cwp/snabbswitch | src/core/memory.lua | 13 | 4287 | module(...,package.seeall)
-- For more information about huge pages checkout:
-- * HugeTLB - Large Page Support in the Linux kernel
-- http://linuxgazette.net/155/krishnakumar.html)
-- * linux/Documentation/vm/hugetlbpage.txt
-- https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt)
local ffi = require("ffi"... | apache-2.0 |
joshimoo/Algorithm-Implementations | Burrows_Wheeler_Transform/Lua/Yonaba/bwt.lua | 26 | 1501 | -- Burrows-Wheeler Transform algorithm implementation
-- See: http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform#Sample_implementation
-- Returns the Burrows-Wheeler transform of an input string
-- @str : the original string to be encoded
-- returns : the transform
-- returns : an index to be used for d... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Full_Moon_Fountain/bcnms/moonlit_path.lua | 6 | 2118 | -----------------------------------
-- Area: Full Moon Fountain
-- Name: The Moonlit Path
-----------------------------------
package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Dijkstra_Search/Lua/Yonaba/handlers/point_graph_handler.lua | 182 | 2492 | -- A point graph handler
-- This handler is devised for waypoints graphs.
-- Waypoints are locations represented via labelled nodes
-- and are connected with edges having a positive weight.
-- It assumes edges are symmetric, that is if an edge exists
-- between a and b, weight(a -> b) == weight(b -> a)
local PATH = ... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/anchovy_pizza_+1.lua | 35 | 1287 | -----------------------------------------
-- ID: 5700
-- Item: anchovy_pizza_+1
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Dexterity 1
-- Attack 21%
--wiki has no data, so just basing stats off lq version
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
sjznxd/lc-20130127 | libs/lucid-http/luasrc/lucid/http/DirectoryPublisher.lua | 52 | 1320 | --[[
LuCId HTTP-Slave
(c) 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 ipairs, require... | apache-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/netbsd/errors.lua | 24 | 3649 | -- NetBSD error messages
return {
PERM = "Operation not permitted",
NOENT = "No such file or directory",
SRCH = "No such process",
INTR = "Interrupted system call",
IO = "Input/output error",
NXIO = "Device not configured",
["2BIG"] = "Argument list too long",
NOEXEC = "Exec format error",
BADF = "Ba... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/HomePoint#1.lua | 3 | 1713 | -----------------------------------
-- Area: Bastok Mines
-- NPC: HomePoint#1
-- @pos 39.189 0.001 -42.618 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Bastok... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require "luci.asterisk"
cbimap = Map("asterisk", "Voicemail - Mailboxes")
voicemail = cbimap:section(TypedSection, "voicemail", "Voicemail Boxes")
voicemail.addremove = true
voicemail.anonymous = t... | apache-2.0 |
xToken/CompMod | lua/CompMod/Classes/Alien/Fade/shared.lua | 1 | 2858 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Classes\Alien\Fade\shared.lua
-- - Dragon
function Fade:GetGroundTransistionTime()
return 0.2
end
local kFadeOffsetSpeed = 5
local kFadeModelOffsetAmount = 0.70
local originalFadeOnCreate
originalFadeOn... | mit |
m2mselect/owrt | feeds/luci/build/luadoc/luadoc/config.lua | 165 | 1234 | -------------------------------------------------------------------------------
-- LuaDoc configuration file. This file contains the default options for
-- luadoc operation. These options can be overriden by the command line tool
-- @see luadoc.print_help
-- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp... | gpl-2.0 |
daofeng2015/luci | build/luadoc/luadoc/config.lua | 165 | 1234 | -------------------------------------------------------------------------------
-- LuaDoc configuration file. This file contains the default options for
-- luadoc operation. These options can be overriden by the command line tool
-- @see luadoc.print_help
-- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp... | apache-2.0 |
mahdmahdia/DBDB | plugins/ctrl.lua | 1 | 17560 |
local LANG = 'en'
local function run(msg, matches)
if permissions(msg.from.id, msg.to.id, "lang_install") then
-------------------------
-- Translation version --
-------------------------
set_text(LANG, 'version', '0.2')
set_text(LANG, 'versionExtended', 'Translation version 0.2')
-------------
-- P... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Valkurm/Zone.lua | 15 | 2267 | -----------------------------------
--
-- Zone: Dynamis-Valkurm
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
----------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Garlaige_Citadel/TextIDs.lua | 3 | 1648 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6537; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6540; -- Obtained: <item>.
GIL_OBTAINED = 6541; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6543; -- Obtained... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/WorldEdit/worldedit/manipulations.lua | 11 | 18361 | --- Generic node manipulations.
-- @module worldedit.manipulations
local mh = worldedit.manip_helpers
--- Sets a region to `node_names`.
-- @param pos1
-- @param pos2
-- @param node_names Node name or list of node names.
-- @return The number of nodes set.
function worldedit.set(pos1, pos2, node_names)
... | unlicense |
msburgess3200/PERP | gamemodes/perp/entities/weapons/video_camera/shared.lua | 1 | 4341 |
if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.PrintName = "Video Camera"
SWEP.Slot = 2
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
SWEP.Author = "RedMist"
SWEP.Instructions = "Right Click: Start Recording"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.ViewModelFOV = 62... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_flounder_meuniere.lua | 35 | 1581 | -----------------------------------------
-- 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
-----------------------------------------
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/timbre_timbers_taco.lua | 35 | 1566 | -----------------------------------------
-- ID: 5173
-- Item: timbre_timbers_taco
-- Food Effect: 1hour, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 3
-- Ranged Accuracy % 8 (cap 15)
-----------------------------------------
requir... | gpl-3.0 |
subzrk/BadRotations | Rotations/Mage/Frost/FrostLemon.lua | 1 | 52676 | local rotationName = "Lemon" -- Change to name of profile listed in options drop down
--------------
--- COLORS ---
--------------
local colorPurple = "|cffC942FD"
local colorBlue = "|cff00CCFF"
local colorGreen = "|cff00FF00"
local colorRed = "|cffFF0000"
local colorWhite = "|cffFFFFFF"
local colorGol... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-radvd/luasrc/model/cbi/radvd/route.lua | 74 | 2503 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
lo... | apache-2.0 |
rm-code/Graphoon | Graphoon/Graph.lua | 2 | 9554 | local current = (...):gsub('%.[^%.]+$', '');
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Node = require(current .. '.Node');
local Edge = require(current .. '.Edge');
-- ------------------------------------------------
-- Module
--... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Gizel.lua | 34 | 1481 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Gizel
-- Type: Event Scene Replayer NPC
-- @zone: 230
-- @pos -34.412 0.000 33.362
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/init.lua | 1 | 4378 |
// Include the shared init file.
include("sh_init.lua");
// Include the server files.
include("sv_config.lua");
include("sv_hooks.lua");
include("sv_networking.lua");
include("sv_player.lua");
include("sv_items.lua");
include("sv_skills.lua");
include("sv_misc.lua");
include("sv_chat.lua");
include("sv_organizations... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Soni-Muni.lua | 34 | 2634 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Soni-Muni
-- Starts & Finishes Quest: The Amazin' Scorpio
-- @pos -17.073 1.749 -59.327 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
zaeem998/vtbot | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute,... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/bedroom.lua | 7 | 6824 | local S = homedecor.gettext
local bedcolors = {
{ "black", "#000000:200" }, --new cg72
{ "brown", "#603010:175" },
{ "blue", "#0000d0:150" },
{ "cyan", "#009fa7:150" }, --new cg72
{ "darkgrey", "#101010:175" },
{ "dark_green", "#007000:150" },
{ "green", "#00d000:150" }, --ne... | unlicense |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua | 11 | 1452 | --[[
Luci configuration model for statistics - collectd tcpconns 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 Lice... | apache-2.0 |
sjznxd/luci-0.11-aa | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config.lua | 12 | 1216 | --[[
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: netdiscover_devinfo_config.lua 5... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/onslaught.lua | 4 | 2292 | -----------------------------------
-- 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).
... | gpl-3.0 |
sajadaltaiee/Raobot | plugins/invite.lua | 393 | 1225 | 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 |
karottenreibe/luakit | config/theme.lua | 9 | 1668 | --------------------------
-- Default luakit theme --
--------------------------
local theme = {}
-- Default settings
theme.font = "monospace normal 9"
theme.fg = "#fff"
theme.bg = "#000"
-- Genaral colours
theme.success_fg = "#0f0"
theme.loaded_fg = "#33AADD"
theme.error_fg = "#FFF"
theme.error_bg = "#F00"
--... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua | 17 | 2425 | -----------------------------------
-- Area: Apollyon CS
-- NPC: Carnagechief_Jackbodokk
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
------------... | gpl-3.0 |
mahdmahdia/DBDB | plugins/sticker.lua | 1 | 1064 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/stickers/'..msg.from.id..'.webp'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_document(get_receiver(msg), file, ok_cb, false)
... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 5 | 6099 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_statistics.luci_statistics", package.seeall)
function index()
require("nixio.fs")
require("luci.util")
req... | apache-2.0 |
suchipi/pac3 | lua/pac3/editor/client/init.lua | 1 | 5137 | include("autorun/pac_init.lua")
pace = pace or {}
include("language.lua")
include("wear.lua")
include("select.lua")
include("view.lua")
include("config.lua")
include("parts.lua")
include("saved_parts.lua")
include("logic.lua")
include("undo.lua")
include("fonts.lua")
include("basic_mode.lua")
include("deprecated_fe... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-ahcp/luasrc/model/cbi/ahcp.lua | 78 | 3645 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("ahcpd", translate("AHCP Server"), translate("AHCP is an autoconfiguration protocol " ..
"for IPv6 and dual-stack IPv6/IPv4 networks designed to be used in place of router " ..
"discovery or DHCP on ne... | gpl-2.0 |
JulianVolodia/awesome | lib/beautiful/init.lua | 7 | 5346 | ----------------------------------------------------------------------------
--- Theme library.
--
-- @author Damien Leone <damien.leone@gmail.com>
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Damien Leone, Julien Danjou
-- @release @AWESOME_VERSION@
-- @module beautiful
-----------... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sea_Serpent_Grotto/npcs/Bou_the_Righteous.lua | 38 | 1153 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Bou the Righteous
-- Type: Involved in the "Sahagin Key Quest"
-- @zone: 176
-- @pos -125.029 46.568 -334.778
--
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
anhhung1303/NyuFX | templates/Fun/create_audio.lua | 2 | 1667 | -- Number to bytes in little-endian
function ntob(n, bytes)
if n < 0 then
n = n + 2^(bytes*8)
end
local bin = {}
for i = 1, bytes do
bin[#bin+1] = n % 256
n = math.floor(n / 256)
end
return string.char(unpack(bin))
end
-- Open file handle
local file = io.open("templates\\Fun\\peep.wav", "wb")
-- File chun... | lgpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/RuLude_Gardens/npcs/HomePoint#1.lua | 3 | 1712 | -----------------------------------
-- Area: RuLude Gardens
-- NPC: HomePoint#1
-- @pos -6 3 0.001 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RuLude_Garde... | gpl-3.0 |
mkacik/bcc | src/lua/bpf/ljbytecode.lua | 4 | 2167 | --[[
Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.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/LICENSE-2.0
Unless required by applicable law or agreed t... | apache-2.0 |
gitfancode/skynet | lualib/socket.lua | 1 | 9331 | local driver = require "socketdriver"
local skynet = require "skynet"
local skynet_core = require "skynet.core"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for id,v in ... | mit |
fartoverflow/naev | dat/ai/include/attack_profiles.lua | 11 | 2517 | --[[This file contains the attack profiles by ship type.
--commonly used range and condition-based attack patterns are found in another file
--Think functions for determining who to attack are found in another file
--]]
--[[
-- Main control function for bomber behavior.
-- Bombers are expected to have heavy weapons a... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Wajaom_Woodlands/npcs/Watisa.lua | 10 | 1483 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Watisa
-- Type: Chocobo Renter
-- @pos -201 -11 93 51
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
---------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua | 19 | 3309 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
xToken/CompMod | lua/CompMod/Structures/Marine/ARC/server.lua | 1 | 1135 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Structures\Marine\ARC\server.lua
-- - Dragon
local function PerformAttack(self)
if self.targetPosition then
self:TriggerEffects("arc_firing")
-- Play big hit sound at origin
-- don't pass tri... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Sieglinde.lua | 10 | 1741 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Sieglinde
-- Alchemy Synthesis Image Support
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/gl... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Kazham/npcs/Eron-Tomaron.lua | 15 | 3605 | -----------------------------------
-- Area: Kazham
-- NPC: Eron-Tomaron
-- Title Change NPC
-- @pos -22 -4 -24 250
-----------------------------------
require("scripts/globals/titles");
local title2 = { DISCERNING_INDIVIDUAL , VERY_DISCERNING_INDIVIDUAL , EXTREMELY_DISCERNING_INDIVIDUAL , 0 , 0 , 0 , 0 , 0 ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.