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
DeinFreund/Zero-K
LuaUI/Widgets/api_game_analytics.lua
5
5946
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Game Analytics Handler", desc = "Handles game analytics events", author = "GoogleFrog", date...
gpl-2.0
AresTao/darkstar
scripts/commands/exec.lua
54
1121
--------------------------------------------------------------------------------------------------- -- func: exec -- desc: Allows you to execute a Lua string directly from chat. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 4, para...
gpl-3.0
AresTao/darkstar
scripts/globals/items/warm_egg.lua
35
1186
----------------------------------------- -- ID: 4602 -- Item: warm_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 18 -- Magic 18 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
AresTao/darkstar
scripts/globals/effects/magic_shield.lua
17
1752
----------------------------------- -- -- Magic Shield BLOCKS all magic attacks -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (effect:get...
gpl-3.0
Almightree/GuildInviteTool
Libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua
50
10384
--[[----------------------------------------------------------------------------- TabGroup Container Container that uses tabs on top to switch between groups. -------------------------------------------------------------------------------]] local Type, Version = "TabGroup", 35 local AceGUI = LibStub and LibStub("AceGUI...
gpl-2.0
AresTao/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/Old_Casket.lua
17
1529
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Old casket -- Obtaining 'Paintbrush of Souls' -- @pos 61 0 17 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyite...
gpl-3.0
AresTao/darkstar
scripts/zones/Northern_San_dOria/npcs/Gilipese.lua
38
1026
----------------------------------- -- Area: Northern San d'Oria -- NPC: Gilipese -- Type: Standard Dialogue NPC -- @zone: 231 -- @pos -155.088 0.000 120.300 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
shrimpz/slua
build/luajit-2.0.4/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
DeinFreund/Zero-K
scripts/dynsupport.lua
1
20046
include "constants.lua" dyncomm = include('dynamicCommander.lua') local spSetUnitShieldState = Spring.SetUnitShieldState -- pieces local base = piece 'base' local shield = piece 'shield' local pelvis = piece 'pelvis' local turret = piece 'turret' local torso = piece 'torso' local head = piece 'head' local armh...
gpl-2.0
DIVIY/TG-Bot
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-2.0
Sygmei/ObEngine
engine/Lib/Extlibs/pl/stringio.lua
8
3777
--- Reading and writing strings using file-like objects. <br> -- -- f = stringio.open(text) -- l1 = f:read() -- read first line -- n,m = f:read ('*n','*n') -- read two numbers -- for line in f:lines() do print(line) end -- iterate over all lines -- f = stringio.create() -- f:write('hello') -- f:wr...
mit
AresTao/darkstar
scripts/globals/items/cream_puff.lua
35
1313
----------------------------------------- -- ID: 5718 -- Item: Cream Puff -- Food Effect: 30 mintutes, All Races ----------------------------------------- -- Intelligence +7 -- HP -10 -- Resist Slow ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
DeinFreund/Zero-K
LuaRules/Configs/StartBoxes/TMA-0 v1_1.lua
17
1371
return { [0] = { startpoints = { {5816,3768}, }, boxes = { { {5571,3441}, {6062,3441}, {6062,4096}, {5571,4096}, }, }, }, [1] = { startpoints = { {7700,13189}, }, boxes = { { {7373,12943}, {8028,12943}, {8028,13435}, {7373,13435}, }, }, }, [2] = { ...
gpl-2.0
pinterest/thrift
test/lua/test_basic_server.lua
30
3451
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may n...
apache-2.0
danilobjr/dotfiles
vi/astro-nvim/lua/user/init.lua
1
14746
local config = { -- Configure AstroNvim updates updater = { remote = "origin", -- remote to use channel = "stable", -- "stable" or "nightly" version = "v1.8.1", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) branch = nil, -- branch name (NIGHTLY ONLY) ...
mit
vdrandom/vscripts
lowercase.lua
1
1124
#!/usr/bin/env lua require('os') require('lfs') function lowercase(basename, basedir) if basedir == nil then basedir = '' end local lowercased = string.lower(basename) local path_orig = basedir .. basename local path_new = basedir .. lowercased if path_orig == path_new then print(path_orig .. ' is already lo...
mit
ld-test/prosody
util/multitable.lua
1
3628
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local select = select; local t_insert = table.insert; local unpack, pairs, next, type = unpack, pairs, nex...
mit
Jmainguy/docker_images
prosody/prosody/lib/prosody/net/dns.lua
1
29551
-- Prosody IM -- This file is included with Prosody IM. It has modifications, -- which are hereby placed in the public domain. -- todo: quick (default) header generation -- todo: nxdomain, error handling -- todo: cache results of encodeName -- reference: http://tools.ietf.org/html/rfc1035 -- reference: http://tools...
gpl-2.0
AresTao/darkstar
scripts/zones/QuBia_Arena/mobs/Rallbrog_of_Clan_Death.lua
36
2534
----------------------------------- -- Area: QuBia_Arena -- Mission 9-2 SANDO ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/missions"); require("scripts/zones/QuBia_Arena/TextIDs"); ----------------------------------- -- onMobSpawn A...
gpl-3.0
DeinFreund/Zero-K
effects/sonic.lua
5
4080
Spring = Spring or {} Spring.Utilities = Spring.Utilities or {} VFS.Include("LuaRules/Utilities/tablefunctions.lua") local fx = { ['sonic'] = { groundflash = { air = true, underwater = true, circlealpha = 0.6, circlegrowth = 2, flashalpha = ...
gpl-2.0
duncanc/packland
lua/re.lua
160
6286
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local setmetatable = setmetatable local m = require"lpeg" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' ...
mit
mortezam1234/kkdfjkfl-
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
AresTao/darkstar
scripts/globals/spells/hunters_prelude.lua
18
1490
----------------------------------------- -- Spell: Hunter's Prelude -- Gives party members ranged attack accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingChe...
gpl-3.0
AresTao/darkstar
scripts/globals/abilities/pets/somnolence.lua
12
1384
--------------------------------------------------- -- Somnolence --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/magic"); ---------------------------------------------------...
gpl-3.0
TeleDALAD/007
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
SeyedKia/xy
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
mehulsbhatt/ntopng
scripts/lua/modules/influx_utils.lua
4
1737
-- -- (C) 2014-15 - ntop.org -- -- Enable/disable Influx DB use_influx = false influx_user = "" influx_pwd = "" influx_url = "http://localhost:8086/db/ntopng/series?u=ntopng&p=ntopng" -- Local variables local influx_debug = false local influx_old_value = { } local influx_curr_value = { } local json = require ("d...
gpl-3.0
AresTao/darkstar
scripts/zones/Port_San_dOria/npcs/Artinien.lua
36
1374
----------------------------------- -- Area: Port San d'Oria -- NPC: Artinien -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/Text...
gpl-3.0
wizardbottttt/X
plugins/groupmanager.lua
136
11323
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
AresTao/darkstar
scripts/zones/Northern_San_dOria/npcs/Arnau.lua
19
1728
----------------------------------- -- Area: Northern San d'Oria -- NPC: Arnau -- Involved in Mission: Save the Children -- @pos 148 0 139 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions...
gpl-3.0
DeinFreund/Zero-K
LuaUI/Widgets/gui_spectate_selected_team.lua
16
5033
function widget:GetInfo() return { name = "Spectate Selected Team", desc = "Automatically spectate team based on selected units, and other spectate options.", author = "SirMaverick", version = "0.205", --has added options date = "2010", --2013 license = "GNU GPL, v2 or later", ...
gpl-2.0
TeleDALAD/cd
plugins/setrank.lua
2
8894
do local Dev = 122774063 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.id, 'مقام کاربر...
gpl-2.0
Jmainguy/docker_images
prosody/prosody/lib/prosody/net/http/parser.lua
1
5783
local tonumber = tonumber; local assert = assert; local url_parse = require "socket.url".parse; local urldecode = require "util.http".urldecode; local function preprocess_path(path) path = urldecode((path:gsub("//+", "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end local level = 0; for component in pa...
gpl-2.0
AresTao/darkstar
scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua
19
1200
----------------------------------- -- Area: Ifrit's Cauldron -- NPC: HomePoint#1 -- @pos -63 50 81 205 ----------------------------------- package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Ifrits_Cauldron/TextIDs"); require("scripts/globals/ho...
gpl-3.0
AresTao/darkstar
scripts/zones/Ordelles_Caves/npcs/Ruillont.lua
17
2186
----------------------------------- -- Area: Ordelles Caves -- NPC: Ruillont -- Involved in Mission: The Rescue Drill -- @pos -70 1 607 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions")...
gpl-3.0
AresTao/darkstar
scripts/zones/Norg/npcs/Ryoma.lua
17
3886
----------------------------------- -- Area: Norg -- NPC: Ryoma -- Start and Finish Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- Involved in Quest: Ayame and Kaede -- @pos -23 0 -9 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; --------------------...
gpl-3.0
bobkersten/domoticz
scripts/dzVents/runtime/persistence.lua
6
5656
-- Internal persistence library --[[ Provides ]] -- persistence.store(path, ...): Stores arbitrary items to the file at the given path -- persistence.load(path): Loads files that were previously stored with store and returns them --[[ Limitations ]] -- Does not export userdata, threads or most function values -- Func...
gpl-3.0
CarabusX/Zero-K
units/planefighter.lua
2
6109
return { planefighter = { unitname = [[planefighter]], name = [[Swift]], description = [[Multi-role Fighter]], brakerate = 0.4, buildCostMetal = 150, buildPic = [[planefighter.png]], canFly = true, canGuard ...
gpl-2.0
CarabusX/Zero-K
units/athena.lua
3
2966
return { athena = { unitname = [[athena]], name = [[Athena]], description = [[Airborne SpecOps Engineer]], acceleration = 0.1, airStrafe = 0, autoHeal = 20, brakeRate = 0.08, buildCostMetal = 600, buildDistance = 180, ...
gpl-2.0
CarabusX/Zero-K
scripts/tankraid.lua
4
6721
-- linear constant 65536 include "constants.lua" -- WARNING: change your constant for the -brackets to 65536 before compilingnot local base, body, turret, sleeve, barrel, firepoint, tracks1, tracks2, tracks3, tracks4, wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7, wheels8 = piece('base', 'body', 'turr...
gpl-2.0
zain211/zain.aliraqex
plugins/en-lock-bot.lua
5
2731
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ ANTI BOT : منع بوتات ▀▄ ▄▀ ▀▄▀...
gpl-2.0
mattyx14/otxserver
data/scripts/spells/monster/frazzlemaw_paralyze.lua
2
1141
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = Condition(CONDITION_PARALYZE) condition:setParameter(CONDITION_PARAM_TICKS, 20000) condition:setFormula(-0.6, 0, -0.8, 0) combat:addCondition(condition) arr = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, ...
gpl-2.0
CarabusX/Zero-K
LuaRules/Gadgets/unit_mex_overdrive.lua
4
65272
-- $Id: unit_mex_overdrive.lua 4550 2009-05-05 18:07:29Z licho $ ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- if not (gadgetHandler:IsSyncedCode()) then return end --------------------------...
gpl-2.0
clementfarabet/nn
SpatialFractionalMaxPooling.lua
8
5107
local SpatialFractionalMaxPooling, parent = torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module') -- Usage: -- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH) -- the output should be the exact size (outH x outW) -- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH) -- the...
bsd-3-clause
cpetrescu/luvit-websocket
libs/websocketutils.lua
1
3630
exports.name = "websocketutils" exports.version = "0.0.1" exports.author = "Niklas Kühtmann" local bitmap = require('bitmap') local bit = require('bit') local bytemap = require('bytemap') local b64 = require("base64") local sha1 = require("sha1") local string = require("string") string.split = function(inputstr, sep)...
apache-2.0
evoteamdev/EVO_TEAM
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
zain211/zain.aliraqex
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
kbara/snabb
lib/ljsyscall/syscall/openbsd/constants.lua
24
20467
-- tables of constants for NetBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string, select local abi =...
apache-2.0
junkblocker/hammerspoon
extensions/fs/test_fs.lua
6
9436
-- hs.fs tests testDir = "/private/tmp/hs_fs_test_dir/" function writeFile(filename, contents) io.open(filename, "w"):write(contents):close() end function setUp() os.execute("mkdir "..testDir) return success() end function tearDown() os.execute("rm -r "..testDir) return success() end function testMkdir()...
mit
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/buildings/autocast.lua
1
1189
--[[ Author: Noya Date: 11.02.2015. Handles the Autocast logic for buildings unit spawn ]] function BuildingAutocast( event ) local caster = event.caster local ability = event.ability local hero = caster:GetPlayerOwner() local player if hero then player = hero:GetPlayerID() end -- Get if the ability is on ...
gpl-3.0
mattyx14/otxserver
data/monster/demons/infernal_demon.lua
2
3752
local mType = Game.createMonsterType("Infernal Demon") local monster = {} monster.description = "a infernal demon" monster.experience = 26000 monster.outfit = { lookType = 1313, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1938 monster.Bestiary = { c...
gpl-2.0
mattyx14/otxserver
data/monster/quests/cults_of_tibia/bosses/the_souldespoiler.lua
2
5055
local mType = Game.createMonsterType("The Souldespoiler") local monster = {} monster.description = "The Souldespoiler" monster.experience = 0 monster.outfit = { lookType = 875, lookHead = 0, lookBody = 3, lookLegs = 77, lookFeet = 81, lookAddons = 0, lookMount = 0 } monster.health = 50000 monster.maxHealth = 5...
gpl-2.0
Frownigami1/cuberite
Server/Plugins/APIDump/Classes/WebAdmin.lua
2
6844
return { cWebAdmin = { Desc = "", Functions = { AddWebTab = { IsStatic = true, Params = { { Name = "Title", Type = "string", }, { Name = "UrlPath", Type = "string", }, { Name = "HandlerFn", Type = "function", }, }, Notes...
apache-2.0
bendeutsch/minetest-bewarethedark
init.lua
1
4519
--[[ Beware the Dark [bewarethedark] ========================== A mod where darkness simply kills you outright. Copyright (C) 2015 Ben Deutsch <ben@bendeutsch.de> License ------- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publ...
lgpl-2.1
javad7070/senior
bot/bot.lua
1
11953
-- #Beyond Reborn Robot -- #@BeyondTeam tdcli = dofile('./tg/tdcli.lua') serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() require('./bot/utils') require('./libs/lua-redis') URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "...
gpl-3.0
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/ScaleTo.lua
6
1073
-------------------------------- -- @module ScaleTo -- @extend ActionInterval -------------------------------- -- overload function: create(float, float, float) -- -- overload function: create(float, float) -- -- overload function: create(float, float, float, float) -- -- @function [pare...
gpl-2.0
hagish/tektix
hektik/LUBE.lua
3
18406
--[[ Copyright © 2009-2010 BartBes <bart.bes+nospam@gmail.com> 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, modi...
mit
amirmrbad/superbot
plugins/filter.lua
13
3955
do TMP = {} function First( msg ) local Xdata = load_data(_config.moderation.data); if ( not Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] ) then Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] = TMP save_data(_config.moderation.data, Xdata); print("i couldn't find the table so i created it ...
gpl-2.0
CarabusX/Zero-K
LuaUI/Configs/unit_state_defaults.lua
6
1493
local alwaysHoldPos = { [UnitDefNames["spidercrabe"].id] = true, [UnitDefNames["vehsupport"].id] = true, [UnitDefNames["tankheavyarty"].id] = true, } local holdPosException = { [UnitDefNames["staticcon"].id] = true, } local dontFireAtRadarUnits = { [UnitDefNames["cloaksnipe"].id] = true, [UnitDefNames["ho...
gpl-2.0
PeqNP/GameKit
src/ad/request/AdRequest.lua
1
1171
-- -- @copyright 2015 Upstart Illustration LLC. All rights reserved. -- require "ad.Constants" local AdRequest = Class() AdRequest.implements("bridge.BridgeRequestProtocol") function AdRequest.new(self) local ad local state local reward function self.init(_ad, _state) ad = _ad state ...
mit
PeqNP/GameKit
src/ntp/Client.lua
1
1652
-- -- @copyright (c) 2016 Upstart Illustration, LLC -- local NTPResponse = require("ntp.Response") local Client = Class() local TIME_SERVER_HOST = "time.nist.gov" local TIME_SERVER_PORT = 13 -- 0.north-america.pool.ntp.org -- us.pool.ntp.org function Client.new(self) local host local port function sel...
mit
luohancfd/FluidDynamicTools
Thermo_Chemical_Properties/Molecule_Properties/RawData/N_2Do.lua
1
1432
-- Collater: Daniel F. Potter -- Date: 15 July 2012 -- 1st excited state of atomic Nitrogen, 2s22p3 2D¡ N_2Do = {} N_2Do.M = { value = 14.0067e-3, units = 'kg/mol', description = 'molecular mass', reference = 'CEA2::thermo.inp' } N_2Do.atomic_constituents = {N=1} N_2Do.charge = 0 N_2Do.CEA_coeffs = { {...
gpl-3.0
garrysmodlua/wire
lua/wire/client/wiremenus.lua
18
1365
local Categories = { "Favourites", "Chips, Gates", "Visuals", "Detection", "Input, Output", "Vehicle Control", "Physics", "Other", "Memory", "Advanced", "Tools", "Options", } hook.Add( "AddToolMenuCategories", "WireCategories", function() for i=1,#Categories do local Category = Categories[i] spawnmenu...
apache-2.0
sorblack-x/sorblack_x
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
AntiSpamBot777/AntiBot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
agpl-3.0
CarabusX/Zero-K
scripts/shipskirm.lua
6
4784
--Stupid dumb Bos converted to amazing awesome Lua (see http://packages.springrts.com/bos2lua/index.php) include 'constants.lua' -------------------------------------------------------------------- --pieces -------------------------------------------------------------------- local hull = piece 'hull' local neck = pie...
gpl-2.0
mattyx14/otxserver
data/monster/humanoids/orc_shaman.lua
2
3437
local mType = Game.createMonsterType("Orc Shaman") local monster = {} monster.description = "an orc shaman" monster.experience = 110 monster.outfit = { lookType = 6, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 6 monster.Bestiary = { class = "Humanoi...
gpl-2.0
javad7070/senior
libs/XMLElement.lua
1
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
tst2005/l2l
l2l/eval.lua
1
2090
-- Functions useful for inline evaluation. local module_path = (...):gsub('eval$', '') local reader = require(module_path .. "reader") local compiler = require(module_path .. "compiler") local pcall = pcall local getmetatable = getmetatable local error = error local evaluate = function(str, env) -- returns a funct...
bsd-2-clause
bendeutsch/minetest-bewarethedark
hud.lua
1
2692
--[[ HUD definitions for Beware the Dark Optionally from one of the supported mods Any hud needs to define the following functions: - bewarethedark.hud_init(player) Initialize the HUD for a new player. - bewarethedark.hud_update(player, value) Display the new value "value" for the given player. "value" is a ...
lgpl-2.1
rafael/kong
spec/unit/tools/faker_spec.lua
3
3707
local uuid = require "uuid" local Faker = require "kong.tools.faker" local DaoError = require "kong.dao.error" describe("Faker", function() local ENTITIES_TYPES = { "api", "consumer", "plugin" } local factory_mock = {} local insert_spy local faker before_each(function() insert_spy = spy.new(function(s...
apache-2.0
mattyx14/otxserver
data/monster/undeads/paladin's_apparition.lua
2
3819
local mType = Game.createMonsterType("Paladin's Apparition") local monster = {} monster.description = "a paladin's apparition" monster.experience = 28600 monster.outfit = { lookType = 129, lookHead = 57, lookBody = 42, lookLegs = 114, lookFeet = 114, lookAddons = 0, lookMount = 0 } monster.raceId = 1948 monste...
gpl-2.0
mumuqz/luci
applications/luci-app-wshaper/luasrc/model/cbi/wshaper.lua
56
1848
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") m = Map("wshaper", translate("Wondershaper"), translate("Wondershaper shapes traffic to ensure low latencies for interactive traffic even when your " .. "internet connec...
apache-2.0
PeqNP/GameKit
specs/notificationcenter_spec.lua
1
1654
require "lang.Signal" require "busted" local NotificationCenter = require("NotificationCenter") describe("NotificationCenter", function() local subject before_each(function() subject = NotificationCenter() end) it("should have no observers", function() local observers = subject.getOb...
mit
pampersrocker/risky-epsilon
Game/data/scripts/samples/state-machine.lua
1
4589
logMessage("Initializing state machine sample ...") -- Physics World do local cinfo = WorldCInfo() cinfo.gravity = Vec3(0, 0, 0) cinfo.worldSize = 2000.0 local world = PhysicsFactory:createWorld(cinfo) PhysicsSystem:setWorld(world) end -- Camera cam = GameObjectManager:createGameObject("cam") cam.cc...
mit
nitheeshkl/kln_awesome
awesome_3.5/lain/widgets/contrib/ccurr.lua
7
2110
--[[ Licensed under GNU General Public License v2 * (c) 2014, Aaron Lebo --]] local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") local json = re...
gpl-2.0
CarabusX/Zero-K
LuaUI/Widgets/dbg_ballisticcalculator.lua
8
19293
function widget:GetInfo() return { name = "Ballistic Calculator", desc = "Simulate and plot weapon's ballistic range & calculate Spring's weapon range modification. For weapon setting testing. \n\nInstruction: select any unit, press attack (trajectory will be drawn), follow on-screen helptext, BLUE ...
gpl-2.0
kbara/snabb
src/program/lwaftr/setup.lua
2
15612
module(..., package.seeall) local config = require("core.config") local Intel82599 = require("apps.intel.intel_app").Intel82599 local PcapFilter = require("apps.packet_filter.pcap_filter").PcapFilter local V4V6 = require("apps.lwaftr.V4V6").V4V6 local VirtioNet = require("apps.virtio_net.virtio_net").Virtio...
apache-2.0
Germanunkol/GridCars
stats.lua
2
4745
local stats = {} local list = {} local STAT_WIDTH = love.graphics.getWidth()/2 local STAT_X = (love.graphics.getWidth() - STAT_WIDTH)/2 local STAT_HEIGHT = 300 --math.min(love.graphics.getHeight()/3, 300) local STAT_Y = (love.graphics.getHeight() - STAT_HEIGHT)/2 local PAD = 20 local STAT_SWITCH_TIME = 5 local pane...
mit
PAC3-Server/ServerContent
lua/notagain/trimmed_workshop/autorun/dark_souls_npcs.lua
2
94143
if not file.Exists("autorun/vj_base_autorun.lua","LUA") then return end do local ENT = {} ENT.ClassName = "npc_vj_ds_artorias" ENT.AdminOnly = true game.AddParticles("particles/ds_artorias_fx.pcf") game.AddParticles("particles/mh_scream_fx.pcf") local particlename = { "mh_monster_scream_large", "dskart_am...
mit
CarabusX/Zero-K
effects/slam.lua
6
38258
-- slam -- slam_sparks_smokejets -- slam_flash -- slam_ray -- slam_heat_pillar -- slam_landcloud -- slam_landcloud_ring -- slam_landcloud_topcap -- slam_landcloud_cap -- slam_landcloud_pillar -- slam_landcloud_topsuction -- slam_seacloud -- slam_seacloud_topcap -- slam_seacloud_ring -- slam_seacloud_cap -- slam_seaclou...
gpl-2.0
black123456789/man
plugins/google.lua
94
1176
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
mattyx14/otxserver
data/monster/constructs/magma_crawler.lua
2
4240
local mType = Game.createMonsterType("Magma Crawler") local monster = {} monster.description = "a magma crawler" monster.experience = 2700 monster.outfit = { lookType = 492, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 885 monster.Bestiary = { class ...
gpl-2.0
kbara/snabb
src/program/lwaftr/loadtest/promise.lua
2
1552
module(..., package.seeall) Promise = {} Promise.__index = Promise local function is_promise(val) return type(val) == 'table' and val.and_then end local function curry(f, ...) local curried_args = { ... } if #curried_args == 0 then return f end return function(...) local args = { ... } for i=...
apache-2.0
mattyx14/otxserver
data/monster/constructs/golden_servant.lua
2
3350
local mType = Game.createMonsterType("Golden Servant") local monster = {} monster.description = "a golden servant" monster.experience = 450 monster.outfit = { lookType = 396, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 701 monster.Bestiary = { class...
gpl-2.0
dinodeck/rpg_conversation_graph
nwn_dialog/code/WaitState.lua
10
1383
WaitState = {mName = "wait"} WaitState.__index = WaitState function WaitState:Create(character, map) local this = { mCharacter = character, mMap = map, mEntity = character.mEntity, mController = character.mController, mFrameResetSpeed = 0.05, mFrameCou...
mit
gavares/snort3
src/managers/snort_config.lua
5
3043
--------------------------------------------------------------------------- -- Copyright (C) 2014-2015 Cisco 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 Version 2 as published -- by the Fre...
gpl-2.0
tgp1994/LiquidRP-tgp1994
gamemode/fadmin/fadmin/playeractions/ragdoll/cl_init.lua
2
1852
FAdmin.StartHooks["Ragdoll"] = function() FAdmin.Access.AddPrivilege("Ragdoll", 2) FAdmin.Commands.AddCommand("Ragdoll", nil, "<Player>", "[normal/hang/kick]") FAdmin.Commands.AddCommand("UnRagdoll", nil, "<Player>") FAdmin.ScoreBoard.Player:AddActionButton(function(ply) if ply:FAdmin_GetGlobal("fadmin_ragdolled...
gpl-3.0
mattyx14/otxserver
data/monster/quests/wrath_of_the_emperor/the_keeper.lua
2
2853
local mType = Game.createMonsterType("The Keeper") local monster = {} monster.description = "The Keeper" monster.experience = 3205 monster.outfit = { lookType = 220, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 40000 monster.maxHealth = 40000 monster....
gpl-2.0
christopherjwang/rackspace-monitoring-agent
tests/test-protocol.lua
4
1079
--[[ Copyright 2015 Rackspace 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 Unless required by applicable law or agreed to in writing, software dis...
apache-2.0
jucor/lua-sci
dist/_normal.lua
1
3728
-------------------------------------------------------------------------------- -- Normal statistical distribution. -- -- Copyright (C) 2011-2013 Stefano Peluchetti. All rights reserved. -- -- Features, documention and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is release...
mit
fo369/luci-1505
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
31
1569
-- 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
dinodeck/rpg_conversation_graph
nwn_dialog_advanced/code/CombatActions.lua
6
4634
local function AddAnimEffect(state, entity, def, spf) local x = entity.mX local y = entity.mY + (entity.mHeight * 0.75) local effect = AnimEntityFx:Create(x, y, def, def.frames, spf) state:AddEffect(effect) end local function AddTextNumberEffect(state, entity, num, color) local x = entity.mX l...
mit
PAC3-Server/ServerContent
lua/notagain/essential/autorun/player_grab.lua
2
3152
local tag = "player_grab" do -- meta local PLAYER = FindMetaTable("Player") function PLAYER:IsBeingPhysgunned() local pl = self._is_being_physgunned if pl then if isentity(pl) and not IsValid(pl) then return false end return true end end function PLAYER:SetPhysgunImmune(bool) self._physgun_i...
mit
mattyx14/otxserver
data/scripts/spells/attack/groundshaker.lua
2
1071
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_GROUNDSHAKER) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) combat:setParameter(COMBAT_PARAM_USECHARGES, 1) combat:setArea(createCombatArea(AREA_CIRCLE3X3)) function onGetFormulaVal...
gpl-2.0
Suprcheese/Vehicle-Wagon
stdlib/event/time.lua
8
3085
--- Time Event module -- @module Event.Time require 'stdlib/event/event' require 'stdlib/time' Event.Time = {} Event.Time._last_change = {} --All times are offset by 0.5 --This is because both EvoGUI and MoWeather already apply that offset. --Following the precedent to remain consistent. --Actually, this little snip...
mit
CarabusX/Zero-K
gamedata/modularcomms/weapons/shockrifle.lua
6
1102
local name = "commweapon_shockrifle" local weaponDef = { name = [[Shock Rifle]], areaOfEffect = 16, colormap = [[0 0 0 0 0 0 0.2 0.2 0 0 0.5 0.5 0 0 0.7 0.7 0 0 1 1 0 0 1 1]], craterBoost = 0, craterMult = 0, customParams ...
gpl-2.0
Starkkz/shadows
OutputShadow.lua
2
1609
module("shadows.OutputShadow", package.seeall) Object = require("shadows.Object") OutputShadow = setmetatable( {}, Object ) OutputShadow.__index = OutputShadow OutputShadow.__type = "OutputShadow" OutputShadow.Type = "draw" function OutputShadow:new(Type, Mode, ...) local self = setmetatable( {}, OutputShadow ) ...
mit
CarabusX/Zero-K
units/vehriot.lua
4
3575
return { vehriot = { unitname = [[vehriot]], name = [[Ripper]], description = [[Riot Rover]], acceleration = 0.191, brakeRate = 1.488, buildCostMetal = 240, builder = false, buildPic = [[vehriot.png]], canGuard =...
gpl-2.0
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/far_seer/far_sight.lua
1
1983
--[[ Author: Noya Date: 17.01.2015. Gives vision over an area and shows a particle to the team ]] function FarSight( event ) local caster = event.caster local ability = event.ability local level = ability:GetLevel() local reveal_radius = ability:GetLevelSpecialValueFor( "reveal_radius", level - 1 ) local durati...
gpl-3.0