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
lsmoura/dtb
inc/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua
1
9623
local Type, Version = "MultiLineEditBox", 24 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end -- Lua APIs local pairs = pairs -- WoW APIs local GetCursorInfo, GetSpellInfo, ClearCursor = GetCursorInfo, GetSpellInfo, ClearCu...
unlicense
NogsIoT/Nogs-IDE
Templates/Projects/Default/color.lua
1
1494
--[[ * Color utils * * Copyright (C) Nogs GmbH, Andre Riesberg * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later ...
gpl-2.0
fiskio/lstm-char-cnn
util/LookupTableOneHot.lua
6
1035
local LookupTableOneHot, parent = torch.class('nn.LookupTableOneHot', 'nn.Module') function LookupTableOneHot:__init(input_size) parent.__init(self) self.eye = torch.eye(input_size) self.output = torch.Tensor() end function LookupTableOneHot:updateOutput(input) -- make sure input is a contiguous torch.LongTen...
mit
chewi/Aquaria
files/scripts/entities/vine.lua
5
2527
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
joehanchoi/hammerspoon
extensions/layout/init.lua
7
10183
--- === hs.layout === --- --- Window layout manager --- --- This extension allows you to trigger window placement/sizing to a number of windows at once local layout = {} local geometry = require("hs.geometry") local fnutils = require("hs.fnutils") local screen = require("hs.screen") local window = require("hs.window")...
mit
tehran980/tele_HSN
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
aqasaeed/botz
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
tkdrob/Battle-Tag
Data/Script/Lua/Classes/UTActivity.State.Bytecode.lua
1
8889
--[[-------------------------------------------------------------------------- -- -- File: UTActivity.State.Bytecode.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 27, 2010 -- ----------------------------...
mit
eagle14/kia14
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
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/scripts/oberdiek/oberdiek.magicnum.lua
6
5306
-- -- This is file `oberdiek.magicnum.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- magicnum.dtx (with options: `lua') -- -- This is a generated file. -- -- Project: magicnum -- Version: 2011/04/10 v1.4 -- -- Copyright (C) 2007, 2009-2011 by -- Heiko Obe...
mit
shahabsaf1/tg
bot/bot.lua
1
6691
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
dunn/ntopng
scripts/lua/modules/flow_utils.lua
8
38550
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "template" -- http://www.itu.int/itudoc/itu-t/ob-lists/icc/e212_685.pdf local mobile_country_code = { ["202"] = "Greece", ["204"] = "Netherlands (Kingdom of the)", ["206"] = "...
gpl-3.0
aspiraboo/kappa
vc14/data/lib/core/player.lua
14
2590
local foodCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) function Player.feed(self, food) local condition = self:getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) if condition then condition:setTicks(condition:getTicks() + (food * 1000)) else local vocation = self:getVocation() if ...
gpl-2.0
adonaac/yaoui
yaoui/FlatTextinput.lua
4
1446
local yui_path = (...):match('(.-)[^%.]+$') local Object = require(yui_path .. 'UI.classic.classic') local FlatTextinput = Object:extend('FlatTextinput') function FlatTextinput:new(yui, settings) self.yui = yui self.x, self.y = 0, 0 self.name = settings.name self.size = settings.size or 20 self.fon...
mit
resistor58/deaths-gmod-server
NPC_Control2/lua/weapons/gmod_tool/stools/npc_relations.lua
1
4221
include("shared.lua") selected_npcs_relations = {} TOOL.Category = "NPC Control 2" TOOL.Name = "NPC Relations" TOOL.Command = nil TOOL.ConfigName = "" TOOL.ClientConVar["newdisp"] = "1" //TOOL.ClientConVar["doface"] = "1" TOOL.ClientConVar["priority"] = "10" TOOL.ClientConVar["viceversa"] = "1" if (CL...
gpl-3.0
dunn/ntopng
scripts/lua/hosts_comparison.lua
11
5679
-- -- (C) 2014-15-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "graph_utils" page = _GET["page"] hosts_ip = _GET["hosts"] -- Default values if(page == nil) then page = "overview" end active_traffic =...
gpl-3.0
mahdib9/mahdi
plugins/banhammer.lua
1085
11557
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
aqasaeed/botz
plugins/banhammer.lua
1085
11557
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
theonlywild/erfan
plugins/banhammer.lua
1085
11557
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
chewi/Aquaria
game_scripts/_mods/jukebox/scripts/node_jukebox-quit.lua
6
1847
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
Fir3element/tfs11
data/globalevents/scripts/startup.lua
21
2222
function onStartup() db.query("TRUNCATE TABLE `players_online`") db.asyncQuery("DELETE FROM `guild_wars` WHERE `status` = 0") db.asyncQuery("DELETE FROM `players` WHERE `deletion` != 0 AND `deletion` < " .. os.time()) db.asyncQuery("DELETE FROM `ip_bans` WHERE `expires_at` != 0 AND `expires_at` <= " .. os.time()) ...
gpl-2.0
MaddyRogier/ShuffleCards
main.lua
1
3539
--[[---------------------------------- Shuffle Deck of Cards Designed on iPhone 6 Maddy Rogier ----------------------------------]]-- --[[---------------------------------- function - card design ----------------------------------]]-- red = {.541,0,.051} black = {.055,.055,.055} suitFiles...
mit
snogglethorpe/snogray
lua-util/string.lua
1
3071
-- string.lua -- Miscellaneous string functions -- -- Copyright (C) 2012, 2013 Miles Bader <miles@gnu.org> -- -- This source code 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, or (at --...
gpl-3.0
Nottinghster/OTServ_SVN-0.6.4
src/data/actions/scripts/doors/gateofexp_closed.lua
4
1446
-- ActionIDs: -- 1001~1999: Level doors(level is actionID-1000) -- 2001~2008: Vocation doors(voc is ActionID-2000. 1:Sorcerer, 2:Druid, 3:Paladin, 4:Knight, 5:MS, 6:ED, 7:RP, 8:EK) function onUse(cid, item, frompos, item2, topos) local isLevelDoor = (item.actionid >= 1001 and item.actionid <= 1999) local isVocationD...
gpl-2.0
resistor58/deaths-gmod-server
wire/lua/effects/thruster_ring_shrink/init.lua
1
1781
EFFECT.Mat = Material( "effects/select_ring" ) /*--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------*/ function EFFECT:Init( data ) local size = 16 ...
gpl-3.0
sharifteam/sharifbot3
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-3.0
luakit-crowd/luakit
lib/session.lua
6
2645
------------------------------------------------------ -- Session saving / loading functions -- -- © 2010 Mason Larobina <mason.larobina@gmail.com> -- ------------------------------------------------------ local function rm(file) luakit.spawn(string.format("rm %q", file)) end -- Session functions se...
gpl-3.0
robertbrook/lib
underscore.lua
22
9838
-- Copyright (c) 2009 Marcus Irven -- -- Permission is hereby granted, free of charge, to any person -- obtaining a copy of this software and associated documentation -- files (the "Software"), to deal in the Software without -- restriction, including without limitation the rights to use, -- copy, modify, merge, publ...
bsd-3-clause
resistor58/deaths-gmod-server
T-Rex/lua/entities/obj_flare/init.lua
1
1626
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction(pl, tr) if !tr.Hit then return end local pos = tr.HitPos +Vector(0,0,20) local ang = tr.HitNormal:Angle() +Angle(90,0,0) local entFlare = ents.Create("prop_physics") entFlare:SetModel("models/props_j...
gpl-3.0
dunn/ntopng
scripts/lua/admin/get_users.lua
11
2673
-- -- (C) 2013 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') if(haveAdminPrivileges()) then currentPage = _GET["currentPage"] perPage = _GET["perPage"] sortColumn = _GET["sort...
gpl-3.0
zhaoxx063/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua
68
1118
-- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) ...
apache-2.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_eyepod/init.lua
1
8994
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Eye Pod" ENT.OverlayDelay = 0 function ENT:Initialize() -- Make Physics work self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSIC...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_datasocket/init.lua
1
4240
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Socket" local MODEL = Model( "models/hammy/pci_slot.mdl" ) //Time after loosing one plug to search for another local NEW_PLUG_WAIT_TIME = 2 local PLUG_IN_SOCKET_CONSTRAINT_POWER = 5000 local PLUG_IN_A...
gpl-3.0
resistor58/deaths-gmod-server
Explosives And Nukes/lua/effects/effect_explosion_scaleable/init.lua
2
11255
local tMats = {} tMats.Glow1 = Material("sprites/light_glow02") tMats.Glow2 = Material("sprites/flare1") for _,mat in pairs(tMats) do mat:SetMaterialInt("$spriterendermode",9) mat:SetMaterialInt("$ignorez",1) mat:SetMaterialInt("$illumfactor",8) end local SmokeParticleUpdate = function(particle) ...
gpl-3.0
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/lib/DepthFirstSearch.lua
3
2399
-- Copyright 2011 by Jannis Pohlmann -- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pg...
mit
tehran980/https-github.com-uziins-uzzbot
libs/mimetype.lua
3662
2922
-- 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
SPMATINTG/SPsur
libs/mimetype.lua
3662
2922
-- 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
hfjgjfg/ccc111
libs/mimetype.lua
3662
2922
-- 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
tkdrob/Battle-Tag
Packages/Introduction/Data/Script/Lua/UAIntroduction.Ui.Seq_Stage5.lua
1
3328
--[[-------------------------------------------------------------------------- -- -- File: UAIntroduction.Ui.Seq_Stage5.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 21, 2010 -- --------------------...
mit
dunn/ntopng
scripts/lua/pid_stats.lua
10
2910
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') mode = _GET["mode"] --l4,l7,host pid = tonumber(_GET["pid"]) name = _GET["name"] host = _GET["host"] local debug =...
gpl-3.0
mamadtnt/bot
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
sanger-pathogens/companion
bin/tmhmm_to_gff3.lua
4
4561
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all co...
isc
mmcclimon/dotfiles
hammerspoon/resizer.lua
1
1463
-- entirely so that I don't have to quote keys everywhere else. local screen_lookup = { ["Color LCD"] = "int", -- really, macos? ["DELL P2715Q"] = "ext", ["DELL U2719DX"] = "ext", } local screen_config = { ["iTerm2"] = { ext = function (frame) return { x = 140, y = 130, w = 925, h = 880 } end,...
mit
bestroidd/advan
plugins/photo2sticker.lua
18
1039
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/stickers/sticker.webp' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_document(get_receiver(msg), file, ok_cb, false) redis:de...
gpl-2.0
amilaperera/google-diff-match-patch
lua/diff_match_patch_test.lua
264
39109
--[[ * Test Harness for Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser * Ported to Lua by Duncan Cross * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
apache-2.0
robertbrook/lib
pl/MultiMap.lua
36
1458
--- MultiMap, a Map which has multiple values per key. -- -- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.List` -- @classmod pl.MultiMap local classes = require 'pl.class' local tablex = require 'pl.tablex' local utils = require 'pl.utils' local List = require 'pl.List' local index_by,tsort,concat = tablex....
bsd-3-clause
LuaDist2/util
util/warnself.lua
4
2084
-- This module will check all function calls. -- An error will be reported, when obj.method() call is used -- instead of obj:method(). -- -- The checking makes things 2-times slower. -- You can skip importing of this module when finished with development. -- For example, import this module only when log level is set t...
bsd-3-clause
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_data_transferer/init.lua
1
4803
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Data Transferer" function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateIn...
gpl-3.0
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/tools/make_gd_wrap.lua
3
4929
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
mit
zhaoxx063/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua
39
5639
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "nixio.util" local tp = require "luci.template.parser" local block = io.popen("block info", "r") local ln, dev, devices = n...
apache-2.0
tempbottle/luvit.io
libs/render-template.lua
4
3542
local pathJoin = require('luvi').path.join local templateDir = pathJoin(module.dir, "../templates") local fs = require('coro-fs').chroot(templateDir) local uv = require('uv') local renderMarkdown = require('markdown') local digest = require('openssl').digest.digest local cache = {} -- When a file changes, invalidate ...
apache-2.0
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/entities/ent_mad_c4/shared.lua
1
1361
ENT.Type = "anim" ENT.PrintName = "Explosive C4" ENT.Author = "Worshipper" ENT.Contact = "Josephcadieux@hotmail.com" ENT.Purpose = "" ENT.Instructions = "" /*--------------------------------------------------------- Name: ENT:SetupDataTables() Desc: Setup the data tables. -------------------------...
gpl-3.0
jdavis7257/contrib
ingress/controllers/nginx/lua/error_page.lua
45
1661
http = require "resty.http" def_backend = "upstream-default-backend" local concat = table.concat local upstream = require "ngx.upstream" local get_servers = upstream.get_servers local get_upstreams = upstream.get_upstreams local random = math.random local us = get_upstreams() function openURL(status) local httpc ...
apache-2.0
chewi/Aquaria
files/scripts/entities/plasmawormbg.lua
6
7647
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
resistor58/deaths-gmod-server
wire/lua/weapons/gmod_tool/stools/wire_las_reciever.lua
1
4477
TOOL.Category = "Wire - Detection" TOOL.Name = "Laser Pointer Receiver" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if ( CLIENT ) then language.Add( "Tool_wire_las_reciever_name", "Laser Receiver Tool (Wire)" ) language.Add( "Tool_wire_las_reciever_desc", "Spawns a constant laser r...
gpl-3.0
Aico/mudlet
src/mudlet-lua/lua/DB.lua
10
49950
---------------------------------------------------------------------------------- --- Mudlet DB ---------------------------------------------------------------------------------- -- TODO will be already loaded in LuaGlobal ----------------------------------------------------------------------------- -- General-purpo...
gpl-2.0
DeinFreund/Zero-K
scripts/turrettorp.lua
16
2934
include "constants.lua" local base = piece 'base' local arm1 = piece 'arm1' local arm2 = piece 'arm2' local turret = piece 'turret' local firepoint = piece 'firepoint' local waterFire = false local smokePiece = {base} -- Signal definitions local SIG_AIM = 2 local function Bob(rot) while true do Turn(base, ...
gpl-2.0
DeinFreund/Zero-K
effects/nuke_600.lua
24
15878
-- nuke_600_landcloud_pillar -- nuke_600_landcloud_topcap -- nuke_600_seacloud_cap -- nuke_600_landcloud -- nuke_600_seacloud_topcap -- nuke_600_landcloud_ring -- nuke_600_seacloud -- nuke_600_landcloud_cap -- nuke_600 -- nuke_600_seacloud_ring -- nuke_600_seacloud_pillar return { ["nuke_600_landcloud_pillar"] = { ...
gpl-2.0
AresTao/darkstar
scripts/globals/spells/bluemagic/smite_of_rage.lua
28
1707
----------------------------------------- -- Spell: Smite of Rage -- Damage varies with TP -- Spell cost: 28 MP -- Monster Type: Arcana -- Spell Type: Physical (Slashing) -- Blue Magic Points: 3 -- Stat Bonus: AGI+3 -- Level: 34 -- Casting Time: 0.5 seconds -- Recast Time: 13 seconds -- Skillchain Element(s)...
gpl-3.0
AresTao/darkstar
scripts/globals/spells/bluemagic/power_attack.lua
28
1761
----------------------------------------- -- Spell: Power Attack -- Deals critical damage. Chance of critical hit varies with TP -- Spell cost: 5 MP -- Monster Type: Vermin -- Spell Type: Physical (Blunt) -- Blue Magic Points: 1 -- Stat Bonus: MND+1 -- Level: 4 -- Casting Time: 0.5 seconds -- Recast Time: 7.2...
gpl-3.0
antoniova/nes
output/luaScripts/BugsBunnyBirthdayBlowout.lua
9
5535
--Bugs Bunny Birthday Blowout --Written by XKeeper --Creates Lag and Sprite counters as well as Camera position -- ************************************************************************************ -- ************************************************************************************ -- **********************...
gpl-2.0
DeinFreund/Zero-K
LuaRules/Gadgets/cmd_remove_wait.lua
7
1499
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Remove Wait", desc = "Removes wait from structures which have no need for the command.", author = "GoogleFrog", date = "3 April 2015", license = "GNU GPL, v2 or later", layer = 0, enabled = true, } end local sp...
gpl-2.0
AresTao/darkstar
scripts/globals/items/heat_rod.lua
41
1097
----------------------------------------- -- ID: 17071 -- Item: Heat Rod -- Additional Effect: Lightning Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ------------------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Eastern_Altepa_Desert/mobs/Cactrot_Rapido.lua
16
12212
----------------------------------- -- Area: Eastern Altepa Desert -- NM: Cactrot Rapido ----------------------------------- require("scripts/globals/titles"); local path = { -45.214237, 0.059482, -204.244873, -46.114422, 0.104212, -203.765884, -47.013275, 0.149004, -203.285812, -47.911877, 0.193759, -2...
gpl-3.0
AresTao/darkstar
scripts/globals/mobskills/Fiery_Breath.lua
13
1293
--------------------------------------------- -- Fiery Breath -- -- Description: Deals Fire damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Tiamat, Smok and Ildebrann ---------------------------------------...
gpl-3.0
AresTao/darkstar
scripts/globals/spells/cure_vi.lua
18
3534
----------------------------------------- -- Spell: Cure VI -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals...
gpl-3.0
DeinFreund/Zero-K
scripts/cloakskirm.lua
1
4212
include "constants.lua" local hips = piece 'hips' local chest = piece 'chest' local gun = piece 'gun' local muzzle = piece 'muzzle' local exhaust = piece 'exhaust' local turner = piece 'turner' local aimpoint = piece 'aimpoint' local gunemit = piece 'gunemit' local thigh = {piece 'lthigh', piece 'rthigh'} local shin ...
gpl-2.0
ruohoruotsi/Wavelet-Tree-Synth
nnet/Variational-LSTM-Autoencoder-master/util/Maskh.lua
1
1044
local Maskh, parent = torch.class('nn.Maskh', 'nn.Module') function Maskh:__init() parent.__init(self) self.gradInput = {} end function Maskh:updateOutput(input) local prev, current, mask = unpack(input) assert(prev:size(1) == mask:size(1)) local mask_ = mask:clone() mask_ = mask_:view(mask_:size(1)...
gpl-2.0
DeinFreund/Zero-K
LuaUI/Widgets/chili_new/controls/image.lua
9
3306
--//============================================================================= --- Image module --- Image fields. -- Inherits from Control. -- @see button.Button -- @table Image -- @tparam {r,g,b,a} color color, (default {1,1,1,1}) -- @string[opt=nil] file path -- @bool[opt=true] keepAspect aspect should be kept -...
gpl-2.0
superzazu/quadLOVE
lib/middleclass.lua
63
6117
local middleclass = { _VERSION = 'middleclass v3.0.1', _DESCRIPTION = 'Object Orientation for Lua', _URL = 'https://github.com/kikito/middleclass', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining...
mit
DeinFreund/Zero-K
LuaUI/Widgets/unit_smart_nanos.lua
5
18535
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_smart_nanos.lua -- brief: Enables auto reclaim & repair for idle turrets -- author: Owen Martindell -- -- Copyright (C) 2008. -- L...
gpl-2.0
AresTao/darkstar
scripts/zones/The_Shrine_of_RuAvitau/mobs/Seiryu.lua
27
1101
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Seiryu (Pet version) ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Kazham/npcs/Thali_Mhobrum.lua
15
1696
----------------------------------- -- Area: Kazham -- NPC: Thali Mhobrum -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); local path = { 55.816410, -11.000000, -43.992680, 54.761787, -11.000000, -44.0461...
gpl-3.0
AresTao/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Miah_Riyuh.lua
50
5024
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Miah Riyuh -- @pos 5.323 -2 37.462 94 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
AresTao/darkstar
scripts/zones/Port_Bastok/npcs/Gudav.lua
17
1931
----------------------------------- -- Area: Port Bastok -- NPC: Gudav -- Starts Quests: A Foreman's Best Friend ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyi...
gpl-3.0
soroushwilson/soroush
plugins/info.lua
3
9283
--[[ Add phone by : @WaderTGTeam tnx to : @WaderTGTeam ]] do local sudo = 136888679 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'channel' then hash = 'rank:variables' end if hash then redis:hset(hash, name, value) ret...
gpl-2.0
AresTao/darkstar
scripts/zones/Bastok_Markets/npcs/Visala.lua
19
1168
----------------------------------- -- Area: Bastok Markets -- NPC: Visala -- Guild Merchant NPC: Goldsmithing Guild -- @pos -202.000 -7.814 -56.823 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/se...
gpl-3.0
AresTao/darkstar
scripts/zones/Rabao/TextIDs.lua
7
2028
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6397; -- Obtained: <item> GIL_OBTAINED = 6398; -- Obtained <number> gil KEYITEM_OBTAINED = 6400; -- Obt...
gpl-3.0
Jmainguy/docker_images
prosody/prosody/lib/luarocks/rocks/luasocket/3.0rc1-1/test/urltest.lua
30
17349
local socket = require("socket") socket.url = require("socket.url") dofile("testsupport.lua") local check_build_url = function(parsed) local built = socket.url.build(parsed) if built ~= parsed.url then print("built is different from expected") print(built) print(expected) os.exi...
gpl-2.0
AresTao/darkstar
scripts/zones/Lower_Jeuno/npcs/Harnek.lua
17
2370
----------------------------------- -- Area: Lower Jeuno -- NPC: Harnek -- Starts and Finishes Quest: The Tenshodo Showdown (finish) -- @zone 245 -- @pos 44 0 -19 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --...
gpl-3.0
Guard13007/LightWorld-Editor
src/lib/light_world/body.lua
1
23696
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or "" local normal_map = require(_PACKAGE..'/normal_map') local util = require(_PACKAGE..'/util') local anim8 = require(_PACKAGE..'/anim8') local vector = require(_PACKAGE..'/vector') local body = {} body.__index = body body.glowShader ...
mit
Almightree/GuildInviteTool
Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua
9
19868
--[[----------------------------------------------------------------------------- TreeGroup Container Container that uses a tree control to switch between groups. -------------------------------------------------------------------------------]] local Type, Version = "TreeGroup", 38 local AceGUI = LibStub and LibStub("A...
gpl-2.0
WaywardEclipse/Isolation
gamemode/server/admin/commands.lua
2
10384
local name = "[Admin] - "; commands = {}; table.insert(commands, {2, 0, "noclip", function (ply, args, msg) if ply:GetMoveType() == MOVETYPE_WALK then ply:SetMoveType(MOVETYPE_NOCLIP); else ply:SetMoveType(MOVETYPE_WALK); end end}); table.insert(commands, {1, 1, "givemoney", function (ply, args, m...
mit
AresTao/darkstar
scripts/globals/weaponskills/blast_shot.lua
30
1320
----------------------------------- -- Blast Shot -- Marksmanship 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: AGI:30% -- 10...
gpl-3.0
NeoRaider/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
37
1612
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- signal/noise diagram -- local snr = { title = "%H: Signal and noise on %pi", ...
apache-2.0
AresTao/darkstar
scripts/zones/Den_of_Rancor/npcs/Treasure_Coffer.lua
17
3342
----------------------------------- -- Area: Den of Rancor -- NPC: Treasure Coffer -- @zone 160 -- @pos ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems...
gpl-3.0
AresTao/darkstar
scripts/zones/Port_Windurst/npcs/Machu-Kuchu.lua
34
1123
----------------------------------- -- Area: Port Windurst -- Machu-Kuchu -- Warps players to Windurst Walls ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Windurst/TextIDs"); ------------------...
gpl-3.0
AresTao/darkstar
scripts/zones/Mhaura/npcs/Orlando.lua
15
3535
----------------------------------- -- Area: Mhaura -- NPC: Orlando -- Type: Standard NPC -- @pos -37.268 -9 58.047 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/ke...
gpl-3.0
AresTao/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Yasmina.lua
36
1058
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Yasmina -- Type: Chocobo Renter -- @zone: 94 -- @pos -34.972 -5.815 221.845 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;...
gpl-3.0
NREL/api-umbrella
src/api-umbrella/cli/health.lua
1
3105
local http = require "resty.http" local json_decode = require("cjson").decode local read_config = require "api-umbrella.cli.read_config" local unistd = require "posix.unistd" local function health(options, config) local status = "red" local exit_code = 1 local url = "http://127.0.0.1:" .. config["http_port"] .....
mit
DeinFreund/Zero-K
LuaRules/Configs/StartBoxes/Gods Of War 2 Remake V2.lua
17
1126
return { [0] = { nameLong = "South-West", nameShort = "W", startpoints = { {824,6344}, }, boxes = { { {0,5519}, {1649,5519}, {1649,7168}, {0,7168}, }, }, }, [1] = { nameLong = "North-East", nameShort = "NE", startpoints = { {6344,824}, }, boxes = { { {5519,0},...
gpl-2.0
prosody-modules/import
mod_tcpproxy/mod_tcpproxy.lua
31
3923
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
mit
mamaddeveloper/Testmamo
plugins/helprealm.lua
1
1248
do function run(msg, matches) return 'These commands only works in bots private \n Hammer \n /owners group_id [kick|ban|unban] user_id \n /owners 1234567 kick 1234567 \n \n cleaning \n /owners group_id clean [modlist|rules|about] \n /owners 1234567 clean modlist \n \n setting flood sensitivity \n /owners group_id ...
gpl-2.0
AresTao/darkstar
scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua
38
1042
----------------------------------- -- Area: Windurst Woods -- NPC: Abby Jalunshi -- Type: Moghouse Renter -- @zone: 241 -- @pos -101.895 -5 36.172 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -------...
gpl-3.0
tysonliddell/OpenRA
mods/d2k/maps/shellmap/d2k-shellmap.lua
3
6564
--[[ Copyright 2007-2020 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
AresTao/darkstar
scripts/zones/Den_of_Rancor/npcs/HomePoint#2.lua
19
1194
----------------------------------- -- Area: Den_of_Rancor -- NPC: HomePoint#2 -- @pos 182 34 -62 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/TextIDs"); require("scripts/globals/homepoin...
gpl-3.0
AresTao/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Gamygyn.lua
16
1259
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Marquis Gamygyn ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- funct...
gpl-3.0
omidas77/speedbot
plugins/clash.lua
2
3559
--[[ # # @GPMod # @dragon_born # ]] local apikey = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiIsImtpZCI6IjI4YTMxOGY3LTAwMDAtYTFlYi03ZmExLTJjNzQzM2M2Y2NhNSJ9.eyJpc3MiOiJzdXBlcmNlbGwiLCJhdWQiOiJzdXBlcmNlbGw6Z2FtZWFwaSIsImp0aSI6Ijg4OTE3MTc1LTQ0NmItNGMzZC05NzYwLWU0Njk2MDc5NzViMiIsImlhdCI6MTQ3NzY2ODc3MSwic3ViIjoiZGV2ZWx...
gpl-2.0
AresTao/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/_5ia.lua
19
2623
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Strange Apparatus -- @pos: 375 20 -259 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; require("scripts/zones/Maze_of_Shakhrami/TextIDs"); require("scripts/globals/strangeapparatus"); -----...
gpl-3.0
DeinFreund/Zero-K
LuaUI/Widgets/chili/Handlers/texturehandler.lua
25
3354
--//============================================================================= --// TextureHandler = {} --//============================================================================= --//TWEAKING local timeLimit = 0.2/15 --//time per second / desiredFPS --//==================================================...
gpl-2.0