commit
stringlengths
40
40
old_file
stringlengths
6
181
new_file
stringlengths
6
181
old_contents
stringlengths
448
7.17k
new_contents
stringlengths
449
7.17k
subject
stringlengths
0
450
message
stringlengths
6
4.92k
lang
stringclasses
1 value
license
stringclasses
12 values
repos
stringlengths
9
33.9k
05ecd6101545147495296bb0d57e82f03c0c5d94
lualib/mongo.lua
lualib/mongo.lua
local bson = require "bson" local socket = require "socket" local socketchannel = require "socketchannel" local skynet = require "skynet" local driver = require "mongo.driver" local rawget = rawget local assert = assert local bson_encode = bson.encode local bson_encode_order = bson.encode_order local bson_decode = bso...
local bson = require "bson" local socket = require "socket" local socketchannel = require "socketchannel" local skynet = require "skynet" local driver = require "mongo.driver" local rawget = rawget local assert = assert local bson_encode = bson.encode local bson_encode_order = bson.encode_order local bson_decode = bso...
bugfix: mongo driver, reply result
bugfix: mongo driver, reply result
Lua
mit
microcai/skynet,zzh442856860/skynet,lynx-seu/skynet,winglsh/skynet,lynx-seu/skynet,yunGit/skynet,chfg007/skynet,cpascal/skynet,kyle-wang/skynet,qyli/test,jxlczjp77/skynet,Ding8222/skynet,u20024804/skynet,fztcjjl/skynet,LiangMa/skynet,MRunFoss/skynet,xinmingyao/skynet,fztcjjl/skynet,xjdrew/skynet,asanosoyokaze/skynet,zh...
05027485d2a7140b371a34ad1d647a87fbe38d0a
makefiles/premake/RendererModules/OpenGLGUIRenderer/premake.lua
makefiles/premake/RendererModules/OpenGLGUIRenderer/premake.lua
-- -- OpenGLGUIRenderer premake script -- cegui_dynamic("OpenGLGUIRenderer") package.files = { matchfiles(pkgdir.."*.cpp"), matchfiles(pkgdir.."*.h"), } include(pkgdir) include(rootdir) library("OpenGL32") library("GLU32") dependency("CEGUIBase") if OPENGL_IMAGECODEC == "devil" then dependency("CEGUID...
-- -- OpenGLGUIRenderer premake script -- cegui_dynamic("OpenGLGUIRenderer") package.files = { matchfiles(pkgdir.."*.cpp"), matchfiles(pkgdir.."*.h"), } include(pkgdir) include(rootdir) if windows then library("OpenGL32") library("GLU32") define("NOMINMAX") end dependency("CEGUIBase") if OPENG...
Bug fix: Apparently in some cases OpenGLRenderer needs NOMINMAX in Win32 (Mantis #63)
Bug fix: Apparently in some cases OpenGLRenderer needs NOMINMAX in Win32 (Mantis #63)
Lua
mit
arkana-fts/cegui,cbeck88/cegui-mirror,arkana-fts/cegui,RealityFactory/CEGUI,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,cbeck88/cegui-mirror,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,arkana-fts/cegui,cbeck88/cegui-mirror,cbeck88/cegui-mirror
cf772a9dfc17178dc90fb26c9e5a091f84d00a90
src/servicebag/src/Shared/ServiceBag.lua
src/servicebag/src/Shared/ServiceBag.lua
--[=[ Service bags handle recursive initialization of services, and the retrieval of services from a given source. This allows the composition of services without the initialization of those services becoming a pain, which makes refactoring downstream services very easy. This also allows multiple copies of a serv...
--[=[ Service bags handle recursive initialization of services, and the retrieval of services from a given source. This allows the composition of services without the initialization of those services becoming a pain, which makes refactoring downstream services very easy. This also allows multiple copies of a serv...
fix: ServiceBag:HasService allows for serviceType definitions that are instances
fix: ServiceBag:HasService allows for serviceType definitions that are instances
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
7ccaba4f7ff0c00412961d03a7f0a03ae812a1f6
plugins/hackernews.lua
plugins/hackernews.lua
--[[ Based on a plugin by topkecleon. Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]]-- local hackernews = {} local mattata = require('mattata') local https = require('ssl.https') local json = require('dkjson') function hackernews:init(co...
--[[ Based on a plugin by topkecleon. Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]]-- local hackernews = {} local mattata = require('mattata') local https = require('ssl.https') local json = require('dkjson') function hackernews:init(co...
[v8.1] Bug fix
[v8.1] Bug fix
Lua
mit
barreeeiroo/BarrePolice
816eb9520e45917607e8e4ac8e4132a19e98ac7e
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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/licenses/LICENSE-2.0 ]]-- loc...
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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/licenses/LICENSE-2.0 ]]-- loc...
protocols/core: fix defaultroute setting for DHCP interfaces
protocols/core: fix defaultroute setting for DHCP interfaces git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8702 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
zwhfly/openwrt-luci,phi-psi/luci,yeewang/openwrt-luci,eugenesan/openwrt-luci,Canaan-Creative/luci,ch3n2k/luci,saraedum/luci-packages-old,stephank/luci,ReclaimYourPrivacy/cloak-luci,zwhfly/openwrt-luci,vhpham80/luci,ch3n2k/luci,Canaan-Creative/luci,ThingMesh/openwrt-luci,freifunk-gluon/luci,saraedum/luci-packages-old,8d...
eb389637184d0c57334d957815b13fbf87d492b4
CIFAR10/cifar10_L2.lua
CIFAR10/cifar10_L2.lua
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
fix bug.
fix bug.
Lua
mit
bigaidream-projects/drmad
99db05a75339907d43f18287d1380b5efa1e0935
convert_data.lua
convert_data.lua
require './lib/portable' require 'image' local settings = require './lib/settings' local image_loader = require './lib/image_loader' local function count_lines(file) local fp = io.open(file, "r") local count = 0 for line in fp:lines() do count = count + 1 end fp:close() return count end lo...
require './lib/portable' require 'image' local settings = require './lib/settings' local image_loader = require './lib/image_loader' local function count_lines(file) local fp = io.open(file, "r") local count = 0 for line in fp:lines() do count = count + 1 end fp:close() return count end lo...
fix image size validation in convert.lua
fix image size validation in convert.lua
Lua
mit
higankanshi/waifu2x,higankanshi/waifu2x,Spitfire1900/upscaler,higankanshi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x
b99a8acf01f075b617c70d4e206c7573d30da4c2
game_view.lua
game_view.lua
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse var...
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse var...
some bugs corrected
some bugs corrected
Lua
mit
NamefulTeam/PortoGameJam2015
033841fd32cbf45d637242da0a5cd9b269b70b57
lib/http.lua
lib/http.lua
local TCP = require('tcp') local Request = require('request') local Response = require('response') local HTTP_Parser = require('http_parser') local Table = require('table') local HTTP = {} function HTTP.request(options, callback) -- Load options into local variables. Assume defaults local host = options.host or "...
local TCP = require('tcp') local Request = require('request') local Response = require('response') local HTTP_Parser = require('http_parser') local Table = require('table') local HTTP = {} function HTTP.request(options, callback) -- Load options into local variables. Assume defaults local host = options.host or "...
http connect fixed
http connect fixed
Lua
apache-2.0
rjeli/luvit,zhaozg/luvit,sousoux/luvit,rjeli/luvit,zhaozg/luvit,AndrewTsao/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,kaustavha/luvit,connectFree/lev,DBarney/luvit,AndrewTsao/luvit,luvit/luvit,boundary/luvit,bsn069/luvit,boundary/luvit,GabrielNicolasAvellaneda/lu...
94c67002278b5649147444858bd79f8113da453b
mods/BeardLib-Editor/Classes/Map/Elements/preplanningelement.lua
mods/BeardLib-Editor/Classes/Map/Elements/preplanningelement.lua
EditorPrePlanning = EditorPrePlanning or class(MissionScriptEditor) function EditorPrePlanning:create_element() self.super.create_element(self) self._element.class = "ElementPrePlanning" self._element.values.allowed_types = {} self._element.values.disables_types = {} self._element.values.location_group = tweak_dat...
EditorPrePlanning = EditorPrePlanning or class(MissionScriptEditor) function EditorPrePlanning:create_element() self.super.create_element(self) self._element.class = "ElementPrePlanning" self._element.values.allowed_types = {} self._element.values.disables_types = {} self._element.values.location_group = tweak_dat...
Fixed PrePlanning element not saving types correctly.
Fixed PrePlanning element not saving types correctly.
Lua
mit
simon-wh/PAYDAY-2-BeardLib-Editor
55136b77ad6c0cafd75a094cb9c649e39816d8eb
service/clusterd.lua
service/clusterd.lua
local skynet = require "skynet" local sc = require "skynet.socketchannel" local socket = require "skynet.socket" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local command = {} local function read_response(sock) local sz = s...
local skynet = require "skynet" local sc = require "skynet.socketchannel" local socket = require "skynet.socket" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local command = {} local function read_response(sock) local sz = s...
fix issue #741
fix issue #741
Lua
mit
xcjmine/skynet,icetoggle/skynet,bttscut/skynet,JiessieDawn/skynet,great90/skynet,korialuo/skynet,hongling0/skynet,pigparadise/skynet,bigrpg/skynet,JiessieDawn/skynet,codingabc/skynet,xcjmine/skynet,korialuo/skynet,kyle-wang/skynet,icetoggle/skynet,pigparadise/skynet,kyle-wang/skynet,zhangshiqian1214/skynet,codingabc/sk...
12e90582ba427b1e4bb5885358f4229382c70de5
source/utilities/vector.lua
source/utilities/vector.lua
-------------------------------------------------------------------------------- -- vector.lua - Defines operations for vector operations -------------------------------------------------------------------------------- vector = flower.class() function vector:init(t) if type(t) == "table" then for k, v in ...
-------------------------------------------------------------------------------- -- vector.lua - Defines operations for vector operations -------------------------------------------------------------------------------- vector = flower.class() function vector:init(t) if type(t) == "table" then for k, v in ...
Fixed vector multiplication.
Fixed vector multiplication.
Lua
mit
BryceMehring/Hexel
c74074db2b9eb54e855a73e0b6301a877cec1867
util/array.lua
util/array.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_insert, t_sort, t_remove, t_concat = table.insert, table.sort, table.remove, table.concat; loc...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_insert, t_sort, t_remove, t_concat = table.insert, table.sort, table.remove, table.concat; loc...
util.array: Fix for array:filter() (in-place filtering)
util.array: Fix for array:filter() (in-place filtering)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5002dcdce7c9a17a613a7877864ccee5ba18e765
MMOCoreORB/bin/scripts/object/tangible/terminal/serverobjects.lua
MMOCoreORB/bin/scripts/object/tangible/terminal/serverobjects.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[fixed] elevator luas include
[fixed] elevator luas include git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@2718 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
d74e442e61b740ae818f3fe9276630256f6b9718
share/media/101greatgoals.lua
share/media/101greatgoals.lua
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- ...
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- ...
FIX: media/101greatgoals: redirect: Add URL scheme
FIX: media/101greatgoals: redirect: Add URL scheme Make sure the redirection URL has a scheme. Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts
f017ecd721b25a41a3d7dc9f91b95abd16b6ace9
mods/es/stair.lua
mods/es/stair.lua
--Extreme Survival created by maikerumine -- Minetest 0.4.13 mod: "Extreme Survival" -- namespace: es --https://github.com/maikerumine --License: --~~~~~~~~ --Code: --(c) Copyright 2015 maikerumine; modified zlib-License --see "LICENSE.txt" for details. --Media(if not stated differently): --(c) Copyright (2014-2015) ...
--Extreme Survival created by maikerumine -- Minetest 0.4.13 mod: "Extreme Survival" -- namespace: es --https://github.com/maikerumine --License: --~~~~~~~~ --Code: --(c) Copyright 2015 maikerumine; modified zlib-License --see "LICENSE.txt" for details. --Media(if not stated differently): --(c) Copyright (2014-2015) ...
fix mess up
fix mess up
Lua
lgpl-2.1
maikerumine/extreme_survival
33a5cba61115e935a57b7a7886abaa2cd77690c9
mod_pastebin/mod_pastebin.lua
mod_pastebin/mod_pastebin.lua
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local utf8_pattern = "[\194-\244][\128-\191]*$"; local function ...
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local utf8_pattern = "[\194-\244][\128-\191]*$"; local function ...
mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0
mod_pastebin: Fix issue with metatable not being set when a reload changes expires_after to 0
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
109b36f7ad79f7ec3a04fe586f606d329d60dd0d
mod_register_json/mod_register_json.lua
mod_register_json/mod_register_json.lua
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local usermanager = require "core.usermanager"; local b64_decode = require "util.encodings".base64.decode; local json_decode = require "util.json".d...
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local usermanager = require "core.usermanager"; local b64_deco...
mod_register_json: Failed at JSON successful decode check, fixed with a code refactor.
mod_register_json: Failed at JSON successful decode check, fixed with a code refactor.
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
d04381e5fa15bd9aff02fd3b8cbc441f698b949f
lua/nvim/init.lua
lua/nvim/init.lua
-- luacheck: globals unpack vim -- local i = vim.inspect local api = vim.api -- Took from https://github.com/norcalli/nvim_utils -- GPL3 apply to the nvim object local nvim = { plugins = setmetatable({}, { __index = function(self, k) local mt = getmetatable(self) local x = mt[k] ...
-- luacheck: globals unpack vim -- local i = vim.inspect local api = vim.api -- Took from https://github.com/norcalli/nvim_utils -- GPL3 apply to the nvim object local nvim = { plugins = setmetatable({}, { __index = function(self, k) local mt = getmetatable(self) local x = mt[k] ...
fix: Avoid evals to set/get registers
fix: Avoid evals to set/get registers Use (set/get)reg to interact with neovim's registers
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
a19575867f1335c0c73fd90e14aed0d689cfc42e
src/luarocks/command_line.lua
src/luarocks/command_line.lua
--- Functions for command-line scripts. local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.core.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = require("luarocks.deps") local fs = require("luar...
--- Functions for command-line scripts. local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.core.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = require("luarocks.deps") local fs = require("luar...
Oops! Fix warning message.
Oops! Fix warning message.
Lua
mit
keplerproject/luarocks,luarocks/luarocks,luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,tarantool/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks,tarantool/luarocks
ad214ebd079b409f3b172e1f606534960f52dbb8
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
--[[ LuCI - Lua Configuration Interface 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/licenses/LICENSE-2.0 $Id$ ]]-- lo...
--[[ LuCI - Lua Configuration Interface 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/licenses/LICENSE-2.0 $Id$ ]]-- lo...
fixed hidden input
fixed hidden input
Lua
apache-2.0
palmettos/test,palmettos/cnLuCI,palmettos/test,palmettos/test,palmettos/test,palmettos/cnLuCI,palmettos/test,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/test,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/test,palmettos/test,palmettos/cnLuCI,palmettos/cnLuCI
adbfdd0dd1df4754330d0a2bd3268431627c5263
swig/ft/freetype.lua
swig/ft/freetype.lua
local ft = require("swig_freetype") --TODO: is there a way to tell swig not to free() this? local FT_FaceRec_mt = getmetatable(ft.FT_FaceRec) FT_FaceRec_mt[".instance"].__gc = function(_) end local face_metatable = { __index = { setCharSize = function(self, size, hdpi, vdpi) --TODO what is the second para...
local ft = require("swig_freetype") local log_console = require"log4l.console" local logger = log_console() --TODO: is there a way to tell swig not to free() this? local FT_FaceRec_mt = getmetatable(ft.FT_FaceRec) FT_FaceRec_mt[".instance"].__gc = function(_) end local face_metatable = { __index = { setCharSiz...
some fixes
some fixes
Lua
mit
juanchanco/lua-xcb,juanchanco/lua-xcb,juanchanco/lua-xcb
bfb08f0df3787266aee5f17a3ea9ef135e26c393
helper_classes/22_array.lua
helper_classes/22_array.lua
require 'torch' local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Df_Array The Df_Array is a class that is used to wrap an array table. An array table no key names, it only uses numbers for indexing and each element has to be an atomic element, i.e. it may not contain any tables. ]] ...
require 'torch' local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Df_Array The Df_Array is a class that is used to wrap an array table. An array table no key names, it only uses numbers for indexing and each element has to be an atomic element, i.e. it may not contain any tables. ]] ...
Fix Df_Array init with a Dataseries
Fix Df_Array init with a Dataseries
Lua
mit
AlexMili/torch-dataframe
35ec0e60d624834dd897868e57eed7081bc219fb
sessions.lua
sessions.lua
require "luv.string" require "luv.debug" local math, string, rawset, rawget, tostring, loadstring, type, pairs, debug, getmetatable = math, string, rawset, rawget, tostring, loadstring, type, pairs, debug, getmetatable local oop, crypt, fs = require "luv.oop", require "luv.crypt", require "luv.fs" local Object, File, D...
require "luv.string" require "luv.debug" local math, string, rawset, rawget, tostring, loadstring, type, pairs, debug, getmetatable = math, string, rawset, rawget, tostring, loadstring, type, pairs, debug, getmetatable local oop, crypt, fs = require "luv.oop", require "luv.crypt", require "luv.fs" local Object, File, D...
Fixed sessions files long names.
Fixed sessions files long names.
Lua
bsd-3-clause
metadeus/luv
f152969cdea216f3ce69a575d27f0dee5ee7bca0
Chat/src/MY_ChatMosaics.lua
Chat/src/MY_ChatMosaics.lua
-------------------------------------------- -- @File : MY_ChatMosaics.lua -- @Desc : һ -- @Author: һ (tinymins) @ derzh.com -- @Date : 2015-05-21 10:34:08 -- @Email : admin@derzh.com -- @Last Modified by: һ @tinymins -- @Last Modified time: 2015-05-21 15:05:20 -- @Version: 1.0 -- @ChangeLog: -- + v1.0 File found...
-------------------------------------------- -- @File : MY_ChatMosaics.lua -- @Desc : һ -- @Author: һ (tinymins) @ derzh.com -- @Date : 2015-05-21 10:34:08 -- @Email : admin@derzh.com -- @Last Modified by: һ @tinymins -- @Last Modified time: 2015-05-21 18:57:07 -- @Version: 1.0 -- @ChangeLog: -- + v1.0 File found...
聊天打码:一处逻辑BUG
聊天打码:一处逻辑BUG
Lua
bsd-3-clause
tinymins/MY
fed33e050f736145a7a08d88bb231bce035c82f7
src/plugins/core/console/applications.lua
src/plugins/core/console/applications.lua
--- === plugins.core.console.applications === --- --- Adds all installed applications to the Search Console. local require = require local hs = hs local log = require "hs.logger".new "applications" local image = require "hs.image" local fs =...
--- === plugins.core.console.applications === --- --- Adds all installed applications to the Search Console. local require = require local hs = hs local log = require "hs.logger".new "applications" local image = require "hs.image" local fs =...
Fixed potential nil error in Search Console Applications Handler
Fixed potential nil error in Search Console Applications Handler - Closes #2085
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
32a5206c288189c4d2d827ec6723d3bbb08a9d11
tools/ejabberdsql2prosody.lua
tools/ejabberdsql2prosody.lua
#!/usr/bin/env lua -- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- package.path = package.path ..";../?.lua"; local serialize = require "util.serializati...
#!/usr/bin/env lua -- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- package.path = package.path ..";../?.lua"; local serialize = require "util.serializati...
ejabberdsql2prosody: Fix typo, and improve the warning message
ejabberdsql2prosody: Fix typo, and improve the warning message
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
a61ce7a29da03a50655ba5e47e2366737b433ba5
_build/cibuild.lua
_build/cibuild.lua
local TERRA_OS, ARCHIVE_EXT local TERRA_RELEASE = "https://github.com/terralang/terra/releases/download/release-1.0.6" local TERRA_HASH = "6184586" local OUTSCRIPT = "_build/build_generated.sh" local TRUSSFS_URL = "https://github.com/PyryM/trussfs/releases/download/v0.1.1/" if jit.os == "Windows" then -- https://gi...
local TERRA_OS, ARCHIVE_EXT local TERRA_RELEASE = "https://github.com/terralang/terra/releases/download/release-1.0.6" local TERRA_HASH = "6184586" local OUTSCRIPT = "_build/build_generated.sh" local TRUSSFS_URL = "https://github.com/PyryM/trussfs/releases/download/v0.1.1/" if jit.os == "Windows" then -- https://gi...
this time it's fixed for sure
this time it's fixed for sure
Lua
mit
PyryM/truss,PyryM/truss,PyryM/truss,PyryM/truss
6f49d33f832bb308ea86bd34c5a5d4a7e983f1f2
qwiki.lua
qwiki.lua
dofile("urlcode.lua") dofile("table_show.lua") JSON = (loadfile "JSON.lua")() local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} load_json_file = function(file) if file then local f = io.open(file) local data = f:rea...
dofile("urlcode.lua") dofile("table_show.lua") JSON = (loadfile "JSON.lua")() local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} load_json_file = function(file) if file then local f = io.open(file) local data = f:rea...
quizilla.lua: fix
quizilla.lua: fix
Lua
unlicense
ArchiveTeam/qwiki-grab,ArchiveTeam/qwiki-grab
92d5a4a7bd18cade95e7cabd103d17655628609c
resources/[race]/race_random/duel_s.lua
resources/[race]/race_random/duel_s.lua
local maps = { "duel.map", } local function getAlivePlayers() local players = {} for _, player in ipairs(getElementsByType('player')) do if getElementData(player, 'state') == 'alive' then table.insert(players, player) end end return players end local mapname, maproot function startDuel(p, c, a) local pl...
local maps = { "duel.map", } local function getAlivePlayers() local players = {} for _, player in ipairs(getElementsByType('player')) do if getElementData(player, 'player state') == 'alive' then table.insert(players, player) end end return players end local mapname, maproot, initiator function startDuel(...
Made /duel so it can be used by players
Made /duel so it can be used by players Fixed a fps bug
Lua
mit
JarnoVgr/Mr.Green-MTA-Resources,Bierbuikje/Mr.Green-MTA-Resources,Bierbuikje/Mr.Green-MTA-Resources,Bierbuikje/Mr.Green-MTA-Resources,AleksCore/Mr.Green-MTA-Resources,AleksCore/Mr.Green-MTA-Resources,JarnoVgr/Mr.Green-MTA-Resources,AleksCore/Mr.Green-MTA-Resources,JarnoVgr/Mr.Green-MTA-Resources
3bc9d5cdb145283f78f51595403647b7879532ab
modules/loot.lua
modules/loot.lua
local mod = EPGP:NewModule("loot", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local Coroutine = LibStub("LibCoroutine-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal...
local mod = EPGP:NewModule("loot", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local Coroutine = LibStub("LibCoroutine-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal...
fix traceback from task 723
fix traceback from task 723
Lua
bsd-3-clause
ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf,sheldon/epgp
d3396be99c657c74966eefa7e634102341f12c15
tests/actions/make/cpp/test_objects.lua
tests/actions/make/cpp/test_objects.lua
-- -- tests/actions/make/cpp/test_objects.lua -- Validate the list of objects for a makefile. -- Copyright (c) 2009-2014 Jason Perkins and the Premake project -- local suite = test.declare("make_cpp_objects") local make = premake.make local project = premake.project -- -- Setup -- local sln, prj function suit...
-- -- tests/actions/make/cpp/test_objects.lua -- Validate the list of objects for a makefile. -- Copyright (c) 2009-2014 Jason Perkins and the Premake project -- local suite = test.declare("make_cpp_objects") local make = premake.make local project = premake.project -- -- Setup -- local sln, prj function suit...
Fix unit tests broken by previous commit
Fix unit tests broken by previous commit
Lua
bsd-3-clause
starkos/premake-core,saberhawk/premake-core,aleksijuvani/premake-core,Zefiros-Software/premake-core,bravnsgaard/premake-core,lizh06/premake-core,kankaristo/premake-core,Meoo/premake-core,jstewart-amd/premake-core,jstewart-amd/premake-core,mandersan/premake-core,grbd/premake-core,mandersan/premake-core,Tiger66639/premak...
fb19e26d155bd6a41e9f562b9928d61c03963297
resource-count_0.0.1/control.lua
resource-count_0.0.1/control.lua
require "defines" script.on_init(function() initPlayers() end) script.on_event(defines.events.on_player_created, function(event) playerCreated(event) end) script.on_event(defines.events.on_tick, function(event) if event.tick % 10 ~= 0 then return end for index, player in ipairs(game.playe...
require "defines" script.on_init(function() initPlayers() end) script.on_event(defines.events.on_player_created, function(event) playerCreated(event) end) script.on_event(defines.events.on_tick, function(event) if event.tick % 10 ~= 0 then return end for index, player in ipairs(game.playe...
Fix #9 Store the previous resource entities to speed up resource count
Fix #9 Store the previous resource entities to speed up resource count
Lua
mit
Zomis/FactorioMods
06d59df81b6d387aaf109a42fad0d1b4dfd4bb61
src/core/app.lua
src/core/app.lua
module(...,package.seeall) local buffer = require("core.buffer") local packet = require("core.packet") local lib = require("core.lib") local link = require("core.link") local config = require("core.config") local timer = require("core.timer") require("core.packet_h") -- The set of all active apps and links in t...
module(...,package.seeall) local buffer = require("core.buffer") local packet = require("core.packet") local lib = require("core.lib") local link = require("core.link") local config = require("core.config") local timer = require("core.timer") require("core.packet_h") -- The set of all active apps and links in t...
app.lua: Added selftest() and fixed bugs in configure().
app.lua: Added selftest() and fixed bugs in configure().
Lua
apache-2.0
snabbnfv-goodies/snabbswitch,snabbco/snabb,hb9cwp/snabbswitch,lukego/snabbswitch,lukego/snabbswitch,snabbco/snabb,mixflowtech/logsensor,Igalia/snabbswitch,SnabbCo/snabbswitch,Igalia/snabb,snabbnfv-goodies/snabbswitch,snabbnfv-goodies/snabbswitch,fhanik/snabbswitch,Igalia/snabb,pirate/snabbswitch,pirate/snabbswitch,Igal...
ec0a64707b06c48c44ac6787ccab5c93284060f7
BtCommandScripts/moveOptim.lua
BtCommandScripts/moveOptim.lua
function getInfo() return { onNoUnits = SUCCESS, parameterDefs = { { name = "x", variableType = "number", componentType = "editBox", defaultValue = "0", }, { name = "y", variableType = "number", componentType = "editBox", defaultValue = "0", } } } end local giveOrder...
function getInfo() return { onNoUnits = SUCCESS, parameterDefs = { { name = "x", variableType = "number", componentType = "editBox", defaultValue = "0", }, { name = "y", variableType = "number", componentType = "editBox", defaultValue = "0", } } } end local giveOrder...
Attempt at fix of optimized move command.
Attempt at fix of optimized move command.
Lua
mit
MartinFrancu/BETS
520f4830430433e75ce23aa8d8537df9c4fd7043
lua/autorun/mediaplayer_spawnables.lua
lua/autorun/mediaplayer_spawnables.lua
local MediaPlayerClass = "mediaplayer_tv" local function AddMediaPlayerModel( spawnName, name, model, playerConfig ) list.Set( "SpawnableEntities", spawnName, { PrintName = name, ClassName = MediaPlayerClass, Category = "Media Player", DropToFloor = true, KeyValues = { model = model } } ) list.Set( ...
local MediaPlayerClass = "mediaplayer_tv" local function AddMediaPlayerModel( spawnName, name, model, playerConfig ) list.Set( "SpawnableEntities", spawnName, { PrintName = name, ClassName = MediaPlayerClass, Category = "Media Player", DropToFloor = true, KeyValues = { model = model } } ) list.Set( ...
Fixed alternate media player models not properly setting the owner.
Fixed alternate media player models not properly setting the owner.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
cd80a9c296877f4f6d3b86e1c3633f369b0dce9f
scene/result.lua
scene/result.lua
-- -- Ekran wyświetlający wyniki. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = r...
-- -- Ekran wyświetlający wyniki. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = r...
Bug fix
Bug fix
Lua
mit
ldurniat/The-Great-Pong,ldurniat/My-Pong-Game
f0b6267c6a02e4db1f1bda6a1f02f5842beb2fb8
spec/ev_spec.lua
spec/ev_spec.lua
-- Runs internally an ev async test and checks the returned statuses. if not pcall(require, "ev") then describe("Testing ev loop", function() pending("The 'ev' loop was not tested because 'ev' isn't installed") end) else local generic_async = require 'generic_async_test' local ev = require 'ev' lo...
-- Runs internally an ev async test and checks the returned statuses. if not pcall(require, "ev") then describe("Testing ev loop", function() pending("The 'ev' loop was not tested because 'ev' isn't installed") end) else local generic_async = require 'generic_async_test' local ev = require 'ev' lo...
fix 2 tests
fix 2 tests
Lua
mit
nehz/busted,leafo/busted,ryanplusplus/busted,sobrinho/busted,DorianGray/busted,o-lim/busted,mpeterv/busted,istr/busted,xyliuke/busted,Olivine-Labs/busted
475947283539f2badc47a078adec379a14d6a3db
MMOCoreORB/bin/conf/config.lua
MMOCoreORB/bin/conf/config.lua
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[fixed] added patch_14.tre loading
[fixed] added patch_14.tre loading git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@3013 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege...
fdb5e65fb4895ed99de65e098768daa2ee6f738c
sample/standard/proto/tcp/security.lua
sample/standard/proto/tcp/security.lua
------------------------------------ -- TCP attacks ------------------------------------ haka.rule { hooks = { "tcp-up" }, eval = function (self, pkt) --Xmas scan, as made by nmap -sX <IP> if pkt.flags.psh and pkt.flags.fin and pkt.flags.urg then haka.log.error("filter", "Xmas attack detected !!!") pkt:dro...
------------------------------------ -- TCP attacks ------------------------------------ haka.rule { hooks = { "tcp-up" }, eval = function (self, pkt) --Xmas scan, as made by nmap -sX <IP> if pkt.flags.psh and pkt.flags.fin and pkt.flags.urg then haka.log.error("filter", "Xmas attack detected !!!") pkt:dro...
Fix sample with Lua51
Fix sample with Lua51 In Lua51, the notation \x* is not supported.
Lua
mpl-2.0
Wingless-Archangel/haka,Wingless-Archangel/haka,nabilbendafi/haka,haka-security/haka,haka-security/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,lcheylus/haka,haka-security/haka
d33665e7d2aedaa8bb293c21f8dba6afa8b27e18
deps/secure-socket/context.lua
deps/secure-socket/context.lua
--[[ Copyright 2016 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2016 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
Fix secure-socket for OpenSSL > 1.1.0 (#257)
Fix secure-socket for OpenSSL > 1.1.0 (#257) Fixes #256 Lit version of https://github.com/luvit/luvit/pull/1062
Lua
apache-2.0
luvit/lit,zhaozg/lit
75c904fead5b20505c57dfc9601184adb6b3ed16
exercises/102/palindrome-rewrite-nospaces.lua
exercises/102/palindrome-rewrite-nospaces.lua
function isPalindrome(input) original = input -- saved for the final message -- remove spaces withoutSpaces = "" for i = 1,#input do letter = string.sub(input, i, i) if letter ~= " " then withoutSpaces = withoutSpaces .. letter end end -- reverse reverse = "" for i = #withoutSpaces,1,-1 do rev...
function isPalindrome(input) -- remove spaces withoutSpaces = "" for i = 1,#input do letter = string.sub(input, i, i) if letter ~= " " then withoutSpaces = withoutSpaces .. letter end end -- reverse reverse = "" for i = #withoutSpaces,1,-1 do reverse = reverse .. string.sub(withoutSpaces, i, i) ...
Fixed palindrome exercise
Fixed palindrome exercise
Lua
mit
Castux/devtut,Castux/devtut
9067cba27b1cf23356693e1ee1c027879c289e11
lib/acid/unittest.lua
lib/acid/unittest.lua
local _M = { _VERSION='0.1' } local function tostr(x) return '[' .. tostring( x ) .. ']' end local function dd(...) local args = {...} local s = '' for _, mes in ipairs(args) do s = s .. tostring(mes) end _M.output( s ) end function _M.output(s) print( s ) end local function is_t...
local _M = { _VERSION='0.1' } local function tostr(x) return '[' .. tostring( x ) .. ']' end local function dd(...) local args = {...} local s = '' for _, mes in ipairs(args) do s = s .. tostring(mes) end _M.output( s ) end function _M.output(s) print( s ) end local function is_t...
fix unittest: eqdict add space between expectation and mes
fix unittest: eqdict add space between expectation and mes
Lua
mit
drmingdrmer/lua-paxos,drmingdrmer/lua-paxos
5c98f1edc2f521fd882d1796bdb043492ce138fe
xmake/plugins/macro/macros/package.lua
xmake/plugins/macro/macros/package.lua
--!The Make-like Build Utility based on Lua -- -- XMake 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 Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
--!The Make-like Build Utility based on Lua -- -- XMake 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 Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
fix the packge macro
fix the packge macro
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake
8c7d0f53041af5b5e5b4e42902e6ac49abbd5bd7
MCServer/Plugins/InfoReg.lua
MCServer/Plugins/InfoReg.lua
-- InfoReg.lua -- Implements registration functions that process g_PluginInfo --- Lists all the subcommands that the player has permissions for local function ListSubcommands(a_Player, a_Subcommands, a_CmdString) if (a_Player == nil) then LOGINFO("The " .. a_CmdString .. " command requires another verb:") el...
-- InfoReg.lua -- Implements registration functions that process g_PluginInfo --- Lists all the subcommands that the player has permissions for local function ListSubcommands(a_Player, a_Subcommands, a_CmdString) if (a_Player == nil) then LOGINFO("The " .. a_CmdString .. " command requires another verb:") el...
InfoReg uses cCompositeChat for subcommand lists.
InfoReg uses cCompositeChat for subcommand lists. Also fixed an issue with console commands.
Lua
apache-2.0
QUSpilPrgm/cuberite,Fighter19/cuberite,Altenius/cuberite,tonibm19/cuberite,Schwertspize/cuberite,Tri125/MCServer,Fighter19/cuberite,nevercast/cuberite,nichwall/cuberite,jammet/MCServer,mjssw/cuberite,kevinr/cuberite,ionux/MCServer,SamOatesPlugins/cuberite,guijun/MCServer,Howaner/MCServer,HelenaKitty/EbooMC,linnemannr/M...
2db8884c27bc432a09dbe3a86d92ef928c8b9c8a
build/Helpers.lua
build/Helpers.lua
-- This module checks for the all the project dependencies. action = _ACTION or "" depsdir = path.getabsolute("../deps"); srcdir = path.getabsolute("../src"); incdir = path.getabsolute("../include"); bindir = path.getabsolute("../bin"); examplesdir = path.getabsolute("../examples"); testsdir = path.getabsolute("../te...
-- This module checks for the all the project dependencies. action = _ACTION or "" depsdir = path.getabsolute("../deps"); srcdir = path.getabsolute("../src"); incdir = path.getabsolute("../include"); bindir = path.getabsolute("../bin"); examplesdir = path.getabsolute("../examples"); testsdir = path.getabsolute("../te...
Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
Lua
mit
Samana/CppSharp,u255436/CppSharp,xistoso/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,mohtamohit/CppSharp,mydogisbox/CppSharp,mydogisbox/CppSharp,nalkaro/CppSharp,mono/CppSharp,u255436/CppSharp,ddobrev/CppSharp,txdv/CppSharp,KonajuGames/CppSharp,Samana/CppSharp,zillemarco/CppSharp,KonajuGames/CppSh...
5ce93d98c21d010e6a61a0a72518ac72abd27171
rootfs/etc/nginx/lua/test/monitor_test.lua
rootfs/etc/nginx/lua/test/monitor_test.lua
_G._TEST = true local original_ngx = ngx local function reset_ngx() _G.ngx = original_ngx end local function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, { __index = ngx }) _G.ngx = _ngx end local function mock_ngx_socket_tcp() local tcp_mock = {} stub(tcp_mock, "connect", true) stub(tcp_mock, "...
_G._TEST = true local original_ngx = ngx local function reset_ngx() _G.ngx = original_ngx end local function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, { __index = ngx }) _G.ngx = _ngx end local function mock_ngx_socket_tcp() local tcp_mock = {} stub(tcp_mock, "connect", true) stub(tcp_mock, "...
Fix lua test
Lua
apache-2.0
kubernetes/ingress-nginx,kubernetes/ingress-nginx,caicloud/ingress,aledbf/ingress-nginx,aledbf/ingress-nginx,caicloud/ingress,canhnt/ingress,aledbf/ingress-nginx,canhnt/ingress,caicloud/ingress,kubernetes/ingress-nginx,canhnt/ingress,aledbf/ingress-nginx,kubernetes/ingress-nginx,caicloud/ingress,kubernetes/ingress-ngin...
3f95e0b0271a7f52b87a8c55f74e0f65c2ddd3ce
docker/notelauncher.lua
docker/notelauncher.lua
-- -- Module for managing notebook container instances running with the docker module -- -- author: Steve Chan sychan@lbl.gov -- -- Copyright 2013 The Regents of the University of California, -- Lawrence Berkeley National Laboratory -- United States Department of Energy -- Th...
-- -- Module for managing notebook container instances running with the docker module -- -- author: Steve Chan sychan@lbl.gov -- -- Copyright 2013 The Regents of the University of California, -- Lawrence Berkeley National Laboratory -- United States Department of Energy -- Th...
fix function call
fix function call
Lua
mit
rsutormin/narrative,msneddon/narrative,nlharris/narrative,aekazakov/narrative,pranjan77/narrative,briehl/narrative,kbase/narrative,briehl/narrative,pranjan77/narrative,pranjan77/narrative,psnovichkov/narrative,briehl/narrative,jmchandonia/narrative,pranjan77/narrative,msneddon/narrative,scanon/narrative,psnovichkov/nar...
d98b855b4feea0c5640182de4ca2ebefb01aa068
lgi/override/GObject-Value.lua
lgi/override/GObject-Value.lua
------------------------------------------------------------------------------ -- -- LGI GObject.Value support. -- -- Copyright (c) 2010, 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI GObject.Value support. -- -- Copyright (c) 2010, 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------...
Marshal properly enums and bitflags also from/to GValue
Marshal properly enums and bitflags also from/to GValue Recent changes in enum/flags marshaling did not touch custom value marshaling, so fix it now, add implementation translating numeric values into natural enum/flags types.
Lua
mit
psychon/lgi,zevv/lgi,pavouk/lgi
d22424ff930a8e70ae03bfb93cc5df6e5f76bce1
modules/path/path.lua
modules/path/path.lua
-- NOTICE: -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTOR...
-- NOTICE: -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTOR...
bugfix in path.normalize
bugfix in path.normalize
Lua
bsd-3-clause
tdzl2003/luaqt,tdzl2003/luaqt,tdzl2003/luaqt
96e91bb0483948a698b1ebd224bfdf8971f8a18d
face-detector/run.lua
face-detector/run.lua
#!/usr/bin/env qlua ------------------------------------------------------------ -- a face detector, based on a simple convolutional network, -- trained end-to-end for that task. -- -- Clement Farabet -- require 'xlua' require 'torch' require 'qt' require 'qtwidget' require 'qtuiloader' xrequire('inline',true) xrequir...
#!/usr/bin/env qlua ------------------------------------------------------------ -- a face detector, based on a simple convolutional network, -- trained end-to-end for that task. -- -- Clement Farabet -- require 'xlua' require 'torch' require 'qt' require 'qtwidget' require 'qtuiloader' xrequire('inline',true) xrequir...
fixed openmp?
fixed openmp?
Lua
bsd-3-clause
e-lab/torch7-demos,e-lab/torch7-demos
90385c968247f64e766df4093dd29c54ec859a08
extensions/hid/init.lua
extensions/hid/init.lua
--- === hs.hid === --- --- HID interface for Hammerspoon, controls and queries caps lock state --- --- Portions sourced from (https://discussions.apple.com/thread/7094207). local module = require("hs.hid.internal") -- private variables and methods ----------------------------------------- -- Public interface ------...
--- === hs.hid === --- --- HID interface for Hammerspoon, controls and queries caps lock state --- --- Portions sourced from (https://discussions.apple.com/thread/7094207). local module = require("hs.hid.internal") -- private variables and methods ----------------------------------------- -- Public interface ------...
Fix docs for hs.hid.led
Fix docs for hs.hid.led
Lua
mit
CommandPost/CommandPost-App,Hammerspoon/hammerspoon,CommandPost/CommandPost-App,CommandPost/CommandPost-App,latenitefilms/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,Hammerspoon/hammerspoon,latenitefilms/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,Hammerspoon/h...
2eecf3b9e14eeefdc299aea0b4de6e5cc0486cf2
openLuup/userdata.lua
openLuup/userdata.lua
local version = "openLuup.user_data 2016.04.28 @akbooer" -- user_data -- saving and loading, plus utility functions used by HTTP requests id=user_data, etc. local json = require "openLuup.json" -- -- Here a complete list of top-level (scalar) attributes taken from an actual Vera user_data2 request -- the commente...
ABOUT = { NAME = "openLuup.userdata", VERSION = "2016.04.30", DESCRIPTION = "user_data saving and loading, plus utility functions used by HTTP requests", AUTHOR = "@akbooer", DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentation", } -- user_data -- saving and ...
hot-fix-user_data-backup
hot-fix-user_data-backup - to allow backup WSAPI CGI script to work
Lua
apache-2.0
akbooer/openLuup
116f119655bbcce232ec0d0f777a260b29f5df64
whisper.lua
whisper.lua
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if msg:sub(1, 12):lower() ~= 'epgp standby' then return end local member = msg:sub...
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if msg:sub(1, 12):lower() ~= 'epgp standby' then return end local member = msg:sub...
Let the user select the announce medium the whisper module should use. This fixes issue 475.
Let the user select the announce medium the whisper module should use. This fixes issue 475.
Lua
bsd-3-clause
hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded
2c4d3d5db65dc87a297ce9d2b2753a9be4ef1143
core/debug-output.lua
core/debug-output.lua
if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local lastFont local outfile local writeline = function (...) local args = table.pack(...) for i = 1, #args do outfile:write(args[i]) if i < #args then outfile:write("\t") end end outfile:write("\n") end local _deprec...
if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local lastFont local outfile local writeline = function (...) local args = table.pack(...) for i = 1, #args do outfile:write(args[i]) if i < #args then outfile:write("\t") end end outfile:write("\n") end local _deprec...
chore(outputter): Fixup debug outputter for non-RGB
chore(outputter): Fixup debug outputter for non-RGB
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
edee7571afda1b4ab073e324151b2bc0892cfc7d
nvim/.config/nvim/lua/gb/test.lua
nvim/.config/nvim/lua/gb/test.lua
-- Testing helpers local jester = require('jester'); jester.setup({ path_to_jest_run = 'node_modules/.bin/jest', terminal_cmd = ':below split | terminal' }) vim.keymap.set("n", "<leader>tt", function () jester.run() end) vim.keymap.set("n", "<leader>tf", function () jester.run_file() end) vim.keymap.set("n", "<lead...
-- Testing helpers local jester = require('jester'); jester.setup({ path_to_jest_run = 'node_modules/.bin/jest', terminal_cmd = ':below split | terminal' }) vim.keymap.set("n", "<leader>tt", function () jester.run() end) vim.keymap.set("n", "<leader>tf", function () jester.run_file() end) vim.keymap.set("n", "<lead...
Fix splitting test files
Fix splitting test files
Lua
mit
gblock0/dotfiles
d2abbe73657b4ea5dd68180f552a97c322f7101a
mod_carbons/mod_carbons.lua
mod_carbons/mod_carbons.lua
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:2"; local xmlns_carbons_old = "urn:xmpp:carbons:1"; local xmlns_carbons_real...
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:2"; local xmlns_carbons_old = "urn:xmpp:carbons:1"; local xmlns_carbons_real...
mod_carbons: Fix <private/> handling
mod_carbons: Fix <private/> handling
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
4015c7949fa72b7c4ed9073abf861b355ee4a514
lua/framework/mouse.lua
lua/framework/mouse.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local ffi = require( "ffi" ) local SDL = require( "sdl" ) module( "framework.mouse" ) function getPosition() local x = ffi.new( "int[1]"...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local ffi = require( "ffi" ) local SDL = require( "sdl" ) local framework = framework module( "framework.mouse" ) function getPosition()...
Update `framework.mouse`
Update `framework.mouse` Add `setPosition` Fix error in `setVisible`
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
44c31afe62afaf99c2c3d5f71c02993e038633c6
frontend/ui/reader/readercopt.lua
frontend/ui/reader/readercopt.lua
ReaderCoptListener = EventListener:new{} function ReaderCoptListener:onReadSettings(config) local embedded_css = config:readSetting("copt_embedded_css") if embedded_css == 0 then table.insert(self.ui.postInitCallback, function() self.ui:handleEvent(Event:new("ToggleEmbeddedStyleSheet", false)) end) ...
ReaderCoptListener = EventListener:new{} function ReaderCoptListener:onReadSettings(config) local embedded_css = config:readSetting("copt_embedded_css") if embedded_css == 0 then table.insert(self.ui.postInitCallback, function() self.ui:handleEvent(Event:new("ToggleEmbeddedStyleSheet", false)) end) ...
fix bug #179 It seems that the setPageMargins method will mess up XPointer of current view. This bugfix simply disables page margin restoring in readercopt.lua so that reading position is restorable.
fix bug #179 It seems that the setPageMargins method will mess up XPointer of current view. This bugfix simply disables page margin restoring in readercopt.lua so that reading position is restorable.
Lua
agpl-3.0
NiLuJe/koreader,apletnev/koreader,houqp/koreader,frankyifei/koreader,Frenzie/koreader,chihyang/koreader,robert00s/koreader,ashhher3/koreader,poire-z/koreader,noname007/koreader,mwoz123/koreader,Hzj-jie/koreader,NiLuJe/koreader,mihailim/koreader,ashang/koreader,koreader/koreader,poire-z/koreader,Markismus/koreader,Frenz...
50062279a86648fc8f00646157727c1ae64dade2
MMOCoreORB/bin/scripts/object/tangible/fishing/fish/fish.lua
MMOCoreORB/bin/scripts/object/tangible/fishing/fish/fish.lua
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
[Fixed] Generic Fish
[Fixed] Generic Fish git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@2015 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege...
2cc195d5c9781677123d98f5dd3d43c36321503b
lua_examples/webap_toggle_pin.lua
lua_examples/webap_toggle_pin.lua
wifi.setmode(wifi.SOFTAP) wifi.ap.config({ssid="test",pwd="12345678"}) gpio.mode(1, gpio.OUTPUT) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(client,request) local buf = "" local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP") ...
wifi.setmode(wifi.SOFTAP) wifi.ap.config({ ssid = "test", pwd = "12345678" }) gpio.mode(1, gpio.OUTPUT) srv = net.createServer(net.TCP) srv:listen(80, function(conn) conn:on("receive", function(client, request) local buf = "" local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP") ...
webap_toggle_pin.lua HTML warnings and typos fixed (#2394)
webap_toggle_pin.lua HTML warnings and typos fixed (#2394)
Lua
mit
TerryE/nodemcu-firmware,TerryE/nodemcu-firmware,nwf/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nwf/nodemcu-firmware,nodemcu/nodemcu-firmware,FelixPe/nodemcu-firmware,eku/nodemcu-firmware,marcelstoer/nodemcu-firmware,FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,FelixPe/nodemcu-firmware,nwf/nodemcu-firmware,eku/nod...
2f265bbf95d34bbc42105942a18196c951f4e4c1
scen_edit/command/load_map.lua
scen_edit/command/load_map.lua
LoadMap = AbstractCommand:extends{} LoadMap.className = "LoadMap" local floatSize = 4 function LoadMap:init(deltaMap) self.className = "LoadMap" self.deltaMap = deltaMap end function LoadMap:execute() Spring.RevertHeightMap(0, 0, Game.mapSizeX, Game.mapSizeZ, 1) Spring.SetHeightMapFunc(function() ...
LoadMap = AbstractCommand:extends{} LoadMap.className = "LoadMap" local floatSize = 4 function LoadMap:init(deltaMap) self.className = "LoadMap" self.deltaMap = deltaMap end function LoadMap:execute() Spring.RevertHeightMap(0, 0, Game.mapSizeX, Game.mapSizeZ, 1) Spring.SetHeightMapFunc(function() ...
fixed heightmap loading
fixed heightmap loading
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
ab9bc3485327f81d69aa7881edb6bc594f90a712
lua/arduino/telescope.lua
lua/arduino/telescope.lua
local themes = require('telescope.themes') local actions = require('telescope.actions') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local conf = require('telescope.config').values local M = {} local entry_maker = function(item) return { display = item.label or item....
local themes = require('telescope.themes') local actions = require('telescope.actions') local state = require('telescope.actions.state') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local conf = require('telescope.config').values local M = {} local entry_maker = function(i...
fix: update deprecated telescope API method
fix: update deprecated telescope API method
Lua
mit
stevearc/vim-arduino
096d41c6279d5822eefce35608883cda45784493
pud/level/TileLevelView.lua
pud/level/TileLevelView.lua
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local TileLevelView = Class{name='TileLevelV...
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local TileLevelView = Class{name='TileLevelV...
fix some maptypes not showing up
fix some maptypes not showing up
Lua
mit
scottcs/wyx
e5521dc82b65137dca21eacc1e4cfca0b06415bf
mods/mobs/mese_dragon.lua
mods/mobs/mese_dragon.lua
mobs:register_mob("mobs:mese_dragon", { type = "monster", -- agressive, deals 13 damage to player when hit passive = false, damage = 13, attack_type = "dogshoot", reach = 3, shoot_interval = 2, arrow = "mobs:mese_dragon_fireball", shoot_offset = 2, -- health & armor hp_min = 175, hp_max = 225, armor = 70, ...
mobs:register_mob("mobs:mese_dragon", { type = "monster", -- agressive, deals 13 damage to player when hit passive = false, damage = 13, attack_type = "dogshoot", reach = 4, shoot_interval = 2, arrow = "mobs:mese_dragon_fireball", shoot_offset = 2, -- health & armor hp_min = 175, hp_max = 225, armor = 70, ...
Mese dragon fixes
Mese dragon fixes Ok, last bug with the mese dragon : the fireball don't hit the player, there are too y+1 or y+2 to the player colisionbox, need to add a offset
Lua
unlicense
MinetestForFun/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Ombridride/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,Mine...
d2f793a9813bf0a6095fbfdcf2767c72b3d50e53
libs/web/luasrc/dispatcher.lua
libs/web/luasrc/dispatcher.lua
--[[ LuCI - Dispatcher Description: The request dispatcher and module dispatcher generators FileId: $Id$ License: Copyright 2008 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...
--[[ LuCI - Dispatcher Description: The request dispatcher and module dispatcher generators FileId: $Id$ License: Copyright 2008 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...
* Fixed caching mechanism
* Fixed caching mechanism
Lua
apache-2.0
deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci
f54b7fb3d3457d8f9369fd5766b70b92e81515de
gui.lua
gui.lua
--[[######################################### -- GUI and main menu are in here --######################################### -- elements for the main menu: -- *start new game --- -> go to first mission -- * continue/load game --- -> choose save file -- *settings --- -> sound, resolution, ... -- *Quit -> stops the game --...
--[[######################################### -- GUI and main menu are in here --######################################### -- elements for the main menu: -- *start new game --- -> go to first mission -- * continue/load game --- -> choose save file -- *settings --- -> sound, resolution, ... -- *Quit -> stops the game --...
fixes
fixes
Lua
mit
sam1i/Turres-Monacorum,sam1i/Turres-Monacorum
c89289d13fbe3586a88c254756ec94202967b013
src/apps/ipfix/maps.lua
src/apps/ipfix/maps.lua
module(..., package.seeall) local ffi = require("ffi") local lib = require("core.lib") local ctable = require("lib.ctable") local ethernet = require("lib.protocol.ethernet") local ipv4 = require("lib.protocol.ipv4") local poptrie = require("lib.poptrie") local logger = require("lib.logger") -- Map ...
module(..., package.seeall) local ffi = require("ffi") local lib = require("core.lib") local ctable = require("lib.ctable") local ethernet = require("lib.protocol.ethernet") local ipv4 = require("lib.protocol.ipv4") local ipv6 = require("lib.protocol.ipv6") local poptrie = require("lib.poptrie") l...
apps.ipfix: fix up previous commits
apps.ipfix: fix up previous commits
Lua
apache-2.0
snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb
6ad7269e5a56c5041d5a19a427c69bc4168ce656
modules/gamelib/creature.lua
modules/gamelib/creature.lua
-- @docclass Creature -- @docconsts @{ SkullNone = 0 SkullYellow = 1 SkullGreen = 2 SkullWhite = 3 SkullRed = 4 SkullBlack = 5 SkullOrange = 6 ShieldNone = 0 ShieldWhiteYellow = 1 ShieldWhiteBlue = 2 ShieldBlue = 3 ShieldYellow = 4 ShieldBlueSharedExp = 5 ShieldYellowSharedExp = 6 ShieldBlueNoSharedExpBlink = 7 Shie...
-- @docclass Creature -- @docconsts @{ SkullNone = 0 SkullYellow = 1 SkullGreen = 2 SkullWhite = 3 SkullRed = 4 SkullBlack = 5 SkullOrange = 6 ShieldNone = 0 ShieldWhiteYellow = 1 ShieldWhiteBlue = 2 ShieldBlue = 3 ShieldYellow = 4 ShieldBlueSharedExp = 5 ShieldYellowSharedExp = 6 ShieldBlueNoSharedExpBlink = 7 Shie...
Fix skull blink
Fix skull blink
Lua
mit
Cavitt/otclient_mapgen,kwketh/otclient,gpedro/otclient,Radseq/otclient,dreamsxin/otclient,Radseq/otclient,gpedro/otclient,gpedro/otclient,EvilHero90/otclient,dreamsxin/otclient,kwketh/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient
9c0abf065c9365888fb9212fb40f64346c1fdd8c
mods/plantlife_modpack/3dmushrooms/init.lua
mods/plantlife_modpack/3dmushrooms/init.lua
-- 3D Mushroom mod by VanessaE -- -- License: WTFPL for everything. mushroom = {} minetest.override_item("flowers:mushroom_fertile_brown", { drawtype = "mesh", mesh = "3dmushrooms.obj", tiles = {"3dmushrooms_brown.png"}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, inventor...
-- 3D Mushroom mod by VanessaE -- -- License: WTFPL for everything. mushroom = {} minetest.override_item("flowers:mushroom_brown", { drawtype = "mesh", mesh = "3dmushrooms.obj", tiles = {"3dmushrooms_brown.png"}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} }, inventory_image ...
[3dmushrooms] Redirect aliases to the new itemstrings
[3dmushrooms] Redirect aliases to the new itemstrings - Fix #390
Lua
unlicense
sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,MinetestForFun/server-minetestforfun,Coethium/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Coethium/serve...
692d4ec5beabe1d518775102c82bf0ecabc34cda
src/highlight/src/Client/AnimatedHighlight.lua
src/highlight/src/Client/AnimatedHighlight.lua
--[=[ @class AnimatedHighlight ]=] local require = require(script.Parent.loader).load(script) local BasicPane = require("BasicPane") local BasicPaneUtils = require("BasicPaneUtils") local Blend = require("Blend") local SpringObject = require("SpringObject") local Math = require("Math") local ValueObject = require("V...
--[=[ @class AnimatedHighlight ]=] local require = require(script.Parent.loader).load(script) local BasicPane = require("BasicPane") local Blend = require("Blend") local SpringObject = require("SpringObject") local Math = require("Math") local ValueObject = require("ValueObject") local EnumUtils = require("EnumUtils...
fix: Fix visiblity not transferring from animated highlight (and more specifically, the event binding between visibility and the spring)
fix: Fix visiblity not transferring from animated highlight (and more specifically, the event binding between visibility and the spring)
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
d7ea70549ceafaf577c862edb9672d8fb6c332a9
Modules/Client/Gui/MultipleClickUtils.lua
Modules/Client/Gui/MultipleClickUtils.lua
--- Utility library for detecting multiple clicks or taps. Not good UX, but good for opening up a debug -- menus -- @module MultipleClickUtils local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Signal = require("Signal") local InputObjectUtils = require("InputObjectUtils") ...
--- Utility library for detecting multiple clicks or taps. Not good UX, but good for opening up a debug -- menus -- @module MultipleClickUtils local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Signal = require("Signal") local MultipleClickUtils = {} local TIME_TO_CLICK_AG...
Fix mobile UX
Fix mobile UX
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
4b9073ce0735f4b705d9f007479536cd91dac16b
src/pegasus/request.lua
src/pegasus/request.lua
local Request = {} function Request:new(port, client) local newObj = {} self.__index = self newObj.client = client newObj.port = port newObj.ip = client:getpeername() newObj.firstLine = nil newObj._method = nil newObj._path = nil newObj._params = {} newObj._headers_parsed = false newObj._headers ...
local Request = {} function Request:new(port, client) local newObj = {} self.__index = self newObj.client = client newObj.port = port newObj.ip = client:getpeername() newObj.firstLine = nil newObj._method = nil newObj._path = nil newObj._params = {} newObj._headers_parsed = false newObj._headers ...
Fix. Do not raise error when calls receiveBody and there no content-length.
Fix. Do not raise error when calls receiveBody and there no content-length.
Lua
mit
EvandroLG/pegasus.lua
16e097b0aa4682d60a528bd07d2bb11e8ef0ecb9
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/lua-stream-and-log-v3.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/lua-stream-and-log-v3.lua
--[[ Name: lua-stream-and-log-v3.lua Desc: This example shows how to stream data to AIN0 and log to file Note: Streams at 4KS/s, using nominal cal constants This example requires firmware 1.0282 (T7) or 1.0023 (T4) T-Series datasheet on streaming: https://labjack.com/suppor...
--[[ Name: lua-stream-and-log-v3.lua Desc: This example shows how to stream data to AIN0 and log to file Note: Streams at 4KS/s, using nominal cal constants This example requires firmware 1.0282 (T7) or 1.0023 (T4) T-Series datasheet on streaming: https://labjack.com/suppor...
Fixed the stream and log example
Fixed the stream and log example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
ec03c5ec57abb0bf5ba4de196892eb363f697179
lua/wire/flir.lua
lua/wire/flir.lua
--[[ Simulation of FLIR (forward-looking infrared) vision. Possible future ideas: * Different materials have different emissivities: aluminium is about 20%, wherease asphalt is 95%. maybe we could use the physical properties to simulate this? * the luminance of a texture contributes *negatively* to its emissivi...
--[[ Simulation of FLIR (forward-looking infrared) vision. Possible future ideas: * Different materials have different emissivities: aluminium is about 20%, wherease asphalt is 95%. maybe we could use the physical properties to simulate this? * the luminance of a texture contributes *negatively* to its emissivi...
Better FLIR (Again!) (#2249)
Better FLIR (Again!) (#2249) * Reworked FLIR visual behaviour * added hook removals, fixed 3d skybox color * adjusted color modifies, streamlined hooks, removed old material system * client ragdoll hook -> flir.Start() to fix no heat on bodies * removed print(test) from function * removed flir.living ma...
Lua
apache-2.0
dvdvideo1234/wire,Grocel/wire,wiremod/wire
eec41e9f7cb3df2e69cdc494412b723f5b3d2375
examples/sanitizer.lua
examples/sanitizer.lua
-- This example implements the HTML sanitization rules used by GitHub -- https://github.com/github/markup#html-sanitization local gumbo = require "gumbo" local Set = require "gumbo.Set" local input = arg[1] or io.stdin local write, assert = io.write, assert local _ENV = nil local allowedHrefSchemes = Set{"http://", "...
-- This example implements the HTML sanitization rules used by GitHub -- https://github.com/github/markup#html-sanitization local gumbo = require "gumbo" local Set = require "gumbo.Set" local input = arg[1] or io.stdin local write, assert = io.write, assert local _ENV = nil local urlSchemePattern = "^[\0-\32]*([a-zA-...
Fix URL sanitization in examples/sanitizer.lua...
Fix URL sanitization in examples/sanitizer.lua... Only absolute URLs with a non-whitelisted scheme (e.g. "javascript:") are rejected now. All relative URLs are allowed.
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
2aab618f2b5deaa85245907a9a420c077bc5f923
site/email.lua
site/email.lua
--[[ 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 may not use ...
--[[ 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 may not use ...
fix returns
fix returns
Lua
apache-2.0
Humbedooh/ponymail,rbowen/ponymail,jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,quenda/ponymail,quenda/ponymail,quenda/ponymail,jimjag/ponymail,rbowen/ponymail,rbowen/ponymail,jimjag/ponymail,jimjag/ponymail
ee4ef0967a03c05f56cd8bc7a5c780b31b41b0a3
lib/lua/virgo-time.lua
lib/lua/virgo-time.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
lib: virgo-time: improve debug statement
lib: virgo-time: improve debug statement the debug statement had two problems: 1) it didn't use debugf so the timestamps weren't printed 2) it printed in 4 lines what could be said in 1 Fix both these issues.
Lua
apache-2.0
cp16net/virgo-base,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/...
0a066396bdc112e03def431b03781ec1b9ff4db9
framework/sound.lua
framework/sound.lua
--=========== Copyright © 2017, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local AL = require( "openal" ) local SDL = require( "sdl" ) local SDL_sound = require( "sdl_sound" ) require( "class" ) local ffi = require...
--=========== Copyright © 2017, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local AL = require( "openal" ) local SDL = require( "sdl" ) local SDL_sound = require( "sdl_sound" ) require( "class" ) local ffi = require...
Fix initial buffer in sound.lua
Fix initial buffer in sound.lua
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
db66c8c55e10c88ed37ba17fce347fdb4662ba43
site/code/triggers.lua
site/code/triggers.lua
-- Manage the SNMP package pkg = resource.package.new("net-snmp") pkg.state = "present" -- Manage the config file for SNMP daemon config = resource.file.new("/etc/snmp/snmpd.conf") config.state = "present" config.content = "rocommunity public" config.require = { pkg:ID() } -- Manage the SNMP service svc = resource.se...
-- -- Example code for using triggers in resources -- -- Manage the SNMP package pkg = resource.package.new("net-snmp") pkg.state = "present" -- Manage the config file for SNMP daemon config = resource.file.new("/etc/snmp/snmpd.conf") config.state = "present" config.content = "rocommunity public" config.require = { p...
site: typo fixes in trigger example code
site: typo fixes in trigger example code
Lua
mit
ranjithamca/gru
dc61170366c925db8ae7a2e3575d4f2e9d216a1e
scripts/slate.lua
scripts/slate.lua
-- run and gather slate v1.0 by Dunagain dofile("common.inc"); numSlates = 0 function doit() local done = false askForWindow("Whenever possible, your avatar will collect a slate. You can perform other tasks while the macro is running. You can also minimize VT windows after the macro is started to let it run ...
-- run and gather slate v1.0 by Dunagain dofile("common.inc"); numSlates = 0 function doit() local done = false askForWindow("Whenever possible, your avatar will collect a slate. You can perform other tasks while the macro is running. You can also minimize VT windows after the macro is started to let it run ...
Fixing slate macro so it gathers slate while running
Fixing slate macro so it gathers slate while running
Lua
mit
DashingStrike/Automato-ATITD,DashingStrike/Automato-ATITD
f2cee5c109c4bd35eb06148a8c7436ecb346ac24
lib/specl/util.lua
lib/specl/util.lua
-- Miscellaneous utility functions. -- Written by Gary V. Vaughan, 2013 -- -- Copyright (c) 2013-2014 Gary V. Vaughan -- -- 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 3, or (...
-- Miscellaneous utility functions. -- Written by Gary V. Vaughan, 2013 -- -- Copyright (c) 2013-2014 Gary V. Vaughan -- -- 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 3, or (...
maint: unload luaposix > v32 correctly.
maint: unload luaposix > v32 correctly. * lib/specl/util.lua: Unload any module with a name prefixed by "posix", in order that autoloaded submodules for an installed recent luaposix are dropped in favour of test versions as necessary. Signed-off-by: Gary V. Vaughan <f9023000f29773649f3850298becb9544b5fd6a9@gnu.org>
Lua
mit
gvvaughan/specl
8c11f5ae917a0f81b4bcf604c76b3967430ba111
misc/freeswitch/scripts/common/object.lua
misc/freeswitch/scripts/common/object.lua
-- Gemeinschaft 5 module: object class -- (c) AMOOMA GmbH 2013 -- module(...,package.seeall) Object = {} -- create object object ;) function Object.new(self, arg) arg = arg or {} object = arg.object or {} setmetatable(object, self); self.__index = self; self.class = 'object'; self.log = arg.log; self....
-- Gemeinschaft 5 module: object class -- (c) AMOOMA GmbH 2013 -- module(...,package.seeall) Object = {} -- create object object ;) function Object.new(self, arg) arg = arg or {} object = arg.object or {} setmetatable(object, self); self.__index = self; self.class = 'object'; self.log = arg.log; self....
retrieving fax objects fixed
retrieving fax objects fixed
Lua
mit
amooma/GS5,funkring/gs5,amooma/GS5,amooma/GS5,funkring/gs5,amooma/GS5,funkring/gs5,funkring/gs5
3314a2f000a210fa6bd6b4e6e568d096b9b43e14
mod_watchuntrusted/mod_watchuntrusted.lua
mod_watchuntrusted/mod_watchuntrusted.lua
local jid_prep = require "util.jid".prep; local secure_auth = module:get_option_boolean("s2s_secure_auth", false); local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local untrusted_fail_watchers = module:get_opti...
local jid_prep = require "util.jid".prep; local secure_auth = module:get_option_boolean("s2s_secure_auth", false); local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local untrusted_fail_watchers = module:get_opti...
mod_watchuntrusted: Skip connections to/from unknown hosts (fixes possible traceback)
mod_watchuntrusted: Skip connections to/from unknown hosts (fixes possible traceback)
Lua
mit
Craige/prosody-modules,amenophis1er/prosody-modules,mardraze/prosody-modules,dhotson/prosody-modules,vfedoroff/prosody-modules,vfedoroff/prosody-modules,1st8/prosody-modules,syntafin/prosody-modules,guilhem/prosody-modules,apung/prosody-modules,prosody-modules/import,amenophis1er/prosody-modules,jkprg/prosody-modules,a...
25dc8b68ccc495e3de3fc5b0975491fbe36b7d17
himan-scripts/pressure-code.lua
himan-scripts/pressure-code.lua
-- Find low/high pressure centers -- https://wiki.fmi.fi/display/PROJEKTIT/Painekeskukset -- partio 20161219 local MISS = missing -- Create area masks used later -- This mask is for ECMWF; for other models with different -- horizontal grid size it would need to be adjusted local mask1 = matrix(3, 3, 1, MISS) mask1:Se...
-- Find low/high pressure centers -- https://wiki.fmi.fi/display/PROJEKTIT/Painekeskukset -- partio 20161219 local MISS = missing -- Create area masks used later -- This mask is for ECMWF; for other models with different -- horizontal grid size it would need to be adjusted local mask1 = matrix(3, 3, 1, MISS) mask1:Se...
Bugfix: Min2D/Max2D require a third argument as well
Bugfix: Min2D/Max2D require a third argument as well
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
1a4a5f70d46831a312735bc6762a8505dbce8983
VeggieTales/luaScripts/chem_extract_auto.lua
VeggieTales/luaScripts/chem_extract_auto.lua
assert(loadfile("luaScripts/chem_notepad.lua"))(); cheapRecipes = nil; allRecipes = nil; local types = {"Ra", "Thoth", "Osiris", "Set", "Maat", "Geb"}; local typePlus = {"+++++", "++++", "++++", "+++", "+++", "++"}; local typeMinus = {"-----", "----", "----", "---", "---", "--"}; local typeEnabled = {true, true, true...
assert(loadfile("luaScripts/chem_notepad.lua"))(); cheapRecipes = nil; allRecipes = nil; local types = {"Ra", "Thoth", "Osiris", "Set", "Maat", "Geb"}; local typePlus = {"+++++", "++++", "++++", "+++", "+++", "++"}; local typeMinus = {"-----", "----", "----", "---", "---", "--"}; local typeEnabled = {true, true, true...
Workaround for bug in OCR which sometimes reads 'Toxic' as 'Txic'.
Workaround for bug in OCR which sometimes reads 'Toxic' as 'Txic'.
Lua
mit
TheRealMaxion/Automato-ATITD,wzydhek/Automato-ATITD,MHoroszowski/Automato-ATITD,DashingStrike/Automato-ATITD,DashingStrike/Automato-ATITD,wzydhek/Automato-ATITD,TheRealMaxion/Automato-ATITD,MHoroszowski/Automato-ATITD
c3c5462e8fd07093151686394396a265eb0a355a
src/lua-factory/sources/grl-metrolyrics.lua
src/lua-factory/sources/grl-metrolyrics.lua
--[[ * Copyright (C) 2014 Victor Toso. * * Contact: Victor Toso <me@victortoso.com> * * This library 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 Software Foundation; version 2.1 of * the License, or (at your opt...
--[[ * Copyright (C) 2014 Victor Toso. * * Contact: Victor Toso <me@victortoso.com> * * This library 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 Software Foundation; version 2.1 of * the License, or (at your opt...
Revert "lua-factory: port grl-metrolyrics.lua to the new lua system"
Revert "lua-factory: port grl-metrolyrics.lua to the new lua system" This reverts commit 0e71278f1616a55e4e0a3b719abbe978a4ad71af. But keeps grl.fetch callback as function instead of string https://bugzilla.gnome.org/show_bug.cgi?id=763046
Lua
lgpl-2.1
jasuarez/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins
eb25c21db86bf77d4edac85f7b204fddda387ff4
lua/tests/values/function_v.lua
lua/tests/values/function_v.lua
-- Copyright (c) 2009 Incremental IP Limited -- see license.txt for license information local series = require("test.series") local object = require("rima.object") local scope = require("rima.scope") local expression = require("rima.expression") local function_v = require("rima.values.function_v") require("rima.public...
-- Copyright (c) 2009 Incremental IP Limited -- see license.txt for license information local series = require("test.series") local object = require("rima.object") local scope = require("rima.scope") local expression = require("rima.expression") local function_v = require("rima.values.function_v") require("rima.public...
rima: added some tests to function_v that are related to the earlier fix to ref.
rima: added some tests to function_v that are related to the earlier fix to ref.
Lua
mit
geoffleyland/rima,geoffleyland/rima,geoffleyland/rima
ab6f0944eb6f04d8af9c44f65e66919d263d300e
elb/slow_elb.lua
elb/slow_elb.lua
#!/usr/local/bin/lua -- -- Parses ELB log files to find slow responses for ELB int processing time, backend processing time or upstream processing time. -- -- Download ELB logs from S3 bucket: -- aws s3 sync s3://pub-ext-elb/AWSLogs/719728721003/elasticloadbalancing/eu-west-1/2015/08/28 . -- 2015-08-28T08:08:11.042771...
#!/usr/local/bin/lua -- -- Parses ELB log files to find slow responses for ELB int processing time, backend processing time or upstream processing time. -- -- Download ELB logs from S3 bucket: -- aws s3 sync s3://pub-ext-elb/AWSLogs/719728721003/elasticloadbalancing/eu-west-1/2015/08/28 . -- 2015-08-28T08:08:11.042771...
fixed split function bug
fixed split function bug
Lua
mit
KainosSoftwareLtd/dig-scriptogram,KainosSoftwareLtd/dig-scriptogram,KainosSoftwareLtd/dig-scriptogram,KainosSoftwareLtd/dig-scriptogram,KainosSoftwareLtd/dig-scriptogram,KainosSoftwareLtd/dig-scriptogram
8216fe2441aeda108f59c2ba358f10b78ebb36b9
specl-rockspec.lua
specl-rockspec.lua
-- Specl rockspec data -- Variables to be interpolated: -- -- package -- version local default = { package = package_name, version = version.."-1", source = { url = "http://github.com/gvvaughan/"..package_name.."/archive/release-v"..version..".zip", dir = package_name.."-release-v"..version, }, desc...
-- Specl rockspec data -- Variables to be interpolated: -- -- package -- version local default = { package = package_name, version = version.."-1", source = { url = "http://github.com/gvvaughan/"..package_name.."/archive/release-v"..version..".zip", dir = package_name.."-release-v"..version, }, desc...
rockspecs: fix a typo, and remove unused configure flags.
rockspecs: fix a typo, and remove unused configure flags. * specl-rockspec.lua (dependencies): spell ansicolors correctly. (build.build_command): Remove unused YAML flags. Signed-off-by: Gary V. Vaughan <f9023000f29773649f3850298becb9544b5fd6a9@gnu.org>
Lua
mit
gvvaughan/specl
20cf05cf66b6b6a72b6b388d57b35edf16c06b89
applications/luci-ahcp/luasrc/model/cbi/ahcp.lua
applications/luci-ahcp/luasrc/model/cbi/ahcp.lua
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id: init.lua...
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id: init.lua...
Fixed ahcp support in lua for client mode
Fixed ahcp support in lua for client mode
Lua
apache-2.0
dtaht/cerowrt-luci-3.3,dtaht/cerowrt-luci-3.3,dtaht/cerowrt-luci-3.3,dtaht/cerowrt-luci-3.3,dtaht/cerowrt-luci-3.3,dtaht/cerowrt-luci-3.3
f014b1e779e5121d2900b908a8e76dd3379c048e
zpm.lua
zpm.lua
--[[ @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, c...
--[[ @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, c...
Fix coverage paths
Fix coverage paths
Lua
mit
Zefiros-Software/SerLib2
b548a8684a5866f6162b02dae5d62b0593ca6a81
Josephus_Problem/Lua/Yonaba/josephus.lua
Josephus_Problem/Lua/Yonaba/josephus.lua
-- Josephus problem implementation -- See: http://en.wikipedia.org/wiki/Josephus_problem -- Returns the survivor -- n : the initial number of people -- k : the count for each step -- returns : the survivor's number local function josephus_recursive(n, k) if n == 1 then return 1 else return ((joseph...
-- Josephus problem implementation -- See: http://en.wikipedia.org/wiki/Josephus_problem -- Returns the survivor -- n : the initial number of people -- k : the count for each step -- returns : the survivor's number local function josephus_recursive(n, k) if n == 1 then return 1 else return ((joseph...
Fixed implentation Code prettification
Fixed implentation Code prettification
Lua
mit
vikas17a/Algorithm-Implementations,pravsingh/Algorithm-Implementations,sugiartocokrowibowo/Algorithm-Implementations,imanmafi/Algorithm-Implementations,Etiene/Algorithm-Implementations,rohanp/Algorithm-Implementations,girishramnani/Algorithm-Implementations,isalnikov/Algorithm-Implementations,rohanp/Algorithm-Implement...
95f9bb97ba1d247819e66bced6988ec39301d2e5
libs/httpd/luasrc/httpd/handler/luci.lua
libs/httpd/luasrc/httpd/handler/luci.lua
--[[ HTTP server implementation for LuCI - luci handler (c) 2008 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....
--[[ HTTP server implementation for LuCI - luci handler (c) 2008 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....
Fixed occasionally occuring "Overload"-problems with luci-httpd
Fixed occasionally occuring "Overload"-problems with luci-httpd
Lua
apache-2.0
maxrio/luci981213,artynet/luci,taiha/luci,male-puppies/luci,tcatm/luci,male-puppies/luci,jorgifumi/luci,rogerpueyo/luci,LazyZhu/openwrt-luci-trunk-mod,palmettos/test,tcatm/luci,Kyklas/luci-proto-hso,nmav/luci,oyido/luci,openwrt-es/openwrt-luci,thesabbir/luci,981213/luci-1,bright-things/ionic-luci,slayerrensky/luci,Kykl...
2e8e0c4ac7efc8e58bd59921541966b55e3d1613
lua/timer.lua
lua/timer.lua
--- Simple timer class. local mod = {} local dpdk = require "dpdk" local timer = {} timer.__index = timer function mod:new(time) return setmetatable({ time = time or 0, stop = dpdk.getTime() + (time or 0) }, timer) end function timer:running() return self.stop > dpdk.getTime() end function timer:expired() ...
--- Simple timer class. local mod = {} local phobos = require "phobos" local timer = {} timer.__index = timer function mod:new(time) return setmetatable({ time = time or 0, stop = phobos.getTime() + (time or 0) }, timer) end function timer:running() return self.stop > phobos.getTime() end function timer:ex...
fix timer
fix timer
Lua
mit
emmericp/libmoon,libmoon/libmoon,scholzd/libmoon,scholzd/libmoon,libmoon/libmoon,scholzd/libmoon,libmoon/libmoon,emmericp/libmoon,emmericp/libmoon
60ad7b46e883a3e0ed49853c8fd515a2c579257c
hash.lua
hash.lua
local ffi = require 'ffi' local tds = require 'tds.env' local C = tds.C local hash = {} function hash.new() local self = C.tds_hash_new() if self == nil then error('unable to allocate hash') end ffi.gc(self, C.tds_hash_free) return self end local function setelem(elem, lelem) if type(lelem) =...
local ffi = require 'ffi' local tds = require 'tds.env' local C = tds.C local hash = {} function hash.new() local self = C.tds_hash_new() if self == nil then error('unable to allocate hash') end ffi.gc(self, C.tds_hash_free) return self end local function setelem(elem, lelem) if type(lelem) =...
hash: fix leak
hash: fix leak
Lua
bsd-3-clause
jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds,torch/tds,jakezhaojb/tds,Moodstocks/tds
e5854ab93a07c67531fbe2ffb8da549211ca4804
Quadtastic/QuadList.lua
Quadtastic/QuadList.lua
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local Frame = require(current_folder .. ".Frame") local Layout = require(current_folder .. ".Layout") local Text = require(current_folder .. ".Text") local Scrollpane = require(current_folder .. ".Scrollpane") local imgui = require(current_folder .. ".im...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local Frame = require(current_folder .. ".Frame") local Layout = require(current_folder .. ".Layout") local Text = require(current_folder .. ".Text") local Scrollpane = require(current_folder .. ".Scrollpane") local imgui = require(current_folder .. ".im...
Fix double-click to rename not working
Fix double-click to rename not working The quad list draws elements of a group recursively, but ignored the double-clicked element that was returned by the recursive call. That was the reason why double-clicking on non-top-level quads or groups did not open the rename dialog. This commit fixes that. Resolves #29
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
022283296067013c812a0ec87e852d35172027c2
premakeUtils.lua
premakeUtils.lua
baseAbsPath = os.getcwd() srcAbsPath = baseAbsPath .. "/src" externalAbsPath = baseAbsPath .. "/external" buildPath = "build/" .. _ACTION genAbsPath = baseAbsPath .. "/build/gen" buildAbsPath = baseAbsPath .. "/" .. buildPath versionMajor = 0 versionMinor = 0 versionBuild = 0 function coSetWorkspaceDefaults() configu...
baseAbsPath = os.getcwd() srcAbsPath = baseAbsPath .. "/src" externalAbsPath = baseAbsPath .. "/external" buildPath = "build/" .. _ACTION genAbsPath = baseAbsPath .. "/build/gen" buildAbsPath = baseAbsPath .. "/" .. buildPath versionMajor = 0 versionMinor = 0 versionBuild = 0 function coSetWorkspaceDefaults() configu...
Fixed prebuild errors.
Fixed prebuild errors.
Lua
mit
smogpill/core,smogpill/core
6a4a785e68f9d8318e3f0eb0203c8c5853a345b6
SpatialReSamplingEx.lua
SpatialReSamplingEx.lua
local SpatialReSamplingEx, parent = torch.class('nn.SpatialReSamplingEx', 'nn.Module') local help_desc = [[ Extended spatial resampling. ]] function SpatialReSamplingEx:__init(...) parent.__init(self) -- get args xlua.unpack_class( self, {...}, 'nn.SpatialReSampling', help_desc, {arg='rwid...
local SpatialReSamplingEx, parent = torch.class('nn.SpatialReSamplingEx', 'nn.Module') local help_desc = [[ Extended spatial resampling. ]] function SpatialReSamplingEx:__init(...) parent.__init(self) -- get args xlua.unpack_class( self, {...}, 'nn.SpatialReSampling', help_desc, {arg='rwid...
fix a bug where the module is locked in to a particular oheight/width
fix a bug where the module is locked in to a particular oheight/width
Lua
mit
clementfarabet/lua---nnx
7449fde35f1d4e5aef2d2f4d2556a201d2ed1099
xmake/tools/ml.lua
xmake/tools/ml.lua
--!The Make-like Build Utility based on Lua -- -- XMake 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 Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
--!The Make-like Build Utility based on Lua -- -- XMake 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 Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
fix ml compile error
fix ml compile error
Lua
apache-2.0
waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake