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 |
|---|---|---|---|---|---|
DanielParra159/EngineAndGame | Game/out/win32/assets/Maps/MapParser.lua | 1 | 1758 | function ParseMap(mapFile, mapName)
map = dofile(mapFile)
--print("mapFile "..mapFile)
--print("mapName "..mapName)
width = map["width"]
heightMap = map["height"]
tilewidth = map["tilewidth"]
tileheight = map["tileheight"]
--print("width "..width)
--print("height "..height)
--print("tilewidth... | cc0-1.0 |
kbara/snabb | lib/ljsyscall/syscall/bsd/types.lua | 24 | 9241 | -- BSD shared types
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 function init(c, types)
local abi ... | apache-2.0 |
ali0098/zombi-bot | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
zakariaRobot/TeleSeed | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
mattyx14/otxserver | data/monster/mammals/polar_bear.lua | 2 | 2225 | local mType = Game.createMonsterType("Polar Bear")
local monster = {}
monster.description = "a polar bear"
monster.experience = 28
monster.outfit = {
lookType = 42,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 42
monster.Bestiary = {
class = "Mammal"... | gpl-2.0 |
CarabusX/Zero-K | scripts/cloakheavyraid.lua | 4 | 6609 |
include "constants.lua"
-- pieces
local head = piece "head"
local hips = piece "hips"
local chest = piece "chest"
-- left arm
local lshoulder = piece "lshoulder"
local lforearm = piece "lforearm"
local halberd = piece "halberd"
local blade = piece "blade"
-- right arm
local rshoulder = piece "rshoulder"
local rfore... | gpl-2.0 |
CarabusX/Zero-K | LuaRules/Configs/MetalSpots/DeltaSiege_Island_8_Way.lua | 6 | 6430 | return { spots = {
{x = 8056, z = 7480, metal = 1 },
{x = 6792, z = 1768, metal = 1 },
{x = 5272, z = 1400, metal = 1 },
{x = 2216, z = 2792, metal = 1 },
{x = 6280, z = 9000, metal = 1 },
{x = 7544, z = 1896, metal = 1 },
{x = 8216, z = 3624, metal = 1 },
{x = 6328, z = 8680, metal = 1 },
{x =... | gpl-2.0 |
rafael/kong | spec/plugins/response-ratelimiting/schema_spec.lua | 10 | 1681 | local schemas = require "kong.dao.schemas_validation"
local validate_entity = schemas.validate_entity
local plugin_schema = require "kong.plugins.response-ratelimiting.schema"
describe("Response Rate Limiting schema", function()
it("should be invalid when no config is being set", function()
local config = {}
... | apache-2.0 |
mattyx14/otxserver | data/monster/bosses/raging_mage.lua | 2 | 4158 | local mType = Game.createMonsterType("Raging mage")
local monster = {}
monster.description = "a raging mage"
monster.experience = 3250
monster.outfit = {
lookType = 416,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3500
monster.maxHealth = 3500
monste... | gpl-2.0 |
mattyx14/otxserver | data/scripts/actions/other/baking.lua | 2 | 1510 | local liquidContainers = {2524, 2873, 2874, 2875, 2876, 2877, 2879, 2880, 2881, 2882, 2885, 2893, 2901, 2902, 2903}
local millstones = {1943, 1944, 1945, 1946}
local dough = {6276, 8018}
local oven = {2535, 2537, 2539, 2541 }
local baking = Action()
function baking.onUse(player, item, fromPosition, target, toPosition... | gpl-2.0 |
kbara/snabb | src/dasm.lua | 20 | 7281 |
--Binding to the DynASM encoding engine.
--Written by Cosmin Apreutesei. Public Domain.
local ffi = require'ffi'
local bit = require'bit'
local arch = ffi.arch
if arch == 'x64' then arch = 'x86' end --same linker for x64
local C = ffi.C
local M = {C = C}
M._VERSION = 10400
ffi.cdef[[
enum {
DASM_S_OK = 0x0... | apache-2.0 |
CarabusX/Zero-K | LuaRules/Configs/float_defs.lua | 6 | 5500 | -- initialRiseSpeed: Velocity which unit "pushes off" the bottom
-- riseAccel: Acceleration while trying to surface
-- riseUpDrag: Drag on negative velocity while trying to surface
-- riseDownDrag: Drag on positive velocity while trying to surface
-- sinkAccel: Acceleration while ... | gpl-2.0 |
aqasaeed/sparta | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
hacker44-h44/hacker44-spamer36 | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
tgp1994/LiquidRP-tgp1994 | gamemode/modules/doorsystem/cl_doors.lua | 1 | 4560 | local meta = FindMetaTable("Entity")
local black = Color(0, 0, 0, 255)
local white = Color(255, 255, 255, 200)
local red = Color(128, 30, 30, 255)
function meta:drawOwnableInfo()
if LocalPlayer():InVehicle() then return end
-- Look, if you want to change the way door ownership is drawn, don't edit this file, use th... | gpl-3.0 |
aqasaeed/sparta | plugins/time.lua | 771 | 2865 | -- 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 |
mattyx14/otxserver | data/monster/event_creatures/memory_creatures/memory_of_a_carnisylvan.lua | 2 | 2619 | local mType = Game.createMonsterType("Memory Of A Carnisylvan")
local monster = {}
monster.description = "a memory of a carnisylvan"
monster.experience = 1850
monster.outfit = {
lookType = 1418,
lookHead = 23,
lookBody = 98,
lookLegs = 22,
lookFeet = 61,
lookAddons = 1,
lookMount = 0
}
monster.health = 3800
mo... | gpl-2.0 |
fo369/luci-1505 | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widget... | apache-2.0 |
tgp1994/LiquidRP-tgp1994 | gamemode/fpp/client/FPP_Buddies.lua | 2 | 4235 | FPP = FPP or {}
--Make buddies if not there
sql.Query("CREATE TABLE IF NOT EXISTS FPP_Buddies('steamid' TEXT NOT NULL, 'name' TEXT NOT NULL, 'physgun' INTEGER NOT NULL, 'gravgun' INTEGER NOT NULL, 'toolgun' INTEGER NOT NULL, 'playeruse' INTEGER NOT NULL, 'entitydamage' INTEGER NOT NULL, PRIMARY KEY('steamid'));")
FPP... | gpl-3.0 |
hacker44-h44/hacker44-spamer36 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
PAC3-Server/ServerContent | lua/notagain/pac_server/autorun/server/voice_chat_3d.lua | 2 | 2679 | local function canHear(listener, talker)
local lShootPos = listener:GetShootPos()
local tShootPos = talker:GetShootPos()
local distance = lShootPos:DistToSqr(tShootPos)
local wallDepth = 0
if distance > 360000 then return false end
local trA = util.TraceLine({
start = listener:GetShoo... | mit |
mattyx14/otxserver | data/monster/quests/svargrond_arena/scrapper/the_hag.lua | 2 | 2834 | local mType = Game.createMonsterType("The Hag")
local monster = {}
monster.description = "The Hag"
monster.experience = 510
monster.outfit = {
lookType = 264,
lookHead = 19,
lookBody = 20,
lookLegs = 59,
lookFeet = 2,
lookAddons = 0,
lookMount = 0
}
monster.health = 935
monster.maxHealth = 935
monster.race = "... | gpl-2.0 |
delram/seedup1 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
CarabusX/Zero-K | effects/yellow_lightning.lua | 7 | 18483 | -- yellow_lightning_bomb
-- yellow_lightning_bluebolts
-- yellow_lightning_groundflash
-- yellow_lightning_bomb_yellowbolts
-- yellow_lightning_muzzle
-- yellow_lightning_yellowbolts
-- yellow_lightning_bomb_bluebolts
-- yellow_lightningplosion
-- yellow_lightning_stormbolt
local circleString = "r%.5f y10 -1 x10x10 y1... | gpl-2.0 |
tgp1994/LiquidRP-tgp1994 | gamemode/dlc/cl_hitman.lua | 1 | 3171 | local LDRP_Hitman,CurHits,MC = {},0,math.Clamp
LDRP_Hitman.Hits = {}
function LDRP_Hitman.ReceiveHit(um)
CurHits = CurHits+1
LDRP_Hitman.Hits[CurHits] = um:ReadEntity()
MsgN("Added")
end
usermessage.Hook("SendHitt",LDRP_Hitman.ReceiveHit)
function LDRP_Hitman.RemoveHit(um)
local playa = um:ReadString()
for k,v i... | gpl-3.0 |
hacker44-h44/50 | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
mattyx14/otxserver | data/monster/quests/ancient_tombs/vashresamun.lua | 2 | 3266 | local mType = Game.createMonsterType("Vashresamun")
local monster = {}
monster.description = "Vashresamun"
monster.experience = 2950
monster.outfit = {
lookType = 85,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 4000
monster.maxHealth = 4000
monster.r... | gpl-2.0 |
CarabusX/Zero-K | LuaUI/Widgets/gui_epicmenu.lua | 5 | 104827 | function widget:GetInfo()
return {
name = "EPIC Menu",
desc = "v1.439 Extremely Powerful Ingame Chili Menu.",
author = "CarRepairer",
date = "2009-06-02", --2014-05-3
license = "GNU GPL, v2 or later",
layer = -100001,
handler = true,
enabled = true,
alwaysStart = true,
}
... | gpl-2.0 |
CarabusX/Zero-K | scripts/starlight_satellite.lua | 6 | 4036 | include "constants.lua"
-- these are satellite pieces
local LimbA1 = piece('LimbA1')
local LimbA2 = piece('LimbA2')
local LimbB1 = piece('LimbB1')
local LimbB2 = piece('LimbB2')
local LimbC1 = piece('LimbC1')
local LimbC2 = piece('LimbC2')
local LimbD1 = piece('LimbD1')
local LimbD2 = piece('LimbD2')
local Satellite =... | gpl-2.0 |
haswne/IRAQ_BOT | plugins/getlink.lua | 4 | 27427 |
do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
moderators = {},
set_owner = memb... | gpl-2.0 |
cho4036/package | net/luci-app-clamav/files/model/cbi/clamav-cbi.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sar... | gpl-2.0 |
mattyx14/otxserver | data/monster/quests/heart_of_destruction/disruption.lua | 2 | 2053 | local mType = Game.createMonsterType("Disruption")
local monster = {}
monster.description = "a disruption"
monster.experience = 398
monster.outfit = {
lookTypeEx = 22761
}
monster.health = 12000
monster.maxHealth = 12000
monster.race = "venom"
monster.corpse = 0
monster.speed = 340
monster.manaCost = 0
monster.chan... | gpl-2.0 |
kikito/project-x | src/entities/explosion.lua | 2 | 2992 | --[[
-- Explosion Class
-- Explosions are very special. They are inside the "Entities" folder, but
-- they are not a subclass of Entity, like the rest. This is because when an
-- explosion is created, it does its thing, and it immediatelly disappears!
--
-- "Its thing" is:
-- * Shakes the camera
-- * Destroying Guardia... | mit |
mattyx14/otxserver | data/scripts/spells/monster/walker_skill_reducer.lua | 2 | 2278 | local combat = {}
for i = 45, 60 do
combat[i] = Combat()
local condition1 = Condition(CONDITION_ATTRIBUTES)
condition1:setParameter(CONDITION_PARAM_TICKS, 7000)
condition1:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, i)
condition1:setParameter(CONDITION_PARAM_SKILL_FISTPERCENT, i)
condition1:setParameter(CO... | gpl-2.0 |
mumuqz/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/iptables.lua | 68 | 3415 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys.iptparser")
ip = luci.sys.iptparser.IptParser()
chains = { }
targets = { }
for i, rule in ipairs( ip:find() ) do
if rule.chain and rule.target then
chains[rule.chain] ... | apache-2.0 |
bullno1/Akuma | samples/arc/arc.lua | 1 | 2053 | module("arc", package.seeall)
--Modules
local copas = require "copas"
local socket = require "socket"
--Constants
local EQUAL = ("="):byte()
--Convert a list of parameters to a string, separated with tab
local function paramsToString(...)
local result = {}
for _, v in ipairs(arg) do
table.insert(result, tostring(... | mit |
CarabusX/Zero-K | LuaUI/Widgets/mission_results.lua | 8 | 1806 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Mission Results Handler",
desc = "What it says on the tin",
author = "KingRaptor (L.J. Lim)",
... | gpl-2.0 |
pampersrocker/risky-epsilon | Game/data/scripts/samples/pong.lua | 1 | 5722 | print("Executing pong.lua")
--World
local cinfo = WorldCInfo()
cinfo.gravity = Vec3(0.0, 0.0, -9.81)
cinfo.worldSize = 2000.0
local world = PhysicsFactory:createWorld(cinfo)
PhysicsSystem:setWorld(world)
--PhysicsDebugView
PhysicsSystem:setDebugDrawingEnabled(true)
--// strip-start "PongImpl"
local ... | mit |
luizsan/ultimate | BGAnimations/ScreenEditMenu overlay.lua | 1 | 6589 | local steps_item_space= _screen.h*.05
local steps_item_width= steps_item_space * .75
local steps_type_item_space= _screen.h*.06
local steps_display= setmetatable({disable_wrapping= true}, item_scroller_mt)
local function steps_transform(self, item_index, num_items)
self.container:xy((item_index-.5) * steps_item_space... | mit |
tgp1994/LiquidRP-tgp1994 | entities/weapons/weapon_real_cs_desert_eagle/shared.lua | 1 | 2065 | -- Read the weapon_real_base if you really want to know what each action does
if (SERVER) then
AddCSLuaFile("shared.lua")
end
if (CLIENT) then
SWEP.PrintName = "DESERT EAGLE .50"
SWEP.ViewModelFOV = 70
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.IconLetter = "f"
killicon.AddFont("weapon_real_cs_desert_eagle... | gpl-3.0 |
PeqNP/GameKit | src/shim/System.lua | 1 | 12459 | --
-- Wrapper for system and common API related features of the underlying
-- gaming framework.
--
-- @copyright (c) 2014 Upstart Illustration LLC. All rights reserved.
--
require "Logger"
local Error = require("Error")
local Promise = require("Promise")
local NTPClient = require("ntp.Client")
local shim = {}
funct... | mit |
mattyx14/otxserver | data/monster/reptiles/wyvern.lua | 2 | 3625 | local mType = Game.createMonsterType("Wyvern")
local monster = {}
monster.description = "a wyvern"
monster.experience = 515
monster.outfit = {
lookType = 239,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 290
monster.Bestiary = {
class = "Reptile",
r... | gpl-2.0 |
THS56/DEVNOVAR | plugins/spam.lua | 4 | 6755 |
kicktable = {}
do
local DEV_NOVAR = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save user on Redis
if msg.from.type == 'user' then
local hash = '... | gpl-2.0 |
CarabusX/Zero-K | LuaUI/Widgets/chili/Controls/screen.lua | 6 | 8975 | --- Screen module
--- Screen fields.
-- Inherits from Object.
-- @see object.Object
-- @table Screen
-- @int[opt = 0] x x position
-- @int[opt = 0] y y position
-- @int[opt = 0] width width
-- @int[opt = 0] height height
-- @tparam control.Control activeControl active control
-- @tparam control.Control focusedControl ... | gpl-2.0 |
mattyx14/otxserver | data/monster/bosses/incredibly_old_witch.lua | 2 | 3860 | local mType = Game.createMonsterType("Incredibly Old Witch")
local monster = {}
monster.description = "an incredibly old witch"
monster.experience = 0
monster.outfit = {
lookType = 54,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 100
monster.maxHealth... | gpl-2.0 |
mattyx14/otxserver | data/monster/birds/cave_parrot.lua | 2 | 2049 | local mType = Game.createMonsterType("Cave Parrot")
local monster = {}
monster.description = "a cave parrot"
monster.experience = 0
monster.outfit = {
lookType = 217,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1307
monster.Bestiary = {
class = "Bir... | gpl-2.0 |
mattyx14/otxserver | data/monster/vermins/terramite.lua | 2 | 2586 | local mType = Game.createMonsterType("Terramite")
local monster = {}
monster.description = "a terramite"
monster.experience = 160
monster.outfit = {
lookType = 346,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 631
monster.Bestiary = {
class = "Vermin... | gpl-2.0 |
CarabusX/Zero-K | gamedata/modularcomms/weapons/shotgun.lua | 6 | 1516 | local name = "commweapon_shotgun"
local weaponDef = {
name = [[Shotgun]],
areaOfEffect = 32,
burst = 3,
burstRate = 0.033,
coreThickness = 0.5,
craterBoost = 0,
craterMult = 0,
customParams = {
is_unit... | gpl-2.0 |
garrysmodlua/wire | lua/entities/gmod_wire_hologrid.lua | 8 | 1770 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Holo Grid"
ENT.Author = "Chad 'Jinto'"
ENT.WireDebugName = "Holo Grid"
if CLIENT then return end -- No more client
function ENT:Initialize( )
self:PhysicsInit( SOLID_VPHYSICS );
self:SetMoveType( MOVETYPE_VPHYSICS );
self:Se... | apache-2.0 |
devilrap978/devilrap2 | plugins/groupcontrol.lua | 8 | 41886 | do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function generate_link(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local user_id = cb_extra.user_id
local chat_id = string.gsub(rece... | gpl-3.0 |
mattyx14/otxserver | data/monster/bosses/gravelord_oshuran.lua | 2 | 3687 | local mType = Game.createMonsterType("Gravelord Oshuran")
local monster = {}
monster.description = "Gravelord Oshuran"
monster.experience = 2400
monster.outfit = {
lookType = 99,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 3100
monster.maxHealth = 31... | gpl-2.0 |
mattyx14/otxserver | data/monster/quests/cults_of_tibia/cult_believer.lua | 2 | 3098 | local mType = Game.createMonsterType("Cult Believer")
local monster = {}
monster.description = "a cult believer"
monster.experience = 850
monster.outfit = {
lookType = 132,
lookHead = 98,
lookBody = 96,
lookLegs = 39,
lookFeet = 38,
lookAddons = 1,
lookMount = 0
}
monster.raceId = 1512
monster.Bestiary = {
cl... | gpl-2.0 |
lewis-ing/ABTestingGateway | lib/abtesting/error/errcode.lua | 22 | 1583 | local modulename = 'abtestingErrorInfo'
local _M = {}
_M._VERSION = '0.0.1'
_M.info = {
-- index code desc
-- SUCCESS
["SUCCESS"] = { 200, 'success '},
-- System Level ERROR
['REDIS_ERROR'] = { 40101, 'redis error for '},
['POLICY_DB_ERROR'] = { 40102, 'policy in db error '... | mit |
CarabusX/Zero-K | effects/DOT_Merl_explo.lua | 7 | 4213 | return { DOT_Merl_Explo = {
Dreck = {
class = [[CSimpleParticleSystem]],
properties = {
Texture = [[smokesmall]],
colorMap = [[.07 .05 .05 0.80
.00 .00 .00 0.01]],
pos = [[0, 1, 0]],
gravity = [[0, -0.2, 0]],
emitVector = [[0, 1, 0]],
emitRot = 0,
emitRotSpread = [[5 r20]],
... | gpl-2.0 |
LuaDist2/vararg-lua | test/test.lua | 5 | 6412 | local _G = require "_G"
local assert = _G.assert
local pcall = _G.pcall
local print = _G.print
local select = _G.select
local type = _G.type
local math = require "math"
local ceil = math.ceil
local huge = math.huge
local min = math.min
local table = require "table"
local unpack = table.unpack or _G.unpack
local vara... | mit |
luizsan/ultimate | Scripts/UTF8.lua | 1 | 8280 | -- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $
--
-- Provides UTF-8 aware string functions implemented in pure lua:
-- * string.utf8len(s)
-- * string.utf8sub(s, i, j)
-- * string.utf8reverse(s)
--
-- If utf8data.lua (containing the lower<->upper case mappings) is loaded, these
-- additional functions are available:... | mit |
MRAHS/Backup | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
nitheeshkl/kln_awesome | awesome_3.5/vicious/contrib/nvsmi.lua | 10 | 1207 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2014, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
... | gpl-2.0 |
gavares/snort3 | piglet/tests/interface/packet.lua | 4 | 2025 | plugin =
{
type = "piglet",
name = "piglet::packet",
test = function()
dofile(SCRIPT_DIR .. "/../common.lua")
return run_tests(tests)
end
}
DEFAULT_VALUES =
{
packet_flags = 0,
xtradata_mask = 0,
proto_bits = 0,
application_protocol_ordinal = 0,
alt_dsize = 0,
nu... | gpl-2.0 |
dbltnk/macro-prototype | loveframes/objects/list.lua | 1 | 18485 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- list class
local newobject = loveframes.NewObject("list", "loveframes_object_list", true)
--[[-------------------------------... | mit |
mumuqz/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 68 | 2351 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
--
-- SIP trunk info
--
if arg[2] == "info" then
form = SimpleForm("asterisk", "SIP Trunk Information")
form.reset = false
form.submit = "Back to overview"
local info,... | apache-2.0 |
mattyx14/otxserver | data/monster/quests/killing_in_the_name_of/sulphur_scuttler.lua | 2 | 3210 | local mType = Game.createMonsterType("Sulphur Scuttler")
local monster = {}
monster.description = "Sulphur Scuttler"
monster.experience = 900
monster.outfit = {
lookType = 352,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 1300
monster.maxHealth = 1300... | gpl-2.0 |
UB12/wnww | plugins/id.lua | 50 | 4275 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
dmacvicar/dotfiles | textadept/.textadept/lexers/rpmspec.lua | 1 | 2855 | -- Copyright 2014 Duncan Mac-Vicar P. <dmacvicar@suse.de>
-- This file is released under the terms of the MIT license
-- RPM Spec LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'rpmspec'}
-- Whitespace.
local ws = token... | mit |
luizsan/ultimate | BGAnimations/ScreenGameplay overlay/default.lua | 1 | 2016 | local paused = false;
local missfail = THEMECONFIG:get_data("ProfileSlot_Invalid").FailMissCombo;
local function Update(self,dt)
MESSAGEMAN:Broadcast("Update");
end;
local t = Def.ActorFrame{
InitCommand=cmd(SetUpdateFunction,Update);
OnCommand=function() Global.disqualified = false; end;
PausedMessageCommand=... | mit |
luohancfd/FluidDynamicTools | Eilmer3/Eilmer3_Patch/lib/gas/kinetics/reac.lua | 1 | 9862 | -- Author: Rowan J. Gollan
-- Date: 13-Mar-2009 (Friday the 13th)
-- Place: NIA, Hampton, Virginia, USA
--
-- History:
-- 19-Mar-2009 :- added checking of mass balance
-- and charge balance
module(..., package.seeall)
require 'reaction_rate'
require 'lex_elems'
local transform_rate_model = reactio... | gpl-3.0 |
CarabusX/Zero-K | effects/wolverine.lua | 25 | 3109 | -- wolvflash
-- wolvmuzzle1
-- wolvmuzzle0
return {
["wolvflash"] = {
groundflash = {
circlealpha = 1,
circlegrowth = 0,
flashalpha = 0.9,
flashsize = 60,
ttl = 8,
color = {
[1] = 1,
[2] = 0.5,
[3] = 0,
... | gpl-2.0 |
javad7070/senior | plugins/mutetime.lua | 3 | 1639 | --Begin MuteTime.lua By @MahDiRoO
local function pre_process(msg)
local hash = 'mute_time:'..msg.chat_id_
if redis:get(hash) and gp_type(msg.chat_id_) == 'channel' and not is_mod(msg) then
tdcli.deleteMessages(msg.chat_id_, {[0] = tonumber(msg.id_)})
end
end
local function run(msg, matches)
if... | gpl-3.0 |
christopherjwang/rackspace-monitoring-agent | tests/schedule/init.lua | 4 | 10960 | --[[
Copyright 2012 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 |
CarabusX/Zero-K | units/chicken_blimpy.lua | 6 | 5643 | return { chicken_blimpy = {
unitname = [[chicken_blimpy]],
name = [[Blimpy]],
description = [[Dodo Bomber]],
airHoverFactor = 0,
activateWhenBuilt = true,
brakerate = 0.4,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
... | gpl-2.0 |
tgp1994/LiquidRP-tgp1994 | entities/weapons/weapon_real_base_rifle/shared.lua | 1 | 2326 | -- Read the weapon_real_base if you really want to know what each action does
if (SERVER) then
AddCSLuaFile("shared.lua")
end
if (CLIENT) then
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.ViewModelFOV = 60
end
/*---------------------------------------------------------
Muzzle Effect + Shell Effect
... | gpl-3.0 |
mattyx14/otxserver | data/monster/quests/the_order_of_lion/bosses/ancient_lion_knight.lua | 2 | 4284 | local mType = Game.createMonsterType("Ancient Lion Knight")
local monster = {}
monster.description = "an ancient lion knight"
monster.experience = 8100
monster.outfit = {
lookType = 1071,
lookHead = 57,
lookBody = 78,
lookLegs = 76,
lookFeet = 76,
lookAddons = 1,
lookMount = 0
}
monster.health = 9100
monster.m... | gpl-2.0 |
mattyx14/otxserver | data/monster/quests/killing_in_the_name_of/deathbine.lua | 2 | 3023 | local mType = Game.createMonsterType("Deathbine")
local monster = {}
monster.description = "Deathbine"
monster.experience = 340
monster.outfit = {
lookType = 120,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 525
monster.maxHealth = 525
monster.race = ... | gpl-2.0 |
pampersrocker/risky-epsilon | Game/data/scripts/samples/camera_prototype/camera_prototype.lua | 1 | 10857 | logMessage("Initializing camera_prototype/camera_prototype.lua ...")
--
-- physics world
--
local cinfo = WorldCInfo()
cinfo.gravity = Vec3(0, 0, -9.81)
cinfo.worldSize = 4000.0
local world = PhysicsFactory:createWorld(cinfo)
PhysicsSystem:setWorld(world)
PhysicsSystem:setDebugDrawingEnabled(true)
functio... | mit |
mattyx14/otxserver | data/modules/scripts/blessings/blessings.lua | 2 | 12629 | Blessings = {}
Blessings.Credits = {
Developer = "Charles (Cjaker), DudZ",
Version = "2.0",
lastUpdate = "08/04/2020",
todo = {
"Insert & Select query in blessings_history",
"Add unfair fight reductio (convert the get killer is pvp fight with getDamageMap of dead player)",
"Gamestore buy blessing",
"Test a... | gpl-2.0 |
hacker44-h44/50 | plugins/giphy.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
fo369/luci-1505 | build/luadoc/luadoc/taglet/standard/tags.lua | 46 | 5543 | -------------------------------------------------------------------------------
-- Handlers for several tags
-- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $
-------------------------------------------------------------------------------
local luadoc = require "luadoc"
local util = require "luadoc.util"... | apache-2.0 |
mattyx14/otxserver | data/monster/undeads/banshee.lua | 2 | 4451 | local mType = Game.createMonsterType("Banshee")
local monster = {}
monster.description = "a banshee"
monster.experience = 900
monster.outfit = {
lookType = 78,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 78
monster.Bestiary = {
class = "Undead",
ra... | gpl-2.0 |
mumuqz/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
rainfiel/skynet | lualib/mongo.lua | 10 | 16372 | local bson = require "bson"
local socket = require "socket"
local socketchannel = require "socketchannel"
local skynet = require "skynet"
local driver = require "mongo.driver"
local md5 = require "md5"
local crypt = require "crypt"
local rawget = rawget
local assert = assert
local table = table
local bson_encode = bso... | mit |
mattyx14/otxserver | data/monster/bosses/the_abomination.lua | 2 | 3335 | local mType = Game.createMonsterType("The Abomination")
local monster = {}
monster.description = "the Abomination"
monster.experience = 25000
monster.outfit = {
lookType = 1393,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 38050
monster.maxHealth = 38... | gpl-2.0 |
Starkkz/shadows | Body.lua | 2 | 3747 | module("shadows.Body", package.seeall)
Object = require("shadows.Object")
PriorityQueue = require("shadows.PriorityQueue")
Shadows = require("shadows")
Transform = require("shadows.Transform")
CircleShadow = require("shadows.ShadowShapes.CircleShadow")
PolygonShadow = require("shadows.ShadowShapes.PolygonShado... | mit |
Germanunkol/GridCars | lib/hump/camera.lua | 47 | 3388 | --[[
Copyright (c) 2010-2013 Matthias Richter
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, publish, dis... | mit |
mpx/lua-cjson | tests/bench.lua | 145 | 3247 | #!/usr/bin/env lua
-- This benchmark script measures wall clock time and should be
-- run on an unloaded system.
--
-- Your Mileage May Vary.
--
-- Mark Pulford <mark@kyne.com.au>
local json_module = os.getenv("JSON_MODULE") or "cjson"
require "socket"
local json = require(json_module)
local util = require "cjson.ut... | mit |
Guema/gCastBars | CastBarZ_Config/Libs/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua | 7 | 12167 | --- AceConfigRegistry-3.0 handles central registration of options tables in use by addons and modules.\\
-- Options tables can be registered as raw tables, OR as function refs that return a table.\\
-- Such functions receive three arguments: "uiType", "uiName", "appName". \\
-- * Valid **uiTypes**: "cmd", "dropdown", "... | unlicense |
Starkkz/shadows | Light.lua | 2 | 9942 | module("shadows.Light", package.seeall)
Object = require("shadows.Object")
Shadows = require("shadows")
Transform = require("shadows.Transform")
Light = setmetatable( {}, Object )
Light.__index = Light
Light.__type = "Light"
Light.Arc = 360
Light.Radius = 0
Light.SizeRadius = 10
Light.Blur = true
Light.R, Light.... | mit |
ld-test/feedparser | feedparser.lua | 7 | 12063 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = require "feedparser.XMLElement"
local dateparser = require "feedparser.dateparser"
local URL = require "feedparser.url"
local tinsert, tremove, tconcat = table.insert, table.remove,... | bsd-3-clause |
Guema/gCastBars | CastBarZ_Media/Libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | unlicense |
garrysmodlua/wire | lua/wire/client/e2helper.lua | 3 | 15277 | --[[
Expression 2 Helper for Expression 2
-HP- (and tomylobo, though he breaks a lot ^^) Divran made CPU support
]] --
E2Helper = {}
local E2Helper = E2Helper -- faster access
E2Helper.Descriptions = {}
include("e2descriptions.lua")
-------------------------------
---- CPU support
E2Helper.CPUDescriptions = {}
E... | apache-2.0 |
mattyx14/otxserver | data/monster/quests/isle_of_evil/dirtbeard.lua | 2 | 2837 | local mType = Game.createMonsterType("Dirtbeard")
local monster = {}
monster.description = "Dirtbeard"
monster.experience = 375
monster.outfit = {
lookType = 98,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 630
monster.maxHealth = 630
monster.race = "... | gpl-2.0 |
rafael/kong | spec/integration/dao/cassandra/cascade_spec.lua | 3 | 7666 | local spec_helper = require "spec.spec_helpers"
local env = spec_helper.get_env()
local dao_factory = env.dao_factory
dao_factory:load_plugins({"keyauth", "basicauth", "oauth2"})
describe("Cassandra cascade delete", function()
setup(function()
spec_helper.prepare_db()
end)
describe("API -> plugins", func... | apache-2.0 |
bobkersten/domoticz | scripts/dzVents/examples/check dead devices by desc.lua | 25 | 1272 | --Check dead device using their description
--This allow to configure device to be checked directly in domoticz GUI by accessing to device details and add "CDA:<delayInMinute>"
--You have to active http fetching !
return {
active = true,
on = {
['timer'] = {
'every 60 minutes'
}
},
execu... | gpl-3.0 |
mattyx14/otxserver | data/monster/quests/svargrond_arena/greenhorn/rocky.lua | 2 | 2111 | local mType = Game.createMonsterType("Rocky")
local monster = {}
monster.description = "Rocky"
monster.experience = 190
monster.outfit = {
lookType = 95,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 390
monster.maxHealth = 390
monster.race = "undead"
... | gpl-2.0 |
Guema/gCastBars | CastBarZ_Config/Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua | 15 | 23497 | --- AceConfigCmd-3.0 handles access to an options table through the "command line" interface via the ChatFrames.
-- @class file
-- @name AceConfigCmd-3.0
-- @release $Id: AceConfigCmd-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $
--[[
AceConfigCmd-3.0
Handles commandline optionstable access
REQUIRES: AceConsole-3.0 ... | unlicense |
haswne/IRAQ_BOT | bot/seedbot.lua | 7 | 14099 | 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 |
mattyx14/otxserver | data/monster/quests/the_secret_library/mazzinor.lua | 2 | 4075 | local mType = Game.createMonsterType("Mazzinor")
local monster = {}
monster.description = "a mazzinor"
monster.experience = 100000
monster.outfit = {
lookType = 1062,
lookHead = 85,
lookBody = 7,
lookLegs = 3,
lookFeet = 15,
lookAddons = 2,
lookMount = 0
}
monster.health = 300000
monster.maxHealth = 300000
mon... | gpl-2.0 |
ReclaimYourPrivacy/cloak-luci | modules/luci-base/luasrc/model/uci.lua | 49 | 4995 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local uci = require "uci"
local util = require "luci.util"
local table = require "table"
local setmetatable, rawget, rawset = setmetatable, rawget, rawset
local require, getmetata... | apache-2.0 |
hussian1997/hhhuu | plugins/ar-banhammmer.lua | 8 | 13826 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ (ملف الطرد والحضر للمسيئين) ▀▄ ▄... | agpl-3.0 |
garrysmodlua/wire | lua/entities/gmod_wire_expression2/core/number.lua | 5 | 17755 | -- these upvalues (locals in an enclosing scope) are faster to access than globals.
local delta = wire_expression2_delta
local math = math
local random = math.random
local pi = math.pi
local inf = math.huge
local exp = math.exp
local frexp = math.frexp
local log = math.log
local log10 = math.log10
l... | apache-2.0 |
pampersrocker/risky-epsilon | Game/data/scripts/samples/physics_shape_offset.lua | 1 | 2873 |
print("Initializing render component test...")
-- Physics World
do
local cinfo = WorldCInfo()
cinfo.gravity = Vec3(0, 0, -9.81)
cinfo.worldSize = 2000.0
local world = PhysicsFactory:createWorld(cinfo)
PhysicsSystem:setWorld(world)
end
PhysicsSystem:setDebugDrawingEnabled(true)
do -- set up state ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.