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
43955b443e01013802373d482411bffeb916df6e
src/lua/tester.lua
src/lua/tester.lua
-- tester.lua -- Test switch operation by post-processing trace files. -- Copright 2012 Snabb GmbH module("tester",package.seeall) local ffi = require("ffi") local pcap = require("pcap") local C = ffi.C if #arg ~= 1 then print "Usage: tester <pcapfile>" print "" print "Test that the switching behaviour ...
-- tester.lua -- Test switch operation by post-processing trace files. -- Copright 2012 Snabb GmbH module("tester",package.seeall) local ffi = require("ffi") local pcap = require("pcap") local C = ffi.C if #arg ~= 1 then print "Usage: tester <pcapfile>" print "" print "Test that the switching behaviour ...
tester.lua: Fixed bug in multicast flood test.
tester.lua: Fixed bug in multicast flood test.
Lua
apache-2.0
wingo/snabbswitch,snabbco/snabb,aperezdc/snabbswitch,andywingo/snabbswitch,snabbco/snabb,justincormack/snabbswitch,andywingo/snabbswitch,kellabyte/snabbswitch,eugeneia/snabb,aperezdc/snabbswitch,xdel/snabbswitch,dpino/snabbswitch,wingo/snabb,eugeneia/snabb,lukego/snabb,wingo/snabb,wingo/snabb,pavel-odintsov/snabbswitch...
88e72c77015e0d5e218e8e181d642e0b24dadeb5
tests/sample/shellcode-attack.lua
tests/sample/shellcode-attack.lua
require("ipv4") require("tcp") local bindshell = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" .. "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" .. "\x80\xe8\xdc\xff\xff\xff/bin/sh" haka.rule { hooks = { "tcp-up" }, eval = function (self, pkt) if #pkt.paylo...
require("ipv4") require("tcp") local bindshell = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" .. "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" .. "\x80\xe8\xdc\xff\xff\xff/bin/sh" haka.rule { hooks = { "tcp-up" }, eval = function (self, ...
Fix shellcode rule
Fix shellcode rule
Lua
mpl-2.0
nabilbendafi/haka,nabilbendafi/haka,haka-security/haka,LubyRuffy/haka,haka-security/haka,haka-security/haka,LubyRuffy/haka,Wingless-Archangel/haka,nabilbendafi/haka,lcheylus/haka,lcheylus/haka,Wingless-Archangel/haka,lcheylus/haka
137b1d68d842305870c4045bb2791d18142e1aef
modules/textadept/command_entry.lua
modules/textadept/command_entry.lua
-- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE. -- Abbreviated environment and commands from Jay Gould. local M = ui.command_entry --[[ This comment is for LuaDoc. --- -- Textadept's Command Entry. -- -- ## Modes -- -- The command entry supports multiple [modes](#keys.Modes) that have their own...
-- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE. -- Abbreviated environment and commands from Jay Gould. local M = ui.command_entry --[[ This comment is for LuaDoc. --- -- Textadept's Command Entry. -- -- ## Modes -- -- The command entry supports multiple [modes](#keys.Modes) that have their own...
Fixed autocomplete bug in curses; modules/textadept/command_entry.lua
Fixed autocomplete bug in curses; modules/textadept/command_entry.lua
Lua
mit
jozadaquebatista/textadept,jozadaquebatista/textadept
00ff9e09904153f070a912c47ed1a89dfba79dcd
libs/tablesave.lua
libs/tablesave.lua
local function istr(ind) if type(ind) == 'string' then if ind:match('^[a-zA-Z_][a-zA-Z0-9_]*$') then return ind end return '["'..ind:gsub('"', '\\"')..'"]' end return '['..ind..']' end local function tdisplay(t, o, i) i = i or 0 o = o or {} local indent = o.indent or 2 local r = '' ...
local function istr(ind) if type(ind) == 'string' then if ind:match('^[a-zA-Z_][a-zA-Z0-9_]*$') then return ind end return '["'..ind:gsub('"', '\\"'):gsub('\n', '\\n')..'"]' end return '['..ind..']' end local function tdisplay(t, o, i) i = i or 0 o = o or {} local indent = o.indent or 2 ...
fixed tablesave.lua for multiline strings
fixed tablesave.lua for multiline strings
Lua
mit
LazyShpee/discord-egobot
77aa2d73e10f609d469edd9d327c6bbfd5617546
packages/verseindex.lua
packages/verseindex.lua
SILE.require("packages/url") SILE.scratch.tableofverses = {} local orig_href = SILE.Commands["href"] local writeTov = function (_) local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses) local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w") if not tovfile then return SU.error(err...
SILE.require("packages/url") SILE.scratch.tableofverses = {} local orig_href = SILE.Commands["href"] local writeTov = function (_) local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses) local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w") if not tovfile then return SU.error(err...
chore: Temporarily work around SILE bug
chore: Temporarily work around SILE bug
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
3a0ce116cfb766c4377e2cf975773bb808fd2f32
testserver/item/grave.lua
testserver/item/grave.lua
-- Tree Script -- Envi require("base.common") require("content.grave") module("item.grave", package.seeall) -- UPDATE common SET com_script='item.grave' WHERE com_itemid IN (337, 519, 520, 521); GraveListGerman = { "PLACEHOLDER.", }; GraveListEnglish = { "PLACEHOLDER.", }; function LookAtItemIdent(User,Item) ...
-- Tree Script -- Envi require("base.common") require("content.grave") module("item.grave", package.seeall) -- UPDATE common SET com_script='item.grave' WHERE com_itemid IN (337, 519, 520, 521); GraveListGerman = { "PLACEHOLDER.", }; GraveListEnglish = { "PLACEHOLDER.", }; function LookAtItemIdent(User,Item) ...
fixed lookat
fixed lookat
Lua
agpl-3.0
LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content
f4be0fd1b0daa8680fd8215921a970c20dc11f32
Normalize.lua
Normalize.lua
local Normalize, parent = torch.class('nn.Normalize', 'nn.Module') function Normalize:__init(p,eps) parent.__init(self) assert(p,'p-norm not provided') assert(p > 0, p..'-norm not supported') self.p = p self.eps = eps or 1e-10 self._output = torch.Tensor() self._gradInput = torch.Tensor() end function N...
local Normalize, parent = torch.class('nn.Normalize', 'nn.Module') function Normalize:__init(p,eps) parent.__init(self) assert(p,'p-norm not provided') assert(p > 0, p..'-norm not supported') self.p = p self.eps = eps or 1e-10 end function Normalize:updateOutput(input) assert(input:dim() <= 2, 'only 1d la...
Revert "Fix modification of output in nn.Normalize"
Revert "Fix modification of output in nn.Normalize"
Lua
bsd-3-clause
jonathantompson/nn,jhjin/nn,apaszke/nn,xianjiec/nn,joeyhng/nn,clementfarabet/nn,nicholas-leonard/nn,Moodstocks/nn,andreaskoepf/nn,diz-vara/nn,sagarwaghmare69/nn,eulerreich/nn,caldweln/nn,eriche2016/nn,colesbury/nn,witgo/nn,rotmanmi/nn,kmul00/nn,lukasc-ch/nn,elbamos/nn,vgire/nn,mlosch/nn,PraveerSINGH/nn
ab63e24c61e614896df17e0fbb968ae9a29d5a7e
Resistance.lua
Resistance.lua
local Resistance = {}; -- Assume no exp dependence on the resistances; -- IF resistances are NOT constants, then the algorithm should be modified; the Setup function should be used -- for every case that the resistor network will be updated as the updating of the A/C matrix per spin change -- is not very straightforwa...
local Resistance = {}; -- Assume no exp dependence on the resistances; -- IF resistances are NOT constants, then the algorithm should be modified; the Setup function should be used -- for every case that the resistor network will be updated as the updating of the A/C matrix per spin change -- is not very straightforwa...
fixed IndexFroGrain
fixed IndexFroGrain
Lua
mit
jochem-brouwer/VO2_Model,jochem-brouwer/VO2_Model
00f17062969b6a0e1f31224158960fe4b09cd404
Standings.lua
Standings.lua
local T = AceLibrary("Tablet-2.0") local D = AceLibrary("Dewdrop-2.0") EPGP_Standings = EPGP:NewModule("EPGP_Standings", "AceDB-2.0") function EPGP_Standings:ShowStandings() if not T:IsRegistered("EPGP_Standings") then T:Register("EPGP_Standings", "children", function() T:SetTitle("EPGP Standings"); self:...
local T = AceLibrary("Tablet-2.0") local D = AceLibrary("Dewdrop-2.0") EPGP_Standings = EPGP:NewModule("EPGP_Standings") function EPGP_Standings:ShowStandings() if not T:IsRegistered("EPGP_Standings") then T:Register("EPGP_Standings", "children", function() T:SetTitle("EPGP Standings") T:S...
Fix closing tooltip to not leave menu behind. Add hint about EP, GP, PR.
Fix closing tooltip to not leave menu behind. Add hint about EP, GP, PR.
Lua
bsd-3-clause
protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp
9f5aa6f7500ccbad9275519fa6f6bfe960240912
scripts/bricks_auto.lua
scripts/bricks_auto.lua
dofile("ui_utils.inc"); dofile("settings.inc"); dofile("constants.inc"); dofile("screen_reader_common.inc"); dofile("common.inc"); imgThisIs = "ThisIs.png"; imgTake = "Take.png"; imgEverything = "Everything.png"; imtToMake = "toMake.png"; brickNames = { "Bricks", "Clay Bricks", "Firebricks" }; brickImages = { "makeB...
dofile("ui_utils.inc"); dofile("settings.inc"); dofile("constants.inc"); dofile("screen_reader_common.inc"); dofile("common.inc"); imgTake = "Take.png"; imgEverything = "Everything.png"; imgToMake = "toMake.png"; brickNames = { "Bricks", "Clay Bricks", "Firebricks" }; brickImages = { "makeBricks.png", "makeClayBricks....
bricks_auto update
bricks_auto update Fixed the script so it no longer spam clicks clay bricks if the user has Masonary skill.
Lua
mit
DashingStrike/Automato-ATITD,DashingStrike/Automato-ATITD,wzydhek/Automato-ATITD,wzydhek/Automato-ATITD
e64bdf1dc4fe46aa93076260b84dfb0763956647
classes/cabook.lua
classes/cabook.lua
local book = require("classes/book") local plain = require("classes/plain") local cabook = pl.class(book) cabook._name = "cabook" function cabook:_init (options) book._init(self, options) self:loadPackage("color") self:loadPackage("ifattop") self:loadPackage("leaders") self:loadPackage("raiselower") self...
local book = require("classes/book") local plain = require("classes/plain") local cabook = pl.class(book) cabook._name = "cabook" function cabook:_init (options) book._init(self, options) self:loadPackage("color") self:loadPackage("ifattop") self:loadPackage("leaders") self:loadPackage("raiselower") self...
fix(class): Work around classes not being able to stuff content
fix(class): Work around classes not being able to stuff content
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
687966d6ffa242d57b768963da926b0c93afd351
messages/client/messages.lua
messages/client/messages.lua
local messages = { global = { }, client = { } } local screenWidth, screenHeight = guiGetScreenSize( ) local messageWidth, messageHeight = 316, 152 function createMessage( message, messageType, messageGlobalID, hideButton, disableInput ) destroyMessage( messageType ) destroyMessage( nil, nil, messageGlobalID ) loca...
local messages = { global = { }, client = { } } local screenWidth, screenHeight = guiGetScreenSize( ) local messageWidth, messageHeight = 316, 152 function createMessage( message, messageType, messageGlobalID, hideButton, disableInput ) destroyMessage( messageType ) destroyMessage( nil, nil, messageGlobalID ) loca...
messages: fixed cursor issues
messages: fixed cursor issues
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
cbe0a5ceb3a7cbf2125d8ef615199358ca977eab
MMOCoreORB/bin/scripts/commands/burstShot2.lua
MMOCoreORB/bin/scripts/commands/burstShot2.lua
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
[fixed] mantis 4203 carbineer burstshot2 should be cone attack
[fixed] mantis 4203 carbineer burstshot2 should be cone attack Change-Id: Id05553e78975a5b879d6a62f7398ee64b78f5f03
Lua
agpl-3.0
lasko2112/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/legend-of-hondo,lasko2112/legend-of-hondo,lasko2...
6818333e9788463f66227e798a6698d07d775a7f
agents/monitoring/lua/lib/info.lua
agents/monitoring/lua/lib/info.lua
local Object = require('core').Object local JSON = require('json') --[[ Info ]]-- local Info = Object:extend() function Info:initialize() self._s = sigar:new() self._params = {} end function Info:serialize() return { jsonPayload = JSON.stringify(self._params) } end local NilInfo = Info:extend() --[[ CPU...
local Object = require('core').Object local JSON = require('json') --[[ Info ]]-- local Info = Object:extend() function Info:initialize() self._s = sigar:new() self._params = {} end function Info:serialize() return { jsonPayload = JSON.stringify(self._params) } end local NilInfo = Info:extend() --[[ CPU...
fix network info
fix network info
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
d8d4eaf75304462b2e911e426c2dbc8f2569c2fa
Hydra/API/screen.lua
Hydra/API/screen.lua
--- screen:frame_including_dock_and_menu() -> rect --- Returns the screen's rect in absolute coordinates, including the dock and menu. function screen:frame_including_dock_and_menu() local primary_screen = screen.allscreens()[1] local f = self:frame() f.y = primary_screen:frame().h - f.h - f.y return f end ---...
--- screen:frame_including_dock_and_menu() -> rect --- Returns the screen's rect in absolute coordinates, including the dock and menu. function screen:frame_including_dock_and_menu() local primary_screen = screen.allscreens()[1] local f = self:frame() f.y = primary_screen:frame().h - f.h - f.y return f end ---...
Fix screen in direction methods.
Fix screen in direction methods.
Lua
mit
zzamboni/hammerspoon,wvierber/hammerspoon,wsmith323/hammerspoon,heptal/hammerspoon,CommandPost/CommandPost-App,CommandPost/CommandPost-App,knl/hammerspoon,heptal/hammerspoon,Habbie/hammerspoon,emoses/hammerspoon,Hammerspoon/hammerspoon,dopcn/hammerspoon,junkblocker/hammerspoon,wvierber/hammerspoon,Habbie/hammerspoon,kn...
a7d6f88a7f0ffb06d5184d275d23daba15c588f6
scripts/openal.lua
scripts/openal.lua
-- -- Copyright (c) 2012-2020 Daniele Bartolini and individual contributors. -- License: https://github.com/dbartolini/crown/blob/master/LICENSE -- function openal_project(_kind) project "openal" kind (_kind) configuration {} local AL_DIR = (CROWN_DIR .. "3rdparty/openal/") defines { "_LARGE_FILES", ...
-- -- Copyright (c) 2012-2020 Daniele Bartolini and individual contributors. -- License: https://github.com/dbartolini/crown/blob/master/LICENSE -- function openal_project(_kind) project "openal" kind (_kind) configuration {} local AL_DIR = (CROWN_DIR .. "3rdparty/openal/") defines { "_LARGE_FILES", ...
scripts: fix windows build
scripts: fix windows build
Lua
mit
mikymod/crown,mikymod/crown,mikymod/crown,dbartolini/crown,galek/crown,taylor001/crown,taylor001/crown,dbartolini/crown,dbartolini/crown,mikymod/crown,galek/crown,taylor001/crown,galek/crown,galek/crown,taylor001/crown,dbartolini/crown
d4792ac4eb4addf40c6c9fe27f0a810a7582ea0a
PairwiseDistance.lua
PairwiseDistance.lua
local PairwiseDistance, parent = torch.class('nn.PairwiseDistance', 'nn.Module') function PairwiseDistance:__init(p) parent.__init(self) -- state self.gradInput = {torch.Tensor(), torch.Tensor()} self.output = torch.Tensor(1) self.norm=p end function PairwiseDistance:updateOutput(input) if input...
local PairwiseDistance, parent = torch.class('nn.PairwiseDistance', 'nn.Module') function PairwiseDistance:__init(p) parent.__init(self) -- state self.gradInput = {torch.Tensor(), torch.Tensor()} self.output = torch.Tensor(1) self.norm=p end function PairwiseDistance:updateOutput(input) if input...
Fixed PairwiseDistance for odd Lp norms
Fixed PairwiseDistance for odd Lp norms
Lua
bsd-3-clause
Moodstocks/nn,PraveerSINGH/nn,colesbury/nn,davidBelanger/nn,forty-2/nn,jhjin/nn,sagarwaghmare69/nn,karpathy/nn,caldweln/nn,douwekiela/nn,eulerreich/nn,Djabbz/nn,adamlerer/nn,jonathantompson/nn,ominux/nn,lukasc-ch/nn,hery/nn,EnjoyHacking/nn,boknilev/nn,clementfarabet/nn,LinusU/nn,fmassa/nn,rotmanmi/nn,andreaskoepf/nn,el...
81c31b3dea5d7c66f9712a5b8501762be266cc3d
site/api/email.lua
site/api/email.lua
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
switch to socket.mime for unb64 operations
switch to socket.mime for unb64 operations This fixes #384 by changing to a less buggy b64 decoder.
Lua
apache-2.0
quenda/ponymail,jimjag/ponymail,jimjag/ponymail,Humbedooh/ponymail,jimjag/ponymail,quenda/ponymail,Humbedooh/ponymail,quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail
81c91ef8a6251570daeea6cee6bef76d6c390c67
Assets/ToLua/Lua/System/Injection/LuaInjectionStation.lua
Assets/ToLua/Lua/System/Injection/LuaInjectionStation.lua
--[[MIT License Copyright (c) 2018 Jonson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
--[[MIT License Copyright (c) 2018 Jonson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
修正lua环境的函数引用更新出错的BUG
修正lua环境的函数引用更新出错的BUG
Lua
mit
topameng/tolua
7c147adbd288d3cabc68e5d970beb73b42fe0568
control.lua
control.lua
require "util" require "stdlib/log/logger" require "stdlib/gui/gui" require "src/gui" require "src/move" require "src/armor" require "src/test" LOG = Logger.new("MagneticFloor") function print(stuff) game.players[1].print(stuff) end function printBool(stuff) game.players[1].print(tostring(stuff)) end function s...
require "util" require "stdlib/log/logger" require "stdlib/gui/gui" require "src/gui" require "src/move" require "src/armor" require "src/test" LOG = Logger.new("MagneticFloor") function print(stuff) game.players[1].print(stuff) end function printBool(stuff) game.players[1].print(tostring(stuff)) end function s...
fix a crash when armor isn't equipped
fix a crash when armor isn't equipped
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
ff42b5e61dba3516af89dae42b5abe930b844117
test_scripts/Polices/user_consent_of_Policies/116_ATF_Consent_timestamp.lua
test_scripts/Polices/user_consent_of_Policies/116_ATF_Consent_timestamp.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies] SDL must add a timestamp of the consent in a specific format -- -- Description: -- Format of user consent timestamp added to Local PolicyTable. -- 1. Used preconditions: -- Start SDL and i...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies] SDL must add a timestamp of the consent in a specific format -- -- Description: -- Format of user consent timestamp added to Local PolicyTable. -- 1. Used preconditions: -- Start SDL and i...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
f2daf51d17f696bebf6db59a53e26eee579bb5a7
spec/pack_spec.lua
spec/pack_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 test_env.unload_luarocks() local extra_rocks = { "/luasec-0.6-1.rockspec", "/luassert-1.7.0-1.src.rock", "/luasocket-3.0rc1-2.src.rock", "/luasocket-3.0rc1-2.r...
local test_env = require("test/test_environment") local lfs = require("lfs") local run = test_env.run local testing_paths = test_env.testing_paths test_env.unload_luarocks() local extra_rocks = { "/luasec-0.6-1.rockspec", "/luassert-1.7.0-1.src.rock", "/luasocket-3.0rc1-2.src.rock", "/luasocket-3.0rc1-2.r...
Fix test to match new behavior of `pack`.
Fix test to match new behavior of `pack`.
Lua
mit
luarocks/luarocks,xpol/luainstaller,xpol/luarocks,xpol/luainstaller,robooo/luarocks,xpol/luainstaller,xpol/luavm,robooo/luarocks,tarantool/luarocks,robooo/luarocks,xpol/luarocks,robooo/luarocks,xpol/luainstaller,keplerproject/luarocks,keplerproject/luarocks,luarocks/luarocks,xpol/luavm,xpol/luarocks,keplerproject/luaro...
0af71449cbc6b600e54e20400debe7478d3dee93
lib/core/test/measurement/general.lua
lib/core/test/measurement/general.lua
local U = require "togo.utility" local O = require "Quanta.Object" local Measurement = require "Quanta.Measurement" function make_test(text, item_index, value, unit, of, approximation, certain) return { text = text, item_index = item_index, value = value, unit = unit, of = U.optional(of, 0), approximatio...
local U = require "togo.utility" local O = require "Quanta.Object" local Measurement = require "Quanta.Measurement" function make_test(text, item_index, value, unit, of, approximation, certain) return { text = text, item_index = item_index, value = value, unit = unit, of = U.optional(of, 0), approximatio...
lib/core/test/measurement/general.lua: fixed certainty in translation tests.
lib/core/test/measurement/general.lua: fixed certainty in translation tests.
Lua
mit
komiga/quanta,komiga/quanta,komiga/quanta
4d7744c3eb2518f1fbd50d1b57d97cc8d7c24b35
Modules/Events/Promise.lua
Modules/Events/Promise.lua
--- Promises, but without error handling as this screws with stack traces, using Roblox signals -- @classmod Promise -- See: https://promisesaplus.com/ local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Maid = require("Maid") local function _isSignal(value) if typeof(value...
--- Promises, but without error handling as this screws with stack traces, using Roblox signals -- @classmod Promise -- See: https://promisesaplus.com/ local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Maid = require("Maid") local function _isSignal(value) if typeof(value...
Fix :Wait() rejection state
Fix :Wait() rejection state
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
bf51af535c554b9d4d11fe8e7d809bbf774cb9f5
Modules/Events/Promise.lua
Modules/Events/Promise.lua
--- Promises, but without error handling as this screws with stack traces, using Roblox signals -- @module Promise -- @author Quenty local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngi...
--- Promises, but without error handling as this screws with stack traces, using Roblox signals -- @module Promise -- @author Quenty local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngi...
Update promise specification and fix bugs
Update promise specification and fix bugs
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
55cb139f3db006292ef8911a6b2ac3b00960fe0e
model.lua
model.lua
local schema = require("lapis.db.schema") local Model = require("lapis.db.model").Model local quizs = require('quiz.all') local model = {} model.ACTIVE = 1 model.CANCELLED = 2 model.FINISHED = 3 function model.create_schema() local types = schema.types schema.create_table("task", { {"id", types.ser...
local schema = require("lapis.db.schema") local Model = require("lapis.db.model").Model local quizs = require('quiz.all') local model = {} model.ACTIVE = 1 model.CANCELLED = 2 model.FINISHED = 3 function model.create_schema() local types = schema.types schema.create_table("task", { {"id", types.ser...
model: move methods to proper place & other fixs
model: move methods to proper place & other fixs
Lua
mit
starius/kodomoquiz
2055255ea43f5d9f8fa2a5f804f83129a43b4686
model.lua
model.lua
-- NOTE: nothing is atomic for now local redis = require "redis" local bcrypt = require "bcrypt" local redismodel = require "redismodel" -- monkey-patch required to make rocks loading work local lr_fetch = require "luarocks.fetch" local lr_path = require "luarocks.path" local lr_deps = require "luarocks.deps" lr_path...
-- NOTE: nothing is atomic for now local redis = require "redis" local bcrypt = require "bcrypt" local redismodel = require "redismodel" -- monkey-patch required to make rocks loading work local lr_fetch = require "luarocks.fetch" local lr_path = require "luarocks.path" local lr_deps = require "luarocks.deps" lr_path...
fix new module imports
fix new module imports
Lua
mit
catwell/lua-toolbox
0cc0c31db9248acc1d5ac7961e8afd54891e7e2d
zproto.lua
zproto.lua
local engine = require "zprotoparser" local zproto = {} local protocache = {} setmetatable(protocache, {__mode = "v"}) local function create(self) local t = {} setmetatable(t, { __index = self, __gc = function(table) if t.proto then ...
local engine = require "zprotoparser" local zproto = {} local function create(self) local t = {} setmetatable(t, { __index = self, __gc = function(table) if t.proto then engine.free(t.proto) ...
bug fix:protocache
bug fix:protocache
Lua
mit
findstr/zproto,findstr/zproto,findstr/zproto
f7947afa9f0a64b04933fc3a20c70145662b4065
HAentry.lua
HAentry.lua
-- Da usarsi in ((Elenco Pokémon con abilità nascosta disponibile)) local m = {} local txt = require('Wikilib-strings') local multigen = require('Wikilib-multigen') local gens = require('Wikilib-gens') local ms = require('MiniSprite') local sup = require("Sup-data") local pokes = require("Poké-data") local abils = req...
-- Da usarsi in ((Elenco Pokémon con abilità nascosta disponibile)) local m = {} local txt = require('Wikilib-strings') local multigen = require('Wikilib-multigen') local gens = require('Wikilib-gens') local ms = require('MiniSprite') local sup = require("Sup-data") local pokes = require("Poké-data") local abils = req...
Fixes to HAentry
Fixes to HAentry
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
ac7c5e0268f5118b0defba7fb3a4c1ab2be5d6c1
src/program/top/top.lua
src/program/top/top.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local shm = require("core.shm") local counter = require("core.counter") local S = require("syscall") local histogram = require("core.his...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local shm = require("core.shm") local counter = require("core.counter") local S = require("syscall") local histogram = require("core.his...
top: fix bug where counters were redundantly reopened
top: fix bug where counters were redundantly reopened The formulation that was supposed to re-open counters on configuration changes actually triggered re-opening on every polling.
Lua
apache-2.0
Igalia/snabb,eugeneia/snabb,Igalia/snabbswitch,dpino/snabb,Igalia/snabb,snabbco/snabb,eugeneia/snabbswitch,Igalia/snabb,dpino/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,alexandergall/snabbswitch,dpino/snabb,snabbco/snabb,eugeneia/snabb,SnabbCo/snabbswitch,eugeneia/snabbswitch,Igalia/snabbswitch,Igalia/snabb,dp...
cc6799235edbc0690159ffa24ceacf492a8281af
agents/monitoring/tests/net/init.lua
agents/monitoring/tests/net/init.lua
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
Change the net test, test_reconnects, to skip itself as it uses a test_server_fixture_blocking that calls a SIGUSR1. Windows can't SIGUSR1, see: http://docs.python.org/2/library/signal.html#signal.signal We'll need a Windows specific way of emulating the SIGUSR1 functionality in the Agent.
Change the net test, test_reconnects, to skip itself as it uses a test_server_fixture_blocking that calls a SIGUSR1. Windows can't SIGUSR1, see: http://docs.python.org/2/library/signal.html#signal.signal We'll need a Windows specific way of emulating the SIGUSR1 functionality in the Agent.
Lua
apache-2.0
cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-mo...
c469e737775a814a1fa5f9de40530a65ac161b2d
core/sile.lua
core/sile.lua
SILE = {} SILE.version = "0.9.0" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} std = require("std") SILE.documentState = std.object {}; SILE.scratch = {}; SILE.length = require("core/length") require("core/parserbits") require("core/measuremen...
SILE = {} SILE.version = "0.9.0" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} std = require("std") SILE.documentState = std.object {}; SILE.scratch = {}; SILE.length = require("core/length") require("core/parserbits") require("core/measuremen...
Fix the REPL. It’s really, really useful to have a working one.
Fix the REPL. It’s really, really useful to have a working one.
Lua
mit
WAKAMAZU/sile_fe,simoncozens/sile,neofob/sile,anthrotype/sile,WAKAMAZU/sile_fe,shirat74/sile,neofob/sile,WAKAMAZU/sile_fe,Nathan22Miles/sile,simoncozens/sile,alerque/sile,neofob/sile,anthrotype/sile,shirat74/sile,anthrotype/sile,Nathan22Miles/sile,anthrotype/sile,WAKAMAZU/sile_fe,Nathan22Miles/sile,Nathan22Miles/sile,s...
190da2114afc7a3d4812ed988b86ccd2dc853a93
SVUI_!Core/system/_reports/azerite.lua
SVUI_!Core/system/_reports/azerite.lua
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS #################################################...
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS #################################################...
Azerite Reload Fix
Azerite Reload Fix
Lua
mit
FailcoderAddons/supervillain-ui
15a6e42e692e1a3b72b087d98b1b1518f1bee799
share/playlist/youtube.lua
share/playlist/youtube.lua
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Free Sof...
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Free Sof...
FIX: playlist/youtube.lua: ID pattern
FIX: playlist/youtube.lua: ID pattern Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts
e578c2db7c8a93fd1ac6999b9ba6f1b5c3a74406
xmake/tools/ml.lua
xmake/tools/ml.lua
--!The Make-like Build Utility based on Lua -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
--!The Make-like Build Utility based on Lua -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is di...
fix ml assember tool
fix ml assember tool
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake
71316cc3949fb057ba63f5f78e8bbf75323f361d
bin/luvit-config.lua
bin/luvit-config.lua
#!/usr/bin/env luvit --[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
#!/usr/bin/env luvit --[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
Fix luvit-config for the recent uv->uv_native API change
Fix luvit-config for the recent uv->uv_native API change
Lua
apache-2.0
boundary/luvit,DBarney/luvit,zhaozg/luvit,kaustavha/luvit,DBarney/luvit,kaustavha/luvit,connectFree/lev,boundary/luvit,sousoux/luvit,luvit/luvit,AndrewTsao/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,sousoux/luvit,AndrewTsao/luvit,rjeli/luvit,sousoux/luvit,boundary/luvit,AndrewTsao/luvit,...
92fa8584fa62e12e4df579c2d16ef9d11c1e13b5
libs/core/luasrc/model/network.lua
libs/core/luasrc/model/network.lua
--[[ LuCI - Network model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
--[[ LuCI - Network model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
libs/core: luci.model.network: implement contains_inteface(), fix bugs
libs/core: luci.model.network: implement contains_inteface(), fix bugs git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5379 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
a8c807873bf151fff62a5f034087c30a30160d8a
vi_mode_search.lua
vi_mode_search.lua
-- Handle the vim search emulation -- Modeled on textadept's command_entry.lua local M = {} M.search_hl_indic = _SCINTILLA.next_indic_number() local function set_colours() buffer.indic_fore[M.search_hl_indic] = 0xFF0000 buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX buffer.ind...
-- Handle the vim search emulation -- Modeled on textadept's command_entry.lua local M = {} M.search_hl_indic = _SCINTILLA.next_indic_number() local function set_colours() buffer.indic_fore[M.search_hl_indic] = 0xFF0000 buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX buffer.ind...
Fix the search mode to use the updated command entry.
Fix the search mode to use the updated command entry.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
675c659d2cfc3a6ba8c282cbef28ac470208986f
Quadtastic/Text.lua
Quadtastic/Text.lua
local Text = {} local unpack = unpack or table.unpack Text.min_width = function(state, text) return state.style.font and state.style.font:getWidth(text) end -- Returns a table of lines, none of which exceed the given width. -- Returns a table with the original text if width is 0 or nil. function Text.break_at(stat...
local Text = {} local unpack = unpack or table.unpack Text.min_width = function(state, text) return state.style.font and state.style.font:getWidth(text) end -- Returns a table of lines, none of which exceed the given width. -- Returns a table with the original text if width is 0 or nil. function Text.break_at(stat...
Fix issue in line splitting that would concatenate words with wrong separator
Fix issue in line splitting that would concatenate words with wrong separator
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
73a6b69bfeab7f64cddcea3f4990af6d253a9281
kong/cmd/utils/serf_signals.lua
kong/cmd/utils/serf_signals.lua
-- Enhanced implementation of previous "services.serf.lua" module, -- no change in actual logic, only decoupled from the events features -- which now live in kong.serf local pl_stringx = require "pl.stringx" local pl_utils = require "pl.utils" local pl_file = require "pl.file" local Serf = require "kong.serf" local ki...
-- Enhanced implementation of previous "services.serf.lua" module, -- no change in actual logic, only decoupled from the events features -- which now live in kong.serf local pl_stringx = require "pl.stringx" local pl_utils = require "pl.utils" local pl_file = require "pl.file" local Serf = require "kong.serf" local ki...
fix(serf) more logging
fix(serf) more logging
Lua
apache-2.0
ccyphers/kong,Vermeille/kong,jebenexer/kong,icyxp/kong,shiprabehera/kong,Kong/kong,salazar/kong,beauli/kong,Kong/kong,jerizm/kong,li-wl/kong,Mashape/kong,Kong/kong,akh00/kong
e2f36deda8d6363409c7bb560d39ec0a72663307
src/tools/gcc.lua
src/tools/gcc.lua
-- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- premake.tools.gcc = {} local gcc = premake.tools.gcc local project = premake.project local config = premake.config -- -- Returns list of C preprocessor flags for a configuration. -- ...
-- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- premake.tools.gcc = {} local gcc = premake.tools.gcc local project = premake.project local config = premake.config -- -- Returns list of C preprocessor flags for a configuration. -- ...
Fix incorrect whitespace
Fix incorrect whitespace
Lua
bsd-3-clause
prapin/premake-core,dcourtois/premake-core,tvandijck/premake-core,Yhgenomics/premake-core,prapin/premake-core,lizh06/premake-core,Tiger66639/premake-core,dcourtois/premake-core,saberhawk/premake-core,sleepingwit/premake-core,resetnow/premake-core,Zefiros-Software/premake-core,prapin/premake-core,starkos/premake-core,ma...
5a385c2d72d6f79d694da29c289757206dbf643c
premake.lua
premake.lua
-- TODO: Because there are a few remaining things ... -- 1. x86/x64 switching -- 2. clean this file up because I'm sure it could be organized better -- 3. consider maybe switching to CMake because of the ugly hack below -- -- NOTE: I am intentionally leaving out a "windows+gmake" configuration -- as tryi...
-- TODO: Because there are a few remaining things ... -- 1. x86/x64 switching -- 2. clean this file up because I'm sure it could be organized better -- 3. consider maybe switching to CMake because of the ugly hack below -- -- NOTE: I am intentionally leaving out a "windows+gmake" configuration -- as tryi...
Update premake.lua
Update premake.lua Fixed windows build to use fbx sdk 2014
Lua
apache-2.0
lvlonggame/fbx-conv,xoppa/fbx-conv,arisecbf/fbx-conv,cocos2d-x/fbx-conv,lvlonggame/fbx-conv,davidedmonds/fbx-conv,iichenbf/fbx-conv,cocos2d-x/fbx-conv,xoppa/fbx-conv,reduz/fbx-conv,arisecbf/fbx-conv,reduz/fbx-conv,super626/fbx-conv,Maxwolf/Multimap.FBXConv,lvlonggame/fbx-conv,davidedmonds/fbx-conv,super626/fbx-conv,and...
21f560eabcc1b1fe810965d551b7dec6086ac2af
src/patch/ui/lib/mppatch_uiutils.lua
src/patch/ui/lib/mppatch_uiutils.lua
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
Fix hookUpdate.
Fix hookUpdate.
Lua
mit
Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC
04e23afe7ccc5b4e242585f5fbe6731741c5301b
Linear.lua
Linear.lua
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize) parent.__init(self) self.weight = torch.Tensor(outputSize, inputSize) self.bias = torch.Tensor(outputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) self.gradBias = torch.Tensor(output...
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize) parent.__init(self) self.weight = torch.Tensor(outputSize, inputSize) self.bias = torch.Tensor(outputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) self.gradBias = torch.Tensor(output...
linear blocking fix
linear blocking fix
Lua
bsd-3-clause
ominux/nn,elbamos/nn,xianjiec/nn,lukasc-ch/nn,apaszke/nn,mys007/nn,clementfarabet/nn,kmul00/nn,abeschneider/nn,GregSatre/nn,szagoruyko/nn,vgire/nn,Jeffyrao/nn,lvdmaaten/nn,jonathantompson/nn,rickyHong/nn_lib_torch,hughperkins/nn,noa/nn,ivendrov/nn,jzbontar/nn,bartvm/nn,forty-2/nn,aaiijmrtt/nn,sbodenstein/nn,diz-vara/nn...
270bddb309c1a935c1da0761d4d2a21161fed9d9
src/program/lwaftr/query/query.lua
src/program/lwaftr/query/query.lua
module(..., package.seeall) local engine = require("core.app") local counter = require("core.counter") local lib = require("core.lib") local shm = require("core.shm") local data = require("lib.yang.data") local schema = require("lib.yang.schema") local state = require("lib.yang.state") local counters = require("progra...
module(..., package.seeall) local S = require("syscall") local engine = require("core.app") local counter = require("core.counter") local lib = require("core.lib") local shm = require("core.shm") local data = require("lib.yang.data") local schema = require("lib.yang.schema") local state = require("lib.yang.state") loc...
Fix "snabb lwaftr query"
Fix "snabb lwaftr query" Once "snabbvmx lwaftr" has migrated to ptree and friends, this tool can go away and be replaced by "snabb config get-state"; until then, it's still useful.
Lua
apache-2.0
alexandergall/snabbswitch,Igalia/snabb,Igalia/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabb,snabbco/snabb,Igalia/snabb,Igalia/snabb,SnabbCo/snabbswitch,snabbco/snabb,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,alexandergall/snabbswitch,Igalia/snabb,SnabbCo/sna...
4da34dfd20314b183b9012b781b85390abe19878
modules/coro-channel.lua
modules/coro-channel.lua
exports.name = "creationix/coro-channel" exports.version = "1.0.1" -- Given a raw uv_stream_t userdara, return coro-friendly read/write functions. -- Given a raw uv_stream_t userdara, return coro-friendly read/write functions. function exports.wrapStream(socket) local paused = true local queue = {} local waiting...
exports.name = "creationix/coro-channel" exports.version = "1.0.2" -- Given a raw uv_stream_t userdara, return coro-friendly read/write functions. -- Given a raw uv_stream_t userdara, return coro-friendly read/write functions. function exports.wrapStream(socket) local paused = true local queue = {} local waiting...
Import channel fix from rye
Import channel fix from rye
Lua
apache-2.0
zhaozg/lit,DBarney/lit,squeek502/lit,james2doyle/lit,kaustavha/lit,lduboeuf/lit,1yvT0s/lit,luvit/lit,kidaa/lit
98126463abb81e2d9e5c858b516e4a1eb0f6669a
lib/gsmake/gsmake/repo.lua
lib/gsmake/gsmake/repo.lua
local fs = require "lemoon.fs" local class = require "lemoon.class" local filepath = require "lemoon.filepath" local sqlite3 = require "lemoon.sqlite3" local module = {} local sqlexec = function(db,sql) local id, err = db:exec(sql) if err ~= nil then throw("%s\n\t%s",sql,err...
local fs = require "lemoon.fs" local throw = require "lemoon.throw" local class = require "lemoon.class" local filepath = require "lemoon.filepath" local sqlite3 = require "lemoon.sqlite3" local module = {} local sqlexec = function(db,sql) local id, err = db:exec(sql) if err ~= ...
fix bug
fix bug
Lua
mit
gsmake/gsmake,gsmake/gsmake
93d1098886f08e7512afacadcd5e830c5e8a2d2b
aspects/nvim/files/.config/nvim/lua/wincent/vim/map.lua
aspects/nvim/files/.config/nvim/lua/wincent/vim/map.lua
wincent.g.map_callbacks = {} local callback_index = 0 -- TODO: For completeness, should have unmap() too, and other variants -- as they arise (nunmap() etc); but for now just going with a "dispose" -- function as return value. local map = function (mode, lhs, rhs, opts) opts = opts or {} local rhs_type = type(rh...
wincent.g.map_callbacks = {} -- Used as tie-breaker in event that multiple registrations happen for same file -- + line. local callback_index = 0 local config_prefix = vim.env.HOME .. '/.config/nvim/' -- TODO: For completeness, should have unmap() too, and other variants -- as they arise (nunmap() etc); but for now ...
feat(nvim): improve introspectability of anonymous Lua callbacks
feat(nvim): improve introspectability of anonymous Lua callbacks Starting with mappings, but I'll apply this to the other places we use anonymous functions. Before, running `:nmap j` would print: ``` n j * v:lua.wincent.g.map_callbacks._13() ``` Now, it prints: ``` n j * v:lua.wincent.g.map_c...
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
775538730f8fc6204bed4492bc32839a8e290e0f
modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua
modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = ...
modules/admin-full: fix dnsmasq page
modules/admin-full: fix dnsmasq page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5462 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
b8721ab0bfe156040c881d9f1227183634c5d9d5
modules/atf/util.lua
modules/atf/util.lua
local utils = require("atf.stdlib.argument_parser") config = require('config') xmlLogger = require("logger") local module = { } local script_files = {} RequiredArgument = utils.RequiredArgument OptionalArgument = utils.OptionalArgument NoArgument = utils.NoArgument local function dump(o) if type(o) == 'tabl...
local utils = require("atf.stdlib.argument_parser") config = require('config') xmlLogger = require("logger") local module = { } local script_files = {} RequiredArgument = utils.RequiredArgument OptionalArgument = utils.OptionalArgument NoArgument = utils.NoArgument local function dump(o) if type(o) == 'tabl...
Bug fix: update fix for APPLINK-13288
Bug fix: update fix for APPLINK-13288
Lua
bsd-3-clause
aderiabin/sdl_atf,aderiabin/sdl_atf,aderiabin/sdl_atf
79f2c3eb64e8d5b4475651a35fdb67e32a30b166
game/dota_addons/trap_wars/scripts/vscripts/ability_scripts/barricade_setup.lua
game/dota_addons/trap_wars/scripts/vscripts/ability_scripts/barricade_setup.lua
function OnCreated(keys) Timers:CreateTimer(1/30, function() local tilesize = GameRules.TileSize or 128 local e1p = keys.caster:GetAbsOrigin() local offset = Vector(0, 0, 60) -- offset for the fence posts -- add the gridnav blocker local blocker = SpawnEntityFromTableSynchro...
function OnCreated(keys) Timers:CreateTimer(1/30, function() local tilesize = GameRules.TileSize or 128 --local caster_pos = keys.caster:GetAbsOrigin() local caster_pos = GameRules.GameMode:Get2DGridCenter(keys.caster:GetAbsOrigin()) local offset = Vector(0, 0, 60) -- offset for the ...
Reworked barricade fencing to include diagonals, and fixed some bugs with fencing being created before the posts were in the right position.
Reworked barricade fencing to include diagonals, and fixed some bugs with fencing being created before the posts were in the right position.
Lua
mit
vyrus714/Trap-Wars
8ab8c6e837b112a3c4b4fa939aa5a7ec8e845b7a
wyx/component/property.lua
wyx/component/property.lua
local property = {} local warning = warning local depths = require 'wyx.system.renderDepths' -- check if a given property is valid local isproperty = function(prop) return property[prop] ~= nil end -- get a valid property name local getcache = {} local get = function(prop) local ret = getcache[prop] if ret == nil...
local property = {} local warning = warning local depths = require 'wyx.system.renderDepths' -- check if a given property is valid local isproperty = function(prop) return property[prop] ~= nil end -- get a valid property name local getcache = {} local get = function(prop) local ret = getcache[prop] if ret == nil...
fix property warning
fix property warning
Lua
mit
scottcs/wyx
6d5c09660d96d1bf0bdeb71746c0cdca7c55bb73
src/lua/command/params.lua
src/lua/command/params.lua
------------ -- params -- params class in commands -- classmod: params -- author: AitorATuin -- license: MIT local util = require 'command.util' -- class table local Params = {} Params.__index = Params local function get_paramst_mt(paramst) local function add_index(t, field, idx) local tt = (t[field] or {}) ...
------------ -- params -- params class in commands -- classmod: params -- author: AitorATuin -- license: MIT local util = require 'command.util' -- class table local Params = {} Params.__index = Params local function get_paramst_mt(paramst) local function add_index(t, field, idx) local tt = (t[field] or {}) ...
Fix __pow/__add metamethods
Fix __pow/__add metamethods
Lua
mit
AitorATuin/luacmd
eb6a9b7f18f9222d5b6bcb45d9ed125307ef747e
cv/videoio/init.lua
cv/videoio/init.lua
local cv = require 'cv._env' local ffi = require 'ffi' local C = ffi.load(cv.libPath('videoio')) --- ***************** Classes ***************** require 'cv.Classes' -- VideoCapture ffi.cdef[[ struct PtrWrapper VideoCapture_ctor_default(); struct PtrWrapper VideoCapture_ctor_device(int device); struct PtrWrapper...
local cv = require 'cv._env' local ffi = require 'ffi' local C = ffi.load(cv.libPath('videoio')) --- ***************** Classes ***************** require 'cv.Classes' -- VideoCapture ffi.cdef[[ struct PtrWrapper VideoCapture_ctor_default(); struct PtrWrapper VideoCapture_ctor_device(int device); struct PtrWrapper...
fixed VideoWriter:fourcc() and added wrap_tensor() to VideoWriter:write()
fixed VideoWriter:fourcc() and added wrap_tensor() to VideoWriter:write()
Lua
mit
VisionLabs/torch-opencv
ccfc8d33cbd80807a3980304b0a0151af2318909
xmake/core/sandbox/modules/import/core/project/project.lua
xmake/core/sandbox/modules/import/core/project/project.lua
--!A cross-platform build utility based on Lua -- -- 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...
--!A cross-platform build utility based on Lua -- -- 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...
fix check options
fix check options
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
33fa5e21e7b24a60a7d1871bcaecb336de674a43
plugins/mod_time.lua
plugins/mod_time.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local datetime = require "util.datetime".datetime; local legacy = req...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local datetime = require "util.datetime".datetime; local legacy = requi...
mod_time: Updated to use events (which also fixes a few minor issues).
mod_time: Updated to use events (which also fixes a few minor issues).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
dde3ae9155ef1fdb7bedd33af68df7509da71e6a
Config.lua
Config.lua
local mod = EPGP:NewModule("EPGP_Config", "AceDB-2.0", "AceEvent-2.0") mod:RegisterDB("EPGP_Config_DB") mod:RegisterDefaults("profile", { data = { }, detached_data = { }, }) local T = AceLibrary("Tablet-2.0") local D = AceLibrary("Dewdrop-2.0") local C = AceLibrary("Crayon-2.0") local BC = AceLibrary("Babble-Cla...
local mod = EPGP:NewModule("EPGP_Config", "AceDB-2.0", "AceEvent-2.0") mod:RegisterDB("EPGP_Config_DB") mod:RegisterDefaults("profile", { data = { }, detached_data = { }, }) local T = AceLibrary("Tablet-2.0") local D = AceLibrary("Dewdrop-2.0") local C = AceLibrary("Crayon-2.0") local BC = AceLibrary("Babble-Cla...
Fix for issue 75. Invalid alts will now longer cause an error.
Fix for issue 75. Invalid alts will now longer cause an error.
Lua
bsd-3-clause
hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded
8c1189fb834e5335ccc6509f04e583bc9cf0323b
test_scripts/Polices/build_options/ATF_PolicyManager_changes_status_to_UPDATING_PROPRIETARY.lua
test_scripts/Polices/build_options/ATF_PolicyManager_changes_status_to_UPDATING_PROPRIETARY.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] PoliciesManager changes status to "UPDATING" -- [HMI API] OnStatusUpdate -- -- Description: -- SDL is built with "-DEXTENDED_POLICY: PROPRIETARY" flag -- PoliciesManager must chan...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] PoliciesManager changes status to "UPDATING" -- [HMI API] OnStatusUpdate -- -- Description: -- SDL is built with "-DEXTENDED_POLICY: PROPRIETARY" flag -- PoliciesManager must chan...
Fix after clarifications
Fix after clarifications
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
72ba8a05929a692d3aeced0c7dc1379b56e723e4
action.lua
action.lua
function on_msg_receive (msg) msg.text = string.lower(msg.text) if msg.out then return end if (msg.text=='ping') then send_msg (msg.from.print_name, 'pong', ok_cb, false) elseif (msg.text=='sitealert mostra') then cmd = 'python3 /home/pi/SiteAlert-python/SiteAlert.py -se', temp send_msg(msg.from.pri...
function on_msg_receive (msg) msg.text = msg.text:gsub("^%l", string.lower) if msg.out then return end if (msg.text=='ping') then send_msg (msg.from.print_name, 'pong', ok_cb, false) elseif (msg.text=='mostra') then cmd = 'python3 /home/pi/SiteAlert-python/SiteAlert.py -se', temp send_msg(msg.from.p...
Fixed lua script
Fixed lua script
Lua
bsd-2-clause
ilteoood/SiteAlert-Python
27994745f79845a32f4f6ba7882210239d7874c2
assets/scripts/bots/workbot/WorkBot.lua
assets/scripts/bots/workbot/WorkBot.lua
-- WorkBot class 'WorkBot' (Bot) local round = require 'round' function WorkBot:__init(gameGrid, homeCoord) Bot.__init(self) LuaDebug.Log('WorkBot:__init() called!') self._gameGrid = gameGrid self._homeCoord = homeCoord self._state = Bot.WaitingForJob self._job = nil self._coord = homeCoo...
-- WorkBot class 'WorkBot' (Bot) local round = require 'round' function WorkBot:__init(gameGrid, homeCoord) Bot.__init(self) LuaDebug.Log('WorkBot:__init() called!') self._gameGrid = gameGrid self._homeCoord = homeCoord self._state = Bot.WaitingForJob self._job = nil self._coord = homeCoo...
Fixed regression where bots would not return home when all jobs were finished.
Fixed regression where bots would not return home when all jobs were finished.
Lua
mit
NoxHarmonium/spacestationkeeper,NoxHarmonium/spacestationkeeper
4e94a75b4193e004f50d7e8fe2808fb8ebb2375f
Reshape.lua
Reshape.lua
local Reshape, parent = torch.class('nn.Reshape', 'nn.Module') function Reshape:__init(...) parent.__init(self) self.size = torch.LongStorage() self.batchsize = torch.LongStorage() local n = select('#', ...) if n == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then self.size:resize(...
local Reshape, parent = torch.class('nn.Reshape', 'nn.Module') function Reshape:__init(...) parent.__init(self) local arg = {...} self.size = torch.LongStorage() self.batchsize = torch.LongStorage() local n = #arg if n == 1 and torch.typename(arg[1]) == 'torch.LongStorage' then self.size:resiz...
bug fix + cleaner handling of variable arguments (...)
bug fix + cleaner handling of variable arguments (...)
Lua
bsd-3-clause
mys007/nn,noa/nn,ominux/nn,xianjiec/nn,abeschneider/nn,EnjoyHacking/nn,szagoruyko/nn,eriche2016/nn,Aysegul/nn,apaszke/nn,davidBelanger/nn,sagarwaghmare69/nn,bartvm/nn,joeyhng/nn,jhjin/nn,diz-vara/nn,colesbury/nn,zchengquan/nn,Jeffyrao/nn,clementfarabet/nn,PraveerSINGH/nn,LinusU/nn,fmassa/nn,ivendrov/nn,forty-2/nn,witgo...
604b4ad98a2a1ed5b31595d5bfbd0a6cab5d4748
pud/component/ControllerComponent.lua
pud/component/ControllerComponent.lua
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local CommandEvent = getClass 'pud.event.CommandEvent' local ConsoleEvent = getClass 'pud.event.ConsoleEvent' local WaitCommand = getClass 'pud.command.WaitCommand' local MoveCommand = getClass 'pud.command.MoveCommand' local At...
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local CommandEvent = getClass 'pud.event.CommandEvent' local ConsoleEvent = getClass 'pud.event.ConsoleEvent' local WaitCommand = getClass 'pud.command.WaitCommand' local MoveCommand = getClass 'pud.command.MoveCommand' local At...
fix pickup to check position
fix pickup to check position
Lua
mit
scottcs/wyx
a7e606b85c833379a6a970a875a712ad2edd09ac
client.lua
client.lua
-------------------------------------------------------------------------config REMOTE = false -- whether the script is being run remotely or locally DIVIDER_POS = 15 -- the divider between users and chat monitor = peripheral.wrap("left") monitor.clear() monitor.setCursorPos(1,1) --os.loadAPI("json") ---------...
-------------------------------------------------------------------------config REMOTE = false -- whether the script is being run remotely or locally DIVIDER_POS = 15 -- the divider between users and chat monitor = peripheral.wrap("left") monitor.clear() monitor.setCursorPos(1,1) os.loadAPI("json") -----------...
Fixed the client to work out of the box
Fixed the client to work out of the box
Lua
mit
tmerr/computercraftIRC
d4530b545bcc6066683841dcf04ee97fc889e771
MMOCoreORB/bin/scripts/mobile/tatooine/tusken_bantha.lua
MMOCoreORB/bin/scripts/mobile/tatooine/tusken_bantha.lua
tusken_bantha = Creature:new { objectName = "@mob/creature_names:tusken_bantha", socialGroup = "tusken_raider", pvpFaction = "tusken_raider", faction = "tusken_raider", level = 25, chanceHit = 0.36, damageMin = 260, damageMax = 270, baseXp = 2543, baseHAM = 6300, baseHAMmax = 7700, armor = 0, resists = {20...
tusken_bantha = Creature:new { objectName = "@mob/creature_names:tusken_bantha", socialGroup = "tusken_raider", pvpFaction = "tusken_raider", faction = "tusken_raider", level = 25, chanceHit = 0.36, damageMin = 260, damageMax = 270, baseXp = 2543, baseHAM = 6300, baseHAMmax = 7700, armor = 0, resists = {20...
[fixed] Tusken Bantha to use templates with saddles.
[fixed] Tusken Bantha to use templates with saddles. Change-Id: I5eaa19c9b5e84c147d7f9eb2648dc1bf12abd3b1
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/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,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
f712ff1feadc341387840f647588b653b1fa8448
httpd.lua
httpd.lua
-- Simple NodeMCU web server (done is a not so nodeie fashion :-) -- -- Written by Scott Beasley 2015 -- Open and free to change and use. Enjoy. -- -- positron: code is based on http://letsmakerobots.com/blog/jscottb/nodemcu-esp8266-simple-httpd-web-server-example local utils = require("utils") local requestTable = {...
-- Simple NodeMCU web server (done is a not so nodeie fashion :-) -- -- Written by Scott Beasley 2015 -- Open and free to change and use. Enjoy. -- -- positron: code is based on http://letsmakerobots.com/blog/jscottb/nodemcu-esp8266-simple-httpd-web-server-example local utils = require("utils") local requestTable = {...
fixed bug with headers storing in httpd
fixed bug with headers storing in httpd
Lua
lgpl-2.1
positron96/esp8266-bootconfig
6a31372b25f85b043d21d54c5c16de9a01a696e5
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
require "luci.sys" require "luci.tools.webadmin" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- System -- f = SimpleForm("syst...
require "luci.sys" require "luci.tools.webadmin" local bit = require "bit" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- Syste...
Fix display of v6 Routing metric on Freifunk status pages
Fix display of v6 Routing metric on Freifunk status pages git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3891 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
fbc315bbad6a126fa39106d4933d2c9baf781727
lua/entities/gmod_wire_grabber.lua
lua/entities/gmod_wire_grabber.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Grabber" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Grabber" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:Phys...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Grabber" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Grabber" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:Phys...
Fixed Adv. Duping the Grabber
Fixed Adv. Duping the Grabber It assumed the entity was within reach of the tracer when it was duping. The opposite is often true. Fixes: http://errors.garrysmod.com/error/3316845705/
Lua
apache-2.0
wiremod/wire,NezzKryptic/Wire,CaptainPRICE/wire,dvdvideo1234/wire,plinkopenguin/wiremod,immibis/wiremod,notcake/wire,thegrb93/wire,rafradek/wire,Grocel/wire,garrysmodlua/wire,Python1320/wire,mms92/wire,mitterdoo/wire,sammyt291/wire,bigdogmat/wire
d5382fcc74a0f79d0e4f93bde4d2abf5b45f2e5f
util/xmppstream.lua
util/xmppstream.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 lxp = require "lxp"; local st = require "util.stanza"; local tostring = tostring; local t_insert ...
-- 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 lxp = require "lxp"; local st = require "util.stanza"; local tostring = tostring; local t_insert ...
util.xmppstream: Fix logger name.
util.xmppstream: Fix logger name.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
4125629c807419d11159312801bb049754aca21c
chooseAP.lua
chooseAP.lua
-- had to chunk up sending of webpage, to deal with low amounts of memory on ESP-8266 devices -- surely a more elegant way to do it dofile("makeChooseAPHTML.lua") local SSID = nil local pass = nil local otherSSID = nil local errMsg = nil local savedNetwork = false local resetTimer = 15 -- for resetting the module afte...
--TODO: make the chooseAPHTML a package, so the errmsg can be passed --add delay before trying to connect? -- had to chunk up sending of webpage, to deal with low amounts of memory on ESP-8266 devices -- surely a more elegant way to do it dofile("makeChooseAPHTML.lua") local SSID = nil local pass = nil local otherSSI...
fixing sendheader function
fixing sendheader function
Lua
mit
wordsforthewise/ESP-8266_network-connect
21c3e193f88a5b99d1e83887991163e4ff127bed
src/main/resources/std/coroutine.lua
src/main/resources/std/coroutine.lua
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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...
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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 ...
fix params, return types and doc
fix params, return types and doc Check params and return types for rightness.
Lua
apache-2.0
tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua
ed3f3e1b1385dd8a3e870186e91d2a1b3ace21c4
gm/items/id_93_medal.lua
gm/items/id_93_medal.lua
-- UPDATE common SET com_script='gm.items.id_93_medal' WHERE com_itemid=93; module("gm.items.id_93_medal", package.seeall) function UseItemWithField(User,SourceItem, TargetPos, Counter, Param) Counter=1 * string.format("%u",User.lastSpokenText); if (SourceItem.data==0) then User:inform("#w Creat...
-- UPDATE common SET com_script='gm.items.id_93_medal' WHERE com_itemid=93; require("base.common") module("gm.items.id_93_medal", package.seeall) function UseItemWithField(User,SourceItem, TargetPos, Counter, Param) local a, _, number = string.find(User.lastSpokenText, "(%d+)"); Counter = 1 * number; ...
Fixing crash bug with medal (did not spawn any monsters)
Fixing crash bug with medal (did not spawn any monsters)
Lua
agpl-3.0
Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content
1f47a5b918c97867d71fd9371451de55c2c648b1
spec/02-kong_storage_adapter_spec.lua
spec/02-kong_storage_adapter_spec.lua
local helpers = require "spec.helpers" local utils = require "kong.tools.utils" function get_sid_from_cookie(cookie) local cookie_parts = utils.split(cookie, "; ") return utils.split(utils.split(cookie_parts[1], "|")[1], "=")[2] end for _, strategy in helpers.each_strategy() do describe("Plugin: Session (kong...
local helpers = require "spec.helpers" local utils = require "kong.tools.utils" local function get_sid_from_cookie(cookie) local cookie_parts = utils.split(cookie, "; ") return utils.split(utils.split(cookie_parts[1], "|")[1], "=")[2] end for _, strategy in helpers.each_strategy() do describe("Plugin: Session...
test(lint) fix linting issues
test(lint) fix linting issues
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
83a1cf3761f27946f2c9dae498a95a489b91ca4a
helper.lua
helper.lua
-- Helper Module -- local setup = require "setup" local helper = {} helper.mainMenu = { h = "Help", s = "Initial Setup", n = "Search by Name of Script", c = "Search by Category", b = "Create script.db backup", q = "Exit"} helper.searchMenu ={ s = "Search by Name", b = "Main Menu", q = "Exit"} function helper.banner(...
-- Helper Module -- local setup = require "setup" local helper = {} helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search by Name of Script (s)", "Search by Category (c)", "Create script.db backup (b)", "Exit (q)"} helper.searchMenu ={ "Search by Name (s)", "Main Menu (b)", "Exit (q)"} function helper.banner()...
Fixing Menu List
Fixing Menu List
Lua
apache-2.0
JKO/nsearch,JKO/nsearch
3af3e404b0f70b7b64c5bb3eeb77a025059d5ff1
base/lookat.lua
base/lookat.lua
-- Default look-at script module("base.lookat", package.seeall) -- init german descriptions GenericQualDe={"perfekt","exzellent","sehr gut","gut","normal","mig","schlecht","sehr schlecht","schrecklich","furchtbar"}; GenericDuraDe={}; GenericDuraDe[1]={"nagelneu" ,"neu" ,"fast neu","gebraucht","leicht abgenutzt",...
-- Default look-at script module("base.lookat", package.seeall) -- init german descriptions GenericQualDe={"perfekt","exzellent","sehr gut","gut","normal","mig","schlecht","sehr schlecht","schrecklich","furchtbar"}; GenericDuraDe={}; GenericDuraDe[1]={"nagelneu" ,"neu" ,"fast neu","gebraucht","leicht abgenutzt",...
Trying to fix a problem with showing the title of a item
Trying to fix a problem with showing the title of a item
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content
7fac3640cdefdd3769715b38cfc5a6974c8fcb9c
loot.lua
loot.lua
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
Validate that we actually can give the player GP before we show the GP credit dialog. This fixes issue 465.
Validate that we actually can give the player GP before we show the GP credit dialog. This fixes issue 465.
Lua
bsd-3-clause
hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf
45a5506648e4774dbc70889157649cb20cfdfaed
mod_carbons/mod_carbons.lua
mod_carbons/mod_carbons.lua
local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[module.host].sessions; -- TODO merge message handlers into one somehow module:hook...
local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[module.host].sessions; -- TODO merge message handlers into one somehow module:hook...
mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps)
mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps)
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
adb7ec786f4789aa3f0d68e4cce49f31c968485b
src/cosy/library.lua
src/cosy/library.lua
local Configuration = require "cosy.configuration" local Digest = require "cosy.digest" local Value = require "cosy.value" local Library = {} local Client = {} local function patch (client) function client.authenticate (parameters, try_only) parameters.password = Digest ("%{username}:%{password}...
local Configuration = require "cosy.configuration" local Digest = require "cosy.digest" local Value = require "cosy.value" local Scheduler = require "cosy.scheduler" local Library = {} local Client = {} local function patch (client) function client.authenticate (parameters, try_only) paramet...
Fix library for native and javascript.
Fix library for native and javascript.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
bc5bd85bd784c1e8989a75f03d41e410c4594ba0
lua/entities/gmod_wire_egp_hud/init.lua
lua/entities/gmod_wire_egp_hud/init.lua
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') AddCSLuaFile("HUDDraw.lua") include("HUDDraw.lua") ENT.WireDebugName = "E2 Graphics Processor HUD" function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self.RenderT...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') AddCSLuaFile("HUDDraw.lua") include("HUDDraw.lua") ENT.WireDebugName = "E2 Graphics Processor HUD" function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self.RenderT...
Fixed error if duping an egp hud that wasn't linked to a vehicle
Fixed error if duping an egp hud that wasn't linked to a vehicle
Lua
apache-2.0
mms92/wire,dvdvideo1234/wire,plinkopenguin/wiremod,CaptainPRICE/wire,garrysmodlua/wire,Grocel/wire,rafradek/wire,thegrb93/wire,NezzKryptic/Wire,sammyt291/wire,Python1320/wire,wiremod/wire,bigdogmat/wire,notcake/wire,mitterdoo/wire,immibis/wiremod
ece7394025e71be9a07084a753cbd1e77b089d9b
kong/plugins/sign/handler.lua
kong/plugins/sign/handler.lua
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local SignHandler = BasePlugin:extend() function SignHandler:new() SignHandler.super.new(self, "sign") end local function checksign(conf) if not conf.signname then ngx.log(ngx.ERR, "[sign] no conf.signnam...
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local SignHandler = BasePlugin:extend() function SignHandler:new() SignHandler.super.new(self, "sign") end local function checksign(conf) if not conf.signname then ngx.log(ngx.ERR, "[sign] no conf.signnam...
fix bug
fix bug
Lua
apache-2.0
li-wl/kong
bc303d61ab50a7060795206b0f7750c4ceaa39d3
hammerspoon/prefix.lua
hammerspoon/prefix.lua
-- Simulate tmux's key binding: prefix + hotkey local module = {} local TIMEOUT = 3 local modal = hs.hotkey.modal.new('ctrl', 'space') function modal:entered() modal.alertId = hs.alert.show("Prefix mode", TIMEOUT) hs.timer.doAfter(TIMEOUT, function() modal:exit() end) end function modal:exited() if mod...
-- Tmux style hotkey binding: prefix + hotkey local module = {} local TIMEOUT = 5 local modal = hs.hotkey.modal.new('ctrl', 'space') function modal:entered() modal.alertId = hs.alert.show("Prefix Mode", 9999) modal.timer = hs.timer.doAfter(TIMEOUT, function() modal:exit() end) end function modal:exited() ...
[hs] misc changes on prefix mode
[hs] misc changes on prefix mode
Lua
mit
raulchen/dotfiles,raulchen/dotfiles
f5cdd1145048a0b6d90946ac8651d5286408aa91
mod_auth_external/mod_auth_external.lua
mod_auth_external/mod_auth_external.lua
-- -- Prosody IM -- Copyright (C) 2010 Waqas Hussain -- Copyright (C) 2010 Jeff Mitchell -- Copyright (C) 2013 Mikael Nordfeldth -- Copyright (C) 2013 Matthew Wild, finally came to fix it all -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local lpt...
-- -- Prosody IM -- Copyright (C) 2010 Waqas Hussain -- Copyright (C) 2010 Jeff Mitchell -- Copyright (C) 2013 Mikael Nordfeldth -- Copyright (C) 2013 Matthew Wild, finally came to fix it all -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local lpt...
mod_auth_external: Fix logging of errors
mod_auth_external: Fix logging of errors
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
347e205f3d8f7d8822cf4070e681e11056e5b7d4
DeveloperTools/data2yaml/data2yaml.lua
DeveloperTools/data2yaml/data2yaml.lua
sptbl = {} print(arg[1]) dofile(string.format("data/%s.lua", arg[1])) YAML = { name=arg[1] } function YAML.tables(self, tbl) if(tbl.params.mandatory == nil) then return end local ftbl = {} local ft = {} for k,v in pairs(tbl.params.mandatory) do if(string.match(v.type, "sp_ftbl")) then ...
sptbl = {} print(arg[1]) dofile(string.format("data/%s.lua", arg[1])) YAML = { name=arg[1] } function YAML.tables(self, tbl) if(tbl.params.mandatory == nil) then return end local ftbl = {} for k,v in pairs(tbl.params.mandatory) do if(string.match(v.type, "sp_ftbl")) then local ft = {} ...
data2yaml fixes: repeating constants do not happen now
data2yaml fixes: repeating constants do not happen now
Lua
mit
narner/AudioKit,roecrew/AudioKit,catloafsoft/AudioKit,laurentVeliscek/AudioKit,catloafsoft/AudioKit,catloafsoft/AudioKit,roecrew/AudioKit,roecrew/AudioKit,roecrew/AudioKit,dclelland/AudioKit,narner/AudioKit,dclelland/AudioKit,laurentVeliscek/AudioKit,narner/AudioKit,narner/AudioKit,laurentVeliscek/AudioKit,catloafsoft/...
b094c72d94464deaf2272d11a78473e3d5a4608e
src/commands/addsticker.lua
src/commands/addsticker.lua
local utils = require("utils") local addsticker = { func = function(msg) local origin_title = msg.text:match("/addsticker%s*(%S.-)%s*$") local default_title = ("Sticker Pack By " .. msg.from.first_name .. (msg.from.last_name and (" " .. msg.from.last_name) or "")) local title = origin_titl...
local utils = require("utils") local addsticker = { func = function(msg) local info = bot.sendMessage{ chat_id = msg.chat.id, text = "Roger. Wait a moment ...", reply_to_message_id = msg.message_id } local is_static = false local is_animated = fa...
fix(commands/addsticker): add animated/video stickers to dependent sticker sets
fix(commands/addsticker): add animated/video stickers to dependent sticker sets
Lua
apache-2.0
SJoshua/Project-Small-R
869cb0c148f8306b574b5afc3af96a88411faba6
modules/admin-full/luasrc/controller/admin/uci.lua
modules/admin-full/luasrc/controller/admin/uci.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- modu...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- modu...
Fix missing UCI transition
Fix missing UCI transition
Lua
apache-2.0
8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci
6eb9566665f2850ae2a4218976bf85bafd707b4c
src/azk/utils/native/uuid.lua
src/azk/utils/native/uuid.lua
local ffi = require("ffi") local libuuid = ffi.os == "OSX" and ffi.C or ffi.load("uuid") local print = print local uuid = {} setfenv(1, uuid) -- TODO: Implemente windows option -- Reference: https://code.google.com/p/lua-files/source/browse/winapi/uuid.lua?r=eaea6fab8c1a9fbbf4d7644ee2b025bf0c98f49c ffi.cdef[[ type...
local ffi = require("ffi") local libuuid = ffi.os == "OSX" and ffi.C or ffi.load("uuid.so.1") local uuid = {} -- TODO: Implemente windows option -- Reference: https://code.google.com/p/lua-files/source/browse/winapi/uuid.lua?r=eaea6fab8c1a9fbbf4d7644ee2b025bf0c98f49c ffi.cdef[[ typedef unsigned char uuid_t[16]; ...
Fixing ffi load uuid library.
Fixing ffi load uuid library.
Lua
apache-2.0
agendor/azk,gullitmiranda/azk,Klaudit/azk,juniorribeiro/azk,marcusgadbem/azk,nuxlli/azk,saitodisse/azk-travis-test,heitortsergent/azk,saitodisse/azk,gullitmiranda/azk,fearenales/azk,saitodisse/azk-travis-test,slobo/azk,azukiapp/azk,saitodisse/azk,slobo/azk,renanmpimentel/azk,marcusgadbem/azk,fearenales/azk,Klaudit/azk,...
4edb586077e75b90a87efe52a01a67ae5c179311
lualib/redis.lua
lualib/redis.lua
local skynet = require "skynet" local socket = require "socket" local socketchannel = require "socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis response local redcm...
local skynet = require "skynet" local socket = require "socket" local socketchannel = require "socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis response local redcm...
修复redis auth操作没有进行compose_message的bug,该bug导致skynet连接twemproxy时,auth失败
修复redis auth操作没有进行compose_message的bug,该bug导致skynet连接twemproxy时,auth失败
Lua
mit
rainfiel/skynet,iskygame/skynet,sundream/skynet,korialuo/skynet,puXiaoyi/skynet,QuiQiJingFeng/skynet,kyle-wang/skynet,nightcj/mmo,xjdrew/skynet,chuenlungwang/skynet,pigparadise/skynet,xinjuncoding/skynet,kyle-wang/skynet,ypengju/skynet_comment,Ding8222/skynet,nightcj/mmo,firedtoad/skynet,asanosoyokaze/skynet,xcjmine/sk...
1652a08b8e92048be5a0d3b9e21dd9e895a69f89
preprocess.lua
preprocess.lua
require('onmt.init') local cmd = onmt.utils.ExtendedCmdLine.new('preprocess.lua') -- First argument define the dataType: bitext/monotext - default is bitext. local dataType = cmd.getArgument(arg, '-data_type') or 'bitext' -- Options declaration local options = { { '-data_type', 'bitext', [[Type of data to ...
require('onmt.init') local cmd = onmt.utils.ExtendedCmdLine.new('preprocess.lua') -- First argument define the dataType: bitext/monotext - default is bitext. local dataType = cmd.getArgument(arg, '-data_type') or 'bitext' -- Options declaration local options = { { '-data_type', 'bitext', [[Type of data to ...
Fix -save_vocab option dependency check
Fix -save_vocab option dependency check Fixes #364.
Lua
mit
OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT
dba9ba793d9aaec978478e4e7b7e4585d5e4efbd
lua/job.lua
lua/job.lua
local _M = { _VERSION = "1.8.5" } local lock = require "resty.lock" local JOBS = ngx.shared.jobs local ipairs = ipairs local update_time = ngx.update_time local ngx_now = ngx.now local worker_exiting = ngx.worker.exiting local timer_at = ngx.timer.at local ngx_log = ngx.log local INFO, ERR, WARN = ngx.INFO, ngx.E...
local _M = { _VERSION = "1.8.5" } local lock = require "resty.lock" local JOBS = ngx.shared.jobs local ipairs = ipairs local update_time = ngx.update_time local ngx_now = ngx.now local worker_exiting = ngx.worker.exiting local timer_at = ngx.timer.at local ngx_log = ngx.log local INFO, ERR, WARN = ngx.INFO, ngx.E...
fix job
fix job
Lua
bsd-2-clause
ZigzagAK/nginx-resty-auto-healthcheck-config,ZigzagAK/nginx-resty-auto-healthcheck-config
85c960b845dec53dfaaf00cc42ac9a729ea4edb0
premake4.lua
premake4.lua
-- Clean Function -- newaction { trigger = "clean", description = "clean the software", execute = function () print("clean the build...") os.rmdir("./build") print("done.") end } -- A solution contains projects, and defines the available configurations solution "simhub" confi...
-- Clean Function -- newaction { trigger = "clean", description = "clean the software", execute = function () print("clean the build...") os.rmdir("./obj") os.remove("./*.make") os.remove("./Makefile") print("done.") end } -- A solution contains projects, and defin...
fixing clean
fixing clean
Lua
mit
mteichtahl/simhub,lurkerbot/simhub,lurkerbot/simhub,mteichtahl/simhub,lurkerbot/simhub,lurkerbot/simhub,mteichtahl/simhub,mteichtahl/simhub
690121932db90eb58e3397aff474bba55b52f768
premake4.lua
premake4.lua
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'cpp-bench' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32','x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } ...
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'cpp-bench' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32','x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } ...
linkage fix in linux
linkage fix in linux clock_gettime() need lib 'rt'
Lua
apache-2.0
ichenq/cpp-bench,ichenq/cpp-bench
149880b72c7b56d3936ac248ce1b802d7e1a8c87
core/portmanager.lua
core/portmanager.lua
local config = require "core.configmanager"; local certmanager = require "core.certmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local table = table; local setmetatable, rawset, rawget...
local config = require "core.configmanager"; local certmanager = require "core.certmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local table = table; local setmetatable, rawset, rawget...
portmanager: Fix to deactivate services when they are unregistered (metatable:iter() wins)
portmanager: Fix to deactivate services when they are unregistered (metatable:iter() wins)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
e022ddc9f78118a98b7a90c6318e492dd452f93f
otouto/plugins/notify.lua
otouto/plugins/notify.lua
-- INFO: Stats must be activated, so that it can collect all members of a group and save his/her id to redis. -- You can deactivate it afterwards. local notify = {} function notify:init(config) notify.triggers = { "^/notify (del)$", "^/notify$" } notify.doc = [[* ]]..config.cmd_pat..[[notify* (del): B...
-- INFO: Stats must be activated, so that it can collect all members of a group and save his/her id to redis. -- You can deactivate it afterwards. local notify = {} function notify:init(config) notify.triggers = { "^/notify (del)$", "^/notify$" } notify.doc = [[* ]]..config.cmd_pat..[[notify* (del): B...
Fixe Notify
Fixe Notify
Lua
agpl-3.0
Brawl345/Brawlbot-v2
8ca5450e22e17095cadf3e87b1bd9520241457a2
rootfs/etc/nginx/lua/balancer/ewma.lua
rootfs/etc/nginx/lua/balancer/ewma.lua
-- Original Authors: Shiv Nagarajan & Scott Francis -- Accessed: March 12, 2018 -- Inspiration drawn from: -- https://github.com/twitter/finagle/blob/1bc837c4feafc0096e43c0e98516a8e1c50c4421 -- /finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala local resty_lock = require("resty.lock") loca...
-- Original Authors: Shiv Nagarajan & Scott Francis -- Accessed: March 12, 2018 -- Inspiration drawn from: -- https://github.com/twitter/finagle/blob/1bc837c4feafc0096e43c0e98516a8e1c50c4421 -- /finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala local resty_lock = require("resty.lock") loca...
bugfix: always update trafficShapingPolicy when using ewma as load-balance even if endpoints not change, otherwise update trafficShapingPolicy will not working
bugfix: always update trafficShapingPolicy when using ewma as load-balance even if endpoints not change, otherwise update trafficShapingPolicy will not working
Lua
apache-2.0
canhnt/ingress,aledbf/ingress-nginx,caicloud/ingress,kubernetes/ingress-nginx,aledbf/ingress-nginx,canhnt/ingress,caicloud/ingress,kubernetes/ingress-nginx,caicloud/ingress,caicloud/ingress,canhnt/ingress,kubernetes/ingress-nginx,aledbf/ingress-nginx,aledbf/ingress-nginx,kubernetes/ingress-nginx,kubernetes/ingress-ngin...
c506d87d2826e998f951255ce32d38f4b379f8f7
sessions.lua
sessions.lua
local check_type = require("textadept-nim.utils").check_type local errortips = require("textadept-nim.errortips") local parse_errors = errortips.parse_errors local error_handler = errortips.error_handler local get_project = require("textadept-nim.project").detect_project local consts = require("textadept-nim.constants"...
local check_type = require("textadept-nim.utils").check_type local errortips = require("textadept-nim.errortips") local parse_errors = errortips.parse_errors local error_handler = errortips.error_handler local get_project = require("textadept-nim.project").detect_project local consts = require("textadept-nim.constants"...
Fixes unknown files passing to nimsuggest (no idea why nimsuggest does not work with absolute paths)
Fixes unknown files passing to nimsuggest (no idea why nimsuggest does not work with absolute paths)
Lua
mit
xomachine/textadept-nim
e029001b10ea65f0020f40dd80aa517c78c1e3e4
src/Ship.lua
src/Ship.lua
require ("lib.lclass") class "Ship" function Ship:Ship () self.gfx = love.graphics.newImage ("gfx/schiff.png") self.r = 255 self.g = 255 self.b = 255 self.x = 200 self.y = 200 self.rot = { w = self.gfx:getWidth () / 2, h = self.gfx:getHeight () / 2, v = 0 } self.scale = 1 self.rotationSpeed = 10 se...
require ("lib.lclass") class "Ship" function Ship:Ship () self.gfx = love.graphics.newImage ("gfx/schiff.png") self.r = 255 self.g = 255 self.b = 255 self.x = 200 self.y = 200 self.rot = { w = self.gfx:getWidth () / 2, h = self.gfx:getHeight () / 2, v = 0 } self.scale = 1 self.rotationSpeed = 10 sel...
fixed movement
fixed movement changed formular calculating momentum of ship
Lua
mit
BlurryRoots/weltraumsteinekaputtmachen
66fad233d004978c958a44e33873913c7714cb00
bida2.lua
bida2.lua
-- -- bida2.lua -- -- BIDA (ver. 2) -- -- Space 0: simple birthday storage -- Tuple: { user_id (INT), date (INT) } -- Index 0: HASH { user_id } -- Index 1: TREE { date, user_id } -- local limit = 7000 function bida2_get_users_by_birthday(birthday, userid_offset) birthday = box.unpack('i', birthday) userid_off...
-- -- bida2.lua -- -- BIDA (ver. 2) -- -- Space 0: simple birthday storage -- Tuple: { user_id (INT), date (INT) } -- Index 0: TREE { date, user_id } -- local limit = 7000 function bida2_get_users_by_birthday(birthday, userid_offset) birthday = box.unpack('i', birthday) userid_offset = box.unpack('i', userid_of...
bida2: fix for a single space
bida2: fix for a single space
Lua
bsd-2-clause
BHYCHIK/tntlua,grechkin-pogrebnyakov/tntlua,mailru/tntlua
c73297ee15d7d00b087b07adc3f787e598196df5
UCDrespawn/client.lua
UCDrespawn/client.lua
------------------------------------------------------------------- --// PROJECT: Project Downtown --// RESOURCE: respawn --// DEVELOPER(S): Lewis Watson (Noki) --// DATE: 14.12.2014 --// PURPOSE: To handle client side re-spawning of players. --// FILE: \respawn\client.lua [client] -------------------------------------...
------------------------------------------------------------------- --// PROJECT: Project Downtown --// RESOURCE: respawn --// DEVELOPER(S): Lewis Watson (Noki) --// DATE: 14.12.2014 --// PURPOSE: To handle client side re-spawning of players. --// FILE: \respawn\client.lua [client] -------------------------------------...
UCDrespawn
UCDrespawn - Hopefully fixed not respawning when the bank is fucked
Lua
mit
nokizorque/ucd,nokizorque/ucd
4f7ee4c06c2defc729f175fb490f9d5a8cb018ec
util/log.lua
util/log.lua
-------------------------------------------------------------------------------- -- Copyright (c) 2015 Jason Lynch <jason@calindora.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software ...
-------------------------------------------------------------------------------- -- Copyright (c) 2015 Jason Lynch <jason@calindora.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software ...
Fix the time display.
Fix the time display. Signed-off-by: Jason Lynch <68c46a606457643eab92053c1c05574abb26f861@calindora.com>
Lua
mit
aexoden/edge
56f1aee07386ed230f1d6cfddc504a214b6e0cb9
SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua
if(select(2, UnitClass('player')) ~= 'DRUID') then return end --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; local error = _G.error; local print = _G.print; local pairs = _G.pairs; local next = _...
if(select(2, UnitClass('player')) ~= 'DRUID') then return end --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; local error = _G.error; local print = _G.print; local pairs = _G.pairs; local next = _...
Possible fix for #84
Possible fix for #84 Fixed the offending line in oUF_Druidness - if this is the source of the problem then we're golden but it may just be masking the real issue.
Lua
mit
joev/SVUI-Temp
8780a13b75dd7191d81dc9cc90463f2da799c224
test_scripts/Polices/build_options/021_ATF_P_TC_PoliciesManager_Sets_Status_to_UP_TO_DATE_HTTP.lua
test_scripts/Polices/build_options/021_ATF_P_TC_PoliciesManager_Sets_Status_to_UP_TO_DATE_HTTP.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UP_TO_DATE” -- [HMI API] OnStatusUpdate -- [HMI API] OnReceivedPolicyUpdate notification -- -- Description: --PoliciesManager must change the s...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UP_TO_DATE” -- [HMI API] OnStatusUpdate -- [HMI API] OnReceivedPolicyUpdate notification -- -- Description: --PoliciesManager must change the s...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts