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
xuefer/openwrt-packages
net/prosody/files/prosody.cfg.lua
147
7257
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at http://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running: luac -p prosody.cfg.lua -- If there are any errors, it will let you know...
gpl-2.0
LuaDist2/lua-capnproto
lua/handwritten_capnp.lua
4
30702
local ffi = require "ffi" local capnp = require "capnp" local bit = require "bit" local ceil = math.ceil local write_struct_field= capnp.write_struct_field local read_struct_field = capnp.read_struct_field local read_text = capnp.read_text local write_text = capnp.write_text local get_enum_...
bsd-2-clause
resistor58/deaths-gmod-server
counter-strike/lua/weapons/weapon_fiveseven/shared.lua
1
1198
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "FiveSeven" SWEP.Author = "Counter-Strike" SWEP.Slot = 1 SWEP.SlotPos = 5 SWEP.IconLetter = "u" killicon.AddFont( "weapon_fiveseven", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, ...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_cd_disk/init.lua
1
2989
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') ENT.WireDebugName = "CD" local MODEL = Model("models/jaanus/wiretool/wiretool_range.mdl") function ENT:Initialize() // self.Entity:SetModel(MODEL) self.Entity:PhysicsInit(SOLID_VPHYSICS) self.Entity:SetMoveType(MOVETYPE_VPHYS...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/weapons/gmod_tool/stools/wire_gps.lua
1
4632
TOOL.Category = "Wire - Detection" TOOL.Name = "GPS" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if ( CLIENT ) then language.Add( "Tool_wire_gps_name", "GPS Tool (Wire)" ) language.Add( "Tool_wire_gps_desc", "Spawns a gps for use with the wire system." ) language.Add( "Tool_wi...
gpl-3.0
Plain-Andy/android_platform_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
NOVAR1/DEV_NOVAR
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-2.0
zhaoxx063/luci
modules/luci-mod-failsafe/luasrc/controller/failsafe/failsafe.lua
34
4984
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2012 Daniel Golle <dgolle@allnet.de> -- Licensed to the public under the Apache License 2.0. module("luci.controller.failsafe.failsafe", package.seeall) function index() local root = node() if n...
apache-2.0
mahdib9/mahdi
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
Armin041/Tele_Dam
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
httpomid/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
chewi/Aquaria
game_scripts/_mods/guert_mod/tempo/anemone4.lua
12
2875
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
zeta0134/LuaGB
gameboy/rom_header.lua
1
2869
local bit32 = require("bit") local rom_header = {} -- given an entire rom (as a string reference), -- print out the various header data for debugging local function read_file_into_byte_array(file) local byte_array = {} local byte = file:read() local i = 0 while byte do byte_array[i] = byte byte = file...
bsd-3-clause
RobertZenz/minetest-australopithecus-utils
mods/utils/nodeboxutil.lua
2
2038
--[[ Copyright (c) 2014, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
bsd-2-clause
chewi/Aquaria
files/scripts/entities/collectibleblackpearl.lua
6
1363
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
buzzware/swas
nginx-jwt/resty/jwt.lua
1
8010
local cjson = require "cjson" local evp = require "resty.evp" local hmac = require "resty.hmac" local _M = {_VERSION="0.1.1"} local mt = {__index=_M} local function get_raw_part(part_name, jwt_obj) local raw_part = jwt_obj["raw_" .. part_name] if raw_part == nil then local part = jwt_obj[part_name] ...
mit
Nottinghster/OTServ_SVN-0.6.4
src/data/actions/scripts/system.lua
2
2683
local specialQuests = { [2001] = 30015 --Annihilator } local questsExperience = { [30015] = 10000 } function onUse(cid, item, fromPosition, itemEx, toPosition) local storage = specialQuests[item.actionid] if(not storage) then storage = item.uid if(storage > 65535) then return false end end if(getPlaye...
gpl-2.0
RyanSquared/lua-http
spec/path_spec.lua
3
2467
describe("Relative path resolution", function() local resolve_relative_path = require "http.util".resolve_relative_path it("should resolve .. correctly", function() assert.same("/foo", resolve_relative_path("/", "foo")) assert.same("/foo", resolve_relative_path("/", "./foo")) assert.same("/foo", resolve_relativ...
mit
Salada/slua
build/luajit-2.1.0/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 -------------------------------------------------------------------------...
mit
cyrillePrigent/kmod-ng
umod/command/client/unban.lua
1
1059
-- Unban a player banned with Punkbuster. -- From kmod script. -- params is parameters passed from et_ClientCommand function. -- * params["arg1"] => guid function execute_command(params) params.say = "chat" if params.nbArg < 2 then printCmdMsg(params, "Useage: unban [guid]\n") else if to...
gpl-2.0
futesobriquet/Tower_D_beta
Tower_Beta/lib/30log/specs/class.lua
1
2129
require 'luacov' local Class = require '30log' context('Class', function() context('When Class is called with no args passed', function() test('it returns a new class (regular Lua table)',function() assert_equal(type(Class()),'table') end) end) context('Attributes', function() local myClass...
apache-2.0
gavin2lee/dwss
lua-exercises/crontab-tests.lua
1
1537
--传说中的测试代码 local function RunTests() -- the following calls are equivalent: local function printMessage(a ) print('Hello',a) end local cron = crontab.new() local c1 = cron:after( 5, printMessage) local c2 = cron:after( 5, print, {'Hello'}) c1:update(2) -- will print nothing, the act...
apache-2.0
rickyHong/dptorchLib
scripts/trainserialized.lua
7
2377
require 'dp' require 'cunnx' --[[command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('Train Language Model on BillionWords dataset using a serialized experiment') cmd:text('Example:') cmd:text('$> th trainserialized.lua --xpFile nps:26693:1408205007:1 ') cmd:text('$> th trainserialized.lua --xpFile np...
bsd-3-clause
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_hoverdrivecontroler/init.lua
1
29993
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "HoverDrive" local useenergy = CreateConVar( "sv_HoverDriveUseEnergy", 0, {FCVAR_ARCHIVE} ) /*--------------------------------------------------------- Name: Initialize --------------------------------...
gpl-3.0
mamaddeveloper/mmddev
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
futesobriquet/Tower_D_beta
Tower_Beta/lib/anim8/anim8.lua
1
8134
local anim8 = { _VERSION = 'anim8 v2.1.0', _DESCRIPTION = 'An animation library for LÖVE', _URL = 'https://github.com/kikito/anim8', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of ...
apache-2.0
chewi/Aquaria
files/scripts/entities/mia.lua
6
1691
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
tempbottle/alilua
core.lua
3
15522
mysql = require('mysql') cjson = require('cjson.safe') memcached = require('memcached') redis = require('redis') date = require('date') loadtemplate = require('loadtemplate') httpclient = (require "httpclient").httprequest llmdb = require('llmdb-client') cmsgpack = require('cmsgpack') ok, cmsgpack_safe = pcall(require,...
mit
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/ComponentDistance.lua
3
4285
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
mit
mahdikord/mahdi4
plugins/stats.lua
56
3988
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
hfjgjfg/ccc111
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
dunn/ntopng
scripts/lua/modules/persistence.lua
19
5650
-- 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
RobertZenz/minetest-australopithecus-utils
mods/utils/constants.lua
2
1871
--[[ Copyright (c) 2014, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
bsd-2-clause
zhaoxx063/luci
libs/luci-lib-nixio/axTLS/www/lua/download.lua
180
1550
#!/usr/local/bin/lua require"luasocket" function receive (connection) connection:settimeout(0) local s, status = connection:receive (2^10) if status == "timeout" then coroutine.yield (connection) end return s, status end function download (host, file, outfile) --local f = assert (io.open (outfile, "w")) loc...
apache-2.0
HHHartmann/nodemcu-httpserver
srv/httpserver-basicauth.lua
2
1446
-- httpserver-basicauth.lua -- Part of nodemcu-httpserver, authenticates a user using http basic auth. -- Author: Sam Dieck local basicAuth = {} -- Returns true if the user/password match one of the users/passwords in httpserver-conf.lua. -- Returns false otherwise. function loginIsValid(user, pwd, users) ...
gpl-2.0
zchengquan/nn
TemporalConvolution.lua
44
1670
local TemporalConvolution, parent = torch.class('nn.TemporalConvolution', 'nn.Module') function TemporalConvolution:__init(inputFrameSize, outputFrameSize, kW, dW) parent.__init(self) dW = dW or 1 self.inputFrameSize = inputFrameSize self.outputFrameSize = outputFrameSize self.kW = kW self.dW = dW ...
bsd-3-clause
chewi/Aquaria
files/scripts/entities/collectiblegear.lua
6
1361
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
Feacur/CustomEngineStudy
sandbox/assets/scripts/script_fly.lua
1
1500
function script_fly(entity, dt) local transform = entity:get_component(Transform.type) if transform == nil then Debug.custom_assert(false, "entity has no Transform") return end local mouse_wheel = Input.get_mouse_wheel() if (mouse_wheel.y ~= 0) and entity:has_component(Camera.type) then local camera = entity:get...
mit
Salada/slua
build/luajit-2.0.4/src/jit/dump.lua
84
19509
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
mit
sanger-pathogens/companion
bin/iproscan_gff3_merge.lua
4
10129
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014-2015 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in a...
isc
chewi/Aquaria
files/scripts/entities/_unused/seaslug.lua
6
3187
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_expression2/core/gametick.lua
1
1285
/******************************************************************************\ Game tick callback support \******************************************************************************/ local registered_chips = {} local tickrun = 0 registerCallback("destruct",function(self) registered_chips[self.entity]...
gpl-3.0
NOVAR1/DEV_NOVAR
plugins/gomegrod.lua
6
1393
local function run(msg, matches) if matches[1] == 'اطردني' then local hash = 'kick:'..msg.to.id..':'..msg.from.id redis:set(hash, "waite") return '✴🎈 يا حبعمري \n✴🎈 معرفك @'..msg.from.username..'\n✴🎈 هل انت متاكد من قرارك \n✴🎈 اذا تريد تغادر ارسل [ نعم ] \n✴🎈اذا تريد تبقه ويانه ارسل [ لا ] \n✴🎈اب...
gpl-2.0
chewi/Aquaria
files/scripts/maps/finalcommon.lua
6
1472
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/latex/fontspec/fontspec.lua
1
3148
-- -- This is file `fontspec.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- fontspec.dtx (with options: `lua') -- -- _________________________________________ -- The fontspec package for XeLaTeX/LuaLaTeX -- (C) 2004--2014 Will Robertson and Khaled Hosny -...
mit
javierguerragiraldez/snabbswitch
src/apps/socket/raw.lua
1
2248
module(...,package.seeall) local app = require("core.app") local link = require("core.link") local packet = require("core.packet") local dev = require("apps.socket.dev").dev RawSocket = {} function RawSocket:new (ifname) assert(ifname) self.__index = self return setmetatable({dev = dev:new(ifname)},...
apache-2.0
gvvaughan/luke
spec/compile_spec.lua
1
1658
--[[ Use the source, Luke! Copyright (C) 2014-2022 Gary V. Vaughan ]] package.path = os.getenv 'LUA_PATH' require 'spec.spec_helpers' local compile = require 'luke.compile' describe('luke.compile', function() describe('incdirs', function() local incdirs = compile.incdirs it('prepends -I to argum...
mit
dromozoa/dromozoa-shlex
test.lua
3
3622
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-shlex. -- -- dromozoa-shlex 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...
gpl-3.0
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/effects/effect_mad_gunsmoke/init.lua
1
2670
/*--------------------------------------------------------- EFFECT:Init(data) ---------------------------------------------------------*/ function EFFECT:Init(data) self.WeaponEnt = data:GetEntity() self.Attachment = data:GetAttachment() self.Position = self:GetTracerShootPos(data:GetOrigin(), sel...
gpl-3.0
TeleSeedTM/antispam
plugins/lock-fosh.lua
24
2263
local function pre_process(msg) local chkfosh = redis:hget('settings:fosh',msg.chat_id_) if not chkfosh then redis:hset('settings:fosh',msg.chat_id_,'off') end end local function run(msg, matches) --Commands --دستورات فعال و غیرفعال کردن فحش if matches[1]:lower() == 'unlock' then if matches[2]:lower() == 'fo...
gpl-3.0
Salada/slua
build/luajit-2.0.4/src/jit/dis_ppc.lua
88
20319
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
mit
tehran980/tele_HSN
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
dunn/ntopng
scripts/lua/sprobe_hosts_interactions.lua
10
6738
-- -- (C) 2014-15-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" if(mode ~= "embed") then sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "ho...
gpl-3.0
tehran980/https-github.com-uziins-uzzbot
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
seifoo1/seifo2
plugins/moderation.lua
42
30441
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
cgvarela/slurm
contribs/lua/job_submit.license.lua
3
2989
--[[ Example lua script demonstrating the SLURM job_submit/lua interface. This is only an example, not meant for use in its current form. For use, this script should be copied into a file name job_"submit.lua" in the same directory as the SLURM configuration file, slurm.conf. --]] function _limit_license_cnt(or...
gpl-2.0
zhaoxx063/luci
modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua
40
1769
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.uci", package.seeall) function index() local redir = luci.http.formvalue("redir", true) or luci.dispatcher.build_url(unpack(...
apache-2.0
chewi/Aquaria
files/scripts/maps/node_throne.lua
6
1872
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
zeta0134/LuaGB
vendor/love-mac/LuaGB.app/Contents/Frameworks/love.framework/Versions/A/Resources/wrap_Graphics.lua
4
16090
R"luastring"--( -- DO NOT REMOVE THE ABOVE LINE. It is used to load this file as a C++ string. -- There is a matching delimiter at the bottom of the file. --[[ Copyright (c) 2006-2018 LOVE Development Team This software is provided 'as-is', without any express or implied warranty. In no event will the authors be hel...
bsd-3-clause
aspiraboo/kappa
vc14/data/chatchannels/scripts/advertising.lua
48
1220
function canJoin(player) return player:getVocation():getId() ~= VOCATION_NONE or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR end local CHANNEL_ADVERTISING = 5 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_ADVERTISING) muted:setPara...
gpl-2.0
tgclonerteam/goodday
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
Armin041/Tele_Dam
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
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_hologrid/init.lua
1
2906
AddCSLuaFile( "cl_init.lua" ); AddCSLuaFile( "shared.lua" ); include( "shared.lua" ); -- wire debug and overlay crap. ENT.WireDebugName = "Holographic Grid"; ENT.OverlayDelay = 0; -- init. function ENT:Initialize( ) -- setup physics self.Entity:PhysicsInit( SOLID_VPHYSICS ); self.Entity:SetMoveType...
gpl-3.0
suilteam/suil
tools/swept/sys/json.lua
1
10061
-- -- json.lua -- -- Copyright (c) 2019 rxi -- -- 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, ...
mit
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/lib/Storage.lua
3
3268
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
mit
chewi/Aquaria
game_scripts/_mods/guert_mod/tempo/nautilus.lua
12
4455
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/autorun/server/mad_files.lua
1
13693
/*--------------------------------------------------------- ------mmmm---mmmm-aaaaaaaa----ddddddddd----------------------------------------> mmmmmmmmmmmm aaaaaaaaa dddddddddd Name: Mad Cows Weapons mmm mmmm mmm aaa aaa ddd ddd Author: Worshipper mmm mmm mmm aaaaaaaaaaa ddd ddd Pr...
gpl-3.0
flamewing/sonic-gens-hud
sonic/common/game-data/soniccd-data.lua
1
2417
-------------------------------------------------------------------------------- -- This file is part of the Lua HUD for TASing Sega Genesis Sonic games. -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free ...
lgpl-3.0
resistor58/deaths-gmod-server
Nuke Pack 4/lua/effects/nuke_effect_ground/init.lua
3
8534
local matRefraction = Material( "refract_ring" ) matRefraction:SetMaterialInt("$nocull",1) local tMats = {} tMats.Glow1 = Material("sprites/light_glow02") tMats.Glow2 = Material("sprites/yellowflare") tMats.Glow3 = Material("sprites/redglow2") for _,mat in pairs(tMats) do mat:SetMaterialInt("$spritere...
gpl-3.0
jweisner/DCS-nttr-practice
l10n/DEFAULT/fac.lua
1
30019
--[[ DCS FAC ------- Authors: Pb_Magnet (github.com/jweisner) NOTE: Almost all of the hard stuff here is copied/adapted from CTLD: https://github.com/ciribob/DCS-CTLD This script was originally submitted as a PR to include in CTLD, but there didn;t seem to be any interest from CTLD vOv ]] fac = {} -- do not mo...
apache-2.0
tehran980/tele_HSN
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
amirik22/uzzbot
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
fegimanam/telegram-bot-supergroups
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
HHHartmann/nodemcu-httpserver
srv/httpserver-buffer.lua
2
1477
-- httpserver-buffer -- Part of nodemcu-httpserver, provides a buffer that behaves like a connection object -- that can handle multiple consecutive send() calls, and buffers small payloads up to 1400 bytes. -- This is primarily user to collect the send requests done by the head script. -- The owner is responsible to ca...
gpl-2.0
TeleGram-Real/RealBot
plugins/Welcome.lua
6
4396
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarRea; ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
luakit-crowd/luakit
lib/follow.lua
2
30547
------------------------------------------------------------ -- Link hinting for luakit -- -- © 2010-2012 Mason Larobina <mason.larobina@gmail.com> -- -- © 2010-2011 Fabian Streitel <karottenreibe@gmail.com> -- ------------------------------------------------------------ -- Get Lua env...
gpl-3.0
rickyHong/dptorchLib
model/inception.lua
2
8625
------------------------------------------------------------------------ --[[ Inception ]]-- -- A layer of parallel columns where each column is a combination -- of reduction, max-pooling and convolutions (in different orders). -- Based on the Going Deeper with Convolutions paper : -- http://arxiv.org/pdf/1409.4842v1....
bsd-3-clause
chewi/Aquaria
game_scripts/_mods/guert_mod/tempo/jellysmall.lua
6
5896
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
oratory/wago.io
backend/api/lua/libs/LibCompress/LibStub/tests/test2.lua
100
1112
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() for major, library in LibStub:IterateLibraries() do -- check that MyLib doesn't exist yet, by iterating through all the libraries assert(major ~= "MyLib") end assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ...
mit
dunn/ntopng
scripts/lua/hosts_matrix.lua
5
4582
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "hosts" dofile(dirs.installdir .. "/sc...
gpl-3.0
chewi/Aquaria
files/scripts/maps/node_beacon_homecave_off.lua
6
1071
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
zhaoxx063/luci
applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua
99
14473
--[[ 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
dunn/ntopng
scripts/lua/user_stats.lua
8
2859
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') mode = _GET["mode"] host = _GET["host"] user = _GET["user"] interface.select(ifname) flows = interface.getFlowsI...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_clutch/init.lua
1
7244
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) ENT.WireDebugName = "clutch" include('shared.lua') function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateInputs( self....
gpl-3.0
NOVAR1/DEV_NOVAR
plugins/onle.lua
4
10954
local function checktodaygr(cb_extra, success, result) local hash = '' local thash='' for k,user in pairs(result.members) do thash = 'today:'..user.peer_id if redis:get(thash) then if redis:get(thash) < os.date("%x",os.time() + 16200) then hash = 'utmsgst:'..user.peer_id..':'..cb_extra ...
gpl-2.0
fo369/luci-1505
applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua
56
3828
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")), translate("UPnP allows clients in the local network to automatically configure the...
apache-2.0
tgp1994/LiquidRP-tgp1994
gamemode/modules/base/sv_entityvars.lua
1
8792
local meta = FindMetaTable("Player") /*--------------------------------------------------------------------------- Pooled networking strings ---------------------------------------------------------------------------*/ util.AddNetworkString("DarkRP_InitializeVars") util.AddNetworkString("DarkRP_PlayerVarRemoval") /*-...
gpl-3.0
mattyx14/otxserver
data/monster/quests/grave_danger/bosses/duke_krule.lua
2
4225
local mType = Game.createMonsterType("Duke Krule") local monster = {} monster.description = "a Duke Krule" monster.experience = 46300 monster.outfit = { lookType = 1221, lookHead = 8, lookBody = 8, lookLegs = 19, lookFeet = 79, lookAddons = 3, lookMount = 0 } monster.health = 50000 monster.maxHealth = 50000 mo...
gpl-2.0
piccaso/debian-luakit
lib/lousy/uri.lua
7
3484
------------------------------------------------------ -- URI parsing functions -- -- © 2011 Mason Larobina <mason.larobina@gmail.com> -- ------------------------------------------------------ -- Get lua environment local table = table local string = string local ipairs = ipairs local pairs ...
gpl-3.0
tgp1994/LiquidRP-tgp1994
gamemode/modules/chat/cl_chat.lua
1
3476
/*--------------------------------------------------------------------------- Gamemode function ---------------------------------------------------------------------------*/ function GM:OnPlayerChat() end /*--------------------------------------------------------------------------- Add a message to chat --------------...
gpl-3.0
imeteora/cocos2d-x-3.x-Qt
tests/lua-tests/src/NodeTest/NodeTest.lua
10
21008
local kTagSprite1 = 1 local kTagSprite2 = 2 local kTagSprite3 = 3 local kTagSlider = 4 local s = cc.Director:getInstance():getWinSize() local scheduler = cc.Director:getInstance():getScheduler() local function getBaseLayer() local layer = cc.Layer:create() Helper.initWithLayer(layer) return layer end ------...
gpl-2.0
CarabusX/Zero-K
units/plateplane.lua
2
3195
return { plateplane = { unitname = [[plateplane]], name = [[Airplane Plate]], description = [[Parallel Unit Production]], acceleration = 0, activateWhenBuilt = false, brakeRate = 0, buildCostMe...
gpl-2.0
nitheeshkl/kln_awesome
awesome_3.5/lain/widgets/borderbox.lua
6
1624
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2010-2012, Peter Hofmann --]] local wibox = require("awful.wibox") local se...
gpl-2.0
CarabusX/Zero-K
LuaRules/Configs/MetalSpots/Ring Atoll Remake AA-version.lua
8
1509
return { spots = { {x = 2344, z = 4040, metal = 2.12}, {x = 2856, z = 6968, metal = 2.12}, {x = 7672, z = 4312, metal = 2.12}, {x = 4744, z = 2104, metal = 2.12}, {x = 4408, z = 7736, metal = 2.12}, {x = 7256, z = 6552, metal = 2.12}, {x = 5400, z = 7896, metal = 2.12}, {x = 3528, z = 7576, metal = 2.1...
gpl-2.0
mattyx14/otxserver
data/monster/quests/the_secret_library/brother_freeze.lua
2
2210
local mType = Game.createMonsterType("Brother Freeze") local monster = {} monster.description = "Brother Freeze" monster.experience = 0 monster.outfit = { lookType = 261, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 10000 monster.maxHealth = 10000 mon...
gpl-2.0
dinodeck/rpg_conversation_graph
nwn_dialog/code/Panel.lua
2
3548
-- -- params = -- { -- texture = [texture], -- size = [size of a single tile in pixels] -- } -- -- Panel = {} Panel.__index = Panel function Panel:Create(params) local this = { mTexture = params.texture, mUVs = GenerateUVs(params.size, params.size, params.texture), ...
mit
PAC3-Server/ServerContent
lua/notagain/jrpg/autorun/hitmarks.lua
2
11937
local hitmarkers = _G.hitmarkers or {} _G.hitmarkers = hitmarkers if CLIENT then local function set_blend_mode(how) if not render.OverrideBlendFunc then return end if how == "additive" then render.OverrideBlendFunc(true, BLEND_SRC_ALPHA, BLEND_ONE, BLEND_SRC_ALPHA, BLEND_ONE) elseif how == "multiplicative" ...
mit
tenplus1/ethereal
schematics/banana_tree.lua
3
2145
-- banana tree local ai = {name = "air", param1 = 000} local tr = {name = "ethereal:banana_trunk", param1 = 255} local lp = {name = "ethereal:bananaleaves", param1 = 255} local lr = {name = "ethereal:bananaleaves", param1 = 180} local bp = {name = "ethereal:banana", param1 = 255} local br = {name = "ethereal:banana",...
mit
mattyx14/otxserver
data/scripts/actions/other/costume_bags.lua
2
1117
local config = { [653] = {'orc warrior', 'pirate cutthroat', 'dworc voodoomaster', 'dwarf guard', 'minotaur mage', 'ogre shaman', 'ogre brute', 'rat'}, -- common [655] = {'serpent spawn', 'demon', 'juggernaut', 'behemoth', 'ashmunrah', 'vexclaw', 'grimeleech', 'hellflayer', 'black sheep'}, -- uncommon [654] = {'quar...
gpl-2.0
christopherjwang/rackspace-monitoring-agent
client/virgo_connection_stream.lua
3
1788
local Scheduler = require('../schedule').Scheduler local ConnectionStream = require("virgo/client/connection_stream").ConnectionStream local loggingUtil = require('virgo/util/logging') local logging = require('logging') local fmt = require('string').format local VirgoConnectionStream = ConnectionStream:extend() funct...
apache-2.0