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 |
|---|---|---|---|---|---|
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/controller/admin/servicectl.lua | 76 | 1376 | --[[
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$
]]--
mo... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/ipkg-ar71xx/luci-base/usr/lib/lua/luci/controller/admin/servicectl.lua | 76 | 1376 | --[[
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$
]]--
mo... | gpl-2.0 |
ONElua/AdrenalineBubbleManager | AdrenalineBubbleManager/system/commons.lua | 1 | 11843 | --[[
Licensed by Creative Commons Attribution-ShareAlike 4.0
http://creativecommons.org/licenses/by-sa/4.0/
Designed By Gdljjrod & DevDavisNunez.
Collaborators: BaltaR4 & Wzjk.
]]
game.close()
color.loadpalette()
-- Set ux0 folder path
local pathABM = "ux0:data/ABM/"
__PATHINI = "ux0:data/ABM/... | gpl-3.0 |
bn7/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua | 23 | 1524 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Apocalyptic_Beast
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
requir... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[obiekty]/gracz-ciuchy sklep/sklepy_c.lua | 1 | 4516 | --[[
Sklepy z odzieza
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.gracz-sklep_odziezowy
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local s_active = nil
local i = 1
local sw, sh = guiGetScreenSize()
l... | mit |
krichter722/vlc | share/lua/modules/dkjson.lua | 95 | 25741 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | lgpl-2.1 |
bn7/darkstar | scripts/zones/Crawlers_Nest/npcs/Treasure_Chest.lua | 14 | 3698 | -----------------------------------
-- Area: Crawler Nest
-- NPC: Treasure Chest
-- Involved In Quest: Enveloped in Darkness
-- @pos 41 0.1 -314 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
bn7/darkstar | scripts/globals/mobskills/trinary_tap.lua | 32 | 2010 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
sorblack-x/anti_spam | plugins/welcome.lua | 1 | 3658 | 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 |
simonemainardi/ntopng | scripts/lua/modules/top_structure.lua | 1 | 1788 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "top_talkers"
require "lua_utils"
local function getVLANList(ifid, ifname)
interface.select(ifname)
hosts_stats = interface.getHostsInfo()
hosts_stats = hosts_stats[... | gpl-3.0 |
lipari/flux-core | src/bindings/lua/Test/Builder/NoOutput.lua | 8 | 1477 |
--
-- lua-TestMore : <http://fperrad.github.com/lua-TestMore/>
--
local io = require 'io'
local pairs = pairs
local require = require
_ENV = nil
local m = {}
function m.create ()
local tb = require 'Test.Builder'.create()
tb:output(io.tmpfile())
tb:failure_output(io.tmpfile())
tb:todo_output(io.tmpf... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-pbx/luasrc/model/cbi/pbx-users.lua | 146 | 5623 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/warfare/armor/basic.lua | 1 | 2127 |
----- Basic Armor -----
data:extend({
{
type = "armor",
name = "basic-armor",
icon = "__base__/graphics/icons/light-armor.png",
icon_size = 64, icon_mipmaps = 4,
resistances =
{
Resist("physical", 3, 20),
Resist("explosion", 5, 20),
Resist("fire", 0, 10),
},
subgro... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/Ryan.lua | 17 | 1762 | -----------------------------------
-- Area: Port Windurst
-- NPC: Ryan
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_Windurst/TextIDs");
------... | gpl-3.0 |
bn7/darkstar | scripts/zones/North_Gustaberg/Zone.lua | 12 | 3962 | -----------------------------------
--
-- Zone: North_Gustaberg (106)
--
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/North_Gustaberg/TextIDs");
requ... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/pukatrice_egg_+1.lua | 12 | 1828 | -----------------------------------------
-- ID: 6275
-- Item: pukatrice_egg_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +20
-- MP +20
-- STR +3
-- Fire resistance +21
-- Attack +21% (cap 90)
-- Ranged Attack +21% (cap 90)
-- Subtle Blow +9
---------------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Norg/Zone.lua | 12 | 2309 | -----------------------------------
--
-- Zone: Norg (252)
--
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones... | gpl-3.0 |
bn7/darkstar | scripts/zones/Heavens_Tower/npcs/Chumimi.lua | 25 | 6406 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Chumimi
-- Starts and Finishes Quest: The Three Magi, Recollections
-- @pos 0.1 30 21 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
Widjet/mudlet | src/LuaGlobal.lua | 12 | 61444 |
----------------------------------------------------------------------------------
-- Useful global LUA functions that are accessible from within Mudlet
----------------------------------------------------------------------------------
-- These general functions can be used from anywhere within Mudlet scripts
-- They ... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/machines/data/mining-drills.lua | 1 | 15609 | data:extend({
{
type = "mining-drill",
name = "basic-burner-drill",
icon = "__base__/graphics/icons/burner-mining-drill.png",
icon_size = 64, icon_mipmaps = 4,
flags = {"placeable-neutral", "player-creation"},
resource_categories = {"resource-solid-tier-0", "resource-solid-tier-1... | gpl-3.0 |
bn7/darkstar | scripts/globals/mobskills/calcifying_deluge.lua | 15 | 1046 | ---------------------------------------------
-- Calcifying Deluge
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
----------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Ordelles_Caves/npcs/qm6.lua | 14 | 1402 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: ??? (qm6)
-- Involved In Quest: Dark Puppet
-- @pos -132 -27 -245 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-wol/luasrc/model/cbi/wol.lua | 42 | 2521 | --[[
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
]]--
local sy... | gpl-2.0 |
shizhai/wprobe | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/sgi/cgi.lua | 87 | 2260 | --[[
LuCI - SGI-Module for CGI
Description:
Server Gateway Interface for CGI
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 copy of the License at... | gpl-2.0 |
bn7/darkstar | scripts/zones/Caedarva_Mire/npcs/Nasheefa.lua | 11 | 1469 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nasheefa
-- Type: Alzadaal Undersea Ruins
-- @pos -440.998 0.107 -740.015 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Toraimarai_Canal/npcs/Transporter.lua | 14 | 1296 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Transporter
-- Involved In Windurst Mission 7-1
-- @zone 169
-- @pos 182 11 -60 169
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai_Canal/TextIDs");
--------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Mount_Zhayolm/npcs/qm1.lua | 30 | 1334 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Brass Borer(ZNM T1))
-- @pos 399 -27 120 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
require("scripts... | gpl-3.0 |
bn7/darkstar | scripts/zones/Lower_Jeuno/npcs/Ruslan.lua | 14 | 2119 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ruslan
-- Involved In Quest: Wondering Minstrel
-- Working 100%
-- @zone = 245
-- @pos = -19 -1 -58
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
bn7/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm12.lua | 14 | 1384 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm12 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -245.603 -5.500 139.855 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
LuaDist2/kong | spec/03-plugins/17-jwt/01-jwt_parser_spec.lua | 5 | 8389 | local jwt_parser = require "kong.plugins.jwt.jwt_parser"
local fixtures = require "spec.03-plugins.17-jwt.fixtures"
local helpers = require "spec.helpers"
local u = helpers.unindent
describe("Plugin: jwt (parser)", function()
describe("Encoding", function()
it("should properly encode using HS256", function()
... | apache-2.0 |
omid1212/hhhh | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
mamaddeveloper/sp | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/buttered_nebimonite.lua | 12 | 1394 | -----------------------------------------
-- ID: 4267
-- Item: Buttered Nebimonite
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- defense % 25
-- defense Cap 75
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c29035.lua | 1 | 1641 |
--进击的小人
function c29035.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c29035.cost)
e1:SetTarget(c29035.sptg)
e1:SetOperation(c29035.spop)
c:RegisterEffect(e1)
end
func... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/ipkg-ar71xx/luci-mod-admin-full/usr/lib/lua/luci/model/cbi/admin_system/system.lua | 39 | 5650 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/cure_iii.lua | 26 | 4380 | -----------------------------------------
-- Spell: Cure III
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic"... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Mines/npcs/Wahid.lua | 14 | 1997 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Wahid
-- Start & Finishes Quest: The Siren's Tear
-- @zone 234
-- @pos 26.305 -1 -66.403
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests")... | gpl-3.0 |
bn7/darkstar | scripts/zones/Norg/npcs/HomePoint#2.lua | 27 | 1236 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#2
-- @pos -65 -5 54 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
----------------------... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 50 | 6053 | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
(c) 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 o... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/piece_of_witch_nougat.lua | 12 | 1280 | -----------------------------------------
-- ID: 5645
-- Item: piece_of_witch_nougat
-- Food Effect: 1hour, All Races
-----------------------------------------
-- HP 50
-- Intelligence 3
-- Agility -3
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
yinjun322/quick-ng | quick/samples/coinflip/src/app/scenes/ChooseLevelScene.lua | 8 | 1407 |
local AdBar = import("..views.AdBar")
local LevelsList = import("..views.LevelsList")
local ChooseLevelScene = class("ChooseLevelScene", function()
return display.newScene("ChooseLevelScene")
end)
function ChooseLevelScene:ctor()
local bg = display.newSprite("#OtherSceneBg.png")
-- make background sprite... | mit |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 85 | 3643 | --[[
Luci statistics - olsrd plugin diagram definition
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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/licen... | gpl-2.0 |
tst2005/luarocks | src/luarocks/fetch/git.lua | 13 | 3617 |
--- Fetch back-end for retrieving sources from GIT.
--module("luarocks.fetch.git", package.seeall)
local git = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
--- Git >= 1.7.10 can clone a branch **or tag**, < 1.7.1... | mit |
gaoxiaojun/symphony | ref/LuaCoco-1.1.7/test/chameneos.lua | 1 | 1810 | -- The Great Computer Language Shootout
-- http://shootout.alioth.debian.org/
-- contributed by Mike Pall
local co = coroutine
local create, resume, yield = co.create, co.resume, co.yield
local N = tonumber(arg and arg[1]) or 10
local first, second
-- Meet another creature.
local function meet(me)
while second do ... | bsd-3-clause |
HuangYuNan/thcsvr | expansions/script/c22173.lua | 1 | 3418 |
--七曜-土金符「翡翠巨石」
function c22173.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c22173.con)
c:RegisterEffect(e1)
--activate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(22173,0))
e2:SetType(EFFECT_TYPE_IGNITION)
... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c10372.lua | 1 | 3276 | --彗星『Blazing Star』
function c10372.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DISABLE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming... | gpl-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[community]/hedit/server/core.lua | 1 | 3046 | addEventHandler ( "onResourceStart", resourceRoot, function ( )
-- !HIGH PRIORITY!
-- KEEP THIS IN ORDER TO LET CLIENTS SYNC THEIR SAVED HANDLINGS BETWEEN SERVERS!
-- BY KEEPING THE DEFAULT RESOURCENAME PLAYERS CAN STORE THEIR HANDLINGS CLIENTSIDE,
-- SO WHENEVER THEY JOIN ANOTHER SERVER, THEY WILL... | mit |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-suszarka/c_suszarka.lua | 1 | 4238 | --[[
]]
local sw,sh=guiGetScreenSize()
local mw,mh=800,600
local vehicle = {}
vehicle.id = nil
vehicle.speed = nil
vehicle.driver = nil
local option = {}
value=nil
element=nil
option.selected=0
option.actived=false
option["vehicle"]={
"Akcja: Napraw pojazd",
"Akcja: Usuń pojazd",
"Akcja: Zamróź pojazd",... | mit |
bn7/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_HM.lua | 23 | 1634 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel HM
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
----... | gpl-3.0 |
shyux/BolScripts | EliseMechanics.lua | 13 | 21635 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
abbasgh12345/extremeseed | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
ArmanIr/arbot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
li-wl/kong | kong/plugins/correlation-id/handler.lua | 5 | 2034 | -- Copyright (C) Mashape, Inc.
local BasePlugin = require "kong.plugins.base_plugin"
local req_set_header = ngx.req.set_header
local req_get_headers = ngx.req.get_headers
local uuid = require("kong.tools.utils").uuid
local CorrelationIdHandler = BasePlugin:extend()
local worker_uuid
local worker_counter
local fmt =... | apache-2.0 |
AntonioModer/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 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua | 7 | 2491 |
--------------------------------
-- @module AnimationFrame
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Set the SpriteFrame.<br>
-- param frame A SpriteFrame will be used.
-- @function [parent=#AnimationFrame] setSpriteFrame
-- @param self
-- @param #cc.SpriteFrame frame
-- @return Animat... | mit |
HuangYuNan/thcsvr | expansions/script/c25152.lua | 1 | 1613 | --花符『幻想乡的开花』
function c25152.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,25152+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c25152.condition)
e1:SetTarget(c25152.ta... | gpl-2.0 |
reox/awesomerc | blingbling/net.lua | 1 | 16997 | local awful = require("awful")
local naughty = require("naughty")
local helpers =require("blingbling.helpers")
local string = require("string")
local io = require("io")
local os = require("os")
local setmetatable = setmetatable
local tonumber = tonumber
local ipairs = ipairs
local pairs =pairs
local math = math
local t... | gpl-3.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | 79 | 3356 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
bn7/darkstar | scripts/zones/Riverne-Site_A01/npcs/_0u2.lua | 17 | 1368 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/TextIDs");
... | gpl-3.0 |
bn7/darkstar | scripts/globals/abilities/thunder_maneuver.lua | 19 | 1620 | -----------------------------------
-- Ability: Thunder Maneuver
-- Enhances the effect of thunder attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status... | gpl-3.0 |
bn7/darkstar | scripts/zones/Boneyard_Gully/mobs/Race_Runner.lua | 10 | 1514 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: Race Runner
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/pathfind");
local path = {
-539, 0, -481,
-556, 0, -478,
-581, 0, -475,
-579, -3, -460,
... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c26140.lua | 1 | 2222 | --鵺符『鵺的蛇行表演』
function c26140.initial_effect(c)
--lv change
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c26140.target)
e1:SetOperation(c26140.operation)
c:RegisterEffect(e1)
end
function c26140.filter(c)
retur... | gpl-2.0 |
bn7/darkstar | scripts/zones/Labyrinth_of_Onzozo/mobs/Labyrinth_Manticore.lua | 2 | 1060 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Labyrinth Manticore
-- Note: Place holder Narasimha
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
----------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/bluemagic/light_of_penance.lua | 2 | 2369 | -----------------------------------------
-- Spell: Light of Penance
-- Reduces an enemy's TP. Additional effect: Blindness and "Bind"
-- Spell cost: 53 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Light)
-- Blue Magic Points: 5
-- Stat Bonus: CHR+1, HP+15
-- Level: 58
-- Casting Time: 3 seconds
-- Recast Time:... | gpl-3.0 |
rastin45/botrider12 | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
ahosein243243/uzzbot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/weaponskills/kings_justice.lua | 7 | 1623 | -----------------------------------
-- Kings Justice
-- Great Axe weapon skill
-- Skill Level: N/A
-- Delivers a threefold attack. Damage varies with TP. Conqueror: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Warrior) quest.
-- Aligned with the Breeze Gorget, Thunder Gorget... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/cone_of_homemade_gelato.lua | 2 | 1531 | -----------------------------------------
-- ID: 5223
-- Item: cone_of_homemade_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 1
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
--------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p4.lua | 4 | 1242 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Storage Compartment
-- COP spawn Boggelmann.
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
require("scripts/zo... | gpl-3.0 |
ryanjmulder/premake-4.x | src/base/os.lua | 3 | 6743 | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | bsd-3-clause |
nevercast/cuberite | MCServer/Plugins/APIDump/Hooks/OnEntityAddEffect.lua | 36 | 1593 | return
{
HOOK_ENTITY_ADD_EFFECT =
{
CalledWhen = "An entity effect is about to get added to an entity.",
DefaultFnName = "OnEntityAddEffect", -- also used as pagename
Desc = [[
This hook is called whenever an entity effect is about to be added to an entity. The plugin may
disallow the addition by returni... | apache-2.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI_Options/libs/AceGUI-3.0-SharedMediaWidgets/prototypes.lua | 2 | 8753 | -- Widget created by Yssaril
--[===[@debug@
local DataVersion = 9001 -- dev version always overwrites everything else :)
--@end-debug@]===]
--@non-debug@
local DataVersion = 56
--@end-non-debug@
local AGSMW = LibStub:NewLibrary("AceGUISharedMediaWidgets-1.0", DataVersion)
if not AGSMW then
return -- already loaded a... | mit |
ediiknorand/hakuween2017 | hakuween/ui/check.lua | 1 | 1144 | local Class = require 'util/class'
local UIItem = require 'ui/ui-item'
local Check = Class(UIItem)
function Check.__new(text, value, callback)
local self = Check.__super.__new(text)
self.value = value and true or false
self.callback = callback or function() end
return self
end
function Check:onClic... | mit |
david-xiao/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua | 68 | 2536 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Exec Plugin Configuration"),
translate(
"The exec plugin starts external commands to read values " ..
"from or to notify external processes when cer... | apache-2.0 |
raphaelamorim/SCRNNs | util.lua | 4 | 4439 | --
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Author: Sumi... | bsd-3-clause |
Cloudef/darkstar | scripts/globals/items/plate_of_ikra_gunkan_+1.lua | 2 | 1394 | -----------------------------------------
-- ID: 5220
-- Item: plate_of_ikra_gunkan_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 30
-- Magic 12
-- Dexterity 3
-- Mind -1
-- Accuracy % 18
-- Accuracy Cap 30
-- Ranged ACC % 18
-- Ranged ACC Cap 30
-------------------------------... | gpl-3.0 |
kangkot/reborn | extern/redis-2.8.13/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/sleep/sv_sleep.lua | 3 | 7908 | -- very old sleep module
local KnockoutTime = 5
local function ResetKnockouts(player)
player.SleepRagdoll = nil
player.KnockoutTimer = 0
end
hook.Add("PlayerSpawn", "Knockout", ResetKnockouts)
local function stopSleep(ply)
if ply.Sleeping then
DarkRP.toggleSleep(ply, "force")
end
end
function... | mit |
Adai0808/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua | 82 | 4185 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rule needs a protocol specified
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".src_port"))
local destPort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".dest_port"))
if sourcePort ~= "" or d... | gpl-2.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/cooldownflash/cooldownflash.lua | 1 | 9273 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("CooldownFlash")
local CF = R:NewModule("CooldownFlash", "AceEvent-3.0", "AceHook-3.0")
CF.modName = L["中部冷却闪光"]
_CooldownFlash = CF
local cooldowns = {}
... | mit |
keidax/awesome | themes/zenburn/theme.lua | 7 | 5529 | -------------------------------
-- "Zenburn" awesome theme --
-- By Adrian C. (anrxc) --
-------------------------------
-- Alternative icon sets and widget icons:
-- * http://awesome.naquadah.org/wiki/Nice_Icons
-- {{{ Main
theme = {}
theme.wallpaper = "@AWESOME_THEMES_PATH@/zenburn/zenburn-background.png"
-... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/items/bijou_glace.lua | 2 | 1077 | -----------------------------------------
-- ID: 4269
-- Item: Bijou Glace
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 90
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/moreblocks/redefinitions.lua | 8 | 2395 | --[[
More Blocks: redefinitions of default stuff
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Redefinitions of some default crafting recipes:
minetest.register_craft({
output = "default:sign_wall 4",
recipe = {
{"group:wood", "gro... | unlicense |
keidax/awesome | lib/awful/widget/progressbar.lua | 3 | 6946 | ---------------------------------------------------------------------------
--- A progressbar widget.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @classmod awful.widget.progressbar
--------------------------------------------------------------... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Apollyon/mobs/Barometz.lua | 5 | 1061 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Barometz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
f... | gpl-3.0 |
tinymins/TF | BBSeek/YCBank.lua | 1 | 13846 | YCBank={
isShowed=false,
BankMaxCount=6, --²Ö¿â×î´ó±³°üÊýÁ¿ 1¸ö¹Ì¶¨ 5¸ö°ü°ü
INVENTORY_INDEX__BANK=7, --²Ö¿âÆðʼIDX
INVENTORY_INDEX_EQUIP=0,
EQUIPMENT_INVENTORY_BANK_PACKAGE1=18,
RBkFreeSize=0,
RBkFS={},
}
function YCBank.OnFrameCreate()
this:RegisterEvent("UI_SCALED")
end
function YCBank.ShowBankItems(frame) --A... | mit |
Cloudef/darkstar | scripts/globals/spells/bluemagic/wild_oats.lua | 2 | 1815 | -----------------------------------------
-- Spell: Wild Oats
-- Additional effect: Vitality Down. Duration of effect varies on TP
-- Spell cost: 9 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1, HP+10
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Northern_San_dOria/npcs/Anilla.lua | 5 | 1379 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Anilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos 8 0.1 61 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/No... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/AlTaieu/mobs/Ul_hpemde.lua | 5 | 2195 | -----------------------------------
-- Area: Al'Taieu
-- MOB: Ul'Hpemde
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
mob:hideName(true);
mob:untargetable(true);
mob:AnimationSub(5);
... | gpl-3.0 |
DuraCopter/ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 96 | 29666 |
--[[
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 |
Cloudef/darkstar | scripts/commands/messagespecial.lua | 8 | 1268 | ---------------------------------------------------------------------------------------------------
-- func: messagespecial
-- desc: Injects a message special packet.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "i... | gpl-3.0 |
aliazaliaz/fire1 | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
NEWTGBOT/NEWTGBOT | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | agpl-3.0 |
mahdioffical/T | serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
FacepunchProgrammers/bridge-irc | irc/asyncoperations.lua | 6 | 1883 | local table = table
local assert = assert
local error = error
local select = select
local pairs = pairs
module "irc"
local meta = _META
function meta:send(msg, ...)
if select("#", ...) > 0 then
msg = msg:format(...)
end
self:invoke("OnSend", msg)
local bytes, err = self.socket:send(msg .. "\r\n")
if not byt... | mit |
DARKRPISSHITFIXTHISUPDATE/DarkRP | entities/entities/letter/cl_init.lua | 5 | 2454 | include("shared.lua")
local frame
local SignButton
function ENT:Draw()
self:DrawModel()
end
local function KillLetter(msg)
hook.Remove("HUDPaint", "ShowLetter")
frame:Remove()
end
usermessage.Hook("KillLetter", KillLetter)
local function ShowLetter(msg)
if frame then
frame:Remove()
end
... | mit |
flingo64/PhotoStation-Upload-Lr-Plugin | PhotoStation_upload.lrplugin/PSPluginMetadata.lua | 1 | 2714 | --[[----------------------------------------------------------------------------
PSPluginMetadata.lua
This file is part of Photo StatLr - Lightroom plugin.
Copyright(c) 2015-2022, Martin Messmer
Summary information for Photo StatLr
Photo StatLr is free software: you can redistribute it and/or modify
it under the ter... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Bastok_Mines/npcs/Phara.lua | 5 | 2318 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Phara
-- Starts and Finishes Quest: The doorman (start)
-- Involved in Quest: The Talekeeper's Truth
-- !zone 234
-- !pos 75 0 -80
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
MinetestForFun/server-minetestforfun | minetestforfun_game/mods/xpanes/init.lua | 6 | 4518 | xpanes = {}
local function is_pane(pos)
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0
end
local function connects_dir(pos, name, dir)
local aside = vector.add(pos, minetest.facedir_to_dir(dir))
if is_pane(aside) then
return true
end
local connects_to = minetest.registered_nodes[name]... | unlicense |
jsfdez/premake-core | tests/api/test_string_kind.lua | 9 | 1397 | --
-- tests/api/test_string_kind.lua
-- Tests the string API value type.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.api_string_kind = {}
local suite = T.api_string_kind
local api = premake.api
--
-- Setup and teardown
--
function suite.setup()
api.register {
name = "testapi",
kind ... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.