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 |
|---|---|---|---|---|---|
bn7/darkstar | scripts/zones/Dynamis-Qufim/mobs/Antaeus.lua | 23 | 2217 | -----------------------------------
-- Area: Dynamis Qufim
-- MOB: Antaeus
-----------------------------------
package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Qufim/TextIDs");
require("scripts/globals/... | gpl-3.0 |
mneumann/wrk | deps/luajit/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | apache-2.0 |
bn7/darkstar | scripts/commands/send.lua | 14 | 14235 | ---------------------------------------------------------------------------------------------------
-- func: send <player1> (<player2) or zone)
-- desc: Teleport a player to:
-- A) The given zone
-- B) another player
---------------------------------------------------------------------------------------------------
cm... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[community]/freeroam/util.lua | 1 | 9108 | function createServerCallInterface()
return setmetatable(
{},
{
__index = function(t, k)
t[k] = function(...) triggerServerEvent('onServerCall', g_Me, k, ...) end
return t[k]
end
}
)
end
addEvent('onClientCall', true)
addEventHandler('onClientCall', getResourceRootElement(getThisResource()),
fu... | mit |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-firewall/dist/usr/lib/lua/luci/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 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
htt... | gpl-2.0 |
gaoxiaojun/symphony | test/lua5.1-tests/math.lua | 11 | 5437 | print("testing numbers and math lib")
do
local a,b,c = "2", " 3e0 ", " 10 "
assert(a+b == 5 and -b == -3 and b+"2" == 5 and "10"-c == 0)
assert(type(a) == 'string' and type(b) == 'string' and type(c) == 'string')
assert(a == "2" and b == " 3e0 " and c == " 10 " and -c == -" 10 ")
assert(c%a == 0 and a^b =... | bsd-3-clause |
nulian/InlineAura | libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 46 | 4441 | --[[-----------------------------------------------------------------------------
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 23
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or... | gpl-2.0 |
nulian/InlineAura | libs/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 46 | 4441 | --[[-----------------------------------------------------------------------------
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 23
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or... | gpl-2.0 |
ArmanIr/arbot | bot/bot.lua | 4 | 7076 | 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 = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
bn7/darkstar | scripts/zones/Al_Zahbi/npcs/Rughadjeen.lua | 14 | 1043 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Rughadjeen
-- Type: Skyserpent General
-- @zone 48
-- @pos -74.150 -7 70.656
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
never615/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/brute.lua | 2 | 32321 | ---
-- The brute library is an attempt to create a common framework for performing
-- password guessing against remote services.
--
-- The library currently attempts to parallellize the guessing by starting
-- a number of working threads. The number of threads can be defined using
-- the brute.threads argument, it def... | mit |
nacgarg/neuralart-telegram-bot | costs.lua | 13 | 2661 | --
-- Cost functions
--
-- compute the Gramian matrix for input
function gram(input)
local k = input:size(2)
local flat = input:view(k, -1)
local gram = torch.mm(flat, flat:t())
return gram
end
function collect_activations(model, activation_layers, gram_layers)
local activations, grams = {}, {}
... | mit |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Tesch_Garanjy.lua | 16 | 4318 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tesch_Garanjy
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
requir... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c25005.lua | 1 | 5175 |
--风见幽香
function c25005.initial_effect(c)
--synchro summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c25005.syncon)
e1:SetOperation(c25005.synop)
e1:Se... | gpl-2.0 |
Electrovirus/flooder | plugins/plugins.lua | 13 | 4732 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-3.0 |
bn7/darkstar | scripts/commands/reloadglobal.lua | 13 | 1196 | ---------------------------------------------------------------------------------------------------
-- func: reloadglobal
-- desc: Attempt to reload specified global lua without a restart.
--
-- Use with caution, some files ( like player.lua )
-- can cause you problems if you reload them using this.
-- This command exp... | gpl-3.0 |
LuaDist2/kong | spec/02-integration/03-dao/07-ttl_spec.lua | 2 | 3890 | local helpers = require "spec.02-integration.03-dao.helpers"
local spec_helpers = require "spec.helpers"
local Factory = require "kong.dao.factory"
helpers.for_each_dao(function(kong_config)
describe("TTL with #" .. kong_config.database, function()
local factory
setup(function()
factory = assert(Factor... | apache-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[community]/freeroam/fr_client.lua | 1 | 43193 | CONTROL_MARGIN_RIGHT = 5
LINE_MARGIN = 5
LINE_HEIGHT = 16
g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThisResource())
g_Me = getLocalPlayer()
server = createServerCallInterface()
guiSetInputMode("no_binds_when_editing")
function isPlayerArenaPlayed(cel)
local pvp = getElementData(cel,"solo:active... | mit |
bn7/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#3.lua | 27 | 1266 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#3
-- @pos -6 -13 -150 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/home... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-radvd/luasrc/model/cbi/radvd/dnssl.lua | 82 | 2276 | --[[
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: rdnss.lu... | gpl-2.0 |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua | 17 | 1493 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kucha Malkobhi
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs"... | gpl-3.0 |
sarahgerweck/Ace3 | AceGUI-3.0/widgets/AceGUIWidget-Heading.lua | 68 | 2216 | --[[-----------------------------------------------------------------------------
Heading Widget
-------------------------------------------------------------------------------]]
local Type, Version = "Heading", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or... | bsd-3-clause |
bn7/darkstar | scripts/globals/items/betta.lua | 12 | 1320 | -----------------------------------------
-- ID: 5139
-- Item: Betta
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
Widjet/mudlet | src/mudlet-lua/lua/geyser/GeyserColor.lua | 19 | 6003 | --------------------------------------
-- --
-- The Geyser Layout Manager by guy --
-- --
--------------------------------------
Geyser.Color = {}
--- Converts color to 3 hex values as a string, no alpha, css style
-- @return The color formatted as a h... | gpl-2.0 |
frankyifei/koreader | frontend/ui/widget/opdsbrowser.lua | 2 | 22856 | local MultiInputDialog = require("ui/widget/multiinputdialog")
local ButtonDialog = require("ui/widget/buttondialog")
local InfoMessage = require("ui/widget/infomessage")
local LoginDialog = require("ui/widget/logindialog")
local OPDSParser = require("ui/opdsparser")
local NetworkMgr = require("ui/networkmgr")
local UI... | agpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Wani_Casdohry.lua | 17 | 1310 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Wani Casdohry
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Windurst_Woods/TextIDs");
------------------... | gpl-3.0 |
simonemainardi/ntopng | scripts/lua/mac_stats.lua | 1 | 4890 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
if (group_col == nil) then
group_col = "mac"
end
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/hamming_weight.lua | 27 | 1422 | -- Hamming weight implementation
-- See: http://en.wikipedia.org/wiki/Hamming_weight
-- Assertion test for the bitwise implementation being used
local function checkBitImplementation(bit)
local msg = 'Failed testing bitwise implementation'
assert(bit.bnot ~= nil, msg)
assert(bit.lshift ~= n... | mit |
Thadah/GarryWare13 | gamemode/wareminigames/onthecenter.lua | 2 | 1554 | WARE.Author = "Hurricaaane (Ha3)"
WARE.Room = "hexaprism"
WARE.CircleRadius = 0
WARE.CenterEntity = nil
function WARE:IsPlayable()
if team.NumPlayers(TEAM_HUMANS) >= 2 then
return true
end
return false
end
function WARE:Initialize()
GAMEMODE:SetWinAwards( AWARD_MOVES )
self.LastThinkDo = 0
GAMEMODE:Respa... | gpl-2.0 |
bn7/darkstar | scripts/zones/Upper_Jeuno/npcs/Rhea_Myuliah.lua | 14 | 2497 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rhea Myuliah
-- Type: Standard NPC
-- @zone 244
-- @pos -56.220 -1 101.805
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c30011.lua | 1 | 6552 | --GM诹访子
function c30011.initial_effect(c)
--dark synchro summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c30011.syncon)
e1:SetOperation(c30011.synop)
... | gpl-2.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/modules/base/luasrc/util.lua | 81 | 21858 | --[[
LuCI - Utility library
Description:
Several common useful Lua functions
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 copy of the License at
http://www.... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/modules/base/luasrc/util.lua | 81 | 21858 | --[[
LuCI - Utility library
Description:
Several common useful Lua functions
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 copy of the License at
http://www.... | gpl-2.0 |
Guema/GuemUICastBars | CastBarZ_Config/Libs/AceGUI-3.0/AceGUI-3.0.lua | 47 | 23674 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | unlicense |
kondrak/bgfx | scripts/texturec.lua | 3 | 1459 | --
-- Copyright 2010-2016 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
project "texturec"
uuid "838801ee-7bc3-11e1-9f19-eae7d36e7d26"
kind "ConsoleApp"
includedirs {
path.join(BX_DIR, "include"),
path.join(BGFX_DIR, "include"),
path.join(BGFX_D... | bsd-2-clause |
bn7/darkstar | scripts/zones/Yhoator_Jungle/npcs/Beastmen_s_Banner.lua | 14 | 1033 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Beastmen_s_Banner
-- @pos 366.014 -0.185 -394.801 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Yhoator_Jungle/TextIDs");
------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c37564457.lua | 1 | 2124 | --百慕 希望之光星·雫
local m=37564457
local cm=_G["c"..m]
xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end)
cm.Senya_name_with_prism=true
function cm.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_SEASERPENT),2,3)
c:EnableReviveLimit... | gpl-2.0 |
parsaghx/o | libs/dateparser.lua | 114 | 6213 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c13039.lua | 1 | 2121 | --Tabula rasa
function c13039.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c13039.target)
e1:SetOperation(c13039.activate)
c:RegisterEffect(e1)
--sol
local e2=Effect.Creat... | gpl-2.0 |
CTSRD-SOAAP/chromium-42.0.2311.135 | third_party/skia/tools/lua/skia.lua | 207 | 1863 | -- Experimental helpers for skia --
function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
----------------... | bsd-3-clause |
bn7/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/HomePoint#1.lua | 14 | 1294 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: HomePoint#3
-- @pos -12 0.5 -288 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");
re... | gpl-3.0 |
bn7/darkstar | scripts/zones/Norg/npcs/Paito-Maito.lua | 15 | 2550 | -----------------------------------
-- Area: Norg
-- NPC: Paito-Maito
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-71.189713, -9.413510, 74.024879,
-71.674171, -9.317029, 73.054794,
-72.516525, -9.298064, 72.363213,
-73.432983, -9.220915, 71.773857,
-74... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/eyes_on_me.lua | 31 | 1587 | -----------------------------------------
-- Spell: Eyes On Me
-- Deals dark damage to an enemy
-- Spell cost: 112 MP
-- Monster Type: Demons
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: HP-5, MP+15
-- Level: 61
-- Casting Time: 4.5 seconds
-- Recast Time: 29.25 seconds
-- Magic Bursts on: Compr... | gpl-3.0 |
parsaghx/o | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
KnockSoftware/osrm-backend | profiles/lib/measure.lua | 1 | 1887 | local Sequence = require('lib/sequence')
Measure = {}
-- measurements conversion constants
local inch_to_meters = 0.0254
local feet_to_inches = 12
--- Parse string as a height in meters.
--- according to http://wiki.openstreetmap.org/wiki/Key:maxheight
function Measure.parse_value_meters(value)
local n = tonumber(... | bsd-2-clause |
Dysoch/DyWorld | DyComPa/data/entity/units.lua | 1 | 1199 |
local Tree_Loot_Table = {
{
Name = "enemy-corpse",
Chance = 0.05,
Max_Count = 1,
},
{
Name = "exotic-partical",
Chance = 0.0005,
Max_Count = 1,
},
}
for k,v in pairs(Tree_Loot_Table) do
for _,z in pairs(data.raw.unit) do
if not z.loot then z.loot = {} end
loottable = {
item = v.Name,
... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22221.lua | 1 | 3889 | --魔化使魔契约
function c22221.initial_effect(c)
--befiend
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22221,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22221)
e1:SetCost(c22221.cost)
e1:SetTarget(c22221.target)
e1:S... | gpl-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[community]/drawtag/drawing_c.lua | 1 | 6786 | function createDrawingWindow()
local sw,sh = guiGetScreenSize()
draw_window = guiCreateWindow((sw-512)*0.5,(sh-384)*0.5,512,384,"Szkicownik",false)
guiWindowSetSizable(draw_window,false)
button_done = guiCreateButton(304,344,64,24,"Zamknij",false,draw_window)
button_clear = guiCreateButton(432,344,64,24,"Wyczyść",... | mit |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Soni-Muni.lua | 13 | 2724 | -----------------------------------
-- 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("scripts/globals... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/deodorize.lua | 27 | 1133 | -----------------------------------------
-- Spell: Deodorize
-- Lessens chance of being detected by smell.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Western_Adoulin/npcs/Eamonn.lua | 14 | 1951 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Eamonn
-- Type: Standard NPC and Quest NPC
-- Starts and Involved with Quests: 'Scaredy-Cats'
-- @zone 256
-- @pos -91 3 2 256
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c60806.lua | 1 | 2384 | --流火的橘伞-立秋
function c60806.initial_effect(c)
--umb
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60806,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE)
e1:SetRange(LOCATION_HAND)
e1:SetCost(c60806.cost)
e1:SetOperation(c60806.operation)
... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kolin-Olin.lua | 14 | 1060 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kolin-Olin
-- Type: Standard NPC
-- @zone 94
-- @pos 9.981 -2.478 33.786
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
bn7/darkstar | scripts/zones/Batallia_Downs/npcs/qm1.lua | 14 | 1495 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm1 (???)
-- @pos -407.526 -23.507 412.544 105
-- Notes: Spawns Vegnix Greenthumb for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c10511.lua | 1 | 2753 | --魔光与星尘的连结✿雾雨魔理沙
function c10511.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x208),2)
c:EnableReviveLimit()
--equip
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e0:SetCode(EVENT_C... | gpl-2.0 |
bearpaw/pose-attention | train/models/hg-attention.lua | 1 | 4139 | paths.dofile('layers/Residual.lua')
paths.dofile('layers/ResidualPool.lua')
paths.dofile('layers/AttentionPartsCRF.lua')
local function repResidual(num, inp, nRep)
local out={}
for i=1,nRep do
local tmpout
if i==1 then
tmpout = Residual(num, num)(inp)
else
tmpout... | bsd-3-clause |
KnockSoftware/osrm-backend | profiles/lib/way_handlers.lua | 1 | 23190 | -- Profile handlers dealing with various aspects of tag parsing
--
-- You can run a selection you find useful in your profile,
-- or do you own processing if/when required.
local get_turn_lanes = require("lib/guidance").get_turn_lanes
local set_classification = require("lib/guidance").set_classification
local get_des... | bsd-2-clause |
bn7/darkstar | scripts/zones/Port_San_dOria/npcs/Portaure.lua | 17 | 1666 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Portaure
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/quests");
--... | gpl-3.0 |
bn7/darkstar | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 14 | 1253 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
-----... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-asterisk/luasrc/controller/asterisk.lua | 69 | 7498 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | gpl-2.0 |
AntonioModer/Algorithm-Implementations | Negamax/Lua/Yonaba/negamax_test.lua | 26 | 1129 | -- Tests for alpha_beta_pruning.lua
local negamax = require 'negamax'
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 ... | mit |
bn7/darkstar | scripts/zones/QuBia_Arena/mobs/Trion.lua | 10 | 1813 | -----------------------------------
-- Area: qubia arena
-- MOB: Trion
-- Ally during San d'Oria Mission 9-2
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/QuBia_Arena/TextIDs");
require("scripts/globals/status")... | gpl-3.0 |
yinjun322/quick-ng | quick/samples/touch/src/app/includes/functions.lua | 8 | 2675 |
function createTouchableSprite(p)
local sprite = display.newScale9Sprite(p.image)
sprite:setContentSize(p.size)
local cs = sprite:getContentSize()
local label = cc.ui.UILabel.new({
UILabelType = 2,
text = p.label,
color = p.labelColor})
label:align(display.CENTE... | mit |
bn7/darkstar | scripts/globals/items/black_curry_bun.lua | 12 | 1955 | -----------------------------------------
-- ID: 5758
-- Item: black_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- DEX +2
-- VIT +4
-- INT +1
-- Accuracy +5
-- Ranged Accuracy +5
-- Evasion +5
-- DEF +15% (cap 180)
-- Resist Sleep +3
-- hHP +2
-- hMP ... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/acorn_cookie.lua | 12 | 1347 | -----------------------------------------
-- ID: 4510
-- Item: Acorn Cookie
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Aquan killer +10
-- Silence resistance +10
-- MP recovered while healing +3
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Ancient_Lockbox.lua | 14 | 1179 | -----------------------------------
-- Area:
-- NPC: ancient lockbox
-- @zone illrusi atoll
-- @pos
-----------------------------------
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
requ... | gpl-3.0 |
frankyifei/koreader | frontend/ui/widget/keyvaluepage.lua | 2 | 10001 | --[[--
Widget that presents a multi-page to show key value pairs.
Example:
local Foo = KeyValuePage:new{
title = "Statistics",
kv_pairs = {
{"Current period", "00:00:00"},
-- single or more "-" will generate a solid line
"----------------------------",
... | agpl-3.0 |
stanfear/FactorioMod-Subsurface | lib.lua | 1 | 5225 | --[[
Iterator for looping over an area.
returns the x, y co-ordiantes for each position in an area.
example:
area = {{0, 0}, {10, 20}}
for x, y in iarea(area) do
end
]]
--iarea this was taken from the NESTT mod lib.lua and modified
function iarea( area )
local leftTop = area.left_top
local RightBottom = are... | mit |
amirfucker/teleseed | plugins/admin.lua | 230 | 6382 | 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 |
Dysoch/DyWorld | DyWorld-Dynamics/data/core/achievements/craft.lua | 1 | 4219 | -- /c game.players[1].unlock_achievement("dy-craft-water-1a")
data:extend(
{
{
type = "produce-achievement",
name = "dy-craft-water-1a",
order = "craft",
item_product = "bottle-dirty-water",
amount = 50000,
icon = "__base__/graphics/achievement/mass-production-1.png",
icon_size = 128,
... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/cup_of_chamomile_tea.lua | 12 | 1477 | -----------------------------------------
-- ID: 4603
-- Item: cup_of_chamomile_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 8
-- Vitality -2
-- Charisma 2
-- Magic Regen While Healing 1
-- Sleep resistance -30
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c25002.lua | 1 | 5165 |
--风见幽香
function c25002.initial_effect(c)
--synchro summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c25002.syncon)
e1:SetOperation(c25002.synop)
e1:Se... | gpl-2.0 |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Ensetsu.lua | 26 | 3363 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ensetsu
-- Finish Quest: Ayame and Kaede
-- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box
-- @pos 33 -6 67 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Edy81/turn-craft | source/menu.lua | 1 | 5555 | function menu()
-- main menu
local I
I=0
repeat
m[I]=''
I=I +1
until I==4
if m[6]=='intro' then
--m[0]='New'
if lf.exists('options.txt') then
m[1]='Load ...'
end
end
--m[2]='Options ...'
if m[6]=='new game' then
if p.gender ~= 0 then
m[0]='Next'
... | gpl-2.0 |
Julzso23/SpaceVenture | lib/loveframes/objects/internal/treenodebutton.lua | 14 | 3255 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.treenodebutt... | mit |
HuangYuNan/thcsvr | expansions/script/c71208.lua | 1 | 3047 | --箱庭的世界
function c71208.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e10=Effect.CreateEffect(c)
e10:SetCategory(CATEGORY_SPECIAL_SUMMON)
e10:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e10:SetType(EFFECT_TYP... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c20140.lua | 1 | 2063 |
--露西亚人形✿
function c20140.initial_effect(c)
--pierce
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20140,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c20140.cost)
e1:SetTarget(c20140.target)
e1:SetOperation(c20140.operatio... | gpl-2.0 |
nolansingroy/cocos2d-x-samples | samples/FantasyWarrior3D/frameworks/runtime-src/Classes/custom/api/Sequence3D.lua | 9 | 2113 |
--------------------------------
-- @module Sequence3D
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- initializes the action
-- @function [parent=#Sequence3D] initWithActions
-- @param self
-- @param #array_table arrayOfActions
-- @return bool#bool ret (return value: bool)
... | mit |
bestofkeeperbot/keeperbot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
bn7/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Bammiro_IM.lua | 14 | 3330 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Bammiro, I.M.
-- Border Conquest Guards
-- @pos -241.334 -1 478.602 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/cupid_chocolate.lua | 12 | 1465 | -----------------------------------------
-- ID: 5681
-- Item: cupid_chocolate
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Accuracy +10
-- Ranged Accuracy +10
-- Attack 10
-- Ranged Attack 10
-- Store TP +25
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
bn7/darkstar | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 7 | 1508 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/settings");
-----------------------------... | gpl-3.0 |
yinjun322/quick-ng | external/lua/luajit/luajit-2.1/src/jit/p.lua | 65 | 9092 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | mit |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/protocols/ipv6/luasrc/model/network/proto_6x4.lua | 78 | 1602 | --[[
LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions
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/L... | gpl-2.0 |
omid1212/hhhh | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Julzso23/SpaceVenture | lib/loveframes/objects/internal/tabbutton.lua | 14 | 5632 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.tabbutton"))... | mit |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Romaa_Mihgo.lua | 14 | 1060 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Romaa Mihgo
-- Type: Standard NPC
-- @zone 94
-- @pos -1.967 -3 -26.337
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
bn7/darkstar | scripts/zones/Maquette_Abdhaljs-Legion/Zone.lua | 30 | 1150 | -----------------------------------
--
-- Zone: Maquette Abdhaljs-Legion
--
-----------------------------------
package.loaded["scripts/zones/Maquette_Abdhaljs-Legion/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Maquette_Abdhaljs-Legion/TextIDs");
--... | gpl-3.0 |
kling-igor/love2d-animation | spec/love-mocks.lua | 2 | 1243 | -- mocks for LÖVE functions
local Quad_mt = {
__eq = function(a,b)
if #a ~= #b then return false end
for i,v in ipairs(a) do
if b[i] ~= v then return false end
end
return true
end,
__tostring = function(self)
local buffer = {}
for i,v in ipairs(self) do
buffer[i] = tostring(v)
... | mit |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Steel_Bones.lua | 17 | 1693 | -----------------------------------
-- Area: Port Bastok
-- NPC: Steel Bones
-- Standard Info NPC
-- Involved in Quest: Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts... | gpl-3.0 |
bn7/darkstar | scripts/zones/Mamool_Ja_Training_Grounds/Zone.lua | 17 | 1133 | -----------------------------------
--
-- Zone: Mamool_Ja_Training_Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mamool_Ja_Training_Grounds/TextIDs"] = nil;
require("scripts/zones/Mamool_Ja_Training_Grounds/TextIDs");
------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Norg/npcs/Aeka.lua | 14 | 3298 | -----------------------------------
-- Area: Norg
-- NPC: Aeka
-- Involved in Quest: Forge Your Destiny
-- @zone 252
-- @pos 4 0 -4
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/q... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-zmianahasla/zmienhaslo.lua | 1 | 1759 | --[[
Zmiana hasla do konta
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-zmianahasla
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
addEvent("onPlayerSendNewPassword",true)
addEventHandler("onPlayerSe... | mit |
bn7/darkstar | scripts/zones/PsoXja/npcs/_i99.lua | 17 | 3621 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems");
----... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c23083.lua | 1 | 1238 | --疵痕『损坏的护符』
function c23083.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c23083.target)
e1:SetOperation(c23083.activate)
c:RegisterEffect(e1)
end
function c23083.target(e,t... | gpl-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[obiekty]/psz-usuniete_obiekty/mapEditorScriptingExtension_s.lua | 15 | 24052 | -- FILE: mapEditorScriptingExtension_s.lua
-- PURPOSE: Prevent the map editor feature set being limited by what MTA can load from a map file by adding a script file to maps
-- VERSION: RemoveWorldObjects (v1) AutoLOD (v1)
local usedLODModels = {}
function onResourceStartOrStop ( )
for _, object in ipairs ( getEleme... | mit |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[obiekty]/psz-arena3/mapEditorScriptingExtension_s.lua | 15 | 24052 | -- FILE: mapEditorScriptingExtension_s.lua
-- PURPOSE: Prevent the map editor feature set being limited by what MTA can load from a map file by adding a script file to maps
-- VERSION: RemoveWorldObjects (v1) AutoLOD (v1)
local usedLODModels = {}
function onResourceStartOrStop ( )
for _, object in ipairs ( getEleme... | mit |
bn7/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua | 29 | 1200 | -----------------------------------
-- Area: Abyssea - Konschatat
-- NPC: Cavernous Maw
-- @pos 159.943 -72.109 -839.986 15
-- Teleports Players to Konschatat Highlands
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bio_iii.lua | 26 | 2604 | -----------------------------------------
-- Spell: Bio III
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Bio III value per point is '30' This is a constant set in the ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Abyssea-Vunkerl/mobs/Sippoy.lua | 16 | 1198 | -----------------------------------
-- Area: Abyssea - Vunkerl
-- Mob: Sippoy
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.