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 |
|---|---|---|---|---|---|
Zenny89/darkstar | scripts/zones/Cloister_of_Tides/bcnms/sugar-coated_directive.lua | 19 | 1705 | ----------------------------------------
-- Area: Cloister of Tides
-- BCNM: Sugar Coated Directive (ASA-4)
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/qu... | gpl-3.0 |
mercury233/ygopro-scripts | c94119480.lua | 6 | 1364 | --終焉の守護者アドレウス
function c94119480.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,5,2)
c:EnableReviveLimit()
--destroy
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetDescription(aux.Stringid(94119480,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e... | gpl-2.0 |
mercury233/ygopro-scripts | c41872150.lua | 4 | 1784 | --イナゴの軍勢
function c41872150.initial_effect(c)
--turn set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(41872150,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c41872150.target)
e1:SetOperation(c41872150.operation)
c:RegisterEffec... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/mobskills/Luminous_Lance.lua | 19 | 1379 | ---------------------------------------------
-- Luminous Lance
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-------------------------------------------... | gpl-3.0 |
linushsao/marsu_game-linus-v0.2 | mods/mars_pack/marsair/air.lua | 1 | 6490 | marsair.build_allowed = {
["air"] = 1,
["marsair:air_stable"] = 1,
["marsair:air"] = 1
}
marsair.debug = {}
marsair.debug.last_airleak1 = 0
local function send_debug_airleak1(pos, airpos)
if minetest.get_gametime()-marsair.debug.last_airleak1 > 20 then
marsair.debug.last_airleak1 = minetest.get_gametime()
mi... | gpl-3.0 |
valhallaGaming/uno | branches/2_0_3_STABLE/vehicle-system/s_vehicle_system.lua | 1 | 26152 | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | bsd-3-clause |
mercury233/ygopro-scripts | c19619755.lua | 2 | 3089 | --EM五虹の魔術師
function c19619755.initial_effect(c)
aux.EnablePendulumAttribute(c)
--scale
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SSET)
e1:SetRange(LOCATION_GRAVE)
e1:SetCondition(c19619755.pencon)
e1:SetTarget(c1961975... | gpl-2.0 |
TeamExodus/external_skia | tools/lua/paths.lua | 92 | 3129 | --
-- Copyright 2014 Google Inc.
--
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
--
-- Path scraping script.
-- This script is designed to count the number of times we fall back to software
-- rendering for a path in a given SKP. However, this script does not ... | bsd-3-clause |
Zenny89/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua | 36 | 4463 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Pihra_Rhebenslo
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/a... | gpl-3.0 |
mercury233/ygopro-scripts | c65301952.lua | 3 | 2086 | --アルケミック・マジシャン
function c65301952.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),4,3)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:S... | gpl-2.0 |
nikil/entware-packages | net/dynapoint/src/dynapoint.lua | 20 | 6015 | #!/usr/bin/lua
--[[
Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
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 3 of the License, or
(at your option) any later v... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/weaponskills/blast_shot.lua | 30 | 1320 | -----------------------------------
-- Blast Shot
-- Marksmanship weapon skill
-- Skill Level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:30%
-- 10... | gpl-3.0 |
mercury233/ygopro-scripts | c95568112.lua | 2 | 3619 | --レイン・ボーズ
function c95568112.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(95568112,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_PZON... | gpl-2.0 |
mercury233/ygopro-scripts | c48605591.lua | 3 | 2331 | --端末世界NEXT
function c48605591.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c48605591.condition)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Caedarva_Mire/npcs/qm4.lua | 16 | 1171 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Tyger(ZNM T4))
-- @pos -766 -12 632 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
-------------------... | gpl-3.0 |
alireza1998/gfx6 | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
mercury233/ygopro-scripts | c43316238.lua | 3 | 2551 | --未界域のビッグフット
function c43316238.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(43316238,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_HANDES+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCost(c43316238.spcost)
e1:SetTarg... | gpl-2.0 |
ajayk/kong | kong/tools/responses.lua | 2 | 6516 | --- Kong helper methods to send HTTP responses to clients.
-- Can be used in the proxy (core/resolver), plugins or Admin API.
-- Most used HTTP status codes and responses are implemented as helper methods.
--
-- local responses = require "kong.tools.responses"
--
-- -- In an Admin API endpoint handler, or in one ... | apache-2.0 |
ZeroK-RTS/SpringRTS-Tools | SpringModEdit/Procedures/explicitWeaponTypes.lua | 1 | 1532 | -- $Id: explicitWeaponTypes.lua 3171 2008-11-06 09:06:29Z det $
local doPreviewOnly = true
for unit, weapon, weaponDef in IteratorWeapons() do
if (not weaponDef.weaponType) then
local echoFront = unit.unitname .. " weapon " .. weapon.def
local weaponType
if (weaponDef.dropped) then
weaponTy... | gpl-2.0 |
yipf/lua-svg | svg.bak.lua | 1 | 5191 |
local SVG_TMP=[[
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="@w@" height="@h@" version="1.1"
xmlns="http://www.w3.org/2000/svg" font-size="@fs@" stroke-width = "3">
<defs>
<marker id = "StartMarker... | mit |
mercury233/ygopro-scripts | c57707471.lua | 2 | 1835 | --No.21 氷結のレディ・ジャスティス
function c57707471.initial_effect(c)
c:EnableReviveLimit()
--xyz summon
aux.AddXyzProcedure(c,nil,6,2,c57707471.ovfilter,aux.Stringid(57707471,0),2,c57707471.xyzop)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetProperty(EFFECT_F... | gpl-2.0 |
valhallaGaming/uno | src_trunk/resources/map-system/Old Maps/TatumStreetHoodification.lua | 2 | 4926 | createObject(8417,2877.8371582031,2194.0456542969,9.8852939605713,0,0,0,0,0)
createObject(8416,2888.9387207031,2204.1735839844,12.060336112976,0,0,0,0,0)
createObject(8416,2867.6232910156,2184.1826171875,12.060336112976,0,0,180,0,0)
createObject(12843,2862.1071777344,2223.5244140625,9.8499565124512,0,0,270.405151367... | bsd-3-clause |
mercury233/ygopro-scripts | c55885348.lua | 4 | 2594 | --Kozmo-ダークシミター
function c55885348.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(55885348,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELA... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 17 | 1890 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -775 2 -460 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
linushsao/marsu_game-linus-v0.2 | mods/technical/technic/technic/machines/register/battery_box.lua | 1 | 10385 |
local S = technic.getter
technic.register_power_tool("technic:battery", 10000)
technic.register_power_tool("technic:red_energy_crystal", 50000)
technic.register_power_tool("technic:green_energy_crystal", 150000)
technic.register_power_tool("technic:blue_energy_crystal", 450000)
minetest.register_craft({
output = 't... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Al_Zahbi/npcs/Taten-Bilten.lua | 19 | 1155 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Taten-Bilten
-- Guild Merchant NPC: Clothcraft Guild
-- @pos 71.598 -6.000 -56.930 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
notcake/gcompute | lua/gcompute/metadata/usingcollection.lua | 1 | 1079 | local self = {}
GCompute.UsingCollection = GCompute.MakeConstructor (self)
function self:ctor ()
self.Usings = {}
end
function self:AddUsing (qualifiedName)
local usingDirective = GCompute.UsingDirective (qualifiedName)
self.Usings [#self.Usings + 1] = usingDirective
return usingDirective
end
functi... | gpl-3.0 |
mercury233/ygopro-scripts | c90374791.lua | 2 | 2913 | --アームド・チェンジャー
function c90374791.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+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetCost(c90374791.cost)
e1:SetTarget(c90374791.targe... | gpl-2.0 |
qq779089973/my_openwrt_mod | luci/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 55 | 8246 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-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
htt... | mit |
linushsao/marsu_game-linus-v0.2 | mods/player_related/walking_light/init.lua | 1 | 4784 | local wielding_only = true
local players = {}
minetest.register_on_joinplayer(function(mt_player)
local name = mt_player:get_player_name()
players[name] = {name=name,pos={x=0,y=32000,z=0},wielding=0,mt_player=mt_player}
end)
minetest.register_on_leaveplayer(function(mt_player)
local name = mt_player:get_player_na... | gpl-3.0 |
cjtallman/luacml | spec/vector_spec.lua | 1 | 5463 |
describe("vector", function()
local cml = require("luacml")
--local eps = 1e-5
describe("constructor", function()
describe("default", function()
it("(vector2)", function()
local input, expected = cml.vector2(), {0,0}
assert.same(expected, input:totable()... | mit |
koolhazz/PayJob | JobWorker/lua/producer.lua | 1 | 2437 | module(..., package.seeall)
package.cpath = package.cpath .. ";./lib/?.so"
local curl = require("lib/libcurl")
local redis = require("lib/redis_ffi")
local ffi = require("ffi")
local json = require("cjson")
local logger = require("lua/logger")
local __END__ = logger.__END__
local __BEGIN__ = logger.__BEGIN_... | bsd-2-clause |
Cavitt/vanilla-ot | data/npc/REFERENCETHESE/Captain Bluebear.lua | 1 | 7314 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | agpl-3.0 |
sajjad0098/hitler_TG1 | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | agpl-3.0 |
mercury233/ygopro-scripts | c5846183.lua | 2 | 2402 | --遮断機塊ブレイカーバンクル
function c5846183.initial_effect(c)
--Cannot be destroyed and no battle damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5846183,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c5846183.atkcon)
e1:SetCost(... | gpl-2.0 |
terminar/lua-handlers | handler/http/client/hosts.lua | 2 | 5119 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- 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
-... | mit |
siilaas/silas-super-bot | plugins/ingroup.lua | 47 | 60291 | 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.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/items/carpenters_belt.lua | 30 | 1212 | -----------------------------------------
-- ID: 15444
-- Item: Carpenter's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Woodworking Skill +3
-----------------------------------------
re... | gpl-3.0 |
qq779089973/my_openwrt_mod | luci/modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 2 | 1915 | --[[
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$
]]--
lo... | mit |
mercury233/ygopro-scripts | c51020079.lua | 4 | 1538 | --サイボーグドクター
function c51020079.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(51020079,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c... | gpl-2.0 |
mercury233/ygopro-scripts | c85325774.lua | 2 | 1484 | --暗黒界の援軍
function c85325774.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_HANDES)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,85325774+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(... | gpl-2.0 |
mercury233/ygopro-scripts | c62256492.lua | 2 | 1979 | --憑依覚醒
function c62256492.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atk up
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetT... | gpl-2.0 |
mercury233/ygopro-scripts | c49674183.lua | 4 | 1287 | --魔天使ローズ・ソーサラー
function c49674183.initial_effect(c)
--special summon
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(c49674183.spcon)
e1:SetOperation(c49674183.spop)
c:RegisterEffect... | gpl-2.0 |
Zenny89/darkstar | scripts/globals/mobskills/Vorpal_Wheel.lua | 25 | 1069 | ---------------------------------------------
-- Vorpal Wheel
--
-- Description: Throws a slicing wheel at a single target.
-- Type: Physical
-- Utsusemi/Blink absorb: No
-- Range: Unknown
-- Notes: Only used by Gulool Ja Ja, and will use it as a counterattack to any spells cast on him. Damage increases as... | gpl-3.0 |
mercury233/ygopro-scripts | c20403123.lua | 4 | 2220 | --EMスライハンド・マジシャン
function c20403123.initial_effect(c)
--spsummon from hand
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetCondition(c20403123.hspcon)
e1:SetOperation(c20403123.hspop)
c:Regist... | gpl-2.0 |
linushsao/marsu_game-linus-v0.2 | mods/tutorial/quests/unified_inventory.lua | 1 | 2708 | quests.unif_inv_send_form = {}
unified_inventory.register_button("quests", {
type = "image",
image = "inventory_plus_quests.png",
tooltip = "Show the questlog",
-- action = function(player)
-- quests.show_formspec(player:get_player_name())
-- end
})
unified_inventory.register_page("quests", {
get_formspec = funct... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Upper_Jeuno/npcs/Renik.lua | 34 | 1376 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Renik
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
---... | gpl-3.0 |
mercury233/ygopro-scripts | c1151281.lua | 2 | 2834 | --サブテラーマリス・グライオース
function c1151281.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(1151281,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,1151281)
e1:SetTarge... | gpl-2.0 |
gq213/openwrt-DM06 | target/linux/ramips/gq213-patches/luci/wifi_add.lua | 1 | 3303 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | gpl-2.0 |
notcake/gcompute | lua/gcompute/ui/codeeditor/undoredo/replacementaction.lua | 1 | 1844 | local self = {}
GCompute.CodeEditor.ReplacementAction = GCompute.MakeConstructor (self, Gooey.UndoRedoItem)
function self:ctor (codeEditor, selectionStartLocation, selectionEndLocation, originalText, finalText)
self.CodeEditor = codeEditor
self.SelectionSnapshot = self.CodeEditor:CreateSelectionSnapshot ()
... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 36 | 1748 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs... | gpl-3.0 |
notcake/gcompute | lua/gcompute/execution/remote/remoteexecutioncontexthost.lua | 1 | 3729 | local self = {}
GCompute.Execution.RemoteExecutionContextHost = GCompute.MakeConstructor (self, GLib.Networking.SingleEndpointNetworkable)
function self:ctor (remoteExecutionServiceHost, executionContext)
GCompute.Debug ("RemoteExecutionContextHost:ctor ()")
self.ExecutionContext = executionContext
end
function sel... | gpl-3.0 |
mercury233/ygopro-scripts | c69243953.lua | 2 | 2295 | --蝶の短剣-エルマ
function c69243953.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+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetTarget(c69243953.target)
e1:SetOperation(c69243953.o... | gpl-2.0 |
mercury233/ygopro-scripts | c68078978.lua | 3 | 1836 | --占い魔女 チーちゃん
function c68078978.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(68078978,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_DRAW)
e1:SetCountLi... | gpl-2.0 |
gibtang/CCNSCoding | samples/Lua/TestLua/Resources/luaScript/ParallaxTest/ParallaxTest.lua | 4 | 5123 | local kTagNode = 0
local kTagGrossini = 1
local function createParallaxLayer(title, subtitle)
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
local titleStr = title == nil and "No title" or title
local subTitleStr = subtitle == nil and "" or subtitle
Helper.titleLabel:setString(t... | mit |
FranciscoCanas/ActionMovie | ep1/story1.lua | 1 | 4744 | -- Story cutscene/sequence.
require 'TESound.TEsound'
local Timer = require "hump.timer"
local Camera = require "hump.camera"
local font = love.graphics.setNewFont(28)
Gamestate.story1 = Gamestate.new()
local state = Gamestate.story1
local currentString = ""
local currentStringNum = 0
local diagInterval = 5
local dia... | mit |
BlockMen/Wasteland | mods/hud/init.lua | 2 | 1091 | -------------------------------------------------------------------------
-- Wasteland
-- Copyright (C) 2015 BlockMen <blockmen2015@gmail.de>
--
-- This file is part of Wasteland
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as publish... | gpl-3.0 |
tjormola/tj-awesome-themes | Radiance-Teal/theme.lua | 1 | 15917 | -- Radiance-Teal theme for Awesome 3.5
-- Copyright (C) 2016 Tuomas Jormola <tj@solitudo.net>
--
-- Licensed under the terms of GNU General Public License Version 2.0.
--
-- Designed to be used with Radiance-Teal GTK+ theme available at
-- http://www.ravefinity.com/p/our-themes-work.html.
-- freedesktop.org module for ... | gpl-2.0 |
mercury233/ygopro-scripts | c33026283.lua | 2 | 3180 | --双天将 金剛
function c33026283.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,85360035,aux.FilterBoolFunction(Card.IsFusionSetCard,0x14f),2,true,false)
--effect monster material check
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_MATERIAL_CHEC... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/Grounds_Tome.lua | 34 | 1144 | -----------------------------------
-- Area: Shrine of Ru'Avitau
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onT... | gpl-3.0 |
mercury233/ygopro-scripts | c61529473.lua | 2 | 4533 | --真竜の黙示録
function c61529473.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMING_DAMAGE_STEP+TIMING_END_PHASE)
c:RegisterEffect(e1)
--destory and atk & def down
local e2=Effect.CreateEffect(c)
e2:Se... | gpl-2.0 |
akh00/kong | kong/conf_loader.lua | 1 | 17855 | local kong_default_conf = require "kong.templates.kong_defaults"
local pl_stringio = require "pl.stringio"
local pl_stringx = require "pl.stringx"
local constants = require "kong.constants"
local pl_pretty = require "pl.pretty"
local pl_config = require "pl.config"
local pl_file = require "pl.file"
local pl_path = requ... | apache-2.0 |
dxmgame/dxm-cocos-demo | src/lua-fantasy-warrior-3d/Resources/src/cocos/cocos2d/DeprecatedCocos2dEnum.lua | 79 | 16871 |
--Enums will be deprecated,begin
_G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT
_G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT
_G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER
_G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP
_G.kCCVerticalTextAlignment... | mit |
hhsaez/crimild | examples/ParticleShowcase/assets/prefabs/handsOnFire.lua | 1 | 1922 | function handsOnFire( x, y, z )
local MAX_PARTICLES = 200
local astroboy = {
sceneFileName = 'assets/models/astroboy/astroBoy_walk_Max.dae',
transformation = {
scale = 70.0,
},
}
local ps = {
type = 'crimild::Group',
components = {
{
type = 'crimild::ParticleSystemComponent',
particles = ... | bsd-3-clause |
dmccuskey/dmc-wamp | examples/dmc-wamp-subscribe/dmc_corona/lib/dmc_lua/lua_objects.lua | 44 | 4827 | --====================================================================--
-- dmc_lua/lua_objects.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2011-2015 David McCuskey
Permission is hereby gran... | mit |
akh00/kong | spec/03-plugins/21-ldap-auth/01-access_spec.lua | 1 | 16040 | local cache = require "kong.tools.database_cache"
local helpers = require "spec.helpers"
local utils = require "kong.tools.utils"
local ldap_host_aws = "ec2-54-172-82-117.compute-1.amazonaws.com"
describe("Plugin: ldap-auth (access)", function()
local client, client_admin, api2, plugin2
setup(function()
local... | apache-2.0 |
ChameleonOS/android_external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
akh00/kong | kong/plugins/rate-limiting/handler.lua | 1 | 3683 | -- Copyright (C) Mashape, Inc.
local policies = require "kong.plugins.rate-limiting.policies"
local timestamp = require "kong.tools.timestamp"
local responses = require "kong.tools.responses"
local BasePlugin = require "kong.plugins.base_plugin"
local ngx_log = ngx.log
local pairs = pairs
local tostring = tostring
lo... | apache-2.0 |
stephank/luci | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 8 | 5558 | --[[
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... | apache-2.0 |
traissa/endls | menu.lua | 1 | 4951 | -----------------------------------------------------------------------------------------
--
-- menu.lua
--
-----------------------------------------------------------------------------------------
local composer = require( "composer" )
local scene = composer.newScene()
local imageData = require ("AssetLocation")
loca... | mit |
larber/domoticz | scripts/dzVents/runtime/device-adapters/group_device.lua | 5 | 1060 | local TimedCommand = require('TimedCommand')
return {
baseType = 'group',
name = 'Group device adapter',
matches = function (device, adapterManager)
local res = (device.baseType == 'group')
if (not res) then
adapterManager.addDummyMethod(device, 'switchOn')
adapterManager.addDummyMethod(device, 'switch... | gpl-3.0 |
Mephostopilis/lua | lualib/list.lua | 1 | 1984 | local assert = assert
local _M = {}
function _M.push_front(L, node, ... )
-- body
assert(type(ele) == "table")
node.__prev__ = nil
node.__next__ = nil
if L.size == 0 then
L.head = node
L.tail = node
else
node.__next__ = L.head
L.head.__prev__ = node
L.head = node
end
L.size = L.size + 1
end
funct... | apache-2.0 |
soheil22222222/ub | libs/serpent.lua | 6 | 7878 | 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-2.0 |
NamefulTeam/PortoGameJam2015 | game_view.lua | 1 | 12347 | -- imports
grid_state = require 'grid_state'
glitch_gen = require 'glitchGen'
directions = require 'directions'
glider = require 'glider'
player_state = require 'player_state'
stack_trace = require 'stackTrace'
active_screen = require 'active_screen'
game_over_view = require 'game_over_view'
game_won = require 'game_wo... | mit |
hexxcointakeover/hexxcoin | src/tor/src/ext/timeouts/bench/bench-expire.lua | 10 | 1070 | #!/usr/bin/env lua
local bench = require"bench"
local aux = require"bench-aux"
local lib = ... or aux.optenv("BENCH_L", "bench-wheel.so")
local limit = tonumber(aux.optenv("BENCH_N", 1000000))
local step = tonumber(aux.optenv("BENCH_S", limit / 100))
-- expire 1/1000 * #timeouts per clock update
local exp_step = ton... | mit |
dmccuskey/dmc-wamp | examples/dmc-wamp-rpc-caller/dmc_corona/dmc_states_mix.lua | 4 | 3813 | --====================================================================--
-- dmc_corona/dmc_states_mix.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby gra... | mit |
dmccuskey/dmc-wamp | examples/dmc-wamp-authentication/dmc_corona/dmc_states_mix.lua | 4 | 3813 | --====================================================================--
-- dmc_corona/dmc_states_mix.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby gra... | mit |
pins-ocs/OCP-tests | test-Dadebo1/data/Dadebo1_Data.lua | 1 | 4141 | --[[
/*-----------------------------------------------------------------------*\
| file: Dadebo1_Data.lua |
| |
| version: 1.0 date 28/3/2020 |
| ... | gpl-2.0 |
BlubBlab/rom-bot | svnupdate.lua | 1 | 1546 | --[[
Options:
revert - Remove all changes made by the user before attempting an SVN update
]]
function checkout()
warning("TortoiseSVN has not been configured for this path yet. You must do so now.");
local path = getExecutionPath();
local cmd = sprintf("TortoiseProc /command:checkout /path:\"%s\" /url:h... | mit |
c4augustus/Urho3D | bin/Data/LuaScripts/Utilities/Touch.lua | 32 | 2209 | -- Mobile framework for Android/iOS
-- Gamepad from Ninja Snow War
-- Touches patterns:
-- - 1 finger touch = pick object through raycast
-- - 1 or 2 fingers drag = rotate camera
-- - 2 fingers sliding in opposite direction (up/down) = zoom in/out
-- Setup: Call the update function 'UpdateTouches()' from... | mit |
dmccuskey/dmc-wamp | examples/dmc-wamp-rpc-callee/dmc_corona/lib/dmc_lua/lua_class.lua | 16 | 14025 | --====================================================================--
-- dmc_lua/lua_class.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fr... | mit |
dmccuskey/dmc-wamp | examples/dmc-wamp-authentication/dmc_corona/lib/dmc_lua/lua_class.lua | 16 | 14025 | --====================================================================--
-- dmc_lua/lua_class.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fr... | mit |
theonlywild/erfaan | 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 |
dxmgame/dxm-cocos-demo | src/lua-earth-warrior-3d/Resources/src/GameEntity.lua | 1 | 1229 | require("Cocos2d")
require("PublicApi")
local GameEntity = class("GameEntity", function()
return cc.Node:create()
end)
function GameEntity:ctor()
self._model = nil
self._radius = 0.0
self._orientation = nil
self._type = 0
end
---------------------------
--@return Node#Node model node
function GameEnt... | mit |
stephank/luci | libs/web/luasrc/cbi.lua | 8 | 40178 | --[[
LuCI - Configuration Bind Interface
Description:
Offers an interface for binding configuration values to certain
data types. Supports value and range validation and basic dependencies.
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "Li... | apache-2.0 |
dmccuskey/dmc-wamp | examples/dmc-wamp-rpc-caller/dmc_corona/lib/sha1.lua | 11 | 110178 | --
-- SHA-1 secure hash computation, and HMAC-SHA1 signature computation,
-- in pure Lua (tested on Lua 5.1)
--
-- Latest version always at: http://regex.info/blog/lua/sha1
--
-- Copyright 2009 Jeffrey Friedl
-- jfriedl@yahoo.com
-- http://regex.info/blog/
--
--
-- Version 1 [May 28, 2009]
--
--
-- Lua is a pathetic,... | mit |
Scentus/PonyPlayerModels | pony_player_models/lua/entities/cpm_pony_npc/shared.lua | 2 | 1105 |
ENT.Base = "base_ai"
ENT.Type = "ai"
ENT.PrintName = "Pony NPC"
ENT.Author = "Scentus"
ENT.Information = "Base Pony NPC"
ENT.Category = "Pony"
ENT.Purpose = "Base for pony NPCS"
ENT.Instructions = ""
ENT.Spawnable = true
ENT.AdminOnly = false
ENT.AutomaticFrameAdvance = true
/*---------------------------... | gpl-3.0 |
niushuai/redis-3.0-annotated | 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... | bsd-3-clause |
ignacio/nozzle | src/nozzle/helpers.lua | 1 | 1403 | ---
-- helper functions
--
local function tail (head, ...)
return ...
end
local function compose (f, g)
return function(...)
return f(g(...))
end
end
local function split (head, ...)
return head, {...}
end
local function is_callable (v)
return type(v) == 'function' or getmetatable(v) and getmetatable(v).__cal... | mit |
VurtualRuler98/kswep2 | lua/autorun/kevlar_simple_shared.lua | 1 | 4050 | if (SERVER) then
AddCSLuaFile()
end
CreateConVar("kevlar_debug","0",FCVAR_REPLICATED+FCVAR_ARCHIVE )
CreateConVar("kswep_ai_damagescale","0.5",FCVAR_REPLICATED+FCVAR_ARCHIVE )
CreateConVar("kevlar_enabled","0",FCVAR_REPLICATED+FCVAR_ARCHIVE )
CreateConVar("kswep_test_shrapnel","0",FCVAR_REPLICATED+FCVAR_ARCHIVE )
Crea... | apache-2.0 |
Okahyphen/randbytes | src/randbytes.lua | 3 | 1956 | -- randbytes.lua
-- Colin 'Oka' Hall-Coates
-- MIT, 2015
local defaults = setmetatable ({
bytes = 4,
mask = 256,
file = 'urandom',
filetable = {'urandom', 'random'}
}, { __newindex = function () return false end })
local files = {
urandom = false,
random = false
}
local utils = {}
function utils:gettabl... | mit |
pchote/OpenRA | mods/ra/maps/allies-06b/allies06b-AI.lua | 2 | 5725 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
mattjw79/luaLibs | lib/tableaddons.lua | 1 | 1626 | function table.count(tbl)
local count = 0
-- use pairs to loop through ALL items in the table
for _,i in pairs(tbl) do
count = count + 1
end
return count
end
-- Be EXTREMELY carful of how you use the below table.slice, tables
-- with named elements do not retain their order!
--
-- Lua 5.2.4 Copyright (... | mit |
nimaghorbani/telenima2 | plugins/helpall.lua | 1 | 4983 | do
function run(msg, matches)
return [[
help For all Plugins of SILVER-RoBoT :
1./AddBot [Invitelink] : and you can do it with replay
======================================================
2./bot + [botuserID] : allow a bot to join
3./bot - [botID] : dissallow bot for joining
4./bot + : enable anti bot in group
5./bo... | gpl-2.0 |
TGlandTeam/AntiSpamCreatorBot | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
UnluckyNinja/PathOfBuilding | Classes/ItemSlotControl.lua | 1 | 4835 | -- Path of Building
--
-- Class: Item Slot
-- Item Slot control, extends the basic dropdown control.
--
local launch, main = ...
local pairs = pairs
local t_insert = table.insert
local m_min = math.min
local ItemSlotClass = common.NewClass("ItemSlot", "DropDownControl", function(self, anchor, x, y, itemsTab, slotName... | mit |
artynet/luci | libs/luci-lib-nixio/docsrc/README.lua | 10 | 4757 | --- General Information.
module "nixio.README"
--- General error handling information.
-- <ul>
-- <li> Most of the functions available in this library may fail. If any error
-- occurs the function returns <strong>nil or false</strong>, an error code
-- (usually errno) and an additional error message text (if avaialabl... | apache-2.0 |
VurtualRuler98/kswep2 | lua/weapons/weapon_kswept_sks.lua | 1 | 2973 | --[[
Copyright 2018 vurtual
VurtualRuler98@gmail.com
vurtual.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
Unless required by applicable law o... | apache-2.0 |
c4augustus/Urho3D | Source/ThirdParty/LuaJIT/dynasm/dasm_ppc.lua | 33 | 57489 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | mit |
raedwulf/perceptio | src/perceptio/label.lua | 1 | 1500 | ------------------------------------------------------------------------------
-- Perceptio label module for providing access to label control.
-- @release Perceptio (C) 2011-2012 University of York
-- Please see LICENSE for details of the BSD license.
-------------------------------------------------------------------... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.