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 |
|---|---|---|---|---|---|
jaambee/redis | 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 |
a-pavlov/redis | 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 |
Fenix-XI/Fenix | scripts/zones/Lower_Jeuno/npcs/Alrauverat.lua | 14 | 3677 | -----------------------------------
-- Area: Lower Jeuno
-- NPC:Alrauverat
-- @pos -101 0 -182 245
-------------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scrip... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Promyvion-Mea/IDs.lua | 12 | 2553 | -----------------------------------
-- Area: Promyvion-Mea
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.PROMYVION_MEA] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back a... | gpl-3.0 |
emender/emender | test/Test100Infos1FailLink.lua | 1 | 1955 | -- Test100Infos1FailLink.lua - check that graphs are rendered correctly.
-- Copyright (C) 2017 Pavel Tisnovsky
--
--
-- This file is part of Emender.
--
-- Emender 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 Foundat... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/weaponskills/rudras_storm.lua | 10 | 1927 | -----------------------------------
-- Rudra's Storm
-- Dagger weapon skill
-- Skill level: N/A
-- Deals triple damage and weighs target down (duration: 60s). Damage varies with TP.
-- Aligned with the Aqua Gorget, Snow Gorget & Shadow Gorget.
-- Aligned with the Aqua Belt, Snow Belt & Shadow Belt.
-- Element: None
-- ... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/geirskogul.lua | 1 | 1771 | -----------------------------------
-- Geirskogul
-- Polearm weapon skill
-- Skill Level: N/A
-- Gae Assail/Gungnir: Shock Spikes.
-- This weapon skill is only available with the stage 5 relic Polearm Gungnir, within Dynamis with the stage 4 Gae Assail, or by activating the latent effect on the Skogul Lance.
-- Aligned... | gpl-3.0 |
pizzotto/BolScripts | MrArticunoLaucher.lua | 23 | 3851 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
ungarscool1/HL2RP | hl2rp/gamemode/libraries/fn.lua | 3 | 7654 | /*---------------------------------------------------------------------------
Functional library
by FPtje Atheos
---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------
Function currying
Take a function with n para... | agpl-3.0 |
Fenix-XI/Fenix | scripts/globals/abilities/light_arts.lua | 7 | 1724 | -----------------------------------
-- Ability: Light Arts
-- Optimizes white magic capability while lowering black magic proficiency. Grants a bonus to divine, enhancing, enfeebling, and healing magic. Also grants access to Stratagems.
-- Obtained: Scholar Level 10
-- Recast Time: 1:00
-- Duration: 2:00:00
-----------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Kazham/npcs/Kyun_Magopiteh.lua | 15 | 1054 | -----------------------------------
-- Area: Kazham
-- NPC: Kyun Magopiteh
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/vortex.lua | 11 | 1053 | ---------------------------------------------------
-- Vortex
-- Creates a vortex that damages targets in an area of effect. Additional effect: Terror
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
---... | gpl-3.0 |
lnattrass/lsyncd | bin2carray.lua | 22 | 1259 | #!/usr/bin/lua
--============================================================================
-- bin2carray.lua
--
-- License: GPLv2 (see COPYING) or any later version
--
-- Authors: Axel Kittenberger <axkibe@gmail.com>
--
-- Transforms a binary file (the compiled lsyncd runner script) in a c array
-- so it can be inc... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/La_Vaule_[S]/mobs/Lobison.lua | 12 | 1690 | -----------------------------------
-- Area: La Vaule (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------------
... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/blast_arrow.lua | 9 | 1362 | -----------------------------------
-- Blast Arrow
-- Archery 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: STR:16% ; AGI:25%
-- 100%T... | gpl-3.0 |
oTibia/UnderLight-AK47 | data/npc/scripts/cityguard.lua | 2 | 2226 |
local target = 0
local prevTarget = 0
local maxChaseDistance = 20
local origPos = 0
local origDir = NORTH
local lastAttack = 0
local followTimeout = 10
local function isSkulled(cid)
local skullType = getPlayerSkullType(cid)
if(skullType >= 3) then
return true
end
return false
end
local function goToOrigPos()... | gpl-2.0 |
lecram/segno | fx.lua | 1 | 1692 | local fx = {}
local core = require "core"
local osc = require "osc"
local op = require "op"
local dl = require "dl"
-- Tremolo(input, frequency, {depth})
function fx.Tremolo(args)
setmetatable(args, {__index=function() return {out=0.5} end})
local input = args[1]
local frq = args[2]
local dpt... | mit |
Fenix-XI/Fenix | scripts/globals/items/silken_siesta.lua | 18 | 1238 | -----------------------------------------
-- ID: 5626
-- Item: Silken Siesta
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recoverd while healing 2
-- MP Recovered while healing 5
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/North_Gustaberg/npcs/Kuuwari-Aori_WW.lua | 13 | 3336 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Kuuwari-Aori, W.W.
-- Type: Outpost Conquest Guards
-- @pos -584.687 39.107 54.281 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/QuBia_Arena/TextIDs.lua | 15 | 1428 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Spire_of_Holla/bcnms/ancient_flames_beckon.lua | 9 | 2899 | -----------------------------------
-- Ancient Flames Beckon
-- Spire of Holla mission battlefield
-----------------------------------
local ID = require("scripts/zones/Spire_of_Holla/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/teleports")
require("scripts/globals/keyitems")
require("scripts/g... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/qm2.lua | 9 | 1389 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: qm2 (???)
-- Involved In Quest: 20 in Pirate Years
-- !pos 47.852 -7.808 403.391 114
-----------------------------------
local ID = require("scripts/zones/Eastern_Altepa_Desert/IDs")
require("scripts/globals/keyitems")
-------------------------... | gpl-3.0 |
8devices/carambola2-luci | applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | apache-2.0 |
stallboy/configgen | example/lua/cfg/_cfgs.lua | 1 | 1488 | local cfg = {}
cfg._mk = require "common.mkcfg"
local pre = cfg._mk.pretable
cfg.ai = {}
---@type cfg.ai.ai
cfg.ai.ai = pre("cfg.ai.ai")
---@type cfg.ai.ai_action
cfg.ai.ai_action = pre("cfg.ai.ai_action")
---@type cfg.ai.ai_condition
cfg.ai.ai_condition = pre("cfg.ai.ai_condition")
cfg.equip = {}
---@type cfg.equip.... | mit |
DarkstarProject/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Waoud.lua | 9 | 7704 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Waoud
-- Standard Info NPC
-- Involved in quests: An Empty Vessel (BLU flag), Beginnings (BLU AF1)
-- !pos 65 -6 -78 50
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/gl... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/bluemagic/seedspray.lua | 4 | 1921 | -----------------------------------------
-- Spell: Seedspray
-- Delivers a threefold attack. Additional effect: Weakens defense. Chance of effect varies with TP
-- Spell cost: 61 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: VIT+1
-- Level: 61
-- Casting Time: ... | gpl-3.0 |
tcatm/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
Fenix-XI/Fenix | scripts/zones/Quicksand_Caves/npcs/_5s1.lua | 13 | 1251 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos 21 0 -180 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs"... | gpl-3.0 |
wez2020/nwewew | plugins/Member_Manager.lua | 24 | 11556 | local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned =... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/RuAun_Gardens/npcs/relic.lua | 13 | 1848 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: <this space intentionally left blank>
-- @pos -241 -12 332 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
-----... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Runic_Portal.lua | 9 | 1308 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Runic Portal
-- Mamook Ja Teleporter Back to Aht Urgan Whitegate
-- !pos -211 -11 -818 52
-----------------------------------
local ID = require("scripts/zones/Bhaflau_Thickets/IDs")
-----------------------------------
require("scripts/globals/besie... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tateeya.lua | 7 | 2616 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tateeya
-- Automaton Attachment Unlocks
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
marcel-sch/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/overview.lua | 33 | 9247 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NXFS = require "nixio.fs"
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local HTTP = require "luci.htt... | apache-2.0 |
0BRWUEN0/BRWUEEN | plugins/lock_bot.lua | 1 | 2482 | --[[
--@BRWUEN
--@vip_api
--]]
local function isAntiBotEnabled (chatId)
local hash = 'bot:lock:'..chatId
local lock = redis:get(hash)
return lock
end
local function enableAntiBot (chatId)
local hash = 'bot:lock:'..chatId
redis:set(hash, true)
end
local function disableAntiBot (chatId)
local hash = 'bo... | gpl-2.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/shockwave.lua | 10 | 1454 | -----------------------------------
-- Shockwave
-- Great Sword weapon skill
-- Skill level: 150
-- Delivers an area of effect attack. Sleeps enemies. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: None
-- Modifiers: STR:30... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Windurst_Woods/npcs/Hae_Jakkya.lua | 13 | 1359 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Hae Jakkya
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--------... | gpl-3.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/fspectate/cl_init.lua | 1 | 14012 | local stopSpectating, startFreeRoam
local isSpectating = false
local specEnt
local thirdperson = true
local isRoaming = false
local roamPos -- the position when roaming free
local roamVelocity = Vector(0)
/*---------------------------------------------------------------------------
startHooks
FAdmin tab buttons
------... | agpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Buburimu_Peninsula/npcs/Bonbavour_RK.lua | 13 | 3337 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Bonbavour, R.K.
-- Outpost Conquest Guards
-- @pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conq... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Windurst_Waters/npcs/Serukoko.lua | 13 | 1055 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Serukoko
-- Type: Standard NPC
-- @zone: 238
-- @pos -54.916 -7.499 114.855
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------... | gpl-3.0 |
Giorox/AngelionOT-Repo | data/movements/scripts/alters/alterstpankrahmun.lua | 1 | 2503 | function onStepIn(cid, item, pos)
local ice = {x=32193, y=31419, z=2}
local earth = {x=32974, y=32224, z=7}
local fire = {x=32909, y=32338, z=15}
local energy = {x=33060, y=32711, z=5}
if getPlayerLookDir(cid) == 0 then
newdir = 2
newdir2 = 2
elseif getPlayerLookDir(cid) == 1 then
newdir = 3
ne... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Bastok_Markets/npcs/Zaira.lua | 17 | 1868 | -----------------------------------
-- Area: Batok Markets
-- NPC: Zaira
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zone... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Castle_Oztroja/npcs/_m72.lua | 13 | 2264 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m72 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- @pos -60 -72 -139 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
maikerumine/extreme_survival_mini | mods/protector/init.lua | 1 | 12940 | minetest.register_privilege("delprotect","Ignore player protection")
protector = {}
protector.mod = "redo"
protector.radius = (tonumber(minetest.setting_get("protector_radius")) or 3)
protector.drop = minetest.setting_getbool("protector_drop") or false
protector.hurt = (tonumber(minetest.setting_get("protector_hurt"))... | lgpl-2.1 |
DarkstarProject/darkstar | scripts/globals/items/pipira.lua | 11 | 1406 | -----------------------------------------
-- ID: 5787
-- Item: pipira
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Attack % 14.5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
------------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Maze_of_Shakhrami/Zone.lua | 11 | 1906 | -----------------------------------
--
-- Zone: Maze_of_Shakhrami (198)
--
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Maze_of_Shakhr... | gpl-3.0 |
ollie27/openwrt_packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
Fenix-XI/Fenix | scripts/zones/Meriphataud_Mountains/Zone.lua | 15 | 4569 | -----------------------------------
--
-- Zone: Meriphataud_Mountains (119)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountai... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/impact.lua | 12 | 3140 | -----------------------------------------
-- Spell: Impact
-- Deals dark damage to an enemy and
-- decreases all 7 base stats by 20%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
crunchuser/prosody-modules | mod_component_client/mod_component_client.lua | 31 | 8204 | --[[
mod_component_client.lua
This module turns Prosody hosts into components of other XMPP servers.
Config:
VirtualHost "component.example.com"
component_client = {
host = "localhost";
port = 5347;
secret = "hunter2";
}
]]
local socket = require "socket"
local logger = require "util.logger";
local sha... | mit |
DeepLearning4BioSeqText/Paper12-PlosOne-DeepProteinMultitaskTagging | modelShare/viterbi/Viterbi.lua | 2 | 1086 | local Viterbi, parent = torch.class('nn.Viterbi','nn.Module')
function Viterbi:__init(size)
parent.__init(self)
self.transProb = torch.Tensor(size,size)
self.startProb = torch.Tensor(size)
self.gradTransProb = torch.Tensor(size,size)
self.gradStartProb = torch.Tensor(size)
self.alpha = torch.Tensor(... | gpl-2.0 |
DarkstarProject/darkstar | scripts/zones/AlTaieu/npcs/qm2.lua | 12 | 1148 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Justice Spawn)
-- Allows players to spawn the Jailer of Justice by trading the Second Virtue, Deed of Moderation, and HQ Xzomit Organ to a ???.
-- !pos , -278 0 -463
-----------------------------------
local ID = require("scripts/zones/AlTaie... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rs.lua | 12 | 1094 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -60 -23 60 27
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
funct... | gpl-3.0 |
eugeneia/snabbswitch | lib/ljsyscall/syscall/osx/syscalls.lua | 18 | 1899 | -- OSX specific syscalls
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 abi = require "syscall.abi"
r... | apache-2.0 |
blackops97/boty.lua | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
DarkstarProject/darkstar | scripts/globals/spells/poison_ii.lua | 12 | 1441 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
function... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/RuLude_Gardens/npcs/Dabih_Jajalioh.lua | 12 | 1385 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Dabih Jajalioh
-- Standard Merchant NPC
-- Additional script for pereodical
-- goods needed.
-- Partitially implemented.
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Ardavans/DSR | mbwrap/games/config/game_config.lua | 1 | 14481 | if not g_opts then g_opts = {} end
g_opts.multigames = {}
-------------------
--some shared RangeOpts
--current min, current max, min max, max max, increment
local mapH = torch.Tensor{5,10,5,10,1}
local mapW = torch.Tensor{5,10,5,10,1}
local blockspct = torch.Tensor{0,.2,0,.2,.01}
local waterpct = torch.Tensor{0,.2,0,... | mit |
nehz/slick | core/IndexRecorder.lua | 1 | 1354 | local IndexRecorder = {}
function IndexRecorder.new(type)
return setmetatable({type = type}, IndexRecorder)
end
function IndexRecorder:__index(name)
if rawget(self, 1) then
table.insert(self, name)
return self
end
local info = {type = self.type, args = {}}
return setmetatable({['$info'] = info, na... | mit |
shirat74/sile | lua-libraries/std/optparse.lua | 6 | 22140 | --[=[--
Parse and process command line options.
local OptionParser = require "std.optparse"
local parser = OptionParser [[
any text VERSION
Additional lines of text to show when the --version
option is passed.
Several lines or paragraphs are permitted.
Usage: PROGNAME
Banne... | mit |
anshkumar/yugioh-glaze | assets/script/c64187086.lua | 9 | 1622 | --地縛神の復活
function c64187086.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c64187086.cost)
e1:SetTarget(c64187086.target)
e1:SetOperation(c64187086.acti... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c25290459.lua | 6 | 2028 | --レベルアップ!
function c25290459.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c25290459.cost)
e1:SetTarget(c25290459.target)
e1:SetOperation(c25290459.activate)
c:RegisterEffect(e1)
end
... | gpl-2.0 |
wvierber/hammerspoon | extensions/network/init.lua | 4 | 9882 | --- === hs.network ===
---
--- This module provides functions for inquiring about and monitoring changes to the network.
local USERDATA_TAG = "hs.network"
local module = {}
module.reachability = require(USERDATA_TAG..".reachability")
module.host = require(USERDATA_TAG..".host")
module.configuration... | mit |
anshkumar/yugioh-glaze | assets/script/c73625877.lua | 9 | 2014 | --タイム・エスケーパー
function c73625877.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73625877,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c7362... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c89258906.lua | 3 | 1424 | --BF-そよ風のブリーズ
function c89258906.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(89258906,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_HAND)
e1:SetCondition... | gpl-2.0 |
bshillingford/optim | lbfgs.lua | 5 | 9025 | --[[ An implementation of L-BFGS, heavily inspired by minFunc (Mark Schmidt)
This implementation of L-BFGS relies on a user-provided line
search function (state.lineSearch). If this function is not
provided, then a simple learningRate is used to produce fixed
size steps. Fixed size steps are much less costly than line... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c706925.lua | 3 | 2460 | --海皇の狙撃兵
function c706925.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(706925,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCondition(c706925.spcon)
e1:SetTarget(c706925.... | gpl-2.0 |
zwhfly/openwrt-luci | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c85255550.lua | 3 | 1252 | --異国の剣士
function c85255550.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(85255550,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_DAMAGE_STEP_END)
e1:SetCondition(c85255550.condition)
e1:SetOperation(c85255550.operation... | gpl-2.0 |
freifunk-gluon/luci | modules/admin-full/luasrc/controller/admin/index.lua | 79 | 1245 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
mod... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c85893201.lua | 3 | 1626 | --連鎖誘爆
function c85893201.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(85893201,0))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYP... | gpl-2.0 |
astog/cqui | Assets/UI/Panels/unitpanel.lua | 4 | 158744 | -- ===========================================================================
-- Unit Panel Screen
-- ===========================================================================
include( "InstanceManager" );
include( "SupportFunctions" );
include( "Colors" );
include( "CombatInfo" );
include( "PopupDialogSupport" );
... | mit |
anshkumar/yugioh-glaze | assets/script/c22419772.lua | 7 | 1372 | --ピクシーガーディアン
function c22419772.initial_effect(c)
--to deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22419772,0))
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c22419772.cost)
e1:SetTarget(c2... | gpl-2.0 |
Tiger66639/premake-core | src/base/premake.lua | 1 | 8674 | --
-- premake.lua
-- High-level helper functions for the project exporters.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
local p = premake
-- Store captured output text for later testing
local _captured
-- The string escaping function.
local _esc = function(v) return v end
-- The outpu... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c82003859.lua | 5 | 1034 | --通行税
function c82003859.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--attack cost
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_ATTACK_COST)
e2:SetRange(LOCATION_SZONE)
e2:Se... | gpl-2.0 |
hbomb79/DynaCode | src/Classes/Exceptions/ExceptionBase.lua | 2 | 2347 | local _
abstract class "ExceptionBase" {
exceptionOffset = 1;
levelOffset = 1;
title = "UNKNOWN_EXCEPTION";
subTitle = false;
message = nil;
level = 1;
raw = nil;
useMessageAsRaw = false;
stacktrace = "\nNo stacktrace has been generated\n"
}
function ExceptionBase:initialise( m,... | mit |
anshkumar/yugioh-glaze | assets/script/c71279983.lua | 3 | 2075 | --U.A.ドレッドノートダンカー
function c71279983.initial_effect(c)
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCountLimit(1,71279983)
e1:SetCondition(c71279983.spcon)
e1:SetOpera... | gpl-2.0 |
TurBoss/Zero-K-Infrastructure | Benchmarker/Benchmarks/games/ca-benchmark.sdd/LuaRules/main.lua | 12 | 2372 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file:
-- brief:
-- author: jK
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
--------------... | gpl-3.0 |
qq2588258/floweers | libs/scripting/lua/script/DrawPrimitives.lua | 57 | 12038 | local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = CCApplication:getInstance():getTargetPlatform()
loca... | mit |
qq2588258/floweers | Resources/luaScript/util/DrawPrimitives.lua | 57 | 12038 | local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = CCApplication:getInstance():getTargetPlatform()
loca... | mit |
rickyHong/nn_lib_torch | init.lua | 1 | 3268 | require('torch')
require('libnn')
include('ErrorMessages.lua')
include('Module.lua')
include('Container.lua')
include('Concat.lua')
include('Parallel.lua')
include('Sequential.lua')
include('DepthConcat.lua')
include('Linear.lua')
include('SparseLinear.lua')
include('Reshape.lua')
include('View.lua')
include('Select... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c18426196.lua | 3 | 2245 | --聖騎士ジャンヌ
function c18426196.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetCondition(c18426196.condtion)
e1:SetValue(-300)
c:RegisterEffect(e1)
--salvage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(18426196,0))
e1:Set... | gpl-2.0 |
iranianboy/iran-bot | 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 |
m13790115/evill | 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 |
anshkumar/yugioh-glaze | assets/script/c39439590.lua | 3 | 1078 | --サイバー・ダイナソー
function c39439590.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(39439590,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c3943... | gpl-2.0 |
beko123/DEV_VIP | plugins/on_off.lua | 12 | 1983 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | agpl-3.0 |
anshkumar/yugioh-glaze | assets/script/c46848859.lua | 3 | 2078 | --ネイビィロイド
function c46848859.initial_effect(c)
--Negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46848859,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMA... | gpl-2.0 |
adan830/UpAndAway | code/brains/goosebrain.lua | 2 | 1674 | BindGlobal()
local CFG = TheMod:GetConfig()
require "behaviours/wander"
require "behaviours/runaway"
require "behaviours/doaction"
require "behaviours/panic"
local GooseBrain = Class(Brain, function(self, inst)
Brain._ctor(self, inst)
end)
local function EatFoodAction(inst)
local target = nil
if inst.co... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c17086528.lua | 3 | 3748 | --相生の魔術師
function c17086528.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--rank
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATIO... | gpl-2.0 |
rickyHong/nn_lib_torch | Euclidean.lua | 1 | 5673 | local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module')
function Euclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- state
self.gradInput:resize(inputSize)
self.output:resize(o... | bsd-3-clause |
freifunk-gluon/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
anshkumar/yugioh-glaze | assets/script/c8275702.lua | 5 | 1203 | --宝玉の契約
function c8275702.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c8275702.sptg)
e1:SetOperation(c8275702.spop)
c:RegisterEffect(e1)
en... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c14344682.lua | 3 | 1051 | --サムライソード・バロン
function c14344682.initial_effect(c)
--pos change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14344682,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c14... | gpl-2.0 |
TurBoss/Zero-K-Infrastructure | Benchmarker/Benchmarks/games/path_test.sdd/Luaui/Widgets/cmd_path_test_creator.lua | 12 | 4474 | function widget:GetInfo()
return {
name = "Path test creator",
desc = "allows to easily create path test configs",
author = "BD",
license = "WTFPL",
layer = 0,
enabled = true
}
end
local TEST_PATH = "pathTests"
local mapModString = Game.mapName .. "-".. Game.modShortName .. " " .. ... | gpl-3.0 |
chenjiansnail/skynet | examples/watchdog.lua | 12 | 1173 | local skynet = require "skynet"
local netpack = require "netpack"
local CMD = {}
local SOCKET = {}
local gate
local agent = {}
function SOCKET.open(fd, addr)
skynet.error("New client from : " .. addr)
agent[fd] = skynet.newservice("agent")
skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog... | mit |
Dith3r/FrameworkBenchmarks | frameworks/Lua/openresty/app.lua | 25 | 2311 | local mysql = mysql
local encode = encode
local random = math.random
local min = math.min
local insert = table.insert
local sort = table.sort
local template = require'resty.template'
local ngx = ngx
local ngx_print = ngx.print
template.caching(false)
-- Compile template, disable cache, enable plain text view to skip f... | bsd-3-clause |
anshkumar/yugioh-glaze | assets/script/c97007933.lua | 3 | 2819 | --HSR魔剣ダーマ
function c97007933.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--pierce
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e1)
--damage
local e2=Effect.CreateEffect(c)
e2:SetDescr... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c36042004.lua | 9 | 1187 | --ベビケラサウルス
function c36042004.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(36042004,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondi... | gpl-2.0 |
anshkumar/yugioh-glaze | assets/script/c13026402.lua | 3 | 1292 | --トラップ処理班 Aチーム
function c13026402.initial_effect(c)
--Negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(13026402,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c13026402.condition)
e... | gpl-2.0 |
Ced-le-pingouin/microlua-sim | clp/mls/modules/wx/Font_Bitmap.lua | 2 | 26923 | -------------------------------------------------------------------------------
-- Micro Lua Font module simulation, based on wxWidgets.
--
-- @class module
-- @name clp.mls.modules.wx.Font_Bitmap
-- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com>
--------------------------------------------------------------------... | gpl-3.0 |
RockySeven3161/UB | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.