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 |
|---|---|---|---|---|---|
zhaozg/lit | deps/semver.lua | 4 | 6207 | --[[lit-meta
name = "creationix/semver"
version = "2.0.0"
homepage = "https://github.com/luvit/lit/blob/master/deps/prompt.lua"
description = "Parser, comparer and matcher for semantic versions strings."
tags = {"semver"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local exports = {}
local parse... | apache-2.0 |
Lsty/ygopro-scripts | c79418153.lua | 3 | 1103 | --ランサー・デーモン
function c79418153.initial_effect(c)
--pierce
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(79418153,0))
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c79418153.piercecon)
e1:Set... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Port_Bastok/npcs/Agapito.lua | 11 | 1462 | -----------------------------------
-- Area: Port Bastok
-- NPC: Agapito
-- Start & Finishes Quest: The Stars of Ifrit
-- !pos -72.093 -3.097 9.309 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globa... | gpl-3.0 |
Lsty/ygopro-scripts | c29795530.lua | 5 | 2254 | --妖怪のいたずら
function c29795530.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1c0)
e1:SetTarget(c29795530.target)
e1:SetOperation(c29795530.activate)
c:RegisterEffect(e1)
--lvdown
local e2=Effect.CreateEffect(c)
e2... | gpl-2.0 |
Lsty/ygopro-scripts | c89181369.lua | 9 | 2063 | --星屑のきらめき
function c89181369.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c89181369.target)
e1:SetOperation(c89181369.activat... | gpl-2.0 |
MalRD/darkstar | scripts/globals/spells/bluemagic/healing_breeze.lua | 12 | 1625 | -----------------------------------------
-- Spell: Healing Breeze
-- Restores HP for party members within area of effect
-- Spell cost: 55 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 4
-- Stat Bonus: CHR+2, HP+10
-- Level: 16
-- Casting Time: 4.5 seconds
-- Recast Time: 15 seconds
--... | gpl-3.0 |
Lsty/ygopro-scripts | c85775486.lua | 7 | 1497 | --再機動
function c85775486.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c85775486.cost)
e1:SetTarget(c85775486.target)
e1:SetOperation(c85775486.activat... | gpl-2.0 |
MalRD/darkstar | scripts/zones/RoMaeve/npcs/qm3.lua | 9 | 1163 | -----------------------------------
-- Area: Ro'Maeve
-- NPC: qm3 (Moongate Pass QM)
-- !pos -277.651,-3.765,-17.895 122 and many <pos>
-----------------------------------
local ID = require("scripts/zones/RoMaeve/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/settings")
require("scripts/globals/ke... | gpl-3.0 |
Lsty/ygopro-scripts | c46195773.lua | 3 | 1528 | --ターボ・ウォリアー
function c46195773.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,c46195773.tfilter,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--atk down
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46195773,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_... | gpl-2.0 |
Lsty/ygopro-scripts | c6133894.lua | 6 | 1646 | --デビルマゼラ
function c6133894.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--special summon
local e2=Effect... | gpl-2.0 |
gallenmu/MoonGen | examples/moonsniff/traffic-gen.lua | 1 | 5026 | --- Generates MoonSniff traffic, i.e. packets contain an identifier and a fixed bit pattern
--- Live mode and MSCAP mode require this type of traffic
local lm = require "libmoon"
local device = require "device"
local memory = require "memory"
local ts = require "timestamping"
local hist = require "histogram"... | mit |
SecondReality/Mudlet-Suttonian | 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 |
tarulas/luadch | core/adc.lua | 1 | 26130 | --[[
adc.lua by blastbeat
- ADC stuff
v0.09: by tarulas
- strongly random salt
- add FS (free slots) support, ADC ext 3.22
- add PFSR (partial file sharing) support, ADC ext 3.12
- add NATT (NAT traversal) support, ... | gpl-3.0 |
qaheri/AASv2 | plugins/Cpu.lua | 9 | 1894 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Apollyon/Zone.lua | 9 | 10924 | -----------------------------------
--
-- Zone: Apollyon
--
-----------------------------------
local ID = require("scripts/zones/Apollyon/IDs")
require("scripts/globals/conquest")
require("scripts/globals/limbus")
require("scripts/globals/zone")
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
mikhail-angelov/vlc | share/lua/playlist/youtube.lua | 15 | 9862 | --[[
$Id$
Copyright © 2007-2012 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 later version.
This program is dist... | gpl-2.0 |
RamiLego4Game/PlatformerWorld | Engine/loveframes/objects/internal/columnlist/columnlistarea.lua | 6 | 9474 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- columnlistarea class
local newobject = loveframes.NewObject("columnlistarea", "loveframes_object_columnlistarea", true)
... | gpl-2.0 |
rigeirani/teshep | plugins/anti_spam.lua | 3 | 3771 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
Lsty/ygopro-scripts | c96598015.lua | 3 | 2103 | --金満な壺
function c96598015.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,96598015+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c96598015.cost)
e1:SetTarget(c96598015.target)
e1:Set... | gpl-2.0 |
Lsty/ygopro-scripts | c87973893.lua | 7 | 2278 | --甲虫装機の魔斧 ゼクトホーク
function c87973893.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(c87973893.target)
e1:SetOperation(c87973893.operation)
c:RegisterEff... | gpl-2.0 |
Mkalo/forgottenserver | data/migrations/14.lua | 55 | 1362 | function onUpdateDatabase()
print("> Updating database to version 15 (moving groups to data/XML/groups.xml)")
db.query("ALTER TABLE players DROP FOREIGN KEY players_ibfk_2")
db.query("DROP INDEX group_id ON players")
db.query("ALTER TABLE accounts DROP FOREIGN KEY accounts_ibfk_1")
db.query("DROP INDEX group_id ... | gpl-2.0 |
ThingMesh/openwrt-luci | 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... | apache-2.0 |
MalRD/darkstar | scripts/zones/Quicksand_Caves/npcs/qm7.lua | 9 | 1473 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ???
-- Involved in Mission: The Mithra and the Crystal (Zilart 12)
-- !pos -504 20 -419 208
-----------------------------------
local ID = require("scripts/zones/Quicksand_Caves/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/mis... | gpl-3.0 |
LuaDist2/lrexlib-pcre | test/spencer_sets.lua | 11 | 3250 | -- See Copyright Notice in the file LICENSE
local luatest = require "luatest"
local N = luatest.NT
local function norm(a) return a==nil and N or a end
local function get_gsub (lib)
return lib.gsub or
function (subj, pattern, repl, n)
return lib.new (pattern) : gsub (subj, repl, n)
end
end
local func... | mit |
Lsty/ygopro-scripts | c87819421.lua | 3 | 1403 | --マスク・チャージ
function c87819421.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c87819421.target)
e1:SetOperation(c87819421.activate)
c:R... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Northern_San_dOria/npcs/Macuillie.lua | 12 | 2161 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Macuillie
-- Type: Guildworker's Union Representative
-- !pos -191.738 11.001 138.656 231
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Northern_San... | gpl-3.0 |
Lsty/ygopro-scripts | c28106077.lua | 7 | 2347 | --ダグラの剣
function c28106077.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(c28106077.target)
e1:SetOperation(c28106077.operation)
c:RegisterEffect(e1)
... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kubhe_Ijyuhla.lua | 9 | 1681 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kubhe Ijyuhla
-- Standard Info NPC
-- !pos 23.257 0.000 21.532 50
-----------------------------------
require("scripts/globals/quests")
require("scripts/globals/settings")
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
------------... | gpl-3.0 |
Lsty/ygopro-scripts | c61307542.lua | 3 | 3090 | --버제스토마 아노말로카리스
function c61307542.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,2,3,nil,nil,5)
c:EnableReviveLimit()
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetV... | gpl-2.0 |
Lsty/ygopro-scripts | c9633505.lua | 5 | 1209 | --ガーディアン・ケースト
function c9633505.initial_effect(c)
--sum limit
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c9633505.sumlimit)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(... | gpl-2.0 |
Lsty/ygopro-scripts | c52702748.lua | 3 | 1802 | --異次元への案内人
function c52702748.initial_effect(c)
--control
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(52702748,0))
e1:SetCategory(CATEGORY_CONTROL)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c52702748.ctltg)
e1:SetOperation(c52702748.ctl... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/toxic_spit.lua | 11 | 1093 | ---------------------------------------------
-- Toxic Spit
--
-- Description: Spews a toxic glob at a single target. Additional effect: Poison
-- Type: Magical Water
-- Utsusemi/Blink absorb: Ignores shadows
-- Notes: Additional effect can be removed with Poisona.
---------------------------------------------
req... | gpl-3.0 |
EnglandTeam/EnglandTeamBot | 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 |
SummitCore/Summit | extras/Hyjal_RWC.lua | 3 | 15980 | ------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
-- ... | agpl-3.0 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/model/trigger_manager.lua | 1 | 7188 | TriggerManager = Observable:extends{}
function TriggerManager:init()
self:super('init')
self.triggerIDCount = 0
self.triggers = {}
end
---------------
-- CRUD methods
---------------
function TriggerManager:addTrigger(trigger)
local success, err = self:ValidateTrigger(trigger)
if not success and S... | mit |
keyidadi/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
... | apache-2.0 |
mcastron/TinyBRL | scripts/lua_scripts/data/experiments_accurate.lua | 3 | 1675 |
-- ============================================================================
-- This script describes the experiments to perform for the 'accurate' case
-- (prior distribution = test distribution)
--
-- An experiment is described as follows:
--
-- ...
-- {
-- -- Short name of the prior distribution... | gpl-2.0 |
Shayan123456/botttttt2 | 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 |
EvilHero90/forgottenserver | data/talkactions/scripts/reload.lua | 6 | 2090 | local reloadTypes = {
["all"] = RELOAD_TYPE_ALL,
["action"] = RELOAD_TYPE_ACTIONS,
["actions"] = RELOAD_TYPE_ACTIONS,
["chat"] = RELOAD_TYPE_CHAT,
["channel"] = RELOAD_TYPE_CHAT,
["chatchannels"] = RELOAD_TYPE_CHAT,
["config"] = RELOAD_TYPE_CONFIG,
["configuration"] = RELOAD_TYPE_CONFIG,
["creaturescript"]... | gpl-2.0 |
Flexibity/luci | modules/admin-mini/luasrc/model/cbi/mini/system.lua | 33 | 2293 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | apache-2.0 |
mohammadclashclash/info1 | bot/InfernalTG.lua | 1 | 8826 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
mcanthony/Polycode | Bindings/Contents/LUA/API/Polycode/EventDispatcher.lua | 11 | 2316 |
class "EventDispatcher"
function EventDispatcher:EventDispatcher()
self.listenerEntries = {}
end
function EventDispatcher:addEventListener(listener, callback, eventCode)
if self.listenerEntries == nil then
self.listenerEntries = {}
end
local newEntry = {}
if self.__ptr ~= nil then
newEntry.handler = Polycor... | mit |
keyidadi/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... | apache-2.0 |
leecrest/luvit | tests/test-readline.lua | 6 | 1846 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
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
Unless required by applicable law or agr... | apache-2.0 |
xriss/fun64 | fun/platobj.fun.lua | 1 | 61039 |
local chatdown=require("wetgenes.gamecake.fun.chatdown") -- conversation trees
local bitdown=require("wetgenes.gamecake.fun.bitdown") -- ascii to bitmap
local chipmunk=require("wetgenes.chipmunk") -- 2d physics https://chipmunk-physics.net/
-- debug text dump
local ls=function(t) print(require("wetgenes.string")... | mit |
alfred-bot/phmbot | 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 |
Oliveryo/Interface | AddOns/BigWigs/Libs/AceDB-2.0/AceDB-2.0.lua | 2 | 43459 | --[[
Name: AceDB-2.0
Revision: $Rev: 17797 $
Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team)
Inspired By: Ace 1.x by Turan (turan@gryphon.com)
Website: http://www.wowace.com/
Documentation: http://www.wowace.com/index.php/AceDB-2.0
SVN: http://svn.wowace.com/root/trunk/... | gpl-3.0 |
protito/nyas-space-quest-qd | cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | apache-2.0 |
alfred-bot/phmbot | 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 |
Flexibity/luci | libs/web/luasrc/http/protocol/date.lua | 88 | 2760 | --[[
HTTP protocol implementation for LuCI - date handling
(c) 2008 Freifunk Leipzig / 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
http://www.... | apache-2.0 |
Oliveryo/Interface | AddOns/Atlas/Locale/Atlas-enUS.lua | 1 | 128260 | --[[
Atlas, a World of Warcraft instance map browser
Copyright 2005, 2006 Dan Gilbert
Email me at loglow@gmail.com
This file is part of Atlas.
Atlas 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; eithe... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/dresses/main.lua | 1 | 3514 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/rori/creatures/tortonVoraciousPatriarch.lua | 1 | 4795 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/pubam/twistedPubamScavenger.lua | 1 | 4608 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
yav/language-lua | lua-5.3.1-tests/constructs.lua | 4 | 7271 | -- $Id: constructs.lua,v 1.39 2015/03/04 13:09:38 roberto Exp $
;;print "testing syntax";;
local debug = require "debug"
-- testing semicollons
do ;;; end
; do ; a = 3; assert(a == 3) end;
;
-- invalid operations should not raise errors when not executed
if false then a = 3 // 0; a = 0 % 0 end
-- testing priorit... | bsd-3-clause |
Xeltor/ovale | dist/spellhelpers/warlock_demonology_helper.lua | 1 | 3995 | local __exports = LibStub:GetLibrary("ovale/scripts/ovale_warlock")
if not __exports then return end
__exports.registerWarlockDemonologyHelper = function(OvaleScripts)
do
local name = "WLKDEMOhelp"
local desc = "[Xel][8.x] Spellhelper: Demonology"
local code = [[
AddIcon
{
# Remove a line when you have its colour
... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/janta/jantaPrimalist.lua | 1 | 4858 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/TextField.lua | 1 | 12913 |
--------------------------------
-- @module TextField
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- brief Toggle attach with IME.<br>
-- param attach True if attach with IME, false otherwise.
-- @function [parent=#TextField] setAttachWithIME
-- @param self
-- @param #bool at... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/gundula/gundulaVeteran.lua | 1 | 4580 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua | 1 | 1196 |
--------------------------------
-- @module TransitionTurnOffTiles
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionTurnOffTiles] easeActionWithAction
-- @param self
-- @param #cc.ActionInterval action
-- @return Actio... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/rori/creatures/femaleKaiTok.lua | 1 | 4732 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
mkwia/jc2atc | default_config.lua | 1 | 6003 | -- Welcome to the JC2-MP server configuration file!
--[[
SERVER OPTIONS
Server-related options.
--]]
Server =
{
-- The maximum number of players that can be on the server at any
-- given time. Make sure your connection and server can handle it!
-- Default value: 5000
MaxPlayers = 500... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/drall/drallGuard.lua | 1 | 4521 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
mynameis123/uzzbot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
kyle-lu/fceux.js | output/luaScripts/taseditor/RecordBackwards.lua | 7 | 4179 | ---------------------------------------------------------------------------
-- Recording Input while Rewinding Playback frame-by-frame
-- by AnS, 2012
---------------------------------------------------------------------------
-- Showcases following functions:
-- * joypad.getimmediate()
-- * taseditor.getrecorder... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/shirts/shirt28.lua | 1 | 2232 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIiJewelry/suitBelt.lua | 1 | 3849 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/script/cocosbuilder/DeprecatedCocosBuilderClass.lua | 1 | 1213 | if nil == cc.CCBProxy then
return
end
-- This is the DeprecatedCocosBuilderClass
DeprecatedCocosBuilderClass = {} or DeprecatedCocosBuilderClass
--tip
local function deprecatedTip(old_name,new_name)
--print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/remmerDuneScavenger.lua | 1 | 4759 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Hammerspoon/hammerspoon | extensions/fnutils/fnutils.lua | 6 | 20116 | --- === hs.fnutils ===
---
--- Functional programming utility functions
local fnutils = {}
local pairs,ipairs = pairs,ipairs
local floor = math.floor
--- hs.fnutils.imap(list, fn) -> list
--- Function
--- Execute a function across a list-like table in order, and collect the results
---
--- Parameters:
--- * list - ... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/fieldWearIBasicGear/swoopHelm.lua | 1 | 4340 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/tatooine/dungeons/tuskenVillage.lua | 1 | 2726 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/noviceArmorsmith/mabariArmorweaveBelt.lua | 1 | 4385 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
bartvm/Penlight | tests/test-xml.lua | 8 | 10800 | local xml = require 'pl.xml'
local asserteq = require 'pl.test'.asserteq
local dump = require 'pl.pretty'.dump
-- Prosody stanza.lua style XML building
d = xml.new 'top' : addtag 'child' : text 'alice' : up() : addtag 'child' : text 'bob'
d = xml.new 'children' :
addtag 'child' :
addtag 'name' : text 'alice' : up(... | mit |
kyle-lu/fceux.js | output/luaScripts/ShowPalette.lua | 9 | 1875 | -- Show Palette
-- Click for other palette boxes
-- P00 - P3F are NES palette values.
-- P40 - P7F are LUA palette values.
-- True or False
ShowTextLabels=true;
function DecToHex(numberin)
if (numberin < 16) then
return string.format("0%X",numberin);
else
return string.format("%X",numberin);
end;
... | gpl-2.0 |
alireza1998/radical-boy | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
Maxsteam/seed | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/ship/attachment/engine/objects.lua | 1 | 56281 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/wearables/armor/ithorian_defender/objects.lua | 1 | 15217 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
yobiya/tdd_game_sample | cross/cocos2d/cocos/scripting/lua/script/Cocos2d.lua | 26 | 9014 | require "CocoStudio"
cc = cc or {}
cc.DIRECTOR_PROJECTION_2D = 0
cc.DIRECTOR_PROJECTION_3D = 1
function cc.clampf(value, min_inclusive, max_inclusive)
-- body
local temp = 0
if min_inclusive > max_inclusive then
temp = min_inclusive
min_inclusive = max_inclusive
max_inclusive = ... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/creatures/domesticHumbaba.lua | 1 | 4674 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/citys.lua | 1 | 2533 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/dice/objects.lua | 1 | 11349 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/lok/creatures/kimogilaHatchling.lua | 1 | 4813 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/pharmaceutical/disease/actionDiseaseC.lua | 1 | 2475 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
mrshayan/iranpower_english | plugins/plugins.lua | 88 | 6304 | 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-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/shirts/shirt24.lua | 1 | 2231 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/mokk/mokkHunter.lua | 1 | 4825 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiSynthetics/ithorianOvershirt.lua | 1 | 4318 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/domesticArtsIiiBasicDesserts/ithorianStripedShirt.lua | 1 | 3752 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/EaseQuarticActionOut.lua | 1 | 1242 |
--------------------------------
-- @module EaseQuarticActionOut
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseQuarticActionOut action. If creati... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/tatooine/creatures/rockBeetleAttacks.lua | 1 | 4958 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
schaeftide/factorio-teams | stdlib/string.lua | 4 | 1258 | --- String module
-- @module string
--- Returns a copy of the string with any leading or trailing whitespace from the string removed.
-- @param s the string to remove leading or trailing whitespace from
-- @return a copy of the string without leading or trailing whitespace
function string.trim(s)
return (s:gsub("^%s... | mit |
Andrettin/Wyrmsun | scripts/languages/germanic/middle_low_german.lua | 1 | 16218 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/sampleDNA.lua | 1 | 2624 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/drall/drallChieftain.lua | 1 | 4709 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
crosslife/OpenBird | Resources/DeprecatedOpenglEnum.lua | 148 | 11934 | -- This is the DeprecatedEnum
DeprecatedClass = {} or DeprecatedClass
_G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT
_G.GL_LINE_WIDTH = gl.LINE_WIDTH
_G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA
_G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA
_G.GL_GREEN_BITS = gl.GREEN_BITS
_G.GL_STENCIL_REF = gl.STENCI... | mit |
infernall/nevermind | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Wargus/stargus | scripts/protoss/upgrade.lua | 2 | 4671 | --
-- Upgrades
--[[
upgrades = {
{ "upgrade-zerg-zergling-speed", "icon-zerg-zergling-attack-speed",
{ 200, 100, 100, 0, 0, 0, 0}},
{ "upgrade-terran-infantry-weapons2", "icon-terran-upgrade-infantry-weapons",
{ 200, 175, 175, 0, 0, 0, 0}},
{ "upgrade-terran-infantry-we... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/npcs/imperial/imperialMajorGeneralAttacks.lua | 1 | 3016 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.