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
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/AssetsManagerEx.lua
3
2738
-------------------------------- -- @module AssetsManagerEx -- @extend Ref -- @parent_module cc -------------------------------- -- @brief Gets the current update state. -- @function [parent=#AssetsManagerEx] getState -- @param self -- @return int#int ret (return value: int) -------------------------------...
mit
abasshacker/abbasone
plugins/banhammer.lua
106
11894
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
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/achievements/convert.lua
4
1360
-- script to convert from old sqlite db to mysql with forumids results = executeSQLQuery("SELECT * FROM gcAchievements" ) local achievementList = { ["CTF: Capture two flags in one map (50 GC)"] = 1, ["CTF: Capture the winning flag (50 GC)"] = 2, } local fileHandle = fileCreate("convert.sql") fileWrite ( fileHandl...
mit
shadoalzupedy/shadow
plugins/supergroup.lua
7
104172
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] --...
gpl-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/script/framework/extends/MenuEx.lua
57
1228
--[[ Copyright (c) 2011-2014 chukong-inc.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
mit
daurnimator/lua-http
http/client.lua
1
3165
local ca = require "cqueues.auxlib" local cs = require "cqueues.socket" local http_tls = require "http.tls" local http_util = require "http.util" local connection_common = require "http.connection_common" local onerror = connection_common.onerror local new_h1_connection = require "http.h1_connection".new local new_h2_c...
mit
snowplow/snowplow-lua-tracker
spec/unit/lib/json_spec.lua
1
2293
--- json_spec.lua -- -- Copyright (c) 2013 - 2022 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0...
apache-2.0
opentechinstitute/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
78
2765
--[[ Luci configuration model for statistics - collectd netlink plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 Licen...
apache-2.0
osa1/language-lua
lua-5.3.1-tests/api.lua
4
31491
-- $Id: api.lua,v 1.141 2015/05/15 12:25:38 roberto Exp $ if T==nil then (Message or print)('\n >>> testC not active: skipping API tests <<<\n') return end local debug = require "debug" local pack = table.pack function tcheck (t1, t2) assert(t1.n == (t2.n or #t2) + 1) for i = 2, t1.n do assert(t1[i] == t2[...
bsd-3-clause
opentechinstitute/luci
applications/luci-pbx/luasrc/model/cbi/pbx-users.lua
146
5623
--[[ 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
cyberz-eu/octopus
extensions/core/src/fileutil.lua
1
3474
local lfs = require "lfs" local exception = require "exception" local util = require "util" local function noBackDirectory (path) if path == ".." or path:find("/..", 1, true) or path:find("../", 1, true) then exception("no back directory allowed") end end local function countBackDirectories (path) local uris = ut...
bsd-2-clause
DuffsDevice/winds
arm9/data/program.calculator.lua
1
9257
--FILE_ICON = %APPDATA%/CalcIcon.bmp --AUTHOR = WinDS --FILE_NAME = Calculator --WND_TITLE = Calculator --VERSION = 1.1 --DESC = Basic Calculator --COPYRIGHT = (C) 2014 --LANG = neutral using "System.Event" using "Drawing.Bitmap" using "Drawing.Font" using "Drawing.Color" using "UI.Gadget" using "UI.Bu...
mit
abasshacker/abbasone
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
ioiasff/khp
plugins/chat.lua
6
1252
local function run(msg) if msg.text == "hi" then return "سلام" end if msg.text == "Hi" then return "سلام جیگر" end if msg.text == "Hello" then return "سلاممم" end if msg.text == "hello" then return "سسلامم" end if msg.text == "Salam" then return "سلام علیکم " end if msg.text == "salam" then return "سلام " end if ...
gpl-2.0
alfredtofu/thrift
lib/lua/TTransport.lua
115
2800
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/maps/maps_client.lua
1
13703
PRICE = 1000 lastWinnerPrice = 500 local main_window local tab_panel local tab = {} local aGamemodeMapTable = {} function createNextmapWindow(tabPanel) tab = {} tab.mainBuyPanel = guiCreateTab('Maps-Center', tabPanel) tab_panel = guiCreateTabPanel ( 0.01, 0.05, 0.98, 0.95, true, tab.mainBuyPanel ) ta...
mit
1lann/Convorse
luaclient/launcher.lua
1
9007
local theme = { background = colors.white, accent = colors.blue, text = colors.black, header = colors.white, input = colors.white, inputText = colors.gray, placeholder = colors.lightGray, err = colors.red, } if not term.isColor() then theme = { background = colors.white, accent = colors.black, text = co...
mit
JarnoVgr/Mr.Green-MTA-Resources
resources/[admin]/censorship/censorship_s.lua
1
1356
-- Frequent advertisements: local ads = { "vk.com", "new_era_mta", "vk.com/newˍeraˍmta", 'Dayz Mod "New Era"' } function resourceStart() --outputDebugString("Hello world!",0) end addEventHandler('onResourceStart', getResourceRootElement(),resourceStart) function onPlayerChat_s(msg, msgType) if not isBanMsg(msg) th...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/tests/lua-tests/src/ClickAndMoveTest/ClickAndMoveTest.lua
17
2052
local size = cc.Director:getInstance():getWinSize() local layer = nil local kTagSprite = 1 local function initWithLayer() local sprite = cc.Sprite:create(s_pPathGrossini) local bgLayer = cc.LayerColor:create(cc.c4b(255,255,0,255)) layer:addChild(bgLayer, -1) layer:addChild(sprite, 0, kTagSprite) ...
mit
robbie-cao/mooncake
uvth.lua
1
1376
local uv = require('luv') local step = 10 hare = function (step, ...) local uv = require('luv') while step > 0 do print("+ Hare ran step " .. tostring(step), ...) step = step - 1 uv.sleep(1000) end print("** Hare done running!") end tortoise = function (step, msg, ...) loc...
mit
ashkanpj/fire
bot/utils.lua
356
14963
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
lizh06/premake-core
modules/xcode/tests/test_xcode4_project.lua
8
2372
--- -- tests/actions/xcode/test_xcode4_project.lua -- Automated test suite for Xcode project generation. -- Copyright (c) 2011-2015 Jason Perkins and the Premake project --- local suite = test.declare("xcode4_proj") local xcode = premake.modules.xcode -- -- Replacement for xcode.newid(). Creates a synthetic ID ba...
bsd-3-clause
lizh06/premake-core
tests/actions/vstudio/vc200x/test_project.lua
16
4148
-- -- tests/actions/vstudio/vc200x/test_project.lua -- Validate generation of the opening <VisualStudioProject> element. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vs200x_project") local vc200x = premake.vstudio.vc200x -- -- Setup -- local wks, prj f...
bsd-3-clause
robbie-cao/mooncake
json-dk.lua
1
4901
local json = require ("dkjson") local P = print if true or arg[1] == "off" then print0 = function (...) end end local tbl = { animals = { "dog", "cat", "aardvark" }, instruments = { "violin", "trombone", "theremin" }, bugs = json.null, trees = nil } local str = json.encode (tbl, { indent = tr...
mit
cooljeanius/CEGUI
cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/function.lua
1
19227
-- 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, -- enhancements,...
gpl-3.0
Zefiros-Software/ZPM
test/extern/luacov/runner.lua
2
21877
--------------------------------------------------- -- Statistics collecting module. -- Calling the module table is a shortcut to calling the `init` function. -- @class module -- @name luacov.runner local runner = {} --- LuaCov version in `MAJOR.MINOR.PATCH` format. runner.version = "0.12.0" local stats = require("st...
mit
ioiasff/khp
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
aqasaeed/spartacus
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
adib1380/antispam
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
merlokk/proxmark3
client/scripts/lf_bulk_program.lua
5
4681
-- -- lf_bulk_program.lua - A tool to clone a large number of tags at once. -- Updated 2017-04-18 -- -- The getopt-functionality is loaded from pm3/client/lualibs/getopt.lua -- Have a look there for further details getopt = require('getopt') bit32 = require('bit32') usage = [[ script run lf_bulk_program.lua -f facilit...
gpl-2.0
mehrdadneyazy78/-S-Bot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
kyuu/dynrpg-rpgss
assets/Scripts/extensions/pathfinder/interface.lua
1
4317
------------------------------------------------------------------------------- -- Sets the pathfinder search mode. -- -- @param mode (String) The new search mode. Possible values are -- "orthogonal" (4-way movement) and "diagonal" -- (8-way movement)...
mit
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/cpp.lua
4
2938
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- C++ 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 = 'cpp'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line_comme...
mit
lizh06/premake-core
tests/actions/vstudio/cs2005/test_debug_props.lua
6
2015
-- -- tests/actions/vstudio/cs2005/test_debug_props.lua -- Test debugging and optimization flags block of a Visual Studio 2005+ C# project. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_cs2005_debug_props") local cs2005 = premake.vstudio.cs2005 local project...
bsd-3-clause
mattico/planets
quickie/input.lua
15
3335
--[[ Copyright (c) 2012 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, distribu...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/FadeOutBLTiles.lua
11
1263
-------------------------------- -- @module FadeOutBLTiles -- @extend FadeOutTRTiles -- @parent_module cc -------------------------------- -- brief Create the action with the grid size and the duration.<br> -- param duration Specify the duration of the FadeOutBLTiles action. It's a value in seconds.<br> -- param grid...
mit
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/vcard.lua
4
3521
-- Copyright (c) 2015-2017 Piotr Orzechowski [drzewo.org]. See LICENSE. -- vCard 2.1, 3.0 and 4.0 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 = 'vcard'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Requ...
mit
ctfuckme/asasasas
plugins/invite.lua
17
1595
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function res_user_callback(cb_extra, success, result) local receiver = cb_extra.receiver local user = 'user#id'..result.id local chat = 'chat#id'....
gpl-2.0
LuaDist2/oil
lua/oil/kernel/base/Dispatcher.lua
6
4253
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
Telecat-full/-Telecat-Full
plugins/LinkPv.lua
2
31045
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
hfjgjfg/amir2
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
meirfaraj/tiproject
finance/src/finance/tmv/cours/mathfi/gen/SwapDeTaux.lua
1
12204
-------------------------------------------------------------------------- -- cours exported from SwapDeTaux.txt -------------------------------------------------------------------------- SwapDeTaux = Tmv(SWAP_DE_TAUX_TITLE_ID,SWAP_DE_TAUX_TITLE_HEADER_ID) function SwapDeTaux:widgetsInit() self:add(-1,{"cours",...
apache-2.0
opentechinstitute/luci
libs/nixio/docsrc/nixio.TLSSocket.lua
173
2926
--- TLS Socket Object. -- TLS Sockets contain the underlying socket and context in the fields -- "socket" and "context". -- @cstyle instance module "nixio.TLSSocket" --- Initiate the TLS handshake as client with the server. -- @class function -- @name TLSSocket.connect -- @usage This function calls SSL_connect(). -- @...
apache-2.0
HEYAHONG/nodemcu-firmware
lua_examples/irsend.lua
7
1852
------------------------------------------------------------------------------ -- IR send module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("irsend.lua").nec(4, 0x00ff00ff) -----------------------------------------------------------------------...
mit
mattico/planets
quickie/init.lua
17
1815
--[[ Copyright (c) 2012 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, distribu...
mit
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/-shaders-contrast/c_contrast.lua
4
10222
-- -- c_contrast.lua -- bEffectEnabled = false Settings = {} Settings.var = {} -------------------------------- -- Switch effect on -------------------------------- function enableContrast() if bEffectEnabled then return end -- Version check if getVersion ().sortable < "1.1.0" then outputChatBox( "Resource is ...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/CCBAnimationManager.lua
1
8608
-------------------------------- -- @module CCBAnimationManager -- @extend Ref -- @parent_module cc -------------------------------- -- -- @function [parent=#CCBAnimationManager] moveAnimationsFromNode -- @param self -- @param #cc.Node fromNode -- @param #cc.Node toNode -- @return CCBAnimationManager#CCBAnimationMa...
mit
durandtibo/wsl.resnet.torch
opts.lua
1
5417
local M = { } function M.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Torch-7 - Training script') cmd:text() cmd:text('Options:') ------------ General options -------------------- cmd:option('-data', '', 'Path to dataset') cmd:option('-dataset', 'v...
mit
vipteam1/VIP_TEAM_EN11
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
wartman4404/everybody-draw
src/test/unibrushes/fail-lua-runtime/neko.lua
1
7224
local kStop = 0 -- Jare is cleaning. local kJare = 1 local kKaki = 2 -- Kaki is scratching the ear. local kAkubi = 3 -- Akubi is yawning. local kSleep = 4 local kAwake = 5 local kMoveUp = 6 local kMoveDown = 7 local kMoveLeft = 8 local kMoveRight = 9 local kMoveUpLeft = 10 local kMoveUpRight = 11 local kMoveDownLeft = ...
apache-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EaseBounceInOut.lua
9
1317
-------------------------------- -- @module EaseBounceInOut -- @extend EaseBounce -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseBounceInOut action. If creation failed, return n...
mit
pratik2709/RayCasting-Engine
game/minimap.lua
1
1095
function drawMiniMap() for y = 0, mapHeight-1, 1 do for x = 0, mapWidth-1, 1 do local wall = map[y][x] if wall > 0 then local xs = x * miniMapScale local ys = y * miniMapScale love.graphics.setColor(153, 0, 0) ...
mit
sumefsp/zile
lib/zz/commands/macro.lua
1
2447
-- Macro facility commands. -- -- Copyright (c) 2010-2014 Free Software Foundation, Inc. -- -- This file is part of GNU Zile. -- -- This program is free software; you can redistribute it and/or modify it -- under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version...
gpl-3.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/tests/lua-tests/src/ExtensionTest/ExtensionTest.lua
2
48384
require "ExtensionTest/CocosBuilderTest" require "ExtensionTest/WebProxyTest" local LINE_SPACE = 40 local kItemTagBasic = 1000 local ExtensionTestEnum = { TEST_NOTIFICATIONCENTER = 0, TEST_CCCONTROLBUTTON = 1, TEST_COCOSBUILDER = 2, TEST_WEBSOCKET = 3, TEST_EDITBOX = ...
mit
parsanoe160/aqil1381
bot.lua
2
7294
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' -- @MuteTeam tdcli = dofile('tdcli.lua') redis = (loadfile "./libs/redis.lua")() sudo_users = { 105616381, 0 } -- Print message format. Use ser...
agpl-3.0
darkdukey/sdkbox-facebook-sample-v2
scripting/lua/luajit/LuaJIT-2.0.1/dynasm/dasm_mips.lua
74
28080
------------------------------------------------------------------------------ -- DynASM MIPS module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _i...
mit
ctfuckme/asasasas
bot/bot.lua
1
6902
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
SiENcE/APE
ui_scripts/ui_pageswitch.lua
2
5526
local l_gfx = love.graphics -- big and invisible container element -- used for paged interface, useless without page controller PageSwitch = {} PageSwitch.__index = PageSwitch PageSwitch.ident = "ui_pageswitch" PageSwitch.name = "PageSwitch" PageSwitch.updateable = true PageSwitch.updateAll = false -- if true, it wil...
mit
luanorlandi/Swift-Space-Battle
src/window/window.lua
2
4583
Window = {} Window.__index = Window function Window:new() local W = {} setmetatable(W, Window) W.ratio = 16 / 9 -- try to read from a file local resolution = readResolutionFile() W.width = resolution.x W.height = resolution.y -- if was not possible, try to get from OS if W.width == nil or W.width == 0 or ...
gpl-3.0
opentechinstitute/luci
applications/luci-asterisk/luasrc/asterisk.lua
80
18044
--[[ LuCI - Lua Configuration Interface Asterisk PBX interface library Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> 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/licen...
apache-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/GLViewImpl.lua
19
1142
-------------------------------- -- @module GLViewImpl -- @extend GLView -- @parent_module cc -------------------------------- -- -- @function [parent=#GLViewImpl] createWithRect -- @param self -- @param #string viewName -- @param #rect_table rect -- @param #float frameZoomFactor -- @return GLViewImpl#GLViewImpl re...
mit
vipteam1/VIP_TEAM_EN11
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
satanevil/copy-creed
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
imashkan/HAULbot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/libzq/auto_buildings/api/ZQImageLoader.lua
2
1288
-------------------------------- -- @module ZQImageLoader -- @parent_module zq -------------------------------- -- -- @function [parent=#ZQImageLoader] load_image -- @param self -- @param #string path -- @param #string key -- @return SpriteFrame#SpriteFrame ret (return value: cc.SpriteFrame) --------------...
mit
dan-f/Soundpipe
modules/data/drip.lua
3
2416
sptbl["drip"] = { files = { module = "drip.c", header = "drip.h", example = "ex_drip.c", }, func = { create = "sp_drip_create", destroy = "sp_drip_destroy", init = "sp_drip_init", compute = "sp_drip_compute", }, params = { mandatory ...
mit
ZeroNoFun/Gmod-Aperture-science-laboratories
lua/aperture/sounds/portal_turret_sounds.lua
2
4958
--[[ CATAPULT SOUNDS ]] AddCSLuaFile() APERTURESCIENCE.TurretShoot = { channel = CHAN_WEAPON, name = "GASL.TurretShoot", level = 60, sound = { "npc/turret/turret_fire_4x_01.wav" , "npc/turret/turret_fire_4x_02.wav" , "npc/turret/turret_fire_4x_03.wav" }, volume = 1.0, pitch = 100, } sound.Add( APERTURESC...
mit
abasshacker/abbasone
plugins/spammer.lua
86
65983
local function run(msg) if msg.text == "[!/]killwili" then return "".. [[ kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh...
gpl-2.0
Arashbrsh/a1wez-
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
UB12/y_r
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/crystal.lua
5
4723
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Copyright 2017 Michel Martens. -- Crystal LPeg lexer (based on Ruby). 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 = 'crystal'} -- Whitespace. local ws = tok...
mit
Zefiros-Software/ZPM
src/cli/install.lua
1
3301
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
mit
cleme1mp/dotfiles
hammerspoon/modes/indicator.lua
2
3992
function timer_indicator(timelen) if not indicator_used then indicator_used = hs.drawing.rectangle({0,0,0,0}) indicator_used:setStroke(false) indicator_used:setFill(true) indicator_used:setFillColor(osx_red) indicator_used:setAlpha(0.35) indicator_used:setLevel(hs.dra...
mit
tomkdir/SimplifyReader
library_youku/src/main/res/raw/aes.lua
130
3338
---------------------- bit utils bit={data32={}} for i=1,32 do bit.data32[i]=2^(32-i) end function bit.d2b(arg) local tr={} for i=1,32 do if arg >= bit.data32[i] then tr[i]=1 arg=arg-bit.data32[i] else tr[i]=0 end end return tr end --bit:d2b f...
apache-2.0
meirfaraj/tiproject
finance/src/ui/math/discrete/hypergeometric/hypergeometricsplcalc.lua
1
11711
-------------------------------------------------------------------------- -- loi hypergeometrique -- -------------------------------------------------------------------------- LoiHypergeometriqueSplCalc = Discrete3Params(LOI_HYPERGEOMETRIQUE_1VAR_TITLE_ID,LOI_HYPER...
apache-2.0
LuaDist2/oil
lua/loop/base.lua
15
3399
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
tinydanbo/Impoverished-Starfighter
lib/loveframes/objects/internal/sliderbutton.lua
10
6367
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- sliderbutton class local newobject = loveframes.NewObject("sliderbutton", "loveframes_object_sliderbutton", true) --[[--...
mit
luanorlandi/Swift-Space-Battle
src/ship/enemyType2.lua
2
2167
local deckSize = Vector:new(50 * window.scale, 50 * window.scale) local deck = MOAIGfxQuad2D.new() deck:setTexture("texture/ship/ship9.png") deck:setRect(-deckSize.x, -deckSize.y, deckSize.x, deckSize.y) local deckDmg = MOAIGfxQuad2D.new() deckDmg:setTexture("texture/ship/ship9dmg.png") deckDmg:setRect(-deckSize.x, -...
gpl-3.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[race]/race/editor_support_client.lua
4
5932
-- -- editor_support_client.lua -- function isEditor() if g_IsEditor == nil then g_IsEditor = getElementData(resourceRoot,"isEditor") outputDebug ( "Client: Is editor " .. tostring(g_IsEditor == true) ) end return g_IsEditor == true end -- Hacks start here if isEditor() then -- Copy cp_next into cp_now set...
mit
uonline/debut
src/day2/act6/the_end_in_scaffold.gameover.lua
1
1397
the_end_in_scaffold = room { nam = 'Конец'; dsc = [[ Что ж видимо вот оно, твоё место в этом мире -- на плахе. Есть на свете такие люди, для которых уготовано отдельное течение жизни. Оно подхватывает их и несёт в никуда, хотят они того или нет. А если они найдут в себе смелость бороться с течением, оно лишь ...
gpl-3.0
tomzhang/kubernetes
test/images/echoserver/template.lua
195
17200
-- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua -- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex. --[[ Copyright (c) 2014 - 2017 Aapo Talvensaari All rights reserved. Redistribu...
apache-2.0
juanvallejo/kubernetes
test/images/echoserver/template.lua
195
17200
-- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua -- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex. --[[ Copyright (c) 2014 - 2017 Aapo Talvensaari All rights reserved. Redistribu...
apache-2.0
uonline/debut
src/day1/act6/tract_camp/tract_camp.room.lua
1
6024
tract_camp_to_dream = vroom('Лечь спать', 'dream'); tract_camp_to_dream:disable(); on_event('talked to black guy', function() tract_camp_to_dream:enable() end) tract_camp = room { nam = 'Стоянка повозки у тракта'; dsc = [[ -- Эй, просыпайся! -- чья-то рука грубо толкает тебя в бок. -- Если не хочешь остаться б...
gpl-3.0
shadoalzupedy/shadow
plugins/shado2.lua
1
2362
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] do...
gpl-2.0
DEKHTIARJonathan/BilletterieUTC
badgingServer/Install/swigwin-3.0.7/Examples/test-suite/lua/overload_simple_runme.lua
8
1235
require("import") -- the import fn import("overload_simple") -- import code for k,v in pairs(overload_simple) do _G[k]=v end -- move to global -- lua has only one numeric type, foo(int) and foo(double) are the same -- whichever one was wrapper first will be used assert(foo(3)=="foo:int" or foo(3)=="foo:double") -- co...
apache-2.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[race]/race/edf/edf_client.lua
4
2793
g_ModelForPickupType = { nitro = 2221, repair = 2222, vehiclechange = 2223 } models = {} startTick = getTickCount() function onStart() --Callback triggered by edf for name,id in pairs(g_ModelForPickupType) do models[name] = {} models[name].txd = engineLoadTXD(':race/model/' .. name .. '.txd') engineImportTXD(...
mit
uonline/debut
src/day2/act8/burning_quarter_part_II.room.lua
1
74608
-- Переменные локации _burning_quarter_walking_dead = false; -- Функции локации -- Функция нападения на проповедника с голыми руками burning_quarter_mad_strike = function() local mad_strike_text; walk 'burning_quarter_part_II_gameover'; -- Проверяем, есть ли у героя оружие if ( (not have(burning_quarter_knuckle...
gpl-3.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EventMouse.lua
18
4781
-------------------------------- -- @module EventMouse -- @extend Event -- @parent_module cc -------------------------------- -- Returns the previous touch location in screen coordinates.<br> -- return The previous touch location in screen coordinates.<br> -- js NA -- @function [parent=#EventMouse] getPreviousLocati...
mit
FreeScienceCommunity/PLPlot
examples/lua/x13.lua
1
2427
--[[ Pie chart demo. Copyright (C) 2008 Werner Smekal This file is part of PLplot. PLplot is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option)...
lgpl-2.1
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/items/paintjob/paintjob_c.lua
1
18753
------------------------------------ --- Drawing custom paintjobs --- ------------------------------------ local client_path = 'items/paintjob/'; function onClientElementDataChange(name) if name ~= 'gcshop.custompaintjob' then return end local val = getElementData(source, 'gcshop.custompaintjob') if val ~...
mit
opentechinstitute/luci
modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
85
2658
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> 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://w...
apache-2.0
opentechinstitute/luci
libs/rpcc/luasrc/rpcc.lua
93
2227
--[[ LuCIRPCc (c) 2009 Steven Barth <steven@midlink.org> 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 $Id$ ]]-- local util = require "luci.ut...
apache-2.0
MmxBoy/newbot
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
ioiasff/khp
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
aminaleahmad/merbots
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
leonghui/packages
lang/luaexpat/files/compat-5.1r5/compat-5.1.lua
251
6391
-- -- Compat-5.1 -- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat) -- According to Lua 5.1 -- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $ -- _COMPAT51 = "Compat-5.1 R5" local LUA_DIRSEP = '/' local LUA_OFSEP = '_' local OLD_LUA_OFSEP = '' local POF = 'luaopen_' local LUA_PA...
gpl-2.0
meirfaraj/tiproject
finance/src/finance/portfeuille/portefeuilleEfficientCompoXf4.lua
1
2834
-------------------------------------------------------------------------- -- Obligation -- -------------------------------------------------------------------------- require("ui/wscreen") require("finance/portfeuille/func/utilite") require("finance/portfeuill...
apache-2.0
AliKhodadad/zed-spam
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
adamflott/wargus
scripts/ai/ai_jadeite_2010.lua
1
13497
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|_...
gpl-2.0
satanevil/copy-creed
plugins/bot_on_off.lua
292
1641
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0