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
5e322bab4c49af9c498c5d2aec0ce716a311dc1f
OS/DiskOS/Programs/save.lua
OS/DiskOS/Programs/save.lua
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "gzip" local clvl = tonumber(select(4,...) or "9") local term = require("terminal") local eapi = require("Editors") if destination == "-?" then destination = nil end if destination and destination ~= "@clip" and destina...
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "gzip" local clvl = tonumber(select(4,...) or "9") local term = require("terminal") local eapi = require("Editors") local png = false if destination and destination ~= "@clip" and destination ~= "-?" then destination ...
Added binary save support, and fixed -? argument.
Added binary save support, and fixed -? argument.
Lua
mit
RamiLego4Game/LIKO-12
c70d9a4f1852aed7e851ae43842f19f3730d6417
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.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$ ]]-- requ...
--[[ 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$ ]]-- requ...
modules/admin-full: fix last commit
modules/admin-full: fix last commit git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5466 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
projectbismark/luci-bismark,8devices/carambola2-luci,Flexibity/luci,Flexibity/luci,zwhfly/openwrt-luci,stephank/luci,stephank/luci,Canaan-Creative/luci,ch3n2k/luci,saraedum/luci-packages-old,jschmidlapp/luci,projectbismark/luci-bismark,jschmidlapp/luci,ThingMesh/openwrt-luci,dtaht/cerowrt-luci-3.3,stephank/luci,saraedu...
f8dbed9284ce653c0afe0fd5541ee8fdeefa5fe7
core/inputs-texlike.lua
core/inputs-texlike.lua
SILE.inputs.TeXlike = {} local epnf = require( "epnf" ) local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 ) SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1 SILE.inputs.TeXlike.parser = function (_ENV) local _ = WS^0 local sep = lpeg.S(",;") * _ loca...
SILE.inputs.TeXlike = {} local epnf = require( "epnf" ) local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 ) SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1 SILE.inputs.TeXlike.parser = function (_ENV) local _ = WS^0 local sep = S(",;") * _ local quo...
Drop (more consistently) LPEG prefix which is current scope anyway
Drop (more consistently) LPEG prefix which is current scope anyway
Lua
mit
alerque/sile,neofob/sile,alerque/sile,simoncozens/sile,alerque/sile,simoncozens/sile,simoncozens/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile
0c20e3122dabeb2fdf8ea1631805fec7b533ffbe
overloadimpact/lua/lib/common/oimp.lua
overloadimpact/lua/lib/common/oimp.lua
oimp = {} oimp.TOP_PAGE = "top" oimp.start_time = util.time() oimp.started = {} oimp.tot_requests = 0 oimp.last_request = nil oimp.scenario_name = nil -- to be set by oimp.top oimp.top_pass_val = 1 -- oimp.top_pass_val can be set to 0 to indicate failure, but normally failure is done by: -- -- oimp.done(0) -- return --...
oimp = {} oimp.TOP_PAGE = "top" oimp.start_time = util.time() oimp.started = {} oimp.tot_requests = 0 oimp.last_request = nil oimp.scenario_name = nil -- to be set by oimp.top oimp.top_pass_val = 1 -- oimp.top_pass_val can be set to 0 to indicate failure, but normally failure is done by: -- -- oimp.done(0) -- return --...
fix variable renaming
fix variable renaming
Lua
mit
schibsted/overloadimpact,schibsted/overloadimpact,schibsted/overloadimpact
387cf83650b8e7698c7ca3ec97ff094653d0e249
OS/DiskOS/Libraries/parser/languages/lua.lua
OS/DiskOS/Libraries/parser/languages/lua.lua
local keywords = { "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while" } local api = getAPI() local callbacks = {"_draw","_init","_keypressed","_keyreleased","_mousemoved","_mousepressed"...
local keywords = { "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while" } local api = getAPI() local callbacks = {"_draw","_init","_keypressed","_keyreleased","_mousemoved","_mousepressed"...
Fix string syntax parsing
Fix string syntax parsing The parser was consuming an extra character at the end of a string.
Lua
mit
RamiLego4Game/LIKO-12
b4d202ec79f8fe3592f16b23c10d0b652c090847
source/scenes/mapEditor/mapEditor.lua
source/scenes/mapEditor/mapEditor.lua
-- TODO: clean this up module(..., package.seeall) -- import local flower = flower local layer = nil local grid = nil local mode = "default" local width = 50 local height = 100 local lives = 20 local score = 0 -- TODO: Move this logic elsewhere for finding neighbors local neighbors = { hex = { { ...
-- TODO: clean this up module(..., package.seeall) -- import local flower = flower local layer = nil local grid = nil local mode = "default" local width = 50 local height = 100 local lives = 20 local score = 0 -- TODO: Move this logic elsewhere for finding neighbors local neighbors = { hex = { { ...
Fixed accessing tiles outside of the hex grid.
Fixed accessing tiles outside of the hex grid.
Lua
mit
BryceMehring/Hexel
e3659747443021e53a71992710b28c12fb76adc4
xmake/rules/qt/xmake.lua
xmake/rules/qt/xmake.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 qt/wasm
fix qt/wasm
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
7d8af16ca00df92e0d67dfc506e67b8f77d286cd
premake5.lua
premake5.lua
--- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake5. --- -- -- Remember my location; I will need it to locate sub-scripts later. -- local corePath = _SCRIPT_DIR -- -- Disable deprecation warnings for myself, so that older development -- versions of Premake can be...
--- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake5. --- -- -- Remember my location; I will need it to locate sub-scripts later. -- local corePath = _SCRIPT_DIR -- -- Disable deprecation warnings for myself, so that older development -- versions of Premake can be...
Fix deprecated Posix function warnings
Fix deprecated Posix function warnings
Lua
bsd-3-clause
Blizzard/premake-core,noresources/premake-core,mandersan/premake-core,mandersan/premake-core,dcourtois/premake-core,soundsrc/premake-core,premake/premake-core,mendsley/premake-core,tvandijck/premake-core,TurkeyMan/premake-core,CodeAnxiety/premake-core,TurkeyMan/premake-core,lizh06/premake-core,aleksijuvani/premake-core...
96e9f184f1731147474222e4cccb94f0d605f551
premake4.lua
premake4.lua
-- http://industriousone.com/scripting-reference local action = _ACTION or "" solution "island" location (".project") configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} language "C" targetdir ("bin") kind "StaticLib" configuration "vs*" defines { "_CRT_SECURE...
-- http://industriousone.com/scripting-reference local action = _ACTION or "" solution "island" location (".project") configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} language "C" targetdir ("bin") kind "StaticLib" configuration "vs*" defines { "_CRT_SECURE...
windows/vs2013 link bugfix
windows/vs2013 link bugfix
Lua
mit
island-org/island,island-org/island
7a70df85f825fff52a77785173e91af0e4281025
premake4.lua
premake4.lua
solution "alloy" configurations { "Debug", "Release" } -- get data from shell LLVM_OPTIONS = "--system-libs --libs " LLVM_CONFIG = "core analysis executionengine jit interpreter native " LLVM_CFLAGS = "$(" .. "llvm-config --cflags " .. LLVM_OPTIONS .. LLVM_CONFIG .. ")" LLVM_LFLAGS = "$(" .. "llvm-config --ldfla...
solution "alloy" configurations { "Debug", "Release" } -- missing function if not os.outputof then function os.outputof(cmd) local pipe = io.popen(cmd) local result = pipe:read('*a') pipe:close() result = result:gsub ("\n", " ") return result end end -- get data from shell LLVM_OPTIONS = "-...
fix various premake/makefile/LLVM errors
fix various premake/makefile/LLVM errors
Lua
mit
ark-lang/ark,kiljacken/ark
74adb3e7271fd388705285cc7b51c4197d5ef4b2
premake5.lua
premake5.lua
--- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake5. --- -- -- Remember my location; I will need it to locate sub-scripts later. -- local corePath = _SCRIPT_DIR -- -- Disable deprecation warnings for myself, so that older development -- versions of Premake can be...
--- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake5. --- -- -- Remember my location; I will need it to locate sub-scripts later. -- local corePath = _SCRIPT_DIR -- -- Disable deprecation warnings for myself, so that older development -- versions of Premake can be...
Final debugargs/debugdir fix.
Final debugargs/debugdir fix.
Lua
bsd-3-clause
CodeAnxiety/premake-core,mendsley/premake-core,starkos/premake-core,dcourtois/premake-core,LORgames/premake-core,bravnsgaard/premake-core,lizh06/premake-core,premake/premake-core,lizh06/premake-core,aleksijuvani/premake-core,premake/premake-core,TurkeyMan/premake-core,tvandijck/premake-core,CodeAnxiety/premake-core,ale...
9b0eb118b3a9c7f682176bbc033fbc0a515636f4
Server/Plugins/InfoReg.lua
Server/Plugins/InfoReg.lua
-- InfoReg.lua -- Implements registration functions that process g_PluginInfo --- Lists all the subcommands that the player has permissions for local function ListSubcommands(a_Player, a_Subcommands, a_CmdString) if (a_Player == nil) then LOGINFO("The " .. a_CmdString .. " command requires another verb:") el...
-- InfoReg.lua -- Implements registration functions that process g_PluginInfo --- Lists all the subcommands that the player has permissions for local function ListSubcommands(a_Player, a_Subcommands, a_CmdString) if (a_Player == nil) then LOGINFO("The " .. a_CmdString .. " command requires another verb:") el...
Corrected check for level of subcommand and fixed multiple levels not working (#3758)
Corrected check for level of subcommand and fixed multiple levels not working (#3758) * Corrected check for level of subcommand A message instead of an error is printed, if the sub command is unknown * Multiple levels of sub commands now works, too
Lua
apache-2.0
nounoursheureux/MCServer,mc-server/MCServer,mc-server/MCServer,nounoursheureux/MCServer,nounoursheureux/MCServer,nounoursheureux/MCServer,nounoursheureux/MCServer,mc-server/MCServer,mc-server/MCServer,mc-server/MCServer,mc-server/MCServer,nounoursheureux/MCServer
7f271688298006d04927fa63cc638a6cbc2bf015
mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua
mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua
-- Copyright (C) 2009-2010 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local prosody = _G.prosody; local hosts = prosody.hosts; require "util.iterators"; local dataforms_new = require "util.dataforms".new; local array...
-- Copyright (C) 2009-2010 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local prosody = _G.prosody; local hosts = prosody.hosts; require "util.iterators"; local dataforms_new = require "util.dataforms".new; local array...
mod_adhoc_cmd_modules: Fix error message
mod_adhoc_cmd_modules: Fix error message
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
d1f7aecd2a9f1f77daf4d697cf3651def580d87d
source/game/versusGame.lua
source/game/versusGame.lua
-------------------------------------------------------------------------------- -- game.lua - Defines a game which(for now) manages the game logic for a single player game -------------------------------------------------------------------------------- -- TODO: clean this up! require "source/utilities/vector" require...
-------------------------------------------------------------------------------- -- game.lua - Defines a game which(for now) manages the game logic for a single player game -------------------------------------------------------------------------------- -- TODO: clean this up! require "source/utilities/vector" require...
Fixed clipped text in chat box. Fixes #46.
Fixed clipped text in chat box. Fixes #46.
Lua
mit
BryceMehring/Hexel
c10cf880a89825d117270275c3f84434ba26708c
src/copy.lua
src/copy.lua
#!/usr/bin/lua -- WANT_JSON local Ansible = require("ansible") local File = require("fileutils") local os = require("os") function adjust_recursive_directory_permissions(pre_existing_dir, new_directory_list, index, module, directory_args, changed) -- Walk the new directories list and make sure that permissi...
#!/usr/bin/lua -- WANT_JSON local Ansible = require("ansible") local File = require("fileutils") local os = require("os") function adjust_recursive_directory_permissions(pre_existing_dir, new_directory_list, index, module, directory_args, changed) -- Walk the new directories list and make sure that permissi...
Bugfix: Ignore "checksum" parameter in copy module
Bugfix: Ignore "checksum" parameter in copy module When copying, recent versions of ansible set the "checksum" field of the json-payload for validation of the file after copy. As of now, we simply ignore the parameter.
Lua
agpl-3.0
noctux/philote,noctux/philote
5d9186ddbfa0ad2e2757307305d4acb7502dc6e3
agents/monitoring/default/client/upgrade.lua
agents/monitoring/default/client/upgrade.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(upgrades): callback is not triggering correctly
fix(upgrades): callback is not triggering correctly
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
fe80e3586a3aa6e71b97ab6fc7f9c0f8adbe8e26
src/init.lua
src/init.lua
local ceil = math.ceil local floor = math.floor local pow = math.pow local substr = string.sub local upcase = string.upper local format = string.format local strcat = table.concat local push = table.insert local str_switch_pos local ok, lib = pcall(require, "hashids.clib"); if ok then str_switch_pos = lib.str...
local ceil = math.ceil local floor = math.floor local pow = math.pow local substr = string.sub local upcase = string.upper local format = string.format local strcat = table.concat local push = table.insert local unpack = table.unpack or unpack local str_switch_pos local ok, lib = pcall(require, "hashids.clib")...
fix encode() without value; check encode_hex() value; fix unpack() (Lua 5.3)
fix encode() without value; check encode_hex() value; fix unpack() (Lua 5.3)
Lua
mit
leihog/hashids.lua
714933786e905bcecc381dd6aee2309d99c85afa
modules/hearthstone.lua
modules/hearthstone.lua
local simplehttp = require'simplehttp' local cache = {} local trim = function(s) return s:match('^%s*(.-)%s*$') end local pattern = ('<td[^>]*>([^\n]+)\n[^<]+'):rep(10) local parseData = function(data) local tmp = {} local tbody = data:match('<tbody>(.*)</tbody>') for row in tbody:gmatch('<tr[^>]+>.-</tr>') do ...
local simplehttp = require'simplehttp' local cache = {} local trim = function(s) return s:match('^%s*(.-)%s*$') end local pattern = ('<td[^>]*>([^\n]+)\n[^<]+'):rep(10) local parseData = function(data) local tmp = {} local tbody = data:match('<tbody>(.*)</tbody>') for row in tbody:gmatch('<tr[^>]+>.-</tr>') do ...
hearthstone: Fix class and output logic.
hearthstone: Fix class and output logic. Former-commit-id: 0ad585908ef65d6ba18dfdef257326d4dc179171 [formerly f2c1ab4a2b0f3c0575e3bd3a494fe2b6ac9b4efc] Former-commit-id: 7c3e853285c9a94b4c814eb80b812dddc23bc5ec
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
173d9600f0724b82f53cc46ef14b7f3fb9fff25d
frontend/apps/reader/modules/readerdogear.lua
frontend/apps/reader/modules/readerdogear.lua
local BD = require("ui/bidi") local Device = require("device") local Geom = require("ui/geometry") local IconWidget = require("ui/widget/iconwidget") local InputContainer = require("ui/widget/container/inputcontainer") local RightContainer = require("ui/widget/container/rightcontainer") local Screen = Device.screen lo...
local BD = require("ui/bidi") local Device = require("device") local Geom = require("ui/geometry") local IconWidget = require("ui/widget/iconwidget") local InputContainer = require("ui/widget/container/inputcontainer") local RightContainer = require("ui/widget/container/rightcontainer") local VerticalGroup = require("u...
Bookmarks dogear: fix position with CRe top status bar (#7312)
Bookmarks dogear: fix position with CRe top status bar (#7312) Draw it below the CRe top status bar rather than over it.
Lua
agpl-3.0
Hzj-jie/koreader,koreader/koreader,mwoz123/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader,poire-z/koreader,NiLuJe/koreader
b657cde5b59b02b1838b940007f0115b223bdf02
xmake-repo/packages/n/nodeeditor/xmake.lua
xmake-repo/packages/n/nodeeditor/xmake.lua
package("nodeeditor") set_homepage("https://github.com/paceholder/nodeeditor") set_description("Qt Node Editor. Dataflow programming framework") set_license("BSD-3") set_urls("https://github.com/paceholder/nodeeditor/archive/refs/tags/$(version).tar.gz", "https://github.com/paceholder/nod...
package("nodeeditor") set_homepage("https://github.com/paceholder/nodeeditor") set_description("Qt Node Editor. Dataflow programming framework") set_license("BSD-3") set_urls("https://github.com/paceholder/nodeeditor/archive/refs/tags/$(version).tar.gz", "https://github.com/paceholder/nod...
Build: fix nodeeditor package
Build: fix nodeeditor package
Lua
mit
DigitalPulseSoftware/NazaraEngine
fcad680b2021aa9bddb364943d3c0c563850e9b2
xmake/platforms/macosx/load.lua
xmake/platforms/macosx/load.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 target_minver for macosx
fix target_minver for macosx
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
7843015a0966fc899db343f9d71d4372af47606c
tools/structmsgTest/Lua/writeMsgHeaders.lua
tools/structmsgTest/Lua/writeMsgHeaders.lua
function checkOK(result, fieldName) if (result ~= "OK") then print(tostring(result).." for field: "..fieldName) end end McuPartProv=tonumber("4D01",16); AppPartProv=tonumber("4101",16); McuPart=tonumber("4D00",16); AppPart=tonumber("4100",16); WifiPart=tonumber("5700",16) CloudPart=tonumber("4300",16) functio...
function checkOK(result, fieldName) if (result ~= "OK") then print(tostring(result).." for field: "..fieldName) end end McuPartProv=tonumber("4D01",16); AppPartProv=tonumber("4101",16); McuPart=tonumber("4D00",16); AppPart=tonumber("4100",16); WifiPart=tonumber("5700",16) CloudPart=tonumber("4300",16) functio...
some fixes/typo fixes added type of crc field.
some fixes/typo fixes added type of crc field.
Lua
mit
apwiede/nodemcu-firmware,apwiede/nodemcu-firmware,apwiede/nodemcu-firmware,apwiede/nodemcu-firmware
a18fba463793740c69e63b860f75df1a87ae1176
engine/Game.lua
engine/Game.lua
-------------------------------------------------------------------------------- local Background = require 'cherry.components.background' local Screen = require 'cherry.components.screen' local Effects = require 'cherry.engine.effects' -------------------------------------------------------------------------------- ...
-------------------------------------------------------------------------------- local Background = require 'cherry.components.background' local Screen = require 'cherry.components.screen' local Effects = require 'cherry.engine.effects' -------------------------------------------------------------------------------- ...
fixed game.stop
fixed game.stop
Lua
bsd-3-clause
chrisdugne/cherry
809c814cb7114bd9b71396d3710097345eed6b82
extension/script/backend/worker/stdout.lua
extension/script/backend/worker/stdout.lua
local ev = require 'common.event' local foreground local background local bright local underline local negative local function split(str) local r = {} str:gsub('[^;]+', function (w) r[#r+1] = tonumber(w) end) return r end local function vtmode(text) local vt = {} if foreground then vt[#vt...
local ev = require 'common.event' local foreground local background local bright local underline local negative local function split(str) local r = {} str:gsub('[^;]+', function (w) r[#r+1] = tonumber(w) end) return r end local function vtmode(text) local vt = {} if foreground then vt[#vt...
VSCode的bug已经修复,不再需要特殊处理了
VSCode的bug已经修复,不再需要特殊处理了
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
77b50a21e64652369b9ce414b2a13e2c51d3d576
weather-widget/weather.lua
weather-widget/weather.lua
------------------------------------------------- -- Weather Widget based on the OpenWeatherMap -- https://openweathermap.org/ -- -- @author Pavel Makhov -- @copyright 2018 Pavel Makhov ------------------------------------------------- local http = require("socket.http") local json = require("json") local naughty = re...
------------------------------------------------- -- Weather Widget based on the OpenWeatherMap -- https://openweathermap.org/ -- -- @author Pavel Makhov -- @copyright 2018 Pavel Makhov ------------------------------------------------- local http = require("socket.http") local json = require("json") local naughty = re...
Take into account case with an unset wind degrees
Take into account case with an unset wind degrees Fixes exception, which happens when comparing nil to a number
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets,streetturtle/AwesomeWM
8d78a889fbfcc2b21ff7427f77432ebe2486dea1
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
modules/admin-full/luasrc/model/cbi/admin_network/routes.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$ ]]-- requ...
--[[ 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$ ]]-- requ...
Fixed an overflow error with IPv6 route metric
Fixed an overflow error with IPv6 route metric
Lua
apache-2.0
deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci
e4b87cbcabe8ae27ac10ee22d95e9dcbaf2b61ce
util/sasl.lua
util/sasl.lua
-- sasl.lua v0.4 -- Copyright (C) 2008-2009 Tobias Markmann -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright ...
-- sasl.lua v0.4 -- Copyright (C) 2008-2009 Tobias Markmann -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright ...
util.sasl: Move some variables to local space. Fix a bug.
util.sasl: Move some variables to local space. Fix a bug.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
4222cc66e9c5fbaa0335bd4180cd03bbd66695db
lua_scripts/init.lua
lua_scripts/init.lua
-- Copyright (c) 2011 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under LGPL version 2.1, see top level LICENSE file for details. -- This script is executed by sb2d at startup, this -- initializes the rule tree database (which is empty -- but attached when this script is started) session_dir = os.get...
-- Copyright (c) 2011 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under LGPL version 2.1, see top level LICENSE file for details. -- This script is executed by sb2d at startup, this -- initializes the rule tree database (which is empty -- but attached when this script is started) session_dir = os.get...
Bugfix: /proc mapping rules work again
Bugfix: /proc mapping rules work again - A dummy sb2_procfs_mapper() function is needed; otherwise /proc rules won't go correctly to the rule tree (the real sb2_procfs_mapper function was removed when the Lua mapping logic was removed. Now the function is not called anymore, but must exist for identifying /pro...
Lua
lgpl-2.1
h113331pp/scratchbox2,ldbox/ldbox,ldbox/ldbox,ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,ldbox/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2
e2830e6506fd8f09da122622d4512b663f791200
bench/client.lua
bench/client.lua
local Loader = require "cosy.loader" local Configuration = require "cosy.configuration" local I18n = require "cosy.i18n" local Library = require "cosy.library" local Value = require "cosy.value" do os.execute "redis-cli flushall" end local token = arg [1] local ok, err = pcall (functi...
local Loader = require "cosy.loader" local Configuration = require "cosy.configuration" local I18n = require "cosy.i18n" local Library = require "cosy.library" local Value = require "cosy.value" local ok, err = pcall (function () local function show (name, x) print (name, Value.expr...
Small fix of client.
Small fix of client.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
83307551d14dff831118fe7549f40fbd7d0c2936
scen_edit/view/alliance/diplomacy_window.lua
scen_edit/view/alliance/diplomacy_window.lua
DiplomacyWindow = LCS.class{} function DiplomacyWindow:init(trigger) self.teamsPanel = StackPanel:New { itemMargin = {0, 0, 0, 0}, x = 1, y = 1, right = 1, autosize = true, resizeItems = false, } --titles local titlesPanel = MakeComponentPanel(self.teamsP...
DiplomacyWindow = LCS.class{} function DiplomacyWindow:init(trigger) self.teamsPanel = StackPanel:New { itemMargin = {0, 0, 0, 0}, x = 1, y = 1, right = 1, autosize = true, resizeItems = false, } --titles local titlesPanel = MakeComponentPanel(self.teamsP...
fix weird bugs with diplomacy window (probably some old changes went uncommitted..
fix weird bugs with diplomacy window (probably some old changes went uncommitted..
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
6fbba696c2e95d7917815b84aa015cdf1b0ee0da
AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua
AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Keybinding -- -------------------------- local WotLK = select(4, GetBuildInfo()) >= 30000 do local Type = "Keybinding" local Version = 9 local ControlBackdrop = { bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Inte...
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Keybinding -- -------------------------- local WotLK = select(4, GetBuildInfo()) >= 30000 do local Type = "Keybinding" local Version = 10 local ControlBackdrop = { bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Int...
AceGUI: Fix Keybinding widget text sometimes carrying over through a recycle.
AceGUI: Fix Keybinding widget text sometimes carrying over through a recycle. git-svn-id: 925b317e615c7fb120546cae7ddec4d0d0259f64@696 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
d9e75bd46c40f81ce91c516adf5ccc59361122a6
skins.lua
skins.lua
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- skins library loveframes.skins = {} -- available skins loveframes.skins.available = {} --[[---------------------------------...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- skins library loveframes.skins = {} -- available skins loveframes.skins.available = {} --[[---------------------------------...
Fixed #94
Fixed #94
Lua
mit
SimLeek/the-Open-Source-Pony-Game
d7dd1d46de46f78648c676ccbfcea1986d33abd9
kong/plugins/azure-functions/handler.lua
kong/plugins/azure-functions/handler.lua
local BasePlugin = require "kong.plugins.base_plugin" local constants = require "kong.constants" local meta = require "kong.meta" local http = require "resty.http" local pairs = pairs local server_header = meta._SERVER_TOKENS local conf_cache = setmetatable({}, { __mode = "k" }) ...
local BasePlugin = require "kong.plugins.base_plugin" local constants = require "kong.constants" local meta = require "kong.meta" local http = require "resty.http" local pairs = pairs local server_header = meta._SERVER_TOKENS local conf_cache = setmetatable({}, { __mode = "k" }) ...
fix(azure-functions) strip headers that are disallowed by HTTP/2
fix(azure-functions) strip headers that are disallowed by HTTP/2 Per https://tools.ietf.org/html/rfc7540#section-8.1.2.2 intermediaries that proxy HTTP/1.1 responses to HTTP/2 clients should strip certain headers that do not serve any purpose in HTTP/2. Not stripping these headers results in a protocol violation for R...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
aeea00bd4da718681aa7c3af1f8989d6065dbfff
Examples/firefox-debian-sandbox.cfg.lua
Examples/firefox-debian-sandbox.cfg.lua
-- example config for firefox sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua -- xpra x11-forwarding software (must be installed on host, v2.0 and up) may be used to isolate sanbox from host x11 service. -- opengl acceleration untested and may not work (especially with xpra ...
-- example config for firefox sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua -- using debian-sandbox.cfg.lua config file as base -- xpra x11-forwarding software (must be installed on host, v2.0 and up) may be used to isolate sanbox from host x11 service. -- opengl accelera...
fixup! Examples: rework and simplify firefox-debian-sandbox.cfg.lua
fixup! Examples: rework and simplify firefox-debian-sandbox.cfg.lua
Lua
mit
DarkCaster/Sandboxer,DarkCaster/Sandboxer
15d012b84b6de4d43796d9a45da54a133dab3ca2
xmake.lua
xmake.lua
set_xmakever("2.5.4") -- project set_project("hikyuu") add_rules("mode.debug", "mode.release") if not is_plat("windows") then add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan") end -- version set_version("1.2.4", {build="%Y%m%d%H%M"}) set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ...
set_xmakever("2.5.4") -- project set_project("hikyuu") add_rules("mode.debug", "mode.release") if not is_plat("windows") then add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan") end -- version set_version("1.2.4", {build="%Y%m%d%H%M"}) set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ...
fixed fmt
fixed fmt
Lua
mit
fasiondog/hikyuu
cd6961779781525f58f9797b19db2df796031ec2
item/traps.lua
item/traps.lua
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server 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 Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
fix an old style lookat() to work as intended
fix an old style lookat() to work as intended
Lua
agpl-3.0
Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content
c2bbdfa778a2c8cc3a8fed69028b6cd66149cf0b
lua/include/namespaces.lua
lua/include/namespaces.lua
local mod = {} local ffi = require "ffi" local serpent = require "Serpent" local stp = require "StackTracePlus" local lock = require "lock" ffi.cdef [[ struct namespace { }; struct namespace* create_or_get_namespace(const char* name); void namespace_store(struct namespace* ns, const char* key, const char* value...
local mod = {} local ffi = require "ffi" local serpent = require "Serpent" local stp = require "StackTracePlus" local lock = require "lock" ffi.cdef [[ struct namespace { }; struct namespace* create_or_get_namespace(const char* name); void namespace_store(struct namespace* ns, const char* key, const char* value...
namespaces: fix yet another memory leak
namespaces: fix yet another memory leak note: cb:set() is not appropiate here (needs to be reentrant)
Lua
mit
scholzd/MoonGen,bmichalo/MoonGen,scholzd/MoonGen,schoenb/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,schoenb/MoonGen,emmericp/MoonGen,atheurer/MoonGen,duk3luk3/MoonGen,gallenmu/MoonGen,kidaa/MoonGen,atheurer/MoonGen,atheurer/MoonGen,gallenmu/MoonGen,wenhuizhang/MoonGen,slyon/MoonGen,kidaa/MoonGen,werpat/MoonGen,NetronomeM...
2754f0e04afc5de4c31ddf15b5d616a480ca9fcb
xmake/modules/private/action/build/object.lua
xmake/modules/private/action/build/object.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 build object for batch
fix build object for batch
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
f85075a09f03155be17ac0a8e4eebb85aec0df1b
onmt/modules/Generator.lua
onmt/modules/Generator.lua
--[[ Default decoder generator. Given RNN state, produce categorical distribution for tokens and features Simply implements $$softmax(W h b)$$. version 2: merge FeaturesGenerator and Generator - the generator nn is a table --]] local Generator, parent = torch.class('onmt.Generator', 'onmt.Network') --...
--[[ Default decoder generator. Given RNN state, produce categorical distribution for tokens and features Simply implements $$softmax(W h b)$$. version 2: merge FeaturesGenerator and Generator - the generator nn is a table --]] local Generator, parent = torch.class('onmt.Generator', 'onmt.Network') --...
Clean RIndexLinear only when defined
Clean RIndexLinear only when defined Fixes #275.
Lua
mit
monsieurzhang/OpenNMT,da03/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,OpenNMT/Ope...
15ad4c2b47c68d0e58c790804a0f7f43f12039ca
kong/plugins/zipkin/reporter.lua
kong/plugins/zipkin/reporter.lua
local resty_http = require "resty.http" local to_hex = require "resty.string".to_hex local cjson = require "cjson".new() cjson.encode_number_precision(16) local zipkin_reporter_methods = {} local zipkin_reporter_mt = { __name = "kong.plugins.zipkin.reporter"; __index = zipkin_reporter_methods; } local function new_...
local resty_http = require "resty.http" local to_hex = require "resty.string".to_hex local cjson = require "cjson".new() cjson.encode_number_precision(16) local zipkin_reporter_methods = {} local zipkin_reporter_mt = { __name = "kong.plugins.zipkin.reporter"; __index = zipkin_reporter_methods; } local function new_...
kong/plugins/zipkin/reporter.lua: Use current kong service name as localEndpoint
kong/plugins/zipkin/reporter.lua: Use current kong service name as localEndpoint Fixes #12
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
6fdfa4d65e6899c80009dbdfc6940cf4f3210102
src/kong/plugins/authentication/schema.lua
src/kong/plugins/authentication/schema.lua
local constants = require "kong.constants" local utils = require "kong.tools.utils" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC and names then return false, "This field is not available ...
local constants = require "kong.constants" local utils = require "kong.tools.utils" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC and names then return false, "This field is not available ...
fixing logic in authentication schema
fixing logic in authentication schema
Lua
apache-2.0
shiprabehera/kong,kyroskoh/kong,jebenexer/kong,li-wl/kong,ind9/kong,ajayk/kong,vzaramel/kong,ind9/kong,jerizm/kong,xvaara/kong,salazar/kong,rafael/kong,vzaramel/kong,isdom/kong,ejoncas/kong,kyroskoh/kong,smanolache/kong,streamdataio/kong,Vermeille/kong,isdom/kong,streamdataio/kong,Kong/kong,beauli/kong,akh00/kong,ccyph...
8b1e662dee1fc1c8b94ff6a09ee9f57fc418dc40
support/mod_websocket.lua
support/mod_websocket.lua
module.host = "*" -- Global module local logger = require "util.logger"; local log = logger.init("mod_websocket"); local httpserver = require "net.httpserver"; local lxp = require "lxp"; local init_xmlhandlers = require "core.xmlhandlers"; local st = require "util.stanza"; local sm = require "core.sessionmanager"; lo...
--Obtained from http://code.google.com/p/prosody-modules/source/browse/mod_websocket/mod_websocket.lua --Author appears to be Ali Sabil <Ali.Sabil@gmail.com> --Code had no license in attribution in header, emailed Ali 4-17-12 to see if he wanted any since we will have to modify this heavily and probably re-release --Ch...
Convert to use util.xmppstream, started updating to latest WebSocket RFC xmppstream fixes based on: http://hg.prosody.im/0.8/rev/93ea0f9622a1 rfc: http://tools.ietf.org/html/rfc6455
Convert to use util.xmppstream, started updating to latest WebSocket RFC xmppstream fixes based on: http://hg.prosody.im/0.8/rev/93ea0f9622a1 rfc: http://tools.ietf.org/html/rfc6455
Lua
mit
ltg-uic/phenomena-website,ltg-uic/phenomena-website,ltg-uic/phenomena-website
b509bceb1bce79c9e5b0ddf51fa88957f8e3df9c
packages/torch/torch.lua
packages/torch/torch.lua
local function sizestr(x) local strt = {} table.insert(strt, _G.torch.typename(x):match('torch%.(.+)') .. ' - size: ') for i=1,x:nDimension() do table.insert(strt, x:size(i)) if i ~= x:nDimension() then table.insert(strt, 'x') end end return table.concat(strt) end -- k : name of var...
local function sizestr(x) local strt = {} table.insert(strt, _G.torch.typename(x):match('torch%.(.+)') .. ' - size: ') for i=1,x:nDimension() do table.insert(strt, x:size(i)) if i ~= x:nDimension() then table.insert(strt, 'x') end end if x:nDimension() == 0 then table.insert(st...
Fixed some details
Fixed some details
Lua
bsd-3-clause
soumith/TH,soumith/TH,soumith/TH,soumith/TH
c8a8c2a6a11dd781f3634ce6ef64ba4b57268ced
lib/utils.lua
lib/utils.lua
#!/usr/bin/env lua -- utils.lua -- Useful methods for process.lua script -- Olivier DOSSMANN --[[ Methods ]]-- function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) self:gsub(pattern, function(c) fields[#fields+1] = c end) return fields end function dele...
#!/usr/bin/env lua -- utils.lua -- Useful methods for process.lua script -- Olivier DOSSMANN --[[ Methods ]]-- function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) self:gsub(pattern, function(c) fields[#fields+1] = c end) return fields end function dele...
[FIX] refs #244 Kill dead coroutines
[FIX] refs #244 Kill dead coroutines
Lua
agpl-3.0
blankoworld/makefly,blankoworld/makefly,blankoworld/makefly
53920b58a3ca2e5f136c63115a28e708f56a2285
src/lua/example.capdiss.lua
src/lua/example.capdiss.lua
-- -- Capdiss script counting frames. -- capdiss = {} local i function capdiss.begin (filename, link_type) -- Not much to do here, just initialize the counter variable i = 0 io.write (string.format ("Begin parsing '%s'...\n", filename)) end function capdiss.each (ts, frame) i = i + 1 io.write (string.format ("%...
-- -- Capdiss script counting frames. -- capdiss = {} local i function capdiss.begin (filename, link_type) -- Not much to do here, just initialize the counter variable io.write (string.format ("Begin parsing '%s' (linktype: %s)...\n", filename, link_type)) end function capdiss.each (frame, ts, num) i = num io.wr...
New example script. Fix param order.
New example script. Fix param order.
Lua
mit
antagon/capdiss
53c0a44d35182cf5b44145ab681cbf063174a2a2
share/media/funnyordie.lua
share/media/funnyordie.lua
-- libquvi-scripts -- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2010 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public...
-- libquvi-scripts -- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2010 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public...
FIX: media/funnyordie.lua: Set "Accept-Encoding" HTTP header
FIX: media/funnyordie.lua: Set "Accept-Encoding" HTTP header For an unknown reason when: 1) libcurl sends "Accept-Encoding: deflate, gzip" by default 2) server returns gzipped data without "Encoding: gzip" within the reply Causing the following: 1) libcurl skips decompression and passes the compressed data to libquvi...
Lua
agpl-3.0
alech/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts
1d61bfded6f6d0a72cd71a177cd4b5b9fada69bb
vinyl/theme.lua
vinyl/theme.lua
-- bamboo, awesome3 theme, by zhuravlik, based on Zenburn --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") shared = "/usr/share/awesome" if not awful.util.file_readable(shared .. "/icons/awesom...
-- bamboo, awesome3 theme, by zhuravlik, based on Zenburn --{{{ Main local awful = require("awful") awful.util = require("awful.util") theme = {} home = os.getenv("HOME") config = awful.util.getdir("config") shared = "/usr/share/awesome" if not awful.util.file_readable(shared .. "/icons/awesom...
fixed vinyl
fixed vinyl
Lua
mit
mikar/awesome34-themes
3aa2d29b34a79c75b8ce5680851410f2f6ac331c
kong_api_authz/src/kong/plugins/opa/access.lua
kong_api_authz/src/kong/plugins/opa/access.lua
local cjson_safe = require "cjson.safe" local http = require "resty.http" local jwt = require "resty.jwt" -- string interpolation with named parameters in table local function interp(s, tab) return (s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end)) end -- query "Get a Document (with Input)" endpoi...
local cjson_safe = require "cjson.safe" local http = require "resty.http" local jwt = require "resty.jwt" -- string interpolation with named parameters in table local function interp(s, tab) return (s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end)) end -- query "Get a Document (with Input)" endpoi...
kong_api_authz: Fix error when no JWT token is provided
kong_api_authz: Fix error when no JWT token is provided When no token is provided with the request, the execution fail the attempt to index the field 'payload' (a nil value). In case the subject from the JWT token is not be defined or there's no token, 'anonymous' will be used instead. Fixes open-policy-agent/contrib...
Lua
apache-2.0
open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib,open-policy-agent/contrib
51a30013f3a118daa4fdc35f982c1bfad99c9324
mimetypes.lua
mimetypes.lua
local mimetypes = {} function mimetypes.getMime(ext) if ext == "" then return mimetypes['mconf']['.html']['mime'] else return mimetypes['mconf'][ext]['mime'] end end function mimetypes.isBinary(ext) if ext == "" then return mimetypes['mconf']['.html']['bin'] else return mimetypes['mconf'][ext]['bin'] e...
local mimetypes = {} function mimetypes.getMime(ext) --print("mimetypes: ext=" .. ext) if ext == "" or mimetypes['mconf'][ext] == nil then return "application/octet-stream" else return mimetypes['mconf'][ext]['mime'] end end function mimetypes.isBinary(ext) if ext == "" or mimetypes['mconf'][ext] == nil the...
fixes and improvoments in mimetypes.lua
fixes and improvoments in mimetypes.lua
Lua
mit
danielrempel/ladle
d8f2f5d50ec47abb3277c4d518de8febe54c459d
tacky/analysis/optimise.lua
tacky/analysis/optimise.lua
local builtins = require "tacky.analysis.resolve".builtins local visitor = require "tacky.analysis.visitor" --- Checks if a node has side effects local function hasSideEffects(node) local kind = node.tag if kind == "number" or kind == "boolean" or kind == "string" or node.tag == "key" or kind == "symbol" then -- D...
local builtins = require "tacky.analysis.resolve".builtins local visitor = require "tacky.analysis.visitor" --- Checks if a node has side effects local function hasSideEffects(node) local kind = node.tag if kind == "number" or kind == "boolean" or kind == "string" or node.tag == "key" or kind == "symbol" then -- D...
Minor fixes to the optimiser
Minor fixes to the optimiser
Lua
bsd-3-clause
SquidDev/urn,SquidDev/urn
2ea61fcd5a59d688f37acaa87ebb04ca6873e818
share/lua/meta/art/03_lastfm.lua
share/lua/meta/art/03_lastfm.lua
--[[ Gets an artwork from last.fm $Id$ Copyright © 2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
--[[ Gets an artwork from last.fm $Id$ Copyright © 2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
lua: lastfm: fix matching
lua: lastfm: fix matching (cherry picked from commit 4553ce6dac0b1aa9a46d6b033eb866581900f722) Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>
Lua
lgpl-2.1
jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1
d5008bf3d0cbdd812d5b34aaf73d15c9f0c4cbf7
packages/nn/LookupTable.lua
packages/nn/LookupTable.lua
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 2 function LookupTable:__init(nIndex, ...) parent.__init(self) if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then local size = select(1, ...) self.size = torch.LongStorage(#size + 1) ...
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 2 function LookupTable:__init(nIndex, ...) parent.__init(self) if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then local size = select(1, ...) self.size = torch.LongStorage(#size + 1) ...
bug corrections in LookupTable @#$%^&*()
bug corrections in LookupTable @#$%^&*()
Lua
bsd-3-clause
soumith/TH,soumith/TH,soumith/TH,soumith/TH
8b470280735545982a32ead11c6d9f9245a65dea
xmake/scripts/base/rule.lua
xmake/scripts/base/rule.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix object file path bug
fix object file path bug
Lua
apache-2.0
tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake
0e5de8a6148b12508e3dbcc1a68f39475a33721c
ffi/framebuffer_android.lua
ffi/framebuffer_android.lua
local ffi = require("ffi") local android = require("android") local BB = require("ffi/blitbuffer") local C = ffi.C --[[ configuration for devices with an electric paper display controller ]]-- -- does the device has an e-ink screen? local has_eink_screen, eink_platform = android.isEink() -- does the device needs to ...
local ffi = require("ffi") local android = require("android") local BB = require("ffi/blitbuffer") local C = ffi.C --[[ configuration for devices with an electric paper display controller ]]-- -- does the device has an e-ink screen? local has_eink_screen, eink_platform = android.isEink() -- does the device needs to ...
Android: Fix nighmode on devices w/ RGB565 windows w/ the C blitter (#1293)
Android: Fix nighmode on devices w/ RGB565 windows w/ the C blitter (#1293) The CBB can't do an invertBlitFrom if source & dest type don't match, so, do it another way in these instances ;).
Lua
agpl-3.0
Frenzie/koreader-base,Frenzie/koreader-base,koreader/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base
26eba4bcfdb3de662c16f359f66e4240fc9283d4
src/luarocks/core/vers.lua
src/luarocks/core/vers.lua
local vers = {} local util = require("luarocks.core.util") local require = nil -------------------------------------------------------------------------------- local deltas = { scm = 1100, cvs = 1000, rc = -1000, pre = -10000, beta = -100000, alpha = -1000000 } local version_mt = { ...
local vers = {} local util = require("luarocks.core.util") local require = nil -------------------------------------------------------------------------------- local deltas = { scm = 1100, cvs = 1000, rc = -1000, pre = -10000, beta = -100000, alpha = -1000000 } local version_mt = { ...
Fix version cache
Fix version cache
Lua
mit
keplerproject/luarocks,keplerproject/luarocks,luarocks/luarocks,keplerproject/luarocks,luarocks/luarocks,tarantool/luarocks,luarocks/luarocks,tarantool/luarocks,tarantool/luarocks,keplerproject/luarocks
4604c2e80440fd42840a23c530586edafdd5bf5c
gui-stobo.lua
gui-stobo.lua
#!./bin/lua require 'stobo' local lgi = require 'lgi' local Gtk = lgi.Gtk local builder = Gtk.Builder() builder:add_from_file('app/screen.glade') local window = builder:get_object('main') local statusbar = builder:get_object('statusbar') local listYears = builder:get_object('listYears') local list...
#!./bin/lua require 'stobo' local lgi = require 'lgi' local Gtk = lgi.Gtk local builder = Gtk.Builder() builder:add_from_file('app/screen.glade') local window = builder:get_object('main') local statusbar = builder:get_object('statusbar') local listYears = builder:get_object('listYears') local list...
Fixing stocks freeze
Fixing stocks freeze
Lua
mit
henriquegogo/stobo,henriquegogo/stobo,henriquegogo/stobo,henriquegogo/stobo
2d1dad1615f028e646f3294fa909f7d3020a3121
lvim/.config/lvim/lua/uelei/neotest.lua
lvim/.config/lvim/lua/uelei/neotest.lua
-- local function setup_vim_test() -- vim.api.nvim_exec( -- [[ -- " Test config -- let test#strategy = "neovim" -- let test#neovim#term_position = "belowright" -- let g:test#preserve_screen = 1 -- let g:test#echo_command = 1 -- " javascript -- " let g:test#j...
local status_ok, test = pcall(require, "neotest") if not status_ok then return end -- local function setup_vim_test() -- vim.api.nvim_exec( -- [[ -- " Test config -- let test#strategy = "neovim" -- let test#neovim#term_position = "belowright" -- let g:test#preserve_screen = 1 --...
🐛 fix(neotest): add protect call to neotest
🐛 fix(neotest): add protect call to neotest
Lua
mit
uelei/dotfiles
dd97e32469caf3ab583ed8e0e2c652419fbd0d61
kong/plugins/acl/migrations/001_14_to_15.lua
kong/plugins/acl/migrations/001_14_to_15.lua
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END; $$; DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "acls" ALT...
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END; $$; DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "acls" ALT...
fix(acl) fix migration of acls on postgres
fix(acl) fix migration of acls on postgres
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
cdf7907b22941072bbfe5ad5bb25a1ea9b754d40
extensions/application/test_application.lua
extensions/application/test_application.lua
hs.application = require("hs.application") hs.dockicon = require("hs.dockicon") menuTestValue = nil function testInitWithPidFailures() assertIsNil(hs.application.applicationForPID(1)) return success() end function testInitWithPid() local apps = hs.application.runningApplications() for _,app in pairs(apps) do...
hs.application = require("hs.application") hs.dockicon = require("hs.dockicon") menuTestValue = nil function testInitWithPidFailures() assertIsNil(hs.application.applicationForPID(1)) return success() end function testInitWithPid() local apps = hs.application.runningApplications() for _,app in pairs(apps) do...
make note of who to blame; fix helps in Xcode, not in GithubActions
make note of who to blame; fix helps in Xcode, not in GithubActions
Lua
mit
latenitefilms/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,Hammerspoon/hammerspoon,Hammerspoon/hammerspoon,asmagill/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,CommandPost/Command...
e2a5b6bd7586dc641bb5076d4e1a7cdef3491852
api/server.lua
api/server.lua
local htmlparser = require("htmlparser") local http = require('socket.http') local json = require('json') local app = require('waffle').CmdLine() local search = function(req, res) local query = req.url.args.zoektermen local queryType = tonumber(req.url.args.opZoeken) local queryPage = tonumber(req.url.args.page)...
local htmlparser = require("htmlparser") local http = require('socket.http') local json = require('json') local app = require('waffle').CmdLine() local search = function(req, res) local query = req.url.args.zoektermen local queryType = tonumber(req.url.args.opZoeken) local queryPage = tonumber(req.url.args.page)...
Fix date format
Fix date format
Lua
mit
JoostvDoorn/GlutenVrijApp
0fe7bd3216177265038ff7d3f83d1d47e748141c
src/humanoidspeed/src/Server/HumanoidSpeed.lua
src/humanoidspeed/src/Server/HumanoidSpeed.lua
--[=[ Manages speed of a humanoid @server @class HumanoidSpeed ]=] local require = require(script.Parent.loader).load(script) local BaseObject = require("BaseObject") local RogueHumanoidProperties = require("RogueHumanoidProperties") local HumanoidSpeed = setmetatable({}, BaseObject) HumanoidSpeed.ClassName = "H...
--[=[ Manages speed of a humanoid @server @class HumanoidSpeed ]=] local require = require(script.Parent.loader).load(script) local BaseObject = require("BaseObject") local RogueHumanoidProperties = require("RogueHumanoidProperties") local HumanoidSpeed = setmetatable({}, BaseObject) HumanoidSpeed.ClassName = "H...
docs: Fix HumanoidSpeed docs
docs: Fix HumanoidSpeed docs
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
cc0dec2faa68b6b1ac802b71e49a8a386f1b8a28
dev/coverage.lua
dev/coverage.lua
local string = require"luv.string" local table, require = table, require local io, ipairs, type, error, debug = io, ipairs, type, error, debug local unpack, pairs, math = unpack, pairs, math local Object = require"luv.oop".Object local html = require"luv.utils.html" local Exception = require"luv.exceptions".Exception ...
local string = require"luv.string" local table, require, tostring = table, require, tostring local io, ipairs, type, error, debug = io, ipairs, type, error, debug local unpack, pairs, math = unpack, pairs, math local Object = require"luv.oop".Object local html = require"luv.utils.html" local Exception = require"luv.exc...
Improved & fixed dev.coverage.
Improved & fixed dev.coverage.
Lua
bsd-3-clause
metadeus/luv
3bba9bf233d58591b2867175042646c3e2aafddf
examples/libcpp/premake5.lua
examples/libcpp/premake5.lua
-- Copyright © 2017 Embedded Artistry LLC. -- License: MIT. See LICENSE file for details. -- For reference, please refer to the premake wiki: -- https://github.com/premake/premake-core/wiki local ROOT = "./" local RESULTSROOT = ROOT .. "buildresults/%{cfg.platform}_%{cfg.buildcfg}/" ---------------------------------...
-- Copyright © 2017 Embedded Artistry LLC. -- License: MIT. See LICENSE file for details. -- For reference, please refer to the premake wiki: -- https://github.com/premake/premake-core/wiki local ROOT = "./" local RESULTSROOT = ROOT .. "buildresults/%{cfg.platform}_%{cfg.buildcfg}/" ---------------------------------...
Reorder to fix sequential build problem in mutex example
Reorder to fix sequential build problem in mutex example
Lua
cc0-1.0
embeddedartistry/embedded-resources,phillipjohnston/embedded-resources
072a5a60fd9195bce26fc902d552df655659f847
extension/script/backend/worker/filesystem.lua
extension/script/backend/worker/filesystem.lua
local utility = require 'remotedebug.utility' local ev = require 'common.event' local rdebug = require 'remotedebug.visitor' local OS = utility.platform_os() local absolute = utility.fs_absolute local u2a = utility.u2a or function (...) return ... end local a2u = utility.a2u or function (...) return ... end local sour...
local utility = require 'remotedebug.utility' local ev = require 'common.event' local rdebug = require 'remotedebug.visitor' local OS = utility.platform_os() local absolute = utility.fs_absolute local u2a = utility.u2a or function (...) return ... end local a2u = utility.a2u or function (...) return ... end local sour...
修复一个bug
修复一个bug
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
81a55a0e7a8b6c2c8f996d9a3c0b81d336e18a86
src/cosy/server/header/transfer_encoding.lua
src/cosy/server/header/transfer_encoding.lua
local Transfer_Encoding = { depends = { "Connection", "Content-Length", "TE", }, } function Transfer_Encoding.request (context) local request = context.request local headers = request.headers local tokens = {} for word in headers.transfer_encoding:gmatch "([^,%s]+)" do tokens [word:lower (...
local Transfer_Encoding = { depends = { "Connection", "Content-Length", "TE", }, } function Transfer_Encoding.request (context) local request = context.request local headers = request.headers local tokens = {} for word in headers.transfer_encoding:gmatch "([^,%s]+)" do tokens [word:lower (...
Fix missing variable.
Fix missing variable.
Lua
mit
CosyVerif/data-server,CosyVerif/data-server
d66eab4b15a74808a297e61254c81484f139683c
telnet.lua
telnet.lua
-- -- setup a telnet server that hooks the sockets input -- local client local server local function sendout(str) if client then client:send(str) end end local function onReceive(sock, input) node.input(input) end local function onDisconnect(sock) node.output(nil) client = nil end local...
-- -- setup a telnet server that hooks the sockets input -- local client local server local fifo local drained local function sendnext(sock) local s = table.remove(fifo, 1) if s then sock:send(s) else drained = true end end local function output(s) if client then table.ins...
use fifo to send output to telnet client
use fifo to send output to telnet client Should fix issues with only the first line of multiline output being displayed
Lua
mit
realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs
7fd896e7dfc30be91c3b1ac41aa7248720671a94
libs/web/luasrc/template.lua
libs/web/luasrc/template.lua
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
* libs/web: Fixed secure caching with setuid/setgid handling
* libs/web: Fixed secure caching with setuid/setgid handling git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2309 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ReclaimYourPrivacy/cloak-luci,projectbismark/luci-bismark,Flexibity/luci,saraedum/luci-packages-old,vhpham80/luci,Flexibity/luci,ch3n2k/luci,ThingMesh/openwrt-luci,ThingMesh/openwrt-luci,8devices/carambola2-luci,8devices/carambola2-luci,gwlim/luci,zwhfly/openwrt-luci,yeewang/openwrt-luci,gwlim/luci,jschmidlapp/luci,zwh...
04585beaafe473757b93f3f84319e687aca73e34
hammerspoon/hammerspoon.symlink/modules/audio-device.lua
hammerspoon/hammerspoon.symlink/modules/audio-device.lua
-- Define audio device names for headphone/speaker switching local usbAudioSearch = "VIA Technologies" -- USB sound card -- Toggle between speaker and headphone sound devices (useful if you have multiple USB soundcards that are always connected) function setDefaultAudio() local current = hs.audiodevice.defaultOutput...
-- -- Define audio device names for headphone/speaker switching -- local usbAudioSearch = "VIA Technologies" -- USB sound card -- -- -- Toggle between speaker and headphone sound devices (useful if you have multiple USB soundcards that are always connected) -- function setDefaultAudio() -- local current = hs.audiodev...
fix(Hammerspoon): Disable audio switcher, it causes unexpected audio splitting
fix(Hammerspoon): Disable audio switcher, it causes unexpected audio splitting
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
64dd93128926f2bf1941fc459a271bd2043c0bc3
MMOCoreORB/bin/scripts/screenplays/caves/tatooine_hutt_hideout.lua
MMOCoreORB/bin/scripts/screenplays/caves/tatooine_hutt_hideout.lua
HuttHideoutScreenPlay = ScreenPlay:new { numberOfActs = 1, lootContainers = { 134411, 8496263, 8496262, 8496260 }, lootLevel = 32, lootGroups = "armor_attachments", lootContainerRespawn = 1800 -- 30 minutes } registerScreenPlay("HuttHideoutScreenPlay", true) function HuttHideoutScreenPlay:start() ...
HuttHideoutScreenPlay = ScreenPlay:new { numberOfActs = 1, lootContainers = { 134411, 8496263, 8496262, 8496260 }, lootLevel = 32, lootGroups = "armor_attachments", lootContainerRespawn = 1800 -- 30 minutes } registerScreenPlay("HuttHideoutScreenPlay", true) function HuttHideoutScreenPlay:start() ...
(unstable) [fixed] Removed debug statements.
(unstable) [fixed] Removed debug statements. git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5488 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
ffbd7cc79eea7a0a4fd5d74f7609836bedfcb366
Disks/Config/Configuring.lua
Disks/Config/Configuring.lua
------- Metadata -------------------------------------------------------------- -- Configuring -- Author: Lucky Penny -- Description: Generates the meters necessary for disks configuration. -- License: Creative Commons BY-NC-SA 3.0 -- Version: 0.0.1 -- -- Initialize(): As described. -----------------------------------...
------- Metadata -------------------------------------------------------------- -- Configuring -- Author: Lucky Penny -- Description: Generates the meters necessary for disks configuration. -- License: Creative Commons BY-NC-SA 3.0 -- Version: 0.0.1 -- -- Initialize(): As described. -----------------------------------...
DisksConfig: Bug corrected Since the Var file template mentions the DiskTotal, care had to be taken to not have it repeat. Otherwise the config window and the meter itself wouldn't be able to generate properly
DisksConfig: Bug corrected Since the Var file template mentions the DiskTotal, care had to be taken to not have it repeat. Otherwise the config window and the meter itself wouldn't be able to generate properly
Lua
unlicense
Spesiel/LuckysDashboard,Spesiel/LuckysDashboard
9b329f3e5246477f039a1fb2b129706370237c89
src/lua-factory/sources/grl-spotify-cover.lua
src/lua-factory/sources/grl-spotify-cover.lua
--[[ * Copyright (C) 2015 Bastien Nocera. * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at yo...
--[[ * Copyright (C) 2015 Bastien Nocera. * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at yo...
lua-factory: port grl-spotify-cover.lua to the new lua system
lua-factory: port grl-spotify-cover.lua to the new lua system https://bugzilla.gnome.org/show_bug.cgi?id=753141 Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
Lua
lgpl-2.1
jasuarez/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins
83288c969ee29a62f3babcb00cfa5fa5394d7c67
worldedit_commands/mark.lua
worldedit_commands/mark.lua
worldedit.marker1 = {} worldedit.marker2 = {} worldedit.marker_region = {} --marks worldedit region position 1 worldedit.mark_pos1 = function(name) local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name] if pos1 ~= nil then --make area stay loaded local manip = minetest.get_voxel_manip() mani...
worldedit.marker1 = {} worldedit.marker2 = {} worldedit.marker_region = {} --marks worldedit region position 1 worldedit.mark_pos1 = function(name) local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name] if pos1 ~= nil then --make area stay loaded local manip = minetest.get_voxel_manip() mani...
Don't mark or load areas into memory when they are over a certain size, fixes #97
Don't mark or load areas into memory when they are over a certain size, fixes #97
Lua
agpl-3.0
Uberi/Minetest-WorldEdit
bf9881ca31671c591f449aaa51d68c21f1995dc5
lua/entities/gmod_wire_starfall_screen/init.lua
lua/entities/gmod_wire_starfall_screen/init.lua
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") include("libtransfer/libtransfer.lua") assert(SF, "Starfall didn't load correctly!") local context = SF.CreateContext() local screens = {} hook.Add("PlayerInitialSpawn","sf_screen_download",functio...
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") include("libtransfer/libtransfer.lua") assert(SF, "Starfall didn't load correctly!") local context = SF.CreateContext() local screens = {} hook.Add("PlayerInitialSpawn","sf_screen_download",functio...
Fixed input hook on SF screens. Fixes #87
Fixed input hook on SF screens. Fixes #87
Lua
bsd-3-clause
Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Xandaros/Starfall,INPStarfall/Starfall,INPStarfall/Starfall
74f1c41df6fa42f4428db56ffdcc17a6ed036254
pages/library/houses/bid/post.lua
pages/library/houses/bid/post.lua
function post() if not session:isLogged() then http:redirect("/") return end local account = session:loggedAccount() local house = db:singleQuery([[ SELECT c.name AS bidname, b.bid, b.bid_end, b.last_bid, a.name AS ownername, b.name, b.rent, b.size, b.beds, b.town_id, b.id FROM hou...
function post() if not session:isLogged() then http:redirect("/") return end local account = session:loggedAccount() local house = db:singleQuery([[ SELECT c.name AS bidname, b.bid, b.bid_end, b.last_bid, a.name AS ownername, b.name, b.rent, b.size, b.beds, b.town_id, b.id FROM hou...
Fix house bidding error
Fix house bidding error
Lua
mit
Raggaer/castro,Raggaer/castro,Raggaer/castro
80430c3b967d7428a8e66dcc9e59c7a5df235b2d
nvim/.config/nvim/after/plugin/lspconfig.rc.lua
nvim/.config/nvim/after/plugin/lspconfig.rc.lua
local nvim_lsp_installed, nvim_lsp = pcall(require, "lspconfig") if not nvim_lsp_installed then print("nvim-lsp is not installed! Aborting") return end local mason_installed, mason_lspconfig = pcall(require, "mason-lspconfig") if not mason_installed then print("Unable to install LSP servers because mason-lspco...
local nvim_lsp_installed, nvim_lsp = pcall(require, "lspconfig") if not nvim_lsp_installed then print("nvim-lsp is not installed! Aborting") return end local mason_installed, mason_config = pcall(require, "mason") if not mason_installed then print("Unable to install LSP servers because mason is not installed")...
fix: Fix mason install
fix: Fix mason install
Lua
mit
hectron/dotfiles,hectron/dotfiles
ab8aafbcfeff8a77050f3763a4a2b909c2eaa267
evaluation.lua
evaluation.lua
-- -- Created by IntelliJ IDEA. -- User: bking -- Date: 1/30/17 -- Time: 2:25 AM -- To change this template use File | Settings | File Templates. -- package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path require 'torch' require 'nn' require 'nnx' require 'util' require 'torch-rnn' require 'Dynamic...
-- -- Created by IntelliJ IDEA. -- User: bking -- Date: 1/30/17 -- Time: 2:25 AM -- To change this template use File | Settings | File Templates. -- package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path require 'torch' require 'nn' require 'nnx' require 'util' require 'torch-rnn' require 'Dynamic...
cuun fix eval"
cuun fix eval"
Lua
mit
kingb12/languagemodelRNN,kingb12/languagemodelRNN,kingb12/languagemodelRNN
dfe3d4996f0c279fa5454a6639694aeaaa1b1173
tests/sample.lua
tests/sample.lua
local cutil = require "cutil" function filter_spec_chars(s) local ss = {} for k = 1, #s do local c = string.byte(s,k) if not c then break end if (c>=48 and c<=57) or (c>= 65 and c<=90) or (c>=97 and c<=122) then table.insert(ss, string.char(c)) elseif c>=228 and c<=233 then local c1 = string....
local cutil = require "cutil" function filter_spec_chars(s) local ss = {} for k = 1, #s do local c = string.byte(s,k) if not c then break end if (c>=48 and c<=57) or (c>= 65 and c<=90) or (c>=97 and c<=122) then table.insert(ss, string.char(c)) elseif c>=228 and c<=233 then local c1 = string....
bugfix: last second char may be ingored
bugfix: last second char may be ingored
Lua
mit
chenweiqi/lua-cutil
1f41ddd22833ed01bb49d30b3d4eca107077de42
resources/prosody-plugins/mod_muc_allowners.lua
resources/prosody-plugins/mod_muc_allowners.lua
local filters = require 'util.filters'; local jid = require "util.jid"; local jid_bare = require "util.jid".bare; local jid_host = require "util.jid".host; local um_is_admin = require "core.usermanager".is_admin; local util = module:require "util"; local is_healthcheck_room = util.is_healthcheck_room; local extract_sub...
local filters = require 'util.filters'; local jid = require "util.jid"; local jid_bare = require "util.jid".bare; local jid_host = require "util.jid".host; local um_is_admin = require "core.usermanager".is_admin; local util = module:require "util"; local is_healthcheck_room = util.is_healthcheck_room; local extract_sub...
fix: Drops extra message sent on leave.
fix: Drops extra message sent on leave.
Lua
apache-2.0
jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet
b6f62fd983e470ee5983540721b6470276490b38
layout-app.lua
layout-app.lua
SILE.scratch.layout = "app" local class = SILE.documentState.documentClass SILE.documentState.paperSize = SILE.paperSizeParser("80mm x 128mm") SILE.documentState.orgPaperSize = SILE.documentState.paperSize class:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = { ...
SILE.scratch.layout = "app" local class = SILE.documentState.documentClass SILE.documentState.paperSize = SILE.paperSizeParser("80mm x 128mm") SILE.documentState.orgPaperSize = SILE.documentState.paperSize class:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = { ...
Always include headers in app layout, fixes #49
Always include headers in app layout, fixes #49
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
05c87568b77df00b484d9cad0b2d212052be485b
ios-icons/fn.lua
ios-icons/fn.lua
local insert = table.insert local fn = {} local append = function(a, b) for _, v in ipairs(b) do insert(a, v) end end fn.select = function(tab, cond) assert(type(cond) == 'function', 'cond must be a predicate') local result = {} for _,v in pairs(tab) do if type(v) == 'folder' then ...
local insert = table.insert local fn = {} local append = function(a, b) for _, v in ipairs(b) do insert(a, v) end end fn.select = function(tab, cond) assert(type(cond) == 'function', 'cond must be a predicate') local t = tab local result = {} if type(t) == 'folder' then t = t.icons ...
fixed fn.select so it works properly if given a folder as first argument
fixed fn.select so it works properly if given a folder as first argument
Lua
mit
profburke/ios-icons,profburke/ios-icons,profburke/ios-icons
9a031b53a2f7322f5bc6e0e9e694367d2a20ba0d
particles.lua
particles.lua
Particle = {} function Particle.ballImpactWithWall(nx, ny, x, y) local tex = love.graphics.newImage("assets/textures/particle.png") local emitter = love.graphics.newParticleSystem(tex,25) emitter:setDirection(vector.angleTo(nx, ny)) emitter:setAreaSpread("none",0,0) emitter:setEmissionRate(300) emitter:set...
Particle = {} function Particle.ballImpactWithWall(nx, ny, x, y) local tex = love.graphics.newImage("assets/textures/particle.png") local emitter = love.graphics.newParticleSystem(tex,25) emitter:setDirection(vector.angleTo(nx, ny)) emitter:setAreaSpread("none",0,0) emitter:setEmissionRate(300) emitter:set...
Fixed particle offset for ball+wall collisions
Fixed particle offset for ball+wall collisions
Lua
mit
GuiSim/pixel
72838e1936041a2ca4e15a271ff6f4399a5767c2
source/lt/display_data.lua
source/lt/display_data.lua
-- a package of classes for describing display data -- these classes are used by the display list objects and the resource loaded -- copyright 2016 Samuel Baird MIT Licence local class = require('core.class') local array = require('core.array') local math = require('core.math') local cache = require('core.cache') -- ...
-- a package of classes for describing display data -- these classes are used by the display list objects and the resource loaded -- copyright 2016 Samuel Baird MIT Licence local class = require('core.class') local array = require('core.array') local math = require('core.math') local cache = require('core.cache') -- ...
bug fix in clip data instance name assignment
bug fix in clip data instance name assignment
Lua
mit
samuelwbaird/letter
d8b50be25c2650663bdf7bc7afaa4bd8c4242af4
NaoTHSoccer/Make/projectconfig.lua
NaoTHSoccer/Make/projectconfig.lua
---------------------------------------- function printPath(prefix, path) local msg = tostring(prefix) .. tostring(path) if path == nil then print ( "WARNING: path not set:", msg ) elseif os.isdir(path) then print ( msg ) else print ( "ERROR: path doesn't exist:", msg ) end end function table.append(t,s) i...
-------------------------------------------------------------- function printPath(prefix, path) local msg = tostring(prefix) .. tostring(path) if path == nil then print ( "WARNING: path not set:", msg ) elseif os.isdir(path) then print ( msg ) else print ( "ERROR: path doesn't exist:", msg ) end end functio...
fixed warning in projectconfig.lua
fixed warning in projectconfig.lua
Lua
apache-2.0
BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH
2c166275815aa0030503c180ffdf203607dc3f30
lua/starfall/libs_sh/net.lua
lua/starfall/libs_sh/net.lua
------------------------------------------------------------------------------- -- Networking library. ------------------------------------------------------------------------------- local net = net --- Net message library. Used for sending data from the server to the client and back local net_library, _ = SF.Librari...
------------------------------------------------------------------------------- -- Networking library. ------------------------------------------------------------------------------- local net = net --- Net message library. Used for sending data from the server to the client and back local net_library, _ = SF.Librari...
[Fix] some netlibs not doing typechecks
[Fix] some netlibs not doing typechecks
Lua
bsd-3-clause
Jazzelhawk/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall
a32832a1d32c7fce4d698f1b185b584466af0d10
game/scripts/vscripts/modules/SimpleAI/SimpleAI.lua
game/scripts/vscripts/modules/SimpleAI/SimpleAI.lua
AI_THINK_INTERVAL = 0.3 AI_STATE_IDLE = 0 AI_STATE_AGGRESSIVE = 1 AI_STATE_RETURNING = 2 AI_STATE_CASTING = 3 AI_STATE_ORDER = 4 ModuleLinkLuaModifier(..., "modifier_simple_ai") SimpleAI = {} SimpleAI.__index = SimpleAI function SimpleAI:new( unit, profile, params ) local ai = {} setmetatable( ai, SimpleAI ) ai...
AI_THINK_INTERVAL = 0.3 AI_STATE_IDLE = 0 AI_STATE_AGGRESSIVE = 1 AI_STATE_RETURNING = 2 AI_STATE_CASTING = 3 AI_STATE_ORDER = 4 ModuleLinkLuaModifier(..., "modifier_simple_ai") SimpleAI = {} SimpleAI.__index = SimpleAI function SimpleAI:new( unit, profile, params ) local ai = {} setmetatable( ai, SimpleAI ) ai...
fix(SimpleAI): bosses AI aggro target won't be reattacked after invulnerability
fix(SimpleAI): bosses AI aggro target won't be reattacked after invulnerability This is caused by wired MoveToTargetToAttack behaviour. It stops attacking if target get's invulnerable. Under normal conditions, it should be handled by IsInvulnerable() check above, but since think interval is much larger than invulnerab...
Lua
mit
ark120202/aabs
b5b652042b739acb2a899d18f0dad3b5bafc01da
test_scripts/Polices/build_options/ATF_Start_PTU_retry_sequence.lua
test_scripts/Polices/build_options/ATF_Start_PTU_retry_sequence.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Local Policy Table retry sequence start -- -- Description: -- In case PoliciesManager does not receive the Updated PT during time defined in -- "timeout_after_x_seconds" section ...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Local Policy Table retry sequence start -- -- Description: -- In case PoliciesManager does not receive the Updated PT during time defined in -- "timeout_after_x_seconds" section ...
Fix retry sequence
Fix retry sequence
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
06e63ed65e70d382981abada5aba73e65c6ccd14
applications/luci-wol/luasrc/model/cbi/wol.lua
applications/luci-wol/luasrc/model/cbi/wol.lua
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local uc...
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local uc...
applications/luci-wol: fix XSS
applications/luci-wol: fix XSS git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6545 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI
876d3b6debff62c479ccb0f8e59e3d7bfe28cfa7
RobotModel.lua
RobotModel.lua
local ffi = require 'ffi' local torch = require 'torch' local moveit = require 'moveit.env' local utils = require 'moveit.utils' local ros = require 'ros' local std = ros.std local RobotModel = torch.class('moveit.RobotModel', moveit) local f function init() local RobotModel_method_names = { "new", "delete...
local ffi = require 'ffi' local torch = require 'torch' local moveit = require 'moveit.env' local utils = require 'moveit.utils' local ros = require 'ros' local std = ros.std local RobotModel = torch.class('moveit.RobotModel', moveit) local f function init() local RobotModel_method_names = { "new", "delete...
bugfix
bugfix
Lua
bsd-3-clause
Xamla/torch-moveit
18173f070458106fe3c98a0e5f03f3b1a66ed754
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
Fix saving of ipkg configuration file
Fix saving of ipkg configuration file
Lua
apache-2.0
8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci
729519e7e948fc1f1daa914faebfa66bf3c3f19d
rootfs/usr/local/etc/haproxy/lua/auth-request.lua
rootfs/usr/local/etc/haproxy/lua/auth-request.lua
-- The MIT License (MIT) -- -- Copyright (c) 2018 Tim Düsterhus -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
-- The MIT License (MIT) -- -- Copyright (c) 2018 Tim Düsterhus -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
Fix status check of auth-request.lua
Fix status check of auth-request.lua
Lua
apache-2.0
jcmoraisjr/haproxy-ingress,jcmoraisjr/haproxy-ingress
8fd802a0117c43e949416df7abe429bfa196c5b6
src/server/base/Factory.lua
src/server/base/Factory.lua
--[[ Copyright (c) 2015 gameboxcloud.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
--[[ Copyright (c) 2015 gameboxcloud.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
fix app config
fix app config
Lua
mit
dualface/gbc-core,dualface/gbc-core,dualface/gbc-core,dualface/gbc-core
792b9fc52f872c668754ef0b0a7022b95fc4870f
gumbo/dom/Element.lua
gumbo/dom/Element.lua
local util = require "gumbo.dom.util" local Buffer = require "gumbo.util".Buffer local getters, setters = {}, {} local Element = util.merge("Node", "ChildNode", { type = "element", nodeType = 1, namespaceURI = "http://www.w3.org/1999/xhtml", attributes = {} }) function Element:__index(k) if type(k...
local util = require "gumbo.dom.util" local Buffer = require "gumbo.util".Buffer local getters, setters = {}, {} local Element = util.merge("Node", "ChildNode", { type = "element", nodeType = 1, namespaceURI = "http://www.w3.org/1999/xhtml", attributes = {} }) function Element:__index(k) if type(k...
Add FIXME note for Element.innerHTML
Add FIXME note for Element.innerHTML
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
bd8be73109f3835fb5248e540cc6ca8d34b644ac
himan-scripts/LVP.lua
himan-scripts/LVP.lua
logger:Info("Calculating LVP (Low Visibility Procedures) probability") local Missing = missingf local probLVP = {} local producer = configuration:GetSourceProducer(0) local ensSize = tonumber(radon:GetProducerMetaData(producer, "ensemble size")) if not ensSize then logger.Error("Ensemble size not found from datab...
logger:Info("Calculating LVP (Low Visibility Procedures) probability") local Missing = missingf local probLVP = {} local producer = configuration:GetSourceProducer(0) local ensSize = tonumber(radon:GetProducerMetaData(producer, "ensemble size")) if not ensSize then logger.Error("Ensemble size not found from datab...
Fix LVP to read MEPS-lagged forecasts
Fix LVP to read MEPS-lagged forecasts
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
c1b4210ac294c3bb26840358980f66ad86bd8b3b
libs/web/luasrc/template.lua
libs/web/luasrc/template.lua
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
* Fixed last commit
* Fixed last commit git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2308 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ThingMesh/openwrt-luci,saraedum/luci-packages-old,8devices/carambola2-luci,zwhfly/openwrt-luci,ch3n2k/luci,gwlim/luci,jschmidlapp/luci,phi-psi/luci,alxhh/piratenluci,ThingMesh/openwrt-luci,vhpham80/luci,jschmidlapp/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,jschmidlapp/luci,eugenesan/openwrt-luci,gwlim/luci,F...
72f7f08c12462d59b94f36e01a5db5e51b1a04c9
lib/acid/unittest.lua
lib/acid/unittest.lua
local _M = { _VERSION='0.1' } local function tostr(x) return '[' .. tostring( x ) .. ']' end local function dd(...) local args = {...} local s = '' for _, mes in ipairs(args) do s = s .. tostring(mes) end _M.output( s ) end function _M.output(s) print( s ) end local function is_t...
local _M = { _VERSION='0.1' } local function tostr(x) return '[' .. tostring( x ) .. ']' end local function dd(...) local args = {...} local s = '' for _, mes in ipairs(args) do s = s .. tostring(mes) end _M.output( s ) end function _M.output(s) print( s ) end local function is_t...
fix unittest: eqdict add space between expectation and mes
fix unittest: eqdict add space between expectation and mes
Lua
mit
baishancloud/lua-acid,baishancloud/lua-acid,baishancloud/lua-acid
7d029bc05976bd2fff513b160e2c6e4fc8ce3b42
modules/goodreads.lua
modules/goodreads.lua
local simplehttp = require'simplehttp' local urlEncode = function(str) return str:gsub( '([^%w ])', function (c) return string.format ("%%%02X", string.byte(c)) end ):gsub(' ', '+') end local blacklistedShelves = { ['series'] = true, ['to-read'] = true, ['favourites'] = true, ['favorites'] = true, } l...
local simplehttp = require'simplehttp' local urlEncode = function(str) return str:gsub( '([^%w ])', function (c) return string.format ("%%%02X", string.byte(c)) end ):gsub(' ', '+') end local blacklistedShelves = { ['series'] = true, ['to-read'] = true, ['favourites'] = true, ['favorites'] = true, } l...
goodreads: Fix date output.
goodreads: Fix date output. Former-commit-id: 2dfb51d4db3b9f99d20f5a20977c7056517caf29 [formerly 02e9f45536ec151ba477bc335387828643709b8e] Former-commit-id: b4724a96028b6ca167be9ceb343190e52c4f0884
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
d4aa44310c52465dace1fc2c9e39676525141ab2
SpatialBatchNormalization.lua
SpatialBatchNormalization.lua
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs coming from convolution l...
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs coming from convolution l...
fix batchnorm reset
fix batchnorm reset
Lua
bsd-3-clause
nicholas-leonard/nn,sagarwaghmare69/nn,jonathantompson/nn,kmul00/nn,diz-vara/nn,PraveerSINGH/nn,apaszke/nn,elbamos/nn,eriche2016/nn,joeyhng/nn,andreaskoepf/nn,colesbury/nn,caldweln/nn,jhjin/nn,xianjiec/nn
1e2d9409a5d6799a8a60929e2ee6a2906cb7705c
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
aircross/OpenWrt-Firefly-LuCI,bittorf/luci,tcatm/luci,ollie27/openwrt_luci,jorgifumi/luci,fkooman/luci,opentechinstitute/luci,shangjiyu/luci-with-extra,maxrio/luci981213,thesabbir/luci,MinFu/luci,Hostle/openwrt-luci-multi-user,wongsyrone/luci-1,RuiChen1113/luci,artynet/luci,981213/luci-1,palmettos/cnLuCI,shangjiyu/luci...
ada2d5696c68719e7702f6e0f63aeb70d5a94dde
protocols/ppp/luasrc/model/network/proto_ppp.lua
protocols/ppp/luasrc/model/network/proto_ppp.lua
--[[ LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.o...
--[[ LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.o...
protocols/ppp: fix install state detection with netifd
protocols/ppp: fix install state detection with netifd git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8657 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
a2d608756ff0dc359dce3b3ae0c4e320fdfaff4b
libs/http/luasrc/http/protocol/conditionals.lua
libs/http/luasrc/http/protocol/conditionals.lua
--[[ HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
--[[ HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
libs/http: fix incorrent treatment of If-None-Match (#100)
libs/http: fix incorrent treatment of If-None-Match (#100) git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5635 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