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 |
|---|---|---|---|---|---|
Kthulupwns/master | scripts/zones/West_Sarutabaruta/npcs/Mahien-Uhien.lua | 17 | 1765 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Mahien-Uhien
-- Type: Outpost Vendor
-- @pos -13 -12 311 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
requir... | gpl-3.0 |
kparlante/data-pipeline | heka/sandbox/modules/fx.lua | 1 | 4121 | -- 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/.
-- Imports
local ipairs = ipairs
local type = type
local l = require "lpeg"
local M = {}
setfenv(1, M) -- Remove ext... | mpl-2.0 |
warlock90000/awesome | vicious/contrib/dio.lua | 1 | 2221 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local ipairs = ipairs
local setmetatable = setmetatable
local table = { insert = table.inser... | gpl-3.0 |
Kthulupwns/master | scripts/globals/items/uberkuchen.lua | 35 | 1465 | -----------------------------------------
-- ID: 5615
-- Item: uberkuchen
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 10
-- MP % 3 (cap 13)
-- Intelligence 3
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
pablojmartinez/theatreofpain | nutscript/plugins/vendor/derma/cl_vendorfaction.lua | 6 | 1427 | local PANEL = {}
function PANEL:Init()
self:SetSize(256, 280)
self:Center()
self:MakePopup()
self:SetTitle(L"vendorFaction")
self.scroll = self:Add("DScrollPanel")
self.scroll:Dock(FILL)
self.scroll:DockPadding(0, 0, 0, 4)
self.factions = {}
self.classes = {}
for k, v in ipairs(nut.faction.indice... | mit |
Kthulupwns/master | scripts/zones/FeiYin/npcs/qm1.lua | 8 | 1505 | -----------------------------------
-- Area: FeiYin
-- NPC: qm1 (???)
-- Involved In Quest: Pieuje's Decision
-- @pos -55 -16 69 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
diegonc/packet-bnetp | src/unused/cpackets_w3gs.lua | 1 | 23649 | -- Packets from client to server
CPacketDescription = {
--[[doc
Message ID: 0x7D
Message Name: BNLS_WARDEN
Message Status: MORE RESEARCH NEEDED
Direction: Client -> Server (Sent)
Used By: Starcraft Broodwar, Warcraft III: The Frozen Throne, Starcraft,
... | gpl-3.0 |
ca25nada/spawncamping-wallhack | BGAnimations/ScreenGameplay overlay/title.lua | 1 | 2197 | --Banner and song info that shows before the gameplay starts.
--SongStartingMessageCommand is sent from progressbar.lua
local bannerWidth = 256
local bannerHeight = 80
local borderWidth = 2
local t = Def.ActorFrame{
InitCommand = function(self)
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y-50)
self:diffusealpha(0)
en... | mit |
Kthulupwns/master | scripts/zones/RuAun_Gardens/npcs/HomePoint#3.lua | 12 | 1250 | -----------------------------------
-- 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_Gardens/TextIDs");
require("scripts/glo... | gpl-3.0 |
bankonmeOS/cust-live-deb | scripts/settings/binary/xmpv/xmpv.lua | 3 | 6719 | --[[
<readme>
# DESCRIPTION
`xmpv` is a set of Lua scripts for **MPV** media player that uses **TMSU** to provide the following extra features:
* Tag files that you like.
* Display your top favorite files.
* Mark time position.
* Play next marked time position.
* Play previous marked time position.
* De... | gpl-2.0 |
maxammann/mpv | TOOLS/lua/cycle-deinterlace-pullup.lua | 52 | 2012 | -- This script cycles between deinterlacing, pullup (inverse
-- telecine), and both filters off. It uses the "deinterlace" property
-- so that a hardware deinterlacer will be used if available.
--
-- It overrides the default deinterlace toggle keybinding "D"
-- (shift+d), so that rather than merely cycling the "deinter... | gpl-2.0 |
m2fan/xx | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
dani-sj/mahan01 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
gianlucaborello/sysdig | userspace/sysdig/chisels/proc_exec_time.lua | 12 | 4406 | --[[
USAGE: sysdig -c proc_exec_time
eg,
sysdig -c proc_exec_time # show processes that have finished
sysdig -c proc_exec_time disable_colors" # show processes that have finished w/ no colors
sysdig -pc -c proc_exec_time # show processes that have finished and container output
Copyright (C) 2014 Dr... | gpl-2.0 |
gussan/kyototycoon | example/ktscrex.lua | 11 | 6137 | kt = __kyototycoon__
db = kt.db
-- log the start-up message
if kt.thid == 0 then
kt.log("system", "the Lua script has been loaded")
end
-- echo back the input data as the output data
function echo(inmap, outmap)
for key, value in pairs(inmap) do
outmap[key] = value
end
return kt.RVSUCCESS
end
-- re... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Windurst_Waters/npcs/Kenapa-Keppa.lua | 17 | 10296 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kenapa Keppa
-- Involved in Quest: Food For Thought, Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 27 -6 -199
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/gl... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Windurst_Waters/npcs/Olaky-Yayulaky.lua | 38 | 1046 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Olaky-Yayulaky
-- Type: Item Depository
-- @zone: 238
-- @pos -61.247 -4.5 72.551
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---... | gpl-3.0 |
aayushKumarJarvis/Algorithm-Implementations | Radix_Sort/Lua/Yonaba/radix_sort_test.lua | 27 | 1369 | -- Tests for radix_sort.lua
local radix_sort = require 'radix_sort'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
loca... | mit |
Kthulupwns/master | scripts/globals/items/chunk_of_sweet_lizard.lua | 35 | 1262 | -----------------------------------------
-- ID: 5738
-- Item: chunk_of_sweet_lizard
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 5
-- MP 5
-- Dexterity 1
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Metalworks/npcs/Baldric.lua | 38 | 1682 | -----------------------------------
-- Area: Metalworks
-- NPC: Baldric
-- Type: Quest Giver
-- @zone: 237
-- @pos -50.858 1.777 -31.141
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")
require("sc... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Bastok_Mines/npcs/Conrad.lua | 10 | 1871 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Conrad
-- Outpost Teleporter NPC
-- @pos 94.457 -0.375 -66.161 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Palborough_Mines/npcs/qm1.lua | 8 | 1290 | -----------------------------------
-- Area: Palborough Mines
-- NPC: ???
-- Involved In Quest: The Talekeeper's Truth
-- @zone 143
-- @pos 15 -31 -94
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
apaikan/myCub | contrib/tests/stress_meminfo.lua | 1 | 1313 | #!/usr/bin/lua
-- Copyright: (C) 2011 Robotics, Brain and Cognitive Sciences - Italian Institute of Technology (IIT)
-- Author: Ali Paikan <ali.paikan@iit.it>
-- Copy Policy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
-- LUA_CPATH should have the path to yarp-lua binding library (i.e. yarp.so, ... | lgpl-3.0 |
Kthulupwns/master | scripts/zones/Pashhow_Marshlands/npcs/Mokto-Lankto_WW.lua | 30 | 3070 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mokto-Lankto, W.W.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
MinoaveDev/EccoDev | scripts/lua_functions/signupHelper.lua | 1 | 1896 | --[[
Copyright (C) 2008-2011 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Norg/npcs/Ranemaud.lua | 17 | 3543 | -----------------------------------
-- Area: Norg
-- NPC: Ranemaud
-- Involved in Quest: Forge Your Destiny, The Sacred Katana
-- @pos 15 0 23 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Kthulupwns/master | scripts/zones/La_Vaule_[S]/mobs/Lobison.lua | 13 | 1534 | -----------------------------------
-- Area: La Vaule (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------------
-- ... | gpl-3.0 |
Kthulupwns/master | scripts/globals/weaponskills/tachi_kaiten.lua | 12 | 2204 | -----------------------------------
-- Tachi Kaiten
-- Great Katana weapon skill
-- Skill level: N/A
-- Additional effect: temporarily increases amount of TP stored with each hit.
-- Grants Store TP+7 for the duration of time that it is active. Length of time depends on TP.
-- 100 TP = 20s
-- 200 TP = 40s
-- 30... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Ghelsba_Outpost/bcnms/holy_crest.lua | 13 | 2115 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: Holy Crest - DRG flag quest
-- @pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/ke... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Valkurm_Dunes/npcs/Tebubu_WW.lua | 30 | 3044 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Tebubu, W.W.
-- Border Conquest Guards
-- @pos 908.245 -1.171 -411.504 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
Daedeross/Subterra | src/scripts/events/configuration.lua | 1 | 7920 | require 'util'
require ('config')
require 'scripts/utils'
require 'scripts/quadtree'
require 'initialization'
function subterra_version(config, version)
local mod = config.mod_changes["subterra"]
if mod then
return mod.old_version and mod.old_version < version
end
return false
end
-- migrate v... | mit |
tjtrabue/zsh-dotfiles | link/config/awesome/my-awm/global/global-keys.lua | 1 | 9167 | local awful = require("awful")
local gears = require("gears")
local hotkeys_popup = require("awful.hotkeys_popup")
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
local volume_widget = require("awesome-wm-widgets.volume-widget.volum... | mit |
pablojmartinez/theatreofpain | nutscript/gamemode/core/libs/sh_date.lua | 5 | 1357 | nut.date = nut.date or {}
nut.date.cache = nut.date.cache or {}
nut.date.start = nut.date.start or os.time()
if (!nut.config) then
include("nutscript/gamemode/core/sh_config.lua")
end
nut.config.add("year", 2015, "The starting year of the schema.", nil, {
data = {min = 0, max = 4000},
category = "date"
})
nut.conf... | mit |
Kthulupwns/master | scripts/zones/Windurst_Waters/npcs/Leepe-Hoppe.lua | 10 | 8645 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Leepe-Hoppe
-- Involved in Mission 1-3, Mission 7-2
-- @pos 13 -9 -197 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setti... | gpl-3.0 |
ashhher3/koreader | frontend/ui/downloadmgr.lua | 5 | 1146 | local PathChooser = require("ui/widget/pathchooser")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local util = require("ffi/util")
local _ = require("gettext")
local DownloadMgr = {
title = _("Long press to choose download directory"),
onConfirm = function() end,
}
functio... | agpl-3.0 |
orivej/sysdig | userspace/sysdig/chisels/v_file_opens.lua | 8 | 2160 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
Kthulupwns/master | scripts/globals/abilities/tabula_rasa.lua | 28 | 1290 | -----------------------------------
-- Ability: Tabula Rasa
-- Optimizes both white and black magic capabilities while allowing charge-free stratagem use.
-- Obtained: Scholar Level 1
-- Recast Time: 1:00:00
-- Duration: 0:03:00
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
Daedeross/Subterra | src/scripts/events/building/callbacks/remove_power_proxy.lua | 1 | 2586 | require("__subterra__.scripts.utils")
local function destroy_hidden_entities(proxy, mined, max_level)
local unit_numbers = {}
local inputs = proxy.inputs
local outputs = proxy.outputs
local columns = proxy.columns
local poles = proxy.poles
for i = 1, max_level do
local column = col... | mit |
Kthulupwns/master | scripts/globals/spells/bluemagic/corrosive_ooze.lua | 10 | 2218 | -----------------------------------------
-- Spell: Corrosive Ooze
-- Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down
-- Spell cost: 55 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Water)
-- Blue Magic Points: 4
-- Stat Bonus: HP-10 MP+10
-- Level: 66
-- Casting Time: 5 s... | gpl-3.0 |
Kthulupwns/master | scripts/globals/spells/sneak.lua | 24 | 1175 | -----------------------------------------
-- Spell: Sneak
-- Lessens chance of being detected by sound
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
redstormbot/rdbb | bot/creed.lua | 1 | 9145 | 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 = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Port_San_dOria/npcs/Avandale.lua | 38 | 1039 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Avandale
-- Type: Standard NPC
-- @zone: 232
-- @pos -105.524 -9 -125.274
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
----------... | gpl-3.0 |
SoniEx2/Stuff | lua/TailTools.lua | 1 | 5968 | local M = {}
do -- range(from, to, increment)
local function _recursiverange(i,b,c,...)
if c > 0 and i > b then
return ...
elseif c < 0 and i <= b then
return ...
end
-- we're adding things to the start of ..., so ... is backwards
-- this is why we need the wrapper/abstraction below
... | mit |
NebTex/haproxy-public | haproxy-acme-validation-plugin/acme-http01-webroot.lua | 4 | 2881 | -- ACME http-01 domain validation plugin for Haproxy 1.6+
-- copyright (C) 2015 Jan Broer
--
-- usage:
--
-- 1) copy acme-webroot.lua in your haproxy config dir
--
-- 2) Invoke the plugin by adding in the 'global' section of haproxy.cfg:
--
-- lua-load /etc/haproxy/acme-webroot.lua
--
-- 3) insert these two lines... | gpl-3.0 |
Lordlotter/lord | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
ho3einnasrolahi/GL-Online | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Kthulupwns/master | scripts/globals/items/carp_sushi.lua | 35 | 1400 | -----------------------------------------
-- ID: 4407
-- Item: carp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Accuracy % 10
-- HP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Temple_of_Uggalepih/npcs/qm15.lua | 17 | 2428 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ???
-- Involved in Quest: Knight Stalker
-- @pos 58 1 -70 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Temple_of_U... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Apollyon/mobs/Mountain_Buffalo.lua | 17 | 1397 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Act... | gpl-3.0 |
alex-lawson/sb-automation | objects/wired/energy/battery/battery.lua | 1 | 1610 | function init(virtual)
if not virtual then
energy.init()
self.particleCooldown = 0.2
self.particleTimer = 0
self.acceptCharge = entity.configParameter("acceptCharge") or true
entity.setParticleEmitterActive("charging", false)
updateAnimationState()
end
end
function die()
local position... | mit |
Kthulupwns/master | scripts/zones/Port_Bastok/npcs/Synergy_Engineer.lua | 38 | 1038 | -----------------------------------
-- Area: Port Bastok
-- NPC: Synergy Engineer
-- Type: Standard NPC
-- @zone: 236
-- @pos 37.700 -0.3 -50.500
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------... | gpl-3.0 |
wimstefan/lain | widget/imap.lua | 1 | 2411 | --[[
Licensed under GNU General Public License v2
* (c) 2013, Luca CPZ
--]]
local helpers = require("lain.helpers")
local naughty = require("naughty")
local wibox = require("wibox")
local awful = require("awful")
local string = string
local type = type
local tonumber = tonumber
-- Mail IMAP... | gpl-2.0 |
Kthulupwns/master | scripts/globals/items/bowl_of_nashmau_stew.lua | 36 | 1975 | -----------------------------------------
-- ID: 5595
-- Item: Bowl of Nashmau Stew
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP -100
-- Vitality -10
-- Agility -10
-- Intelligence -10
-- Mind -10
-- Charisma -10
-- Accuracy +15% Cap 25
-- Attack +18% Cap 60
-- ... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Palborough_Mines/npcs/@3z0.lua | 61 | 1064 | -----------------------------------
-- Area: Palborough Mines
-- NPC:
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onSpawn
-----------------------------------
function onSpawn(npc)
local elevator = {
... | gpl-3.0 |
fastbird/fastbirdEngine | EngineTest/data/LuaTest.lua | 1 | 1512 | ------------------------------------------------------------------------------
-- This source file is part of fastbird engine
-- For the latest info, see http://www.jungwan.net/
--
-- Copyright (c) 2013-2015 Jungwan Byun
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this sof... | mit |
PhilmacFLy/naev | dat/factions/spawn/common.lua | 6 | 3426 |
scom = {}
-- @brief Calculates when next spawn should occur
scom.calcNextSpawn = function( cur, new, max )
if cur == 0 then return rnd.rnd(0, 10) end -- Kickstart spawning.
local stddelay = 10 -- seconds
local maxdelay = 60 -- seconds. No fleet can ever take more than this to show up.
local std... | gpl-3.0 |
horizonrz/test | system/libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm3.lua | 8 | 1198 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Armed Gears(ZNM T3))
-- @pos -42 -4 -169 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ru... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Upper_Jeuno/npcs/Osker.lua | 19 | 2847 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Osker
-- Involved in Quest: Chocobo's Wounds
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requi... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Northern_San_dOria/npcs/Eperdur.lua | 19 | 5076 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Eperdur
-- Starts and Finishes Quest: Altana's Sorrow (finish), Acting in Good Faith (finish), Healing the Land,
-- @pos 129 -6 96 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-... | gpl-3.0 |
l33tllama/TankShooter | lib/leos_ecs/init.lua | 1 | 3851 | --[[
Initial file for leo's ECS implementation
Creates a 'systems' object that holds all of the currently running systems,
and updates them.
--]]
local path = ...
--local List = require(path .. '.list')
print("Hello from leos_ecs.lua")
require(path .. '.system')
require(path .. '.component')
-- create a list o... | mit |
Kthulupwns/master | scripts/zones/Windurst_Waters/Zone.lua | 28 | 3433 | -----------------------------------
--
-- Zone: Windurst_Waters (238)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/zone");
require("script... | gpl-3.0 |
Kthulupwns/master | scripts/globals/abilities/hasso.lua | 10 | 1150 | -----------------------------------
-- Ability: Hasso
-- Grants a bonus to attack speed, accuracy, and Strength when using two-handed weapons, but increases recast and casting times.
-- Obtained: Samurai Level 25
-- Recast Time: 1:00
-- Duration: 5:00
-----------------------------------
require("scripts/global... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Qufim_Island/npcs/Hieroglyphics.lua | 17 | 2168 | -----------------------------------
-- Area: Qufim_Island
-- NPC: Hieroglyphics
-- Dynamis Qufim Entrance
-- @pos 117 -10 133 172 118
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Metalworks/npcs/_6lg.lua | 17 | 1295 | -----------------------------------
-- Area: Metalworks
-- Door: _6lg (Cornelia's Room)
-- @pos 114 -20 -7 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Metalwork... | gpl-3.0 |
wimstefan/lain | widget/alsabar.lua | 1 | 5234 | --[[
Licensed under GNU General Public License v2
* (c) 2013, Luca CPZ
* (c) 2013, Rman
--]]
local helpers = require("lain.helpers")
local awful = require("awful")
local naughty = require("naughty")
local wibox = require("wibox")
local math = { modf = math... | gpl-2.0 |
kbeckmann/nodemcu-firmware | lua_modules/si7021/si7021.lua | 83 | 2184 | -- ***************************************************************************
-- SI7021 module for ESP8266 with nodeMCU
-- Si7021 compatible tested 2015-1-22
--
-- Written by VIP6
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
local... | mit |
dnc40085/nodemcu-firmware | lua_modules/si7021/si7021.lua | 83 | 2184 | -- ***************************************************************************
-- SI7021 module for ESP8266 with nodeMCU
-- Si7021 compatible tested 2015-1-22
--
-- Written by VIP6
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
local... | mit |
EMCTEAM-IRAN/EMC | plugins/bot.lua | 1 | 1883 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Bastok_Markets/npcs/Raghd.lua | 36 | 1347 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Raghd
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("s... | gpl-3.0 |
Kthulupwns/master | scripts/globals/items/bottle_of_hallowed_water.lua | 23 | 1838 | -----------------------------------------
-- ID: 5306
-- Item: Bottle of Hallowed Water
-- Item Effect: Removes curse. Better chance to remove doom.
-----------------------------------------
require("scripts/globals/settings");
-----------------------------------------
-- OnItemCheck
---------------------------------... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Aht_Urhgan_Whitegate/npcs/Musdahl.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Musdahl
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
Kthulupwns/master | scripts/globals/items/bowl_of_stamina_soup.lua | 35 | 1548 | -----------------------------------------
-- ID: 4337
-- Item: bowl_of_stamina_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 10
-- Dexterity 4
-- Vitality 6
-- Mind -3
-- HP Recovered While Healing 10
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Southern_San_dOria/npcs/HomePoint#1.lua | 12 | 1272 | -----------------------------------
-- Area: Southern San dOria
-- NPC: HomePoint#1
-- @pos -85.468 1.000 -66.454 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria/TextIDs")... | gpl-3.0 |
antispambot2/sersbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
MrClash/Updated | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Telecatfullbot/-TelecaT | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Valkurm_Dunes/npcs/Song_Runes.lua | 17 | 1716 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Song Runes
-- Finishes Quest: Path of the Bard
-- @pos -721 -7 102 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--------------------------... | gpl-3.0 |
sarumont/vicious-fbsd | widgets/mdir.lua | 5 | 1203 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) Maildir Biff Widget, Fredrik Ax
---------------------------------------------------
-- {{{ Grab environment
local io = { popen = io.popen }
local setmetatable... | gpl-2.0 |
Kthulupwns/master | scripts/globals/items/serving_of_snowy_rolanberry.lua | 35 | 1402 | -----------------------------------------
-- ID: 4594
-- Item: serving_of_snowy_rolanberry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic % 18
-- Magic Cap 60
-- Intelligence 2
-- Wind Res 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Port_Bastok/npcs/Agapito.lua | 18 | 1866 | -----------------------------------
-- Area: Port Bastok
-- NPC: Agapito
-- Start & Finishes Quest: The Stars of Ifrit
-- @zone: 236
-- @pos -72.093 -3.097 9.309
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Windurst_Walls/npcs/Kalupa-Tawalupa.lua | 19 | 2400 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-90 Y:-9 Z:109
-- NPC: Kalupa-Tawalupa
-- Working 100%
-- Involved in Quest: To Bee or Not to Bee?
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
--------------------... | gpl-3.0 |
e-lab/imagenet-multiGPU.torch | models/overfeat.lua | 3 | 1447 | function createModel(nGPU)
local features = nn.Sequential()
features:add(nn.SpatialConvolution(3, 96, 11, 11, 4, 4))
features:add(nn.ReLU(true))
features:add(nn.SpatialMaxPooling(2, 2, 2, 2))
features:add(nn.SpatialConvolution(96, 256, 5, 5, 1, 1))
features:add(nn.ReLU(true))
features:add(nn.Spat... | bsd-2-clause |
Kthulupwns/master | scripts/zones/La_Theine_Plateau/npcs/Telepoint.lua | 17 | 1631 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/La_Theine_Plateau/TextIDs");
... | gpl-3.0 |
LuaDist2/http-digest | http-digest.test.lua | 2 | 1160 | local cwtest = require "cwtest"
local ltn12 = require "ltn12"
local H = (require "http-digest").request
local J = nil
do -- Find a JSON parser
local ok, json = pcall(require, "cjson")
if not ok then ok, json = pcall(require, "json") end
J = json.decode
assert(ok and J, "no JSON parser found :(")
end
local T =... | mit |
MinoaveDev/EccoDev | scripts/npcs/refine_perion.lua | 1 | 12192 | --[[
Copyright (C) 2008-2011 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
6220119/google-diff-match-patch | lua/diff_match_patch_test.lua | 264 | 39109 | --[[
* Test Harness for Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser
* Ported to Lua by Duncan Cross
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | apache-2.0 |
Kthulupwns/master | scripts/zones/Lower_Jeuno/npcs/Treasure_Coffer.lua | 17 | 74179 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Treasure Coffer
-- Type: Add-on NPC
-- @pos 41.169 3.899 -51.005 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Source-advan/hitler_TG1 | plugins/whitelist.lua | 170 | 2472 | do
local function get_message_callback (extra , success, result)
if result.service then
local action = result.action.type
if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then
if result.action.user then
user_id = result.action.use... | agpl-3.0 |
alex-lawson/sb-automation | objects/wired/pipe/liquidtank/liquidtank.lua | 1 | 4966 | function init(args)
entity.setInteractive(true)
if args == false then
pipes.init({liquidPipe})
local initInv = entity.configParameter("initialInventory")
if initInv and storage.liquid == nil then
storage.liquid = initInv
end
entity.scaleGroup("liquid", {1, 0})
self.liquidMap = {... | mit |
Kthulupwns/master | scripts/zones/Port_Bastok/npcs/_6k8.lua | 17 | 1386 | -----------------------------------
-- Area: Port Bastok
-- NPC: Door: Departures Exit
-- @zone 236
-- @pos -62 1 -8
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
mohammad8/54321 | plugins/banhammer.lua | 33 | 12751 | local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned =... | gpl-2.0 |
Kthulupwns/master | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Yahliq.lua | 17 | 1240 | -----------------------------------
-- Area: Silver Sea route to Al Zahbi
-- NPC: Yahliq
-- Type: Guild Merchant: Fishing Guild
-- @pos 4.986 -2.101 -12.026 59
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Aht_Urhgan_Whitegate/npcs/Pursuivant.lua | 34 | 1035 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Pursuivant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-------... | gpl-3.0 |
shadog/shado.alasmr | plugins/inrealm.lua | 183 | 36473 | -- 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_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
Telesuperior/superior | libs/dkjson.lua | 5 | 26573 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-3.0 |
meXBT/mexbt-lua | tests/private.lua | 2 | 3026 | require 'busted.runner'()
local mexbt = require('mexbt')
mexbt.account = require('mexbt.account')
describe("meXBT Private", function()
local account = mexbt.account.new(
"xxx", -- Public Key
"xxx", -- Private Key
"xxx", -- User Id
true -- sandbox
)
it("gives a valid response to all public ap... | mit |
Kthulupwns/master | scripts/zones/Northern_San_dOria/npcs/Boncort.lua | 19 | 1992 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Boncort
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop... | gpl-3.0 |
Kthulupwns/master | scripts/zones/Promyvion-Holla/Zone.lua | 25 | 6829 | -----------------------------------
--
-- Zone: Promyvion-Holla (16)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/missi... | gpl-3.0 |
mgerhardy/scummvm | devtools/create_ultima/files/ultima6/scripts/u6/init.lua | 18 | 13035 | local lua_file = nil
--load common functions
lua_file = nuvie_load("common/common.lua"); lua_file();
SFX_BLOCKED = 0
SFX_HIT = 1
SFX_FOUNTAIN = 2
SFX_DEATH = 3
SFX_RUBBER_DUCK = 4
SFX_BROKEN_GLASS = 5
SFX_BELL = 6
SFX_FIRE = 7
SFX_CLOCK = 8
SFX_PROTECTION_FIELD = 9
SFX_WATER_WHEEL = 10
SFX_MISSLE = 11
SFX_EXPLOSION ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.