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
d59f931edacf92297cc01b885f63058ba54a3ba2
src/apps/ddos/ddos.lua
src/apps/ddos/ddos.lua
module(..., package.seeall) local app = require("core.app") local buffer = require("core.buffer") local datagram = require("lib.protocol.datagram") local ffi = require("ffi") local filter = require("lib.pcap.filter") local ipv4 = require("lib.protocol.ipv4") local lib = require("core.lib") local link = require("core.l...
module(..., package.seeall) local app = require("core.app") local buffer = require("core.buffer") local datagram = require("lib.protocol.datagram") local ffi = require("ffi") local filter = require("lib.pcap.filter") local ipv4 = require("lib.protocol.ipv4") local lib = require("core.lib") local link = require("core.l...
Fix slowdown
Fix slowdown So it seems that "return" causes a real slow down for some reason. This refactors code so that it avoids calling return (still there in one location though) and thus achieves a great speedup compared to before. Now doing 0.5Mpps at 70% CPU utilization. Passing all legitimate traffic with no extra latency...
Lua
apache-2.0
plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch
d8c53fe2821571b293f1ecfdbeb7a30efb688218
src/builtin/macros.lua
src/builtin/macros.lua
-- Extra macros for automating proof construction using Lua. -- This macro creates the syntax-sugar -- name bindings ',' expr -- For a function f with signature -- f : ... (A : Type) ... (Pi x : A, ...) -- -- farity is the arity of f -- typepos is the position of (A : Type) argument -- lambdapos is the position...
-- Extra macros for automating proof construction using Lua. -- This macro creates the syntax-sugar -- name bindings ',' expr -- For a function f with signature -- f : ... (A : Type) ... (Pi x : A, ...) -- -- farity is the arity of f -- typepos is the position of (A : Type) argument -- lambdapos is the position...
fix(builtin/macros): test whether there is an accidental variable capture in 'obtain' macro applications
fix(builtin/macros): test whether there is an accidental variable capture in 'obtain' macro applications Signed-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>
Lua
apache-2.0
codyroux/lean0.1,codyroux/lean0.1,codyroux/lean0.1,codyroux/lean0.1
ac5ffd9edf2d54f38adbaf956876e9df8416ba26
otouto/plugins/ping.lua
otouto/plugins/ping.lua
--[[ ping.lua Sends a response, then updates it with the time it took to send. I added marco/polo because a cute girl asked and I'm a sellout. Copyright 2016 topkecleon <drew@otou.to> This code is licensed under the GNU AGPLv3. See /LICENSE for details. ]]-- local bindings = require('otouto.bindi...
--[[ ping.lua Sends a response, then updates it with the time it took to send. I added marco/polo because a cute girl asked and I'm a sellout. Copyright 2016 topkecleon <drew@otou.to> This code is licensed under the GNU AGPLv3. See /LICENSE for details. ]]-- local bindings = require('otouto.bindi...
Fix an important regression in ping.lua
Fix an important regression in ping.lua
Lua
agpl-3.0
bb010g/otouto,topkecleon/otouto
0e8eb83668f83d230a6f63afb7a52f544b762027
entities/entities/info_node_base/shared.lua
entities/entities/info_node_base/shared.lua
ENT.Type = "anim" ENT.Model = "" ENT.RenderGroup = RENDERGROUP_BOTH function ENT:SetupDataTables() self:NetworkVar("Int", 0, "Cost") self:NetworkVar("Int", 1, "TrapCost") self:NetworkVar("Bool", 0, "Active") self:NetworkVar("String", 0, "Description") end function ENT:Initialize() self:SetModel(self.Model) self...
ENT.Type = "anim" ENT.Model = "" ENT.RenderGroup = RENDERGROUP_BOTH function ENT:SetupDataTables() self:NetworkVar("Int", 0, "Cost") self:NetworkVar("Int", 1, "TrapCost") self:NetworkVar("Bool", 0, "Active") self:NetworkVar("String", 0, "Description") end function ENT:Initialize() self:SetModel(self.Model) self...
More attempts to fix physics crashes
More attempts to fix physics crashes
Lua
apache-2.0
ForrestMarkX/glua-ZombieMaster
2374f3dd1d4e268b0a492efefd298b3e8a96b5b6
src/nodes/platform.lua
src/nodes/platform.lua
local Timer = require 'vendor/timer' local Platform = {} Platform.__index = Platform function Platform.new(node, collider) local platform = {} setmetatable(platform, Platform) --If the node is a polyline, we need to draw a polygon rather than rectangle if node.polyline or node.polygon then lo...
local Timer = require 'vendor/timer' local Platform = {} Platform.__index = Platform function Platform.new(node, collider) local platform = {} setmetatable(platform, Platform) --If the node is a polyline, we need to draw a polygon rather than rectangle if node.polyline or node.polygon then ...
FIX Issue 244
FIX Issue 244
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua
827470992479358f7a65a0d03d27851c65fcbd8b
service/service_mgr.lua
service/service_mgr.lua
local skynet = require "skynet" local cmd = {} local service = {} function cmd.LAUNCH(service_name, ...) local s = service[service_name] if type(s) == "number" then return s end if s == nil then s = {} service[service_name] = s else assert(type(s) == "table") local co = coroutine.running() table.ins...
local skynet = require "skynet" local cmd = {} local service = {} function cmd.LAUNCH(service_name, ...) local s = service[service_name] if type(s) == "number" then return s end if s == nil then s = { launch = true } service[service_name] = s elseif s.launch then assert(type(s) == "table") local co = ...
bugfix: service manager dead lock
bugfix: service manager dead lock
Lua
mit
iskygame/skynet,zzh442856860/skynet,microcai/skynet,kebo/skynet,ruleless/skynet,sanikoyes/skynet,zhaijialong/skynet,chenjiansnail/skynet,sundream/skynet,samael65535/skynet,zhangshiqian1214/skynet,ludi1991/skynet,Zirpon/skynet,xinjuncoding/skynet,catinred2/skynet,rainfiel/skynet,QuiQiJingFeng/skynet,pigparadise/skynet,x...
0e493d86ebcfb62fb1b7a7a7afd39dbf2b0a416e
Modules/Client/Ragdoll/Classes/RagdollableClient.lua
Modules/Client/Ragdoll/Classes/RagdollableClient.lua
--- -- @classmod RagdollableClient -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local BaseObject = require("BaseObject") local RagdollableConstants = require("RagdollableConstants") local CharacterUtils = require(...
--- -- @classmod RagdollableClient -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local BaseObject = require("BaseObject") local RagdollableConstants = require("RagdollableConstants") local CharacterUtils = require(...
Fix ragdolling with swapped network owner
Fix ragdolling with swapped network owner
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
27c581142457b64561067aa7e41f83f991bcf559
app/templates/_main.lua
app/templates/_main.lua
-- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- Fix music audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode) -- Require local cacharro = require("bower_components.cacharro.cacharro") local middleclass = require("bower_components.middleclass.middleclass") local inspect = require("b...
-- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- Fix music audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode) -- Require local cacharro = require("bower_components.cacharro.cacharro") local middleclass = require("bower_components.middleclass.middleclass") local ads = require("ads")...
Fixed sme errors
Fixed sme errors
Lua
mit
Arlefreak/generator-coronasdk
a7f70f9746af3354e2f8a5332eddeb322ed50e76
src/npge/alignment/move_identical.lua
src/npge/alignment/move_identical.lua
-- use C version if available local has_c, cmove_identical = pcall(require, 'npge.alignment.cmove_identical') if has_c then return cmove_identical end return function(rows) -- Input: -- ...... -- ..... -- ....... -- Output: -- *** .... -- *** , .. -- **...
-- use C version if available local has_c, cmove_identical = pcall(require, 'npge.alignment.cmove_identical') if has_c then return cmove_identical end return function(rows) -- Input: -- ...... -- ..... -- ....... -- Output: -- *** .... -- *** , .. -- **...
fix Lua version of move_identical
fix Lua version of move_identical (failed against empty rows list)
Lua
mit
npge/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge
bc978841c86e077817f41f5daa42a332071a1fd0
src/patch/ui/lib/mppatch_modutils.lua
src/patch/ui/lib/mppatch_modutils.lua
-- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
-- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
Fixed isModInstalled.
Fixed isModInstalled.
Lua
mit
Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch
f0135380a7f35589595f4819e98acdff4d4efb6d
src/lunajson/encode.lua
src/lunajson/encode.lua
local byte = string.byte local find = string.find local format = string.format local gsub = string.gsub local match = string.match local rawequal = rawequal local tostring = tostring local pairs = pairs local type = type local huge = 1/0 local tiny = -1/0 local function encode(v, nullv) local i = 1 local builder = {...
local byte = string.byte local find = string.find local format = string.format local gsub = string.gsub local match = string.match local rawequal = rawequal local tostring = tostring local pairs = pairs local type = type local huge = 1/0 local tiny = -1/0 local f_string_pat if _VERSION <= "Lua 5.1" then -- use the cl...
fix pattern
fix pattern
Lua
mit
tst2005/lunajson,bigcrush/lunajson,tst2005/lunajson,grafi-tt/lunajson,bigcrush/lunajson,csteddy/lunajson,grafi-tt/lunajson,csteddy/lunajson,grafi-tt/lunajson
8000f6d1362fc38ebe349119554d291f6226e04e
lgi/override/Gdk.lua
lgi/override/Gdk.lua
------------------------------------------------------------------------------ -- -- LGI Gdk3 override module. -- -- Copyright (c) 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ----------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI Gdk3 override module. -- -- Copyright (c) 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ----------------------------------------------------------------------...
Fix compatibility with Gtk+ 2.x: Gdk.RGBA is only available in Gtk+ 3.
Fix compatibility with Gtk+ 2.x: Gdk.RGBA is only available in Gtk+ 3.
Lua
mit
psychon/lgi,pavouk/lgi
25380fa5fa074ea74eae10a26299a83149fe485c
lua/entities/sent_deployableballoons.lua
lua/entities/sent_deployableballoons.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
Balloon Deployer: remove unused Initialize hook Fixes #1511
Balloon Deployer: remove unused Initialize hook Fixes #1511
Lua
apache-2.0
wiremod/wire,NezzKryptic/Wire,Grocel/wire,garrysmodlua/wire,sammyt291/wire,thegrb93/wire,dvdvideo1234/wire,bigdogmat/wire
b7de920f94f6549da8f853573a667f8e2343dd6e
lib/pkg/protobuf.lua
lib/pkg/protobuf.lua
return { source = { type = 'git', location = 'https://github.com/google/protobuf.git', -- "stable" version, newer have problems with cross-compiling branch = '3.1.x' }, build = { type = 'GNU', generate = true, target_requires_host = true, ...
return { source = { type = 'git', location = 'https://github.com/bazurbat/protobuf.git', branch = '3.5.x', exclude_submodules = true, }, build = { type = 'GNU', generate = true, target_requires_host = true, options = { '--disa...
Bump protobuf to 3.5.x, target build fixes
Bump protobuf to 3.5.x, target build fixes
Lua
mit
bazurbat/jagen
37f5a4350fcbec19975dea687e5741b3e29c3950
src/reactor/propTypes/tableShape.lua
src/reactor/propTypes/tableShape.lua
local getPrintableValue = require('reactor.helpers.getPrintableValue') local function getIncorrectKeyCountFailureReason(keyCount) return 'Failed to validate prop as tableShape, ' .. 'expected table to have ' .. keyCount .. 'properties' end local function getKeyMismatchFailureReason(expectedKey) return 'Failed...
local getPrintableValue = require('reactor.helpers.getPrintableValue') local function getIncorrectKeyCountFailureReason(keyCount) return 'Failed to validate prop as tableShape, ' .. 'expected table to have ' .. keyCount .. 'properties' end local function getKeyMismatchFailureReason(expectedKey) return 'Failed...
fix linting errors in tableShape proptype
fix linting errors in tableShape proptype
Lua
mit
talldan/lua-reactor
c52e70c594c3ed66a8f7f15c9440398f31009a13
src/copas/semaphore.lua
src/copas/semaphore.lua
local copas = require("copas") local DEFAULT_TIMEOUT = 10 local semaphore = {} semaphore.__index = semaphore -- registry, semaphore indexed by the coroutines using them. local registry = setmetatable({}, { __mode="kv" }) -- create a new semaphore -- @param max maximum number of resources the semaphore can hold (t...
local copas = require("copas") local DEFAULT_TIMEOUT = 10 local semaphore = {} semaphore.__index = semaphore -- registry, semaphore indexed by the coroutines using them. local registry = setmetatable({}, { __mode="kv" }) -- create a new semaphore -- @param max maximum number of resources the semaphore can hold (t...
fix(semaphore) better check on arguments
fix(semaphore) better check on arguments
Lua
mit
keplerproject/copas
675c414b59d78a79bb64e541c2be8187a0671c13
src/lunajson/decode.lua
src/lunajson/decode.lua
local floor = math.floor local pow = math.pow local byte = string.byte local char = string.char local find = string.find local gsub = string.gsub local len = string.len local match = string.match local sub = string.sub local concat = table.concat local tonumber = tonumber local band, bor, rshift if _VERSION == 'Lua 5....
local floor = math.floor local pow = math.pow local byte = string.byte local char = string.char local find = string.find local gsub = string.gsub local len = string.len local match = string.match local sub = string.sub local concat = table.concat local tonumber = tonumber local band, bor, rshift if _VERSION == 'Lua 5....
fix backslash detection
fix backslash detection
Lua
mit
grafi-tt/lunajson,grafi-tt/lunajson,tst2005/lunajson,csteddy/lunajson,grafi-tt/lunajson,bigcrush/lunajson,csteddy/lunajson,tst2005/lunajson,bigcrush/lunajson
a56af7d4f5944946d90174d60ef2bdcb7a92b3c8
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
applications/luci-diag-devinfo: fix lost description in netdiscover_devinfo.lua, patch by "BasicXP" <basicxp@ubuntu.com>
applications/luci-diag-devinfo: fix lost description in netdiscover_devinfo.lua, patch by "BasicXP" <basicxp@ubuntu.com> git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@9051 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
4004db41c14d8e0d6e0a4dfe51f10fa7865cce3a
assets/scripts/bots/workbot/WorkBot.lua
assets/scripts/bots/workbot/WorkBot.lua
-- Mining Job class 'WorkBot' (Bot) WorkBot.States = { WAITING_FOR_JOB, } function WorkBot:__init(homeCoord) Bot.__init(self) LuaDebug.Log('WorkBot:__init() called!') self._homeCoord = homeCoord self._state = WorkBot.States.WAITING_FOR_JOB self._job = nil end function WorkBot:getDes...
-- Mining Job class 'WorkBot' (Bot) WorkBot.States = { WAITING_FOR_JOB = 0, MINING = 1 } function WorkBot:__init(homeCoord) Bot.__init(self) LuaDebug.Log('WorkBot:__init() called!') self._homeCoord = homeCoord self._state = WorkBot.States.WAITING_FOR_JOB self._job = nil end function ...
Fixed syntax error in WorkBot code.
Fixed syntax error in WorkBot code.
Lua
mit
NoxHarmonium/spacestationkeeper,NoxHarmonium/spacestationkeeper
91a8d4091cc320bed714f51f2e32824d80b2a2f7
packages/unichar/init.lua
packages/unichar/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "unichar" function package:registerCommands () self:registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typese...
local base = require("packages.base") local package = pl.class(base) package._name = "unichar" function package:registerCommands () self:registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typese...
fix(packages): Combine `\unichar`'ed chars with same font only
fix(packages): Combine `\unichar`'ed chars with same font only
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
2afec592f8efd2ee234ec6936a7b4b2e804b2160
plugins/autostandby.koplugin/main.lua
plugins/autostandby.koplugin/main.lua
local Device = require("device") if not Device:isPocketBook() --[[and not Device:isKobo()]] then return { disabled = true } end local PowerD = Device:getPowerDevice() local DataStorage = require("datastorage") local LuaSettings = require("luasettings") local UIManager = require("ui/uimanager") local WidgetContain...
local Device = require("device") if not Device:isPocketBook() --[[and not Device:isKobo()]] then return { disabled = true } end local PowerD = Device:getPowerDevice() local DataStorage = require("datastorage") local LuaSettings = require("luasettings") local UIManager = require("ui/uimanager") local WidgetContain...
Autostandby: Fix wrong assumptions about instance liveness. (#6666)
Autostandby: Fix wrong assumptions about instance liveness. (#6666) Got instantiated multiple times, when our state is meant to be global. Fixes #6647
Lua
agpl-3.0
Markismus/koreader,Frenzie/koreader,Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,NiLuJe/koreader,pazos/koreader,koreader/koreader,Hzj-jie/koreader,koreader/koreader,poire-z/koreader,mwoz123/koreader
615a4eda0836a013e4a3dfa453116bae1530475e
pud/component/ControllerComponent.lua
pud/component/ControllerComponent.lua
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local CommandEvent = getClass 'pud.event.CommandEvent' local ConsoleEvent = getClass 'pud.event.ConsoleEvent' local WaitCommand = getClass 'pud.command.WaitCommand' local MoveCommand = getClass 'pud.command.MoveCommand' local At...
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local CommandEvent = getClass 'pud.event.CommandEvent' local ConsoleEvent = getClass 'pud.event.ConsoleEvent' local WaitCommand = getClass 'pud.command.WaitCommand' local MoveCommand = getClass 'pud.command.MoveCommand' local At...
fix tryToPickup() to check positions
fix tryToPickup() to check positions
Lua
mit
scottcs/wyx
a60cfc4e10afb804bcd0da832472b3566cd73b31
frontend/ui/reader/readerfrontlight.lua
frontend/ui/reader/readerfrontlight.lua
package.cpath = package.cpath..";/usr/lib/lua/?.so" require "ui/device" ReaderFrontLight = InputContainer:new{ steps = {0,1,2,3,4,5,6,7,8,9,10}, intensity = nil, } function ReaderFrontLight:init() local dev_mod = Device:getModel() if dev_mod == "KindlePaperWhite" then require "liblipclua" self.lipc_handle = l...
package.cpath = package.cpath..";/usr/lib/lua/?.so" require "ui/device" ReaderFrontLight = InputContainer:new{ steps = {0,1,2,3,4,5,6,7,8,9,10}, intensity = nil, } function ReaderFrontLight:init() local dev_mod = Device:getModel() if dev_mod == "KindlePaperWhite" then require "liblipclua" self.lipc_handle = l...
fix occasionally failed lipc invocation
fix occasionally failed lipc invocation
Lua
agpl-3.0
chrox/koreader,houqp/koreader,NiLuJe/koreader,noname007/koreader,mwoz123/koreader,chihyang/koreader,ashhher3/koreader,apletnev/koreader,ashang/koreader,poire-z/koreader,NickSavage/koreader,frankyifei/koreader,koreader/koreader,poire-z/koreader,mihailim/koreader,Hzj-jie/koreader,koreader/koreader,pazos/koreader,robert00...
5e0b3df698de71689bd2572ff950ebf555c9ec08
home/.config/nvim/lua/plugins/init.lua
home/.config/nvim/lua/plugins/init.lua
-- Automatically install packer local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) vim.cmd 'packadd packer.nvim' end -- :...
-- Automatically install packer local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) vim.cmd 'packadd packer.nvim' end -- :...
chore: fix tabout config
chore: fix tabout config
Lua
mit
NullVoxPopuli/dotfiles,NullVoxPopuli/dotfiles,NullVoxPopuli/dotfiles
a3d43a4ebeb5b1bda833565ee401144ee74ca516
cancel.lua
cancel.lua
-- Cancel(0, jid) -- -------------- -- Cancel a job from taking place. It will be deleted from the system, and any -- attempts to renew a heartbeat will fail, and any attempts to complete it -- will fail. If you try to get the data on the object, you will get nothing. -- -- Args: -- 1) jid if #KEYS > 0 then error('...
-- Cancel(0, jid) -- -------------- -- Cancel a job from taking place. It will be deleted from the system, and any -- attempts to renew a heartbeat will fail, and any attempts to complete it -- will fail. If you try to get the data on the object, you will get nothing. -- -- Args: -- 1) jid if #KEYS > 0 then error('...
Bug fix for cancel():
Bug fix for cancel(): 1) Jobs with dependencies are not allowed to be canceled. Unfortunately, qless was throwing a less-than-helpful error in place of a more meaningful one. That has been rectified with this commit. 2) When a job is canceled, if it had previously been dependent on jobs, it should remove i...
Lua
mit
backupify/qless-core,seomoz/qless-core,seomoz/qless-core
ae252b6580037da6493734a34ce3738b02ca14b9
src/lua-factory/sources/grl-lastfm-cover.lua
src/lua-factory/sources/grl-lastfm-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...
lastfm-cover: thumbnails ordered from large to small
lastfm-cover: thumbnails ordered from large to small This makes the plugin return the largest cover first as was previously the behaviour with the standalone plugin and is expected by consumer applications. https://bugzilla.gnome.org/show_bug.cgi?id=761694
Lua
lgpl-2.1
MikePetullo/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins
285e43226ddc9cea7ef1e07115996494e340ae15
lib/core/test/object/lua_interface.lua
lib/core/test/object/lua_interface.lua
local O = require "Quanta.Object" local T = require "Quanta.Time" function print_table(t, level) local function table_to_string(t, level) local ws = string.rep(" ", level) if t == nil then return ws .. "nil" end local output = "{\n" for k, v in pairs(t) do output = output .. ws .. " \"" .. tostring...
local O = require "Quanta.Object" local T = require "Quanta.Time" require "Quanta.Time.Gregorian" function print_table(t, level) local function table_to_string(t, level) local ws = string.rep(" ", level) if t == nil then return ws .. "nil" end local output = "{\n" for k, v in pairs(t) do output = ou...
lib/core/test/lua_interface.lua: fixed imports; tidy.
lib/core/test/lua_interface.lua: fixed imports; tidy.
Lua
mit
komiga/quanta,komiga/quanta,komiga/quanta
7d63a616fd9216ed1d60a11230b91768dbf2bd91
Interface/AddOns/RayUI/core/fonts.lua
Interface/AddOns/RayUI/core/fonts.lua
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB --Cache global variables --WoW API / Variables local GetChatWindowInfo = GetChatWindowInfo --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: CHAT_FONT_HEIGHTS, UNIT_NAME_FONT, ...
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB --Cache global variables --WoW API / Variables local GetChatWindowInfo = GetChatWindowInfo --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: CHAT_FONT_HEIGHTS, UNIT_NAME_FONT, ...
fixed #68
fixed #68
Lua
mit
fgprodigal/RayUI
b91cfbb9e80e4330be5b9dc307d721513bbd462a
packages/image/init.lua
packages/image/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "image" function package:registerCommands () self:registerCommand("img", function (options, _) SU.required(options, "src", "including image file") local width = SILE.parseComplexFrameDimension(options.width or 0) or 0 ...
local base = require("packages.base") local package = pl.class(base) package._name = "image" function package:registerCommands () self:registerCommand("img", function (options, _) SU.required(options, "src", "including image file") local width = SU.cast("measurement", options.width or 0):tonumber() lo...
fix(packages): Homogenize image width and height as measurements
fix(packages): Homogenize image width and height as measurements As @alerque in #1506 (raiselower package): It used an old method that predates our SILE.length / SILE.measurement logic and units like `%fh` that are relative to the frame or page. It was being parsed as a frame dimension, which I assume was just a way t...
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
01c76f761ba290b7cf57fb29220593ff7739a710
kong/plugins/rate-limiting/handler.lua
kong/plugins/rate-limiting/handler.lua
-- Copyright (C) Kong Inc. local timestamp = require "kong.tools.timestamp" local policies = require "kong.plugins.rate-limiting.policies" local kong = kong local ngx = ngx local max = math.max local time = ngx.time local floor = math.floor local pairs = pairs local error = error local tostring = tostring local timer...
-- Copyright (C) Kong Inc. local timestamp = require "kong.tools.timestamp" local policies = require "kong.plugins.rate-limiting.policies" local kong = kong local ngx = ngx local max = math.max local time = ngx.time local floor = math.floor local pairs = pairs local error = error local tostring = tostring local timer...
fix(rate-limiting) remove unneeded phase handlers for better accuracy (#6802)
fix(rate-limiting) remove unneeded phase handlers for better accuracy (#6802) ### Summary The PR #5460 tried to fix rate-limiting accuracy issues as reported with #5311. That PR has stayed open for over a year now. There is a smaller change in that PR that we can make without a lot of work or debating, and thi...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
a50106fad7630244ad26e78bbf697f122702eca7
lua/entities/gmod_wire_adv_emarker.lua
lua/entities/gmod_wire_adv_emarker.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Adv Wire Entity Marker" ENT.Author = "Divran" ENT.WireDebugName = "Adv EMarker" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSo...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Adv Wire Entity Marker" ENT.Author = "Divran" ENT.WireDebugName = "Adv EMarker" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSo...
Fix #528. Fix adv. emarker duplication issue.
Fix #528. Fix adv. emarker duplication issue.
Lua
apache-2.0
mms92/wire,plinkopenguin/wiremod,Grocel/wire,sammyt291/wire,bigdogmat/wire,garrysmodlua/wire,CaptainPRICE/wire,dvdvideo1234/wire,NezzKryptic/Wire,immibis/wiremod,rafradek/wire,notcake/wire,mitterdoo/wire,Python1320/wire,wiremod/wire,thegrb93/wire
5f0add7ebd77ef8b42e48594f81298aea4a13389
data/pipelines/fxaa.lua
data/pipelines/fxaa.lua
function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap) if not enabled then return ldr_buffer end if transparent_phase ~= "post_tonemap" then return ldr_buffer end local format = "rgba8" if env.SCENE_VIEW ~= nil then format = "rgba16f" end local res = env.createRen...
function postprocess(env, transparent_phase, ldr_buffer, gbuffer0, gbuffer1, gbuffer_depth, shadowmap) if not enabled then return ldr_buffer end if transparent_phase ~= "post_tonemap" then return ldr_buffer end local format = "rgba16f" if env.APP ~= nil or env.PREVIEW ~= nil then format = "rgba8" end local res ...
fixed fxaa colors again - #1285
fixed fxaa colors again - #1285
Lua
mit
nem0/LumixEngine,nem0/LumixEngine,nem0/LumixEngine
1fd07bdbbf59c77c9a668692d322977117ef783d
Bin/Data/LuaScripts/14_SoundEffects.lua
Bin/Data/LuaScripts/14_SoundEffects.lua
-- Sound effects example -- This sample demonstrates: -- - Playing sound effects and music -- - Controlling sound and music master volume require "LuaScripts/Utilities/Sample" local scene_ = nil local soundNames = { "Fist", "Explosion", "Power-up" } local soundResourceNames = ...
-- Sound effects example -- This sample demonstrates: -- - Playing sound effects and music -- - Controlling sound and music master volume require "LuaScripts/Utilities/Sample" local scene_ = nil local soundNames = { "Fist", "Explosion", "Power-up" } local soundResourceNames = ...
Fixed storing of sound resource names in SoundEffects Lua example (setting arbitrary properties on UIElement did not work.)
Fixed storing of sound resource names in SoundEffects Lua example (setting arbitrary properties on UIElement did not work.)
Lua
mit
fire/Urho3D-1,helingping/Urho3D,xiliu98/Urho3D,MeshGeometry/Urho3D,carnalis/Urho3D,helingping/Urho3D,MeshGeometry/Urho3D,iainmerrick/Urho3D,carnalis/Urho3D,tommy3/Urho3D,helingping/Urho3D,victorholt/Urho3D,xiliu98/Urho3D,SirNate0/Urho3D,codemon66/Urho3D,MeshGeometry/Urho3D,codedash64/Urho3D,rokups/Urho3D,cosmy1/Urho3D,...
da2de5add7be86d7b5e70c041e7b68e01de3131c
turbo/syscall.lua
turbo/syscall.lua
--- Turbo.lua syscall Module -- -- Copyright 2013 John Abrahamsen -- -- 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...
--- Turbo.lua syscall Module -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by...
Fix support for ARM in master branch. Tested on Raspberry PI.
Fix support for ARM in master branch. Tested on Raspberry PI.
Lua
apache-2.0
ddysher/turbo,zcsteele/turbo,ddysher/turbo,YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo,luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel,kernelsauce/turbo,zcsteele/turbo,mniestroj/turbo
b6b332e311a282f0f80dff24412197b2db5f1d6c
frontend/device/remarkable/device.lua
frontend/device/remarkable/device.lua
local Generic = require("device/generic/device") -- <= look at this file! local logger = require("logger") local function yes() return true end local function no() return false end -- returns isRm2, device_model local function getModel() local f = io.open("/sys/devices/soc0/machine") if not f then err...
local Generic = require("device/generic/device") -- <= look at this file! local TimeVal = require("ui/timeval") local logger = require("logger") local ffi = require("ffi") local C = ffi.C require("ffi/linux_input_h") local function yes() return true end local function no() return false end -- returns isRm2, device_mo...
Fix for PR #7415 breaking reMarkable touch input (#7536)
Fix for PR #7415 breaking reMarkable touch input (#7536) The Wacom pen reports sane CLOCK_REALTIME timestamps, but the Touchscreen reports timestamps frozen at the boot time ts (in REALTIME) :s. So, make everyone use synthetic CLOCK_MONOTONIC timestamps in order to make gesture detection behave.
Lua
agpl-3.0
mwoz123/koreader,poire-z/koreader,NiLuJe/koreader,NiLuJe/koreader,poire-z/koreader,koreader/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader
fb19753390f0a5baf9313b1970ddd61d528770a8
framework.lua
framework.lua
-- [author] Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com> local boundary = require('boundary') local Emitter = require('core').Emitter local Error = require('core').Error local Object = require('core').Object local Process = require('uv').Process local timer = require('timer') local math = require('math') l...
-- [author] Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com> local boundary = require('boundary') local Emitter = require('core').Emitter local Error = require('core').Error local Object = require('core').Object local Process = require('uv').Process local timer = require('timer') local math = require('math') l...
Minor fixes
Minor fixes
Lua
apache-2.0
GabrielNicolasAvellaneda/boundary-plugins-vagrant
8d07a9c089121f5ea24826c8943c7a6386a27309
src/npge/alignment/move_identical.lua
src/npge/alignment/move_identical.lua
return function(rows) -- Input: -- ...... -- ..... -- ....... -- Output: -- *** .... -- *** , .. -- *** .... local aligned = {} for _, row in ipairs(rows) do -- list of char's table.insert(aligned, {}) end local pos = 1 whil...
return function(rows) -- Input: -- ...... -- ..... -- ....... -- Output: -- *** .... -- *** , .. -- *** .... local aligned = {} for _, row in ipairs(rows) do -- list of char's table.insert(aligned, {}) end local pos = 1 whil...
move_identical: build common prefix once
move_identical: build common prefix once All rows include same prefix, which is returned in table of rows (result 1) multiple times.
Lua
mit
npge/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge
d430397be741d0e588fe79f57a6612e3747f8321
spec/dynamic_spec.lua
spec/dynamic_spec.lua
--[[ FHIR Formats Copyright (C) 2016 Vadim Peretokin 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 la...
--[[ FHIR Formats Copyright (C) 2016 Vadim Peretokin 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 la...
Fixed by doing setup outside of setup()
Fixed by doing setup outside of setup()
Lua
apache-2.0
vadi2/fhir-formats
4ad48b16f8d3651a17339a39eb5fd954979ffd7c
.Framework/src/MY.String.lua
.Framework/src/MY.String.lua
-------------------------------------------- -- @Desc : - ַ -- @Author: @˫ @׷Ӱ -- @Date : 2015-01-25 15:35:26 -- @Email : admin@derzh.com -- @Last Modified by: һ @tinymins -- @Last Modified time: 2016-02-02 16:47:40 -- @Ref: Դ @haimanchajian.com -------------------------------------------- -----------------------...
-------------------------------------------- -- @Desc : - ַ -- @Author: @˫ @׷Ӱ -- @Date : 2015-01-25 15:35:26 -- @Email : admin@derzh.com -- @Last Modified by: һ @tinymins -- @Last Modified time: 2016-02-02 16:47:40 -- @Ref: Դ @haimanchajian.com -------------------------------------------- -----------------------...
字符串匹配中 $zj, $bh, $gh 模糊字不生效的BUG
字符串匹配中 $zj, $bh, $gh 模糊字不生效的BUG
Lua
bsd-3-clause
tinymins/MY
07f4735150204d3defee50f774049f21a8acda0d
tests/test-http-post-1mb.lua
tests/test-http-post-1mb.lua
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix 1mb post
fix 1mb post
Lua
apache-2.0
zhaozg/luvit,luvit/luvit,kaustavha/luvit,bsn069/luvit,bsn069/luvit,kaustavha/luvit,bsn069/luvit,kaustavha/luvit,zhaozg/luvit,luvit/luvit
ed7674b3a4e4247f053482c2bd0fac4343487c7d
ledbar.lua
ledbar.lua
local PIXELS = 30*5 local BYTES_PER_LED = 3 --global LED buffer for all animations and PIXELS local wsbuf = ws2812.newBuffer(PIXELS, BYTES_PER_LED) local POST = node.task.post local PRIO = node.task.LOW_PRIORITY local animFunc, animParams, animNumParams local function off() wsbuf:fill(0, 0, 0) wsbuf:w...
local PIXELS = 30*5 local BYTES_PER_LED = 3 --global LED buffer for all animations and PIXELS local wsbuf = ws2812.newBuffer(PIXELS, BYTES_PER_LED) local POST = node.task.post local PRIO = node.task.LOW_PRIORITY local W = ws2812.write local animFunc, animParams, animNumParams local function off() wsbuf:fi...
Small fix for newer firmware versions
Small fix for newer firmware versions
Lua
mit
realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs
4531f6a27998cd533d89f1f3a21a88b22fde9d0f
libs/core/luasrc/fs.lua
libs/core/luasrc/fs.lua
--[[ LuCI - Filesystem tools Description: A module offering often needed filesystem manipulation functions FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
--[[ LuCI - Filesystem tools Description: A module offering often needed filesystem manipulation functions FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
libs/core: Fixed luci.fs.isfile
libs/core: Fixed luci.fs.isfile git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2605 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
Flexibity/luci,saraedum/luci-packages-old,Canaan-Creative/luci,8devices/carambola2-luci,yeewang/openwrt-luci,dtaht/cerowrt-luci-3.3,ThingMesh/openwrt-luci,dtaht/cerowrt-luci-3.3,Flexibity/luci,Canaan-Creative/luci,jschmidlapp/luci,jschmidlapp/luci,stephank/luci,Canaan-Creative/luci,ch3n2k/luci,gwlim/luci,Flexibity/luci...
8a1298ebc408a0d78a02cda18d7608c4dad88ecb
modulefiles/Core/binutils/2.26.lua
modulefiles/Core/binutils/2.26.lua
help( [[ This module loads binutils 2.26 The GNU Binutils are a collection of binary tools that do low level operations on binaries. ]]) whatis("Loads binutils 2.26" local version = "2.26" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/binutils/"..version prepend_path("LD_LIBRARY_PATH", pathJoin(base, ...
help( [[ This module loads binutils 2.26 The GNU Binutils are a collection of binary tools that do low level operations on binaries. ]]) whatis("Loads binutils 2.26") local version = "2.26" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/binutils/"..version prepend_path("PATH", pathJoin(base, "bin")) pr...
Fix binutils module
Fix binutils module
Lua
apache-2.0
OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles
5c5a6c914e1a4d3e4821196ecc20872576e13a8d
totem/asserts.lua
totem/asserts.lua
--[[ Test for tensor equality Parameters: - `ta` (tensor) - `tb` (tensor) - `condition` (number) maximum pointwise difference between `a` and `b` Returns two values: success (boolean), failure_message (string or nil) Tests whether the maximum pointwise difference between `a` and `b` is less than or equal to `condit...
--[[ Test for tensor equality Parameters: - `ta` (tensor) - `tb` (tensor) - `condition` (number) maximum pointwise difference between `a` and `b` Returns two values: success (boolean), failure_message (string or nil) Tests whether the maximum pointwise difference between `a` and `b` is less than or equal to `condit...
Fixing white space. (2-space indentation, not 4).
Fixing white space. (2-space indentation, not 4).
Lua
bsd-3-clause
GeorgOstrovski/torch-totem,yozw/torch-totem,clementfarabet/torch-totem,fzvinicius/torch-totem,fbesse/torch-totem,mevGDM/torch-totem,deepmind/torch-totem,dm-jrae/torch-totem
28e48c8c4b761fd641da8448d64a8680bd3bfd7c
examples/http-upload.lua
examples/http-upload.lua
local HTTP = require("http") local Utils = require("utils") local Table = require("table") HTTP.create_server("0.0.0.0", 8080, function (req, res) p("on_request", req) local chunks = {} local length = 0 req:on('data', function (chunk, len) p("on_data", {chunk=chunk, len=len}) length = length + 1 ch...
local HTTP = require("http") local Utils = require("utils") local Table = require("table") HTTP.create_server("0.0.0.0", 8080, function (req, res) p("on_request", req) local chunks = {} local length = 0 req:on('data', function (chunk, len) p("on_data", {len=len}) length = length + 1 chunks[length] ...
Fix upload example to not dump the actual data
Fix upload example to not dump the actual data Change-Id: Icd849536e31061772e7fef953ddcea1a2f5c8a6d
Lua
apache-2.0
bsn069/luvit,rjeli/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,bsn069/luvit,AndrewTsao/luvit,rjeli/luvit,sousoux/luvit,boundary/luvit,AndrewTsao/luvit,AndrewTsao/luvit,zhaozg/luvit,connectFree/lev,sousoux/luvit,luvit/luvit,kaustavha/luvit,rjeli/luvit,GabrielNicolasAvellaneda/luvit-upstream,...
7fa35a8f4370ef18df54fd45800cde020008124a
AceGUI-3.0/widgets/AceGUIWidget-Slider.lua
AceGUI-3.0/widgets/AceGUIWidget-Slider.lua
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Slider -- -------------------------- do local Type = "Slider" local Version = 0 local function Aquire(self) self:SetDisabled(false) self:SetSliderValues(0,100,1) self:SetIsPercent(nil) self:SetValue(0) end local function ...
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Slider -- -------------------------- do local Type = "Slider" local Version = 0 local function Aquire(self) self:SetDisabled(false) self:SetSliderValues(0,100,1) self:SetIsPercent(nil) self:SetValue(0) end local function ...
Ace3 - AceGUI: Fix slider widget moving with the mousewheel when disabled
Ace3 - AceGUI: Fix slider widget moving with the mousewheel when disabled git-svn-id: d324031ee001e5fbb202928c503a4bc65708d41c@493 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
3723368c636b7d334f742386dd47e4741db87b82
loader.lua
loader.lua
#!/usr/bin/lua -- helper script basic logic: -- parse cmdline args, save all internal state into loader lable for use inside user config scripts -- TODO: define some basic config-script verification logic -- ??? -- sequentially, execute lua scripts from remaining args -- recursively iterate through global params, sav...
#!/usr/bin/lua -- helper script basic logic: -- parse cmdline args, save all internal state into loader lable for use inside user config scripts -- TODO: define some basic config-script verification logic -- ??? -- sequentially, execute lua scripts from remaining args -- recursively iterate through global params, sav...
bash-lua-helper: loader.lua - minor fixes, added "loader.log" function template
bash-lua-helper: loader.lua - minor fixes, added "loader.log" function template
Lua
mit
DarkCaster/Bash-Lua-Helper
258b13d3443b24d7b3c8e5ba081eea42afafe6a6
frontend/ui/elements/font_settings.lua
frontend/ui/elements/font_settings.lua
local Device = require("device") local logger = require("logger") local util = require("util") local _ = require("gettext") --[[ Font settings for desktop linux and mac ]]-- local function getUserDir() return os.getenv("HOME").."/.local/share/fonts" end -- System fonts are common in linux local function getSyste...
local Device = require("device") local logger = require("logger") local util = require("util") local _ = require("gettext") --[[ Font settings for desktop linux and mac ]]-- local function getUserDir() local home = os.getenv("HOME") if home then return home.."/.local/share/fonts" end end -- Syste...
[fix] Fallback in case of missing HOME variable
[fix] Fallback in case of missing HOME variable
Lua
agpl-3.0
NiLuJe/koreader,Frenzie/koreader,koreader/koreader,pazos/koreader,mihailim/koreader,Markismus/koreader,mwoz123/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,Hzj-jie/koreader,poire-z/koreader,NiLuJe/koreader
1a41cacbe84a0fb93a0a44578a576eb2580bce7f
stdlib/utils/globals.lua
stdlib/utils/globals.lua
--- Additional lua globals -- @module Utils.Globals STDLIB = { config = require('__stdlib__/stdlib/config') } --Since debug can be overridden we define a fallback function here. local _traceback = function() return '' end traceback = type(debug) == 'table' and debug.traceback or _traceback serpent = serpent ...
--- Additional lua globals -- @module Utils.Globals STDLIB = { config = require('__stdlib__/stdlib/config') } --Since debug can be overridden we define a fallback function here. local _traceback = function() return '' end traceback = type(debug) == 'table' and debug.traceback or _traceback serpent = serpent ...
Fix global
Fix global
Lua
isc
Afforess/Factorio-Stdlib
2d235a3b0912d5663ff7a6376a69e4bbd2484e97
applications/luci-statistics/luasrc/statistics/i18n.lua
applications/luci-statistics/luasrc/statistics/i18n.lua
--[[ Luci statistics - diagram i18n helper (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://www.apache.org/licen...
--[[ Luci statistics - diagram i18n helper (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://www.apache.org/licen...
application/luci-statistics: fix i18n binding, use string() instead of translate
application/luci-statistics: fix i18n binding, use string() instead of translate
Lua
apache-2.0
deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci
391bc82dbeaea234ff6457b6775a0abf27a6beae
kong/clustering/init.lua
kong/clustering/init.lua
local _M = {} local pl_file = require("pl.file") local pl_tablex = require("pl.tablex") local ssl = require("ngx.ssl") local openssl_x509 = require("resty.openssl.x509") local ngx_null = ngx.null local ngx_md5 = ngx.md5 local tostring = tostring local assert = assert local concat = table.concat local sort = table.sor...
local _M = {} local pl_file = require("pl.file") local pl_tablex = require("pl.tablex") local ssl = require("ngx.ssl") local openssl_x509 = require("resty.openssl.x509") local ngx_null = ngx.null local ngx_md5 = ngx.md5 local tostring = tostring local assert = assert local error = error local concat = table.concat lo...
fix(clustering) error on hashing when given invalid types
fix(clustering) error on hashing when given invalid types
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
9eb7dc6bc9fe776cbe15b92cb57f3cd815093309
realism/server/character_kill.lua
realism/server/character_kill.lua
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
realism: fix for character kill load error
realism: fix for character kill load error No table exists, therefore fails. Should just prevent one error to popup about iterating a non-table.
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
6e72569ce2e9cf1ff5c76413fedff3df6e22a45c
screen.lua
screen.lua
--[[ Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
--[[ Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
fix: check nil argument in blitFullFrom method
fix: check nil argument in blitFullFrom method
Lua
agpl-3.0
Frenzie/koreader-base,frankyifei/koreader-base,koreader/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,noname007/koreader,Frenzie/koreader,houqp/koreader,NiLuJe/koreader,koreader/koreader,poire-z/koreader,apletnev/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,Markismus/koreader,NickSavage/koreader,...
1b48ae1188b829c71f9cdde4dc98ff1df41cfad0
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
require "luci.sys" require "luci.tools.webadmin" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- System -- f = SimpleForm("syst...
require "luci.sys" require "luci.tools.webadmin" local bit = require "bit" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- Syste...
Fix display of v6 Routing metric on Freifunk status pages
Fix display of v6 Routing metric on Freifunk status pages
Lua
apache-2.0
thess/OpenWrt-luci,rogerpueyo/luci,oneru/luci,openwrt/luci,urueedi/luci,MinFu/luci,ReclaimYourPrivacy/cloak-luci,mumuqz/luci,wongsyrone/luci-1,LazyZhu/openwrt-luci-trunk-mod,dismantl/luci-0.12,sujeet14108/luci,oyido/luci,981213/luci-1,zhaoxx063/luci,981213/luci-1,teslamint/luci,RuiChen1113/luci,hnyman/luci,Wedmer/luci,...
b8281244b2fec2ff43e195783c94d0f8a1cd99d5
premake4.lua
premake4.lua
solution "litehtml" configurations { "Release", "Debug" } targetname "litehtml" language "C++" kind "StaticLib" files { "src/**.cpp", "src/**.h" } configuration "Debug" defines { "_DEBUG" } flags { "Symbols" } configuration "Release" defi...
solution "litehtml" configurations { "Release", "Debug" } targetname "litehtml" language "C++" kind "StaticLib" files { "src/**.cpp", "src/**.h" } configuration "Debug" defines { "_DEBUG" } flags { "Symbols" } targetsuffix "_d" configurat...
fixed _d suffix in debug.
fixed _d suffix in debug.
Lua
bsd-3-clause
FishingCactus/litehtml,FishingCactus/litehtml
676818e2490066c232b7b3e12b266a4ac3854cfa
hammerspoon/hammerspoon.symlink/modules/hyperkey.lua
hammerspoon/hammerspoon.symlink/modules/hyperkey.lua
-- Based on https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e -- A global variable for the sub-key Hyper Mode k = hs.hotkey.modal.new({}, 'F19') -- Hyper+key for all the below are setup somewhere -- The handler already exists, usually in Keyboard Maestro -- we just have to get the right keystroke sent...
-- -- Based on https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e -- -- -- A global variable for the sub-key Hyper Mode -- k = hs.hotkey.modal.new({}, 'F19') -- -- -- Hyper+key for all the below are setup somewhere -- -- The handler already exists, usually in Keyboard Maestro -- -- we just have to get th...
feat(Hammerspoon): Comment out hyperkey config until it can be fixed
feat(Hammerspoon): Comment out hyperkey config until it can be fixed
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
2bfc6d0b6410f98e5da60241319b52aa09f81886
[resources]/GTWsafeareas/safearea_s.lua
[resources]/GTWsafeareas/safearea_s.lua
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
[Patch] Fixed cold water damaging players in boats
[Patch] Fixed cold water damaging players in boats
Lua
bsd-2-clause
404rq/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG
8bda3a2b47d5fb5f9d02c64fb5b611d8e913712d
heka/sandbox/filters/firefox_usage.lua
heka/sandbox/filters/firefox_usage.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Firefox Usage Hours Config: - mode (string, optional, default "match") Sets the subsessionLength extractio...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Firefox Usage Hours *Example Heka Configuration* .. code-block:: ini [FirefoxUsage] type = "SandboxFi...
Firefox hourly usage plugin refinement
Firefox hourly usage plugin refinement - use the new split object telemetry message - add boundary checks as per https://bugzilla.mozilla.org/show_bug.cgi?id=1131822
Lua
mpl-2.0
mozilla-services/data-pipeline,acmiyaguchi/data-pipeline,mreid-moz/data-pipeline,whd/data-pipeline,sapohl/data-pipeline,acmiyaguchi/data-pipeline,mreid-moz/data-pipeline,kparlante/data-pipeline,mozilla-services/data-pipeline,kparlante/data-pipeline,kparlante/data-pipeline,acmiyaguchi/data-pipeline,nathwill/data-pipelin...
56afb5b09c47eeeb9e29580f4e51e015b766a1dc
src/luarocks/loader.lua
src/luarocks/loader.lua
local global_env = _G local package, require, assert, ipairs, pairs, os, print, table, type, next, unpack = package, require, assert, ipairs, pairs, os, print, table, type, next, unpack module("luarocks.loader") local path = require("luarocks.path") local manif_core = require("luarocks.manif_core") local deps ...
local global_env = _G local package, require, assert, ipairs, pairs, os, print, table, type, next, unpack = package, require, assert, ipairs, pairs, os, print, table, type, next, unpack module("luarocks.loader") local path = require("luarocks.path") local manif_core = require("luarocks.manif_core") local deps ...
fix implementation of which()
fix implementation of which() git-svn-id: b90ab2797f6146e3ba3e3d8b20782c4c2887e809@101 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Lua
mit
xpol/luainstaller,robooo/luarocks,xpol/luavm,ignacio/luarocks,luarocks/luarocks,keplerproject/luarocks,coderstudy/luarocks,aryajur/luarocks,xiaq/luarocks,robooo/luarocks,leafo/luarocks,tarantool/luarocks,xpol/luainstaller,ignacio/luarocks,xiaq/luarocks,usstwxy/luarocks,coderstudy/luarocks,usstwxy/luarocks,usstwxy/luaro...
f8e059afd05a3f11a35bf2a542c52c803ab688e7
kong/runloop/plugin_servers/mp_rpc.lua
kong/runloop/plugin_servers/mp_rpc.lua
local msgpack = require "MessagePack" local mp_pack = msgpack.pack local mp_unpacker = msgpack.unpacker local Rpc = {} Rpc.__index = Rpc Rpc.notifications_callbacks = {} function Rpc.new(socket_path, notifications) kong.log.debug("mp_rpc.new: ", socket_path) return setmetatable({ socket_path = socket_path,...
local msgpack = require "MessagePack" local mp_pack = msgpack.pack local mp_unpacker = msgpack.unpacker local Rpc = {} Rpc.__index = Rpc Rpc.notifications_callbacks = {} function Rpc.new(socket_path, notifications) kong.log.debug("mp_rpc.new: ", socket_path) return setmetatable({ socket_path = socket_path,...
fix(ext-plugin): store msg_id scope per-connection, not per-pluginserver to avoid races with concurrent calls
fix(ext-plugin): store msg_id scope per-connection, not per-pluginserver to avoid races with concurrent calls
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
f4bb54b106022e7de0deff0fe3e19e8c3d3a6e9f
src/split.lua
src/split.lua
--- split: string split function and iterator for Lua -- -- Peter Aronoff -- BSD 3-Clause License -- 2012-2015 -- -- There are many split functions for Lua. This is mine. Though, actually, -- I took lots of ideas and probably some code from the implementations on -- the Lua-Users Wiki, http://lua-users.org/wiki/SplitJo...
--- split: string split function and iterator for Lua -- -- Peter Aronoff -- BSD 3-Clause License -- 2012-2015 -- -- There are many split functions for Lua. This is mine. Though, actually, -- I took lots of ideas and probably some code from the implementations on -- the Lua-Users Wiki, http://lua-users.org/wiki/SplitJo...
Fix iterator bug
Fix iterator bug
Lua
bsd-3-clause
telemachus/split
465891ff0239b8fdafb737d01e3f05205a14319b
modules/luci-base/luasrc/sgi/uhttpd.lua
modules/luci-base/luasrc/sgi/uhttpd.lua
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" require "luci.http" require "luci.sys" require "luci.dispatcher" require "luci.ltn12" function handle_request(env) exectime = os.clock() local renv = { CONTENT_LENGTH = env.CONTENT_LEN...
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require "nixio.util" require "luci.http" require "luci.sys" require "luci.dispatcher" require "luci.ltn12" function handle_request(env) exectime = os.clock() local renv = { CONTENT_LENGTH = env.CONTENT_LEN...
luci-base: uhttpd.lua: expose all CGI variables
luci-base: uhttpd.lua: expose all CGI variables Fixes: #3873 Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
Lua
apache-2.0
tobiaswaldvogel/luci,openwrt/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,openwrt/luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,hnyman/luci,lbthomsen/openwrt-luci,openwrt/luci,hnyman/luci,hnyman/luci,hnyman/luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,lbthomsen/o...
f101db26ceeb0ccf5a48c8493850569b4017cffd
src_trunk/resources/carshop-system/s_carshop_system.lua
src_trunk/resources/carshop-system/s_carshop_system.lua
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
Fixed r1197
Fixed r1197 git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1203 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
41ec4c68adf7e6545aa10b359fea1883bec79b3e
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua
-- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.nut",package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) local voltages = { title = "%H: Voltages on UPS \"%pi\"", vlabel = "V", number_format = "%5.1lfV", data = { instances = { ...
-- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.nut",package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) local voltages = { title = "%H: Voltages on UPS \"%pi\"", vlabel = "V", number_format = "%5.1lfV", data = { instances = { ...
luci/statistics: Fix nut UPS graphs
luci/statistics: Fix nut UPS graphs At some point since I last checked, the nut plugin for collectd changed the names of the timeleft and percent datasets. Update the luci module to match so that those graphs are generated correctly again. Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel...
Lua
apache-2.0
forward619/luci,lbthomsen/openwrt-luci,remakeelectric/luci,urueedi/luci,taiha/luci,cappiewu/luci,cshore/luci,981213/luci-1,daofeng2015/luci,mumuqz/luci,openwrt-es/openwrt-luci,thess/OpenWrt-luci,hnyman/luci,kuoruan/lede-luci,kuoruan/luci,cshore-firmware/openwrt-luci,openwrt-es/openwrt-luci,LuttyYang/luci,981213/luci-1,...
301c66b51b95dae454bd16148f834d318bba4d5b
src/lib/configure/external/Project.lua
src/lib/configure/external/Project.lua
--- @classmod configure.external.Project local Project = {} --- Create a new Project -- @param args -- @param args.build The build instance -- @param args.name Name of the project to add -- @param[opt] args.root_directory Where to place all project files function Project:new(o) assert(o ~= nil) assert(o.build ~= nil...
--- @classmod configure.external.Project local Project = {} --- Create a new Project -- @param args -- @param args.build The build instance -- @param args.name Name of the project to add -- @param[opt] args.root_directory Where to place all project files function Project:new(o) assert(o ~= nil) assert(o.build ~= nil...
external.Project: Fix dependencies on individual targets.
external.Project: Fix dependencies on individual targets.
Lua
bsd-3-clause
hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure
5232ce8dd42fae9005c36c4e04ad988d4afedb77
inputters/base.lua
inputters/base.lua
local _deprecated = [[ You appear to be using a document class '%s' programmed for SILE <= v0.12.5. This system was refactored in v0.13.0 and the shims trying to make it work temporarily without refactoring your classes have been removed in v0.14.0. Please see v0.13.0 release notes for help. ]] local inputter ...
local _deprecated = [[ You appear to be using a document class '%s' programmed for SILE <= v0.12.5. This system was refactored in v0.13.0 and the shims trying to make it work temporarily without refactoring your classes have been removed in v0.14.0. Please see v0.13.0 release notes for help. ]] local inputter ...
fix(cli): Allow CLI option to override document specified class
fix(cli): Allow CLI option to override document specified class
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
b3bc94a1372f377b03471b745d58ce36241db00f
mod_seclabels/mod_seclabels.lua
mod_seclabels/mod_seclabels.lua
local st = require "util.stanza"; local xmlns_label = "urn:xmpp:sec-label:0"; local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:0"; module:add_feature(xmlns_label); local labels = { Classified = { SECRET = { color = "black", bgcolor = "aqua", label = "THISISSECRET" }; PUBLIC = { label = "THISISPUBLIC" }; ...
local st = require "util.stanza"; local xmlns_label = "urn:xmpp:sec-label:0"; local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:0"; module:add_feature(xmlns_label); module:hook("account-disco-info", function(event) local stanza = event.stanza; stanza:tag('feature', {var=xmlns_label}):up(); stanza:tag('featu...
mod_seclabels: Advertise features in account disco#info, fixes interop with Swift
mod_seclabels: Advertise features in account disco#info, fixes interop with Swift
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
563516f59035f643ddeb9965c7103fda74bf9345
scripts/RecordUpload.lua
scripts/RecordUpload.lua
---- -- Upload MP3 file to the CDR Server ---- uuid = argv[1]; domain = argv[2]; format = argv[3]; if format==nil then format = "mp3" end emails = argv[4]; if emails==nil then emails = "none" end name = argv[5]; if name==nil then name = "none" end email_sbj = argv[6]; if email_sbj==nil then email_sbj = "none" end emai...
---- -- Upload MP3 file to the CDR Server ---- uuid = argv[1]; domain = argv[2]; format = argv[3]; if format==nil then format = "mp3" end emails = argv[4]; if emails==nil then emails = "none" end name = argv[5]; if name==nil then name = "none" end email_sbj = argv[6]; if email_sbj==nil then email_sbj = "none" end emai...
RecordUpload.lua - fixed problem with transfer
RecordUpload.lua - fixed problem with transfer
Lua
mit
webitel/docker-freeswitch
498bede773f6fc2900b793aef849f6553ba61f73
Peripherals/WEB/init.lua
Peripherals/WEB/init.lua
if (not love.thread) or (not jit) then error("WEB peripherals requires love.thread and luajit") end local perpath = select(1,...) --The path to the web folder local bit = require("bit") local events = require("Engine.events") local json = require("Engine.JSON") local hasLuaSec = pcall(require,"ssl") local thread =...
if (not love.thread) or (not jit) then error("WEB peripherals requires love.thread and luajit") end local perpath = select(1,...) --The path to the web folder local bit = require("bit") local events = require("Engine.events") local json = require("Engine.JSON") local hasLuaSec = pcall(require,"ssl") if hasLuaSec t...
Bugfixes
Bugfixes Former-commit-id: 16a583171571ab9ed0cd51c85b9dccaaa67def17
Lua
mit
RamiLego4Game/LIKO-12
b53b318ab9b81f9a50eb2bbfaaf11fce48077473
otouto/plugins/gImages.lua
otouto/plugins/gImages.lua
-- You need a Google API key and a Google Custom Search Engine set up to use this, in config.google_api_key and config.google_cse_key, respectively. -- You must also sign up for the CSE in the Google Developer Console, and enable image results. local gImages = {} local HTTPS = require('ssl.https') local URL = requi...
-- You need a Google API key and a Google Custom Search Engine set up to use this, in config.google_api_key and config.google_cse_key, respectively. -- You must also sign up for the CSE in the Google Developer Console, and enable image results. local gImages = {} local HTTPS = require('ssl.https') local URL = requi...
gImages: Fix, wenn kein Bild gefunden wird
gImages: Fix, wenn kein Bild gefunden wird
Lua
agpl-3.0
Brawl345/Brawlbot-v2
d8f2ee0c6ea58800117bad44e2aec1769fd32e95
scene/result.lua
scene/result.lua
-- -- Ekran wyświetlający wyniki. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = require( 'jso...
-- -- Ekran wyświetlający wyniki. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = require( 'jso...
Bug fix
Bug fix
Lua
mit
ldurniat/My-Pong-Game,ldurniat/The-Great-Pong
f32d9c9a70a46f22b75972e146d778bffaec0264
src/main.lua
src/main.lua
-- Kong, the biggest ape in town -- -- /\ ____ -- <> ( oo ) -- <>_| ^^ |_ -- <> @ \ -- /~~\ . . _ | -- /~~~~\ | | -- /~~~~~~\/ _| | -- |[][][]/ / [m] -- |[][][[m] -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[|--|]| -- |[|...
-- Kong, the biggest ape in town -- -- /\ ____ -- <> ( oo ) -- <>_| ^^ |_ -- <> @ \ -- /~~\ . . _ | -- /~~~~\ | | -- /~~~~~~\/ _| | -- |[][][]/ / [m] -- |[][][[m] -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[][][]| -- |[|--|]| -- |[|...
Fix plugin configuration loading
Fix plugin configuration loading
Lua
apache-2.0
ind9/kong,kyroskoh/kong,Kong/kong,icyxp/kong,ccyphers/kong,vzaramel/kong,jebenexer/kong,rafael/kong,xvaara/kong,jerizm/kong,Kong/kong,rafael/kong,Vermeille/kong,shiprabehera/kong,Kong/kong,isdom/kong,beauli/kong,streamdataio/kong,Mashape/kong,smanolache/kong,kyroskoh/kong,streamdataio/kong,ejoncas/kong,isdom/kong,akh00...
2472451097d43c9cbcb888c2331b593c2f0d9949
lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/gyro-l3gd20h.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/gyro-l3gd20h.lua
--This is an example that uses the L3GD20H Gyroscope on the I2C Bus on EIO4(SCL) and EIO5(SDA) --Outputs data to Registers: --X gyro = 46012 --Y gyro = 46014 --Z gyro = 46016 fwver = MB.R(60004, 3) devType = MB.R(60000, 3) if (fwver < 1.0224 and devType == 7) or (fwver < 0.2037 and devType == 4) then print("This lua...
--[[ Name: gyro-l3gd20h.lua Desc: This is an example that uses the L3GD20H Gyroscope on the I2C Bus on EIO4(SCL) and EIO5(SDA) --]] --Outputs data to Registers: --X gyro = 46012 --Y gyro = 46014 --Z gyro = 46016 ------------------------------------------------------------------------------- -- Desc...
Fixed up the l3gd20h gyro example
Fixed up the l3gd20h gyro example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
305b25486af424d89ccfc2fd7607579f90735602
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
Lua
apache-2.0
hnyman/luci,zhaoxx063/luci,mumuqz/luci,artynet/luci,lcf258/openwrtcn,marcel-sch/luci,thesabbir/luci,dismantl/luci-0.12,Kyklas/luci-proto-hso,maxrio/luci981213,palmettos/test,remakeelectric/luci,fkooman/luci,teslamint/luci,joaofvieira/luci,remakeelectric/luci,shangjiyu/luci-with-extra,981213/luci-1,db260179/openwrt-bpi-...
28abfa4d7a19a9a137d4fd97148cd5244b409a01
lua/entities/sent_deployableballoons.lua
lua/entities/sent_deployableballoons.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
Fix Balloon Deployer not spawning when loaded from a savegame (#1146)
Fix Balloon Deployer not spawning when loaded from a savegame (#1146) Fixes #1144
Lua
apache-2.0
bigdogmat/wire,garrysmodlua/wire,sammyt291/wire,Grocel/wire,thegrb93/wire,wiremod/wire,dvdvideo1234/wire,NezzKryptic/Wire,CaptainPRICE/wire
66d3e8e48566dab17863c23ffa69ec20ff9ec8dd
modules/twitch.lua
modules/twitch.lua
-- Module to display, search and alert twitch.tv streams -- vim: set noexpandtab: local util = require'util' local simplehttp = util.simplehttp local json = util.json local moduleName = 'twitch' local key = moduleName local store = ivar2.persist local parseData = function(self, source, destination, data) data = json....
-- Module to display, search and alert twitch.tv streams -- vim: set noexpandtab: local util = require'util' local simplehttp = util.simplehttp local json = util.json local moduleName = 'twitch' local key = moduleName local store = ivar2.persist local parseData = function(self, source, destination, data) data = json....
twitch: Fix mixed indent.
twitch: Fix mixed indent.
Lua
mit
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2
afc66a69bcfb4a13602bed1cd68d02833fe79397
quest/neiran_el_nyarale_205_runewick.lua
quest/neiran_el_nyarale_205_runewick.lua
-- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (205, 'quest.neiran_el_nyarale_205_runewick'); require("base.common") module("quest.neiran_el_nyarale_205_runewick", package.seeall) GERMAN = Player.german ENGLISH = Player.english -- Insert the quest title here, in both languages...
-- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (205, 'quest.neiran_el_nyarale_205_runewick'); require("base.common") module("quest.neiran_el_nyarale_205_runewick", package.seeall) GERMAN = Player.german ENGLISH = Player.english -- Insert the quest title here, in both languages...
Bugfix
Bugfix
Lua
agpl-3.0
vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content
b4c907319664cd918aec63c4fac07ad62e5b50ab
src/lib/fibers/timer.lua
src/lib/fibers/timer.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Hierarchical timer wheel inspired by Juho Snellman's "Ratas". For a -- detailed discussion, see: -- -- https://www.snellman.net/blog/archive/2016-07-27-ratas-hierarchical-timer-wheel/ module(...,package.seeall) local lib = require("...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Hierarchical timer wheel inspired by Juho Snellman's "Ratas". For a -- detailed discussion, see: -- -- https://www.snellman.net/blog/archive/2016-07-27-ratas-hierarchical-timer-wheel/ module(...,package.seeall) local lib = require("...
Fix promotion of lib.fibers.timer events from outer to inner wheel
Fix promotion of lib.fibers.timer events from outer to inner wheel An timer wheel advances by a fixed time-step and contains a fixed number of slots. If, when adding an event, we find that the event is too far in the future, it gets added to an outer wheel, whose time step is the inner wheel's time step, multiplied b...
Lua
apache-2.0
eugeneia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,SnabbCo/snabbswitch,Igalia/snabb,snabbco/snabb,eugeneia/snabb,Igalia/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,Igalia/snabbswitch,Igalia/snabbswitch,alexandergall/snabbswitch,eugeneia/snabb,eugeneia/snabb,alexanderga...
89b63da84234de05d8491469c1bb0e01d8b5b571
spec/plugins/basicauth/access_spec.lua
spec/plugins/basicauth/access_spec.lua
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local STUB_GET_URL = spec_helper.STUB_GET_URL local STUB_POST_URL = spec_helper.STUB_POST_URL describe("Authentication Plugin", function() setup(function() spec_helper.prepare_db()...
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local PROXY_URL = spec_helper.PROXY_URL describe("Authentication Plugin", function() setup(function() spec_helper.prepare_db() spec_helper.insert_fixtures { api = { ...
Fixing test
Fixing test Former-commit-id: ae5e6b73341a96979fa8a9c1b46efb2a984e61c3
Lua
apache-2.0
Vermeille/kong,beauli/kong,Mashape/kong,xvaara/kong,salazar/kong,streamdataio/kong,kyroskoh/kong,ejoncas/kong,shiprabehera/kong,ejoncas/kong,vzaramel/kong,smanolache/kong,streamdataio/kong,Kong/kong,Kong/kong,ajayk/kong,icyxp/kong,vzaramel/kong,Kong/kong,akh00/kong,rafael/kong,jebenexer/kong,ind9/kong,ccyphers/kong,kyr...
eba0d0265729ab74ae4c7f6887c41e34be22368d
parser.lua
parser.lua
-- See LICENSE file for copyright and license details local Misc = require('misc') local M = Misc.newType() M.new = function() local self = {} setmetatable(self, M) return self end M.setLexer = function(self, lexer) assert(lexer) self._lexer = lexer end local parseTypeField = function(lexer) local fiel...
-- See LICENSE file for copyright and license details local Misc = require('misc') local M = Misc.newType() M.new = function() local self = {} setmetatable(self, M) return self end M.setLexer = function(self, lexer) assert(lexer) self._lexer = lexer end local parseTypeField = function(lexer) local fiel...
parser.lua: Fixed indentation
parser.lua: Fixed indentation
Lua
mit
ozkriff/misery-lua
c0ea749f7dd3d9ced7f9f1f207c0da55aba9a2a7
mock/asset/FSMScheme.lua
mock/asset/FSMScheme.lua
module 'mock' ---DEAD LOCK DEBUG HELPER local DEADLOCK_THRESHOLD = 100 local DEADLOCK_TRACK = true local DEADLOCK_TRACK_ENABLED = true -------------------------------------------------------------------- local function buildFSMScheme( scheme ) -- assert(targetClass,'Target Class required') assert( scheme, 'FSM ...
module 'mock' ---DEAD LOCK DEBUG HELPER local DEADLOCK_THRESHOLD = 100 local DEADLOCK_TRACK = true local DEADLOCK_TRACK_ENABLED = true -------------------------------------------------------------------- local function buildFSMScheme( scheme ) -- assert(targetClass,'Target Class required') assert( scheme, 'FSM ...
[mock]fix initial FSM state func
[mock]fix initial FSM state func
Lua
mit
tommo/mock
0fbd5e16cf352d8055274b1f01525c671f7e6293
otouto/plugins/media.lua
otouto/plugins/media.lua
local media = {} mimetype = (loadfile "./otouto/mimetype.lua")() media.triggers = { "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(gif))$", "^(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(mp4))$", "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(pdf))$", "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(ogg))$", "(https?://[%w-_%.%?...
local media = {} media.triggers = { "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(gif))$", "^(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(mp4))$", "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(pdf))$", "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(ogg))$", "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(zip))$", "(https?://[%w...
Media: Fix
Media: Fix
Lua
agpl-3.0
Brawl345/Brawlbot-v2
761d01362d6543d68ccf8bc8170714d6e8117fb9
webpaste.lua
webpaste.lua
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
Fixed hang
Fixed hang
Lua
mit
vifino/cpaste,carbonsrv/cpaste
d478eaeabe176a3e4d332f1d0cc2bd31956c215c
frontend/ui/network/wpa_supplicant.lua
frontend/ui/network/wpa_supplicant.lua
local UIManager = require("ui/uimanager") local WpaClient = require('lj-wpaclient/wpaclient') local InfoMessage = require("ui/widget/infomessage") local sleep = require("ffi/util").sleep local T = require("ffi/util").template local _ = require("gettext") local CLIENT_INIT_ERR_MSG = _("Failed to initialize network cont...
local UIManager = require("ui/uimanager") local WpaClient = require('lj-wpaclient/wpaclient') local InfoMessage = require("ui/widget/infomessage") local sleep = require("ffi/util").sleep local T = require("ffi/util").template local _ = require("gettext") local CLIENT_INIT_ERR_MSG = _("Failed to initialize network cont...
fix:(wpa_supplicant): show error from set_network operations
fix:(wpa_supplicant): show error from set_network operations
Lua
agpl-3.0
Markismus/koreader,poire-z/koreader,mwoz123/koreader,apletnev/koreader,koreader/koreader,mihailim/koreader,Frenzie/koreader,poire-z/koreader,robert00s/koreader,Hzj-jie/koreader,Frenzie/koreader,pazos/koreader,lgeek/koreader,NiLuJe/koreader,koreader/koreader,houqp/koreader,NiLuJe/koreader
9ac2b9c2ea4c1a68677182fd77103fcd0b5c6864
src/servicebag/src/Shared/ServiceBag.lua
src/servicebag/src/Shared/ServiceBag.lua
--[=[ Service bags handle recursive initialization of services, and the retrieval of services from a given source. This allows the composition of services without the initialization of those services becoming a pain, which makes refactoring downstream services very easy. This also allows multiple copies of a serv...
--[=[ Service bags handle recursive initialization of services, and the retrieval of services from a given source. This allows the composition of services without the initialization of those services becoming a pain, which makes refactoring downstream services very easy. This also allows multiple copies of a serv...
fix: Ensure deconstructing service does not affect other services
fix: Ensure deconstructing service does not affect other services
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
b7dbe77b934b4e4501a86849ed97bed5721c8104
lib/app.lua
lib/app.lua
-- -- Application -- local Utils = require('utils') local Path = require('path') local Table = require('table') local Emitter = require('core').Emitter local HTTP = require('http') local Stack = require('stack') local Log = require('./log') -- -- augment standard things -- require('./request') require('./response') -...
-- -- Application -- local Utils = require('utils') local Path = require('path') local Table = require('table') local Emitter = require('core').Emitter local HTTP = require('http') local Stack = require('stack') local Log = require('./log') -- -- augment standard things -- require('./request') require('./response') -...
fix path of handler callback
fix path of handler callback
Lua
mit
dvv/luvit-app
8a00b3f2e5e04e97d45fafa7e4fdba19f3f85896
share/lua/modules/simplexml.lua
share/lua/modules/simplexml.lua
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
This should fix <tag/> cases.
This should fix <tag/> cases.
Lua
lgpl-2.1
xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,xkfz007/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,krichter722/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,krichter...
0f7ff6781a818f60d28872b50c5cac26e3b72995
AceGUI-3.0/widgets/AceGUIWidget-Label.lua
AceGUI-3.0/widgets/AceGUIWidget-Label.lua
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 20 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
--[[----------------------------------------------------------------------------- Label Widget Displays text and optionally an icon. -------------------------------------------------------------------------------]] local Type, Version = "Label", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or...
AceGUI-3.0: Label: - Fix using SetFontObject. We'll internally wrap that to a :SetFont call now, since any font set with SetFont will override any font set with SetFontObject. - Avoid unnecessary re-layouts of the anchors during widget creation
AceGUI-3.0: Label: - Fix using SetFontObject. We'll internally wrap that to a :SetFont call now, since any font set with SetFont will override any font set with SetFontObject. - Avoid unnecessary re-layouts of the anchors during widget creation git-svn-id: e768786be8df873dac9515156656ebbdc6d77160@928 5debad98-a965-414...
Lua
bsd-3-clause
sarahgerweck/Ace3
35c26cde99298141acf292fe65b507064e7fca40
game/scripts/vscripts/gamemode.lua
game/scripts/vscripts/gamemode.lua
GameMode = GameMode or class({}) ARENA_VERSION = LoadKeyValues("addoninfo.txt").version GAMEMODE_INITIALIZATION_STATUS = {} local requirements = { "libraries/keyvalues", "libraries/timers", "libraries/physics", "libraries/projectiles", "libraries/notifications", "libraries/animations", "libraries/attachments",...
GameMode = GameMode or class({}) ARENA_VERSION = LoadKeyValues("addoninfo.txt").version GAMEMODE_INITIALIZATION_STATUS = {} local requirements = { "libraries/keyvalues", "libraries/timers", "libraries/physics", "libraries/projectiles", "libraries/notifications", "libraries/animations", "libraries/attachments",...
Fixed having fake client before first 10 seconds after hero selection end caused game to end
Fixed having fake client before first 10 seconds after hero selection end caused game to end
Lua
mit
ark120202/aabs
61f39542b7a8ce7b8ce5307b91309d77d6fb4e8d
lua/entities/gmod_wire_soundemitter.lua
lua/entities/gmod_wire_soundemitter.lua
--[[ The Wire Sound Emitter emits a sound whose parameters can be tweaked. See http://wiki.garrysmod.com/page/Category:CSoundPatch --]] AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Sound Emitter" ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.WireDebugName = "Sound Emitter" if CLIENT...
--[[ The Wire Sound Emitter emits a sound whose parameters can be tweaked. See http://wiki.garrysmod.com/page/Category:CSoundPatch --]] AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Sound Emitter" ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.WireDebugName = "Sound Emitter" if CLIENT...
gmod_wire_soundemitter: Fix #354. Sound will automatically refresh when a player joins (but you will need to stop and start the sound)
gmod_wire_soundemitter: Fix #354. Sound will automatically refresh when a player joins (but you will need to stop and start the sound)
Lua
apache-2.0
CaptainPRICE/wire,NezzKryptic/Wire,plinkopenguin/wiremod,notcake/wire,mms92/wire,rafradek/wire,Grocel/wire,wiremod/wire,garrysmodlua/wire,dvdvideo1234/wire,Python1320/wire,thegrb93/wire,immibis/wiremod,mitterdoo/wire,sammyt291/wire,bigdogmat/wire
9f2df910b7961fe954d4983f411da7119d1fea04
src/bot.lua
src/bot.lua
local bot = {} local api = require("api") local utils = require("utils") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.video then return "Video" elsei...
local bot = {} local api = require("api") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.video then return "Video" elseif msg.document then ...
fix: did not load api functions in bot.run
fix: did not load api functions in bot.run
Lua
apache-2.0
SJoshua/Project-Small-R
8688bbeaeea7a109baf7c455ddc5a9b90d45f8b6
scripts/lua/policies/backendRouting.lua
scripts/lua/policies/backendRouting.lua
-- Copyright (c) 2016 IBM. All rights reserved. -- -- 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, mod...
-- Copyright (c) 2016 IBM. All rights reserved. -- -- 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, mod...
Fix proxying query parameters (#125)
Fix proxying query parameters (#125)
Lua
apache-2.0
LukeFarrell/incubator-openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway,LukeFarrell/incubator-openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,openwhisk/openwhisk-apigateway,ope...
4db7192f6253f996b54263fc4610188b2f87c879
lua/entities/gmod_wire_panel/cl_init.lua
lua/entities/gmod_wire_panel/cl_init.lua
include('shared.lua') ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Initialize() self.menu = nil self.chan = 1 self.disp1 = 0 -- Edit the menu here. Maximum of 10 lines. self.menus = { [-1] = { "Channel", nil }, [ 0] = { "Index", nil }, { "Ch. 1", "Channel 1" }, { "Ch. 2", "Channel 2" }...
include('shared.lua') ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Initialize() self.menu = nil self.chan = 1 self.disp1 = 0 -- Edit the menu here. Maximum of 10 lines. self.menus = { [-1] = { "Channel", nil }, [ 0] = { "Index", nil }, { "Ch. 1", "Channel 1" }, { "Ch. 2", "Channel 2" }...
[Panel] Fixed menu visibility.
[Panel] Fixed menu visibility.
Lua
apache-2.0
notcake/wire,rafradek/wire,immibis/wiremod,sammyt291/wire,plinkopenguin/wiremod,mitterdoo/wire,NezzKryptic/Wire,wiremod/wire,mms92/wire,dvdvideo1234/wire,Grocel/wire,CaptainPRICE/wire,thegrb93/wire,bigdogmat/wire,garrysmodlua/wire,Python1320/wire
eef99f0f886e994d82cfb2505881af77469d6c33
lua/autorun/includes/modules/control.lua
lua/autorun/includes/modules/control.lua
local IsValid = IsValid local pairs = pairs local RealTime = RealTime local type = type local IsKeyDown = input.IsKeyDown local IsGameUIVisible = gui.IsGameUIVisible local IsConsoleVisible = gui.IsConsoleVisible _G.control = {} local HoldTime = 0.3 local LastPress = nil local LastKey = nil local KeyControls = {} lo...
local IsValid = IsValid local pairs = pairs local RealTime = RealTime local type = type local IsKeyDown = input.IsKeyDown local IsGameUIVisible = gui.IsGameUIVisible local IsConsoleVisible = gui.IsConsoleVisible _G.control = {} local HoldTime = 0.3 local LastPress = nil local LastKey = nil local KeyControls = {} lo...
Fixed undefined index 'handles' error in control module
Fixed undefined index 'handles' error in control module
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
04d4c4334cb3404036c1c1dadab0a4a9f23cd214
qq.lua
qq.lua
local ffi = require "ffi" local packetLib = require "packet" local memory = require "memory" local qqlib = ffi.load("build/qq") ffi.cdef [[ typedef struct packet_header { uint64_t ts_vlan; uint16_t len; uint8_t data[]; } packet_header_t; typedef struct qq { } qq_t; void qq_init(); qq_t*...
local ffi = require "ffi" local packetLib = require "packet" local memory = require "memory" local qqlib = ffi.load("build/qq") ffi.cdef [[ typedef struct packet_header { uint64_t ts_vlan; uint16_t len; uint8_t data[]; } packet_header_t; typedef struct qq { } qq_t; void qq_init(); qq_t* qq_crea...
Fix qq:capacity()
Fix qq:capacity()
Lua
mit
emmericp/FlowScope
bf3d8225af89583727fd914344a2a90e8e3d014c
lib/luvit.lua
lib/luvit.lua
-- clear some globals -- This will break lua code written for other lua runtimes _G.io = nil _G.os = nil _G.math = nil _G.string = nil _G.coroutine = nil _G.jit = nil _G.bit = nil _G.debug = nil _G.table = nil local loadfile = _G.loadfile _G.loadfile = nil local dofile = _G.dofile _G.dofile = nil _G.print = nil -- Loa...
-- clear some globals -- This will break lua code written for other lua runtimes _G.io = nil _G.os = nil _G.math = nil _G.string = nil _G.coroutine = nil _G.jit = nil _G.bit = nil _G.debug = nil _G.table = nil local loadfile = _G.loadfile _G.loadfile = nil local dofile = _G.dofile _G.dofile = nil _G.print = nil -- Loa...
Implement absolute requires, but is pending a fix to loadfile
Implement absolute requires, but is pending a fix to loadfile Change-Id: I77c76c1e2d788bf229a30eb30fd482477663b377
Lua
apache-2.0
sousoux/luvit,boundary/luvit,AndrewTsao/luvit,rjeli/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,DBarney/luvit,sousoux/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,AndrewTsao/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,sousoux/luvit,connectFree/lev,sousoux/luvit...
1f026bb5a687411e5a4c9c0efb8130f50efa9b29
kong/api/routes/kong.lua
kong/api/routes/kong.lua
local singletons = require "kong.singletons" local conf_loader = require "kong.conf_loader" local cjson = require "cjson" local api_helpers = require "kong.api.api_helpers" local Schema = require "kong.db.schema" local Errors = require "kong.db.errors" local process = require "ngx.process" local kong = kong local knod...
local singletons = require "kong.singletons" local conf_loader = require "kong.conf_loader" local cjson = require "cjson" local api_helpers = require "kong.api.api_helpers" local Schema = require "kong.db.schema" local Errors = require "kong.db.errors" local process = require "ngx.process" local kong = kong local knod...
fix(api) ensure that /schemas/* apis are correctly prioritized
fix(api) ensure that /schemas/* apis are correctly prioritized ### Summary The api's there are not really well done and they have conflicting paths. As Lapis prioritizes plain matches more, this makes the priority more of expected, and this is what this commit does and fixes.
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
91b0f25735b8b29526e2a71168a7578c5532c1e3
mods/soundset/init.lua
mods/soundset/init.lua
minetest.log("action","[mod soundset] Loading...") sounds = {} sounds.file = minetest.get_worldpath() .. "/sounds_config.txt" sounds.gainplayers = {} sounds.tmp = {} local function save_sounds_config() local input = io.open(sounds.file, "w") if input then input:write(minetest.serialize(sounds.gainplayers)) inp...
minetest.log("action","[mod soundset] Loading...") sounds = {} sounds.file = minetest.get_worldpath() .. "/sounds_config.txt" sounds.gainplayers = {} sounds.tmp = {} local function save_sounds_config() local input = io.open(sounds.file, "w") if input then input:write(minetest.serialize(sounds.gainplayers)) inp...
fix crash soundset fix crash soundset init.lua:111: attempt to index field '?'
fix crash soundset fix crash soundset init.lua:111: attempt to index field '?'
Lua
unlicense
MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,paly2/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfu...
c759892d09b9ffa1c3c2d25d69d0324b34884b13
packages/rules.lua
packages/rules.lua
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
fix(packages): An hrule with depth shall not affect current baseline
fix(packages): An hrule with depth shall not affect current baseline
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
13a754bdd946e5a200a0bc1f5f1fec24d21a1e42
modes/nomap/fs_rules.lua
modes/nomap/fs_rules.lua
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Copyright (C) 2007 Nokia Corporation. -- Licensed under MIT license. -- "nomap" mapping mode: Does not map any paths anywhere, but still pushes -- all paths thru SB2's path mapping logic, handles execs, etc. -- -- This is useful for benchmarking, debugging (SB2...
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Copyright (C) 2007 Nokia Corporation. -- Licensed under MIT license. -- "nomap" mapping mode: Does not map any paths anywhere, but still pushes -- all paths thru SB2's path mapping logic, handles execs, etc. -- -- This is useful for benchmarking, debugging (SB2...
"nomap" mode: fixed handling of /sb2/wrappers
"nomap" mode: fixed handling of /sb2/wrappers - because the fakeroot wrapper is now enabled for "nomap", /sb2/wrappers must be mapped..
Lua
lgpl-2.1
OlegGirko/ldbox,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox,ldbox/ldbox,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,ldbox/ldbox,ldbox/ldbox