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/Yuhtunga_Jungle/npcs/Field_Manual.lua | 29 | 1055 | -----------------------------------
-- Field Manual
-- Area: Yuhtunga Jungle
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
----------------------------------... | gpl-3.0 |
gaoxiaojun/symphony | test/lua5.1-tests/sort.lua | 10 | 1659 | print"testing sort"
function check (a, f)
f = f or function (x,y) return x<y end;
for n=table.getn(a),2,-1 do
assert(not f(a[n], a[n-1]))
end
end
a = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"}
table.sort(a)
check(a)
limit = 30000
if rawget(_G, "_soft") then ... | bsd-3-clause |
bn7/darkstar | scripts/zones/Konschtat_Highlands/npcs/qm2.lua | 14 | 1485 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: qm2 (???)
-- Involved in Quest: Forge Your Destiny
-- @pos -709 2 102 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests"... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c21131.lua | 1 | 2639 | --生药「国士无双之药」
function c21131.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(c21131.target)
e1:SetOperation(c21131.operation)
c:RegisterEffect(e1)
end
function c21131.filter(c)
retur... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/kurayami_ni.lua | 27 | 1143 | -----------------------------------------
-- Spell: Kurayami:Ni
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-frakcje/utils.lua | 1 | 1580 | function updateAllTxt(fid, count)
if (not fid) then return end
local teksty = getElementsByType("ctext",getRootElement())
for i,v in pairs(teksty) do
if (getElementData(v,"f:text") == fid) then
if (tonumber(fid) == 1) then
setElementData(v,"ctext","Ilość lekarzy: "..count.."/5")
... | mit |
nlfiedler/mal | lua/reader.lua | 14 | 3968 | local rex = require('rex_pcre')
local string = require('string')
local table = require('table')
local types = require('types')
local throw, Nil, Symbol, List = types.throw, types.Nil,
types.Symbol, types.List
local M = {}
Reader = {}
function Reader:new(tokens)
local newObj = {tok... | mpl-2.0 |
Telecat-full/-telecat- | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
bn7/darkstar | scripts/zones/Upper_Jeuno/npcs/_6s1.lua | 5 | 3590 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Marble Bridge Eatery (Door)
-- @pos -96.6 -0.2 92.3 244
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs")
require("scripts/globa... | gpl-3.0 |
chenbaihu/thrift | lib/lua/TTransport.lua | 115 | 2800 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
bn7/darkstar | scripts/zones/AlTaieu/npcs/HomePoint#3.lua | 29 | 1240 | -----------------------------------
-- Area: AlTaieu
-- NPC: HomePoint#3
-- @pos 569 0 410 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/homepoint");
--------------... | gpl-3.0 |
frankyifei/koreader | spec/unit/readerview_spec.lua | 2 | 3020 | describe("Readerview module", function()
local DocumentRegistry, Blitbuffer, ReaderUI, UIManager
setup(function()
require("commonrequire")
DocumentRegistry = require("document/documentregistry")
Blitbuffer = require("ffi/blitbuffer")
ReaderUI = require("apps/reader/readerui")
... | agpl-3.0 |
shyamalschandra/vlc | share/lua/sd/icecast.lua | 82 | 2757 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | lgpl-2.1 |
Bilibili/vlc | share/lua/sd/icecast.lua | 82 | 2757 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... | gpl-2.0 |
bn7/darkstar | scripts/zones/Northern_San_dOria/npcs/Doggomehr.lua | 14 | 1207 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Doggomehr
-- Guild Merchant NPC: Blacksmithing Guild
-- @pos -193.920 3.999 162.027 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Guema/GuemUICastBars | CastBarZ_Config/Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 6 | 9384 | --[[-----------------------------------------------------------------------------
Frame Container
-------------------------------------------------------------------------------]]
local Type, Version = "Frame", 26
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or ... | unlicense |
HuangYuNan/thcsvr | expansions/script/c10330.lua | 1 | 2452 | --八卦炉
function c10330.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c10330.target)
e1:SetOperation(c10330.operation)
c:RegisterEffect(e1)
--dmg
loca... | gpl-2.0 |
bn7/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 14 | 3333 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
bn7/darkstar | scripts/globals/abilities/shadowbind.lua | 26 | 1929 | -----------------------------------
-- Ability: Shadowbind
-- Roots enemy in place.
-- Obtained: Ranger Level 40
-- Recast Time: 5:00
-- Duration: 00:30
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbilityCheck
---... | gpl-3.0 |
lipari/flux-core | src/modules/wreck/lua.d/timeout.lua | 1 | 1908 | --
-- Register timer on nodeid 0 if kvs `walltime` is set for this job.
-- Kill job on timeout if reached.
--
local posix = require 'posix'
local function signal_to_number (s)
if not s then return nil end
local ret = tonumber (s)
if ret then return ret end
return posix [s]
end
local function timeout_... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/logistics/tier-3/splitter.lua | 1 | 1386 |
local DyWorld_Prototype_1 = DyDs_CopyPrototype("splitter", "fast-splitter", "splitter-3", true)
local DyWorld_Prototype_2 = DyDs_CopyPrototype("item", "fast-splitter", "splitter-3", true)
DyWorld_Prototype_2.stack_size = 200
DyWorld_Prototype_1.speed = (60 / 480)
DyWorld_Prototype_1.next_upgrade = "splitter-4"
DyWo... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/modules/base/luasrc/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 |
HuangYuNan/thcsvr | expansions/script/c50750.lua | 1 | 3356 |
--晓型驱逐舰-Верный
function c50750.initial_effect(c)
c:EnableReviveLimit()
local temp = 0
while temp<7 do
c:RegisterFlagEffect(50200,0,0,0)
temp = temp+1
end
--special summon
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
... | gpl-2.0 |
bn7/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Mokto-Lankto_WW.lua | 14 | 3350 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Mokto-Lankto, W.W.
-- Type: Outpost Conquest Guards
-- @pos 470.843 23.465 415.520 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
nulian/InlineAura | libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 42 | 8139 | --[[-----------------------------------------------------------------------------
Slider Widget
Graphical Slider, like, for Range values.
-------------------------------------------------------------------------------]]
local Type, Version = "Slider", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not Ace... | gpl-2.0 |
bn7/darkstar | scripts/globals/weaponskills/burning_blade.lua | 23 | 1317 | -----------------------------------
-- Burning Blade
-- Sword weapon skill
-- Skill Level: 30
-- Desription: Deals Fire elemental damage to enemy. Damage varies with TP.
-- Aligned with the Flame Gorget.
-- Aligned with the Flame Belt.
-- Element: Fire
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 14 | 1078 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @pos -176.212 -9 -25.049 235
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;... | gpl-3.0 |
BipolarAurora/H-CE-Opensauce-V5 | shared/bin/mmbbq_3.0.2/HaloCE/1_09_Server/OpenSauce.lua | 2 | 1160 | -- Yelo: Open Sauce SDK
-- Halo 1 (CE) Edition
-- See license\OpenSauce\Halo1_CE for specific license information
HaloCEServer_OpenSauce =
{
--////////////////////////////////////////////////////////////////////////
-- Common/GameSystems.cpp
["K_QUERY_EXITFLAG_REG_CALL"] = 0x4FF3D6,
["K_QUERY_EXITFLAG_REG"]... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c24006.lua | 1 | 2837 |
---废狱-地狱的轮祸·火焰猫磷
function c24006.initial_effect(c)
--synchro summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetValue(c24006.synlimit)
c:RegisterEffect(e1)
--special summon
... | gpl-2.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-splash/luasrc/controller/splash/splash.lua | 50 | 4511 | module("luci.controller.splash.splash", package.seeall)
local uci = luci.model.uci.cursor()
local util = require "luci.util"
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c28036.lua | 1 | 2595 | --秘封「广重36号」
function c28036.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(28036,0))
e2:SetCategory(CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNI... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/logistics/tier-2/railway.lua | 1 | 2605 | data:extend({
{
type = "recipe",
name = "train-stop",
category = "assembling-tier-2",
normal =
{
ingredients =
{
{type = "item", name = "bronze-plate", amount = 4},
{type = "item", name = "iron-plate", amount = 6},
{type = "item", name = "control-board-1", amount =... | gpl-3.0 |
taedla01/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
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
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
never615/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/shortport.lua | 2 | 7234 | ---
-- Functions for building short portrules.
--
-- Since portrules are mostly the same for many scripts, this
-- module provides functions for the most common tests.
--
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
module(... or "shortport", package.seeall)
local nmap = require "nmap"
---
-- ... | mit |
mamaddeveloper/sp | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
ld-test/gimlet-cocktail | gimlet/init.lua | 2 | 2819 | local dispatch
do
local _obj_0 = require("gimlet.dispatcher")
dispatch = _obj_0.dispatch
end
local gimlet_cache = { }
local runner
runner = function(gimlet_cls)
local gimlet = gimlet_cache[gimlet_cls]
if not (gimlet) then
if type(gimlet_cls) == "string" then
gimlet = require(gimlet_cls)()
elseif g... | mit |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-core/totemy.lua | 1 | 4124 | --[[
Core - elementy do zbierania: totemy
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
totemy = {}
local a_totem=nil
local function usunTotem(id)
... | mit |
bn7/darkstar | scripts/zones/Abyssea-Misareaux/npcs/qm16.lua | 14 | 1563 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm16 (???)
-- Spawns Ironclad Pulverizor
-- @pos ? ? ? 216
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
------------------------... | gpl-3.0 |
LuaDist2/kong | kong/api/routes/consumers.lua | 5 | 2328 | local crud = require "kong.api.crud_helpers"
return {
["/consumers/"] = {
GET = function(self, dao_factory)
crud.paginated_set(self, dao_factory.consumers)
end,
PUT = function(self, dao_factory)
crud.put(self.params, dao_factory.consumers)
end,
POST = function(self, dao_factory)
... | apache-2.0 |
lagerstrom/urpuppet | modules/awesome/files/awesome_config_old/vicious/contrib/sensors.lua | 5 | 1740 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Greg D. <jabbas@jabbas.pl>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
loca... | apache-2.0 |
AntonioModer/Algorithm-Implementations | N_Queens_Problem/Lua/Yonaba/nqueens_test.lua | 26 | 1360 | -- Tests for nqueens.lua
local nqueens = require 'nqueens'
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... | mit |
bn7/darkstar | scripts/globals/abilities/steal.lua | 7 | 3273 | -----------------------------------
-- Ability: Steal
-- Steal items from enemy.
-- Obtained: Thief Level 5
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-- these are the quadavs that the thf af1 item can be stolen... | gpl-3.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/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 |
li-wl/kong | kong/plugins/ldap-auth/ldap.lua | 6 | 4559 | local asn1 = require "kong.plugins.ldap-auth.asn1"
local bunpack = string.unpack
local string_format = string.format
local _M = {}
local ldapMessageId = 1
local ERROR_MSG = {
[1] = "Initialization of LDAP library failed.",
[4] = "Size limit exceeded.",
[13] = "Confidentiality required",
[32] = "No such ob... | apache-2.0 |
nenonahar/GENERAAL | plugins/me.lua | 2 | 3447 | --[[ -- تم التعديل و التعريب بواسطه @KNSLTHM
--[[
Dev @KNSLTHM
Dev @NAHAR2_BOT
CH > @NENO_CH
--]]
do
local function mohammedboss(msg, matches)
if matches[1] == 'موقعي' then
if is_sudo(msg) then
... | gpl-2.0 |
Widjet/mudlet | src/mudlet-lua/lua/CoreMudlet.lua | 5 | 70595 | ----------------------------------------------------------------------------------
--- Mudlet Core Lua Functions
--- (file holds LuaDoc for all function implemented with in Mudlet Core)
----------------------------------------------------------------------------------
-- ensure that those function will not get define... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c22299.lua | 1 | 3148 | --天使的捉弄✿琪露诺&大妖精☆
function c22299.initial_effect(c)
--spsummon proc
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c22299.spcon)
e1:SetOperation(c22299.spop)
e1:SetLabel(2)
c:Regist... | gpl-2.0 |
ayourtch/luasocket6-test | src/mime.lua | 118 | 2433 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $
-----------------------------------------------------------------------------
------... | mit |
Guema/GuemUICastBars | CastBarZ/Libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 13 | 9884 | local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local pairs, assert, type = pairs, assert, type
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame, UIParent = CreateFrame, UIParent
-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
-- List them here for Mikk's FindGlobals... | unlicense |
abbasgh12345/extremeseed | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Waters/npcs/Otete.lua | 17 | 1423 | -----------------------------------
-- Area: Windurst_Waters
-- NPC: Otete
-- Only sells when Windurst controlls Li'Telor Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Waters/... | gpl-3.0 |
yinjun322/quick-ng | quick/framework/anysdkConst.lua | 20 | 6171 |
function CreatEnumTable(tbl, index)
local enumtbl = {}
local enumindex = index or 0
for i, v in ipairs(tbl) do
enumtbl[v] = enumindex + i - 1
end
return enumtbl
end
Plugin_type = {
"kPluginAds",
"kPluginAnalytics",
"kPluginIAP",
"kPluginShare",
"kPluginUser",
... | mit |
AntonioModer/Algorithm-Implementations | Factorial/Lua/Yonaba/factorial_test.lua | 27 | 1336 | -- Tests for factorial.lua
local fact = require 'factorial'
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 |
HuangYuNan/thcsvr | expansions/script/c27024.lua | 1 | 2291 | --仙符「豪族乱舞」
function c27024.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c27024.cost)
e1:SetTarget(c27024.target)
e1:SetOperation(c27024.activate)
c:RegisterEffect(e1)
end
function c2... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c40030.lua | 1 | 3817 |
--精灵剑舞契约
--require "expansions/script/nef/elf"
function c40030.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c40030.condition)
e1:SetOperation(c40030.activate)
c:RegisterEffect(e1)
--special summon
local e2=Effect.Cr... | gpl-2.0 |
bn7/darkstar | scripts/globals/mobskills/vorpal_blade.lua | 9 | 1538 | ---------------------------------------------
-- Vorpal Blade
--
-- Description: Delivers a four-hit attack. Chance of critical varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scr... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/magnetite_cloud.lua | 26 | 1913 | -----------------------------------------
-- Spell: Magnetite Cloud
-- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight
-- Spell cost: 86 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+2
-- Level: 46
-- ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua | 25 | 2335 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Belgidiveau
-- Starts and Finishes Quest: Trouble at the Sluice
-- @zone 231
-- @pos -98 0 69
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
supercoolxyz/oolua | profile/oolua_derived.lua | 8 | 1517 | local N = 10
local ave = 0
local times = 1000000
for i = 0, N do
local obj = ProfileDerived:new()
local increment_me = ProfileDerived:new()
local t0 = os.clock()
for i=1,times do
obj:increment_a_base(increment_me)
end
local dt = os.clock()-t0
if i~=0 then
ave = ave + dt
end
end
print('OOLua passing de... | mit |
HuangYuNan/thcsvr | expansions/script/c999718.lua | 1 | 1483 | --小小的百鬼夜行✿伊吹萃香
--require "expansions/script/nef/nef"
local M = c999718
local Mid = 999718
function M.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure2(c,nil,nil,1)
c:EnableReviveLimit()
-- sp
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON... | gpl-2.0 |
LuaDist2/kong | kong/plugins/response-ratelimiting/schema.lua | 5 | 2953 | local Errors = require "kong.dao.errors"
local REDIS = "redis"
local function check_ordered_limits(limit_value)
local ordered_periods = { "second", "minute", "hour", "day", "month", "year"}
local has_value
local invalid_order
local invalid_value
for i, v in ipairs(ordered_periods) do
if limit_value[v] ... | apache-2.0 |
bn7/darkstar | scripts/globals/abilities/curing_waltz_ii.lua | 6 | 2666 | -----------------------------------
-- Ability: Curing Waltz II
-- Heals HP to target player.
-- Obtained: Dancer Level 30
-- TP Required: 35%
-- Recast Time: 00:08
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbil... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | entities/weapons/stick_base/shared.lua | 8 | 4475 | AddCSLuaFile()
if CLIENT then
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
DEFINE_BASECLASS("weapon_cs_base2")
SWEP.Author = "DarkRP Developers"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.IconLetter = ""
SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.AnimPrefix = "stunstick"
SWEP.AdminOnly = ... | mit |
Cloudef/darkstar | scripts/zones/Metalworks/npcs/High_Bear.lua | 5 | 1543 | -----------------------------------
-- Area: Metalworks
-- NPC: High Bear
-- Type: Quest Giver
-- @zone 237
-- !pos 25.231 -14.999 4.552
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
-----------------------------------
f... | gpl-3.0 |
Shopify/lua-tests | pm.lua | 3 | 11189 | print('testing pattern matching')
function f(s, p)
local i,e = string.find(s, p)
if i then return string.sub(s, i, e) end
end
function f1(s, p)
p = string.gsub(p, "%%([0-9])", function (s) return "%" .. (s+1) end)
p = string.gsub(p, "^(^?)", "%1()", 1)
p = string.gsub(p, "($?)$", "()%1", 1)
local t = {str... | mit |
jomanmuk/vlc-2.2 | share/lua/meta/art/01_googleimage.lua | 74 | 1764 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any la... | lgpl-2.1 |
TeleDALAD/test2 | 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 |
jsfdez/premake-core | src/actions/vstudio/vs2010_vcxproj_filters.lua | 13 | 3410 | --
-- vs2010_vcxproj_filters.lua
-- Generate a Visual Studio 201x C/C++ filters file.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local project = p.project
local tree = p.tree
local m = p.vstudio.vc2010
--
-- Generate a Visual Studio 201x C++ project, with support for t... | bsd-3-clause |
elasota/rdx2 | rdxc/rdx_lex.lua | 1 | 3521 | --[[
Copyright (C) 2011-2013 Eric Lasota
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | mit |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Chomoro-Kyotoro.lua | 5 | 1292 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chomoro-Kyotoro
-- Involved in Quest: Making the Grade
-- !pos 133 -5 167 238
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
---------------------------... | gpl-3.0 |
rastin45/botrider12 | 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 |
Owlies/server | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
Cloudef/darkstar | scripts/globals/items/salmon_sub_sandwich.lua | 2 | 1156 | -----------------------------------------
-- ID: 4355
-- Item: salmon_sub_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 1
-- Vitality 1
-- Intelligence 2
-- Mind -2
-- Ranged ACC 2
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
fgprodigal/RayUI | Interface/AddOns/Skada/lib/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 6 | 7055 | --[[-----------------------------------------------------------------------------
Keybinding Widget
Set Keybindings in the Config UI.
-------------------------------------------------------------------------------]]
local Type, Version = "Keybinding", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if n... | mit |
Cloudef/darkstar | scripts/zones/Port_Bastok/npcs/Denvihr.lua | 5 | 1236 | -----------------------------------
-- Area: Port Bastok
-- NPC: Denvihr
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Caedarva_Mire/mobs/Lamia_Idolater.lua | 13 | 1235 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Lamia Idolator
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
end;
function onMobFight(mob, target)
local swapTimer = mob:get... | gpl-3.0 |
Cloudef/darkstar | scripts/commands/adddynatime.lua | 13 | 1216 | ---------------------------------------------------------------------------------------------------
-- func: adddynatime
-- desc: Adds an amount of time to the given target. If no target; then to the current player.
---------------------------------------------------------------------------------------------------
cmd... | gpl-3.0 |
MinetestForFun/server-minetestforfun | minetestforfun_game/mods/farming/barley.lua | 13 | 2625 |
local S = farming.intllib
-- barley seeds
minetest.register_node("farming:seed_barley", {
description = S("Barley Seed"),
tiles = {"farming_barley_seed.png"},
inventory_image = "farming_barley_seed.png",
wield_image = "farming_barley_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_nod... | unlicense |
Cloudef/darkstar | scripts/globals/mobskills/hellclap.lua | 2 | 1240 | ---------------------------------------------------
-- Hellclap
-- Deals magical damage to enemies within a fan-shaped area. Additional effect: Weight
---------------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
--... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/dish_of_spaghetti_boscaiola_+1.lua | 2 | 1565 | -----------------------------------------
-- ID: 5201
-- Item: dish_of_spaghetti_boscaiola_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 130
-- Magic 40
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Store TP +6
-- Magic Regen While Healing 1
-----... | gpl-3.0 |
Shopify/lua-tests | strings.lua | 9 | 9838 | print('testing strings and string library')
assert('alo' < 'alo1')
assert('' < 'a')
assert('alo\0alo' < 'alo\0b')
assert('alo\0alo\0\0' > 'alo\0alo\0')
assert('alo' < 'alo\0')
assert('alo\0' > 'alo')
assert('\0' < '\1')
assert('\0\0' < '\0\1')
assert('\1\0a\0a' <= '\1\0a\0a')
assert(not ('\1\0a\0b' <= '\1\0a\0a'))
ass... | mit |
neeraj9/sbox2 | lua_scripts/pathmaps/devel/00_default.lua | 2 | 25846 | -- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org>
-- Copyright (c) 2008 Nokia Corporation.
-- Licensed under MIT license.
--
-- "devel" mode, to be used for software development & building when
-- the "simple" mode is not enough.
-- Rule file interface version, mandatory.
--
rule_file_interface_version = "21"
--... | lgpl-2.1 |
flingo64/PhotoStation-Upload-Lr-Plugin | PhotoStation_upload.lrplugin/PSPublishSupport.lua | 1 | 83290 | --[[----------------------------------------------------------------------------
PSPublishSupport.lua
Publish support for Lightroom Photo StatLr
Copyright(c) 2015-2022, Martin Messmer
This file is part of Photo StatLr - Lightroom plugin.
Photo StatLr is free software: you can redistribute it and/or modify
it under t... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/PsoXja/npcs/_092.lua | 5 | 1047 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _092 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 338.399 -1.925 -70.000 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/globals");... | gpl-3.0 |
Youwotma/splash | splash/lua_modules/splash.lua | 2 | 2034 | --
-- A module for creating Lua 'splash' object
-- from a Python 'splash' object.
--
local wraputils = require("wraputils")
local Response = require("response")
local Request = require("request")
--
-- Lua wrapper for Splash Python object.
--
local Splash = wraputils.create_metatable()
local Splash_private = {}
func... | bsd-3-clause |
Cloudef/darkstar | scripts/zones/Davoi/TextIDs.lua | 5 | 1866 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6... | gpl-3.0 |
VICECee/lsyncd | examples/lbash.lua | 8 | 1057 | -----
-- User configuration file for lsyncd.
--
-- This example uses local bash commands to keep two local
-- directory trees in sync.
--
settings = {
logfile = "/tmp/lsyncd.log",
statusFile = "/tmp/lsyncd.stat",
statusIntervall = 1,
nodaemon = true,
}
-----
-- for testing purposes. prefix can ... | gpl-2.0 |
Howaner/MCServer | Server/Plugins/APIDump/Hooks/OnPreCrafting.lua | 36 | 1523 | return
{
HOOK_PRE_CRAFTING =
{
CalledWhen = "Before the built-in recipes are checked.",
DefaultFnName = "OnPreCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
{{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for... | apache-2.0 |
Cloudef/darkstar | scripts/globals/weaponskills/keen_edge.lua | 25 | 1370 | -----------------------------------
-- Keen Edge
-- Great Axe weapon skill
-- Skill level: 150
-- Delivers a single hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modifiers: STR:35%
-- 100%TP ... | gpl-3.0 |
ryanjmulder/premake-4.x | tests/test_vs2002_sln.lua | 14 | 1629 | --
-- tests/test_vs2002_sln.lua
-- Automated test suite for Visual Studio 2002 solution generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.vs2002_sln = { }
local suite = T.vs2002_sln
local sln2002 = premake.vstudio.sln2002
--
-- Configure a solution for testing
--
local sln
function su... | bsd-3-clause |
debrouwere/jobs | lib/redis/jnext.lua | 1 | 1758 | local DAY = 1000 * 60 * 60 * 24
local bin
bin = function(value, granularity)
return math.floor(value / granularity)
end
local tick
tick = function(start, last_run, now, interval, lambda, step)
if lambda == nil then
lambda = 1
end
if step == nil then
step = DAY
end
if lambda ~= 1 then
local age =... | isc |
Cloudef/darkstar | scripts/globals/mobskills/wire_cutter.lua | 35 | 1160 | ---------------------------------------------------
-- Wire_Cutter
-- Single-target damage (~500-1500), absorbed by 2 Utsusemi shadows.
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------------... | gpl-3.0 |
VICECee/lsyncd | bin2carray.lua | 22 | 1259 | #!/usr/bin/lua
--============================================================================
-- bin2carray.lua
--
-- License: GPLv2 (see COPYING) or any later version
--
-- Authors: Axel Kittenberger <axkibe@gmail.com>
--
-- Transforms a binary file (the compiled lsyncd runner script) in a c array
-- so it can be inc... | gpl-2.0 |
wangfakang/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 |
yujiali/ggnn | ggnn/BaseGGNNLinear.lua | 1 | 14208 | -- The base GGNN class
--
-- Exactly the same as BaseGGNN.lua, except that the Tanh nonlinearity is
-- removed.
--
-- Yujia Li, 08/2015
--
local BaseGGNN = torch.class('ggnn.BaseGGNN')
function BaseGGNN:__init(state_dim, annotation_dim, prop_net_h_sizes, n_edge_types, module_dict)
self.state_dim = state_dim
s... | mit |
MinetestForFun/server-minetestforfun | mods/action_timers/init.lua | 9 | 2364 | -------------------------------
-- Action timers
-- Mod handling action timers
--
action_timers = {}
action_timers.timers = {}
action_timers.limits = {}
action_timers.api = {}
function action_timers.api.register_timer(name, limit)
if action_timers.timers[name] then
minetest.log("error", "[ACTimers] Cannot regist... | unlicense |
focusworld/focus_aspp | plugins/sudoers.lua | 86 | 2292 | 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(receiver, '... | gpl-2.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/doorsystem/sv_dooradministration.lua | 2 | 6611 | local function ccDoorUnOwn(ply, args)
if ply:EntIndex() == 0 then
print(DarkRP.getPhrase("cmd_cant_be_run_server_console"))
return
end
local trace = ply:GetEyeTrace()
if not IsValid(trace.Entity) or not trace.Entity:isKeysOwnable() or not trace.Entity:getDoorOwner() or ply:EyePos():Dis... | mit |
Cloudef/darkstar | scripts/zones/East_Ronfaure_[S]/npcs/qm5.lua | 5 | 1213 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: qm5 "???"
-- Involved in Quests: Steamed Rams
-- !pos 380.015 -26.5 -22.525
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm17.lua | 5 | 1037 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm17 (???)
-- Notes: Used to obtain Pouch of Weighted Stones
-- !pos -354 0 262 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.