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 |
|---|---|---|---|---|---|
KayMD/Illarion-Content | monster/race_3_elf/id_33_priest.lua | 3 | 1256 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
duk3luk3/MoonGen | lua/include/filter_i40e.lua | 3 | 3538 | ---------------------------------
--- @file filter_i40e.lua
--- @brief Filter for I40E ...
--- @todo TODO docu
---------------------------------
local mod = {}
local dpdkc = require "dpdkc"
local device = require "device"
local ffi = require "ffi"
local dpdk = require "dpdk"
local dpdkc = require "dpdkc"
ffi.cde... | mit |
litnimax/luci | modules/base/luasrc/model/ipkg.lua | 82 | 5778 | --[[
LuCI - Lua Configuration Interface
(c) 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
(c) 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.apach... | apache-2.0 |
KayMD/Illarion-Content | item/id_3894_mystical_cracker.lua | 1 | 24532 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
pixeltailgames/gm-mediaplayer | lua/mediaplayer/init.lua | 1 | 1176 | if MediaPlayer then
-- TODO: compare versions?
if MediaPlayer.__refresh then
MediaPlayer.__refresh = nil
else
return -- MediaPlayer has already been registered
end
end
resource.AddSingleFile "materials/mediaplayer/ui/spritesheet2015-10-7.png"
resource.AddFile "resource/fonts/ClearSans-Medium.ttf"
AddCSLuaFile... | mit |
Mistranger/OpenRA | mods/cnc/maps/nod04b/nod04b.lua | 6 | 6385 | --[[
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 |
gajop/Zero-K | units/armflea.lua | 2 | 7319 | unitDef = {
unitname = [[armflea]],
name = [[Flea]],
description = [[Ultralight Scout Spider (Burrows)]],
acceleration = 0.7,
brakeRate = 0.7,
buildCostEnergy = 20,
buildCostMetal = 20,
buildPic = [[ARMFLEA.png]],
buildTime ... | gpl-2.0 |
KayMD/Illarion-Content | monster/race_112_flesh_dragon/id_1123_deathdragon.lua | 2 | 6732 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
flexiti/nodemcu-firmware | lua_examples/mcp23008/mcp23008_buttons.lua | 82 | 1801 | ---
-- @description Shows how to read 8 GPIO pins/buttons via I2C with the MCP23008 I/O expander.
-- Tested on NodeMCU 0.9.5 build 20150213.
-- @circuit
-- Connect GPIO0 of the ESP8266-01 module to the SCL pin of the MCP23008.
-- Connect GPIO2 of the ESP8266-01 module to the SDA pin of the MCP23008.
-- Use 3.3V fo... | mit |
nobie/sesame_fw | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 79 | 3091 | --[[
LuCI - Lua Configuration Interface
Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]... | gpl-2.0 |
N3X15/spacebuild | lua/autorun/client/cl_caf_autostart.lua | 1 | 23318 | local DEBUG = false -- SHUT UP
local gmod_version_required = 145;
if ( VERSION < gmod_version_required ) then
error("SB CORE: Your gmod is out of date: found version ", VERSION, "required ", gmod_version_required)
end
include("caf/core/shared/logging.lua")
if DEBUG then
CAFLog.level = CAFLOG_DEBUG
else
CAFLo... | apache-2.0 |
Sweet-kid/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
gajop/Zero-K | effects/lightning.lua | 8 | 17553 | -- lightningplosion
-- lightningplosion160AoE
-- lightningplosion_yellowbolts
-- zeusmuzzle
-- panther_spark
-- lightningplosion_bluebolts1
-- lightningplosion_stormbolt
-- zeusgroundflash
-- lightningplosion_smallbolts
return {
["lightningplosion"] = {
bluebolts1 = {
air = true,
clas... | gpl-2.0 |
Mutos/NAEV-StarsOfCall | dat/missions/dvaered/dv_antiflf02.lua | 11 | 14334 | --[[
-- This is the second mission in the anti-FLF Dvaered campaign. The player is part of a Dvaered plot to smoke out the FLF base.
-- stack variable flfbase_intro:
-- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv_antiflf02
-- 2 - The player has rescued the FLF ag... | gpl-3.0 |
casseveritt/premake | tests/base/test_os.lua | 9 | 3145 | --
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2011 Jason Perkins and the Premake project
--
T.os = { }
local suite = T.os
--
-- os.findlib() tests
--
function suite.findlib_FindSystemLib()
if os.is("windows") then
test.istrue(os.findl... | bsd-3-clause |
nobie/sesame_fw | feeds/luci/applications/luci-openvpn/dist/usr/lib/lua/luci/model/cbi/openvpn.lua | 65 | 3316 | --[[
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$
]]--
loc... | gpl-2.0 |
davidBelanger/nn | Reshape.lua | 42 | 1801 | local Reshape, parent = torch.class('nn.Reshape', 'nn.Module')
function Reshape:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
self.batchsize = torch.LongStorage()
if torch.type(arg[#arg]) == 'boolean' then
self.batchMode = arg[#arg]
table.remove(arg, #arg... | bsd-3-clause |
thomas-schultz/sdn-cert | src/tex/tabular.lua | 1 | 1139 | TexTable = {}
TexTable.__index = TexTable
function TexTable.create(spec, pos)
local self = setmetatable({}, TexTable)
self.header = {}
self.control = {}
self.data = {}
self:setPos(pos)
self:setSpec(spec)
return self
end
function TexTable:setPos(pos)
if (pos) then self.header.pos = "[" .. pos ..... | gpl-2.0 |
adel8268adelad/Bot-thebest | plugins/gps.lua | 1 | 1161 | do
function run(msg, matches)
local lat = matches[1]
local lon = matches[2]
local receiver = get_receiver(msg)
local zooms = {16, 18}
local urls = {}
for i = 1, #zooms do
local zoom = zooms[i]
local url = "http://maps.googleapis.com/maps/api/staticmap?zoom=" .. zoom .. "&size=600x300&maptype=roadm... | agpl-3.0 |
ElGoreLoco/Love2D-Testing | movement_test/main.lua | 1 | 3897 | function newObject(path, x, y, class)
local x = x or 0
local y = y or 0
local class = class or "static"
local object = {}
object.class = class
object.image = love.graphics.newImage(path)
if class == "static" then
object.position = {
x = love.graphics.getWidth()/2 + x,
... | mit |
grondo/lua-hostlist | tests/tests.lua | 2 | 8034 | --[[#######################################################################
#
# Unit tests for lua hostlist implementation
#
--#########################################################################
# Copyright (C) 2013, Lawrence Livermore National Security, LLC.
# Produced at Lawrence Livermore National Labor... | gpl-2.0 |
matinbot/botgram | libs/mimetype.lua | 40 | 2923 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
dansen/luacode | bin/res/lua/util/utf8.lua | 5 | 3025 | -- ABNF from RFC 3629
--
-- UTF8-octets = *( UTF8-char )
-- UTF8-char = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4
-- UTF8-1 = %x00-7F
-- UTF8-2 = %xC2-DF UTF8-tail
-- UTF8-3 = %xE0 %xA0-BF UTF8-tail / %xE1-EC 2( UTF8-tail ) /
-- %xED %x80-9F UTF8-tail / %xEE-EF 2( UTF8-tail )
-- UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / %xF1-F3 3... | mit |
danteinforno/wesnoth | data/ai/micro_ais/cas/ca_swarm_move.lua | 26 | 2504 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_swarm_move = {}
function ca_swarm_move:evaluation(ai, cfg)
local units = wesnoth.get_units { side = wesnoth.current.side }
for _,unit in ipairs(units) do
if (unit.moves > 0) then return cfg.ca_score e... | gpl-2.0 |
jzbontar/nn | WeightedEuclidean.lua | 43 | 8173 | local WeightedEuclidean, parent = torch.class('nn.WeightedEuclidean', 'nn.Module')
function WeightedEuclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- each template (output dim) has its own di... | bsd-3-clause |
artfullyContrived/wrk | deps/luajit/src/jit/v.lua | 88 | 5614 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
tst2005/luacheck | src/luacheck/options.lua | 5 | 8417 | local options = {}
local utils = require "luacheck.utils"
local stds = require "luacheck.stds"
local boolean = utils.has_type("boolean")
local array_of_strings = utils.array_of("string")
function options.split_std(std)
local parts = utils.split(std, "+")
if parts[1]:match("^%s*$") then
parts.add = true
... | mit |
ifoxhz/iFox | scripts/lua/if_stats_ndpi.lua | 3 | 2092 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "graph_utils"
interface.select(ifname)
ifstats = aggregateInterfaceStats(aggregateInterfaceStats(interface.getStats()))
format = _GET["format"]
if(format... | gpl-3.0 |
gajop/Zero-K | LuaUI/Fonts/FreeSansBold_14.lua | 25 | 33857 | -- $Id: FreeSansBold_14.lua 3171 2008-11-06 09:06:29Z det $
local fontSpecs = {
srcFile = [[FreeSansBold.ttf]],
family = [[FreeSans]],
style = [[Bold]],
yStep = 15,
height = 14,
xTexSize = 512,
yTexSize = 256,
outlineRadius = 2,
outlineWeight = 100,
}
local glyphs = {}
glyphs[32] = { --'... | gpl-2.0 |
Sweet-kid/Algorithm-Implementations | Depth_Limited_Search/Lua/Yonaba/dls.lua | 26 | 3110 | -- Generic Depth-Limited search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Depth-limited_search
-- Notes : this is a generic implementation of Depth-Limited search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... | mit |
KayMD/Illarion-Content | lte/gods_cooldowns.lua | 2 | 2076 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
Tarfand-pro/BDReborn | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
arrivu/hoodemo | lib/canvas/request_throttle/increment_bucket.lua | 43 | 1169 | local cache_key = KEYS[1]
local amount = tonumber(ARGV[1])
local current_time = tonumber(ARGV[2])
local outflow = tonumber(ARGV[3])
local maximum = tonumber(ARGV[4])
-- Our modified leaky bucket algorithm is explained in lib/canvas/request_throttle.rb
local leak = function(count, last_touched, current_time, outflow)
... | agpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/copper_frog.lua | 11 | 1130 | -----------------------------------------
-- ID: 4515
-- Item: copper_frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Windurst-Jeuno_Airship/IDs.lua | 12 | 1300 | -----------------------------------
-- Area: Windurst-Jeuno_Airship
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.WINDURST_JEUNO_AIRSHIP] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Heavens_Tower/Zone.lua | 8 | 2060 | -----------------------------------
--
-- Zone: Heavens_Tower
--
-----------------------------------
local ID = require("scripts/zones/Heavens_Tower/IDs")
require("scripts/globals/conquest")
require("scripts/globals/missions")
-----------------------------------
function onInitialize(zone)
zone:registerRegion(1, -... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Southern_San_dOria/npcs/Shilah.lua | 10 | 1362 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Shilah
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onTrade(... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Balgas_Dais/bcnms/saintly_invitation.lua | 9 | 1701 | -----------------------------------
-- Area: Horlais Peak
-- Name: Saintly Invitation
-- !pos 299 -123 345 146
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
--------------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/La_Theine_Plateau/npcs/Faurbellant.lua | 11 | 1311 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Faurbellant
-- Type: Quest NPC
-- Involved in Quest: Gates of Paradise
-- !pos 484 24 -89 102
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
local ID = require("scripts/zones/La_Theine_Pl... | gpl-3.0 |
fegimanam/uzrep | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
22333322/i4bot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Mount_Zhayolm/npcs/Waudeen.lua | 9 | 2359 | -----------------------------------
-- Area: Mount_Zhayolm
-- NPC: Waudeen
-- Type: Assault
-- !pos 673.882 -23.995 367.604 61
-----------------------------------
local ID = require("scripts/zones/Mount_Zhayolm/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/quest... | gpl-3.0 |
fgielow/devenserver | data/npc/scripts/lorietta.lua | 2 | 5009 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) ... | gpl-2.0 |
akbooer/openLuup | tests/luaunit.lua | 5 | 67213 | --[[
luaunit.lua
Description: A unit testing framework
Homepage: https://github.com/bluebird75/luaunit
Development by Philippe Fremy <phil@freehackers.org>
Based on initial work of Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
License: BSD License, see LICENSE.txt
Version: 3.0
]]--
local M={}
-- priva... | apache-2.0 |
dacrybabysuck/darkstar | scripts/zones/North_Gustaberg/npcs/Lyco_Sparkles_1.lua | 9 | 1087 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Lycopodium Teleport 1
-- !pos -258.186 -3.231 204.774 106
-----------------------------------
local ID = require("scripts/zones/North_Gustaberg/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, np... | gpl-3.0 |
pSyChOoOo/TeleSeed | .luarocks/share/lua/5.2/luarocks/build/builtin.lua | 3 | 10879 |
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules.
--module("luarocks.build.builtin", package.seeall)
local builtin = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local util = require("luarocks.util")
loc... | gpl-2.0 |
cjdelisle/cjdns | contrib/lua/test.lua | 40 | 2054 | cjdns = require "cjdns/init"
-- CONFIG
confpath = "/etc/cjdroute.conf"
-- SETUP
print("Using config file: " .. confpath)
conf = cjdns.ConfigFile.new(confpath)
ai = conf:makeInterface()
-- TESTS
function testInterface(iface)
local testip = "fc5d:baa5:61fc:6ffd:9554:67f0:e290:7535"
print("Can I ping the ... | gpl-3.0 |
andeandr100/Crumbled-World | Lua/Game/builder.lua | 1 | 37010 | require("Game/builderUpgrader.lua")
require("Game/builderFunctions.lua")
require("Game/mapInfo.lua")
require("NPC/state.lua")
--require("Game/autoBuilder.lua")
--this = BuildNode()
local buildCounter = 0
local readyToPlay = {}
local towerChangeState = 0
local towerBuildInfo = {}
local waveTime = 0
local curentWave = -1... | mit |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/memento_mori.lua | 12 | 1186 | -----------------------------------------
-- Spell: Memento Mori
-- Enhances magic attack
-- Spell cost: 46 MP
-- Monster Type: Undead
-- Spell Type: Magical (Ice)
-- Blue Magic Points: 4
-- Stat Bonus: INT+1
-- Level: 62
-- Casting Time: 6 seconds
-- Recast Time: 2 minutes
--
-- Combos: Magic Attack Bonus
------------... | gpl-3.0 |
avrem/ardupilot | libraries/AP_Scripting/examples/LED_matrix_image.lua | 27 | 12280 | --[[
Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate
the LED interface for WS2812 LEDs
--]]
--[[
for this demo we will use a single strip with 30 LEDs
--]]
local matrix_x = 7
local matrix_y = 7
-- matrix to convert from x y pos to location in the strip
local id = {}
-... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Cloister_of_Frost/bcnms/class_reunion.lua | 9 | 1093 | -----------------------------------
-- Area: Cloister of Tremors
-- BCNM: Class Reunion
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldTick(battlefield, tick)
dsp.battlefield.onBattlefieldTick(battlefield, tick)
end
function onB... | gpl-3.0 |
baishancloud/lua-acid | lib/test_chash.lua | 1 | 9889 | local chash = require('acid.chash')
local time = require('acid.time')
math.randomseed(ngx.now() * 1000)
function test.basic(t)
for _, nr_server, nr_vn, nr_choose, exp_err, desc in t:case_iter(4, {
{0, 0, 0, nil},
{0, 0, 1, 'ServerNotEnough'},
{1, 1, 1, nil ... | mit |
plenarius/nwnx2-linux | plugins/lua/scripts/script.lua | 7 | 5340 |
--NWNscript Addition and Adjustment
function DelayCommand(t, obj, action, args)
local scmd = add_token(action, args)
SetLocalFloat(obj,"relay_delay",t)
SetLocalString(obj,"relay_cmd",scmd)
return ExecuteScript("relay_delay",obj)
end
function AssignCommand(obj, action, args)
local scmd = add_token(... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/sandspin.lua | 11 | 1085 | ---------------------------------------------------
-- Sandspin
-- Deals earth damage to enemies within range. Additional Effect: Accuracy Down.
-- Area of Effect is centered around caster.
-- The Additional Effect: Accuracy Down may not always process.
-- Duration: Three minutes ?
-------------------------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/metallic_body.lua | 12 | 1412 | -----------------------------------------
-- Spell: Metallic Body
-- Absorbs an certain amount of damage from physical and magical attacks
-- Spell cost: 19 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 1
-- Stat Bonus: None
-- Level: 8
-- Casting Time: 7 seconds
-- Recast Time: 60 sec... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/effects/weakness.lua | 12 | 1132 | -----------------------------------
--
-- Weakness
--
-----------------------------------
require("scripts/globals/status")
function onEffectGain(target, effect)
--reduce HP and MP by the power amount. Add 100% slow
--NOTE: The power amount dictates the amount to REDUCE MAX VALUES BY. E.g. Power=75 means 'reduc... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Upper_Jeuno/npcs/Rouliette.lua | 11 | 1737 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rouliette
-- Starts and Finishes Quest: Candle-making
-- !pos -24 -2 11 244
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
... | gpl-3.0 |
dromozoa/dromozoa-utf8 | dromozoa/utf8/decode_table.lua | 1 | 2020 | -- Copyright (C) 2017 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-utf8.
--
-- dromozoa-utf8 is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-... | gpl-3.0 |
andeandr100/Crumbled-World | Lua/Projectile/ArrowMortar.lua | 1 | 7005 | require("Game/particleEffect.lua")
require("Game/targetSelector.lua")
--this = SceneNode()
ArrowMortar = {name="ArrowMortar"}
function ArrowMortar.new()
local self = {}
local movment = 0.0
local targetIndex = 0
local lastLocationOnTarget = Vec3()
local startPos = Vec3()
local currentPos
local state
... | mit |
funkring/gs5 | misc/freeswitch/scripts/dialplan/fax.lua | 2 | 7465 | -- Gemeinschaft 5 module: fax class
-- (c) AMOOMA GmbH 2012-2013
--
module(...,package.seeall)
FAX_SPOOL_DIRECTORY = '/var/spool/freeswitch/'
FAX_PARALLEL_MAX = 8;
Fax = {}
-- Create Fax object
function Fax.new(self, arg)
arg = arg or {}
object = arg.object or {}
setmetatable(object, self)
self.__index = se... | mit |
baishancloud/lua-acid | lib/acid/dbagent/upstream_util.lua | 1 | 3610 | local bisect = require('acid.bisect')
local upstream_conf = require('acid.dbagent.upstream_conf')
local tableutil = require('acid.tableutil')
local dbagent_conf = require('dbagent_conf')
local repr = tableutil.repr
local string_format = string.format
local table_insert = table.insert
local table_concat = table.concat
... | mit |
dacrybabysuck/darkstar | scripts/zones/Zeruhn_Mines/Zone.lua | 9 | 1820 | -----------------------------------
--
-- Zone: Zeruhn_Mines (172)
--
-----------------------------------
local ID = require("scripts/zones/Zeruhn_Mines/IDs")
require("scripts/globals/conquest")
require("scripts/globals/quests")
require("scripts/globals/helm")
require("scripts/globals/zone")
---------------------------... | gpl-3.0 |
skogler/GearHelper | libs/AceConsole-3.0/AceConsole-3.0.lua | 13 | 8589 | --- **AceConsole-3.0** provides registration facilities for slash commands.
-- You can register slash commands to your custom functions and use the `GetArgs` function to parse them
-- to your addons individual needs.
--
-- **AceConsole-3.0** can be embeded into your addon, either explicitly by calling AceConsole:Em... | mit |
fakechris/Atlas | tests/suite/base/t/bug_35669-test.lua | 4 | 2155 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
Squ34k3rZ/SamsBday | Resources/DeprecatedOpenglEnum.lua | 148 | 11934 | -- This is the DeprecatedEnum
DeprecatedClass = {} or DeprecatedClass
_G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT
_G.GL_LINE_WIDTH = gl.LINE_WIDTH
_G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA
_G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA
_G.GL_GREEN_BITS = gl.GREEN_BITS
_G.GL_STENCIL_REF = gl.STENCI... | mit |
dacrybabysuck/darkstar | scripts/zones/Temenos/npcs/Scanning_Device.lua | 10 | 1558 | -----------------------------------
-- Area: Temenos
-- NPC: Scanning_Device
-- !pos 586 0 66 37
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/abilities/pets/aerial_blast.lua | 11 | 1188 | ---------------------------------------------------
-- Aerial Blast
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/monstertpmoves")
---------------------------------------------------
f... | gpl-3.0 |
kikito/Algorithm-Implementations | Euclidean_algorithm/Lua/Yonaba/euclidian_test.lua | 27 | 1896 | -- Tests for euclidian.lua
local gcd = require 'euclidian'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local status ... | mit |
keviner2004/shoot-em-up | effects/PooledStarExplosion.lua | 1 | 5819 | local Effect = require("Effect")
local GameObject = require("GameObject")
local move = require("move")
local Sprite = require("Sprite")
local Pool = require("Pool")
local E = {}
local POOL_TAG = "StarExplosion2"
local logger = require("logger")
local TAG = "PooledStarExplosion"
E.create = function(options)
local e... | mit |
dacrybabysuck/darkstar | scripts/zones/Sacrarium/IDs.lua | 9 | 3245 | -----------------------------------
-- Area: Sacrarium
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.SACRARIUM] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot ob... | gpl-3.0 |
sowbug/nodemcu-firmware | lua_modules/ds3231/ds3231-web.lua | 84 | 1338 | require('ds3231')
port = 80
-- ESP-01 GPIO Mapping
gpio0, gpio2 = 3, 4
days = {
[1] = "Sunday",
[2] = "Monday",
[3] = "Tuesday",
[4] = "Wednesday",
[5] = "Thursday",
[6] = "Friday",
[7] = "Saturday"
}
months = {
[1] = "January",
[2] = "Febuary",
[3] = "March",
[4] = "Apri... | mit |
Flatlander57/TheImaginedOTClient | modules/game_textmessage/textmessage.lua | 2 | 5062 | MessageSettings = {
none = {},
consoleRed = { color = TextColors.red, consoleTab='Default' },
consoleOrange = { color = TextColors.orange, consoleTab='Default' },
consoleBlue = { color = TextColors.blue, consoleTab='Default' },
centerRed = { color = TextColors.red, consoleT... | mit |
funkring/gs5 | misc/freeswitch/scripts/event_manager.lua | 2 | 1352 | -- Gemeinschaft 5 event handler
-- (c) AMOOMA GmbH 2012-2013
--
-- Set logger
require "common.log"
local log = common.log.Log:new()
log.prefix = "#E# "
log:info('[event] EVENT_MANAGER_LOADER start');
require 'common.database'
local database = common.database.Database:new{ log = log }:connect();
if not database:conn... | mit |
cmingjian/skynet | lualib/skynet/socket.lua | 6 | 9294 | local driver = require "skynet.socketdriver"
local skynet = require "skynet"
local skynet_core = require "skynet.core"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for i... | mit |
shultays/bloodworks | game/resources/ultimates/big_laser/big_laser.lua | 1 | 1630 |
function BigLaser.init(gun)
gun.spreadAngle = 0.0
gun.crosshairDistance = 550.0
gun.data.maxRangeUniform = gun.laser:addUniformFloat("maxRange", 450.0)
gun.data.timeUniform = gun.laser:addUniformFloat("time", 0.0)
ShootTimer.initGun(gun, 0.05)
gun.data.shooting = -1.0
end
function BigLaser.onT... | gpl-3.0 |
varunparkhe/Algorithm-Implementations | Binary_Search/Lua/Yonaba/binary_search_test.lua | 53 | 1896 | -- Tests for binary_search.lua
local binary_search = require 'binary_search'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1... | mit |
birdbrainswagtrain/grid-sdk | src/engine/client/gui/debugoverlaypanel.lua | 1 | 1723 | --========= Copyright © 2013-2015, Planimeter, All rights reserved. ==========--
--
-- Purpose: Debug Overlay Panel class
--
--============================================================================--
class "debugoverlaypanel" ( gui.panel )
function debugoverlaypanel:debugoverlaypanel( parent )
gui.panel.panel(... | mit |
dacrybabysuck/darkstar | scripts/zones/Southern_San_dOria/npcs/Phamelise.lua | 11 | 1471 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Phamelise
-- Zulkheim Regional Merchant
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
require("scripts/global... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/abilities/choral_roll.lua | 12 | 2951 | -----------------------------------
-- Ability: Choral Roll
-- Decreases spell interruption rate for party members within area of effect
-- Optimal Job: Bard
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 26
-- Phantom Roll +1 Value: 4
--
-- Die Roll |No BRD |With BRD
-- -------- -------- -------
-- 1... | gpl-3.0 |
maxbannach/grazil | src/grazil/interface/matlab/MatlabInterface.lua | 1 | 1092 | -- imports
local Digraph = require 'grazil.model.Digraph'
local Vertex = require 'grazil.model.Vertex'
local Arc = require 'grazil.model.Arc'
local MatlabInterface = {}
MatlabInterface.__index = MatlabInterface
---
-- Constructor
--
function MatlabInterface.new()
self = {}
return setmetatable(self, Matlab... | gpl-3.0 |
baishancloud/lua-acid | lib/acid/sql_constructor.lua | 1 | 13944 | local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local to_str = strutil.to_str
local string_format = string.format
local table_concat = table.concat
local table_insert = table.insert
local set_quote_sql_str = ndk.set_var.set_quote_sql_str
local _M = {}
local _mt = {__index = _M}
... | mit |
severak/lunarender | lib/lua/lunarender/tiles.lua | 1 | 1776 | local tiles={}
local function num2deg(x, y, z)
local n = 2 ^ z
local lon_deg = x / n * 360.0 - 180.0
local lat_rad = math.atan(math.sinh(math.pi * (1 - 2 * y / n)))
local lat_deg = lat_rad * 180.0 / math.pi
return lon_deg, lat_deg
end
function tiles.generate(params)
local zoom, x, y, zoom_from, ... | mit |
shultays/bloodworks | game/resources/bonuses/homing/homing.lua | 1 | 2810 |
HomingOrb.homingOrbId = getGlobalUniqueId()
HomingOrb.homingOrbIdInitial = getGlobalUniqueId()
function HomingOrb.spawn(bonus, pos)
local monster = getClosestMonsterWithIgnoreId(pos, {HomingOrb.homingOrbIdInitial})
if monster ~= nil then
monster:addIgnoreId(HomingOrb.homingOrbIdInitial)
local ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/spells/break.lua | 12 | 1181 | -----------------------------------------
-- Spell: Break
-- Petrifies an enemy, preventing it from acting.
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(... | gpl-3.0 |
gsig/charades-algorithms | torch/models/vgg16flow.lua | 1 | 1284 | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- The Flow mod... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/zones/Port_Windurst/npcs/Sigismund.lua | 9 | 1885 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sigismund
-- Starts and Finishes Quest: To Catch a Falling Star
-- !pos -110 -10 82 240
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
r... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Ilrusi_Atoll/instances/extermination.lua | 12 | 2057 | -----------------------------------
--
-- Assault: Extermination
--
-----------------------------------
local ID = require("scripts/zones/Ilrusi_Atoll/IDs")
require("scripts/globals/instance")
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getInstance()
... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm5.lua | 9 | 1618 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm5 (???) (Tower 5)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- !pos -117.713 15.237 45.929 120
-----------------------------------
local ID = require("scripts/zones/Sauromugue_Champaign/IDs")
require("scripts/globals/npc_util")
requir... | gpl-3.0 |
akbooer/openLuup | openLuup/xml.lua | 1 | 27166 | local ABOUT = {
NAME = "openLuup.xml",
VERSION = "2021.04.23",
DESCRIPTION = "XML utilities (HTML, SVG) and DOM-style parser/serializer",
AUTHOR = "@akbooer",
COPYRIGHT = "(c) 2013-2021 AKBooer",
DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentation",
L... | apache-2.0 |
dacrybabysuck/darkstar | scripts/globals/items/slice_of_marinara_pizza_+1.lua | 11 | 1300 | -----------------------------------------
-- ID: 6212
-- Item: slice of marinara pizza +1
-- Food Effect: 60 minutes, all Races
-----------------------------------------
-- HP +25
-- Accuracy+11% (Max. 58)
-- Attack+21% (Max. 55)
-- "Undead Killer"+5
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Western_Adoulin/npcs/Ledericus.lua | 12 | 1258 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Ledericus
-- Type: Shop NPC
-- !pos 37 32 117 256
-----------------------------------
require("scripts/globals/shop");
local ID = require("scripts/zones/Western_Adoulin/IDs");
-----------------------------------
function onTrade(player,npc,trade)
en... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 9 | 1382 | -----------------------------------
-- Area: Temenos E T
-- Mob: Water Elemental
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobDeath(mob, player, isKiller)
local mobID = mob:getID();
local mobX = ... | gpl-3.0 |
ralucah/splay-daemon-lua5.2 | modules/splay/restricted_io.lua | 1 | 9217 | --[[
Splay ### v1.2 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the L... | gpl-3.0 |
fgielow/devenserver | data/npc/lib/npcsystem/npchandler.lua | 13 | 21971 | -- Advanced NPC System by Jiddo
if NpcHandler == nil then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet implemented
-- Currently applied tal... | gpl-2.0 |
dcourtois/premake-core | modules/vstudio/tests/vc200x/test_project.lua | 14 | 4173 | --
-- tests/actions/vstudio/vc200x/test_project.lua
-- Validate generation of the opening <VisualStudioProject> element.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vs200x_project")
local vc200x = p.vstudio.vc200x
--
-- Setup
--
local... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/globals/items/plate_of_coeurl_saute.lua | 11 | 1584 | -----------------------------------------
-- ID: 4548
-- Item: plate_of_coeurl_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
-- Stun Resist 4
-- HP recovered while h... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/foxfire.lua | 11 | 1266 | ---------------------------------------------
-- Foxfire
--
-- Description: Damage varies with TP. Additional effect: "Stun."
-- Type: Physical (Blunt)
-- RDM, THF, PLD, BST, BRD, RNG, NIN, and COR fomors).
--
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/... | gpl-3.0 |
jnhwkim/rnn | Sequencer.lua | 3 | 6688 | ------------------------------------------------------------------------
--[[ Sequencer ]]--
-- Encapsulates a Module.
-- Input is a sequence (a table) of tensors.
-- Output is a sequence (a table) of tensors of the same length.
-- Applies the module to each element in the sequence.
-- Handles both recurrent modules an... | bsd-3-clause |
Flatlander57/TheImaginedOTClient | modules/corelib/ui/uisplitter.lua | 3 | 2591 | -- @docclass
UISplitter = extends(UIWidget)
function UISplitter.create()
local splitter = UISplitter.internalCreate()
splitter:setFocusable(false)
splitter.relativeMargin = 'bottom'
return splitter
end
function UISplitter:onHoverChange(hovered)
-- Check if margin can be changed
local margin = (self.vertic... | mit |
AbolDalton/Abolbot | plugins/activeuser.lua | 7 | 11811 | local function checktodaygr(cb_extra, success, result)
local hash = ''
local thash=''
for k,user in pairs(result.members) do
thash = 'today:'..user.peer_id
if redis:get(thash) then
if redis:get(thash) < os.date("%x",os.time() + 16200) then
hash = 'utmsgst:'..user.peer_id..':'..cb_extra
redis:set(hash,0)
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.