repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
HeavensSword/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua | 5 | 2153 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Dkhaaya
-- Type: Standard NPC
-- !pos -73.212 -1 -5.842 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("... | gpl-3.0 |
abbasgh12345/s | plugins/saveplug.lua | 20 | 1061 | --Created by: @janlou & @Alirezame
--Powered by: @SUDO_TM & @AdvanTM
--⚠️CopyRight all right reserved⚠️
local function saveplug(extra, success, result)
local msg = extra.msg
local name = extra.name
local receiver = get_receiver(msg)
if success then
local file = 'plugins/'..name..'.lua'
print('File savi... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/abilities/violent_flourish.lua | 3 | 3645 | -----------------------------------
-- Ability: Violent Flourish
-- Stuns target with a low rate of success. Requires one Finishing Move.
-- Obtained: Dancer Level 45
-- Finishing Moves Used: 1
-- Recast Time: 0:20
-- Duration: ??
-----------------------------------
require("scripts/globals/weaponskills");
require("scr... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 37 | 8552 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
loc... | gpl-2.0 |
dkorolev/tarantool | test/sophia/transaction_multidb.test.lua | 2 | 1236 |
a = box.schema.space.create('test', { engine = 'sophia' })
index = a:create_index('primary', { type = 'tree', parts = {1, 'num'} })
b = box.schema.space.create('test_tmp', { engine = 'sophia' })
index = b:create_index('primary', { type = 'tree', parts = {1, 'num'} })
-- begin/rollback
box.begin()
for key = 1, 10 do... | bsd-2-clause |
cogwerkz/gUI4 | gUI4_Minimap/elements/buttonbag.lua | 1 | 8597 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_Minimap", true)
if not parent then return end
local module = parent:NewModule("ButtonBag", "GP_AceEvent-3.0")
local L = GP_LibStub("GP_AceLocale-3.0"):Get... | mit |
natuan241/Algorithm-Implementations | Rabin_Karp/Lua/Yonaba/rabin_karp_test.lua | 26 | 1214 | -- Tests for rabin_karp.lua
local rabin_karp = require 'rabin_karp'
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 en... | mit |
PrajitR/torch7 | test/test_sharedmem.lua | 58 | 2639 | require 'torch'
local tester = torch.Tester()
local tests = {}
local function createSharedMemStorage(name, size, storageType)
local storageType = storageType or 'FloatStorage'
local shmName = name or os.tmpname():gsub('/','_')
local isShared = true
local isSharedMem = true
local nElements = size or torch.ra... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/items/thyrus.lua | 3 | 2074 | -----------------------------------------
-- ID: 18329
-- Item: Thyrus
-- Additional Effect: Dispel
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
---------------------------... | gpl-3.0 |
arrayfire/arrayfire-lua | wrapper/arrayfire/impl/index.lua | 4 | 4714 | --- Core index module.
-- Modules --
local af = require("arrayfire_lib")
-- Forward declarations --
-- Exports --
local M = {}
-- See also: https://github.com/arrayfire/arrayfire/blob/devel/src/api/cpp/index.cpp
--
function M.Add (array_module)
-- Import these here since the array module is not yet registered.
--... | bsd-3-clause |
HeavensSword/darkstar | scripts/globals/spells/stoneskin.lua | 5 | 1472 | -----------------------------------------
-- Spell: Stoneskin
-----------------------------------------
-- http://wiki.ffxiclopedia.org/wiki/Stoneskin
-- Max 350 damage absorbed
-- (before cap bonus gear, with no settings.lua adjustment)
require("scripts/globals/status");
require("scripts/globals/magic");
require("scri... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/plate_of_flapanos_paella.lua | 3 | 1224 | -----------------------------------------
-- ID: 5975
-- Item: Plate of Flapano's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Vitality 6
-- Defense % 26 Cap 155
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Bastok_Mines/npcs/Detzo.lua | 5 | 2298 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Detzo
-- Starts & Finishes Quest: Rivals
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require(... | gpl-3.0 |
dlannan/webdruino | deps/luasys-master/test/thread/sched/test_evq.lua | 2 | 1599 | #!/usr/bin/env lua
local sys = require("sys")
local sock = require"sys.sock"
local thread = sys.thread
assert(thread.init())
local evq = assert(sys.event_queue())
-- Scheduler
local sched
do
sched = assert(thread.scheduler())
-- Workers
assert(thread.run(sched.loop, sched))
end
print("-- Timer event")
loc... | mit |
HeavensSword/darkstar | scripts/zones/Castle_Oztroja/mobs/Tzee_Xicu_the_Manifest.lua | 4 | 1178 | -----------------------------------
-- Area: Castle Oztroja
-- MOB: Tzee Xicu the Manifest
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
mixins = {require("scripts/mixins/job_special")};
require("scripts/zones/Castle_Oztroja/TextI... | gpl-3.0 |
typcn/mpv | player/lua/ytdl_hook.lua | 8 | 9761 | local utils = require 'mp.utils'
local msg = require 'mp.msg'
local ytdl = {
path = "youtube-dl",
minver = "2015.02.23.1",
vercheck = nil,
}
local function exec(args)
local ret = utils.subprocess({args = args})
return ret.status, ret.stdout, ret
end
-- return if it was explicitly set on the comma... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Woods/npcs/Ominous_Cloud.lua | 5 | 3013 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ominous Cloud
-- Type: Ninjutsu Toolbag Maker
-- !pos -20.632 -3.939 -40.554 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Wood... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/pamama_tart.lua | 3 | 1179 | -----------------------------------------
-- ID: 4563
-- Item: pamama_tart
-- Food Effect: 1hour, All Races
-----------------------------------------
-- HP 10
-- MP 10
-- Dexterity -1
-- Intelligence 3
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
---------... | gpl-3.0 |
hjr/XCSoar | Data/Lua/gce.lua | 18 | 1955 |
-- registration function
function bind_events(t, verbose)
for key,value in pairs(t) do
xcsoar.input_event.new(key,
function(e)
if (verbose) then
print(key); -- logging of events
end
... | gpl-2.0 |
arrayfire/arrayfire-lua | examples/getting_started/rainfall.lua | 4 | 2077 | --[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | bsd-3-clause |
lhsazevedo/LIKO-12 | OS/DiskOS/terminal.lua | 1 | 7747 | --The terminal !--
local PATH = "D:/Programs/;C:/Programs/;"
local curdrive, curdir, curpath = "D", "/", "D:/"
local editor
local function nextPath(p)
if p:sub(-1)~=";" then p=p..";" end
return p:gmatch("(.-);")
end
local fw, fh = fontSize()
local history = {}
local hispos
local btimer, btime, blink = 0, 0.5, t... | mit |
HeavensSword/darkstar | scripts/zones/VeLugannon_Palace/mobs/Zipacna.lua | 5 | 2018 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: Zipacna
-----------------------------------
require("scripts/globals/pathfind");
local path =
{
-202, 0, 391,
-209, 0, 387,
-214, 0, 381,
-238, 0, 380,
-256, 4, 381,
-261, 8, 400,
-257, 12, 417,
-240, 16, 420,
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/windurst_taco.lua | 3 | 1380 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-- Ranged Attack +1
-----------------------------------------
requi... | gpl-3.0 |
Wedmer/luci | applications/luci-app-commands/luasrc/controller/commands.lua | 17 | 6464 | -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.commands", package.seeall)
function index()
entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80)
entry({"admin", "system", "commands", "dashboard"}, template(... | apache-2.0 |
hamed9898/power-max | utilities.lua | 3 | 2267 | -- utilities.lua
-- Functions shared among plugins.
function first_word(str, idx) -- get the indexed word in a string
str = string.gsub(str, '\n', ' ')
if not string.find(str, ' ') then return str end
str = str .. ' '
if not idx then idx = 1 end
if idx ~= 1 then
for i = 2, idx do
str = string.sub(str, string... | gpl-2.0 |
Deiz/naev | dat/events/pirate_fame.lua | 9 | 1963 |
--[[
-- Pirate Fame/Faction Standing script
When the player enters a system, his fame has a chance of being lowered.
If he is using a pirate ship, the chances of his fame being lowered are
reduced. If the player is using an impressive non-pirate ship, like the
cruiser or carrier of a major faction, will lower a ... | gpl-3.0 |
cogwerkz/gUI4 | gUI4_Chat/elements/sounds.lua | 1 | 4750 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_Chat", true)
if not parent then return end
local module = parent:NewModule("Sounds", "GP_AceEvent-3.0")
local L = GP_LibStub("GP_AceLocale-3.0"):GetLocale("... | mit |
ffainelli/packages | lang/luaexpat/files/compat-5.1r5/compat-5.1.lua | 251 | 6391 | --
-- Compat-5.1
-- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat)
-- According to Lua 5.1
-- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $
--
_COMPAT51 = "Compat-5.1 R5"
local LUA_DIRSEP = '/'
local LUA_OFSEP = '_'
local OLD_LUA_OFSEP = ''
local POF = 'luaopen_'
local LUA_PA... | gpl-2.0 |
ryangmor/lolsh | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
mosy210/fast-spam | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 7 | 1954 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- !pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
xtao/ntopng | third-party/LuaJIT-2.0.3/src/jit/bcsave.lua | 75 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Waughroon_Shrine/bcnms/rank_2_mission.lua | 5 | 1976 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 2
-- !pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Waughroon_Shrine/TextIDs");
-------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Lindgard_IM.lua | 3 | 2980 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Lindgard, I.M.
-- Outpost Conquest Guards
-- !pos -258.041 7.473 -254.527 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
zero-ui/miniblink49 | third_party/skia/tools/lua/glyph-counts.lua | 91 | 2733 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | gpl-3.0 |
Openarl/PathOfBuilding | Data/Uniques/amulet.lua | 1 | 27931 | -- Item data (c) Grinding Gear Games
return {
-- Amulet
[[
The Anvil
Amber Amulet
Variant: Pre 1.3.0
Variant: Pre 2.6.0
Variant: Current
Requires Level 45
Implicits: 1
+(20-30) to Strength
10% reduced Attack Speed
10% reduced Cast Speed
+(400-500) to Armour
{variant:1}+(30-40) Life gained when you Block
{variant:2,3}... | mit |
ArmanIr/TgClinewbot | plugins/service_entergroup.lua | 355 | 3585 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
Wedmer/luci | protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua | 3 | 4410 | -- Copyright 2016-2017 Dan Luedtke <mail@danrl.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ifname = net:get_interface():name()
local private_key, listen_port
local metric, mtu, preshared_key
local peers, public_key, allowed_ips, endpoint, persistent_keepalive
-- ... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/settings.lua | 2 | 11554 | -----------------------------------------------
------------- GLOBAL SETTINGS -------------
-----------------------------------------------
-- This is to allow server operators to further customize their servers. As more features are added to pXI, the list will surely expand.
-- Anything scripted can be customize... | gpl-3.0 |
UdjinM6/omim | 3party/libtess2/premake4.lua | 53 | 1103 |
local action = _ACTION or ""
solution "libtess2"
location ( "Build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Talib.lua | 5 | 2605 | -----------------------------------
-- Area: Port Bastok
-- NPC: Talib
-- Starts Quest: Beauty and the Galka
-- Starts & Finishes Quest: Shady Business
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
ignacio/LuaNode | test/simple/test-http-wget.lua | 3 | 1951 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local net = require("luanode.net")
local http = require("luanode.http")
-- wget sends an HTTP/1.0 request with Connection: Keep-Alive
--
-- Sending back a chunked response to an HTTP/1.0 client would be wrong,
-- so what has to happen in ... | mit |
yzziizzy/minetest_giants | behaviors/regions.lua | 1 | 5570 |
bt.register_action("FindNodeInRange", {
tick = function(node, data)
if data.region == nil or node.regionEmpty == true then
print("could not find node in active range")
return "failed"
end
return "success"
end,
reset = function(node, data)
local r = data.region;
if r == nil then -- game resta... | mit |
CestusMagnus/go-qt5 | make/ui/menubar.lua | 5 | 1025 | module("menubar")
name = "MenuBar"
base = "Widget"
funcs = [[
+ Init()
@ SetActiveAction(act *Action)
@ ActiveAction() (act *Action)
@ SetNativeMenuBar(b bool)
@ IsNativeMenuBar() (b bool)
AddMenu(menu *Menu) (act *Action)
InsertMenu(before *Action, menu *Menu)
AddSeparator() (act *Action)
InsertSeparator(before *Act... | bsd-2-clause |
rolpereira/auto-complete-lua.el | lua-documentation/data/io.lua | 3 | 12416 | -------------------------------------------------------------------------------
-- Input and Output Facilities.
-- The I/O library provides function for file manipulation.
-- There are two different styles for file manipulation.
-- The first one uses implicit file descriptors;
-- that is, there are operations to s... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/pepperoni_pizza.lua | 3 | 1191 | -----------------------------------------
-- ID: 5697
-- Item: pepperoni_pizza
-- Food Effect: 3 hours, all Races
-----------------------------------------
-- HP +30
-- Strength 1
-- Accuracy 9% (caps @ 10)
-- Attack 10% (caps @ 15)
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
zero-ui/miniblink49 | third_party/skia/resources/slides.lua | 68 | 9898 | gShowBounds = false
gUseBlurInTransitions = false
gPath = "/skia/trunk/resources/"
function load_file(file)
local prev_path = package.path
package.path = package.path .. ";" .. gPath .. file .. ".lua"
require(file)
package.path = prev_path
end
load_file("slides_utils")
gSlides = parse_file(io.open("... | gpl-3.0 |
dani-sj/komil | plugins/bot_on_off.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
HeavensSword/darkstar | scripts/commands/setplayernation.lua | 22 | 1385 | ---------------------------------------------------------------------------------------------------
-- func: setplayernation
-- desc: Sets the target players nation.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Waters/npcs/Ranpi-Monpi.lua | 5 | 5350 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ranpi-Monpi
-- Starts and Finishes Quest: A Crisis in the Making
-- Involved in quest: In a Stew, For Want of a Pot, The Dawn of Delectability
-- !pos -116 -3 52 238
-- (outside the shop he is in)
-----------------------------------
package.loaded["... | gpl-3.0 |
Ablu/manaserv | example/scripts/global_events.lua | 4 | 2541 | --[[
Global event script file
This file allows you to modify how certain events which happen frequently in
the game on different maps are supposed to be handled. It is a collection of
script functions which are always called when certain events happen,
regardless on which map. Script execution is done in the con... | gpl-2.0 |
dromozoa/dromozoa-http | test/test_twitter_app_only.lua | 3 | 2362 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/unblest_jambiya.lua | 7 | 1040 | ---------------------------------------------
-- Unblest Jambiya
-- Family: Qutrub
-- Description: Steals HP from targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: AoE 15'
-- Notes: Used only by certain NM's when their primary sword isn't broken.
-------------------... | gpl-3.0 |
devlaith/DEVLAITH-HL | plugins/inpm.lua | 19 | 9514 | local function pre_process(msg)
local to = msg.to.type
local service = msg.service
if to == 'user' and msg.fwd_from then
if not is_support(msg.from.id) and not is_admin1(msg) then
return
end
local user = 'user#id'..msg.from.id
local from_id = msg.fwd_from.peer_id
if msg.fwd_from.first_name then
from_f... | gpl-2.0 |
cogwerkz/gUI4 | gUI4/libs/GP_Ace3/GP_AceConsole-3.0/GP_AceConsole-3.0.lua | 1 | 8593 | --- **AceConsole-3.0** provides registration facilities for slash commands.
-- You can register slash commands to your custom functions and use the `GetArgs` function to parse them
-- to your addons individual needs.
--
-- **AceConsole-3.0** can be embeded into your addon, either explicitly by calling AceConsole:Em... | mit |
HeavensSword/darkstar | scripts/zones/VeLugannon_Palace/mobs/Detector.lua | 7 | 2061 | -----------------------------------
-- Area: VeLugannon Palace
-- MOB: Detector
-----------------------------------
require("scripts/globals/groundsofvalor");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
local Detector = mob:getID();
GetMobByID(Detector):se... | gpl-3.0 |
SDRC-AUV/ardusub | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 182 | 29665 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
dlannan/webdruino | deps/LuaJIT-2.0.3/src/jit/bc.lua | 74 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
HeavensSword/darkstar | scripts/globals/items/plate_of_urchin_sushi_+1.lua | 3 | 1284 | -----------------------------------------
-- ID: 5160
-- Item: plate_of_urchin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 40
-- Strength 1
-- Vitality 6
-- Accuracy % 16 (cap 76)
-- Ranged ACC % 16 (cap 76)
-----------------------------------------
require("scripts/glo... | gpl-3.0 |
cogwerkz/gUI4 | gUI4/libs/GP_oUF-Elements/chi.lua | 1 | 3456 | local addon,ns = ...
local oUF = ns.oUF
if not oUF then return end
local IsPlayerSpell = IsPlayerSpell
local UnitHasVehicleUI = UnitHasVehicleUI
local UnitPower = UnitPower
local UnitPowerMax = UnitPowerMax
local widget = "ChiWidget"
local ascensionSpellID = 115396
local empoweredChiSpellID = 157411
lo... | mit |
dlannan/webdruino | deps/turbo-1.0.0/turbo/structs/buffer.lua | 2 | 7936 | -- Turbo.lua Low-level buffer implementation
--
-- 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
--
-- Un... | mit |
dlannan/webdruino | release/turbo/structs/buffer.lua | 2 | 7936 | -- Turbo.lua Low-level buffer implementation
--
-- 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
--
-- Un... | mit |
HeavensSword/darkstar | scripts/globals/effects/accuracy_boost.lua | 32 | 1029 | -----------------------------------
--
-- EFFECT_ACCURACY_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_ACC,effect:getPower());
... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 35 | 5096 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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... | gpl-2.0 |
cogwerkz/gUI4 | gUI4_Objectives/elements/capturebar.lua | 1 | 10326 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_Objectives", true)
if not parent then return end
local module = parent:NewModule("CaptureBar", "GP_AceEvent-3.0")
module:SetDefaultModuleState(false)
loc... | mit |
HarpyWar/pvpgn | lua/extend/enum/message.lua | 8 | 1173 | --[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
message_type_adduser,
message_type_join,
message_type_part,
message_type_whisper,
message_type_talk,
message_type_broadcast,
message_type_channel,
mess... | gpl-2.0 |
Deiz/naev | dat/missions/sirius/heretic/heretic1.lua | 9 | 6814 | --[[misn title - the return]]
--[[after smuggling a small arms shipment to the an'ku system,
the player is asked to deliver a message to a "shady character"
on the wringer in the suna system.]]
include "dat/scripts/numstring.lua"
lang = naev.lang()
--all the messages before the mission starts
bmsg = {}
bmsg[1] = [... | gpl-3.0 |
natuan241/Algorithm-Implementations | Sieve_of_Eratosthenes/Lua/Yonaba/sieve_test.lua | 27 | 1175 | -- Tests for sieve.lua
local sieve = require 'sieve'
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
local statu... | mit |
HeavensSword/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm2.lua | 5 | 2281 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm2)
-- Involved In Quest: Ayame and Kaede
-- !pos -208 -9 176 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Korroloka_Tunnel/T... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWpolice/data.lua | 2 | 4039 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
pd2-linux/tina | feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config_mini.lua | 80 | 1265 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.controller.l... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/chunk_of_homemade_cheese.lua | 3 | 1512 | -----------------------------------------
-- ID: 5225
-- Item: chunk_of_homemade_cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 5 | 1577 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
re... | gpl-3.0 |
404rq/GTW-RPG | [misc]/dxmoneylogs/server.lua | 2 | 1191 | addEventHandler("onResourceStart", resourceRoot,
function()
-- Database connection setup, MySQL or fallback SQLite
local mysql_host = exports.GTWcore:getMySQLHost() or nil
local mysql_database = exports.GTWcore:getMySQLDatabase() or nil
local mysql_user = exports.GTWcore:getMySQLUser()... | bsd-2-clause |
captain-mayhem/captainsengine | heroquest/HQEditor/basic/lairOrcWarlord.lua | 1 | 1923 | function intro()
local text = "Prince Magnus has ordered that the Orc Warlord, Ulag, "..
"who was responsible for the imprisonment of Sir Ragnar, be sought "..
"out and destroyed. When Ulag is destroyed, the heros will receive "..
"a reward of 180 gold coins to be divided among them. Any treasure "..
... | lgpl-2.1 |
HeavensSword/darkstar | scripts/globals/utils.lua | 32 | 11186 | require("scripts/globals/status")
utils = {};
-- Shuffles a table and returns a copy of it, not the original.
function utils.shuffle(tab)
local copy = {}
for k, v in pairs(tab) do
copy[k] = v
end
local res = {}
while next(copy) do
res[#res + 1] = table.remove(copy, math.random(#co... | gpl-3.0 |
adam-ja/dotfiles | nvim/after/plugin/fzf.lua | 1 | 1408 | -- Open fzf in full-screen mode
vim.g.fzf_layout = { down = '100%' }
-- Commands
-----------
-- Add a preview to the :Files command
vim.api.nvim_create_user_command(
'Files',
'call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)',
{ nargs = '?', complete = 'dir'}
)
-- Add a preview to the :Rg co... | unlicense |
HeavensSword/darkstar | scripts/zones/Al_Zahbi/npcs/Macici.lua | 3 | 1957 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Macici
-- Type: Smithing Normal/Adv. Image Support
-- !pos -35.163 -1 -31.351 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scri... | gpl-3.0 |
zero-ui/miniblink49 | third_party/skia/tools/lua/scrape.lua | 66 | 2250 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | gpl-3.0 |
Openarl/PathOfBuilding | Classes/TextListControl.lua | 1 | 2192 | -- Path of Building
--
-- Class: Text List
-- Simple list control for displaying a block of text
--
local TextListClass = newClass("TextListControl", "Control", "ControlHost", function(self, anchor, x, y, width, height, columns, list)
self.Control(anchor, x, y, width, height)
self.ControlHost()
self.controls.scrollB... | mit |
HeavensSword/darkstar | scripts/zones/West_Ronfaure/TextIDs.lua | 5 | 1743 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6408; -- Obtained: <item>.
GIL_OBTAINED = 6409; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6411; -- Obt... | gpl-3.0 |
stsydow/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/memberconfig.lua | 110 | 1317 | -- ------ extra functions ------ --
function cbi_add_interface(field)
uci.cursor():foreach("mwan3", "interface",
function (section)
field:value(section[".name"])
end
)
end
-- ------ member configuration ------ --
dsp = require "luci.dispatcher"
arg[1] = arg[1] or ""
m5 = Map("mwan3", translate("MWAN Membe... | gpl-2.0 |
pdxmeshnet/openwrt-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/memberconfig.lua | 110 | 1317 | -- ------ extra functions ------ --
function cbi_add_interface(field)
uci.cursor():foreach("mwan3", "interface",
function (section)
field:value(section[".name"])
end
)
end
-- ------ member configuration ------ --
dsp = require "luci.dispatcher"
arg[1] = arg[1] or ""
m5 = Map("mwan3", translate("MWAN Membe... | gpl-2.0 |
icrazyboy/- | plugins/help.lua | 337 | 5009 | do
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 |
HeavensSword/darkstar | scripts/zones/Valley_of_Sorrows/mobs/Adamantoise.lua | 4 | 1554 | -----------------------------------
-- Area: Valley of Sorrows
-- HNM: Adamantoise
-----------------------------------
require("scripts/zones/Valley_of_Sorrows/MobIDs");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/titles");
function onMobInitialize(mob)
end;
funct... | gpl-3.0 |
Deiz/naev | dat/missions/shark/sh07_pirates.lua | 6 | 9223 | --[[
This is the climax mission of the Shark's teeth campaign. The player has to kill 4 pirates.
Stages :
0) There are pirates to kill
1) Way to Alteris
--]]
--Needed scripts
include "pilot/pirate.lua"
include "numstring.lua"
lang = naev.lang()
if lang == "es" then
else -- default english
ti... | gpl-3.0 |
ind9/kong | spec/plugins/ip_restriction/access_spec.lua | 13 | 4459 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local STUB_GET_URL = spec_helper.STUB_GET_URL
describe("IP Restriction", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
... | apache-2.0 |
rahmalik/trafficserver | lib/luajit/src/jit/dis_arm.lua | 88 | 19364 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/mobskills/polar_bulwark.lua | 5 | 1080 | ---------------------------------------------
-- Polar Bulwark
--
-- Description: Grants a Magic Shield effect for a time.
-- Type: Enhancing
--
-- Range: Self
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");... | gpl-3.0 |
ignacio/LuaNode | test/simple/test-http-client-race.lua | 2 | 1270 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require("luanode.http")
local url = require("luanode.url")
function test()
local body1_s = "1111111111111111"
local body2_s = "22222"
local server = http.createServer(function (self, req, res)
local body = url.parse(req.ur... | mit |
HeavensSword/darkstar | scripts/globals/abilities/modus_veritas.lua | 5 | 1718 | -----------------------------------
-- Ability: Modus Veritas
-- Increases damage done by helix spells while lowering spell duration by 50%.
-- Obtained: Scholar Level 65
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");... | gpl-3.0 |
serbyy/MozDef | examples/heka-lua-bro-notice/bronotice.lua | 10 | 3474 | -- 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) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Mike Trinkala mtr... | mpl-2.0 |
Wedmer/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua | 7 | 1550 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
dsp = require "luci.dispatcher"
m5 = Map("mwan3", translate("MWAN - Members"))
mwan_member = m5:section(TypedSection, "member", nil,
translate("M... | apache-2.0 |
botsazn/Management-Group | libs/XMLElement.lua | 1 | 3855 |
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, type, getmetatable, tostring, error
local table, string = table, string
local XMLElement={}
local mt
XMLElement.new = function(lom)
return setmetatable({lom=lom or {}}, mt)
end
local function filter(filtery_thing... | gpl-3.0 |
CodeStepper/trinity | rc.lua | 1 | 25609 | -- ==========================================================================================
-- ZMIENNE
-- ==========================================================================================
-- This is used later as the default terminal and editor to run.
terminal = "terminator"
editor = "nano"
editor_cm... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/abilities/drain_samba_iii.lua | 2 | 1324 | -----------------------------------
-- Ability: Drain Samba III
-- Inflicts the next target you strike with Drain daze, allowing party members engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 65
-- TP Required: 40%
-- Recast Time: 1:00
-- Duration: 1:30
-----------------------------------
require("s... | gpl-3.0 |
pd2-linux/tina | feeds/luci/modules/base/luasrc/config.lua | 88 | 1070 | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
FileId:
$Id$
License:
Copyright 2008 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 co... | gpl-2.0 |
404rq/GTW-RPG | [resources]/GTWcore/mysql.lua | 2 | 3187 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
lhsazevedo/LIKO-12 | Peripherals/GPU/gif.lua | 1 | 4581 | -- GIF encoder specialized for PICO-8
-- by gamax92.
-- Updated for liko12 by RamiLego4Game
local _ColorSet, _GIFScale, _LIKO_W, _LIKO_H = unpack({...})
local palmap={}
local lshift, rshift, band = bit.lshift, bit.rshift, bit.band
local strchar = string.char
local mthmin = math.min
local tostring=tostring
for i=0, 15... | mit |
GuardianRG/Learn | lua/skeleton.lua | 2 | 2030 | #!/usr/bin/lua
--This is our subroutine at the beggining of script
function check_length(value)
if string.len(value) > 30 then --if the string was bigger than 30 chars, FAIL
print("You didn't follow the rules, enter a line that is less than 30 characters:\n")
return "FAIL"
end
end
print("Welcome to our example ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.