repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Lsty/ygopro-scripts | c89893715.lua | 3 | 1142 | --ラヴァルの炎車回し
function c89893715.initial_effect(c)
--to grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(89893715,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c89893715.condition)
e1:SetTarget(c8989... | gpl-2.0 |
Lsty/ygopro-scripts | c30435145.lua | 5 | 1816 | --古代の機械工場
function c30435145.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c30435145.target)
e1:SetOperation(c30435145.operation)
c:RegisterEffect(e1)
end
function c30435145.filter(c,g)
return c:GetLevel()>4 and c:IsSetCar... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/syscall/netbsd/types.lua | 24 | 22649 | -- NetBSD types
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
local abi = requi... | mit |
Lsty/ygopro-scripts | c4906301.lua | 3 | 1221 | --ネクロ・ガードナー
function c4906301.initial_effect(c)
--disable attack
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(4906301,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_ATTACK)
e1:SetRange(LOCATION_GRAVE)
e1:SetCondition(c4906301.condition)
e1:SetCost(c... | gpl-2.0 |
staeld/minnet | minnet/time.lua | 1 | 6145 | #!/usr/bin/env lua
-- time.lua - time-related functions and data for minnet
-- Copyright Stæld Lakorv, 2011 <staeld@staeld.co.cc>
-- This file is part of Minnet.
-- Minnet is released under the GPLv3 - see ../COPYING
-- This file contains various commands, functions and tables that relate to
-- time calculations and ... | gpl-3.0 |
bryansum/urMus | urMus-Lua/urWidget.lua | 1 | 4520 | -- urWidget.lua
-- Simple interaction GUI wigets
-- Current support: Tooltip, ContextMenu
-- Created by Bryan Summersett on 3/28/2010
-- Minor modifications by Georg Essl on 4/4/2010
dofile(SystemPath("urHelpers.lua"))
Req("urAnimate")
if not Widget then Widget = {} end
-- menu = Widget.ContextMenu({{'first',functio... | mit |
Lsty/ygopro-scripts | c56681873.lua | 3 | 1135 | --魔装戦士 テライガー
function c56681873.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(56681873,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c56681873.sptg)
e1:SetOperation(c566... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria/npcs/Najjar.lua | 9 | 1126 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Najjar
-- General Info NPC
-------------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
function onTrade(player,npc,trade)
-- "Flye... | gpl-3.0 |
Lsty/ygopro-scripts | c4861205.lua | 7 | 1510 | --ミイラの呼び声
function c4861205.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(4861205,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:Set... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/hellfire_axe.lua | 12 | 1073 | -----------------------------------------
-- ID: 16713
-- Item: Hellfire Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(play... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/fulm-long_salmon_sub.lua | 11 | 1197 | -----------------------------------------
-- ID: 4266
-- Item: fulm-long_salmon_sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- DEX +2
-- VIT +1
-- AGI +1
-- INT +2
-- MND -2
-- Ranged Accuracy +3
-----------------------------------------
require("scripts/globals/status")
require("scri... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/firestorm.lua | 12 | 1294 | --------------------------------------
-- Spell: Firestorm
-- Changes the weather around target party member to "hot."
--------------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
--------------------------------------
function onMagicCastingCheck(caster, target, spell)... | gpl-3.0 |
mamadkiller2/anti-spam | libs/JSON.lua | 28 | 34978 | -- -*- 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-3.0 |
MalRD/darkstar | scripts/zones/QuBia_Arena/mobs/Archlich_Taberquoan.lua | 9 | 1057 | -----------------------------------
-- Area: Qu'Bia Arena
-- NM: Archlich Taber'quoan
-- Mission 5-1 BCNM Fight
-----------------------------------
mixins = {require("scripts/mixins/job_special")};
require("scripts/globals/status");
function onMobInitialize(mob)
mob:setMobMod(dsp.mobMod.SOUND_RANGE, 32);
end;
f... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4f3.lua | 9 | 1640 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: _4f3
-- Notes: Tonberry Priest Room (Offers Tonberry Hate Reset)
-- !pos 60.001 -1.653 -147.755 159
-----------------------------------
local ID = require("scripts/zones/Temple_of_Uggalepih/IDs")
require("scripts/globals/keyitems")
--------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/weaponskills/viper_bite.lua | 10 | 1752 | -----------------------------------
-- Viper Bite
-- Dagger weapon skill
-- Skill level: 100
-- Deals double damage and Poisons target. Duration of poison varies with TP.
-- Doubles attack and not damage.
-- Despite the animation showing two swings, this is a single-hit weapon skill.
-- Will stack with Sneak Attack.
--... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/bowl_of_sprightly_soup.lua | 11 | 1065 | -----------------------------------------
-- ID: 5930
-- Item: Bowl of Sprightly Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP 30
-- Mind 4
-- HP Recovered While Healing 4
-- Enmity -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/gl... | gpl-3.0 |
Frenzie/koreader | frontend/ui/widget/screensaverwidget.lua | 1 | 7028 | local Device = require("device")
local Event = require("ui/event")
local Geom = require("ui/geometry")
local GestureRange = require("ui/gesturerange")
local FrameContainer = require("ui/widget/container/framecontainer")
local InfoMessage = require("ui/widget/infomessage")
local InputContainer = require("ui/widget/conta... | agpl-3.0 |
T-L-N/Dev_TLN | plugins/robot.lua | 1 | 2225 | --[[
_____ _ _ _
|_ _| | | | \ | |
| | | | | \| |
| | | |___ | |\ |
|_| |_____| |_| \_|
Dev @Aaa1R (علي_دراكون)
Dev @llN00Nll (نظوري_الرئاسه)
Dev @liknil (كرار_ابن_الرئاسه)
Dev @x_I_10_I_x (انور_فايدر)
—]]
local function is_channel_disabled( receiver )
if not ... | gpl-2.0 |
Lsty/ygopro-scripts | c34945480.lua | 3 | 2490 | --外神アザトート
function c34945480.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,5,3,c34945480.ovfilter,aux.Stringid(34945480,1))
c:EnableReviveLimit()
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_CANNO... | gpl-2.0 |
Lsty/ygopro-scripts | c84749824.lua | 3 | 2343 | --神の警告
function c84749824.initial_effect(c)
--Activate(summon)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON)
e1:SetCondition(c84749824.condition1)
e1:SetCost(c84749824.cost1)
e1:SetTarget(c84749824.target1)
e1:... | gpl-2.0 |
mati865/vlc | share/lua/modules/sandbox.lua | 28 | 4403 | --[==========================================================================[
sandbox.lua: Lua sandboxing facilities
--[==========================================================================[
Copyright (C) 2007 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
This program is f... | gpl-2.0 |
Frenzie/koreader | spec/unit/random_spec.lua | 15 | 1031 | describe("random package tests", function()
local random
local function is_magic_char(c)
return c == "8" or c == "9" or c == "A" or c == "B"
end
setup(function()
random = require("frontend/random")
end)
it("should generate uuid without dash", function()
for i = 1, 1000... | agpl-3.0 |
Lsty/ygopro-scripts | c61650133.lua | 3 | 1960 | --召喚の呪詛
function c61650133.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--maintain
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EF... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 9 | 3778 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- !pos 129 -11 126 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
... | gpl-3.0 |
tarulas/luadch | core/json.lua | 1 | 12986 | --[[
JSON Encoder and Parser for Lua 5.1
Copyright © 2007 Shaun Brown (http://www.chipmunkav.com).
All Rights Reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software to deal in the Software without
restriction, including without limitation the rights... | gpl-3.0 |
Lsty/ygopro-scripts | c32723153.lua | 3 | 1146 | --マジカル・エクスプロージョン
function c32723153.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetCondition(c32723153.condition)
e1:... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Windurst_Walls/npcs/Zokima-Rokima.lua | 9 | 2580 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Zokima-Rokima
-- Starts Windurst Missions
-- !pos 0 -16 124 239
-----------------------------------
local ID = require("scripts/zones/Windurst_Walls/IDs");
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/global... | gpl-3.0 |
mikhail-angelov/vlc | share/lua/playlist/pluzz.lua | 105 | 3740 | --[[
$Id$
Copyright © 2011 VideoLAN
Authors: Ludovic Fauvet <etix at l0cal dot com>
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 l... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/plate_of_urchin_sushi.lua | 11 | 1357 | -----------------------------------------
-- ID: 5151
-- Item: plate_of_urchin_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 40
-- Strength 1
-- Vitality 5
-- Accuracy % 15 (cap 72)
-- Ranged ACC % 15 (cap 72)
-----------------------------------------
require("scripts/global... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Metalworks/npcs/Mighty_Fist.lua | 9 | 2275 | -----------------------------------
-- Area: Metalworks
-- NPC: Mighty Fist
-- Starts & Finishes Quest: The Darksmith (R)
-- Involved in Quest: Dark Legacy
-- !pos -47 2 -30 237
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/shop")... | gpl-3.0 |
Frenzie/koreader | plugins/calibre.koplugin/wireless.lua | 4 | 24949 | --[[
This module implements the 'smart device app' protocol that communicates with calibre wireless server.
More details can be found at calibre/devices/smart_device_app/driver.py.
--]]
local BD = require("ui/bidi")
local CalibreExtensions = require("extensions")
local CalibreMetadata = require("metadata")
loc... | agpl-3.0 |
Lsty/ygopro-scripts | c43642620.lua | 9 | 1349 | --マンモス・ゾンビ
function c43642620.initial_effect(c)
--self destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY)
e1:SetCondition(c43642620.sdcon)
c:RegisterEffect(e1)
--damage
local e2=Effect.Crea... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Arrapago_Reef/npcs/_1ie.lua | 12 | 2591 | -----------------------------------
-- Area: Arrapago Reef
-- Door: Iron Gate (Lamian Fang Key)
-- !pos 580 -17 120
-----------------------------------
local ID = require("scripts/zones/Arrapago_Reef/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/status")
-----------------------------------
functio... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Uleguerand_Range/mobs/Jormungand.lua | 9 | 2615 | -----------------------------------
-- Area: Uleguerand Range
-- HNM: Jormungand
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
function onMobSpawn(mob)
mob:SetMobSkillAttack(0); -- resetting so it doesn't respawn in flight mode.
mob:AnimationSub(0);... | gpl-3.0 |
MahmoudDolah/Firmware-Entry-Points-In-Memory | openwrt/openwrt-generic-x86/usr/lib/lua/luci/dispatcher.lua | 31 | 19783 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local util = require "luci.util"
local http = require "luci.http"
local nixio = require "nixio", require "nixio.util"
module("luci.dispatcher", packa... | apache-2.0 |
Silencer2K/wow-action-bar-profiles | Save.lua | 1 | 9845 | local addonName, addon = ...
local L = LibStub("AceLocale-3.0"):GetLocale(addonName)
local DEBUG = "|cffff0000Debug:|r "
function addon:GuessName(name)
local list = self.db.profile.list
if not list[name] then
return name
end
local i
for i = 2, 99 do
local try = string.format("%s ... | mit |
CommandPost/CommandPost-App | extensions/hid/hid.lua | 4 | 1906 | --- === hs.hid ===
---
--- HID interface for Hammerspoon, controls and queries caps lock state
---
--- Portions sourced from (https://discussions.apple.com/thread/7094207).
local module = require("hs.libhid")
-- private variables and methods -----------------------------------------
-- Public interface ------------... | mit |
MahmoudDolah/Firmware-Entry-Points-In-Memory | openwrt/openwrt-generic-x86/usr/lib/lua/luci/model/uci.lua | 49 | 4995 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local uci = require "uci"
local util = require "luci.util"
local table = require "table"
local setmetatable, rawget, rawset = setmetatable, rawget, rawset
local require, getmetata... | apache-2.0 |
MalRD/darkstar | scripts/globals/mobskills/pw_groundburst.lua | 11 | 1089 | ---------------------------------------------
-- Groundburst
--
-- Description: Expels a fireball on targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes: Only used by notorious monsters, and from any Mamool Ja in besieged.
---------------------------... | gpl-3.0 |
Frenzie/koreader | plugins/exporter.koplugin/template/md.lua | 4 | 1813 | local _ = require("gettext")
local formatters = {
none = {
formatter = "%s",
label = _("None")
},
bold = {
formatter = "**%s**",
label = _("Bold")
},
italic = {
formatter = "*%s*",
label = _("Italic")
},
bold_italic = {
formatter = "**... | agpl-3.0 |
MalRD/darkstar | scripts/globals/abilities/light_shot.lua | 12 | 2700 | -----------------------------------
-- Ability: Light Shot
-- Consumes a Light Card to enhance light-based debuffs. Additional effect: Light-based Sleep
-- Dia Effect: Defense Down Effect +5% and DoT + 1
-----------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
-------------... | gpl-3.0 |
Frenzie/koreader | spec/unit/quickstart_spec.lua | 14 | 1737 | describe("QuickStart module", function()
setup(function()
require("commonrequire")
end)
it("should return false shown_version lower than force_show_version", function()
G_reader_settings:saveSetting("quickstart_shown_version", 1)
G_reader_settings:flush()
local QuickStart = r... | agpl-3.0 |
Lsty/ygopro-scripts | c26834022.lua | 3 | 1317 | --ディザーム
function c26834022.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c26834022.condition)
e1:SetTarget(c26834022.target)
e1:SetOperation(c26834022.activ... | gpl-2.0 |
Cyril-Roques/packages | net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua | 29 | 10831 | module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
function index()
if not nixio.fs.access("/etc/config/mwan3") then
return
end
entry({"admin", "network", "mwan"},
alias("admin", "network", "mwan", "overview"),
_("Load Balancing"), 600)
entry({"admin", "netwo... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Beadeaux/npcs/_43b.lua | 11 | 1312 | -----------------------------------
-- Area: Beadeaux
-- NPC: Jail Door
-- Involved in Quests: The Rescue
-- !pos 56 0.1 -23 147
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
local ID = require("scripts/zones/Beadeaux/ID... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/slice_of_ziz_meat.lua | 11 | 1070 | -----------------------------------------
-- ID: 5581
-- Item: Slice of Ziz Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
----------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/spells/mages_ballad.lua | 12 | 1159 | -----------------------------------------
-- Spell: Mage's Ballad
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
f... | gpl-3.0 |
tmeinlschmidt/domoticz | scripts/lua/script_time_demo.lua | 55 | 1932 | -- demo time script
-- script names have three name components: script_trigger_name.lua
-- trigger can be 'time' or 'device', name can be any string
-- domoticz will execute all time and device triggers when the relevant trigger occurs
--
-- copy this script and change the "name" part, all scripts named "demo" are ign... | gpl-3.0 |
rotmanmi/nn | ClassNLLCriterion.lua | 15 | 1767 | local ClassNLLCriterion, parent = torch.class(
'nn.ClassNLLCriterion',
'nn.Criterion'
)
function ClassNLLCriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
if weights then
... | bsd-3-clause |
MalRD/darkstar | scripts/globals/items/aileens_delight.lua | 11 | 1521 | -----------------------------------------
-- ID: 5674
-- Item: Aileen's Delight
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +50
-- MP +50
-- STR +4
-- DEX +4
-- VIT +4
-- AGI +4
-- INT +4
-- MND +4
-- CHR +4
-- MP recovered while healing +2
-----------------------------------------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria/npcs/Valeriano.lua | 11 | 1490 | -----------------------------------
-- Area: Southern_San_dOria
-- NPC: Valeriano
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/conquest")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("sc... | gpl-3.0 |
Nuthen/ludum-dare-39 | globals.lua | 1 | 4320 | -- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- !! This flag controls the ability to toggle the debug view. !!
-- !! You will want to turn this to 'true' when you publish your game. !!
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
RELEASE = true
-- Enabl... | mit |
morfeo642/mta_plr_server | hedit/shared/wrappers/general.lua | 1 | 3015 | _outputChatBox = outputChatBox
if serverside then
function outputChatBox ( str, r, g, b )
return _outputChatBox ( "#FFFFFF[HEDIT] #D00000"..str, root, r or 255, g or 255, b or 255, true )
end
else
function outputChatBox ( str, r, g, b )
return _outputChatBox ( "#FFFFFF[HEDIT] #D00000"..str, ... | mit |
rastin45/magic78 | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
Cyril-Roques/packages | utils/luci-app-lxc/files/controller/lxc.lua | 77 | 2909 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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
Author: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/turbo/examples/cookie.lua | 12 | 1061 | --- Turbo.lua Cookie usage example
--
-- Copyright 2013 John Abrahamsen
--
-- 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 requi... | mit |
ThingMesh/openwrt-luci | modules/freifunk/luasrc/model/cbi/freifunk/profile.lua | 56 | 2755 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
httc://www.apache.org/licenses/LICENSE-2.0
]]... | apache-2.0 |
thebracket/bgame | world_defs/life_events.lua | 1 | 11705 | life_events = {
-- Births
birth_normal = {
min_age=0,
max_age=0,
description="born as a healthy, normal baby.",
weight = 50,
modifiers = { },
},
birth_sickly = {
min_age=0,
max_age=0,
description="born as a sickly baby.",
... | gpl-3.0 |
Frenzie/koreader | frontend/device/pocketbook/device.lua | 1 | 23913 | local Generic = require("device/generic/device") -- <= look at this file!
local logger = require("logger")
local ffi = require("ffi")
local C = ffi.C
local inkview = ffi.load("inkview")
local band = require("bit").band
local util = require("util")
local _ = require("gettext")
require("ffi/posix_h")
require("ffi/linux_... | agpl-3.0 |
minimumcut/UnnamedEngine | UnnamedEngine/Vendor/bullet/build3/findOpenGLGlewGlut.lua | 5 | 2786 |
function findOpenGL()
configuration{}
if os.is("Linux") then
return true
end
--assume OpenGL is available on Mac OSX, Windows etc
return true
end
function findOpenGL3()
configuration{}
if os.is("MacOSX") then
local osversion = os.getversion(... | mit |
Lsty/ygopro-scripts | c58058134.lua | 3 | 1883 | --シャイニート・マジシャン
function c58058134.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,1,2)
c:EnableReviveLimit()
--battle indes
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:Se... | gpl-2.0 |
Lsty/ygopro-scripts | c21770260.lua | 7 | 1913 | --スライム増殖炉
function c21770260.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--token
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(21770260,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EF... | gpl-2.0 |
moody2020/TH3_BOSS | plugins/lock_bot.lua | 4 | 3030 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ ANTI BOT : منع بوتات ▀▄ ▄▀
▀▄... | gpl-2.0 |
Lsty/ygopro-scripts | c88132637.lua | 9 | 1059 | --ツインヘッド・ケルベロス
function c88132637.initial_effect(c)
--disable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLED)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c88132637.discon)
e1:SetOperation(c88132637.disop)
c:RegisterEffect(e1)
end
function c88132637... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/turbo/turbo/fs.lua | 12 | 2093 | --- Turbo.lua file system Module
--
-- Copyright 2013 John Abrahamsen
--
-- 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 require... | mit |
jmattsson/nodemcu-firmware | app/cjson/lua/cjson/util.lua | 170 | 6837 | local json = require "cjson"
-- Various common routines used by the Lua CJSON package
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index ... | mit |
Lsty/ygopro-scripts | c28630501.lua | 3 | 3091 | --妖仙獣 鎌参太刀
function c28630501.initial_effect(c)
--summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(28630501,0))
e1:SetCategory(CATEGORY_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c28630501.sumt... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Windurst_Woods/npcs/Matata.lua | 9 | 1261 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Matata
-- Type: Standard NPC
-- Involved in quest: In a Stew
-- !pos 131 -5 -109 241
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(... | gpl-3.0 |
zhaozg/lit | libs/codec.lua | 4 | 4009 | --[[
Copyright 2014-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 o... | apache-2.0 |
Lsty/ygopro-scripts | c83239739.lua | 7 | 1177 | --オイスターマイスター
function c83239739.initial_effect(c)
--token
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(83239739,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c83239739.condition)
e1:Set... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Mine_Shaft_2716/bcnms/century_of_hardship.lua | 9 | 1420 | -----------------------------------
-- A Century of Hardship
-- Mine Shaft #2716 mission battlefield
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/missions")
-----------------------------------
function onBattlefieldTick(battlefield, tick)
dsp.battlefield.onBat... | gpl-3.0 |
marktsai0316/nodemcu-firmware | lua_examples/irsend.lua | 88 | 1803 | ------------------------------------------------------------------------------
-- IR send module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("irsend.lua").nec(4, 0x00ff00ff)
-----------------------------------------------------------------------... | mit |
Lsty/ygopro-scripts | c20127343.lua | 3 | 1259 | --A・ジェネクス・チェンジャー
function c20127343.initial_effect(c)
--att change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20127343,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c20127343.costg)
e1:SetOperation(c... | gpl-2.0 |
mohammad25253/new43 | plugins/ingroup.lua | 37 | 31653 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
jadarve/lluvia | lluvia/nodes/lluvia/opticalflow/flowfilter/FlowUpdate.lua | 1 | 4178 | local builder = ll.class(ll.ComputeNodeBuilder)
builder.name = 'lluvia/opticalflow/flowfilter/FlowUpdate'
builder.doc = [[
Computes one step update of the optical flow based on image data and previous estimate.
Parameters
----------
gamma : float. Defaults to 0.01
The filter gains for the update step.
max_flow :... | apache-2.0 |
Lsty/ygopro-scripts | c31828916.lua | 7 | 2604 | --機甲部隊の最前線
function c31828916.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--special summon
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetDescription(aux.Stringid(31828916,0))
e3:... | gpl-2.0 |
Lsty/ygopro-scripts | c94253609.lua | 9 | 1109 | --エレメンタル・アブソーバー
function c94253609.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c94253609.cost)
c:RegisterEffect(e1)
--cannot attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_A... | gpl-2.0 |
Lsty/ygopro-scripts | c52709508.lua | 3 | 4227 | --A・ジェネクス・トライフォース
function c52709508.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x2),aux.NonTuner(nil),1)
c:EnableReviveLimit()
--mat check
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_MATERIAL_CHECK)
e1:SetValue(c527095... | gpl-2.0 |
Frenzie/koreader | frontend/ui/widget/confirmbox.lua | 4 | 7032 | --[[--
Widget that shows a confirmation alert with a message and Cancel/OK buttons.
Example:
UIManager:show(ConfirmBox:new{
text = _("Save the document?"),
ok_text = _("Save"), -- ok_text defaults to _("OK")
ok_callback = function()
-- save document
end,
})
It is ... | agpl-3.0 |
rotmanmi/nn | View.lua | 41 | 2232 | local View, parent = torch.class('nn.View', 'nn.Module')
function View:__init(...)
parent.__init(self)
if select('#', ...) == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then
self.size = select(1, ...)
else
self.size = torch.LongStorage({...})
end
self.numElements = 1
loc... | bsd-3-clause |
HexCodeCC/DynaCode | src/Classes/Core/Application.lua | 2 | 12669 | local oError
class "Application" alias "COLOUR_REDIRECT" mixin "MDaemon" {
canvas = nil;
hotkey = nil;
timer = nil;
event = nil;
stages = {};
changed = true;
running = false;
lastID = 0;
}
function Application:initialise( ... )
-- Classes can be called with either a single table ... | mit |
MalRD/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Tarnotik.lua | 9 | 1132 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Tarnotik
-- Type: Standard NPC
-- !pos 160.896 10.999 -55.659 11
-----------------------------------
require("scripts/globals/missions")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, npc, trade)
... | gpl-3.0 |
Lsty/ygopro-scripts | c16111820.lua | 3 | 1255 | --ジュラック・ヘレラ
function c16111820.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16111820,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetProperty(EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetCode(EV... | gpl-2.0 |
StewEsho/Prepenole | button.lua | 2 | 2653 | --------------------------------------------------------------------------------
--
-- Functionality for adding buttons, used in game and in menus
--
-- button.lua
--
------------------------------- Private Fields ---------------------------------
local class = require ("classy");
local button = {};
button.newInstan... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Attohwa_Chasm/mobs/Tiamat.lua | 9 | 2993 | -----------------------------------
-- Area: Attohwa Chasm
-- Mob: Tiamat
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:SetMobSkillAttack(0); -- resetting so it doesn't respawn in flight mo... | gpl-3.0 |
Lsty/ygopro-scripts | c79333300.lua | 5 | 1256 | --風霊術-「雅」
function c79333300.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1e0)
e1:SetCost(c79333300.cost)
e1:SetTarget(c79333300.target)
e1... | gpl-2.0 |
Lsty/ygopro-scripts | c98162021.lua | 3 | 2134 | --紫炎の荒武者
function c98162021.initial_effect(c)
c:EnableCounterPermit(0x3003)
c:SetCounterLimit(0x3003,1)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98162021,0))
e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCE... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/lib/pf/match.lua | 15 | 11796 | module(...,package.seeall)
---
--- Program := 'match' Cond
--- Cond := '{' Clause... '}'
--- Clause := Test '=>' Dispatch [ClauseTerminator]
-- Test := 'otherwise' | LogicalExpression
--- ClauseTerminator := ',' | ';'
--- Dispatch := Call | Cond
--- Call := Identifier Args?
--- Args := '(' [ ArithmeticExpression [ ',... | mit |
Lsty/ygopro-scripts | c91595718.lua | 3 | 1649 | --秘術の書
function c91595718.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(c91595718.target)
e1:SetOperation(c91595718.operation)
c:RegisterEffect(e1)
-... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua | 68 | 16296 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "luci.util"
local ip = require "luci.ip"
local has_ipip = fs.glob("/etc/mo... | apache-2.0 |
ThingMesh/openwrt-luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/iwinfo.lua | 78 | 1089 | --[[
Luci configuration model for statistics - collectd interface plugin configuration
(c) 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://ww... | apache-2.0 |
cshore-firmware/openwrt-luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 47 | 3692 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
device = section:taboption("general", Value... | apache-2.0 |
cshore-firmware/openwrt-luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua | 72 | 2039 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, peeraddr, ip6addr, tunnelid, username, password
local defaultroute, metric, ttl, mtu
ipaddr = s:taboption("general", Value, "ipaddr",
translate("Local IPv4 ad... | apache-2.0 |
Lsty/ygopro-scripts | c8696773.lua | 5 | 2530 | --陽炎獣 ヒュドラー
function c8696773.initial_effect(c)
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(aux.tgoval)
c:RegisterEffect(e1)
--sum limit
local e2=Ef... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/tropical_clam.lua | 11 | 1056 | -----------------------------------------
-- ID: 5124
-- Item: Tropical Clam
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Vitality 4
-- Dexterity -5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
------------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c86016245.lua | 9 | 1368 | --弱者の意地
function c86016245.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(86016245,0))
e2:SetCategory(CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_FIE... | gpl-2.0 |
rotmanmi/nn | SparseJacobian.lua | 61 | 8618 | nn.SparseJacobian = {}
function nn.SparseJacobian.backward (module, input, param, dparam)
local doparam = 0
if param then
doparam = 1
end
-- output deriv
module:forward(input)
local dout = module.output.new():resizeAs(module.output)
-- 1D view
local sdout = module.output.new(dout:stor... | bsd-3-clause |
CommandPost/CommandPost-App | extensions/screen/test_screen.lua | 5 | 8770 | hs.screen = require("hs.screen")
hs.geometry = require("hs.geometry")
function testMainScreen()
local screen = hs.screen.mainScreen()
assertIsUserdataOfType("hs.screen", screen)
return success()
end
function testPrimaryScreen()
local screen = hs.screen.primaryScreen()
assertIsUserdataOfType("hs.screen", sc... | mit |
misterdustinface/snow | snow/src/hump/timer.lua | 27 | 6224 | --[[
Copyright (c) 2010-2013 Matthias Richter
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, publish, dis... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.