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 |
|---|---|---|---|---|---|
omniAwesome/tbag-tank | classes/cannon.lua | 2 | 6767 | -- Cannon
-- It consists of a tower and actual cannon. Cannon can rotate and shoot the cannon balls
local eachframe = require('libs.eachframe')
local relayout = require('libs.relayout')
local sounds = require('libs.sounds')
local _M = {}
local newBall = require('classes.ball').newBall
local newPuff = require('classe... | mit |
tysonliddell/OpenRA | mods/d2k/maps/harkonnen-05/harkonnen05-AI.lua | 4 | 2450 | --[[
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 |
DeinFreund/Zero-K | units/jumpbomb.lua | 1 | 3484 | unitDef = {
unitname = [[jumpbomb]],
name = [[Skuttle]],
description = [[Cloaked Jumping Anti-Heavy Bomb]],
acceleration = 0.18,
brakeRate = 0.54,
buildCostMetal = 550,
builder = false,
buildPic = [[ju... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 16 | 1711 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Grounds_Tome.lua | 34 | 1149 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function ... | gpl-3.0 |
Al-Asaadi/llGHll | plugins/h2.lua | 1 | 1991 | do
function run(msg, matches)
return [[
🔹 أوامر الحماية داخل المجموعة 🔹
_________________
🔹طرد <معرف-رد> : طرد | ⛔️
🔹كتم <معرف-رد> : كتم | 🔕
🔹حظر <معرف-رد> : حظر | 🚷
🔹الغاء الحظر <معرف-رد> : الغاء الحظر | ⭕️
🔹قائمة الحظر : المحظورين | 🆘
🔹ايدي : ايدي | 🆔
🔹مغادرة : مغادرة | 🚫
______________... | gpl-2.0 |
hiddenvirus/hiddenblaster | bot/bot.lua | 2 | 7095 | 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")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
DaTaK-BoT/DaTaK | 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 |
codelua/TabliqGar | 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 |
DeinFreund/Zero-K | LuaRules/Configs/icon_generator.lua | 5 | 10219 | -- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $
-----------------------------------------------------------------------
-----------------------------------------------------------------------
--
-- Icon Generator Config File
--
--// Info
if (info) then
local ratios = {["5to4"]=(4/5)} --{["16to10"]... | gpl-2.0 |
u20024804/fbcunn | test/test_WeightedLookupTable.lua | 8 | 2146 | -- Copyright 2004-present Facebook. All Rights Reserved.
require('fbtorch')
require('fb.luaunit')
require('fbcunn')
require('nn')
local function all(tensor)
return torch.sum(torch.ne(tensor, 0)) == tensor:numel()
end
local function almost_equal(t1, t2, tol)
return torch.lt(torch.abs(t1 - t2), tol)
end
-- w... | bsd-3-clause |
Jmainguy/docker_images | prosody/prosody/share/lua/5.1/luarocks/pack.lua | 20 | 7450 |
--- Module implementing the LuaRocks "pack" command.
-- Creates a rock, packing sources or binaries.
--module("luarocks.pack", package.seeall)
local pack = {}
package.loaded["luarocks.pack"] = pack
local unpack = unpack or table.unpack
local path = require("luarocks.path")
local repos = require("luarocks.repos")
loc... | gpl-2.0 |
three2one/Atlas | examples/tutorial-union.lua | 40 | 1614 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/ulbukan_lobster.lua | 18 | 1342 | -----------------------------------------
-- ID: 5960
-- Item: Ulbukan Lobster
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 1
-- Defense +9%
-----------------------------------------
require("scripts/globals/status");
----------------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Castle_Oztroja/npcs/_m70.lua | 19 | 1199 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m70 (Torch Stand)
-- Involved in Mission: Magicite
-- @pos -97.134 24.250 -105.979 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/key... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Monastic_Cavern/npcs/Altar.lua | 27 | 1815 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Altar
-- Involved in Quests: The Circle of Time
-- @pos 109 -3 -145 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hadayah.lua | 24 | 1799 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hadayah
-- Type: Alchemy Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
hiddenvirus/hiddenblaster | 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 |
AresTao/darkstar | scripts/globals/abilities/building_flourish.lua | 28 | 2817 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your nex... | gpl-3.0 |
thess/OpenWrt-luci | applications/luci-app-statistics/luasrc/statistics/i18n.lua | 39 | 1879 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.i18n", package.seeall)
require("luci.util")
require("luci.i18n")
Instance = luci.util.class()
function Instance.__init__( self, graph )
self.i18n = luci.i18n
se... | apache-2.0 |
gsage/engine | Tests/resources/specs/eal_spec.lua | 1 | 6743 | local eal = require 'lib.eal.manager'
-- registering test system assembly
local function decorator(cls)
-- also setup configure and destroy chains
cls.onCreate(function(self)
self.calledOnCreate = true
end, 100)
-- also setup configure and destroy chains
cls.onDestroy(function(self)
self.calledOnDes... | mit |
gsage/engine | resources/scripts/imgui/tools.lua | 1 | 1684 | require 'lib.class'
require 'imgui.base'
local icons = require 'imgui.icons'
local lm = require 'lib.locales'
local cm = require 'lib.context'
-- editor tools
ToolsView = class(ImguiWindow, function(self, open, positioner)
ImguiWindow.init(self, "tools", false, open)
self.icon = icons.dehaze
self.flags = ImGuiWi... | mit |
AresTao/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_1.lua | 21 | 2312 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_1)
-- @pos -245.000 -18.100 660.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/glo... | gpl-3.0 |
DeinFreund/Zero-K | units/damagesinkrock.lua | 6 | 1114 | unitDef = {
unitname = [[rocksink]],
name = [[Rocking Damage Sink thing]],
description = [[Rocks when you shoot at it.]],
acceleration = 0,
autoHeal = 500000,
buildCostMetal = 10,
builder = false,
buildingGr... | gpl-2.0 |
DeinFreund/Zero-K | LuaUI/Widgets/chili_new/headers/skinutils.lua | 1 | 35191 | --//=============================================================================
--//
function _DrawTextureAspect(x,y,w,h ,tw,th)
local twa = w/tw
local tha = h/th
local aspect = 1
if (twa < tha) then
aspect = twa
y = y + h*0.5 - th*aspect*0.5
h = th*aspect
else
aspect = tha
x = x + w*0... | gpl-2.0 |
rafael/kong | kong/plugins/oauth2/schema.lua | 13 | 1225 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local function generate_if_missing(v, t, column)
if not v or stringy.strip(v) == "" then
return true, nil, { [column] = utils.random_string()}
end
return true
end
local function check_mandatory_scope(v, t)
if v and not t.scopes the... | apache-2.0 |
cokeboL/gopher-lua | _lua5.1-tests/locals.lua | 18 | 2728 | print('testing local variables plus some extra stuff')
do
local i = 10
do local i = 100; assert(i==100) end
do local i = 1000; assert(i==1000) end
assert(i == 10)
if i ~= 10 then
local i = 20
else
local i = 30
assert(i == 30)
end
end
f = nil
local f
x = 1
a = nil
loadstring('local a = {}... | mit |
black123456789/man | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
CarabusX/Zero-K | units/jumpsumo.lua | 3 | 8904 | return { jumpsumo = {
unitname = [[jumpsumo]],
name = [[Jugglenaut]],
description = [[Heavy Riot Jumper]],
acceleration = 0.3,
activateWhenBuilt = true,
brakeRate = 1.8,
buildCostMetal = 1700,
builder = false,
buildPic = ... | gpl-2.0 |
CarabusX/Zero-K | units/cloakjammer.lua | 4 | 1963 | return { cloakjammer = {
unitname = [[cloakjammer]],
name = [[Iris]],
description = [[Area Cloaker/Jammer Walker]],
acceleration = 0.75,
activateWhenBuilt = true,
brakeRate = 4.5,
buildCostMetal = 600,
buildPic ... | gpl-2.0 |
awilliamson/Starfall | lua/weapons/gmod_tool/stools/starfall_processor.lua | 1 | 5151 | TOOL.Category = "Wire - Control"
TOOL.Name = "Starfall - Processor"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
-- ------------------------------- Sending / Recieving ------------------------------- --
include("starfall/sflib.lua")
local MakeSF
TOOL.ClientConVar[ "Model" ] = "models/spacecode/sf... | bsd-3-clause |
mattyx14/otxserver | data/monster/humans/barbarian_headsplitter.lua | 2 | 3061 | local mType = Game.createMonsterType("Barbarian Headsplitter")
local monster = {}
monster.description = "a barbarian headsplitter"
monster.experience = 85
monster.outfit = {
lookType = 253,
lookHead = 115,
lookBody = 86,
lookLegs = 119,
lookFeet = 113,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 333
monst... | gpl-2.0 |
javad7070/senior | 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 |
haswne/IRAQ_BOT | 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 |
NAHAR99/GENERAL | 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 |
mattyx14/otxserver | data/monster/giants/orclops_ravager.lua | 2 | 3704 | local mType = Game.createMonsterType("Orclops Ravager")
local monster = {}
monster.description = "an orclops ravager"
monster.experience = 1100
monster.outfit = {
lookType = 935,
lookHead = 94,
lookBody = 1,
lookLegs = 80,
lookFeet = 94,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1320
monster.Bestiary = ... | gpl-2.0 |
mojo2012/factorio-mojo-resource-processing | prototypes/entity/biofarm/tree-growing.lua | 1 | 2302 | require("prototypes.entity.biofarm.tree-definitions")
data:extend({
{
type = "tree",
name = "seedling",
icon = "__mojo-resource-processing__/graphics/icons/biofarm/seedling.png",
flags = {"placeable-neutral", "placeable-player", "player-creation", "breaths-air"},
minable = {
minin... | gpl-3.0 |
spillerrec/BooruSurfer2 | premake4.lua | 1 | 1695 | solution( "BooruSurfer2" )
configurations{ "debug", "release" }
project( "Server" )
kind( "ConsoleApp" )
targetname( "BooruSurfer" )
language( "C++" )
location( "build" )
files( { "./src/**.h", "./src/**.cpp" } )
-- Enable C++14 support
buildoptions{ "-std=c++14 -pthread" }
-- Warnings
build... | gpl-3.0 |
punisherbot/erfan | bot/seedbot.lua | 24 | 10036 | 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")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
hussian1997/hhhuu | plugins/set_type.lua | 8 | 1166 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀... | agpl-3.0 |
mattyx14/otxserver | data/monster/quests/forgotten_knowledge/soulcatcher.lua | 2 | 2063 | local mType = Game.createMonsterType("Soulcatcher")
local monster = {}
monster.description = "a soulcatcher"
monster.experience = 320
monster.outfit = {
lookTypeEx = 11053
}
monster.health = 50000
monster.maxHealth = 50000
monster.race = "undead"
monster.corpse = 0
monster.speed = 0
monster.manaCost = 0
monster.cha... | gpl-2.0 |
mojo2012/factorio-mojo-resource-processing | prototypes/item/ore-processing/metal-products.lua | 1 | 3258 | data:extend(
{
{
type = "item",
name = "tin-plate",
icon = "__mojo-resource-processing__/graphics/icons/ore-tin/tin-plate.png",
flags = {"goes-to-main-inventory"},
subgroup = "raw-material",
order = "c-a-a[tin-plate]",
stack_size = 200
},
{
type = "item",
name = "silver-plate",... | gpl-3.0 |
piccaso/debian-luakit | lib/cookie_blocking.lua | 7 | 1954 | ------------------------------------------------------
-- Simple domain-based cookie blocking --
-- © 2011 Mason Larobina <mason.larobina@gmail.com> --
------------------------------------------------------
require "cookies"
cookies.whitelist_path = luakit.config_dir .. "/cookie.whitelist"
cookies.blackl... | gpl-3.0 |
mattyx14/otxserver | data/monster/giants/ogre_savage.lua | 2 | 3420 | local mType = Game.createMonsterType("Ogre Savage")
local monster = {}
monster.description = "an ogre savage"
monster.experience = 950
monster.outfit = {
lookType = 858,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1162
monster.Bestiary = {
class = "... | gpl-2.0 |
PeqNP/GameKit | specs/heroin_spec.lua | 1 | 2271 | require("lang.Signal")
local ServiceLocator = require("heroin.ServiceLocator")
-- Dummy classes
local MyClass = Class()
function MyClass.new(self)
end
local SameClass = Class()
function SameClass.new(self)
local id
function self.init(i)
id = i
end
function self.getId()
return id
en... | mit |
amirhosein2233/uzzbot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
lujingwei002/nodesrv | framework/nodesrv/debug/scenesrv/module/login.lua | 1 | 5284 | module('Login', package.seeall)
tmp_player_manager = tmp_player_manager or {}
player_manager = player_manager or {
--[uid] = player
}
player_count = player_count or 0
function PLAYER_ENTER(gatesrv, uid)
tmp_player_manager[uid] = gatesrv
loginfo('player enter uid(%d)', uid)
POST(centersrv, 'Login.PLAY... | apache-2.0 |
fo369/luci-1505 | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/netlink.lua | 68 | 2502 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
local devices = luci.sys.net.devices()
m = Map("luci_statistics",
translate("Netlink Plugin Configuration"),
translate(
"The netlink plugin collects extended informa... | apache-2.0 |
nitheeshkl/kln_awesome | awesome_3.5/vicious/contrib/dio.lua | 16 | 2210 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local ipairs = ipairs
local setmetatable = setmetatable
local table = { insert = table.inser... | gpl-2.0 |
rigeirani/nodc | plugins/welcome.lua | 114 | 3529 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
CarabusX/Zero-K | units/turretaaheavy.lua | 1 | 4367 | return { turretaaheavy = {
unitname = [[turretaaheavy]],
name = [[Artemis]],
description = [[Very Long-Range Anti-Air Missile Tower, Drains 4 m/s, 20 second stockpile]],
acceleration = 0,
activateWhenBuilt = true,
b... | gpl-2.0 |
Venomstrike/SimpleUI_WoW | Libs/AceDB-3.0/AceDB-3.0.lua | 11 | 24711 | --- **AceDB-3.0** manages the SavedVariables of your addon.
-- It offers profile management, smart defaults and namespaces for modules.\\
-- Data can be saved in different data-types, depending on its intended usage.
-- The most common data-type is the `profile` type, which allows the user to choose
-- the active profi... | mit |
zain211/zain.aliraqex | libs/dateparser.lua | 114 | 6213 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-2.0 |
CarabusX/Zero-K | effects/gundam_mainmegapartgun.lua | 26 | 2945 | -- mainmegapartgun
return {
["mainmegapartgun"] = {
dirt = {
count = 4,
ground = true,
properties = {
alphafalloff = 2,
alwaysvisible = true,
color = [[0.2, 0.1, 0.05]],
pos = [[r-10 r10, 0, r-10 r10... | gpl-2.0 |
rafael/kong | spec/integration/admin_api/kong_routes_spec.lua | 20 | 2623 | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local utils = require "kong.tools.utils"
describe("Admin API", function()
setup(function()
spec_helper.prepare_db()
spec_helper.start_kong()
end)
teardown(function()
spe... | apache-2.0 |
TideSofDarK/DotaCraft | game/dota_addons/dotacraft/scripts/vscripts/units/undead/ghoul.lua | 1 | 6096 | require('units/undead/meat_wagon')
function cannibalize(keys)
local caster = keys.caster
local ability = keys.ability
local RADIUS = ability:GetSpecialValueFor("search_radius")
-- find all dota creatures within radius
local targets = Entities:FindAllByNameWithin("npc_dota_creature", caster:GetAbsOrigin(), RADIUS)
... | gpl-3.0 |
kbara/snabb | lib/ljsyscall/syscall/osx/syscalls.lua | 18 | 1899 | -- OSX specific syscalls
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require "syscall.abi"
r... | apache-2.0 |
kbara/snabb | src/apps/lwaftr/fragmentv4_test.lua | 3 | 17270 | -- Allow both importing this script as a module and running as a script
if type((...)) == "string" then module(..., package.seeall) end
local constants = require("apps.lwaftr.constants")
local fragmentv4 = require("apps.lwaftr.fragmentv4")
local fragv4_h = require("apps.lwaftr.fragmentv4_hardened")
local eth_proto = r... | apache-2.0 |
focusworld/nn | 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 |
delram/seedup1 | 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 |
zakariaRobot/TeleSeed | 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 |
mattyx14/otxserver | data/monster/raids/arachir_the_ancient_one.lua | 2 | 3416 | local mType = Game.createMonsterType("Arachir The Ancient One")
local monster = {}
monster.description = "Arachir The Ancient One"
monster.experience = 1800
monster.outfit = {
lookType = 287,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 1600
monster.m... | gpl-2.0 |
mattyx14/otxserver | data/monster/humans/pirate_buccaneer.lua | 2 | 3122 | local mType = Game.createMonsterType("Pirate Buccaneer")
local monster = {}
monster.description = "a pirate buccaneer"
monster.experience = 250
monster.outfit = {
lookType = 97,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 249
monster.Bestiary = {
cl... | gpl-2.0 |
DL-Benchmarks/DL-Benchmarks | torch/LeNet/lenet.lua | 1 | 4312 | -- Copyright (c) 2016 Robert Bosch LLC, USA.
-- All rights reserved.
--
-- This source code is licensed under the MIT license found in the
-- LICENSE file in the root directory of this source tree.
-- Timing of LeNet
require 'sys'
require 'nn'
require 'torch'
-- Initialize and Configure variables for LeNet benchmar... | mit |
CarabusX/Zero-K | LuaUI/Widgets/unit_marker.lua | 4 | 4339 | function widget:GetInfo() return {
name = "Unit Marker Zero-K",
desc = "[v1.3.10] Marks spotted buildings of interest and commander corpse.",
author = "Sprung",
date = "2015-04-11",
license = "GNU GPL v2",
layer = -1,
enabled = true,
} end
local knownUnits = {}
local unitList = {}
local markingActi... | gpl-2.0 |
mumuqz/luci | modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua | 11 | 4099 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt = 0, -- GMT
eat = 10800, -- EAT
cet = 3600, -- CET
wat = 3600, -- WAT
cat = 7200, -- CAT
eet = 7200, -- EET
wet = 0, -- WET
sast = 7200, -- SAST
hst = -36000, -- HS... | apache-2.0 |
garrysmodlua/wire | lua/entities/gmod_wire_digitalscreen/cl_init.lua | 3 | 7494 | include('shared.lua')
function ENT:Initialize()
self.Memory1 = {}
self.Memory2 = {}
self.LastClk = true
self.NewClk = true
self.Memory1[1048575] = 1
self.Memory2[1048575] = 1
self.NeedRefresh = true
self.IsClear = true
self.ClearQueued = false
self.RefreshPixels = {}
self.RefreshRows = {}
self.ScreenWidt... | apache-2.0 |
fo369/luci-1505 | modules/luci-base/luasrc/sys.lua | 40 | 15171 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local os = require "os"
local table = require "table"
local nixio = require "nixio"
local fs = require "nixio.fs"
local uci = require "luci.model.uci"
local luci = {}
l... | apache-2.0 |
fo369/luci-1505 | build/luadoc/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | apache-2.0 |
mattyx14/otxserver | data/monster/quests/wrath_of_the_emperor/snake_god_essence.lua | 2 | 2493 | local mType = Game.createMonsterType("Snake God Essence")
local monster = {}
monster.description = "Snake God Essence"
monster.experience = 7410
monster.outfit = {
lookType = 356,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 65000
monster.maxHealth = ... | gpl-2.0 |
EvilHero90/tfstemp | data/actions/scripts/other/windows.lua | 12 | 2054 | local windows = {
[5303] = 6448, [5304] = 6449, [6438] = 6436, [6436] = 6438,
[6439] = 6437, [6437] = 6439, [6442] = 6440, [6440] = 6442,
[6443] = 6441, [6441] = 6443, [6446] = 6444, [6444] = 6446,
[6447] = 6445, [6445] = 6447, [6448] = 5303, [6449] = 5304,
[6452] = 6450, [6450] = 6452, [6453] = 6451, [6451] = 645... | gpl-2.0 |
matinbot/telewebamoz | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
mattyx14/otxserver | data/startup/tables/chest.lua | 2 | 1216 | --[[
Look README.md for see the reserved action/unique numbers
From range 5000 to 6000 is reserved for keys chest
From range 6001 to 472 is reserved for script reward
Path: data\scripts\actions\system\quest_reward_common.lua
From range 473 to 15000 is reserved for others scripts (varied rewards)
There is no nee... | gpl-2.0 |
kbara/snabb | lib/luajit/src/jit/v.lua | 78 | 5755 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
CarabusX/Zero-K | effects/feature_poof.lua | 22 | 1425 | -- feature_poof
return {
["feature_poof_spawner"] = {
poof01 = {
air = true,
class = [[CExpGenSpawner]],
count = [[10]],
ground = true,
properties = {
delay = [[i1 x0.1d]],
damage = [[d1]],... | gpl-2.0 |
mattyx14/otxserver | data/monster/mammals/skunk.lua | 2 | 2348 | local mType = Game.createMonsterType("Skunk")
local monster = {}
monster.description = "a skunk"
monster.experience = 3
monster.outfit = {
lookType = 106,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 106
monster.Bestiary = {
class = "Mammal",
race =... | gpl-2.0 |
imeteora/cocos2d-x-3.x-Qt | tests/lua-tests/src/ParticleTest/ParticleTest.lua | 10 | 43736 |
local SceneIdx = -1
local MAX_LAYER = 42
local emitter = nil
local background = nil
local labelAtlas = nil
local titleLabel = nil
local subtitleLabel = nil
local baseLayer_entry = nil
local s = cc.Director:getInstance():getWinSize()
local function backAction()
SceneIdx = SceneIdx - 1
if SceneIdx < 0 then
... | gpl-2.0 |
CarabusX/Zero-K | LuaUI/Widgets/chili/Skins/Carbon/skin.lua | 8 | 5888 | --// =============================================================================
--// Skin
local skin = {
info = {
name = "Carbon",
version = "1.0",
author = "luckywaldo7",
}
}
--// =============================================================================
--//
skin.general = {
focusColor = {0.0, ... | gpl-2.0 |
CarabusX/Zero-K | lups/headers/tablebin.lua | 8 | 3185 | -- $Id: tablebin.lua 3171 2008-11-06 09:06:29Z det $
--[[
Binary Search a Table
Binary Insert into Table (faster than table.insert and table.sort combined)
v 0.3
Lua 5.1 compatible
]]--
--[[
table.binsearch( table, value [, compval [, reversed] ] )
Searches the table through BinarySearch for the given value.
... | gpl-2.0 |
dani-sj/komyl | 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 |
clandmeter/aports-turbo | controller.lua | 1 | 7056 | local turbo = require("turbo")
-- we use lustache instead of turbo's limited mustache engine
local lustache = require("lustache")
local conf = require("config")
local db = require("db")
local mail = require("mail")
local model = require("model")
local cntrl = class("cntrl")
-- move al... | mit |
mattyx14/otxserver | data/scripts/movements/others/closing_door.lua | 2 | 3349 | -- Level and quests closing door (onStepIn).
-- This prevents a player who has not yet done the quest, from crossing the player who has already done so, skipping the entire quest and going straight to the final reward.
local closingDoor = MoveEvent()
local doorIds = {}
for index, value in ipairs(QuestDoorTable) do
... | gpl-2.0 |
hust921/dotfiles | config/nvim/lua/user/alpha.lua | 1 | 1056 | local alpha = require('alpha')
local startify = require('alpha.themes.startify')
startify.section.header.val = {
[[ __ ]],
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
[[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
... | mit |
CarabusX/Zero-K | LuaUI/callins.lua | 4 | 2350 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: callins.lua
-- brief: array and map of call-ins
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GN... | gpl-2.0 |
mojo2012/factorio-mojo-resource-processing | prototypes/item/ore-processing/ore-tin.lua | 1 | 1114 | require("ore-general")
-- item definitions
data:extend({
{
type= "item",
name= "ore-tin-crushed",
icon = "__mojo-resource-processing__/graphics/icons/ore-tin/crushed-ore-tin.png",
flags= { "goes-to-main-inventory" },
subgroup = "tin",
order = "f[ore-tin-crushed]",
stack_size= 50,
},
{... | gpl-3.0 |
mattyx14/otxserver | data/monster/quests/cults_of_tibia/bosses/wine_cask.lua | 2 | 1714 | local mType = Game.createMonsterType("Wine Cask")
local monster = {}
monster.description = "a wine cask"
monster.experience = 0
monster.outfit = {
lookTypeEx = 2521
}
monster.health = 30000
monster.maxHealth = 30000
monster.race = "blood"
monster.corpse = 0
monster.speed = 0
monster.manaCost = 0
monster.changeTarge... | gpl-2.0 |
houqp/koreader-base | ffi/linux_input_h.lua | 1 | 1320 | local ffi = require("ffi")
ffi.cdef[[
static const int EVIOCGRAB = 1074021776;
static const int EV_SYN = 0;
static const int EV_KEY = 1;
static const int EV_REL = 2;
static const int EV_ABS = 3;
static const int EV_MSC = 4;
static const int EV_SW = 5;
static const int EV_LED = 17;
static const int EV_SND = 18;
static ... | agpl-3.0 |
mattyx14/otxserver | data/monster/magicals/feversleep.lua | 2 | 3873 | local mType = Game.createMonsterType("Feversleep")
local monster = {}
monster.description = "a feversleep"
monster.experience = 4400
monster.outfit = {
lookType = 593,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1021
monster.Bestiary = {
class = "Ma... | gpl-2.0 |
mattyx14/otxserver | data/monster/event_creatures/memory_creatures/memory_of_a_golem.lua | 2 | 2959 | local mType = Game.createMonsterType("Memory Of A Golem")
local monster = {}
monster.description = "a memory of a golem"
monster.experience = 1620
monster.outfit = {
lookType = 600,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3660
monster.maxHealth =... | gpl-2.0 |
CarabusX/Zero-K | gamedata/modularcomms/weapons/hparticlebeam.lua | 6 | 1100 | local name = "commweapon_hparticlebeam"
local weaponDef = {
name = [[Heavy Particle Beam]],
beamDecay = 0.9,
beamTime = 1/30,
beamttl = 75,
coreThickness = 0.5,
craterBoost = 0,
craterMult = 0,
customParams ... | gpl-2.0 |
piccaso/debian-luakit | config/modes.lua | 15 | 5034 | -------------------------------
-- luakit mode configuration --
-------------------------------
-- Table of modes and their callback hooks
local modes = {}
local lousy = require "lousy"
local join = lousy.util.table.join
local order = 0
-- Add new mode table (optionally merges with original mode)
function new_mode(na... | gpl-3.0 |
fo369/luci-1505 | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 68 | 1923 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
pbx_ael = module:option(ListV... | apache-2.0 |
ReclaimYourPrivacy/cloak-luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 68 | 1923 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
pbx_ael = module:option(ListV... | apache-2.0 |
PAC3-Server/ServerContent | lua/notagain/creatures/autorun/seagull.lua | 2 | 10134 | local ENT = {}
ENT.Type = "anim"
ENT.ClassName = "creature_seagull"
ENT.Base = "creature_base"
ENT.PrintName = "seagull"
ENT.Model = "models/seagull.mdl"
ENT.DefaultSize = 50
ENT.AlternateNetworking = true
function ENT:OnSizeChanged(size)
if CLIENT then
self.model:SetColor(Color(255, 255, Lerp(size/20, 100, 255), 2... | mit |
CarabusX/Zero-K | effects/annabelle.lua | 25 | 4477 | -- annabelle
-- annabelle_smokejet
return {
["annabelle"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = [[0 i1]],
... | gpl-2.0 |
PeqNP/GameKit | src/shim/HTTP.lua | 1 | 1821 | --
-- Provides convenience wrapper for Cocos2d-x XMLHttpRequest.
--
-- @copyright (c) 2016 Upstart Illustration LLC. All rights reserved.
--
require "Logger"
require "HTTPResponseType"
local Promise = require("Promise")
local HTTP = Class()
function HTTP.new(self)
--
-- Query endpoint using GET as the given... | mit |
EvilHero90/tfstemp | data/talkactions/scripts/kills.lua | 14 | 1396 | function onSay(cid, words, param)
local player = Player(cid)
local fragTime = configManager.getNumber(configKeys.FRAG_TIME)
if fragTime <= 0 then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.")
return false
end
local skullTime = player:getSkullTime()
if skullTime... | gpl-2.0 |
mattyx14/otxserver | data/monster/raids/mawhawk.lua | 2 | 3542 | local mType = Game.createMonsterType("Mawhawk")
local monster = {}
monster.description = "Mawhawk"
monster.experience = 14000
monster.outfit = {
lookType = 595,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 45000
monster.maxHealth = 45000
monster.race ... | gpl-2.0 |
CarabusX/Zero-K | LuaUI/Widgets/chili/Controls/combobox.lua | 4 | 5024 | --// =============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1", "item2", ...} items table of items in the ComboBox, (default {"items"})
-- @int[opt = 1] selected id of ... | gpl-2.0 |
abgoyal/nodemcu-firmware | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.