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 |
|---|---|---|---|---|---|
lusiankaitz/koreader-master | spec/unit/readerui_spec.lua | 5 | 1389 | require("commonrequire")
local DocumentRegistry = require("document/documentregistry")
local ReaderUI = require("apps/reader/readerui")
local DocSettings = require("docsettings")
local UIManager = require("ui/uimanager")
describe("Readerui module", function()
local sample_epub = "spec/front/unit/data/leaves.epub"
... | agpl-3.0 |
waytim/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c0_.lua | 13 | 1811 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Mahogany Door
-- Involved In Quest: Making Headlines
-- Working 100%
-- Unable to find EventID for Making Headlines quest. Used dialog ID instead.
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/... | gpl-3.0 |
waytim/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_4.lua | 13 | 2440 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c6666683.lua | 2 | 1676 | --Pomegranate of the Shaderune Queen
function c6666683.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:SetCost(c6666683.cost)
e1:SetTarget(c6666683.target)
e1:SetOperation(c6666683.activ... | gpl-3.0 |
TienHP/Aquaria | files/scripts/entities/seedcommon.lua | 10 | 3064 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c121200000.lua | 2 | 2181 | --Ynershia Common Functions
-- By Shad3
local function getID()
local str=string.match(debug.getinfo(2,'S')['source'],"c%d+%.lua")
str=string.sub(str,1,string.len(str)-4)
local scard=_G[str]
local s_id=tonumber(string.sub(str,2))
return scard,s_id
end
local scard,s_id=getID()
function scard.initial_effect(c)
i... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Chateau_dOraguille/npcs/Nachou.lua | 4 | 1047 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Nachou
-- Type: Standard NPC
-- @zone: 233
-- @pos: -39.965 -3.999 34.292
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
--... | gpl-3.0 |
mehrpouya81/gamerspm | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
TienHP/Aquaria | files/scripts/entities/cc_kid.lua | 6 | 2039 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
zorfmorf/loveprojects | colonycontrol/src/lib/quickie/slider.lua | 15 | 3057 | --[[
Copyright (c) 2012 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, distribu... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c99960140.lua | 1 | 5682 | --BRS - White ★ Rock Shooter
function c99960140.initial_effect(c)
c:EnableReviveLimit()
--Xyz Summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c99960140.xyzcon)
e1:Se... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/piece_of_raisin_bread.lua | 3 | 1168 | -----------------------------------------
-- ID: 4546
-- Item: piece_of_raisin_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity -1
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
CaptainPRICE/wire | lua/weapons/remotecontroller.lua | 9 | 2091 | AddCSLuaFile()
SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03
SWEP.Contact = ""
SWEP.Purpose = "Remote control for Pod Controllers in wire."
SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling."
SWEP.Category = "Wiremod"
SWEP.PrintName = "Remo... | apache-2.0 |
Kapiainen/Lauhdutin | dist/@Resources/settings/init.lua | 1 | 13139 | RUN_TESTS = false
if RUN_TESTS then
print('Running tests')
end
local utility = nil
LOCALIZATION = nil
STATE = {
INITIALIZED = false,
PATHS = {
RESOURCES = nil,
RAINMETER = nil
},
CURRENT_CONFIG = nil,
NUM_SLOTS = 4,
PAGE_INDEX = 1,
SCROLL_INDEX = 1,
MAX_SCROLL_INDEX = 1
}
COMPONENTS = {
SETT... | mit |
waytim/darkstar | scripts/zones/Riverne-Site_B01/npcs/Unstable_Displacement.lua | 27 | 2180 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-- ENM Battlefield
-- @pos -612 4 693
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scrip... | gpl-3.0 |
waytim/darkstar | scripts/zones/La_Theine_Plateau/npcs/Laurisse.lua | 13 | 1775 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Laurisse
-- Involved in Mission: The Rescue Drill
-- @pos -292 28 143 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 5 | 1038 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Head Craftsman
-- @zone: 240
-- @pos: -194.499 -3 58.692
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------... | gpl-3.0 |
gfgtdf/wesnoth-old | data/lua/wml/message.lua | 4 | 13419 |
local utils = wesnoth.require "wml-utils"
local _ = wesnoth.textdomain "wesnoth"
local function log(msg, level)
wesnoth.log(level, msg, true)
end
local function get_image(cfg, speaker)
local image = cfg.image
local left_side = true
if speaker and (image == nil or image == "") and (cfg.second_image == nil or cfg... | gpl-2.0 |
TienHP/Aquaria | files/scripts/maps/node_singinghint.lua | 6 | 1224 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
waytim/darkstar | scripts/zones/Valkurm_Dunes/npcs/Tsunashige_IM.lua | 13 | 3317 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Tsunashige, I.M.
-- Outpost Conquest Guards
-- @pos 139.394 -7.885 100.384 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c101010214.lua | 2 | 2345 | --created & coded by Lyris
--剣主 四
function c101010214.initial_effect(c)
c:EnableReviveLimit()
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xbb2),4,2)
--pierce
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e0)
--atkup
local e1=Effect.Cre... | gpl-3.0 |
X-Raym/REAPER-ReaScripts | Track Properties/X-Raym_Save all tracks visibility.lua | 1 | 1349 | --[[
* ReaScript Name: Save all tracks visibility
* About: A script to save tracks visibility. Use the restore version of this script after.
* Author: X-Raym
* Author URI: https://www.extremraym.com
* Repository: GitHub > X-Raym > REAPER-ReaScripts
* Repository URI: https://github.com/X-Raym/REAPER-ReaScripts
* ... | gpl-3.0 |
ryanplusplus/busted | busted/outputHandlers/base.lua | 7 | 5274 | local socket = require 'socket'
return function()
local busted = require 'busted'
local handler = {
successes = {},
successesCount = 0,
pendings = {},
pendingsCount = 0,
failures = {},
failuresCount = 0,
errors = {},
errorsCount = 0,
inProgress = {}
}
handler.cancelOnPendin... | mit |
db260179/openwrt-bpi-r1-luci | modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua | 40 | 1769 | -- 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.
module("luci.controller.admin.uci", package.seeall)
function index()
local redir = luci.http.formvalue("redir", true) or
luci.dispatcher.build_url(unpack(... | apache-2.0 |
waytim/darkstar | scripts/zones/Castle_Oztroja/npcs/_479.lua | 13 | 1702 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _479 (Brass Door)
-- Involved in Mission "Saintly Invitation"
-- @pos -99 -59 84 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle... | gpl-3.0 |
db260179/openwrt-bpi-r1-luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widget... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c494476193.lua | 2 | 4803 | function c494476193.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
aux.AddFusionProcCodeFunRep(c,494476151,aux.FilterBoolFunction(Card.IsRace,RACE_FIEND),1,63,true,true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISA... | gpl-3.0 |
Oneymus/cells | text.lua | 1 | 4033 | --- Module text returns a factory function for creating a text wrapper.
-- The text wrapper provides a simple interface for wrapping and padding text
-- within a given width.
-- @module text
--- getFormatFn returns a format string factory function.
-- The function returned may take in an output line so it may construc... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c100000871.lua | 2 | 4091 | --Created and coded by Rising Phoenix
function c100000871.initial_effect(c)
c:SetUniqueOnField(1,0,100000871)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCountLimit(1,100000871)
e1:SetDescription(aux.Stringid(100000871,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_... | gpl-3.0 |
gfgtdf/wesnoth-old | data/ai/micro_ais/mai-defs/misc.lua | 6 | 1908 | function wesnoth.micro_ais.assassin(cfg)
local required_keys = { "[filter]", "[filter_second]" }
local optional_keys = { "[prefer]" }
local CA_parms = {
ai_id = 'mai_assassin',
{ ca_id = 'attack', location = 'ca_simple_attack.lua', score = 110001 },
{ ca_id = 'move', location = 'ca_assassin_move.lua', score = ... | gpl-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Walls/npcs/Shinchai-Tocchai.lua | 5 | 1052 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shinchai-Tocchai
-- Type: Moghouse Renter
-- @zone: 239
-- @pos: -220.551 -0.001 -116.916
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = ni... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c56540044.lua | 2 | 1378 | function c56540044.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c56540044.operation)
c:RegisterEffect(e1)
--Indes
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:Set... | gpl-3.0 |
djdduty/OnionRing | bin/main.lua | 2 | 1355 | print("Hello from Lua Global!")
frameCount = 0
frameTimer = 0
function onion.load()
print("This lua file contains every bound input function!")
onion.window.settitle("Lua, woohoo!")
end
function onion.update(deltatime)
frameTimer = frameTimer + deltatime
frameCount = frameCount + 1
--print ("upda... | mit |
Fir3element/tfs12 | data/chatchannels/scripts/advertising.lua | 48 | 1220 | function canJoin(player)
return player:getVocation():getId() ~= VOCATION_NONE or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR
end
local CHANNEL_ADVERTISING = 5
local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT)
muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_ADVERTISING)
muted:setPara... | gpl-2.0 |
ZACTELEGRAM1/TeleSeed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
farbod1423/farbod3 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
MAXrobotTelegram/teleseed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
gfgtdf/wesnoth-old | data/campaigns/World_Conquest/lua/campaign/enemy_themed.lua | 4 | 2234 | local _ = wesnoth.textdomain 'wesnoth-wc'
local on_event = wesnoth.require("on_event")
local strings = {
enemy_pet = _ "$name|'s pet"
}
-- in the later scenarios there is a small chance that a scenario will be themed for an enemy
-- which means in paticular changing the castle of the enemy accorign to the unit type ... | gpl-2.0 |
waytim/darkstar | scripts/zones/Port_Windurst/npcs/Pygmalion.lua | 13 | 1048 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pygmalion
-- Type: Standard NPC
-- @zone: 240
-- @pos 228.710 -7 93.314
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
----------------... | gpl-3.0 |
zorfmorf/loveprojects | colonycontrol/src/lib/hump/vector.lua | 28 | 5323 | --[[
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... | apache-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Yahse_Hunting_Grounds/Zone.lua | 3 | 1086 | -----------------------------------
--
-- Zone: Yahse Hunting Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yahse_Hunting_Grounds/TextIDs"] = nil;
require("scripts/zones/Yahse_Hunting_Grounds/TextIDs");
-----------------------------------
-- onIni... | gpl-3.0 |
waytim/darkstar | scripts/globals/spells/jubaku_ichi.lua | 27 | 1733 | -----------------------------------------
-- Spell: Jubaku: Ichi
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c83030003.lua | 2 | 2533 | --Carefree Teary
function c83030003.initial_effect(c)
c:SetUniqueOnField(1,0,83030003)
--Xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x833),3,2)
c:EnableReviveLimit()
--Immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetRange(L... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Selbina/npcs/Vobo.lua | 2 | 1340 | -----------------------------------
-- Area: Selbina
-- NPC: Vobo
-- Involved in Quest: Riding on the Clouds
-- @zone 248
-- @pos 37 -14 81
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
---------------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Port_Bastok/npcs/Sawyer.lua | 17 | 1551 | -----------------------------------
-- Area: Port Bastok
-- NPC: Sawyer
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
----------... | gpl-3.0 |
TienHP/Aquaria | game_scripts/_mods/aquariaeditortutorial/scripts/node_tileedit08.lua | 6 | 1963 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
waytim/darkstar | scripts/globals/items/dish_of_spaghetti_arrabbiata_+1.lua | 18 | 1754 | -----------------------------------------
-- ID: 5212
-- Item: dish_of_spaghetti_arrabbiata_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 15
-- Health Cap 150
-- Strength 5
-- Vitality 2
-- Intelligence -7
-- Attack % 22
-- Attack Cap 120
-- Store TP 5
-----------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c44559832.lua | 1 | 4808 | --Shen Long, Ascendant of the Upper Nirvana
function c44559832.initial_effect(c)
--fusion material
c:EnableReviveLimit()
--spsummon condition
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:R... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/cone_of_seraphs_kiss.lua | 18 | 1385 | -----------------------------------------
-- ID: 5556
-- Item: cone_of_seraphs_kiss
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- HP 15
-- MP % 16 (cap 85)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Monarch_Linn/bcnms/Ancient_Vows.lua | 2 | 2263 | -----------------------------------
-- Area: Monarch Linn
-- Name: Ancient Vows
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/missions");
-- After registering the BCNM via bcnmRegister(bcnmid)
function OnBcnmRegister(player,instance)
-- initialize timers if they don'... | gpl-3.0 |
X-Raym/REAPER-ReaScripts | Text Items and Item Notes/Creation/X-Raym_Create text items on first selected track from selected takes name.lua | 1 | 4028 | --[[
* ReaScript Name: Create text items on first selected track from selected takes name
* About: X-Raym_Create text items on first selected track from selected takes name.lua
* Instructions: Select items. Select a destination track. Execute the script. Text items will be colored depending on original take color, ... | gpl-3.0 |
narner/Soundpipe | modules/data/conv.lua | 2 | 1300 | sptbl["conv"] = {
files = {
module = "conv.c",
header = "conv.h",
example = "ex_conv.c",
},
func = {
create = "sp_conv_create",
destroy = "sp_conv_destroy",
init = "sp_conv_init",
compute = "sp_conv_compute",
},
params = {
mandatory ... | mit |
db260179/openwrt-bpi-r1-luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua | 78 | 2244 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
require("luci.sys.zoneinfo")
require("luci.tools.webadmin")
require("luci.util")
m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li... | apache-2.0 |
MinFu/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua | 78 | 2244 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
require("luci.sys.zoneinfo")
require("luci.tools.webadmin")
require("luci.util")
m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li... | apache-2.0 |
waytim/darkstar | scripts/commands/addkeyitem.lua | 8 | 1296 | ---------------------------------------------------------------------------------------------------
-- func: @addkeyitem <ID> <player>
-- desc: Adds a key item to the player.
---------------------------------------------------------------------------------------------------
require("scripts/globals/keyitems");
cmdpro... | gpl-3.0 |
LuaDist2/prosody | util/indexedbheap.lua | 3 | 3564 |
local setmetatable = setmetatable;
local math_floor = math.floor;
local t_remove = table.remove;
local function _heap_insert(self, item, sync, item2, index)
local pos = #self + 1;
while true do
local half_pos = math_floor(pos / 2);
if half_pos == 0 or item > self[half_pos] then break; end
self[pos] = self[hal... | mit |
X-Raym/REAPER-ReaScripts | Regions/X-Raym_Add all regions to render queue individually.lua | 1 | 1643 | --[[
* ReaScript Name: Add all regions to render queue individually
* Instructions: Set render to region matrix (you need to select one track to close the window). Run the action.
* Author: X-Raym
* Author URI: http://www.extremraym.com/
* Repository: GitHub > X-Raym > REAPER-ReaScripts
* Repository URI: https://... | gpl-3.0 |
CaptainPRICE/wire | lua/entities/gmod_wire_vehicle.lua | 9 | 2058 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Vehicle Controller"
ENT.WireDebugName = "Vehicle Controller"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS... | apache-2.0 |
MinFu/luci | modules/luci-base/luasrc/ltn12.lua | 84 | 8954 | --[[
LuaSocket 2.0.2 license
Copyright � 2004-2007 Diego Nehab
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, me... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c12310738.lua | 2 | 2648 | --Black Knight - Halberd
--lua script by SGJin
function c12310738.initial_effect(c)
--XYZ summon
aux.AddXyzProcedure(c,nil,5,2)
c:EnableReviveLimit()
--Position change (Sweeping Attack)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12310738,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetProperty(E... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Waters/npcs/Hariga-Origa.lua | 12 | 3708 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hariga-Origa
-- Starts & Finishes Quest: Glyph Hanger
-- Involved in Mission 2-1
-- @pos -62 -6 105 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c494476158.lua | 2 | 1343 | function c494476158.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(30042158,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CVAL_CHECK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_REMOVE)
e1:SetCost(c494476... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/serving_of_mont_blanc.lua | 18 | 1468 | -----------------------------------------
-- ID: 5557
-- Item: Serving of Mont Blanc
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +10
-- Intelligence +1
-- HP Recoverd while healing 1
-- MP Recovered while healing 1
-------------------------------------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Telepoint.lua | 13 | 1692 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Telepoint
-- @pos 100.000 35.150 340.000 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Tahrongi_... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Woods/npcs/Etsa_Rhuyuli.lua | 5 | 1043 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Etsa Rhuyuli
-- Type: Standard NPC
-- @zone: 241
-- @pos: 62.482 -8.499 -139.836
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Mhaura/npcs/Ripapa.lua | 12 | 5826 | -----------------------------------
-- Area: Mhaura
-- NPC: Ripapa
-- Starts and Finishes Quest: Trial by Lightning
-- @pos 29 -15 55 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/gl... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/serving_of_emperor_roe.lua | 18 | 1339 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c32887067.lua | 2 | 1828 | --Force Blader of the Divine Light
function c32887067.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(32887067,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HA... | gpl-3.0 |
waytim/darkstar | scripts/zones/Temenos/mobs/Enhanced_Dragon.lua | 26 | 1283 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Enhanced_Dragon
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c22769902.lua | 2 | 2797 | --Dreadnought Mark - 002 Desert Storm
function c22769902.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22769902,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetRange(LOCATION_HAN... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Cloister_of_Frost/bcnms/trial_by_ice.lua | 4 | 1836 | -----------------------------------
-- Area: Cloister of Frost
-- Name: Trial by Ice
-- @pos 558 0 596 203
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
r... | gpl-3.0 |
kikito/middleclass-specs | extras_Beholder.lua | 1 | 3388 | require('middleclass')
require('middleclass-extras')
context( 'Beholder', function()
context('When included by a class', function()
local MyClass = class('MyClass')
function MyClass:initialize()
self.counter = 0
end
function MyClass:count(increment)
self.counter = self.counter... | bsd-3-clause |
hacker44-h44/spammer | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
wanmaple/MWFrameworkForCocosLua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayerColor.lua | 10 | 1484 |
--------------------------------
-- @module LayerColor
-- @extend Layer,BlendProtocol
-- @parent_module cc
--------------------------------
-- change width and height in Points<br>
-- since v0.8
-- @function [parent=#LayerColor] changeWidthAndHeight
-- @param self
-- @param #float w
-- @param #float h
----... | apache-2.0 |
forcecore/OpenRA | mods/d2k/maps/harkonnen-02b/harkonnen02b.lua | 5 | 3953 | --[[
Copyright 2007-2017 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 |
LuaDist2/prosody | plugins/mod_websocket.lua | 2 | 9225 | -- Prosody IM
-- Copyright (C) 2012-2014 Florian Zeitz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local add_filter = require "util.filters".add_filter;
local sha1 = require "util.hashes".sha1;
local base64 = require "util.... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c888000020.lua | 2 | 4605 | --Thunder Conductor
function c888000020.initial_effect(c)
--dark synchro summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(c888000020.syncon)
e1:SetOperat... | gpl-3.0 |
saeqe/nod | plugins/location.lua | 93 | 1704 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
waytim/darkstar | scripts/zones/Temenos/mobs/Enhanced_Ahriman.lua | 26 | 1284 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Enhanced_Ahriman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------... | gpl-3.0 |
dmccuskey/dmc-sockets | examples/dmc-sockets-basic/dmc_corona/lib/dmc_lua/lua_patch.lua | 44 | 7239 | --====================================================================--
-- lua_patch.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby granted, free ... | mit |
dmccuskey/dmc-sockets | dmc_corona/lib/dmc_lua/lua_patch.lua | 44 | 7239 | --====================================================================--
-- lua_patch.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby granted, free ... | mit |
niegenug/wesnoth | data/ai/micro_ais/cas/ca_goto.lua | 26 | 9404 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local LS = wesnoth.require "lua/location_set.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local MAISD = wesnoth.require "ai/micro_ais/micro_a... | gpl-2.0 |
waytim/darkstar | scripts/globals/weaponskills/vorpal_thrust.lua | 11 | 1395 | -----------------------------------
-- Vorpal Thrust
-- Polearm weapon skill
-- Skill Level: 175
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: None
-- Mod... | gpl-3.0 |
waytim/darkstar | scripts/zones/Valkurm_Dunes/npcs/Stone_Monument.lua | 13 | 1273 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -311.299 -4.420 -138.878 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
wanmaple/MWFrameworkForCocosLua | frameworks/cocos2d-x/external/lua/luasocket/script/socket/url.lua | 31 | 11037 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
--------------------------------------------------------------... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c77777701.lua | 2 | 1975 | --Seafarer Renegade Jack
function c77777701.initial_effect(c)
--ToHand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(77777701,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
-- e3:SetCost(c77777701.c... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c59821055.lua | 2 | 8629 | --Idol Master of Chaos and Harmony Oozora Akari
function c59821055.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsCode,59821024),aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),true)
--pendulum summon
aux.EnablePendulumAttribute(c)
--spsumm... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills.lua | 2 | 20596 | --Contains all common weaponskill calculations including but not limited to:
-- fSTR
-- Alpha
-- Ratio -> cRatio
-- min/max cRatio
-- applications of fTP
-- applications of critical hits ('Critical hit rate varies with TP.')
-- applications of accuracy mods ('Accuracy varies with TP.')
-- applications of damage mods ('... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Northern_San_dOria/npcs/Rondipur.lua | 4 | 1050 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Rondipur
-- Type: Quest Giver
-- @zone: 231
-- @pos: -154.415 10.999 153.744
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;... | gpl-3.0 |
CaptainPRICE/wire | lua/wire/stools/thruster.lua | 9 | 5526 | WireToolSetup.setCategory( "Physics/Force" )
WireToolSetup.open( "thruster", "Thruster", "gmod_wire_thruster", nil, "Thrusters" )
if CLIENT then
language.Add( "tool.wire_thruster.name", "Thruster Tool (Wire)" )
language.Add( "tool.wire_thruster.desc", "Spawns a thruster for use with the wire system." )
language.Add... | apache-2.0 |
steve0511/resty-redis-cluster | lib/resty/rediscluster.lua | 1 | 28198 | local redis = require "resty.redis"
local resty_lock = require "resty.lock"
local xmodem = require "resty.xmodem"
local setmetatable = setmetatable
local tostring = tostring
local string = string
local type = type
local table = table
local ngx = ngx
local math = math
local rawget = rawget
local pairs = pairs
local unpa... | apache-2.0 |
TienHP/Aquaria | files/scripts/maps/map_mainarea.lua | 6 | 2063 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
thisishmed/butler | plugins/info.lua | 8 | 10997 |
do
local ali_ghoghnoos = 100577715 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, ... | gpl-2.0 |
CaptainPRICE/wire | lua/wire/stools/hudindicator.lua | 9 | 13782 | // Created by TheApathetic, so you know who to
// blame if something goes wrong (someone else :P)
WireToolSetup.setCategory( "Visuals/Indicators" )
WireToolSetup.open( "hudindicator", "Hud Indicator", "gmod_wire_hudindicator", nil, "Hud Indicators" )
if ( CLIENT ) then
language.Add( "Tool.wire_hudindicator.name", ... | apache-2.0 |
waytim/darkstar | scripts/globals/spells/cure_vi.lua | 26 | 3921 | -----------------------------------------
-- Spell: Cure VI
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic")... | gpl-3.0 |
waytim/darkstar | scripts/zones/Altar_Room/Zone.lua | 32 | 1558 | -----------------------------------
--
-- Zone: Altar_Room (152)
--
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Altar_Room/TextIDs");
-----------------------------------
--... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c19007860.lua | 2 | 4714 | --Mechquipped Angelic Drago
function c19007860.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,3,c19007860.ovfilter,aux.Stringid(19007860,0),2,c19007860.xyzop)
c:EnableReviveLimit()
--extra summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRa... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c83030001.lua | 2 | 3475 | --Carefree Queen
function c83030001.initial_effect(c)
c:SetUniqueOnField(1,0,83030001)
--Xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x833),3,2)
c:EnableReviveLimit()
--Sp Summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(83030001,0))
e1:SetCategory(CATEGORY_SPECIA... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Eastern_Altepa_Desert/Zone.lua | 3 | 1590 | -----------------------------------
--
-- Zone: Eastern_Altepa_Desert (114)
--
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");
require( "scripts/globals/icanheararainbow");
-------------------------------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Alzadaal_Undersea_Ruins/npcs/Runic_Portal.lua | 2 | 1526 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: Runic Portal
-- Arrapago Reef Teleporter Back to Aht Urgan Whitegate
-- @pos 15 -7 627 54
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.