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 |
|---|---|---|---|---|---|
imashkan/ABCYAGOP | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
anoidgit/Preference-Selection-with-Neural-Network | utils/Logger.lua | 2 | 3281 | --[[ Logger is a class used for maintaining logs in a log file.
--]]
local Logger = torch.class('Logger')
--[[ Construct a Logger object.
Parameters:
* `logFile` - Outputs logs to a file under this path instead of stdout. ['']
* `disableLogs` - If = true, output nothing. [false]
* `logLevel` - Outputs logs at this... | gpl-3.0 |
AndyBursh/Factorio-Stdlib | spec/area/position_spec.lua | 1 | 4703 | require 'spec/defines'
require 'stdlib/area/position'
describe('Position Spec', function()
it('should validate position construction', function()
assert.same({x = -4, y = 21}, Position.construct(-4, 21))
end)
it('should validate position copies', function()
local pos = { x = -4, y = 5 }
... | isc |
Anarchid/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 |
Neopallium/lua-pb | spec/helper.lua | 5 | 1140 | -- sudo luarocks install lpeg
-- sudo luarocks install struct
inspect = require 'spec.inspect'
telescope = require 'telescope'
local function compare_tables(t1, t2)
local ty1 = type(t1)
local ty2 = type(t2)
if ty1 ~= ty2 then return false end
-- non-table types can be directly compared
if ty1 ~= 'table' and... | mit |
Anarchid/Zero-K | effects/stumpy.lua | 25 | 5377 | -- stompollute
-- stumpmuzzle
-- stompshells
-- stompollute_smog
-- stompdust
return {
["stompollute"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 10,
ground = true,
water = true,
properties = {... | gpl-2.0 |
Janpot/fantastiq | lib/lua/addJob.lua | 1 | 1777 | local key_nextId,
key_index = unpack(KEYS)
local timestamp,
priority,
runAt = unpack(ARGV)
local jobDatas = {select(4, unpack(ARGV))}
timestamp = tonumber(timestamp)
runAt = tonumber(runAt)
priority = tonumber(priority)
local unique = fantastiq.getConfig('unique')
local jobKeys = {}
if unique then... | mit |
LightenPan/skynet-yule | service/sharedatad.lua | 23 | 2745 | local skynet = require "skynet"
local sharedata = require "sharedata.corelib"
local table = table
local NORET = {}
local pool = {}
local pool_count = {}
local objmap = {}
local function newobj(name, tbl)
assert(pool[name] == nil)
local cobj = sharedata.host.new(tbl)
sharedata.host.incref(cobj)
local v = { value =... | mit |
Mutos/SoC-Test-001 | dat/missions/empire/shipping/es02.lua | 4 | 7648 | --[[
Empire VIP Rescue
Author: bobbens
minor edits by Infiltrator
- Mission fixed to suit big systems (Anatolis, 11/02/2011)
Rescue a VIP stranded on a disabled ship in a system while FLF and Dvaered
are fighting.
Stages:
0) Go to sector.
1) Board ship and rescue VIP.
... | gpl-3.0 |
mansour2911/tigr-anti-spam | 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 |
bell07/minetest-smart_inventory | libs/cache.lua | 1 | 4508 | local filter = smart_inventory.filter
local cache = {}
cache.cgroups = {} -- cache groups
cache.itemgroups = {} -- raw item groups for recipe checks
cache.citems = {}
-----------------------------------------------------
-- Add an Item to the cache
-----------------------------------------------------
function cac... | lgpl-3.0 |
mohammad4569/matrix | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
satanevil/eski-creed | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Anarchid/Zero-K | LuaUI/Widgets/gui_chili_chatbubbles.lua | 8 | 16654 | function widget:GetInfo()
return {
name = "Chili Chat Bubbles",
desc = "Shows Chat bubbles",
author = "jK",
date = "2009 & 2010",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
end
include("Widgets/COFCTools/ExportUtilities.lua")
-------------... | gpl-2.0 |
Anarchid/Zero-K | LuaRules/Configs/StartBoxes/Vernal 3way 0.6.1.lua | 6 | 1347 | return {
[0] = {
boxes = {{
{2124, 665},
{2150, 671},
{2179, 718},
{2207, 747},
{2233, 788},
{2271, 834},
{2282, 868},
{2281, 899},
{2261, 917},
{2224, 922},
{2191, 927},
{2162, 941},
{2142, 957},
{2121, 968},
{2096, 958},
{2066, 938},
{2034, 904},
{1986, 858},
... | gpl-2.0 |
haste/oUF | elements/pvpclassificationindicator.lua | 3 | 3692 | --[[
# Element: PvPClassificationIndicator
Handles the visibility and updating of an indicator based on the unit's PvP classification.
## Widget
PvPClassificationIndicator - A `Texture` used to display PvP classification.
## Notes
This element updates by changing the texture.
## Options
.useAtlasSize - Makes the... | mit |
Anarchid/Zero-K | scripts/pw_techlab.lua | 8 | 2577 | include 'constants.lua'
local base = piece "base"
local wheel1 = piece "wheel1"
local wheel2 = piece "wheel2"
local slider = piece "slider"
local sliderturret = piece "sliderturret"
local armabase = piece "armabase"
local armbbase = piece "armbbase"
local armcbase = piece "armcbase"
local armdbase = piece "armdbase"
l... | gpl-2.0 |
wesnoth/wesnoth | data/ai/micro_ais/mai-defs/recruiting.lua | 4 | 1340 | local function handle_default_recruitment(cfg)
-- Also need to delete/add the default recruitment CA
if cfg.action == 'add' then
wesnoth.sides.delete_ai_component(cfg.side, "stage[main_loop].candidate_action[recruitment]")
elseif cfg.action == 'delete' then
-- We need to add the recruitment CA back in
-- This ... | gpl-2.0 |
Anarchid/Zero-K | gamedata/buildoptions.lua | 6 | 1135 | local buildOpts = {
[[staticmex]],
[[energysolar]],
[[energyfusion]],
[[energysingu]],
[[energywind]],
[[energygeo]],
[[staticstorage]],
[[energypylon]],
[[staticcon]],
[[staticrearm]],
[[factoryshield]],
[[factorycloak]],
[[factoryveh]],
[[factoryplane]],
[[factorygunship]],
[[factoryhover]],
[[factor... | gpl-2.0 |
erfan1292/1234 | plugins/lock-forward.lua | 18 | 1291 | do
local function pre_process(msg)
local hash = 'mate:'..msg.to.id
if redis:get(hash) and msg.fwd_from and not is_momod(msg) then
channel_kick_user('channel#id'..msg.to.id,'user#id'..msg.from.id, ok_cb, false)
return "forward has been locked"
end
return msg
end
... | gpl-2.0 |
alireza1998/supergroup | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
selfighter/cardpeek | dot_cardpeek_dir/scripts/calypso/c250n502.lua | 17 | 4335 | --
-- This file is part of Cardpeek, the smartcard reader utility.
--
-- Copyright 2009 by 'L1L1' and 2013-2014 by 'kalon33'
--
-- Cardpeek 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... | gpl-3.0 |
LORgames/premake-core | modules/vstudio/tests/cs2005/test_output_props.lua | 14 | 1371 | --
-- tests/actions/vstudio/cs2005/test_output_props.lua
-- Test the target output settings of a Visual Studio 2005+ C# project.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_output_props")
local dn2005 = p.vstudio.dotnetbase
local ... | bsd-3-clause |
Em30-tm-lua/team | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
AndyBursh/Factorio-Stdlib | stdlib/area/area.lua | 4 | 8419 | --- Area module
-- @module Area
require 'stdlib/core'
require 'stdlib/area/position'
Area = {}
--- Creates an area from the 2 positions p1 and p2
-- @param x1 x-position of left_top, first point
-- @param y1 y-position of left_top, first point
-- @param x2 x-position of right_bottom, second point
-- @param y2 y-posi... | isc |
imashkan/ABCYAGOP | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
delram/yago | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
Wiladams/lj2procfs | lj2procfs/string-util.lua | 2 | 3822 | --string-util.lua
local ffi = require("ffi")
local fun = require("lj2procfs.fun")
local floor = math.floor;
local F = {}
function F.startswith(s, prefix)
return string.find(s, prefix, 1, true) == 1
end
-- returns true if string 's' ends with string 'send'
function F.endswith(s, send)
return #s >= #send and strin... | mit |
helingping/Urho3D | Source/ThirdParty/LuaJIT/dynasm/dasm_arm64.lua | 33 | 34807 | ------------------------------------------------------------------------------
-- DynASM ARM64 module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _... | mit |
Em30-tm-lua/team | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
satanevil/eski-creed | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
Anarchid/Zero-K | scripts/cloakarty.lua | 4 | 4230 | include "constants.lua"
local base, waist, dish, torso, center, sidecenter, barrel, flare = piece ('base', 'waist', 'dish', 'torso', 'center', 'sidecenter', 'barrel', 'flare')
local thigh = {piece 'lthigh', piece 'rthigh'}
local knee = {piece 'lknee' , piece 'rknee' }
local shin = {piece 'lshin' , piece 'rshin' }
l... | gpl-2.0 |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/luaui/widgets/gui_persistent_build_spacing.lua | 1 | 1107 | function widget:GetInfo()
return {
name = "Persistent Build Spacing",
desc = "Recalls last build spacing set for each building and game [v2.0]",
author = "Niobium & DrHash",
date = "Sep 6, 2011",
license = "GNU GPL, v3 or later",
layer = 0,
enabled = true -- loa... | gpl-2.0 |
Anarchid/Zero-K | LuaRules/Gadgets/game_map_border.lua | 5 | 7068 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Anarchid/Zero-K | scripts/spidercrabe.lua | 6 | 11432 | include 'constants.lua'
include 'reliableStartMoving.lua'
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local ground = piece 'ground'
local turret = piece 'turret'
loc... | gpl-2.0 |
aJns/tililoggeri | parse_functions.lua | 1 | 3092 | local parse_functions = {}
local utils = require "pl.utils"
local stringx = require "pl.stringx"
--parse the file for transactions
function parse_functions.parse_file(instructions, filename, parsed_lines)
local file = io.open(filename, "r")
if not file then
print("Couldn't open ", filename)
ret... | gpl-3.0 |
Drauthius/monstrous-bosses | src/employee.lua | 1 | 9784 | --[[
Copyright (C) 2015 Albert Diserholt
This file is part of Monstrous Bosses.
Monstrous Bosses is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ve... | gpl-3.0 |
MrPolicy/HodTG | plugins/helplock.lua | 1 | 1877 |
do
function run(msg, matches)
if not is_momod(msg) then
return "Only For Moderators!"
end
return [[
📂دستورات قفل های تنضیمات📂
🔻مشاهده دستورات
🔹!help
🔸🔸🔸🔸🔸🔸🔸🔸🔸
🔻قفل لینک و لغو قفل
🔹!lock links
🔹!unlock links
🔻قفل ارسال شماره تماس و لغو قفل
🔹!lock contac... | gpl-2.0 |
wesnoth/wesnoth | data/ai/lua/ca_castle_switch.lua | 4 | 11110 | -------- Castle Switch CA --------------
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local M = wesnoth.map
local CS_leader_score
-- Note that CS_leader and CS_leader_target are also needed by the recruiting CA, so they must be stored in 'data'
local high_score = 195000
local low_score = 15000
local function g... | gpl-2.0 |
Anarchid/Zero-K | LuaRules/Utilities/json.lua | 8 | 15666 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public License (GP... | gpl-2.0 |
lxl1140989/dmsdk | feeds/luci/libs/px5g/lua/px5g/util.lua | 170 | 1148 | --[[
* px5g - Embedded x509 key and certificate generator based on PolarSSL
*
* Copyright (C) 2009 Steven Barth <steven@midlink.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License, version 2.1 as published by the Free ... | gpl-2.0 |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/units/unused/armscab.lua | 1 | 3186 | return {
armscab = {
acceleration = 0.01799999922514,
brakerate = 0.034000001847744,
buildcostenergy = 28000,
buildcostmetal = 1100,
buildpic = "ARMSCAB.DDS",
buildtime = 40000,
canmove = true,
category = "ALL TANK MOBILE WEAPON NOTSUB NOTSHIP NOTAIR NOTHOVER SURFACE",
corpse = "DEAD",
damagemodifi... | gpl-2.0 |
agilul/software-renderer-love2d | main.lua | 1 | 4177 | -- Copyright 2016 Yat Hin Wong
vector = require "vector"
matrix = require "matrix"
function love.load()
imgWidth, imgHeight = 600, 600
love.window.setMode(imgWidth, imgHeight)
screenCenter = vector(imgWidth/2, imgHeight/2)
love.mouse.setPosition(screenCenter.x, screenCenter.y)
love.mouse.setVisible(fal... | mit |
helingping/Urho3D | Source/Urho3D/LuaScript/pkgs/ToCppHook.lua | 9 | 7914 | --
-- Copyright (c) 2008-2017 the Urho3D project.
--
-- 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, m... | mit |
Anarchid/Zero-K | LuaUI/Widgets/gui_icon_sets.lua | 12 | 3482 | function widget:GetInfo() return {
name = "Icon Sets",
desc = "Manages alternate icon/buildpic sets.",
author = "Sprung",
license = "PD",
layer = 1,
enabled = true,
} end
options_path = 'Settings/Graphics/Unit Visibility/Radar Icons'
options_order = { 'coniconchassis', 'ships' }
options = {
... | gpl-2.0 |
Anarchid/Zero-K | units/factoryveh.lua | 4 | 3291 | return { factoryveh = {
unitname = [[factoryveh]],
name = [[Rover Assembly]],
description = [[Produces Rovers]],
acceleration = 0,
brakeRate = 0,
buildCostMetal = Shared.FACTORY_COST,
buildD... | gpl-2.0 |
roger-zhao/ardupilot-3.2 | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
PichotM/DarkRP | gamemode/modules/sleep/sv_sleep.lua | 5 | 7842 | -- very old sleep module
local KnockoutTime = 5
local function ResetKnockouts(player)
player.SleepRagdoll = nil
player.KnockoutTimer = 0
end
hook.Add("PlayerSpawn", "Knockout", ResetKnockouts)
local function stopSleep(ply)
if ply.Sleeping then
DarkRP.toggleSleep(ply, "force")
end
end
local fu... | mit |
iamgreaser/iceball | pkg/base/ent/tool_marker.lua | 4 | 4292 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
LanceJenkinZA/prosody-modules | mod_broadcast/mod_broadcast.lua | 32 | 1043 | local is_admin = require "core.usermanager".is_admin;
local allowed_senders = module:get_option_set("broadcast_senders", {});
local from_address = module:get_option_string("broadcast_from");
local jid_bare = require "util.jid".bare;
function send_to_online(message)
local c = 0;
for hostname, host_session in pairs(h... | mit |
Anarchid/Zero-K | LuaUI/Widgets/cmd_area_attack_tweak.lua | 5 | 10529 | function widget:GetInfo()
return {
name = "Area Attack Tweak",
desc = "CTRL+Attack splits targets. AA automatically drops ground targets.",
author = "msafwan",
date = "May 22, 2012",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?... | gpl-2.0 |
Mutos/SoC-Test-001 | dat/factions/spawn/frontier.lua | 4 | 1786 | include("dat/factions/spawn/common.lua")
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < 0.5 then
scom.addPilot( pilots, "Frontier Lancelot", 30 );
elseif r < 0.8 then
scom.addPilot( pilots, "Frontier Hyena", 20 );
scom... | gpl-3.0 |
alireza1998/supergroup | bot/bot.lua | 1 | 6651 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
halolpd/vlc | share/lua/playlist/france2.lua | 113 | 2115 | --[[
$Id$
Copyright © 2008 the VideoLAN team
Authors: Antoine Cellerier <dionoea at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at ... | gpl-2.0 |
nnesse/b2l-tools | lgi/tests/gobject.lua | 2 | 9233 | --[[--------------------------------------------------------------------------
LGI testsuite, GObject.Object test suite.
Copyright (c) 2010, 2011 Pavel Holejsovsky
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
--]]----------------------------------------------------------... | gpl-2.0 |
AndyBursh/Factorio-Stdlib | spec/area/tile_spec.lua | 1 | 3115 | require 'spec/defines'
require 'stdlib/area/tile'
describe('Tile Spec', function()
it('should give the correct tile coordinates for a position', function()
assert.same(0, Tile.from_position({0, 34}).x)
assert.same(34, Tile.from_position({0, 34}).y)
assert.same(-67, Tile.from_position({-66.... | isc |
Hello23-Ygopro/ygopro-duel-masters | expansions/script/c24002017.lua | 1 | 1171 | --King Nautilus
local dm=require "expansions.utility_dmtcg"
local scard,sid=dm.GetID()
function scard.initial_effect(c)
dm.EnableCreatureAttribute(c)
--double breaker
dm.EnableBreaker(c,DM_ABILITY_DOUBLE_BREAKER)
--cannot be blocked
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(DM_ABIL... | gpl-3.0 |
LanceJenkinZA/prosody-modules | mod_statistics/top.lua | 32 | 6810 | module("prosodytop", package.seeall);
local array = require "util.array";
local it = require "util.iterators";
local curses = require "curses";
local stats = require "stats".stats;
local time = require "socket".gettime;
local sessions_idle_after = 60;
local stanza_names = {"message", "presence", "iq"};
local top = {... | mit |
iamgreaser/iceball | pkg/gm/portalgun/gun_portal.lua | 1 | 7684 | --[[
This file is derived from code from Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any ... | gpl-3.0 |
Anarchid/Zero-K | LuaRules/Gadgets/cmd_transfer_unit.lua | 13 | 1909 | function gadget:GetInfo()
return {
name = "Command Transfer Unit",
desc = "Adds a command to transfer units between teams.",
author = "GoogleFrog",
date = "8 September 2017",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true,
}
end
include("LuaRules/Configs/customcmds.h.lua")
if g... | gpl-2.0 |
fegimanam/LNT | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
NUTIEisBADYT/NUTIEisBADYTS-PD2-Modpack | Low Violence Mode/lvm.lua | 1 | 1148 | if RequiredScript == "lib/managers/enemymanager" then
EnemyManager._MAX_NR_CORPSES = 0
EnemyManager.MAX_MAGAZINES = 0
local old_init = EnemyManager.init
function EnemyManager:init(...)
old_init(self, ...)
self._corpse_disposal_upd_interval = 0
self._shield_disposal_upd_interval = 0
self._shield_disposal_lif... | mit |
alireza1998/supergroup | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
mohammad4569/matrix | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
delram/yago | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
mamaddeveloper/DeveloperMMD_bot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
Anarchid/Zero-K | gamedata/weapondefs_post.lua | 5 | 14277 | -- $Id: weapondefs_post.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: weapondefs_post.lua
-- brief: weaponDef post processing
-- author: Dave Rodge... | gpl-2.0 |
LuaDist2/ldoc | tests/styles/priority_queue.lua | 7 | 2392 | --------------------------------------------------------------------------------
--- Queue of objects sorted by priority.
-- @module lua-nucleo.priority_queue
-- This file is a part of lua-nucleo library. Note that if you wish to spread
-- the description after tags, then invoke with `not_luadoc=true`.
-- The flags he... | mit |
Anarchid/Zero-K | LuaUI/Widgets/unit_dynamic_avoidance_ex.lua | 6 | 129695 |
function widget:GetInfo()
return {
name = "Dynamic Avoidance System",
desc = "Avoidance AI behaviour for constructors, cloakies, ground-combat units and gunships.\n\nNote: Customize the settings by Space+Click on unit-state icons.",
author = "msafwan (based on articles by Siome Goldenstein, ... | gpl-2.0 |
MTDdk/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 |
The-HalcyonDays/darkstar | scripts/zones/Castle_Oztroja/npcs/_47u.lua | 17 | 1254 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47u (Handle)
-- Notes: Opens door _474 from behind
-- @pos -60 24 -77 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Song_Runes.lua | 34 | 1922 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Song Runes
-- Finishes Quest: The Old Monument
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
r... | gpl-3.0 |
otservme/global1053 | data/movements/scripts/the queen of the banshees quest/theSecondSealPearl.lua | 2 | 1157 | local function doCheckPearls(pearlPos, itemid)
local Tile = Position(pearlPos):getTile()
if Tile then
local thing = Tile:getItemById(itemid)
if thing and thing:isItem() then
thing:remove()
Position(pearlPos):sendMagicEffect(CONST_ME_MAGIC_RED)
return true
else
return false
end
end
end
local conf... | gpl-2.0 |
The-HalcyonDays/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_GK.lua | 27 | 1373 | -----------------------------------
-- Area: LaLoff Amphitheater
-- NPC: Ark Angel GK
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-----------------------------------
-- TODO: Allegedly has a 12 hp/sec regen. Determine if true, and add to onMobInitialize if so.... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/AlTaieu/npcs/Auroral_Updraft.lua | 9 | 1769 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Auroral Updraft
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
-----------------------------------... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Nashmau/npcs/Wata_Khamazom.lua | 34 | 1438 | -----------------------------------
-- Area: Nashmau
-- NPC: Wata Khamazom
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
-----... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/spells/curaga.lua | 13 | 1210 | -----------------------------------------
-- Spell: Curaga
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
... | gpl-3.0 |
SkotisVarvikas/TES3MP-Stuffs | VampiresAndWerewolves/VampiresAndWerewolves.lua | 1 | 9167 | require("color")
Methods = {}
local vampirismCostItemId = "gold_001" -- ID of the item
local vampirismCostCureItemId = "" -- ID of the cure item
local vampirismCostCount = "100000" -- amount of the item
local vampirismCostCureCount = "" -- amount of the cure item
local va... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_San_dOria/npcs/Laucimercen.lua | 36 | 1377 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Laucimercen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/T... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm4.lua | 8 | 1475 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: ???
-- Involved in Mission: Bastok 6-2
-- @pos 171 0 -25 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
requi... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/abilities/corsairs_roll.lua | 11 | 2168 | -----------------------------------
-- Ability: Corsair's Roll
-- Increases the amount of experience points earned by party members within area of effect
-- Optimal Job: Corsair
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 5
--
-- Die Roll |Exp Bonus%
-- -------- -----------
-- 1 |10%
--... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/globals/spells/sleep_ii.lua | 11 | 1077 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,tar... | gpl-3.0 |
mjanicek/rembulan | rembulan-tests/src/test/resources/benchmarksgame/nbody.lua-2.lua | 4 | 3439 | -- The Computer Language Benchmarks Game
-- http://benchmarksgame.alioth.debian.org/
-- contributed by Mike Pall
-- modified by Geoff Leyland
local sqrt = math.sqrt
local PI = 3.141592653589793
local SOLAR_MASS = 4 * PI * PI
local DAYS_PER_YEAR = 365.24
local bodies = {
{ -- Sun
x = 0,
y = 0,
z = 0,
... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/globals/items/inferno_sword.lua | 16 | 1030 | -----------------------------------------
-- ID: 16594
-- Item: Inferno Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_San_dOria/npcs/Diraulate.lua | 36 | 1375 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Diraulate
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Tex... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/Grounds_Tome.lua | 34 | 1144 | -----------------------------------
-- Area: Shrine of Ru'Avitau
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onT... | gpl-3.0 |
godly-devotion/Baka-MPlayer-old | Baka MPlayer/bin/Debug/libquvi-scripts/0.9/media/guardian.lua | 3 | 2964 | -- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | gpl-2.0 |
rrpgfirecast/firecast | Plugins/Sheets/Ficha L5R 4e/output/rdkObjs/templateArmas.lfm.lua | 1 | 13571 | require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_templateArmas()
local obj = GUI.fromHandle(_obj... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua | 12 | 2354 | -----------------------------------
-- 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 |
The-HalcyonDays/darkstar | scripts/zones/Mhaura/npcs/Panoru-Kanoru.lua | 34 | 1081 | ----------------------------------
-- Area: Mhaura
-- NPC: Panoru-Kanoru
-- Type: Item Deliverer
-- @pos 5.241 -4.035 93.891 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
-------... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/PsoXja/npcs/_092.lua | 8 | 1608 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _092 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
APItools/monitor | lua/controllers/api_docs_controller.lua | 2 | 1588 | local http = require 'http'
local h = require 'controller_helpers'
local inspect = require 'inspect'
local m = require 'model_helpers'
local Service = require 'models.service'
local ngxex = require 'ngxex'
local get_code_from_host = function(code)
return string.match(code, "^https?://(.... | mit |
The-HalcyonDays/darkstar | scripts/zones/Cape_Teriggan/mobs/Tegmine.lua | 20 | 1982 | ----------------------------------
-- Area: Cape Teriggan
-- NM: Tegmine
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
... | gpl-3.0 |
rrpgfirecast/firecast | Plugins/Sheets/Ficha Shadowrun 5E/output/rdkObjs/Shadowrun5E/06.Powers.Spells.lfm.lua | 1 | 6324 | require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmSpells()
local obj = GUI.fromHandle(_obj_newObject("fo... | apache-2.0 |
The-HalcyonDays/darkstar | scripts/zones/Port_Bastok/npcs/Dulsie.lua | 17 | 1326 | -----------------------------------
-- Area: Port Bastok
-- NPC: Dulsie
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings");
require("scripts/zones/... | gpl-3.0 |
The-HalcyonDays/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Decarabia.lua | 19 | 1255 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Marquis Decarabia
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
fun... | gpl-3.0 |
lovetoys/preset | src/conf.lua | 1 | 1487 |
function love.conf(t)
t.title = "game" -- The title of the window the game is in (string)
t.author = "" -- The author of the game (string)
t.url = "" -- The website of the game (string)
t.identity = nil -- The name of the save directory (string)
t.version = ... | mit |
The-HalcyonDays/darkstar | scripts/zones/Temenos/mobs/Enhanced_Ahriman.lua | 17 | 1287 | -----------------------------------
-- 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 |
The-HalcyonDays/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 23 | 3760 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
rrpgfirecast/firecast | Plugins/Sheets/Gerenciador de Campanha/output/rdkObjs/GerenciadorDeCampanha/02.npcs.lfm.lua | 2 | 7686 | require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmGerenciadorNPCs()
local obj = GUI.fromHandle(_obj_newO... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.