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
jiangzhw/QSanguosha
lua/ai/debug-ai.lua
6
10138
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
TeleGram-Real/RealBot
plugins/id.lua
4
6315
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarRea; ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
BeamNG/luasocket
test/testclnt.lua
20
22799
local socket = require"socket" host = host or "localhost" port = port or "8383" function printf(...) io.stderr:write(string.format(...)) end function pass(...) printf(...) io.stderr:write("\n") end function fail(...) io.stderr:write("ERROR: ") printf(...) io.stderr:write("!\n") os.exit()...
mit
zhaoxx063/luci
applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua
61
3557
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sid = arg[1] local utl = require "luci.util" m = Map("radvd", translatef("Radvd - Prefix"), translate("Radvd is a router advertisement daemon for IPv6. " .. "It listens to router solicitations and send...
apache-2.0
maxmax1/fooniks
resources/trajectory/throwobject.lua
2
2102
Trajectory = { thePoints = { }, g = 9.81, theAngle, theSpeed, theRange, }; function Trajectory:new( o ) o = o or { }; setmetatable( o, self ); self.__index = self; return o; end function Trajectory:GetTrajectoryData( ) self.theRange = ( ( self.theSpeed ^ 2 ) * math.si...
gpl-3.0
punisherbot/hh
plugins/Member_Manager.lua
24
11556
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned =...
gpl-2.0
zhaoxx063/luci
build/luadoc/luadoc/util.lua
46
5858
------------------------------------------------------------------------------- -- General utilities. -- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $ ------------------------------------------------------------------------------- local posix = require "nixio.fs" local type, table, string, io, as...
apache-2.0
sharifteam/sharifbot3
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
mohammad157/tabchi
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
kkamdooong/hammerspoon
extensions/mjomatic/init.lua
18
4683
--- === hs.mjomatic === --- --- tmuxomatic-like window management local mjomatic = {} local alert = require 'hs.alert' local application = require 'hs.application' local screen = require 'hs.screen' local gridh local gridw local function resizetogrid(window, coords) -- alert.show(string.format('move window %q t...
mit
chewi/Aquaria
game_scripts/_mods/guert_mod/scripts/node_learnenergy.lua
6
1141
-- 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
AdiAddons/LibPlayerSpells-1.0
tests/databases.lua
1
1831
--[[ LibPlayerSpells-1.0 - Additional information about player spells. (c) 2013-2021 Adirelle (adirelle@gmail.com) This file is part of LibPlayerSpells-1.0. LibPlayerSpells-1.0 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 Softwar...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_expression2/cl_init.lua
1
1285
include('shared.lua') ENT.RenderGroup = RENDERGROUP_OPAQUE function wire_expression2_validate(buffer) if CLIENT and not e2_function_data_received then return "Loading extensions. Please try again in a few seconds..." end -- invoke preprocessor local status, directives, buffer = PreProcessor.Execute(buffe...
gpl-3.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_egp_hud/huddraw.lua
1
3778
hook.Add("Initialize","EGP_HUD_Initialize",function() if (CLIENT) then local EGP_HUD_FirstPrint = true local tbl = {} -------------------------------------------------------- -- Toggle -------------------------------------------------------- local function EGP_Use( um ) local ent = um:ReadEn...
gpl-3.0
mamaddeveloper/mmddev
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
maxmax1/fooniks
resources/phoenix_Base/combobox_rep.lua
4
3838
local comboBoxes = { }; function _guiCreateComboBox( x, y, width, height, caption, relative, parent ) local edit = guiCreateEdit( x, y, width, height, caption, relative, parent ); comboBoxes[edit] = { }; comboBoxes[edit].btn = guiCreateStaticImage( x+width-height, y, height, height, "images/dropdown.png"...
gpl-3.0
chewi/Aquaria
files/scripts/maps/node_see13firsttime.lua
5
2493
-- 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
chewi/Aquaria
files/scripts/entities/sunkendoor.lua
6
2347
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later vers...
gpl-2.0
joehanchoi/hammerspoon
extensions/screen/init.lua
3
14760
--- === hs.screen === --- --- Manipulate screens (i.e. monitors) --- --- You usually get a screen through a window (see `hs.window.screen`). But you can get screens by themselves through this module. --- --- Hammerspoon's coordinate system assumes a grid that is the union of every screen's rect (see `hs.screen.fullFram...
mit
kkamdooong/hammerspoon
extensions/socket/test_udpsocket.lua
5
14452
-- globals for async UDP tests port = 9001 -- constructors function testUdpSocketInstanceCreation() assertIsUserdataOfType("hs.socket.udp", hs.socket.udp.new()) return success() end function testUdpSocketInstanceCreationWithCallback() assertIsUserdataOfType("hs.socket.udp", hs.socket.udp.new(print)) return su...
mit
rickyHong/dptorchLib
hyper/priorsampler.lua
2
1044
------------------------------------------------------------------------ --[[ PriorSampler ]]-- -- Factory -- Samples hyper-parameters from a user-defined prior -- to initialize and run an experiment (see hyperoptimize.lua example) ------------------------------------------------------------------------ local PriorSam...
bsd-3-clause
danielmiw/marshal_123
files/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-3.0
lujingwei002/erhzb
server/3rd/tolua++/lua/function.lua
1
15110
-- tolua: function class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancement...
apache-2.0
tkdrob/Battle-Tag
Packages/ClassicCapture/Data/Script/Lua/UAClassicCapture.lua
1
21130
--[[-------------------------------------------------------------------------- -- -- File: UAClassicCapture.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: November 25, 2010 -- ------------------------------------------...
mit
aspiraboo/kappa
data/talkactions/scripts/mccheck.lua
40
1027
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:") local ipList = {} local players = Game.getPlayers() for i = 1, ...
gpl-2.0
tkdrob/Battle-Tag
Data/Script/Lua/Classes/Engine/Libraries/ULUsbDevice.Pinger.lua
1
5757
--[[-------------------------------------------------------------------------- -- -- File: ULUsbDevice.Pinger.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 30, 2010 -- ------------------------------...
mit
Nottinghster/OTServ_SVN-0.6.4
src/data/movements/scripts/trap.lua
2
1482
function onStepIn(cid, item, pos) if (isInArray(TRAP_OFF, item.itemid) ) then if (isPlayer(cid) and getPlayerFlagValue (cid, PLAYERFLAG_CANNOTBESEEN) == false and isGmInvisible(cid) == false) then doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -50, -100, CONST_ME_NONE) doTransformItem(item.uid, item.itemi...
gpl-2.0
ellipticaldoor/a_sea_of_nothing
game/lua/front.lua
1
1582
front = {} function front.load() whale = love.graphics.newImage("images/whale.png"); system = love.graphics.newParticleSystem(whale, 10000) system:setEmissionRate(100) system:setSpeed(1,2) -- starting size to ending size system:setSizes(1) -- location of the emitter (x,y) system:setPosition(love.mouse.getX()...
gpl-2.0
chewi/Aquaria
files/scripts/entities/suncontainer.lua
6
1027
-- 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/generic/pgf/graphdrawing/lua/pgf/gd/control/Orientation.lua
3
7770
-- 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
suilteam/suil
tools/swept/sys/sh.lua
1
4593
-- -- @filename sh.lua -- -- A simple module that allows users to execute -- commands from from within as function calls. -- -- @usage -- ```lua --- local sh = require('sh') --- --- ls() -- executes command ls and prints outout to stdout or stderr --- --- local res,ok = _ls() -- executes the conmand ls and returns and...
mit
zhaoxx063/luci
modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua
15
17116
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzdata" TZ = { { 'Africa/Abidjan', 'GMT0' }, { 'Africa/Accra', 'GMT0' }, { 'Africa/Addis Ababa', 'EAT-3' }, { 'Africa/Algiers', 'CET-1' }, { 'Africa/Asmara', 'EAT-3' }, { 'Africa/Bamako', 'GMT0' }, { 'Africa/Bangui', 'WAT-1' }, ...
apache-2.0
kkamdooong/hammerspoon
extensions/osascript/init.lua
9
2774
--- === hs.osascript === --- --- Execute Open Scripting Architecture (OSA) code - AppleScript and JavaScript --- local module = require("hs.osascript.internal") -- private variables and methods ----------------------------------------- local processResults = function(ok, object, rawDescriptor) local descriptor ...
mit
zhaoxx063/luci
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
Billiam/wheeler
src/vendor/state.lua
1
3881
--[[ 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
chewi/Aquaria
files/scripts/entities/_unused/creepyface.lua
6
2692
-- 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
Mazuh/BugginhoDeveloper-Mini-Projects
project_1_lua/main.lua
1
9250
-- dependencies... json = require "lib/json" -- Array of guests list and its length guests = { } -- numeric array [number] { name: string, cpf: string, isRemoved: string } guestsLen = 0 -- zero ins't an avaiable index (lua pattern) -- local url to persist guests data PATH_STORAGE = "data/guests.json" -- OS inne...
unlicense
mSenyor/sl4a
lua/json4lua/json/rpc.lua
21
4386
----------------------------------------------------------------------------- -- JSONRPC4Lua: JSON RPC client calls over http for the Lua language. -- json.rpc Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.10 -- This module is released under the The GNU General Publi...
apache-2.0
Armin041/Tele_Dam
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
tkdrob/Battle-Tag
Packages/Introduction/Data/Script/Lua/UAIntroduction.Ui.Title.lua
1
3763
--[[-------------------------------------------------------------------------- -- -- File: UAIntroduction.Ui.Title.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 26, 2010 -- ------------------------------...
mit
resistor58/deaths-gmod-server
wire/lua/wire/client/WireDermaExts.lua
1
3064
-- $Rev: 1453 $ -- $LastChangedDate: 2009-08-01 18:42:53 -0700 (Sat, 01 Aug 2009) $ -- $LastChangedBy: TomyLobo $ WireDermaExts = {} -- Shortcut functions for Wire tools to make their model select controls -- TODO: redo category system function ModelPlug_AddToCPanel(panel, category, toolname, _, _, textbox_la...
gpl-3.0
tehran980/https-github.com-uziins-uzzbot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
tehran980/tele_HSN
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
dunn/ntopng
scripts/lua/inc/add_user_dialog.lua
8
5799
print [[ <div id="add_user_dialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="add_user_dialog_label" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</but...
gpl-3.0
eagle14/kia14
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
zhaoxx063/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua
68
1959
-- 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 codec_a_mu = module:option(Li...
apache-2.0
kkamdooong/hammerspoon
extensions/hotkey/init.lua
4
18790
--- === hs.hotkey === --- --- Create and manage global keyboard shortcuts local hotkey = require "hs.hotkey.internal" local keycodes = require "hs.keycodes" local alert = require'hs.alert' local log = require'hs.logger'.new('hotkey','info') hotkey.setLogLevel=log.setLogLevel hotkey.getLogLevel=log.getLogLevel local t...
mit
OSGConnect/modulefiles
modulefiles/Core/SitePackage.lua
1
3929
require("strict") local hook = require("Hook") local http = require("socket.http") http.TIMEOUT = 30 function url_quote(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end) str = stri...
apache-2.0
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_expression2/core/files.lua
1
7968
--[[ File Extension By: Dan (McLovin) ]]-- local cv_transfer_delay = CreateConVar( "wire_expression2_file_delay", "5", { FCVAR_ARCHIVE } ) local cv_max_transfer_size = CreateConVar( "wire_expression2_file_max_size", "100", { FCVAR_REPLICATED, FCVAR_ARCHIVE } ) //in kb E2Lib.RegisterExtension( "file", tru...
gpl-3.0
tkdrob/Battle-Tag
Packages/Introduction/Data/Script/Lua/UAIntroduction.Ui.Seq_Batteries.lua
1
4956
--[[-------------------------------------------------------------------------- -- -- File: UAIntroduction.Ui.Seq_Batteries.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 16, 2010 -- -----------------...
mit
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_indicator/init.lua
1
5857
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Indicator" function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.a = 0 self.ar = 0 self.a...
gpl-3.0
eagle14/kia14
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
mamadtnt/bot
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
oratory/wago.io
backend/api/lua/codeReview/env-BaseLua.lua
1
3359
-- limited to safe lua functions env = { next = next, pairs = pairs, ipairs = ipairs, pcall = pcall, print = tada, rawequal = nada, rawget = nada, rawset = nada, select = select, setfenv = nada, setmetatable = nada, tonumber = tonumber, tostring = tostring, type = type, unpack = unpack, ...
mit
maxmax1/fooniks
resources/phoenix_Estonia/saar.lua
2
1387
local reloadAmount = tonumber( exports.cookies:Cookie( "cModelRemember" ) ) or 3; local reloadTimes = 0; -- addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), function ( ) setTimer( LoadAllModels, 100, reloadAmount ); end ); addCommandHandler( "models", ...
gpl-3.0
petrkr/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
tkdrob/Battle-Tag
Packages/Disarm/Data/Script/Lua/UADisarm.Ui.RoundLoop.lua
1
3976
--[[-------------------------------------------------------------------------- -- -- File: UADisarm.Ui.RoundLoop.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: August 03, 2010 -- ------------------------------...
mit
zhaoxx063/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
31
1569
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- signal/noise diagram -- local snr = { title = "%H: Signal and noise on %pi", ...
apache-2.0
maxmax1/fooniks
resources/traffic/definitions/area_limits.lua
2
8445
AREA_LIMITS = {} for i = 0,255 do AREA_LIMITS[i] = {ALL = 10, BOATS = 2} end --[[ AREA_LIMITS = { [0] = { ALL = 5, BOATS = 2 }, [1] = { ALL = 5, BOATS = 2 }, [2] = { ALL = 5, BOATS = 2 }, [3] = { ALL = 5, BOATS = 2 }, [4] = { ALL = 5, BOATS = 2 }, [5] = { ALL = 5, BOATS = 2 }, [6] = { ALL = 5, BOATS = 2 }, [...
gpl-3.0
ReccaStudio/ActiveStar
cocos2d/external/lua/luajit/src/dynasm/dasm_arm.lua
74
34483
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
gpl-2.0
resistor58/deaths-gmod-server
Mad Cows Weapons/lua/weapons/weapon_mad_p90/shared.lua
1
1623
// Variables that are used on both client and server SWEP.Base = "weapon_mad_base_sniper" SWEP.ViewModelFlip = true SWEP.ViewModel = "models/weapons/v_smg_p90.mdl" SWEP.WorldModel = "models/weapons/w_smg_p90.mdl" SWEP.Spawnable = true SWEP.AdminSpawnable = false SWEP.Primary.Sound = Sound("...
gpl-3.0
amirik22/uzzbot
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
oratory/wago.io
backend/api/lua/libs/AceTimer-3.0/AceTimer-3.0.lua
31
9798
--- **AceTimer-3.0** provides a central facility for registering timers. -- AceTimer supports one-shot timers and repeating timers. All timers are stored in an efficient -- data structure that allows easy dispatching and fast rescheduling. Timers can be registered -- or canceled at any time, even from within a running ...
mit
resistor58/deaths-gmod-server
ulx/lua/ulx/modules/menus.lua
1
8806
ulx.setCategory( "Menus" ) if file.Exists( "../lua/ulx/modules/cl/mainmenu.lua" ) then function ulx.cc_menu( ply, command, argv, args ) if not ply:IsValid() then Msg( "You can't use menus from the dedicated server console.\n" ) return end ULib.sendLuaFunction( ply, "ulx.showMainMenu" ) end ulx...
gpl-3.0
tkdrob/Battle-Tag
Data/Script/Lua/Classes/Ui/UISelector.Item.lua
1
8700
--[[-------------------------------------------------------------------------- -- -- File: UISelector.Item.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 9, 2010 -- ----------------------------------...
mit
NOVAR1/DEV_NOVAR
plugins/miosc.lua
4
1297
local function tomp3(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'mp3' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_document(get_receiver(msg), file, ok_cb, false) send_large_msg(receiver, ''...
gpl-2.0
DEVN0VAR/N0VAR-V2
plugins/infomme.lua
2
10560
do local Arian = 373906612 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.i...
gpl-2.0
zchengquan/nn
Sequential.lua
8
3794
local Sequential, _ = torch.class('nn.Sequential', 'nn.Container') function Sequential:__len() return #self.modules end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
bsd-3-clause
aspiraboo/kappa
data/spells/scripts/party/protect.lua
4
1986
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) combat:setArea(createCombatArea(AREA_CIRCLE5X5)) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_SUBID, 2) condition:setParameter(CONDITION_...
gpl-2.0
RyanSquared/lua-http
http/compat/prosody.lua
3
2393
--[[ Compatibility module for prosody's net.http Documentation: https://prosody.im/doc/developers/net/http This has a few key differences: - `compat.prosody.request` must be called from within a running cqueue - The callback will be called from a different thread in the cqueue - The returned "request" object...
mit
lujingwei002/erhzb
server/3rd/tolua++/lua/define.lua
43
1317
-- tolua: define class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide ...
apache-2.0
oratory/wago.io
backend/api/lua/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
37
18708
--[[ $Id: AceGUIWidget-DropDown.lua 1116 2014-10-12 08:15:46Z nevcairiel $ ]]-- local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local min, max, floor = math.min, math.max, math.floor local select, pairs, ipairs, type = select, pairs, ipairs, type local tsort = table.sort -- WoW APIs local PlaySound = PlaySound local...
mit
Hugome/perso-script-tekkit
TurtleAdvancedMining/src/simple_turtle.lua
1
2258
--Peripheral var print("Longeur du tunnel (forcez un peu elle revient toute seul): ") longeur_tunnel = tonumber(read()) digged_tunnel = 0 --Functions function ifReturnHome() local emptySlot = 0; for i = 1, 16 do if(turtle.getItemCount(i) == 0) then emptySlot = emptySlot + 1 end end if(emptySlot <= 1)then r...
mit
DEVN0VAR/N0VAR-V2
plugins/gome.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
resistor58/deaths-gmod-server
wire/lua/entities/gmod_wire_expression2/core/console.lua
1
1739
/******************************************************************************\ Console support \******************************************************************************/ E2Lib.RegisterExtension("console", true) local function validConCmd(self, command) local ply = self.player if not ply:IsValid() ...
gpl-3.0
kkamdooong/hammerspoon
extensions/location/geocoder.lua
13
3233
--- === hs.location.geocoder === --- --- Converts between GPS coordinates and more user friendly representations like an address or points of interest. --- --- This module converts between GPS coordinates and the user-friendly representation of that coordinate. A user-friendly representation of the coordinate typicall...
mit
zhaoxx063/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua
68
1060
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("Interface Plugin Configuration"), translate( "The interface plugin collects traffic statistics on " .. "selected interfaces." ...
apache-2.0
resistor58/deaths-gmod-server
Nuke Pack 4/lua/effects/nuke_effect_air/old.lua
5
7753
local matRefraction = Material( "refract_ring" ) local matGlow = Material("sprites/light_glow02") local SplodeSnd = Sound("ambient/explosions/explode_6.wav") local WooshSnd = Sound("physics/nearmiss/whoosh_huge1.wav") --local SplodeSnd = Sound("ambient/explosions/exp1-4.wav") --ambient/levels/abs/electric_...
gpl-3.0
Abollfazl2/VGMbot
plugins/ingroup.lua
202
31524
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)] = { ...
gpl-2.0
lsmoura/dtb
inc/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua
1
10825
--[[ $Id: AceGUIWidget-DropDown-Items.lua 916 2010-03-15 12:24:36Z nevcairiel $ ]]-- local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local select, assert = select, assert -- WoW APIs local PlaySound = PlaySound local CreateFrame = CreateFrame local function fixlevels(parent,...) local i = 1 local ch...
unlicense
chewi/Aquaria
files/scripts/entities/floating-city.lua
6
1556
-- 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
petrkr/nodemcu-firmware
lua_examples/ucglib/GT_color_test.lua
30
1027
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component color_test...") local mx local c, x mx = disp:getWidth() / 2 --my = disp:getHeight() / 2 disp:setColor(0, 0, 0, 0) disp:drawBox(0, 0, ...
mit
shahabsaf1/tg
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
comedinha/New-Poke-Lite
data/talkactions/scripts/kills.lua
43
1370
function onSay(player, words, param) 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 <= 0 then player:sendTe...
gpl-2.0
ruvolof/telegram-bot
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
hfjgjfg/ccc111
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
mamadtnt/bot
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
fegimanam/telegram-bot-supergroups
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
joehanchoi/hammerspoon
extensions/applescript/init.lua
13
2635
--- === hs.applescript === --- --- Execute AppleScript code --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("hs.applescript.internal") -- private variables and methods ------------------------------------...
mit
zeta0134/LuaGB
gameboy/z80/inc_dec.lua
1
2063
local bit32 = require("bit") local lshift = bit32.lshift local band = bit32.band function apply(opcodes, opcode_cycles, z80, memory) local reg = z80.registers local flags = reg.flags local read_byte = memory.read_byte local write_byte = memory.write_byte set_inc_flags = function(value) flags.z = value...
bsd-3-clause
Nottinghster/OTServ_SVN-0.6.4
src/data/talkactions/scripts/removething.lua
4
1238
function onSay (cid, words, param) local amount = 1 param = tonumber(param) if(param) then amount = tonumber(param) end local tmp = {} local toPos = getPlayerLookPos(cid) toPos.stackpos = 255 tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then if(isCreature(tmp.uid) ) then doRemoveCreature(tmp.uid) el...
gpl-2.0
cyrillePrigent/kmod-ng
umod/command/client/private_message_admin.lua
1
1621
-- Private message admins -- From kmod script. -- Require : admins module -- Send a private message to admins currently on server. -- params is parameters passed from et_ClientCommand function. -- * params["arg1"] => private message content function execute_command(params) if params.nbArg < 2 then et.t...
gpl-2.0
milos-korenciak/heroku-buildpack-tex
buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/FineTune.lua
3
4290
-- 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
joehanchoi/hammerspoon
extensions/milight/init.lua
4
5055
--- === hs.milight === --- --- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb) local milight = require "hs.milight.internal" milight.cmd = milight._cacheCommands() local milightObject = hs.getObjectMetatable("hs.milight") --- hs.milight.minBrightness --- Constant --- Specifie...
mit
httpomid/TeleSeed
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
sobhanss/sobot
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
maxmax1/fooniks
resources/admin/client/admin_wrapper.lua
2
2072
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_wrapper.lua * * Original File by lil_Toady * **************************************]] _guiprotected = {} function guiCreateHeader ( x, y, w, h, text, relative, parent ) local header = guiCreateLabel ( x, y, w, h, text, rel...
gpl-3.0
chewi/Aquaria
files/scripts/entities/bigblaster.lua
6
6334
-- 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
tehran980/tele_HSN
plugins/id.lua
355
2795
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, resu...
gpl-2.0
zhaoxx063/luci
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua
78
2244
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") require("luci.sys.zoneinfo") require("luci.tools.webadmin") require("luci.util") m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li...
apache-2.0