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 |
|---|---|---|---|---|---|---|---|---|---|
2fe98d926a6f4b985efee591cc0495302b358152 | bin/default.lua | bin/default.lua | -- default.lua
local function samples()
end
function __main__()
print('usage: ./puss <script> [options...]')
print()
local function run(script)
local cmd = string.format('%s/%s %s', puss._path, puss._self, script)
print(cmd, os.execute(cmd))
end
local samples =
{ 'samples/puss.lua'
, 'samples/const.lua... | -- default.lua
function __main__()
print('usage: ./puss <script> [options...]')
print()
local function run(script)
local cmd = string.format('%s/%s %s', puss._path, puss._self, script)
print(cmd, os.execute(cmd))
end
local samples =
{ 'samples/puss.lua'
, 'samples/const.lua'
, 'samples/nuklear.lua'
... | fix build | fix build
| Lua | mit | louisliangjun/puss,louisliangjun/puss,louisliangjun/puss,louisliangjun/puss |
9ab17934fd4cd15b56b56babf816c2d983305496 | hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua | hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua | local lastScreenId = -1
local usePhysicalIndicator = true
local useVirtualIndicator = true
local currentIndicator = nil
local indicatorHeight = 3 -- 0..1 = percent of menubar, >1 = pixel height
local indicatorColor = hs.drawing.color.asRGB({
red = 0,
green = 1.0,
blue = 0,
alpha = 0.3
})
-- ------------------... | local lastScreenId = -1
local usePhysicalIndicator = true
local useVirtualIndicator = true
local currentIndicator = nil
local indicatorHeight = 3 -- 0..1 = percent of menubar, >1 = pixel height
local indicatorColor = hs.drawing.color.asRGB({
red = 0,
green = 1.0,
blue = 0,
alpha = 0.3
})
-- ------------------... | fix(Hammerspoon): Add attribution for virtual indicator code | fix(Hammerspoon): Add attribution for virtual indicator code
| Lua | mit | sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles |
bbb4bd762326937eb4356e0d9969d670553f2871 | logout-menu-widget/logout-menu.lua | logout-menu-widget/logout-menu.lua | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | fix: #281 | fix: #281
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
6393a0a746607130d22e5eff34ed171a0009050b | bindings/new_base64.lua | bindings/new_base64.lua | -- Base64-encoding
-- Sourced from http://en.wikipedia.org/wiki/Base64
--
-- Copyright (c) 2012, Daniel Lindsley
-- All rights reserved.
--
-- Modified by: Max Bruckner (FSMaxB)
-- * remove unnecessary "require"
-- * remove __ attributes
-- * rename "to_base64" -> "encode" and "from_base64" -> "decode"
-- * make it a l... | -- Base64-encoding
-- Sourced from http://en.wikipedia.org/wiki/Base64
--
-- Copyright (c) 2012, Daniel Lindsley
-- All rights reserved.
--
-- Modified by: Max Bruckner (FSMaxB)
-- * remove unnecessary "require"
-- * remove __ attributes
-- * rename "to_base64" -> "encode" and "from_base64" -> "decode"
-- * make it a l... | base64: Fix the modulo operator | base64: Fix the modulo operator
| Lua | lgpl-2.1 | FSMaxB/molch,FSMaxB/molch,FSMaxB/molch |
7e750ae50b5693d39f9118b7a0490c80185deba2 | tests/build.lua | tests/build.lua | -- main entry
function main(argv)
-- generic?
os.exec("$(xmake) m -b")
os.exec("$(xmake) f -c")
os.exec("$(xmake)")
if os.host() ~= "windows" then
os.exec("$(xmake) install -o /tmp -a --verbose --backtrace")
os.exec("$(xmake) uninstall --installdir=/tmp --verbose --backtrace")
e... | -- main entry
function main(argv)
-- generic?
os.exec("xmake m -b")
os.exec("xmake f -c")
os.exec("xmake")
if os.host() ~= "windows" then
os.exec("xmake install -o /tmp -a --verbose --backtrace")
os.exec("xmake uninstall --installdir=/tmp --verbose --backtrace")
end
os.exec(... | Revert "use $(xmake) instead of xmake to fix cnf" | Revert "use $(xmake) instead of xmake to fix cnf"
This reverts commit f2e0d829b43011cce87568118a5b8b0b469ade1e.
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake |
ef9a4c5d04ea2ca5c6348b10fe5d28c7c9bdf6fe | modules/game_minimap/minimap.lua | modules/game_minimap/minimap.lua | DEFAULT_ZOOM = 60
MAX_FLOOR_UP = 0
MAX_FLOOR_DOWN = 15
navigating = false
minimapWidget = nil
minimapButton = nil
minimapWindow = nil
--[[
Known Issue (TODO):
If you move the minimap compass directions and
you change floor it will not update the minimap.
]]
function init()
connect(g_game, {
onGameStart = ... | DEFAULT_ZOOM = 60
MAX_FLOOR_UP = 0
MAX_FLOOR_DOWN = 15
navigating = false
minimapWidget = nil
minimapButton = nil
minimapWindow = nil
--[[
Known Issue (TODO):
If you move the minimap compass directions and
you change floor it will not update the minimap.
]]
function init()
connect(g_game, {
onGameStart = ... | Fix minimap desync, old issue #10 | Fix minimap desync, old issue #10
| Lua | mit | EvilHero90/otclient,EvilHero90/otclient,Radseq/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,dreamsxin/otclient,Radseq/otclient,dreamsxin/otclient,kwketh/otclient,kwketh/otclient,Cavitt/otclient_mapgen,gpedro/otclient,gpedro/otclient,gpedro/otclient |
1d06181b9b134f4ad8a1ab90d493fdd800b612c6 | commands/assets.lua | commands/assets.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors.
--
-- 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 w... | --[[ @cond ___LICENSE___
-- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors.
--
-- 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 w... | Revert "Fix asset path" | Revert "Fix asset path"
This reverts commit 20c453e43c6abd8ebc9412389723875c90810daa.
| Lua | mit | Zefiros-Software/ZPM |
501598c58c1af35886a98c0465d96026352c3058 | TemporalConvolution.lua | TemporalConvolution.lua | local TemporalConvolution, parent =
torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution')
--use cudnn to perform temporal convolutions
--note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution
--however, instead of separately padding data, as is required no... | local TemporalConvolution, parent =
torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution')
--use cudnn to perform temporal convolutions
--note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution
--however, instead of separately padding data, as is required no... | fixing TemporalConvolution serialization after cudnn.convert | fixing TemporalConvolution serialization after cudnn.convert
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
7e7072b8aa5a0371662c15ee950acfedfba33765 | mod_manifesto/mod_manifesto.lua | mod_manifesto/mod_manifesto.lua | -- mod_manifesto
local timer = require "util.timer";
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local dm = require "util.datamanager";
local time = os.time;
local hosts = prosody.hosts;
local host = module.host;
local host_session = hosts[host];
local incoming_s2s = prosody.incoming... | -- mod_manifesto
local timer = require "util.timer";
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local dm = require "util.datamanager";
local time = os.time;
local hosts = prosody.hosts;
local host = module.host;
local host_session = hosts[host];
local incoming_s2s = prosody.incoming... | mod_manifesto: Fix traceback when user disconnects before the timer (fixes #48) | mod_manifesto: Fix traceback when user disconnects before the timer (fixes #48)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
1026d63ba37b8a1074c49797ce737edb5726ed2f | spec/config_spec.lua | spec/config_spec.lua | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
local env_variables = test_env.env_variables
local site_config
test_env.unload_luarocks()
describe("LuaRocks config tests #blackbox #b_config", function()
before_ea... | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
local env_variables = test_env.env_variables
local site_config
test_env.unload_luarocks()
describe("LuaRocks config tests #blackbox #b_config", function()
before_ea... | Fix of config test | Fix of config test
| Lua | mit | robooo/luarocks,xpol/luavm,tarantool/luarocks,xpol/luarocks,keplerproject/luarocks,xpol/luarocks,xpol/luarocks,tarantool/luarocks,xpol/luavm,keplerproject/luarocks,keplerproject/luarocks,xpol/luainstaller,robooo/luarocks,keplerproject/luarocks,tarantool/luarocks,robooo/luarocks,xpol/luainstaller,xpol/luavm,xpol/luarock... |
759c19da827d1112c03b71163caa63ddc453b7ba | specs/alias_spec.lua | specs/alias_spec.lua | context('Object functions specs', function()
local _ = require 'moses'
test('Not defining MOSES_ALIASES before calling Moses will not import aliases', function()
assert_nil(_.forEach)
assert_nil(_.collect)
assert_nil(_.inject)
assert_nil(_.foldl)
assert_nil(_.injectr)
assert_nil(_.foldr)
assert_nil(_.m... | context('Disabling aliases', function()
local _ = require 'moses'
test('Not defining MOSES_ALIASES before calling Moses will not import aliases', function()
assert_nil(_.forEach)
assert_nil(_.collect)
assert_nil(_.inject)
assert_nil(_.foldl)
assert_nil(_.injectr)
assert_nil(_.foldr)
assert_nil(_.mapr) ... | Fixed aliases spec contexts names | Fixed aliases spec contexts names
| Lua | mit | ignacio/Moses,AntonioModer/Moses,takaaptech/Moses |
714bc13720056d6cc6dc0eecce98eddafe91483b | frontend/ui/device/screen.lua | frontend/ui/device/screen.lua | local Geom = require("ui/geometry")
local DEBUG = require("dbg")
-- Blitbuffer
-- einkfb
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+--------------+
| +----------+ |
| | | |
| | Freedom! | |
| | | |
... | local Geom = require("ui/geometry")
local DEBUG = require("dbg")
-- Blitbuffer
-- einkfb
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+--------------+
| +----------+ |
| | | |
| | Freedom! | |
| | | |
... | fix wrong screen dpi on Kindle paperwhite 2 | fix wrong screen dpi on Kindle paperwhite 2
| Lua | agpl-3.0 | frankyifei/koreader,poire-z/koreader,koreader/koreader,koreader/koreader,mihailim/koreader,Frenzie/koreader,chihyang/koreader,ashang/koreader,Markismus/koreader,NiLuJe/koreader,mwoz123/koreader,lgeek/koreader,robert00s/koreader,Hzj-jie/koreader,NiLuJe/koreader,houqp/koreader,apletnev/koreader,Frenzie/koreader,ashhher3/... |
d890e0e479b25594193b8846ea1996f9d9239421 | src/sailor/access.lua | src/sailor/access.lua | --------------------------------------------------------------------------------
-- access.lua, v0.2.4: controls access of sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
--------------------------------------------... | --------------------------------------------------------------------------------
-- access.lua, v0.2.5: controls access of sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
--------------------------------------------... | Fixing missing session data | Fixing missing session data
| Lua | mit | felipedaragon/sailor,sailorproject/sailor,jeary/sailor,noname007/sailor,Etiene/sailor,Etiene/sailor,ignacio/sailor,mpeterv/sailor,mpeterv/sailor,hallison/sailor,ignacio/sailor,felipedaragon/sailor |
e3efc3223515c1c57999c9beda5278af9cd429f3 | extension/script/frontend/debugerFactory.lua | extension/script/frontend/debugerFactory.lua | local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
local platformOS = require 'frontend.platformOS'
local inject = require 'inject'
local useWSL = false
local useUtf8 = false
local function initialize(args)
useWSL = args.useWSL
useUtf8 = args.sourceCoding == "utf8"
end
local function tow... | local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
local platformOS = require 'frontend.platformOS'
local inject = require 'inject'
local useWSL = false
local useUtf8 = false
local function initialize(args)
useWSL = args.useWSL
useUtf8 = args.sourceCoding == "utf8"
end
local function tow... | 修正wsl的bug | 修正wsl的bug
| Lua | mit | actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug |
a29a1f6132c3507817158da9aed483c5f79fa9dd | tests/dbus.lua | tests/dbus.lua | di.load_plugin("./plugins/dbus/di_dbus.so")
local dbusl = di.spawn.run({"dbus-daemon", "--print-address", "--session", "--fork"}, false)
dbusl.on("stdout_line", function(l)
print(l)
di.env.DBUS_SESSION_BUS_ADDRESS = l
di.env.DBUS_SESSION_BUS_PID = nil
di.env.DBUS_SESSION_BUS_WINDOWID = nil
end)
dbusl.on... | di.load_plugin("./plugins/dbus/di_dbus.so")
di.env.DBUS_SESSION_BUS_PID = nil
di.env.DBUS_SESSION_BUS_ADDRESS = nil
local dbusl = di.spawn.run({"dbus-daemon", "--print-address=1", "--print-pid=2", "--session", "--fork"}, false)
dbusl.on("stdout_line", function(l)
print(l)
di.env.DBUS_SESSION_BUS_ADDRESS = l
end... | Try to fix dbus ci test (works locally) | Try to fix dbus ci test (works locally)
| Lua | mpl-2.0 | yshui/deai,yshui/deai,yshui/deai |
25b7066e555fcaac7dd0e4315ab4dc82bd73d3e3 | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | applications/luci-firewall: some fixes on redirection page | applications/luci-firewall: some fixes on redirection page
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci |
85e486f887263b57fb6dd6ba581e30f860d087f7 | OS/DiskOS/Editors/paint.lua | OS/DiskOS/Editors/paint.lua | local eapi, img, imgdata = ... --Check C://Programs/paint.lua
local sw, sh = screenSize()
local paint = {}
paint.pal = imagedata(16,1)
paint.pal:map(function(x,y,c) return x end)
paint.pal = paint.pal:image()
function paint:drawPalette()
self.pal:draw(1,sh-7,0,8,8)
end
function paint:drawImage()
clip(1,9,sw,sh-... | local eapi, img, imgdata = ... --Check C://Programs/paint.lua
local sw, sh = screenSize()
local paint = {}
paint.pal = imagedata(16,1)
paint.pal:map(function(x,y,c) return x end)
paint.pal = paint.pal:image()
paint.drawCursor = eapi.editorsheet:extract(8):image()
paint.fgcolor, paint.bgcolor = 8,1
paint.palGrid = ... | Moved the palette to the right Added the selected colors cell Bugfixed some glitches | Moved the palette to the right
Added the selected colors cell
Bugfixed some glitches
| Lua | mit | RamiLego4Game/LIKO-12 |
50e5e847d185a7504c20bdf7ff3122a5a43d71be | src/cosy/fixpath/cli.lua | src/cosy/fixpath/cli.lua | local Lfs = require "lfs"
local Lustache = require "lustache"
local Colors = require 'ansicolors'
local Arguments = require "argparse"
local parser = Arguments () {
name = "cosy-fixpath",
description = "Fix PATH, CPATH, *LIBRARY_PATH in cosy binaries",
}
parser:argument "prefix" {
description = ... | local Lfs = require "lfs"
local Lustache = require "lustache"
local Colors = require 'ansicolors'
local Arguments = require "argparse"
local parser = Arguments () {
name = "cosy-fixpath",
description = "Fix PATH, CPATH, *LIBRARY_PATH in cosy binaries",
}
parser:argument "prefix" {
description = ... | Add --quiet option to fixpath. | Add --quiet option to fixpath.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
72659bdea010b5d3e60f7e54e896c8166799f0c3 | core/inputs-texlike.lua | core/inputs-texlike.lua | SILE.inputs.TeXlike = {}
local epnf = require("epnf")
local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 )
SILE.inputs.TeXlike.identifier = (ID + lpeg.P"-" + lpeg.P":")^1
SILE.inputs.TeXlike.parser = function (_ENV)
local _ = WS^0
local sep = S",;" * _
local eol = S"\r\... | SILE.inputs.TeXlike = {}
local epnf = require("epnf")
local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 )
SILE.inputs.TeXlike.identifier = (ID + lpeg.P"-" + lpeg.P":")^1
SILE.inputs.TeXlike.parser = function (_ENV)
local _ = WS^0
local sep = S",;" * _
local eol = S"\r\... | Fix case of included TeX-flavor markup | Fix case of included TeX-flavor markup
Closes #465. See also #505.
| Lua | mit | alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,alerque/sile,neofob/sile,alerque/sile,neofob/sile |
ddfc4160a2de6f35422459d9f4950e9bb6a48e26 | nyagos.d/suffix.lua | nyagos.d/suffix.lua | share._suffixes={}
share._setsuffix = function(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not share._suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffi... | share._suffixes={}
share._setsuffix = function(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not share._suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffi... | Changed the syntax for suffix like `suffix EXT=COMMAND` | Changed the syntax for suffix like `suffix EXT=COMMAND`
| Lua | bsd-3-clause | nocd5/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos,tyochiai/nyagos |
3522ee2c011dce20e33765f8faee641aa3cce7e4 | OvaleIcone.lua | OvaleIcone.lua | function OvaleIcone_OnUpdate(self)
Ovale.maintenant = GetTime();
if (not Ovale.bug) then
Ovale.traced = false
end
Ovale:InitCalculerMeilleureAction()
local minAttente = Ovale:CalculerMeilleureAction(self.masterNode)
local meilleureAction = Ovale.retourAction
if (Ovale.trace) then
Ovale.trace=false
... | function OvaleIcone_OnUpdate(self)
Ovale.maintenant = GetTime();
if (not Ovale.bug) then
Ovale.traced = false
end
Ovale:InitCalculerMeilleureAction()
local minAttente = Ovale:CalculerMeilleureAction(self.masterNode)
local meilleureAction = Ovale.retourAction
if (Ovale.trace) then
Ovale.trace=false
... | - bug fix: hides the cooldown when a spell has no cooldown when it is first shown (e.g. a spell that is casted after a proc) | - bug fix: hides the cooldown when a spell has no cooldown when it is first shown (e.g. a spell that is casted after a proc)
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@30 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,Xeltor/ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale |
5b0c01207078b6538cc211baa63df62ce7f4a4ee | modules/alarm.lua | modules/alarm.lua | local ev = require'ev'
if(not ivar2.timers) then ivar2.timers = {} end
local dateFormat = '%Y-%m-%d %X %Z'
local split = function(str, pattern)
local out = {}
str:gsub(pattern, function(match)
table.insert(out, match)
end)
return out
end
local timeMatches = {
{
'(%d+)[:.](%d%d)[:.]?(%d?%d?)', function(h,... | local ev = require'ev'
if(not ivar2.timers) then ivar2.timers = {} end
local dateFormat = '%Y-%m-%d %X %Z'
local split = function(str, pattern)
local out = {}
str:gsub(pattern, function(match)
table.insert(out, match)
end)
return out
end
local timeMatches = {
{
'(%d+)[:.](%d%d)[:.]?(%d?%d?)', function(h,... | alarm: Timers with no postfix default to minutes. | alarm: Timers with no postfix default to minutes.
| Lua | mit | torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2 |
b490e4533c1338194cea01c454368f6fc7fd5233 | hammerspoon/.hammerspoon/jumpcutselect.lua | hammerspoon/.hammerspoon/jumpcutselect.lua | -- Selector for jumpcut thingy
local settings = require("hs.settings")
local utils = require("utils")
local mod = {}
-- jumpcutselect
function mod.jumpcutselect()
function formatChoices(choices)
choices = utils.reverse(choices)
formattedChoices = hs.fnutils.imap(choices, function(result)
... | -- Selector for jumpcut thingy
local settings = require("hs.settings")
local utils = require("utils")
local mod = {}
-- jumpcutselect
function mod.jumpcutselect()
function formatChoices(choices)
choices = utils.reverse(choices)
formattedChoices = hs.fnutils.imap(choices, function(result)
... | [hammerspoon] fix selection after filtering | [hammerspoon] fix selection after filtering
| Lua | mit | meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles |
13d8c957acd906fd809aa284d8ae9bfe8947569e | spec/algo/LoadFromLua_spec.lua | spec/algo/LoadFromLua_spec.lua | describe("algo.LoadFromLua", function()
it("loads Lua files in #sandbox", function()
local model = require 'npge.model'
local s = model.Sequence("test_name", "ATAT")
local f1 = model.Fragment(s, 0, 1, 1)
local f2 = model.Fragment(s, 3, 2, -1)
local block1 = model.Block({f2})
... | describe("algo.LoadFromLua", function()
it("loads Lua files in #sandbox", function()
local model = require 'npge.model'
local s = model.Sequence("test_name", "ATAT")
local f1 = model.Fragment(s, 0, 1, 1)
local f2 = model.Fragment(s, 3, 2, -1)
local block1 = model.Block({f2})
... | LoadFromLua: fix using preloaded sequences | LoadFromLua: fix using preloaded sequences
| Lua | mit | npge/lua-npge,starius/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge |
13134c0b48ada5a0f627a4a1a10fae13b0b803b3 | application.lua | application.lua | local sda = 6
local scl = 5
function receiver(sck, data)
print(data)
sck:close()
end
function makepromlines(prefix, name, source)
local buffer = {"# TYPE ", prefix, name, " gauge\n", prefix, name, " ", source, "\n"}
local lines = table.concat(buffer)
return lines
end
function metrics()
local t, p, h, q... | local sda = 6
local scl = 5
function makepromlines(prefix, name, source)
local buffer = {"# TYPE ", prefix, name, " gauge\n", prefix, name, " ", source, "\n"}
local lines = table.concat(buffer)
return lines
end
function metrics()
local t, p, h, qnh = bme280.read(altitude)
local d = bme280.dewpoint(h, t)... | Use sleep+force mode and chain callbacks properly | Use sleep+force mode and chain callbacks properly
According to the datasheet[1] in section 3.5.1, the recommended
operation for weather monitoring is to use forced mode. This prevents
the sensor from becoming warm and distort the temperature results.
This also fixes the callbacks that need to be properly chained to a... | Lua | mit | vonneudeck/mouldy,vonneudeck/mouldy |
a94a2577c020e1c8bb819e9392d8823f0b478b21 | setup.lua | setup.lua | -- module for initial setup
local config = require "config"
local categoryList = config.categories
local filePath = config.filePath
local dbmodule = require "dbmodule"
local setup = {}
function setup.file_exists(file)
local f = io.open(file, "rb")
if f then f:close() end
return f ~= nil
end
-- get all lines f... | -- module for initial setup
local config = require "config"
local categoryList = config.categories
local filePath = config.filePath
local dbmodule = require "dbmodule"
local setup = {}
function setup.file_exists(file)
local f = io.open(file, "rb")
if f then f:close() end
return f ~= nil
end
-- get all lines f... | #8 fixes removed display banner | #8 fixes removed display banner
Signed-off-by: Jacobo Tibaquira <d8d2a0ed36dd5f2e41c721fffbe8af2e7e4fe993@gmail.com>
| Lua | apache-2.0 | JKO/nsearch,JKO/nsearch |
7292c475b2570b5daf13995951e53847b0a7b375 | share/luaplaylist/youtube.lua | share/luaplaylist/youtube.lua | -- $Id$
-- Helper function to get a parameter's value in a URL
function get_url_param( url, name )
return string.gsub( vlc.path, "^.*"..name.."=([^&]*).*$", "%1" )
end
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "youtube.com" )
and ( string.mat... | -- $Id$
-- Helper function to get a parameter's value in a URL
function get_url_param( url, name )
return string.gsub( vlc.path, "^.*"..name.."=([^&]*).*$", "%1" )
end
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "youtube.com" )
and ( string.mat... | Fixes youtube parsing | Fixes youtube parsing
| Lua | lgpl-2.1 | vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.... |
9ea23cd57e3c600b98fb0c3c04c078f51facff41 | MMOCoreORB/bin/scripts/screenplays/tasks/mat_rags.lua | MMOCoreORB/bin/scripts/screenplays/tasks/mat_rags.lua | mat_rags_missions =
{
{
missionType = "assassinate",
silentTarget = "yes",
primarySpawns =
{
{ npcTemplate = "mat_rags_desert_squill", planetName = "tatooine", npcName = "desert squill" }
},
secondarySpawns = {},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_ite... | mat_rags_missions =
{
{
missionType = "assassinate",
silentTarget = "yes",
primarySpawns =
{
{ npcTemplate = "mat_rags_desert_squill", planetName = "tatooine", npcName = "desert squill" }
},
secondarySpawns = {},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_ite... | [Fixed] Mat Rags missing rewards. Mantis #3934 | [Fixed] Mat Rags missing rewards. Mantis #3934
Change-Id: I39b9652732887a3ebf6df0cd1ddd5dd9ffc26cfa
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
ad22942108da4f0fd98cf1e24ec80f5e8c7cc7e4 | frontend/luadefaults.lua | frontend/luadefaults.lua | --[[--
Subclass of LuaSettings dedicated to handling the legacy global constants.
]]
local DataStorage = require("datastorage")
local LuaSettings = require("luasettings")
local dump = require("dump")
local ffiutil = require("ffi/util")
local util = require("util")
local isAndroid, android = pcall(require, "android")
l... | --[[--
Subclass of LuaSettings dedicated to handling the legacy global constants.
]]
local DataStorage = require("datastorage")
local LuaSettings = require("luasettings")
local dump = require("dump")
local ffiutil = require("ffi/util")
local util = require("util")
local isAndroid, android = pcall(require, "android")
l... | LuaDefaults: Look for defaults.lua in $PWD first | LuaDefaults: Look for defaults.lua in $PWD first
As DataDir may not exist yet.
Fix #9593
| Lua | agpl-3.0 | NiLuJe/koreader,koreader/koreader,Frenzie/koreader,Frenzie/koreader,NiLuJe/koreader,koreader/koreader,poire-z/koreader,poire-z/koreader |
1c45b06a119efec243c65fd4b99a329cd0debbcd | kong/cmd/config.lua | kong/cmd/config.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | fix(cmd) allow 'kong config init' to work without a prefix | fix(cmd) allow 'kong config init' to work without a prefix
From #4451
Signed-off-by: Thibault Charbonnier <3c2e9133e272cb489e2fea0c4328cf56b08e4226@me.com>
| Lua | apache-2.0 | Kong/kong,Mashape/kong,Kong/kong,Kong/kong |
7ee0331351f9a80ed761ba03f0a1acd23ee72724 | spec/helper.lua | spec/helper.lua | local check_state = require "luacheck.check_state"
local core_utils = require "luacheck.core_utils"
local stages = require "luacheck.stages"
local helper = {}
local function get_lua()
local index = -1
local res = "lua"
while arg[index] do
res = arg[index]
index = index - 1
end
return res
... | local helper = {}
local function get_lua()
local index = -1
local res = "lua"
while arg[index] do
res = arg[index]
index = index - 1
end
return res
end
local dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function antipath(path)
local _... | Fix coverage missing for main chunks of most modules | Fix coverage missing for main chunks of most modules
Don't require luacheck modules in main chunk of spec helper,
at that moment luacov isn't running yet.
| Lua | mit | xpol/luacheck,xpol/luacheck,mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck |
09c37d81190cfb1ab8398faeb82e6f0b1af400b6 | plugins/mod_dialback.lua | plugins/mod_dialback.lua | -- Prosody IM v0.1
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- 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 2
-- of the License, or (at your o... | -- Prosody IM v0.1
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- 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 2
-- of the License, or (at your o... | Fix the last couple of places where we send strings from mod_dialback | Fix the last couple of places where we send strings from mod_dialback
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
e7c6846b4f6e175cd94f60f1a74f8dbba4b7de1f | plugins/mod_saslauth.lua | plugins/mod_saslauth.lua |
local st = require "util.stanza";
local send = require "core.sessionmanager".send_to_session;
local sm_bind_resource = require "core.sessionmanager".bind_resource;
local jid
local base64 = require "base64"
local usermanager_validate_credentials = require "core.usermanager".validate_credentials;
local t_concat, t_inse... |
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_resource;
local jid
local base64 = require "base64"
local usermanager_validate_credentials = require "core.usermanager".validate_credentials;
local t_concat, t_insert = table.concat, table.insert;
local tostring = tostring;
... | Fixed mod_saslauth to use session.send for sending stanzas | Fixed mod_saslauth to use session.send for sending stanzas
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
1a5c0d0ab2f6844e8e775b475225992170c1b0b7 | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | applications/luci-ddns: fix selection of custom update_url | applications/luci-ddns: fix selection of custom update_url
| Lua | apache-2.0 | 8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
1b0219f8387bf70c829c69f0be57445e34cf75ce | apply.lua | apply.lua | include 'init.lua'
require 'nvrtc'
local ffi = require 'ffi'
local kernel_source = [[
extern "C" __global__
void kernel(float* a, int n)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
float &x = a[i];
if (i < n)
LAMBDA;
}
]]
local CUDA_NUM_THREADS = 1024
local ptx_cache = {}
local function get_blocks(N)... | include 'init.lua'
require 'nvrtc'
local ffi = require 'ffi'
local kernel_source = [[
extern "C" __global__
void kernel(float* a, int n)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
float &x = a[i];
if (i < n)
LAMBDA;
}
]]
local CUDA_NUM_THREADS = 64
local ptx_cache = {}
local function get_blocks(N)
... | fixed caching | fixed caching
| Lua | bsd-2-clause | szagoruyko/cutorch-rtc |
62b96a6a35fefbf90a5bf294bf9676c684531b59 | spec/02-integration/05-proxy/04-dns_spec.lua | spec/02-integration/05-proxy/04-dns_spec.lua | local helpers = require "spec.helpers"
local TCP_PORT = 35000
-- @param port the port to listen on
-- @param duration the duration for which to listen and accept connections (seconds)
local function bad_tcp_server(port, duration, ...)
local threads = require "llthreads2.ex"
local thread = threads.new({
functi... | local helpers = require "spec.helpers"
local TCP_PORT = 16945
local pack = function(...) return { n = select("#", ...), ... } end
local unpack = function(t) return unpack(t, 1, t.n) end
-- @param port the port to listen on
-- @param duration the duration for which to listen and accept connections (seconds)
local fun... | test(dns) fixes dns retries test | test(dns) fixes dns retries test
| Lua | apache-2.0 | Kong/kong,akh00/kong,icyxp/kong,Mashape/kong,Kong/kong,salazar/kong,jebenexer/kong,Kong/kong,shiprabehera/kong |
af273217510ccfba59b9e0469488dafbe21c31e1 | mods/item_drop/init.lua | mods/item_drop/init.lua | item_drop = {}
local enable_damage = minetest.setting_getbool("enable_damage")
local creative_mode = minetest.setting_getbool("creative_mode")
-- Following edits by gravgun
item_drop.drop_callbacks = {}
item_drop.pickup_callbacks = {}
-- on_drop(dropper, drop_entity, itemstack)
function item_drop.add_drop_callback(o... | item_drop = {}
local enable_damage = minetest.setting_getbool("enable_damage")
local creative_mode = minetest.setting_getbool("creative_mode")
local TICK_UPDATE = 0.1
local die_timeout = 20
local die_time = {}
local die_respawned = {}
minetest.register_on_joinplayer(function(player)
local player_name = player:get_p... | fix 1 part of issue https://github.com/MinetestForFun/server-minetestforfun/issues/161 player can't take items when usebug respawn | fix 1 part of issue https://github.com/MinetestForFun/server-minetestforfun/issues/161
player can't take items when usebug respawn
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,crabman77/minetest-minete... |
dc565c15a799c484ce4b049bfbbfc6f15667574a | retry.lua | retry.lua | -- retry(0, jid, queue, worker, now, [delay])
-- ------------------------------------------
-- This script accepts jid, queue, worker and delay for
-- retrying a job. This is similar in functionality to
-- `put`, except that this counts against the retries
-- a job has for a stage.
--
-- If the worker is not the work... | -- retry(0, jid, queue, worker, now, [delay])
-- ------------------------------------------
-- This script accepts jid, queue, worker and delay for
-- retrying a job. This is similar in functionality to
-- `put`, except that this counts against the retries
-- a job has for a stage.
--
-- If the worker is not the work... | Minor bug fix | Minor bug fix
When jobs are retried, their state was not getting proprerly represented in the
job hash.
| Lua | mit | backupify/qless-core,seomoz/qless-core,seomoz/qless-core |
e5be4eb9b765b7b3aea3e3d603059e5480e1c7bb | xmake/tools/gcc.lua | xmake/tools/gcc.lua | --!The Automatic Cross-platform Build Tool
--
-- 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 dis... | --!The Automatic Cross-platform Build Tool
--
-- 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 dis... | fix checker for the gcc flags: --coverage | fix checker for the gcc flags: --coverage
| Lua | apache-2.0 | waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake |
b2a3c17a7b1b4ea7084f6b3775f233f562c6dad4 | plugins/likecounter.lua | plugins/likecounter.lua | local function like(likedata, chat, user)
if not likedata[chat] then
likedata[chat] = { }
end
if not likedata[chat][user] then
likedata[chat][user] = 0
end
likedata[chat][user] = tonumber(likedata[chat][user] + 1)
save_data(_config.likecounter.db, likedata)
end
local ... | local function like(likedata, chat, user)
if not likedata[chat] then
likedata[chat] = { }
end
if not likedata[chat][user] then
likedata[chat][user] = 0
end
likedata[chat][user] = tonumber(likedata[chat][user] + 1)
save_data(_config.likecounter.db, likedata)
end
local ... | fix pattern missing | fix pattern missing
| Lua | agpl-3.0 | xsolinsx/AISasha |
b1dc36ca91d912f58ca60e3f17bcb329804a151d | mods/MAPGEN/sea/init.lua | mods/MAPGEN/sea/init.lua | --[[
Sea
--]]
--
-- Corals
--
minetest.register_node("sea:coral_brown", {
description = "Brown Coral",
tiles = {"sea_coral_brown.png"},
groups = {cracky = 3},
drop = "sea:coral_skeleton",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("sea:coral_orange", {
description = "Orange Cora... | --[[
Sea
--]]
--
-- Corals
--
minetest.register_node("sea:coral_brown", {
description = "Brown Coral",
tiles = {"sea_coral_brown.png"},
groups = {cracky = 3},
drop = "sea:coral_skeleton",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("sea:coral_orange", {
description = "Orange Cora... | Register coral aliases to fix schematic | Register coral aliases to fix schematic
| Lua | lgpl-2.1 | vlapsley/outback,vlapsley/outback |
1f21813cdde305170c64e1672e87ab9713626118 | src_trunk/resources/realism-system/c_weapons_back.lua | src_trunk/resources/realism-system/c_weapons_back.lua | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPedWeapon(source, prevSlot)
local newWeapon = getPedWeapon(source, newSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) and (isPedInVehicle(source)==false) then
if (weapons[... | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPedWeapon(source, prevSlot)
local newWeapon = getPedWeapon(source, newSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) and (isPedInVehicle(source)==false) then
if (weapons[... | Fixed a bug where an AK would appear on your back despite not having one | Fixed a bug where an AK would appear on your back despite not having one
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1972 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
6dc5fcedfdf074dbc47c8f21a42cf54d93777284 | Lua_examples/http.lua | Lua_examples/http.lua | -- see bottom of file for useage
require( "bromsock" );
-- url: http://4o3.nl
-- method: GET or POST
-- postdatatbl: nil, unles you have POST set as method, then a key/value table containing the data
-- callback: function(table headers, string body)
function HTTPRequest(url, method, postdatatbl, callback)
if (string... | -- see bottom of file for useage
require( "bromsock" );
-- url: http://4o3.nl
-- method: GET or POST
-- postdatatbl: nil, unles you have POST set as method, then a key/value table containing the data
-- callback: function(table headers, string body)
function HTTPRequest(url, method, postdatatbl, callback)
if (string... | Fixed the http example regarding sending headers | Fixed the http example regarding sending headers
I was sending them in multiple packets, every header. So if you were
unlucky, it would send the end of the headers before an actual header.
Yay threading.
| Lua | mit | Bromvlieg/gm_bromsock,Bromvlieg/gm_bromsock |
d3200df717b7e1beaef70b4bd8b99f05ff350d6a | MMOCoreORB/bin/scripts/loot/items/foraged_stimpack.lua | MMOCoreORB/bin/scripts/loot/items/foraged_stimpack.lua | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
foraged_stimpack = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/medicine/stimpack_sm_s1.iff",
craftingValues = {
{"power",75,95,0},
{"charges",1,10,0},
{"skillm... | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
foraged_stimpack = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/medicine/stimpack_sm_s1.iff",
craftingValues = {
{"power",75,95,0},
{"charges",5,10,0},
{"skillm... | (Unstable) [Fixed] Foraged Stimpack. Mantis issue 3182 | (Unstable) [Fixed] Foraged Stimpack. Mantis issue 3182
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5802 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,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,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
7b1a0202332b8cc7b4d85e9663779f610c345d70 | plugins/mod_announce.lua | plugins/mod_announce.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st, jid, set = require "util.stanza", require "util.jid", require "util.set";
local is_admin = req... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st, jid, set = require "util.stanza", require "util.jid", require "util.set";
local is_admin = req... | mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies. | mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
08c939b5e580117ceb250ed21720220b75575b7f | xmake.lua | xmake.lua | set_xmakever("2.2.5")
-- project
set_project("hikyuu")
-- version
set_version("1.1.6", {build="%Y%m%d%H%M"})
set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别
--if is_mode("debug") then
-- set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别
--else
-- set_configvar("LOG_ACTIVE_LEVEL", 2) -- 激活的日志级别
--end
set_co... | set_xmakever("2.2.5")
-- project
set_project("hikyuu")
-- version
set_version("1.1.6", {build="%Y%m%d%H%M"})
set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别
--if is_mode("debug") then
-- set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别
--else
-- set_configvar("LOG_ACTIVE_LEVEL", 2) -- 激活的日志级别
--end
set_co... | fixed #I2LAT3 修改xmake.lua, 强制依赖包不使用系统包 | fixed #I2LAT3 修改xmake.lua, 强制依赖包不使用系统包
| Lua | mit | fasiondog/hikyuu |
a7c179c766217eeb1df209bb8b57e548a806c064 | packages/grid.lua | packages/grid.lua | local gridSpacing -- Should be a setting
local makeUp = function ()
local toadd = gridSpacing - (SILE.typesetter.frame.state.totals.gridCursor % gridSpacing)
SILE.typesetter.frame.state.totals.gridCursor = SILE.typesetter.frame.state.totals.gridCursor + toadd
return SILE.nodefactory.newVglue({ height = SILE.l... | local gridSpacing -- Should be a setting
local makeUp = function ()
local toadd = gridSpacing - (SILE.typesetter.frame.state.totals.gridCursor % gridSpacing)
SILE.typesetter.frame.state.totals.gridCursor = SILE.typesetter.frame.state.totals.gridCursor + toadd
return SILE.nodefactory.newVglue({ height = SILE.l... | Fixes(?) to grid. There is confusion about line baselines and toplines. | Fixes(?) to grid. There is confusion about line baselines and toplines. | Lua | mit | WAKAMAZU/sile_fe,shirat74/sile,WAKAMAZU/sile_fe,anthrotype/sile,shirat74/sile,neofob/sile,WAKAMAZU/sile_fe,neofob/sile,WAKAMAZU/sile_fe,simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,simoncozens/sile,alerque/sile,anthrotype/sile,anthrotype/sile,simoncozens/sile,shirat74/sile,anthrotype/sile,alerque/sile,alerque/... |
89ea76a90af0d4276fd39c04ce2a8e4f5b03339a | src_trunk/resources/job-system/fishing/c_fishing_job.lua | src_trunk/resources/job-system/fishing/c_fishing_job.lua | local count = 0
local pFish = nil
local state = 0
local fishSize = 0
local hotSpot1 = nil
local hotSpot2 = nil
local totalCatch = 0
function castLine()
local element = getPedContactElement(getLocalPlayer())
if not (isElement(element)) then
outputChatBox("You must be on a boat to fish.", 255, 0, 0)
e... | local count = 0
local pFish = nil
local state = 0
local fishSize = 0
local hotSpot1 = nil
local hotSpot2 = nil
local totalCatch = 0
local fishingBlip, fishingMarker, fishingCol = nil
function castLine()
local element = getPedContactElement(getLocalPlayer())
if not (isElement(element)) then
outputChat... | Fishing fix for catching fish when not out at sea. Possible fix for marker not appearing. | Fishing fix for catching fish when not out at sea. Possible fix for marker not appearing.
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@645 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
046c4107b612511f6c0a13f31de5ba5a3ba28d62 | npl_mod/nwf/utils/string_util.lua | npl_mod/nwf/utils/string_util.lua | --[[
Title: string utilities
Author: zenghui
Date: 2017/3/6
]]
local util = commonlib.gettable("nwf.util.string");
function util.split(str, delimiter)
if type(delimiter) ~= "string" or string.len(delimiter) <= 0 then
return
end
local start = 1
local t = {}
while true do
local pos ... | --[[
Title: string utilities
Author: zenghui
Date: 2017/3/6
]]
local util = commonlib.gettable("nwf.util.string");
function util.split(str, delimiter)
if type(delimiter) ~= "string" or string.len(delimiter) <= 0 then
return
end
local start = 1
local t = {}
while true do
local pos ... | fix string_util.new_guid bug 2 | fix string_util.new_guid bug 2
| Lua | mit | Links7094/nwf,Links7094/nwf,elvinzeng/nwf,elvinzeng/nwf |
ead994371d3c0197c0e561422c75081edd53e7c8 | test/config.lua | test/config.lua | local log = require 'log'
box.cfg{
listen = 33013,
wal_dir='.',
snap_dir='.',
wal_mode='none',
}
box.once('initbox', function()
local s1 = box.schema.space.create('test', {id = 513, if_not_exists = true})
local ip = s1:create_index('primary', {type = 'hash', parts = {1, 'NUM'}, if_not_exists = true})
lo... | local log = require 'log'
box.cfg{
listen = 33013,
memtx_dir='.',
wal_mode='none',
}
box.once('initbox', function()
local s1 = box.schema.space.create('test', {id = 513, if_not_exists = true})
local ip = s1:create_index('primary', {type = 'hash', parts = {1, 'unsigned'}, if_not_exists = true})
local iname =... | fixes in test/config.lua for newer tarantool | fixes in test/config.lua for newer tarantool
| Lua | mit | tarantool/tarantool-ruby |
31ee7847496ad590da7c52995e3ffd645586f4a8 | PokePrecSucc.lua | PokePrecSucc.lua | --[[
Navigation bar with previous and next Pokémon in dex order.
This module exports two functions.
One is the "PokePrecSucc", intended to be used within Pokémon pages, that
links the previous and next Pokémon pages.
The other is "subpage", intended to be used in Pokémon subpages to link
corresponding subpages of pre... | --[[
Navigation bar with previous and next Pokémon in dex order.
This module exports two functions.
One is the "PokePrecSucc", intended to be used within Pokémon pages, that
links the previous and next Pokémon pages.
The other is "subpage", intended to be used in Pokémon subpages to link
corresponding subpages of pre... | Fixing the fix of link of PrevNext in Pokémon subpages | Fixing the fix of link of PrevNext in Pokémon subpages
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
55be72df76af41c8b7dbf20f9993a2453318ddac | deps/coro-http.lua | deps/coro-http.lua | --[[lit-meta
name = "creationix/coro-http"
version = "2.1.0"
dependencies = {
"creationix/coro-net@2.1.0",
"luvit/http-codec@2.0.0"
}
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-http.lua"
description = "An coro style http(s) client and server helper."
tags = {"coro", "http"}
l... | --[[lit-meta
name = "creationix/coro-http"
version = "2.1.1"
dependencies = {
"creationix/coro-net@2.1.0",
"luvit/http-codec@2.0.0"
}
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-http.lua"
description = "An coro style http(s) client and server helper."
tags = {"coro", "http"}
l... | Fix coro-http to not hang when reusing sockets | Fix coro-http to not hang when reusing sockets
| Lua | apache-2.0 | zhaozg/lit,squeek502/lit,luvit/lit,james2doyle/lit |
092857f6e1348c89e8774787008771552622db93 | utils/_keys/switcher.lua | utils/_keys/switcher.lua | local module = {}
local switcher = require"hs.window.switcher"
local filter = require"hs.window.filter"
local hotkey = require"hs.hotkey"
local mods = require"hs._asm.extras".mods
-- and either I'm reading window.filter wrong or its broken... well, @lowne does say it's still experimental
-- show hidden window... | local module = {}
local switcher = require"hs.window.switcher"
local filter = require"hs.window.filter"
local hotkey = require"hs.hotkey"
local mods = require"hs._asm.extras".mods
module.switcher = switcher.new(filter.new():setCurrentSpace(true):setDefaultFilter{}, {
selectedThumbnailSize = 288,
thumb... | updating with hidden window fix | updating with hidden window fix
| Lua | mit | asmagill/hammerspoon-config,asmagill/hammerspoon-config,asmagill/hammerspoon-config |
7aa5083d901e11e246988ef9c44022950e477e57 | src/Display.lua | src/Display.lua | --------------------------------------------------------------------------------
-- Set of global helper functions
--
-- This file is just an example that meant to be changed for specific project.
-- It includes useful factory methods to create rigs.
------------------------------------------------------------------... | --------------------------------------------------------------------------------
-- Set of global helper functions
--
-- This file is just an example that meant to be changed for specific project.
-- It includes useful factory methods to create rigs.
------------------------------------------------------------------... | Fix fitLabel method to take into account contentScale | Fix fitLabel method to take into account contentScale
| Lua | mit | Vavius/moai-framework,Vavius/moai-framework |
e2b223b3abec696cd5f31cee3c6df3fb8e1b7d30 | scripts/iPhonePluginLoader.lua | scripts/iPhonePluginLoader.lua | --[[
return {
{
name = "lib name",
unique = "unique name", -- optional
factory = "factory name", -- optional
nodelete = true, -- optional
level = { 1, 2, 5, 6, etc, }, -- optional
},
}
--]]
local function create_plugin (file, list)
local fstr = "void\ndmz_create_plugins (\n" ..
... | --[[
return {
{
name = "lib name",
unique = "unique name", -- optional
factory = "factory name", -- optional
nodelete = true, -- optional
level = { 1, 2, 5, 6, etc, }, -- optional
},
}
--]]
local function create_plugin (file, list)
local fstr = "void\ndmz_create_plugins (\n" ..
... | small but fix | small but fix
| Lua | mit | shillcock/lmk,dmzgroup/lmk |
d4986b45afc9fb5eb75279c1c0222c041b43a35d | kong/cmd/vault.lua | kong/cmd/vault.lua | local kong_global = require "kong.global"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local log = require "kong.cmd.utils.log"
local DB = require "kong.db"
local assert = assert
local error = error
local print = print
local exit = os.exit
local fmt = string.format
local functi... | local kong_global = require "kong.global"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local log = require "kong.cmd.utils.log"
local DB = require "kong.db"
local assert = assert
local error = error
local print = print
local exit = os.exit
local fmt = string.format
local functi... | fix(cli) add support for `-c`/`--conf` option to `kong vault` command | fix(cli) add support for `-c`/`--conf` option to `kong vault` command
### Summary
Adds support for `-c` and `--conf` options to `kong vault` commands.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
c3aa96600b155d05a8a5fa928fb81215508bd17b | window_manager/init.lua | window_manager/init.lua | -- This variable sets how many pixels of empty space should be around the windows
MARGIN = 9
-- The number of pixels between the top of the screen and the top of the grid
TOPGAP = 50
function getWindow()
return hs.window.focusedWindow()
end
function getGrid()
local win = getWindow()
local screen = win:scr... | -- This variable sets how many pixels of empty space should be around the windows
MARGIN = 9
-- The number of pixels between the top of the screen and the top of the grid
TOPGAP = 50
function getActiveWindow()
return hs.window.focusedWindow()
end
function getGrid()
local win = getActiveWindow()
local scre... | fix: next/previous window command inconsistency | fix: next/previous window command inconsistency
The old method of getting the next and previous screen was inconsistent
about the order of the screens. Even if the screen layout remained
consistent, hammerspoon would reverse the next/previous order about
50% of the time after restarting the computer or reconnecting th... | Lua | mit | ConnorChristensen/ExtensionScripts,ConnorChristensen/ExtensionScripts,ConnorChristensen/ExtensionScripts |
9f178ecc09b16d7366bc7dfae46915b7e62e6fd4 | kong/dao/error.lua | kong/dao/error.lua | -- DAOs need more specific error objects, specifying if the error is due
-- to the schema, the database connection, a constraint violation etc, so the
-- caller can take actions based on the error type.
--
-- We will test this object and might create a KongError class too
-- if successful and needed.
--
-- Ideally, tho... | -- DAOs need more specific error objects, specifying if the error is due
-- to the schema, the database connection, a constraint violation etc, so the
-- caller can take actions based on the error type.
--
-- We will test this object and might create a KongError class too
-- if successful and needed.
--
-- Ideally, tho... | fix: comply to resty-cassandra's new errors | fix: comply to resty-cassandra's new errors
| Lua | apache-2.0 | peterayeni/kong,puug/kong,vmercierfr/kong,bbalu/kong,Skyscanner/kong,skynet/kong,ropik/kong,chourobin/kong,ChristopherBiscardi/kong,sbuettner/kong,AnsonSmith/kong,wakermahmud/kong,paritoshmmmec/kong |
5b01af319790fc80a461b79a93a364c1c0ac470c | OS/DiskOS/Programs/rm.lua | OS/DiskOS/Programs/rm.lua | --Remove/delete a specific file
local args = {...} --Get the arguments passed to this program
if #args < 1 or args[1] == "-?" then
printUsage(
"rm <files/directory>","Deletes the file/directory"
)
return
end
local tar = table.concat(args," ") --The path may include whitespaces
local term = require("C://termin... | --Remove/delete a specific file
local args = {...} --Get the arguments passed to this program
if #args < 1 or args[1] == "-?" then
printUsage(
"rm <files/directory>","Deletes the file/directory"
)
return
end
local tar = table.concat(args," ") --The path may include whitespaces
local term = require("C://termin... | Bugfix | Bugfix
| Lua | mit | RamiLego4Game/LIKO-12 |
f8495287fe917cd47aee2d9a19a025c4af02eed0 | Peripherals/FDD/init.lua | Peripherals/FDD/init.lua | local perpath = select(1,...) --The path to the FDD folder
local bit = require("bit")
local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift
return function(config)
local GPUKit = config.GPUKit or error("The FDD peripheral requires the GPUKit")
local RAM = config.RAM or error("The FDD peri... | local perpath = select(1,...) --The path to the FDD folder
local bit = require("bit")
local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift
local function exe(ok,err,...)
if ok then
return err,...
else
return error(err or "NULL")
end
end
return function(config)
local GPUKit =... | Got it to work after a lot of fixes | Got it to work after a lot of fixes
| Lua | mit | RamiLego4Game/LIKO-12 |
166f7b6174251c684df3f30f6a3e4920c637d561 | util/pubsub.lua | util/pubsub.lua | module("pubsub", package.seeall);
local service = {};
local service_mt = { __index = service };
local default_config = {
broadcaster = function () end;
get_affiliation = function () end;
capabilities = {};
};
function new(config)
config = config or {};
return setmetatable({
config = setmetatable(config, { __i... | module("pubsub", package.seeall);
local service = {};
local service_mt = { __index = service };
local default_config = {
broadcaster = function () end;
get_affiliation = function () end;
capabilities = {};
};
function new(config)
config = config or {};
return setmetatable({
config = setmetatable(config, { __i... | util.pubsub: Fix traceback when using autocreate-on-subscribe | util.pubsub: Fix traceback when using autocreate-on-subscribe
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
158341f0d4e3db4eef3d9d97a6637f6eae54a70d | tests/stft.lua | tests/stft.lua | require 'audio'
local signal = require 'signal'
require 'gfx.js'
torch.setdefaulttensortype('torch.FloatTensor')
inp = audio.samplevoice():float()
print(#(inp[1]))
stft = signal.stft(inp[1], 1024, 512, 'hamming')
stft = signal.stft(inp[1], 1024, 512)
stft = signal.stft(inp[1], 1024, 512, 'bartlett')
a=os.clock()
stft... | require 'audio'
require 'image'
local signal = require 'signal'
torch.setdefaulttensortype('torch.FloatTensor')
inp = audio.samplevoice():float():squeeze()
print(#(inp))
stft = signal.stft(inp, 1024, 512, 'hamming')
stft = signal.stft(inp, 1024, 512)
stft = signal.stft(inp, 1024, 512, 'bartlett')
a=os.clock()
stft = ... | fixes for test | fixes for test
| Lua | bsd-3-clause | soumith/torch-signal |
01ab9f469bfacf4d047750bf0e5769238a27876f | LogisticsWagons/wagons/requesterwagon.lua | LogisticsWagons/wagons/requesterwagon.lua | -- passive logistics wagon
local class = require 'middleclass'
RequesterWagon = class('RequesterWagon',ProxyWagon)
function RequesterWagon:initialize(parent,data)
debugLog("RequesterWagon:initialize")
ProxyWagon.initialize(self, parent, data)
self.wagonType = "RequesterWagon"
if(data ~= nil) then
d... | -- passive logistics wagon
local class = require 'middleclass'
RequesterWagon = class('RequesterWagon',ProxyWagon)
function RequesterWagon:initialize(parent,data)
debugLog("RequesterWagon:initialize")
ProxyWagon.initialize(self, parent, data)
self.wagonType = "RequesterWagon"
if(data ~= nil) then
s... | Fixes bug with saving the requester state | Fixes bug with saving the requester state
| Lua | mit | gnzzz/Factorio-Logistics-Wagons |
b18d6cb9c63209ce9923221a17984fa6aef84800 | mod_manifesto/mod_manifesto.lua | mod_manifesto/mod_manifesto.lua | -- mod_manifesto
local timer = require "util.timer";
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local dm = require "util.datamanager";
local time = os.time;
local hosts = prosody.hosts;
local host = module.host;
local host_session = hosts[host];
local incoming_s2s = prosody.incoming... | -- mod_manifesto
local timer = require "util.timer";
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local dm = require "util.datamanager";
local time = os.time;
local hosts = prosody.hosts;
local host = module.host;
local host_session = hosts[host];
local incoming_s2s = prosody.incoming... | mod_manifesto: Fix traceback when user disconnects before the timer (fixes #48) | mod_manifesto: Fix traceback when user disconnects before the timer (fixes #48)
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
945ea854ea2a37f53550e4beabab799210221d31 | src/cosy/lang/data.lua | src/cosy/lang/data.lua | -- Basic data manipulation
-- =======================
--
-- Data in CosyVerif mainly represents formalisms and models, with two
-- requirements:
--
-- * use a memory efficient representation, as big models are sometimes
-- encountered;
-- * provide a user friendly manipulation, as users are allowed to edit
-- model... | -- Basic data manipulation
-- =======================
--
-- Data in CosyVerif mainly represents formalisms and models, with two
-- requirements:
--
-- * use a memory efficient representation, as big models are sometimes
-- encountered;
-- * provide a user friendly manipulation, as users are allowed to edit
-- model... | Fix view reconstruction. | Fix view reconstruction.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
fd8b5945a984f13d189142f4086def68dc35d727 | lua/json/decode/state.lua | lua/json/decode/state.lua | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local setmetatable = setmetatable
local jsonutil = require("json.util")
local assert = assert
local type = type
local next = next
local unpack = unpack
module("json.decode.state")
local state_ops = {}
local... | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local setmetatable = setmetatable
local jsonutil = require("json.util")
local assert = assert
local type = type
local next = next
local unpack = unpack
_ENV = nil
local state_ops = {}
local state_mt = {
__... | decoder: fixes 5.2-strict mode state object | decoder: fixes 5.2-strict mode state object
| Lua | mit | renchunxiao/luajson |
51cb9f4a2f75c6431a2857e1c5c800d05007060e | example/gatedNegationRanking.lua | example/gatedNegationRanking.lua | local cutorch = require "cutorch"
local cunn = require "cunn"
local nn = require "nn"
local nngraph = require "nngraph"
local optim = require "optim"
-- set gated network hyperparameters
local opt = {}
opt.embedSize = 300
opt.gateSize = 300
opt.hiddenSize = 600
opt.jackknifeSize = 10
opt.numEpochs = 1
opt.batchSize = ... | local cutorch = require "cutorch"
local cunn = require "cunn"
local nn = require "nn"
local nngraph = require "nngraph"
local optim = require "optim"
-- set gated network hyperparameters
local opt = {}
opt.embedSize = 300
opt.gateSize = 300
opt.hiddenSize = 600
opt.jackknifeSize = 10
opt.numEpochs = 1
opt.batchSize = ... | Fix io issues in training and prediction. | Fix io issues in training and prediction.
| Lua | mit | douwekiela/nncg-negation |
ab85eafaa6a2d04fbc95c6ea410d0fe804721390 | Wikilib-evos.lua | Wikilib-evos.lua | --[[
Library for Evo/data module use.
--]]
local ev = {}
local tab = require('Wikilib-tables') -- luacheck: no unused
local forms = require('Wikilib-forms')
local multigen = require('Wikilib-multigen')
local evodata = require("Evo-data")
local pokes = require("Poké-data")
--[[
Given a Pokémon's table from E... | --[[
Library for Evo/data module use.
--]]
local ev = {}
local tab = require('Wikilib-tables') -- luacheck: no unused
local forms = require('Wikilib-forms')
local multigen = require('Wikilib-multigen')
local evodata = require("Evo-data")
local pokes = require("Poké-data")
--[[
Given a Pokémon's table from E... | Fixed bug that didn't consider Phione fully evolved | Fixed bug that didn't consider Phione fully evolved
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
aafb9f54fa328ac66cf37e07087b22645979a65b | generator/signalslot.lua | generator/signalslot.lua | module('signalslot', package.seeall)
local print_slot_h = fprint(assert(io.open(module_name.._src..module_name..'_slot.hpp', 'w')))
local print_slot_c = fprint(assert(io.open(module_name.._src..module_name..'_slot.cpp', 'w')))
local signals = {}
local slots = {}
function copy_signals(functions)
for f in pairs(funct... | module('signalslot', package.seeall)
local print_slot_h = fprint(assert(io.open(module_name.._src..module_name..'_slot.hpp', 'w')))
local print_slot_c = fprint(assert(io.open(module_name.._src..module_name..'_slot.cpp', 'w')))
local signals = {}
local slots = {}
function copy_signals(functions)
for f in pairs(funct... | fix generation of slots | fix generation of slots
| Lua | mit | mkottman/lqt,mkottman/lqt |
1fd7e41053816611551eb90d909eec09f39a71e9 | src/cooldown/src/Shared/CooldownBase.lua | src/cooldown/src/Shared/CooldownBase.lua | --- Base object for a cooldown. Provides calculation utilties.
-- @classmod CooldownBase
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local BaseObject = require("BaseObject")
local TimeSyncService = require("TimeSyncService")
local CooldownBase = setmetatable({}, BaseObject)
CooldownB... | --- Base object for a cooldown. Provides calculation utilties.
-- @classmod CooldownBase
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local BaseObject = require("BaseObject")
local TimeSyncService = require("TimeSyncService")
local CooldownBase = setmetatable({}, BaseObject)
CooldownB... | fix: Cooldown can handle a synced clock not being synced | fix: Cooldown can handle a synced clock not being synced
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
c2eae94ab43bf53fed439afffc44a643b3334a1b | demos/transitions/Kim.lua | demos/transitions/Kim.lua | -- Transitions Demo: Kim
--
-- Copyright (c) 2010-16 Bifrost Entertainment AS and Tommy Nguyen
-- Distributed under the MIT License.
-- (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
local Math = require("Math")
local Transition = require("Transition")
Kim = {}
Kim.__index = Kim
functi... | -- Transitions Demo: Kim
--
-- Copyright (c) 2010-16 Bifrost Entertainment AS and Tommy Nguyen
-- Distributed under the MIT License.
-- (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
local Math = require("Math")
local Transition = require("Transition")
Kim = {}
Kim.__index = Kim
functi... | Fixed 'transitions' demo's camera and input handling. | Fixed 'transitions' demo's camera and input handling.
| Lua | mit | tn0502/rainbow,tn0502/rainbow,tn0502/rainbow,tn0502/rainbow,tn0502/rainbow,tn0502/rainbow |
a431f7765fec650d5b8b00f6041c490f563d9c54 | lua/entities/gmod_wire_expression2/core/strfunc.lua | lua/entities/gmod_wire_expression2/core/strfunc.lua | local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | Made calling functions by strings more expensive | Made calling functions by strings more expensive
Made calling functions by strings more expensive to match normal function calls.
Also fixed calling functions with varargs (...)
| Lua | apache-2.0 | mms92/wire,wiremod/wire,sammyt291/wire,immibis/wiremod,notcake/wire,mitterdoo/wire,Grocel/wire,dvdvideo1234/wire,garrysmodlua/wire,plinkopenguin/wiremod,bigdogmat/wire,CaptainPRICE/wire,NezzKryptic/Wire,thegrb93/wire,Python1320/wire,rafradek/wire |
26c45850a83e6956129429550e13bb582e405740 | Module.lua | Module.lua | local Module = torch.class('nn.Module')
function Module:__init()
self.gradInput = torch.Tensor()
self.output = torch.Tensor()
end
function Module:parameters()
if self.weight and self.bias then
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
elseif self.weight then
return {sel... | local Module = torch.class('nn.Module')
function Module:__init()
self.gradInput = torch.Tensor()
self.output = torch.Tensor()
end
function Module:parameters()
if self.weight and self.bias then
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
elseif self.weight then
return {sel... | Fixed getParameters() for CUDA. When did that break? | Fixed getParameters() for CUDA. When did that break?
| Lua | bsd-3-clause | eriche2016/nn,aaiijmrtt/nn,sagarwaghmare69/nn,mlosch/nn,forty-2/nn,zhangxiangxiao/nn,ominux/nn,karpathy/nn,adamlerer/nn,diz-vara/nn,apaszke/nn,lukasc-ch/nn,PierrotLC/nn,rickyHong/nn_lib_torch,hery/nn,nicholas-leonard/nn,colesbury/nn,davidBelanger/nn,caldweln/nn,GregSatre/nn,xianjiec/nn,ivendrov/nn,clementfarabet/nn,vgi... |
5305902f1be0754f58f23d78e7aaab4b8e97f9e6 | plugins/time.lua | plugins/time.lua | local command = 'time <$location*>'
local doc = [[*Utilize os seguite comandos citados abaixo:*
*________________________*
`/horas [`*local*`]` - Para o bot informar que horas são em sua cidade ou local mencionado.]]
local action = function(msg)
local input = msg.text:input()
if not input then
if msg.reply_to_mess... | local command = 'time <$location*>'
local doc = [[```
/time <$location*>
$doc_time*.
```]]
local triggers = {
'^/time[@'..bot.username..']*',
'^/hora[@'..bot.username..']*',
'^/date[@'..bot.username..']*',
'^/data[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text:input()
if not input... | FIX e Update Time | FIX e Update Time | Lua | agpl-3.0 | TiagoDanin/SiD |
ea506f853a4cf03d9fd28cd615b523d441298c07 | src_trunk/resources/realism-system/s_alarm.lua | src_trunk/resources/realism-system/s_alarm.lua | function pickLock(thePlayer)
if(isVehicleLocked(source))then
CarAlarm(source, thePlayer)
end
end
addEventHandler("onVehicleStartEnter", getRootElement(), pickLock)
function CarAlarm(theVehicle, thePlayer)
if ( getVehicleOverrideLights ( theVehicle ) ~= 2 ) then -- if the current state isn't 'force on'
... | function pickLock(thePlayer)
if(isVehicleLocked(source))then
--CarAlarm(source, thePlayer)
setTimer(CarAlarm, 1000, 20, source, thePlayer)
end
end
addEventHandler("onVehicleStartEnter", getRootElement(), pickLock)
function CarAlarm(theVehicle, thePlayer)
if ( getVehicleOverrideLights ( theVehicle ) ~= ... | Fix for car alarms v2 | Fix for car alarms v2
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@506 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
de10433ddf99127e5ef25a73c0b4500072764057 | mod_listusers/mod_listusers.lua | mod_listusers/mod_listusers.lua | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | mod_listusers: fixed banner skipping cycle | mod_listusers: fixed banner skipping cycle
| Lua | mit | cryptotoad/prosody-modules,jkprg/prosody-modules,BurmistrovJ/prosody-modules,vfedoroff/prosody-modules,vince06fr/prosody-modules,jkprg/prosody-modules,mmusial/prosody-modules,syntafin/prosody-modules,softer/prosody-modules,brahmi2/prosody-modules,stephen322/prosody-modules,joewalker/prosody-modules,Craige/prosody-modul... |
05cc92a5bbbf31c2a123e8742d423536c852d673 | mod_seclabels/mod_seclabels.lua | mod_seclabels/mod_seclabels.lua | local st = require "util.stanza";
local xmlns_label = "urn:xmpp:sec-label:0";
local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:2";
local xmlns_label_catalog_old = "urn:xmpp:sec-label:catalog:0"; -- COMPAT
module:add_feature(xmlns_label);
module:add_feature(xmlns_label_catalog);
module:add_feature(xmlns_label_c... | local st = require "util.stanza";
local xmlns_label = "urn:xmpp:sec-label:0";
local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:2";
local xmlns_label_catalog_old = "urn:xmpp:sec-label:catalog:0"; -- COMPAT
module:add_feature(xmlns_label);
module:add_feature(xmlns_label_catalog);
module:add_feature(xmlns_label_c... | mod_seclabels: Fix config reloading | mod_seclabels: Fix config reloading
| Lua | mit | crunchuser/prosody-modules,crunchuser/prosody-modules,amenophis1er/prosody-modules,guilhem/prosody-modules,LanceJenkinZA/prosody-modules,mmusial/prosody-modules,softer/prosody-modules,either1/prosody-modules,NSAKEY/prosody-modules,amenophis1er/prosody-modules,mmusial/prosody-modules,joewalker/prosody-modules,mardraze/p... |
061c867738c8db13604f19f3ee15644ff88814f3 | src/patch/ui/hooks/modsmenu_enablempmenu.lua | src/patch/ui/hooks/modsmenu_enablempmenu.lua | if _mpPatch and _mpPatch.loaded then
_mpPatch.loadElementFromProxy("mppatch_multiplayerproxy", "ModMultiplayerSelectScreen")
Controls.MultiPlayerButton:RegisterCallback(Mouse.eLClick, function()
UIManager:QueuePopup(Controls.ModMultiplayerSelectScreen, PopupPriority.ModMultiplayerSelectScreen)
end)... | if _mpPatch and _mpPatch.loaded then
_mpPatch.loadElementFromProxy("mppatch_multiplayerproxy", "ModMultiplayerSelectScreen")
local function getModMessage(name, title)
local mods = {}
for _, v in ipairs(Modding.GetActivatedMods()) do
if Modding.GetModProperty(v.ID, v.Version, name) ~... | Fix regression in modsmenu. | Fix regression in modsmenu.
| Lua | mit | Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/CivV_Mod2DLC,Lymia/MPPatch,Lymia/MPPatch |
a6c5eba1e685294df1e18c9f3b4e5ef38d136a5b | src_trunk/resources/global/admin_globals.lua | src_trunk/resources/global/admin_globals.lua | function getAdmins()
local players = exports.pool:getPoolElementsByType("player")
local admins = { }
local count = 1
for key, value in ipairs(players) do
local adminLevel = getElementData(value, "adminlevel")
if (adminLevel>0) then
admins[count] = value
count = count + 1
end
end
r... | function getAdmins()
local players = exports.pool:getPoolElementsByType("player")
local admins = { }
local count = 1
for key, value in ipairs(players) do
local adminLevel = getElementData(value, "adminlevel")
if (adminLevel>0) then
admins[count] = value
count = count + 1
end
end
r... | Error fix for isPlayerXAdmin | Error fix for isPlayerXAdmin
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1663 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
7f254a34d8849b5f28711dccb2891569aa60c382 | cli.lua | cli.lua |
eso_addon_MailLooter = eso_addon_MailLooter or {}
local ADDON = eso_addon_MailLooter
local function CommandHandler(text)
if text == "" then
d( ADDON.NAME .. " version " .. ADDON.VERSION )
d( "Commands:" )
d( "debug on|off - turns debug messages on and off" )
d( "reset - reset if it got stuc... |
eso_addon_MailLooter = eso_addon_MailLooter or {}
local ADDON = eso_addon_MailLooter
local function CommandHandler(text)
if text == "" then
d( ADDON.NAME .. " version " .. ADDON.VERSION )
d( "Commands:" )
d( "debug [on/off] - Turns debug messages on and off" )
d( "reset - Reset the maillooter in... | Fixed help formatting. | Fixed help formatting.
| Lua | mit | nilsbrummond/ESO-MailLooter |
24ce25cede25ebf14588b55065869ccc64124176 | helper.lua | helper.lua | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search Script (s)", "Exit (q)"}
function helper.banner()
banner=[[
==============================... | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search Script (s)", "Exit (q)"}
function helper.banner()
banner=[[
==============================... | #1 fixing syntax for if | #1 fixing syntax for if
Signed-off-by: Jacobo Tibaquira <d8d2a0ed36dd5f2e41c721fffbe8af2e7e4fe993@gmail.com>
| Lua | apache-2.0 | JKO/nsearch,JKO/nsearch |
b401588263d3e3e7ae1a5f82abfc83b5b281fd74 | deps/websocket-codec.lua | deps/websocket-codec.lua | exports.name = "creationix/websocket-codec"
exports.version = "1.0.7"
exports.homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"
exports.description = "A codec implementing websocket framing and helpers for handshakeing"
exports.tags = {"http", "websocket", "codec"}
exports.license = "MIT"
e... | exports.name = "creationix/websocket-codec"
exports.version = "1.0.7"
exports.homepage = "https://github.com/luvit/lit/blob/master/deps/websocket-codec.lua"
exports.description = "A codec implementing websocket framing and helpers for handshakeing"
exports.tags = {"http", "websocket", "codec"}
exports.license = "MIT"
e... | Fix length encoding for large websocket frames | Fix length encoding for large websocket frames
| Lua | apache-2.0 | luvit/lit,squeek502/lit,james2doyle/lit,zhaozg/lit |
e76f60b047db2433469ce127054d8be43a06015c | game/scripts/vscripts/heroes/hero_faceless_void/time_lock.lua | game/scripts/vscripts/heroes/hero_faceless_void/time_lock.lua | function TimeLock(keys)
local caster = keys.caster
local target = keys.target
local ability = keys.ability
local skills = {}
local bonus_cooldown = ability:GetLevelSpecialValueFor("bonus_cooldown", ability:GetLevel() - 1)
if not caster:IsIllusion() then
if target:IsRealHero() or target:IsBoss() then
for i = ... | function TimeLock(keys)
local caster = keys.caster
local target = keys.target
local ability = keys.ability
local skills = {}
local bonus_cooldown = ability:GetLevelSpecialValueFor("bonus_cooldown", ability:GetLevel() - 1)
if not caster:IsIllusion() then
if target:IsRealHero() or target:IsBoss() then
for i = ... | Fixed Faceless Void - Time Lock not applied modifier | Fixed Faceless Void - Time Lock not applied modifier
| Lua | mit | ark120202/aabs |
c5bb6ef2ae0e7554306776fbf4746ba086051cd1 | init.lua | init.lua | --
-- init.lua
--
-- This is the initialization file of SSOwat. It is called once at the Nginx
-- server's start.
-- Consequently, all the variables declared (along with libraries and
-- translations) in this file will be *persistent* from one HTTP request to
-- another.
--
-- Remove prepending '@' & trailing 'init.l... | --
-- init.lua
--
-- This is the initialization file of SSOwat. It is called once at the Nginx
-- server's start.
-- Consequently, all the variables declared (along with libraries and
-- translations) in this file will be *persistent* from one HTTP request to
-- another.
--
-- Remove prepending '@' & trailing 'init.l... | [fix] uses a cryptographically secure source of randomness | [fix] uses a cryptographically secure source of randomness
| Lua | agpl-3.0 | Kloadut/SSOwat,YunoHost/SSOwat,Kloadut/SSOwat,YunoHost/SSOwat |
c7f75e4f895312b3774c369371216b55ffb773c9 | init.lua | init.lua | -- Copyright 2015 Boundary, Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to i... | -- Copyright 2015 Boundary, Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to i... | Bug fix call to notEmpty | Bug fix call to notEmpty
Signed-off-by: GabrielNicolasAvellaneda <83a8591a9a34d9745961eaad83d1d871cc3e5445@gmail.com>
| Lua | apache-2.0 | jdgwartney/boundary-plugin-elasticsearch |
d4bf0a4cfe5be047a758ee5ab1989b6e759fe7c7 | loss/treenll.lua | loss/treenll.lua | ------------------------------------------------------------------------
--[[ TreeNLL ]]--
-- Loss subclass
-- Negative Log Likelihood for SoftmaxTrees.
-- Used for maximizing the likelihood of SoftmaxTree Model outputs.
-- SoftmaxTree outputs a column tensor representing the likelihood
-- of each target in the batch. ... | ------------------------------------------------------------------------
--[[ TreeNLL ]]--
-- Loss subclass
-- Negative Log Likelihood for SoftmaxTrees.
-- Used for maximizing the likelihood of SoftmaxTree Model outputs.
-- SoftmaxTree outputs a column tensor representing the log likelihood
-- of each target in the bat... | fixed dp.Dictionary for cuda | fixed dp.Dictionary for cuda
| Lua | bsd-3-clause | jnhwkim/dp,kracwarlock/dp,sagarwaghmare69/dp,fiskio/dp,rickyHong/dptorchLib,eulerreich/dp,nicholas-leonard/dp |
94add70445bd2a692ecde2e5dd5ebdec592edd30 | src/cosy/webclient/main.lua | src/cosy/webclient/main.lua | local location = js.global.location
loader = require (location.origin .. "/lua/cosy.loader")
local function screen (authentication)
local result,err = client.server.filter({
authentication = authentication,
iterator = "return function (yield, store)\
for k in pairs (store.user) do\
yield (store.user... | local location = js.global.location
loader = require (location.origin .. "/lua/cosy.loader")
client = {}
local function screen ()
local value = require "cosy.value"
local result,err = client.server.filter({
iterator = "return function (yield, store)\
for k in pairs (store.user) do\
yield {lat = st... | enhance map, use iterator with position after the fix | enhance map, use iterator with position after the fix
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
c9658bda61e18cdf89336ff9d0b718079ecb406d | HOME/.hammerspoon/init.lua | HOME/.hammerspoon/init.lua | hs.alert.show("Hammerspoon config loaded")
hyper = {"cmd", "alt", "ctrl", "shift"}
-- bind reload at start in case of error later in config
hs.hotkey.bind(hyper, "R", hs.reload)
hs.hotkey.bind(hyper, "Y", hs.toggleConsole)
hs.ipc.cliInstall()
hs.ipc.cliSaveHistory(true)
function inspect(value)
hs.alert.show(hs.ins... | hs.alert.show("Hammerspoon config loaded")
hyper = {"cmd", "alt", "ctrl", "shift"}
-- bind reload at start in case of error later in config
hs.hotkey.bind(hyper, "R", hs.reload)
hs.hotkey.bind(hyper, "Y", hs.toggleConsole)
function inspect(value)
hs.alert.show(hs.inspect(value))
end
-- install cli
arch = io.popen... | Hammerspoon: fix cli install on M1 | Hammerspoon: fix cli install on M1
| Lua | mit | kbd/setup,kbd/setup,kbd/setup,kbd/setup,kbd/setup |
6ee33420a98b12fcd65b047bf56a3a98408bdd70 | convert.lua | convert.lua | -- modules that can be converted to nn seamlessly
local layer_list = {
'SpatialConvolution',
'SpatialCrossMapLRN',
'SpatialFullConvolution',
'SpatialMaxPooling',
'SpatialAveragePooling',
'ReLU',
'Tanh',
'Sigmoid',
'SoftMax',
'LogSoftMax',
'VolumetricConvolution',
'VolumetricMaxPooling',
'Volum... | -- modules that can be converted to nn seamlessly
local layer_list = {
'SpatialConvolution',
'SpatialCrossMapLRN',
'SpatialFullConvolution',
'SpatialMaxPooling',
'SpatialAveragePooling',
'ReLU',
'Tanh',
'Sigmoid',
'SoftMax',
'LogSoftMax',
'VolumetricConvolution',
'VolumetricMaxPooling',
'Volum... | Fixed cudnn -> nn avg-pooling conversion | Fixed cudnn -> nn avg-pooling conversion
cudnn.convert now properly initializes nn.SpatialAveragePooling.count_include_pad
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
6d6aa7be2b61838c2abd5d9309f88da198788371 | src_trunk/resources/social-system/c_player_rightclick.lua | src_trunk/resources/social-system/c_player_rightclick.lua | wRightClick = nil
bAddAsFriend, bFrisk, bRestrain, bCloseMenu = nil
sent = false
ax, ay = nil
player = nil
function clickPlayer(button, state, absX, absY, wx, wy, wz, element)
if (element) and (button="right") then
if (getElementType(element)=="player") and (sent==false) and (element~=getLocalPlayer()) then... | wRightClick = nil
bAddAsFriend, bFrisk, bRestrain, bCloseMenu = nil
sent = false
ax, ay = nil
player = nil
gotClick = false
function clickPlayer(button, state, absX, absY, wx, wy, wz, element)
if (element) and (getElementType(element)=="player") and (button=="right") and (state=="down") and (sent==false) and... | Crash fix for social system | Crash fix for social system
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@249 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
d3a8fd2d166e57b937a2bc6bd2bbda8d372598fa | logapi.lua | logapi.lua | local fs = require( "filesystem" )
local term = require( "term" )
--Container
local logContainerMeta = { }
logContainerMeta.__index = logContainerMeta
function logContainer( inPath ) -- Creates a log container ( sort of a massive list for entries ).
slc = {
path = inPath
entries = { }
}
setmetatable( slc, lo... | local fs = require( "filesystem" )
local term = require( "term" )
--Container
local logContainerMeta = { }
logContainerMeta.__index = logContainerMeta
function logContainer( inPath ) -- Creates a log container ( sort of a massive list for entries ).
slc = {
path = inPath
entries = { }
}
setmetatable( slc, lo... | Another IO Fix | Another IO Fix
| Lua | mit | sirdabalot/OCLOGAPI |
b65d0926588ece10a064e67a98442a4bd64c05f0 | epgp_options.lua | epgp_options.lua | local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local GP = LibStub("LibGearPoints-1.0")
local Debug = LibStub("LibDebug-1.0")
function EPGP:SetupOptions()
local options = {
name = "EPGP",
type = "group",
childGroups = "tab",
handler = self,
args = {
help = {
order = 1,
... | local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local GP = LibStub("LibGearPoints-1.0")
local Debug = LibStub("LibDebug-1.0")
function EPGP:SetupOptions()
local options = {
name = "EPGP",
type = "group",
childGroups = "tab",
handler = self,
args = {
help = {
order = 1,
... | Add support for %t in epgp commands. | Add support for %t in epgp commands.
Fixes issue 543.
| Lua | bsd-3-clause | sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,hayword/tfatf_epgp |
55c11d7a377ab4f77868ebc70630b91868df5979 | SpatialFractionalMaxPooling.lua | SpatialFractionalMaxPooling.lua | local SpatialFractionalMaxPooling, parent =
torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module')
-- Usage:
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH)
-- the output should be the exact size (outH x outW)
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH)
-- the... | local SpatialFractionalMaxPooling, parent =
torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module')
-- Usage:
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH)
-- the output should be the exact size (outH x outW)
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH)
-- the... | Fix problem with nn.SpatialFractionalMaxPooling:clearState() | Fix problem with nn.SpatialFractionalMaxPooling:clearState()
:initSampleBuffer_() was producing an error when called (from :updateOutput()) after calling :clearState(). The randomSamples field was an empty tensor in that case.
Now :clearState() sets indices and randomSamples to nil, so the module is in the same state... | Lua | bsd-3-clause | sagarwaghmare69/nn,diz-vara/nn,kmul00/nn,andreaskoepf/nn,apaszke/nn,colesbury/nn,nicholas-leonard/nn,joeyhng/nn,caldweln/nn,elbamos/nn,jonathantompson/nn,PraveerSINGH/nn,xianjiec/nn,jhjin/nn,eriche2016/nn |
531d9932a46e20fd46a895c004bc949c6eb55185 | core/storagemanager.lua | core/storagemanager.lua |
local error, type = error, type;
local setmetatable = setmetatable;
local config = require "core.configmanager";
local datamanager = require "util.datamanager";
local modulemanager = require "core.modulemanager";
local multitable = require "util.multitable";
local hosts = hosts;
local log = require "util.logger".init... |
local error = error;
local setmetatable = setmetatable;
local config = require "core.configmanager";
local datamanager = require "util.datamanager";
local modulemanager = require "core.modulemanager";
local hosts = hosts;
local log = require "util.logger".init("storagemanager");
local olddm = {}; -- maintain old dat... | storagemanager: Fix syntax error | storagemanager: Fix syntax error
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
ad521bf4802894dbb21c21c3ad34792f0976d9d0 | nyagos.lua | nyagos.lua | print "Nihongo Yet Another GOing Shell"
print "Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG"
-- This is system-lua files which will be updated.
-- When you want to customize, please edit ~\.nyagos
-- Please do not edit this.
local function split(equation)
local pos=string.find(equation,"=",1,true)
i... | print "Nihongo Yet Another GOing Shell"
print "Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG"
-- This is system-lua files which will be updated.
-- When you want to customize, please edit ~\.nyagos
-- Please do not edit this.
local function split(equation)
local pos=string.find(equation,"=",1,true)
i... | Fix: set "PATH+=..." が機能していなかった | Fix: set "PATH+=..." が機能していなかった
| Lua | bsd-3-clause | tsuyoshicho/nyagos,hattya/nyagos,kissthink/nyagos,kissthink/nyagos,zetamatta/nyagos,nocd5/nyagos,kissthink/nyagos,tyochiai/nyagos,hattya/nyagos,hattya/nyagos |
cb2291dc20f37cd771059c8557e3ece6e513b747 | runtime/chooseOutputs.lua | runtime/chooseOutputs.lua | local A = 174;
local B = 175;
local LEFT = 170;
local RIGHT = 171;
local AIR = 0
local TILE = 1
local GOOMBA = 2
nodes = {};
connections = {};
connectionsLitMap = {};
require('NEAT/util/generateNeurons')
require('NEAT/models/Node')
require('NEAT/models/connection')
require('NEAT/config')
--Solve the node recur... | local A = 174;
local B = 175;
local LEFT = 170;
local RIGHT = 171;
local AIR = 0
local TILE = 1
local GOOMBA = 2
connectionsLitMap = {};
require('NEAT/util/generateNeurons')
require('NEAT/models/Node')
require('NEAT/models/connection')
require('NEAT/config')
--Solve the node recursively
function solveNode(node)... | Fixed memory leak | Fixed memory leak
| Lua | mit | joenot443/crAIg,joenot443/crAIg,joenot443/crAIg |
ab4d70bf69949b5695f2467f547e1514791c60ab | tools/premake/app_template.lua | tools/premake/app_template.lua | function add_pmtech_links()
configuration "Debug"
links { "pen_d", "put_d" }
configuration "Release"
links { "pen", "put" }
configuration {}
end
local function add_osx_links()
links
{
"Cocoa.framework",
"OpenGL.framework",
"GameController.framework",
"iconv",
"fmod"
}
add_pmtech_links()
end
... | function add_pmtech_links()
configuration "Debug"
links { "put_d", "pen_d" }
configuration "Release"
links { "put", "pen" }
configuration {}
end
local function add_osx_links()
links
{
"Cocoa.framework",
"OpenGL.framework",
"GameController.framework",
"iconv",
"fmod"
}
add_pmtech_links()
end
... | fix link order for linux | fix link order for linux
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
ec61a3655f73009275fa451a3ae737853dfc9edb | watchlog/watchlogfilejavalog.lua | watchlog/watchlogfilejavalog.lua | local multilineW = require 'watchlog.watchlogfilemultiline'
local util = require 'util.util'
local tableutil = require 'util.tableutil'
local json = require 'rapidjson'
local watchlogfilejavalog = {
---- CONSTANTS ----
---- Core Data ----
---- Temp Data ----
}
setmetatable(watchlogfilejavalog , multilineW... | local multilineW = require 'watchlog.watchlogfilemultiline'
local util = require 'util.util'
local tableutil = require 'util.tableutil'
local json = require 'rapidjson'
local watchlogfilejavalog = {
---- CONSTANTS ----
---- Core Data ----
---- Temp Data ----
}
setmetatable(watchlogfilejavalog , multilineW... | fix javalog的统计错误 | fix javalog的统计错误
| Lua | apache-2.0 | peiliping/logwatch |
948c1fe6023a37e72ab2db1d5b1ad7f4436add3e | applications/luci-app-opkg/luasrc/controller/opkg.lua | applications/luci-app-opkg/luasrc/controller/opkg.lua | -- Copyright 2018 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.opkg", package.seeall)
function index()
entry({"admin", "system", "opkg"}, template("opkg"), _("Software"), 30)
entry({"admin", "system", "opkg", "list"}, call("action_list")).leaf = true
... | -- Copyright 2018 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.opkg", package.seeall)
function index()
entry({"admin", "system", "opkg"}, template("opkg"), _("Software"), 30)
entry({"admin", "system", "opkg", "list"}, call("action_list")).leaf = true
... | luci-app-opkg: support nonstandard list locations | luci-app-opkg: support nonstandard list locations
Fixes: #3287
Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
| Lua | apache-2.0 | hnyman/luci,openwrt/luci,openwrt/luci,lbthomsen/openwrt-luci,rogerpueyo/luci,hnyman/luci,lbthomsen/openwrt-luci,nmav/luci,rogerpueyo/luci,openwrt/luci,hnyman/luci,rogerpueyo/luci,tobiaswaldvogel/luci,nmav/luci,rogerpueyo/luci,openwrt/luci,lbthomsen/openwrt-luci,nmav/luci,hnyman/luci,lbthomsen/openwrt-luci,hnyman/luci,l... |
64cab0d12833209d5a02c4a8aa9c6b4f452acdbc | share/lua/website/ard.lua | share/lua/website/ard.lua | -- libquvi-scripts
-- Copyright (C) 2013 Thomas Weißschuh
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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;... | -- libquvi-scripts
-- Copyright (C) 2013 Thomas Weißschuh
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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;... | FIX: ard.lua: Assign self.script_dir to package.path | FIX: ard.lua: Assign self.script_dir to package.path
Assign the value of the self.script_dir to the package.path so that
the 'quvi/*' modules can be found.
Reported-by: Fabian Homborg <82fdcde710576c960b66532fc81d0508995ec635@gmail.com>
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>... | Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.