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
683b0381bf1ff2f2782fcebbd755c476520b2737
frontend/apps/reader/modules/readerwikipedia.lua
frontend/apps/reader/modules/readerwikipedia.lua
local ReaderDictionary = require("apps/reader/modules/readerdictionary") local Translator = require("ui/translator") local Wikipedia = require("ui/wikipedia") local DEBUG = require("dbg") local _ = require("gettext") -- Wikipedia as a special dictionary local ReaderWikipedia = ReaderDictionary:extend{ -- identify ...
local ReaderDictionary = require("apps/reader/modules/readerdictionary") local Translator = require("ui/translator") local Wikipedia = require("ui/wikipedia") local DEBUG = require("dbg") local _ = require("gettext") -- Wikipedia as a special dictionary local ReaderWikipedia = ReaderDictionary:extend{ -- identify ...
Patch for wikipedia language (#2304)
Patch for wikipedia language (#2304) * smarter language detection for wikipedia new order: * check language for document * check global language setting * check language for lookup phrase Fix: https://github.com/koreader/koreader/issues/1844
Lua
agpl-3.0
mwoz123/koreader,houqp/koreader,NiLuJe/koreader,pazos/koreader,Hzj-jie/koreader,NickSavage/koreader,koreader/koreader,robert00s/koreader,Frenzie/koreader,poire-z/koreader,Frenzie/koreader,lgeek/koreader,NiLuJe/koreader,poire-z/koreader,Markismus/koreader,koreader/koreader,mihailim/koreader,apletnev/koreader
8b8d83c993ed8b37bf971ca31b30be01bca87264
resty/test/doubles/in_mem_kv_store.lua
resty/test/doubles/in_mem_kv_store.lua
local _M = {} local mt = { __index = _M } local setmetatable = setmetatable local cjson = require("cjson") function _M:connect(addr, port) self.kv_store = {} self.addr = addr self.port = port end function _M:new(fail) self.fail = fail return setmetatable(self, mt) end function _M:set_fail(fail) ...
local _M = {} local mt = { __index = _M } local setmetatable = setmetatable function _M:connect(addr, port) self.kv_store = {} self.addr = addr self.port = port end function _M:new(fail) self.fail = fail return setmetatable(self, mt) end function _M:set_fail(fail) self.fail = fail end funct...
Fix linter check error
Fix linter check error
Lua
apache-2.0
dhiaayachi/dynx,dhiaayachi/dynx
723bbc92382387d1b53a339aaa97c84c32f1f2cf
updateSunriseSunset.lua
updateSunriseSunset.lua
--[[ %% autostart %% properties %% globals --]] -- Script to turn off lights when no more motion is detected -- Remi Bergsma github@remi.nl -- Inspired by posts on the Fibaro forum http://forum.fibaro.com -- Note: This script needs a virtual device (id=90 in example) with two buttons. One to set the sun to 'Risen' an...
--[[ %% autostart %% properties %% globals --]] -- Script to set sun to set/risen -- Remi Bergsma github@remi.nl -- Inspired by posts on the Fibaro forum http://forum.fibaro.com -- Note: This script needs a virtual device (id=90 in example) with two buttons. One to set the sun to 'Risen' and one to 'Set'. They should...
fix bug that wouldn't refresh the set/rise times
fix bug that wouldn't refresh the set/rise times
Lua
apache-2.0
remibergsma/fibaro-hc2-scenes
d45f34eadd01b314ecc0ead373e15175b1148261
init.lua
init.lua
-- -- init.lua -- -- This is the initialization file of SSOwat. It is called once at the Nginx -- server's start. -- Consequently, all the variables declared (along with libraries and -- translations) in this file will be *persistent* from one HTTP request to -- another. -- -- Remove prepending '@' & trailing 'init.l...
-- -- init.lua -- -- This is the initialization file of SSOwat. It is called once at the Nginx -- server's start. -- Consequently, all the variables declared (along with libraries and -- translations) in this file will be *persistent* from one HTTP request to -- another. -- -- Remove prepending '@' & trailing 'init.l...
bugfix scope
bugfix scope "local lustache" was causing a scope error in some setups.
Lua
agpl-3.0
YunoHost/SSOwat,Kloadut/SSOwat,Kloadut/SSOwat,YunoHost/SSOwat
c94367e065c2adec79d69d82f8b40647803ef117
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: fix System -> Administration menu if dropbear is not installed
modules/admin-full: fix System -> Administration menu if dropbear is not installed git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8070 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
9bec37ad9e622b65bdc892945fac6b482020f3fb
src/hs/just/init.lua
src/hs/just/init.lua
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- J U S T L I B R A R Y -- -----------------------------------------------------------------------------...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- J U S T L I B R A R Y -- -----------------------------------------------------------------------------...
#168 * Fixed timeout for just.doUntil/doWhile
#168 * Fixed timeout for just.doUntil/doWhile
Lua
mit
cailyoung/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost
5a95dc751ca8eadb9c75cfa4fec1dfb75682bd45
asset/src/scenes/TestViewController.lua
asset/src/scenes/TestViewController.lua
local TestViewController = class("TestViewController", function() return mw.ViewController:create() end) function TestViewController:viewDidLoad() log("Test GameScene parameters...") log("NUMBER: %d", self:scene():getNumberParameter("NUMBER")) log("STRING: %s", self:scene():getStringParameter("STRING")) log("BOO...
local TestViewController = class("TestViewController", function() return mw.ViewController:create() end) function TestViewController:viewDidLoad() log("Test GameScene parameters...") log("NUMBER: %d", self:scene():getNumberParameter("NUMBER")) log("STRING: %s", self:scene():getStringParameter("STRING")) log("BOO...
fix pb to absolute path
fix pb to absolute path
Lua
apache-2.0
wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua
b6f5941649046f0f1df2420e01d2249786a294cf
lgi/override/Gst.lua
lgi/override/Gst.lua
------------------------------------------------------------------------------ -- -- LGI Gst override module. -- -- Copyright (c) 2010, 2011, 2012 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- -----------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI Gst override module. -- -- Copyright (c) 2010, 2011, 2012 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- -----------------------------------------------------------...
Fix gstreamer automatically calling setlocale()
Fix gstreamer automatically calling setlocale() Continuation of previous setlocale() fix. https://github.com/pavouk/lgi/issues/19
Lua
mit
pavouk/lgi,zevv/lgi,psychon/lgi
5cda0b71d7219f5bbe060ceef2a708ae05b78ff4
lib/image_loader.lua
lib/image_loader.lua
local gm = require 'graphicsmagick' local ffi = require 'ffi' local iproc = require 'iproc' require 'pl' local image_loader = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) local clip_eps16 = (1.0 / 65535.0) * 0.5 - (1.0e-7 * (1.0 / 65535.0) * 0.5) local background_color = 0.5 function ima...
local gm = require 'graphicsmagick' local ffi = require 'ffi' local iproc = require 'iproc' require 'pl' local image_loader = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) local clip_eps16 = (1.0 / 65535.0) * 0.5 - (1.0e-7 * (1.0 / 65535.0) * 0.5) local background_color = 0.5 function ima...
Fix weird value in alpha channel
Fix weird value in alpha channel
Lua
mit
nagadomi/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,higankanshi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,higankanshi/waifu2x,higankanshi/waifu2x,vitaliylag/waifu2x
3196c8aeff17f326e8b731a4a08c98303a1ab504
game/scripts/vscripts/custom_events.lua
game/scripts/vscripts/custom_events.lua
Events:Register("activate", function () CustomGameEventManager:RegisterListener("custom_chat_send_message", Dynamic_Wrap(GameMode, "CustomChatSendMessage")) CustomGameEventManager:RegisterListener("metamorphosis_elixir_cast", Dynamic_Wrap(GameMode, "MetamorphosisElixirCast")) CustomGameEventManager:RegisterListener(...
Events:Register("activate", function () CustomGameEventManager:RegisterListener("metamorphosis_elixir_cast", Dynamic_Wrap(GameMode, "MetamorphosisElixirCast")) CustomGameEventManager:RegisterListener("modifier_clicked_purge", Dynamic_Wrap(GameMode, "ModifierClickedPurge")) CustomGameEventManager:RegisterListener("op...
fix(chat): remove old event listener that throws errors now
fix(chat): remove old event listener that throws errors now
Lua
mit
ark120202/aabs
d57273aee05538861daddb17f96137ce76b90c94
asset/src/framework/mvc/model.lua
asset/src/framework/mvc/model.lua
--[[ Description: Model base Author: M.Wan Date: 04/29/2014 ]] local ModelBase = class("ModelBase") --[[ When you define your model, you must not forget to use _defineScheme method to define your model properties unless you know what you are doing. Scheme indicates the basic properties of the model. And when y...
--[[ Description: Model base Author: M.Wan Date: 04/29/2014 ]] local ModelBase = class("ModelBase") --[[ When you define your model, you must not forget to use _defineScheme method to define your model properties unless you know what you are doing. Scheme indicates the basic properties of the model. And when y...
fix model scheme problem
fix model scheme problem
Lua
apache-2.0
wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua
0e4759f01c31758a01b011222201a85dd34c47b8
pb/proto/parser.lua
pb/proto/parser.lua
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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 -...
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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 -...
Fix bug parsing empty MessageBody.
Fix bug parsing empty MessageBody.
Lua
mit
GabrielNicolasAvellaneda/lua-pb,tgregory/lua-pb
8df5d51b0650ab81680753efe9e126cab4063149
packages/lime-system/files/usr/lib/lua/lime/proto/bmx6.lua
packages/lime-system/files/usr/lib/lua/lime/proto/bmx6.lua
#!/usr/bin/lua bmx6 = {} function bmx6.setup_interface(interface, ifname) local real_ifname = ifname:gsub("^@lm_", "") x:set("bmx6", interface, "dev") x:set("bmx6", interface, "dev", real_ifname) x:save("bmx6") x:set("network", interface, "interface") x:set("network", interface, "ifname", ifn...
#!/usr/bin/lua bmx6 = {} function bmx6.setup_interface(interface, ifname) local real_ifname = ifname:gsub("^@lm_", "") x:set("bmx6", interface, "dev") x:set("bmx6", interface, "dev", real_ifname) x:save("bmx6") x:set("network", interface, "interface") x:set("network", interface, "ifname", ifn...
set mtu=1350 on bmx6 interfaces as a workaround until Axel fixes PMTUD of (a)symmetric ip6_tunnels
set mtu=1350 on bmx6 interfaces as a workaround until Axel fixes PMTUD of (a)symmetric ip6_tunnels
Lua
agpl-3.0
p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages
9f50d2c72358cc4687a49c07bce087469f1be699
common/shared/common.lua
common/shared/common.lua
keyChars = { { 48, 57 }, { 65, 90 }, { 97, 122 } } pedModels = { female = { white = { 12, 31, 38, 39, 40, 41, 53, 54, 55, 56, 64, 75, 77, 85, 86, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 140, 145, 150, 151, 152, 157, 172, 178, 192, 193, 194, 196, 197, 198, 199, 201, 205, 211, 214, 216, 224, 225, 226, 231, 232...
keyChars = { { 48, 57 }, { 65, 90 }, { 97, 122 } } pedModels = { female = { white = { 12, 31, 38, 39, 40, 41, 53, 54, 55, 56, 64, 75, 77, 85, 86, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 140, 145, 150, 151, 152, 157, 172, 178, 192, 193, 194, 196, 197, 198, 199, 201, 205, 211, 214, 216, 224, 225, 226, 231, 232...
common: fixed findByValue not working with tables
common: fixed findByValue not working with tables
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
89f85d51a10e80332a21db55abc2614cbd033c2e
Samples/AntTweakBar/assets/MengerSponge.lua
Samples/AntTweakBar/assets/MengerSponge.lua
function GetShaderPath( ShaderName ) local ProcessedShaderPath = "" if Constants.DeviceType == "D3D11" or Constants.DeviceType == "D3D12" then ProcessedShaderPath = "shaders\\" .. ShaderName .. "_DX.hlsl" else ProcessedShaderPath = "shaders\\" .. ShaderName .. "_GL.glsl" end return ProcessedShaderPath end ...
function GetShaderPath( ShaderName ) local ProcessedShaderPath = "" if Constants.DeviceType == "D3D11" or Constants.DeviceType == "D3D12" then ProcessedShaderPath = "shaders\\" .. ShaderName .. "_DX.hlsl" else ProcessedShaderPath = "shaders\\" .. ShaderName .. "_GL.glsl" end return ProcessedShaderPath end ...
Fixed MengerSponge sample
Fixed MengerSponge sample
Lua
apache-2.0
DiligentGraphics/DiligentSamples,DiligentGraphics/DiligentSamples,DiligentGraphics/DiligentSamples,DiligentGraphics/DiligentSamples,DiligentGraphics/DiligentSamples,DiligentGraphics/DiligentSamples
628617b1c884182cde499af489eb6bdfc63cdd37
conky/mpd.lua
conky/mpd.lua
local curl = require 'cURL' function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end function lines_from(file) if not file_exists(file) then return {} end lines = {} for line in io.lines(file) do lines[#lines + 1] = line end return lines...
local curl = require 'cURL' -- Checks if file exists function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end -- Read file into table of lines function lines_from(file) if not file_exists(file) then return {} end lines = {} for line in io.lines(...
- Fixed bug where if lua couldn't curl everything would fuck up - Added comments
- Fixed bug where if lua couldn't curl everything would fuck up - Added comments
Lua
mit
Iambecomeroot/dotfiles,Iambecomeroot/dotfiles,Iambecomeroot/dotfiles
ea9154eb439c7a06a6dec6f163b5f5015ac908af
scen_edit/utils/table.lua
scen_edit/utils/table.lua
Table = Table or {} function Table:Merge(table2) for k, v in pairs(table2) do if type(v) == 'table' then local sv = type(self[k]) if sv == 'table' or sv == 'nil' then if sv == 'nil' then self[k] = {} end Table.Merge...
Table = Table or {} function Table:Merge(table2) for k, v in pairs(table2) do if type(v) == 'table' then local sv = type(self[k]) if sv == 'table' or sv == 'nil' then if sv == 'nil' then self[k] = {} end Table.Merge...
fix travis
fix travis
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
74c73ae408187517515fec389c104e67a3ca46ad
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
--[[ LuCI - Lua Configuration Interface Copyright 2011 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 ma...
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- loc...
protocols/core: fix peerdns option for dhcp proto
protocols/core: fix peerdns option for dhcp proto git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8695 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
ea813066d9b196b4f2ae375f0c70297e3c77679b
_Out/Server/NFDataCfg/ScriptModule/script_init.lua
_Out/Server/NFDataCfg/ScriptModule/script_init.lua
--package.path = '../../NFDataCfg/Script/?.lua;' pLuaScriptModule = nil; pPluginManager = nil; function init_script_system(xPluginManager,xLuaScriptModule) pPluginManager = xPluginManager; pLuaScriptModule = xLuaScriptModule; io.write("\nHello Lua pPluginManager:" .. tostring(pPluginManager) .. " pLuaScri...
--package.path = '../../NFDataCfg/Script/?.lua;' pLuaScriptModule = nil; pPluginManager = nil; function init_script_system(xPluginManager,xLuaScriptModule) pPluginManager = xPluginManager; pLuaScriptModule = xLuaScriptModule; io.write("\nHello Lua pPluginManager:" .. tostring(pPluginManager) .. " pLuaScri...
fixed ScriptModule
fixed ScriptModule
Lua
apache-2.0
lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame
f6bc5b55dbae6e9eb053dc300198fd17788bdd72
kong/plugins/requestsizelimiting/access.lua
kong/plugins/requestsizelimiting/access.lua
local stringy = require "stringy" local response = require "kong.tools.responses" local _M = {} local CONTENT_LENGHT = "content-length" local function check_size(length, allowed_size) local allowed_bytes_size = allowed_size * 100000 if length > allowed_bytes_size then local headers = ngx.req.get_headers() ...
local stringy = require "stringy" local response = require "kong.tools.responses" local _M = {} local CONTENT_LENGTH = "content-length" local function check_size(length, allowed_size) local allowed_bytes_size = allowed_size * 100000 if length > allowed_bytes_size then local headers = ngx.req.get_headers() ...
updated comment and fixed a typo
updated comment and fixed a typo Former-commit-id: d4e35da22f456da0c06b007e1b523496f8b34adc
Lua
apache-2.0
beauli/kong,ajayk/kong,streamdataio/kong,rafael/kong,Kong/kong,xvaara/kong,vzaramel/kong,akh00/kong,icyxp/kong,isdom/kong,kyroskoh/kong,ejoncas/kong,streamdataio/kong,ccyphers/kong,Kong/kong,Vermeille/kong,vzaramel/kong,ind9/kong,Mashape/kong,rafael/kong,salazar/kong,jerizm/kong,ejoncas/kong,isdom/kong,shiprabehera/kon...
d59dcbeff95fd9ff1d691aea2df0a3014ea4bccb
genie.lua
genie.lua
local THISDIR = os.getcwd() local CLANG_PATH local MSYS_BASE_PATH = "C:/msys64" local MINGW_BASE_PATH = MSYS_BASE_PATH .. "/mingw64" local MSYS_BIN_PATH = MSYS_BASE_PATH .. "/usr/bin" if os.is("linux") then CLANG_PATH = THISDIR .. "/clang/bin:/usr/local/bin:/usr/bin" elseif os.is("windows") then CLANG_PATH = M...
local THISDIR = os.getcwd() local CLANG_PATH local MSYS_BASE_PATH = "C:/msys64" local MINGW_BASE_PATH = MSYS_BASE_PATH .. "/mingw64" local MSYS_BIN_PATH = MSYS_BASE_PATH .. "/usr/bin" if os.is("linux") then CLANG_PATH = THISDIR .. "/clang/bin:/usr/local/bin:/usr/bin" elseif os.is("windows") then CLANG_PATH = M...
* fixed error in build script
* fixed error in build script
Lua
mit
duangle/bangra,duangle/bangra,duangle/bangra,duangle/bangra
76fdc8369567f91b4dc034f5987a9da2e58b651c
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st, jid, uuid = require "util.stanza", require "util.jid", require "util.uuid"; local dataforms_new = require "util.dataforms".new; local usermanager_user_exists...
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st, jid, uuid = require "util.stanza", require "util.jid", require "util.uuid"; local dataforms_new = require "util.dataforms".new; local usermanager_user_exists...
mod_adhoc_cmd_admin: Fixed style, some typos, and got down to <100LOC. Perhaps we need util.adhoc?
mod_adhoc_cmd_admin: Fixed style, some typos, and got down to <100LOC. Perhaps we need util.adhoc?
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
c4f963ab9402700a874467723559dbc069b4c214
tools/rest_translation_server.lua
tools/rest_translation_server.lua
#!/usr/bin/env lua --[[ This requires the restserver-xavante rock to run. run server (this file) th tools/rest_translation_server.lua -model ../Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 query the server curl -v -H "Content-Type: application/json" -X POST -d '{ "src" : "international m...
#!/usr/bin/env lua --[[ This requires the restserver-xavante rock to run. run server (this file) th tools/rest_translation_server.lua -model ../Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 query the server curl -v -H "Content-Type: application/json" -X POST -d '{ "src" : "international m...
small fix
small fix
Lua
mit
jungikim/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,monsieurzhang...
0c07743b33b1203e059a3195bdcc54f1692d60f6
MMOCoreORB/bin/scripts/skills/playerSkills/nonCombat/medic.lua
MMOCoreORB/bin/scripts/skills/playerSkills/nonCombat/medic.lua
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
Thanks to Anakis for this fix. -Adds wound cost to tendwound and tenddamage medic skills.
Thanks to Anakis for this fix. -Adds wound cost to tendwound and tenddamage medic skills. git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@846 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2...
489a1a962ce07b7f742c0934009d4566bbe3c0b8
src/jet/socket.lua
src/jet/socket.lua
local ev = require'ev' local socket = require'socket' local cjson = require'cjson' require'pack' -- blends pack/unpack into string table local print = print local pairs = pairs local tinsert = table.insert local tconcat = table.concat local ipairs = ipairs local assert = assert local spack = string.pack local sunpack ...
local ev = require'ev' local socket = require'socket' local cjson = require'cjson' require'pack'-- blends pack/unpack into string table local print = print local pairs = pairs local tinsert = table.insert local tconcat = table.concat local ipairs = ipairs local assert = assert local spack = string.pack local sunpack =...
bugfix async send
bugfix async send
Lua
mit
lipp/lua-jet
762337214ea1f5a06e44a090281328469c7d0633
src/nodes/wall.lua
src/nodes/wall.lua
local Wall = {} Wall.__index = Wall function Wall.new(node, collider) local wall = {} setmetatable(wall, Wall) wall.bb = collider:addRectangle(node.x, node.y, node.width, node.height) wall.bb.node = wall collider:setPassive(wall.bb) return wall end function Wall:collide(player, dt, mtv_x, mtv...
local Wall = {} Wall.__index = Wall function Wall.new(node, collider) local wall = {} setmetatable(wall, Wall) wall.bb = collider:addRectangle(node.x, node.y, node.width, node.height) wall.bb.node = wall wall.node = node collider:setPassive(wall.bb) return wall end function Wall:collide(p...
Bug fix so you can stand on a wall
Bug fix so you can stand on a wall
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
b05886f70b0ce394ece1bf31d74940d8c7ac09df
interface/flowparse.lua
interface/flowparse.lua
local log = require "log" local function parse_devices(s, devnum, name) local result = {} for num in string.gmatch(s, "([^,]+)") do if num ~= "" then local n = tonumber(num) if not n or n < 0 or n >= devnum then log:error("Invalid device number %q for flow %q.", num, name) else table.insert(resul...
local log = require "log" local function parse_devices(s, devnum, name) local result = {} for num in string.gmatch(s, "([^,]+)") do if num ~= "" then local n = tonumber(num) if not n or n < 0 or n >= devnum then log:error("Invalid device number %q for flow %q.", num, name) else table.insert(resul...
Fix flowparse when no file is specified.
Fix flowparse when no file is specified.
Lua
mit
gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,emmericp/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen
1d1079ec6aadb4892b4d902d91a9618629af2927
middleware/yo-api/yo.lua
middleware/yo-api/yo.lua
-- split function to split a string by a delimiter function split(s, delimiter) result = {} for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match) end return result end return function(request, next_middleware) local response local apiToken = 'YO_API_TOKEN' r...
-- split function to split a string by a delimiter local function split(s, delimiter) local result = {} for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match) end return result end return function(request, next_middleware) local apiToken = 'YO_API_TOKEN' request.headers['C...
fix luacheck messages in yo
fix luacheck messages in yo
Lua
mit
APItools/middleware
bd23f322696394bdb9c0f73f07c168c5f402293d
src/ffluci/model/cbi/admin_wifi/networks.lua
src/ffluci/model/cbi/admin_wifi/networks.lua
-- ToDo: Translate, Add descriptions and help texts m = Map("wireless", "Netze") s = m:section(TypedSection, "wifi-iface") s.addremove = true s.anonymous = true s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32 device = s:option(ListValue, "device", "Gerät") for k, v in pairs(ffluci.model.uci.show("wirel...
-- ToDo: Translate, Add descriptions and help texts m = Map("wireless", "Netze") s = m:section(TypedSection, "wifi-iface") s.addremove = true s.anonymous = true s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32 device = s:option(ListValue, "device", "Gerät") local d = ffluci.model.uci.show("wireless").wi...
* Fixed a bug in Wifi when no wifi interfaces are available
* Fixed a bug in Wifi when no wifi interfaces are available
Lua
apache-2.0
deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci
4f811dd6218b8ea00e700527d17d126ce395c42f
share/lua/website/vimeo.lua
share/lua/website/vimeo.lua
-- libquvi-scripts -- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
-- libquvi-scripts -- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
FIX: vimeo.lua (#97)
FIX: vimeo.lua (#97) Many thanks to the contributor whom wishes to remain anonymous. * https://sourceforge.net/apps/trac/quvi/ticket/97
Lua
agpl-3.0
alech/libquvi-scripts,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer
1e6f9a98c932f073ce20d6951867b16afeebc463
lua/entities/gmod_wire_egp_hud/huddraw.lua
lua/entities/gmod_wire_egp_hud/huddraw.lua
hook.Add("Initialize","EGP_HUD_Initialize",function() if (CLIENT) then local EGP_HUD_FirstPrint = true local tbl = {} -------------------------------------------------------- -- Toggle -------------------------------------------------------- local function EGP_Use( um ) local ent = um:ReadEntity() i...
hook.Add("Initialize","EGP_HUD_Initialize",function() if (CLIENT) then local EGP_HUD_FirstPrint = true local tbl = {} -------------------------------------------------------- -- Toggle -------------------------------------------------------- local function EGP_Use( um ) local ent = um:ReadEntity() i...
attempting to fix imperfect parenting in egp
attempting to fix imperfect parenting in egp This may come at a cost of optimization but this was the only way I could get it to work
Lua
apache-2.0
Grocel/wire,bigdogmat/wire,rafradek/wire,CaptainPRICE/wire,mms92/wire,NezzKryptic/Wire,Python1320/wire,notcake/wire,dvdvideo1234/wire,garrysmodlua/wire,thegrb93/wire,sammyt291/wire,mitterdoo/wire,wiremod/wire
e368e93de68079c2c89b899ad3f335daeae9965b
etc/querylib.lua
etc/querylib.lua
-- -- Some common queries for Ion -- if QueryLib~=nil then return end QueryLib={} -- -- Helper functions -- function QueryLib.make_simple_fn(prompt, initfn, handler, completor) local function query_it(frame) local initvalue; if initfn then initvalue=initfn() end ...
-- -- Some common queries for Ion -- if QueryLib~=nil then return end QueryLib={} -- -- Helper functions -- function QueryLib.make_simple_fn(prompt, initfn, handler, completor) local function query_it(frame) local initvalue; if initfn then initvalue=initfn() end ...
trunk: changeset 410
trunk: changeset 410 QueryLib.query_yesno fixed. darcs-hash:20030410180812-e481e-fe0258441fbee48a2740ac348c0576e1f9c1cf6e.gz
Lua
lgpl-2.1
knixeur/notion,p5n/notion,dkogan/notion,knixeur/notion,neg-serg/notion,anoduck/notion,dkogan/notion.xfttest,neg-serg/notion,raboof/notion,dkogan/notion,dkogan/notion,p5n/notion,raboof/notion,dkogan/notion,p5n/notion,knixeur/notion,p5n/notion,dkogan/notion.xfttest,anoduck/notion,anoduck/notion,dkogan/notion.xfttest,neg-...
68ea11658d9a9044103f00836dfbd4445ac23742
src/lua-factory/sources/grl-metrolyrics.lua
src/lua-factory/sources/grl-metrolyrics.lua
--[[ * Copyright (C) 2014 Victor Toso. * * Contact: Victor Toso <me@victortoso.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your opt...
--[[ * Copyright (C) 2014 Victor Toso. * * Contact: Victor Toso <me@victortoso.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your opt...
metrolyrics: fix parser after metrolyrics changes
metrolyrics: fix parser after metrolyrics changes Metrolyrics now include `class="js-lyric-text"` in the div for lyrics and this patch just ignore it. Also remove `<br>` noise that was introduced recently. https://bugzilla.gnome.org/show_bug.cgi?id=759109
Lua
lgpl-2.1
grilofw/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins
dd1b67b79d9ac1eeaff1e1c7f77fb54f095045e3
nvim/.config/nvim/plugins/nvim-tree.lua
nvim/.config/nvim/plugins/nvim-tree.lua
-- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` require'nvim-tree'.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, auto_close = false, open_on_tab = false, hijack_c...
-- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` require'nvim-tree'.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, open_on_tab = false, hijack_cursor = false, update_c...
Fix nvimtree settings
Fix nvimtree settings
Lua
mit
il-tmfv/dotfiles
0cdc5b64f4365bbc4dafd0552db7f9ea07923496
frontend/dbg.lua
frontend/dbg.lua
local DocSettings = require("docsettings") -- for dump method local Dbg = { is_on = false, ev_log = nil, } local Dbg_mt = {} local function LvDEBUG(lv, ...) local line = "" for i,v in ipairs({...}) do if type(v) == "table" then line = line .. " " .. DocSettings:dump(v, lv) else line = line .. " " .. to...
local DocSettings = require("docsettings") -- for dump method local Dbg = { is_on = false, ev_log = nil, } local Dbg_mt = {} local function LvDEBUG(lv, ...) local line = "" for i,v in ipairs({...}) do if type(v) == "table" then line = line .. " " .. DocSettings:dump(v, lv) else line = line .. " " .. to...
fix debug on/off toggle
fix debug on/off toggle
Lua
agpl-3.0
pazos/koreader,frankyifei/koreader,koreader/koreader,koreader/koreader,mwoz123/koreader,chrox/koreader,poire-z/koreader,robert00s/koreader,NiLuJe/koreader,Frenzie/koreader,Hzj-jie/koreader,Markismus/koreader,NickSavage/koreader,chihyang/koreader,ashhher3/koreader,NiLuJe/koreader,ashang/koreader,apletnev/koreader,noname...
47da9600d1a005f3121e5924c3c159aebd422596
frontend/apps/cloudstorage/webdavapi.lua
frontend/apps/cloudstorage/webdavapi.lua
local DocumentRegistry = require("document/documentregistry") local FFIUtil = require("ffi/util") local http = require('socket.http') local https = require('ssl.https') local ltn12 = require('ltn12') local mime = require('mime') local socket = require('socket') local url = require('socket.url') local util = require("ut...
local DocumentRegistry = require("document/documentregistry") local FFIUtil = require("ffi/util") local http = require('socket.http') local https = require('ssl.https') local ltn12 = require('ltn12') local mime = require('mime') local socket = require('socket') local url = require('socket.url') local util = require("ut...
fix "empty folder" when accessing nextcloud webdav (#5171)
fix "empty folder" when accessing nextcloud webdav (#5171) fix for cloud storage webdav nextcloud "empty folder" problem See https://github.com/koreader/koreader/issues/4879
Lua
agpl-3.0
koreader/koreader,poire-z/koreader,koreader/koreader,Frenzie/koreader,pazos/koreader,poire-z/koreader,mwoz123/koreader,Markismus/koreader,Hzj-jie/koreader,Frenzie/koreader,NiLuJe/koreader,mihailim/koreader,NiLuJe/koreader
8fdcef9daa744796e01f68a32de28831ca1fa45b
src/actions/qmake/qmake_project.lua
src/actions/qmake/qmake_project.lua
-- qmake_project.lua -- Generates .pri projects function premake.qmake.project(prj) if prj.kind == "WindowedApp" then _p(0, 'TEMPLATE = app') elseif prj.kind == "ConsoleApp" then _p(0, 'TEMPLATE = app') _p(0, 'CONFIG += console') _p(0, 'CONFIG -= app_bundle') elseif prj.kind == "StaticLib" or prj.k...
-- qmake_project.lua -- Generates .pri projects function premake.qmake.project(prj) if prj.kind == "WindowedApp" then _p(0, 'TEMPLATE = app') elseif prj.kind == "ConsoleApp" then _p(0, 'TEMPLATE = app') _p(0, 'CONFIG += console') _p(0, 'CONFIG -= app_bundle') elseif prj.kind == "StaticLib" or prj.k...
Fix debug/release config.
Fix debug/release config.
Lua
bsd-3-clause
soundsrc/premake-stable,soundsrc/premake-stable,soundsrc/premake-stable,soundsrc/premake-stable
210526b56825b26614f052de77e094c97f1bf274
tests/test-misc.lua
tests/test-misc.lua
return require('lib/tap')(function (test) test("uv.guess_handle", function (print, p, expect, uv) local types = { [0] = assert(uv.guess_handle(0)), assert(uv.guess_handle(1)), assert(uv.guess_handle(2)), } p("stdio fd types", types) end) test("uv.version and uv.version_string", fun...
return require('lib/tap')(function (test) test("uv.guess_handle", function (print, p, expect, uv) local types = { [0] = assert(uv.guess_handle(0)), assert(uv.guess_handle(1)), assert(uv.guess_handle(2)), } p("stdio fd types", types) end) test("uv.version and uv.version_string", fun...
Fix test-misc when using older libuv versions
Fix test-misc when using older libuv versions
Lua
apache-2.0
luvit/luv,zhaozg/luv,zhaozg/luv,luvit/luv
ebe6faed483bda4c7aaa17fd8cd00fb7b5fcde63
lux/geom/vec.lua
lux/geom/vec.lua
--[[ -- -- Copyright (c) 2013 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- in...
--[[ -- -- Copyright (c) 2013 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- in...
[lux.geom] Fixed vec:unpack
[lux.geom] Fixed vec:unpack
Lua
mit
Kazuo256/luxproject
4d68d6218ead8f30d433760d3706a9c261679b19
src/camerastoryutils/src/Client/CameraStoryUtils.lua
src/camerastoryutils/src/Client/CameraStoryUtils.lua
--[=[ Utility functions for hoacekat stories. @class CameraStoryUtils ]=] local require = require(script.Parent.loader).load(script) local RunService = game:GetService("RunService") local TextService = game:GetService("TextService") local InsertServiceUtils = require("InsertServiceUtils") local Promise = require("...
--[=[ Utility functions for hoacekat stories. @class CameraStoryUtils ]=] local require = require(script.Parent.loader).load(script) local RunService = game:GetService("RunService") local TextService = game:GetService("TextService") local InsertServiceUtils = require("InsertServiceUtils") local Promise = require("...
fix: Make viewport optional
fix: Make viewport optional
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
11397747ac43bdddb222b691a61801353250d86a
applications/luci-initmgr/luasrc/controller/init.lua
applications/luci-initmgr/luasrc/controller/init.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
* luci/app/initmgr: fix translation issue in menu entry
* luci/app/initmgr: fix translation issue in menu entry
Lua
apache-2.0
8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci
04377ca8449ae84d8e4f19a52dc2e37241c6ccaa
lua/entities/gmod_wire_colorer.lua
lua/entities/gmod_wire_colorer.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Colorer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Colorer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:Phys...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Colorer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Colorer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then local color_box_size = 64 function ENT:GetWorldTipBodySize() ...
Added custom overlay to wire colorer
Added custom overlay to wire colorer Custom overlays, woop Also cleaned up the code and fixed a few bugs which, strangely, no one has noticed before (the vector input didn't work, the color output would stop updating if you aimed it at an invalid entity, etc) The old timers deserve some love, too
Lua
apache-2.0
garrysmodlua/wire,immibis/wiremod,mitterdoo/wire,NezzKryptic/Wire,notcake/wire,bigdogmat/wire,plinkopenguin/wiremod,dvdvideo1234/wire,thegrb93/wire,rafradek/wire,Grocel/wire,Python1320/wire,mms92/wire,sammyt291/wire,wiremod/wire,CaptainPRICE/wire
dec0a649e58a89d1266b8135d1343de5bc13f92a
src/core/memory.lua
src/core/memory.lua
module(...,package.seeall) -- For more information about huge pages checkout: -- * HugeTLB - Large Page Support in the Linux kernel -- http://linuxgazette.net/155/krishnakumar.html) -- * linux/Documentation/vm/hugetlbpage.txt -- https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt) local ffi = require("ffi"...
module(...,package.seeall) -- For more information about huge pages checkout: -- * HugeTLB - Large Page Support in the Linux kernel -- http://linuxgazette.net/155/krishnakumar.html) -- * linux/Documentation/vm/hugetlbpage.txt -- https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt) local ffi = require("ffi"...
core.memory: Fix selftest() broken by previous commit
core.memory: Fix selftest() broken by previous commit
Lua
apache-2.0
Igalia/snabb,mixflowtech/logsensor,pirate/snabbswitch,andywingo/snabbswitch,snabbco/snabb,mixflowtech/logsensor,Igalia/snabb,wingo/snabb,kbara/snabb,plajjan/snabbswitch,virtualopensystems/snabbswitch,dwdm/snabbswitch,aperezdc/snabbswitch,kellabyte/snabbswitch,fhanik/snabbswitch,eugeneia/snabbswitch,Igalia/snabb,pavel-o...
4c24e831f619876e5e6f1bf650c29d7750c1d36d
lua/entities/gmod_wire_egp/lib/egplib/materials.lua
lua/entities/gmod_wire_egp/lib/egplib/materials.lua
-------------------------------------------------------- -- Materials (And fonts) -------------------------------------------------------- local EGP = EGP -- Valid fonts table EGP.ValidFonts_Lookup = {} if (CLIENT) then local type = type local SetMaterial = surface.SetMaterial local SetTexture = surface.SetTexture...
-------------------------------------------------------- -- Materials (And fonts) -------------------------------------------------------- local EGP = EGP -- Valid fonts table EGP.ValidFonts_Lookup = {} if (CLIENT) then local type = type local SetMaterial = surface.SetMaterial local NoTexture = draw.NoTexture fu...
Fix for disappearing GPU materials
Fix for disappearing GPU materials
Lua
apache-2.0
wiremod/wire,garrysmodlua/wire,sammyt291/wire,dvdvideo1234/wire,Grocel/wire,NezzKryptic/Wire
fdbadc45384914ddca090cc97ac448b1246e6ba9
src/core/shm.lua
src/core/shm.lua
-- shm.lua -- shared memory alternative to ffi.new() -- API: -- shm.map(name, type[, readonly]) => ptr -- Map a shared object into memory via a heirarchical name. -- shm.unmap(ptr) -- Delete a memory mapping. -- shm.unlink(path) -- Unlink a subtree of objects from the filesystem. -- -- (See NAME SYNT...
-- shm.lua -- shared memory alternative to ffi.new() -- API: -- shm.map(name, type[, readonly]) => ptr -- Map a shared object into memory via a heirarchical name. -- shm.unmap(ptr) -- Delete a memory mapping. -- shm.unlink(path) -- Unlink a subtree of objects from the filesystem. -- -- (See NAME SYNT...
core.shm: Fix and cleanup for object name expansion
core.shm: Fix and cleanup for object name expansion The string pattern for matching the qualifier was not correct and an extra '/' character would appear when path=''.
Lua
apache-2.0
fhanik/snabbswitch,snabbnfv-goodies/snabbswitch,hb9cwp/snabbswitch,Igalia/snabb,lukego/snabb,justincormack/snabbswitch,lukego/snabbswitch,eugeneia/snabb,wingo/snabb,wingo/snabbswitch,pirate/snabbswitch,virtualopensystems/snabbswitch,alexandergall/snabbswitch,dpino/snabb,SnabbCo/snabbswitch,dpino/snabbswitch,wingo/snabb...
7cf4ec343ed9f8c106664b36ca3784332e07f672
scripts/tundra/tools/msvc.lua
scripts/tundra/tools/msvc.lua
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra 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 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra 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...
Added missing PREFIX/SUFFIX keys for msvc.
Added missing PREFIX/SUFFIX keys for msvc.
Lua
mit
bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra
49245fc513a206a74c1e663567a45d6e89922ca8
entities.lua
entities.lua
-- Master file of entity constructors. local entities = {} local function EntityType(name) return function(proto) proto.type = name entities[name] = proto end end local function Component(name) return function(proto) return { name = name, proto = proto } end end EntityType 'Player' { name = 'ey...
-- Master file of entity constructors. local entities = {} local function EntityType(name) return function(proto) proto.type = name entities[name] = proto end end local function Component(name) return function(proto) return { name = name, proto = proto } end end EntityType 'Player' { name = 'pl...
Fix some entity names
Fix some entity names
Lua
mit
ToxicFrog/ttymor
1b5aaba364d2d8bf42a061bad098e8ece6929d95
luasrc/mch/response.lua
luasrc/mch/response.lua
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
fixed Response:error() to output error info to nginx error log file while response has been finished before
fixed Response:error() to output error info to nginx error log file while response has been finished before
Lua
apache-2.0
lilien1010/moochine,appwilldev/moochine,lilien1010/moochine,lilien1010/moochine,appwilldev/moochine
f5114b55496aa768c4e62251c473dba5b3eb0ac6
libs/core/luasrc/model/network.lua
libs/core/luasrc/model/network.lua
--[[ LuCI - Network model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
--[[ LuCI - Network model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
libs/core: luci.model.network: implement contains_inteface(), fix bugs
libs/core: luci.model.network: implement contains_inteface(), fix bugs
Lua
apache-2.0
deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci
64437e4e1a465a36dcd519cffc10f02ee5a6b5b9
modules/game_textmessage/textmessage.lua
modules/game_textmessage/textmessage.lua
MessageSettings = { none = {}, consoleRed = { color = TextColors.red, consoleTab='Default' }, consoleOrange = { color = TextColors.orange, consoleTab='Default' }, consoleBlue = { color = TextColors.blue, consoleTab='Default' }, centerRed = { color = TextColors.red, consoleT...
MessageSettings = { none = {}, consoleRed = { color = TextColors.red, consoleTab='Default' }, consoleOrange = { color = TextColors.orange, consoleTab='Default' }, consoleBlue = { color = TextColors.blue, consoleTab='Default' }, centerRed = { color = TextColors.red, consoleT...
Fix #476
Fix #476
Lua
mit
Radseq/otclient,dreamsxin/otclient,gpedro/otclient,gpedro/otclient,dreamsxin/otclient,Radseq/otclient,Cavitt/otclient_mapgen,gpedro/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen
9c8e79c9e0f4bea3cc3ab070700a2dc9ca644d3d
examples/tcp-ack-interval.lua
examples/tcp-ack-interval.lua
-- -- Measure time between ACKs and display the delay distribution. -- -- TODO: -- * Extend to handle multiple flows per client. Requires a valid -- socket descriptor in _close() hoo (currently broken) to -- differentiate between histograms (one per flow). -- * Extend to handle multiple clients (threads). Requires ...
-- -- Measure time between ACKs and display the delay distribution. -- -- TODO: -- * Get rid of open coded histogram generation. Introduce helpers. -- -- Per-thread base-2 logarithmic histogram of interval lengths in -- microseconds (us) between consecutive TCP ACKs. Keyed by the upper -- bound (exclusive) of the buck...
examples: Fix and update tcp-ack-interval example
examples: Fix and update tcp-ack-interval example Fix botched reporting of histogram bucket counts. Logic did not take into account that ipairs() doesn't work with non-sequential indices. Switch to keying histogram buckets by their upper bound to avoid any pitfalls. Use collect() to copy histograms from worker thread...
Lua
apache-2.0
jsitnicki/rushit,jsitnicki/rushit
48b98f0c099dc621e1f93cccf9a9e03ff75649b6
spec/install_spec.lua
spec/install_spec.lua
local test_env = require("test/test_environment") local lfs = require("lfs") local run = test_env.run local testing_paths = test_env.testing_paths local env_variables = test_env.env_variables test_env.unload_luarocks() local extra_rocks = { "/cprint-0.1-2.src.rock", "/cprint-0.1-2.rockspec", "/lpeg-0.12-1.sr...
local test_env = require("test/test_environment") local lfs = require("lfs") local run = test_env.run local testing_paths = test_env.testing_paths local env_variables = test_env.env_variables test_env.unload_luarocks() local extra_rocks = { "/cprint-0.1-2.src.rock", "/cprint-0.1-2.rockspec", "/lpeg-0.12-1.sr...
Fix of luasocket binary rock tests
Fix of luasocket binary rock tests
Lua
mit
tarantool/luarocks,xpol/luarocks,xpol/luavm,keplerproject/luarocks,xpol/luainstaller,xpol/luavm,keplerproject/luarocks,xpol/luavm,luarocks/luarocks,xpol/luarocks,keplerproject/luarocks,luarocks/luarocks,tarantool/luarocks,xpol/luainstaller,xpol/luarocks,xpol/luavm,xpol/luavm,tarantool/luarocks,keplerproject/luarocks,lu...
0fca111e4199960aabfadac953b07d2fa0f1e8a1
plugins/mod_watchregistrations.lua
plugins/mod_watchregistrations.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local host = module:get_host(); local registration_watchers = module:get_option("registration_watchers"...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local host = module:get_host(); local jid_prep = require "util.jid".prep; local registration_watchers =...
mod_watchregistrations: Convert JID list to a set, and prep before use to fix traceback on invalid JIDs (thanks sMi)
mod_watchregistrations: Convert JID list to a set, and prep before use to fix traceback on invalid JIDs (thanks sMi)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
23d89250cd2941d817a3f3aaffb4ae303af8f416
catalog.d/ezoe.lua
catalog.d/ezoe.lua
nyagos.on_command_not_found = function(args) nyagos.writerr(args[0]..": コマンドではない。\n") return true end local cd = nyagos.alias.cd nyagos.alias.cd = function(args) local success=true for i=1,#args do local dir=args[i] if dir:sub(1,1) ~= "-" and not dir:match("%.[lL][nN][kK]$") t...
nyagos.on_command_not_found = function(args) nyagos.writerr(args[0]..": コマンドではない。\n") return true end if not nyagos.ole then local status status, nyagos.ole = pcall(require,"nyole") if not status then nyagos.ole = nil end end if nyagos.ole then local fsObj = nyagos.ol...
Fixed ezoe.lua did not work when the parameter is not a folder but a file.
Fixed ezoe.lua did not work when the parameter is not a folder but a file.
Lua
bsd-3-clause
kissthink/nyagos,hattya/nyagos,tyochiai/nyagos,hattya/nyagos,hattya/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos,kissthink/nyagos,nocd5/nyagos
6ecfda173e631af77b20d6d5dce8f68e374f0af6
hammerspoon/init.lua
hammerspoon/init.lua
-- A global variable for the Hyper Mode k = hs.hotkey.modal.new({}, "F17") -- Move Windows ------------------------------------------------------------------------------- -- Mission Control k:bind({}, 'up', nil, function() hs.eventtap.keyStroke({"cmd","alt","ctrl"}, 'F13') end) -- Move to Left Screen k:bind({}, 'left...
-- A global variable for the Hyper Mode k = hs.hotkey.modal.new({}, "F17") -- Move Windows ------------------------------------------------------------------------------- -- Mission Control k:bind({}, 'up', nil, function() hs.eventtap.keyStroke({"cmd","alt","ctrl"}, 'F13') end) -- Move to Left Screen k:bind({}, 'left...
fix window sizes for ultrawide
fix window sizes for ultrawide
Lua
mit
francoiscote/dotfiles,francoiscote/dotfiles
8cb54dd8badc3f8696bc66d47eee3baf6d4d3ef3
commands/build.lua
commands/build.lua
zpm.build.commands = {} zpm.build.rcommands = {} function zpm.build.commands.extractdir( targets, prefix ) prefix = prefix or "./" if type(targets) ~= "table" then targets = {targets} end for i, target in ipairs(targets) do local zipFile = path.join( zpm.temp, "submodule.zip" ) ...
zpm.build.commands = {} zpm.build.rcommands = {} function zpm.build.commands.extractdir( targets, prefix ) prefix = prefix or "./" if type(targets) ~= "table" then targets = {targets} end for i, target in ipairs(targets) do local zipFile = path.join( zpm.temp, "submodule.zip" ) ...
Staticlib fix for headeronly builds
Staticlib fix for headeronly builds
Lua
mit
Zefiros-Software/ZPM
14b185529bf345693aab48105482e129b082aed5
test/dev-app/tests/unit/access.lua
test/dev-app/tests/unit/access.lua
local test = require "sailor.test" local access = require "sailor.access" local User = require "sailor.model"('user') local fixtures = require "tests.fixtures.user" or {} describe("Testing #UserController", function() local users setup(function() users = test.load_fixtures('user') end) it("should know ...
local test = require "sailor.test" local access = require "sailor.access" local User = require "sailor.model"('user') local fixtures = require "tests.fixtures.user" or {} describe("Testing #UserController", function() local users it("should know no one has logged in", function() assert.is_true(access.is_gu...
tests(access): Remove unnecessary fixture reload
tests(access): Remove unnecessary fixture reload
Lua
mit
mpeterv/sailor,mpeterv/sailor,Etiene/sailor,sailorproject/sailor,Etiene/sailor
25a1bf5c7f81e9f6bab578c5b60ad99c5ac1ea60
src/cosy/util/proxy.lua
src/cosy/util/proxy.lua
-- Proxies -- ======= -- -- TODO: explain more on data -- -- Data is represented as raw tables, and operations are implemented either -- as functions, or as proxies over raw data. -- The goal of this design decision is to allow easy exchange of data over -- the network, and to select the behaviors depending on the cont...
-- Proxies -- ======= -- -- TODO: explain more on data -- -- Data is represented as raw tables, and operations are implemented either -- as functions, or as proxies over raw data. -- The goal of this design decision is to allow easy exchange of data over -- the network, and to select the behaviors depending on the cont...
Fix proxy tostring and allow [] access for strings.
Fix proxy tostring and allow [] access for strings.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
c6c6560906e544325d0956740975eba5ea23b347
mod_tcpproxy/mod_tcpproxy.lua
mod_tcpproxy/mod_tcpproxy.lua
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
mod_tcpproxy: Handle gracefully invalid base64 data, fixes #2 (thanks dersd)
mod_tcpproxy: Handle gracefully invalid base64 data, fixes #2 (thanks dersd)
Lua
mit
syntafin/prosody-modules,vfedoroff/prosody-modules,brahmi2/prosody-modules,either1/prosody-modules,joewalker/prosody-modules,crunchuser/prosody-modules,mmusial/prosody-modules,mardraze/prosody-modules,NSAKEY/prosody-modules,iamliqiang/prosody-modules,vfedoroff/prosody-modules,jkprg/prosody-modules,drdownload/prosody-mo...
951b0058f88706c727e918a50e76e16cd9dba1b5
stdlib/utils/math.lua
stdlib/utils/math.lua
--- Extends Lua 5.2 math. -- @module Utils.math -- @see math -- @usage local math = require('__stdlib__/stdlib/utils/math') local Math = {} for k, v in pairs(math) do Math[k] = v end local math_abs = math.abs local math_floor = math.floor local math_ceil = math.ceil local math_min = math.min local math_max = mat...
--- Extends Lua 5.2 math. -- @module Utils.math -- @see math -- @usage local math = require('__stdlib__/stdlib/utils/math') local Math = {} for k, v in pairs(math) do Math[k] = v end local math_abs = math.abs local math_floor = math.floor local math_ceil = math.ceil local math_min = math.min local math_max = mat...
Fix math.log10 unavailable in 5.2 without compat
Fix math.log10 unavailable in 5.2 without compat
Lua
isc
Afforess/Factorio-Stdlib
c14ce145056b1a45149a2e43d929d85f44efefea
nvim/lua/plugins.lua
nvim/lua/plugins.lua
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local compile_path = install_path..'/plugin/packer_compiled.lua' local bootstrap = vim.fn.empty(vim.fn.glob(install_path)) > 0 -- For new installations, we may not have packer. -- We need to manually clone and install the package manage...
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local compile_path = install_path..'/plugin/packer_compiled.lua' local bootstrap = vim.fn.empty(vim.fn.glob(install_path)) > 0 -- For new installations, we may not have packer. -- We need to manually clone and install the package manage...
Fix treesitter installation
Fix treesitter installation https://github.com/nvim-treesitter/nvim-treesitter/wiki/Installation
Lua
mit
MrPickles/dotfiles
d96d8022e8fb5e2378869453e07fdc359eb7890e
.config/nvim/lua/treesitter_config.lua
.config/nvim/lua/treesitter_config.lua
local define_modules = require("nvim-treesitter").define_modules local query = require("nvim-treesitter.query") local foldmethod_backups = {} local foldexpr_backups = {} -- folding module -- ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/475#issuecomment-748532035 define_modules( { folding...
local define_modules = require("nvim-treesitter").define_modules local query = require("nvim-treesitter.query") local foldmethod_backups = {} local foldexpr_backups = {} -- folding module -- ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/475#issuecomment-748532035 define_modules( { folding...
nvim: fix: toggling treesitter highlight will disable syntax
nvim: fix: toggling treesitter highlight will disable syntax
Lua
mit
nkcfan/Dotfiles,nkcfan/Dotfiles,nkcfan/Dotfiles
c52e28e5b36e4d06211aafe564b788f364c16685
framework.lua
framework.lua
-- Layer to create quests and act as middle-man between Evennia and Agent require 'utils' local underscore = require 'underscore' local DEBUG = false local DEFAULT_REWARD = -0.1 local STEP_COUNT = 0 -- count the number of steps in current episode local MAX_STEPS = 100 quests = {'You are hungry.','You are sleepy.', 'Y...
-- Layer to create quests and act as middle-man between Evennia and Agent require 'utils' local underscore = require 'underscore' local DEBUG = false local DEFAULT_REWARD = -0.1 local STEP_COUNT = 0 -- count the number of steps in current episode local MAX_STEPS = 500 quests = {'You are hungry.','You are sleepy.', 'Y...
fixed
fixed
Lua
mit
karthikncode/text-world-player,ljm342/text-world-player,ljm342/text-world-player,karthikncode/text-world-player
1a93592ec31c630a5569d396e2cf4532b613a935
pb/proto/scanner.lua
pb/proto/scanner.lua
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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 -...
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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 -...
Fix line count function.
Fix line count function. Simplify line count function by using string.gsub instead of LPeg to count newlines.
Lua
mit
GabrielNicolasAvellaneda/lua-pb,tgregory/lua-pb
dd77110b6610b08c54d67e176ce42538b59efa76
game/scripts/vscripts/data/ability_shop.lua
game/scripts/vscripts/data/ability_shop.lua
ABILITY_SHOP_DATA = { ["obsidian_destroyer_essence_aura"] = { banned_with = {"storm_spirit_ball_lightning", "bristleback_quill_spray", }, }, ["batrider_sticky_napalm"] = { banned_with = {"sandking_sand_storm", "shadow_shaman_shackles", "doom_bringer_scorched_earth", "venomancer_venomous_gale", "venomancer_poison_nova...
ABILITY_SHOP_DATA = { ["obsidian_destroyer_essence_aura"] = { banned_with = {"storm_spirit_ball_lightning", "bristleback_quill_spray", }, }, ["batrider_sticky_napalm"] = { banned_with = {"sandking_sand_storm", "shadow_shaman_shackles", "doom_bringer_scorched_earth", "venomancer_venomous_gale", "venomancer_poison_nova...
Fix Warlock
Fix Warlock
Lua
mit
ark120202/aabs
d469c795e03e57187c1adb5cfc4e8541c40218bd
MMOCoreORB/bin/scripts/object/building/military/outpost_starport.lua
MMOCoreORB/bin/scripts/object/building/military/outpost_starport.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[fixed] Dantooine, Dathomir, Endor, Lok, and Talus starports now have travel terminals, ticket collectors, and shuttles.
[fixed] Dantooine, Dathomir, Endor, Lok, and Talus starports now have travel terminals, ticket collectors, and shuttles. git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@3233 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/...
72de4f0c738e61a35ba49a778a0d2b1cfd436cbc
MMOCoreORB/bin/scripts/object/tangible/food/crafted/dish_protato.lua
MMOCoreORB/bin/scripts/object/tangible/food/crafted/dish_protato.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[Fixed] Protato crafting
[Fixed] Protato crafting git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@2711 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/...
ab721d103484fd2fb5c6410b8f236a34fca49ab1
mods/sponge/init.lua
mods/sponge/init.lua
minetest.register_node("sponge:sponge", { description = "Sponge Dry", drawtype = "normal", tiles = {"sponge_sponge.png"}, paramtype = 'light', walkable = true, pointable = true, diggable = true, buildable_to = false, stack_max = 99, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3}, after_pl...
minetest.register_node("sponge:sponge", { description = "Sponge Dry", drawtype = "normal", tiles = {"sponge_sponge.png"}, paramtype = 'light', walkable = true, pointable = true, diggable = true, buildable_to = false, stack_max = 99, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3}, after_pl...
[sponge] Fix positions
[sponge] Fix positions
Lua
unlicense
MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative
99ee3763c1dae9c0dd7e28aa6fae0a2a79c7b1c1
frontend/ui/elements/mass_storage.lua
frontend/ui/elements/mass_storage.lua
local Device = require("device") local UIManager = require("ui/uimanager") local _ = require("gettext") local MassStorage = {} -- if required a popup will ask before entering mass storage mode function MassStorage:requireConfirmation() return not G_reader_settings:isTrue("mass_storage_confirmation_disabled") end ...
local Device = require("device") local Event = require("ui/event") local UIManager = require("ui/uimanager") local _ = require("gettext") local MassStorage = {} -- if required a popup will ask before entering mass storage mode function MassStorage:requireConfirmation() return not G_reader_settings:isTrue("mass_st...
USBMS: Close all widgets before quitting
USBMS: Close all widgets before quitting FFI finalizers can fire in unspecified orders, but for MuPDF, we need to ensure that the context is the *very* last thing that get destroyed. As such, we need to make sure we close open documents properly on our end, first. This prevents potential crashes while switchign to US...
Lua
agpl-3.0
poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,koreader/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader
b2765fe84c13937268354f9d6134078a0afde3db
xc/priority_auths.lua
xc/priority_auths.lua
local redis_pool = require 'xc/redis_pool' local authorizations_formatter = require 'xc/authorizations_formatter' local storage_keys = require 'xc/storage_keys' local _M = { } -- @return true if the authorization could be retrieved, false otherwise -- @return true if authorized, false if denied, nil if unknown -- @re...
local redis_pool = require 'xc/redis_pool' local authorizations_formatter = require 'xc/authorizations_formatter' local storage_keys = require 'xc/storage_keys' local _M = { } -- @return true if the authorization could be retrieved, false otherwise -- @return true if authorized, false if denied, nil if unknown -- @re...
priority_auths: subscribe before publishing
priority_auths: subscribe before publishing We initially had this in the reverse order (creating a race condition) because the API from lua-redis imposed so. However, the api from resty.redis does not, so fix the race here.
Lua
apache-2.0
3scale/apicast-xc
4e36e11b5f9458c5813141d4344f720634af640f
src_trunk/resources/realism-system/s_reload.lua
src_trunk/resources/realism-system/s_reload.lua
local noReloadGuns = { [25]=true, [33]=true, [34]=true, [35]=true, [36]=true, [37]=true } function reloadWeapon(thePlayer) local weapon = getPlayerWeapon(thePlayer) local ammo = getPlayerTotalAmmo(thePlayer) local reloading = getElementData(thePlayer, "reloading") local jammed = getElementData(thePlayer, "ja...
local noReloadGuns = { [25]=true, [33]=true, [34]=true, [35]=true, [36]=true, [37]=true } local clipSize = { [22]=17, [23]=17, [24]=7, [26]=2, [27]=7, [28]=50, [29]=30, [30]=30, [31]=50, [32]=50 } function reloadWeapon(thePlayer) local weapon = getPlayerWeapon(thePlayer) local ammo = getPlayerTotalAmmo(thePlaye...
Ticket #0000909: Reload bug
Ticket #0000909: Reload bug git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1079 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
01d9b689b0d743c46c18d05c45e5fcf4e7e4863e
src/lua/sancus/web/resource.lua
src/lua/sancus/web/resource.lua
-- local Class = assert(require"sancus.object").Class local request = assert(require"wsapi.request") local C = Class{ _methods = {'GET', 'HEAD', 'POST', 'PUT', 'DELETE'} } function C:find_supported_methods(d) local l = {} if #d > 0 then for _, k in ipairs(d) do if type(self[k]) == 'function' then l[k] = ...
-- local Class = assert(require"sancus.object").Class local request = assert(require"wsapi.request") local C = Class{ _methods = {'GET', 'HEAD', 'POST', 'PUT', 'DELETE'} } function C:find_supported_methods(d) local l = {} if #d > 0 then for _, k in ipairs(d) do if type(self[k]) == 'function' then l[k] = ...
Resource: fix bug that memoized handlers in Resource itself
Resource: fix bug that memoized handlers in Resource itself
Lua
bsd-2-clause
sancus-project/sancus-lua-web
06bce9a9547d2b5dfc44500c5f3b3218ddcd0950
src/lfs/server_status.lua
src/lfs/server_status.lua
local module = ... local function process() local ip, nm, gw = wifi.sta.getip() local device = require("device") local settings = require("settings") settings.token = nil settings.aws = nil local body = { hwVersion = device.hwVersion, swVersion = device.swVersion, heap = node.heap(), uptim...
local module = ... local function process() local ip, nm, gw = wifi.sta.getip() local device = require("device") local settings = require("settings") local body = { hwVersion = device.hwVersion, swVersion = device.swVersion, heap = node.heap(), uptime = tmr.time(), ip = ip, port = math...
fix token getting cleared when requesting status
fix token getting cleared when requesting status
Lua
apache-2.0
konnected-io/konnected-security,konnected-io/konnected-security
c780bdaf29c11428935e429f2c16dc43fe129d5d
tools/doc-parser.lua
tools/doc-parser.lua
local Path = require('path') local Table = require('table') local FS = require('fs') local Utils = require('utils') local function search(code, pattern) local data = {} for pos, k, v in code:gmatch(pattern) do local sub = code:sub(1, pos) local comment = sub:match("\n-- ([^\n]+)\n$") if not comment the...
local Path = require('path') local Table = require('table') local FS = require('fs') local Utils = require('utils') local function search(code, pattern) local data = {} for pos, k, v in code:gmatch(pattern) do local sub = code:sub(1, pos) local comment = sub:match("\n-- ([^\n]+)\n$") if not comment the...
Fix doc-parser for camelCase refactor
Fix doc-parser for camelCase refactor
Lua
apache-2.0
bsn069/luvit,boundary/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,rjeli/luvit,sousoux/luvit,luvit/luvit,kaustavha/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,boundary/luvit,sousoux/luvit,rjeli/luvit,Andrew...
1cd9d51ccd5d63cad5b4ee8e2701f3b3fed08c3e
AceAddon-3.0/AceAddon-3.0.lua
AceAddon-3.0/AceAddon-3.0.lua
local MAJOR, MINOR = "AceAddon-3.0", 0 local AceAddon, oldminor = LibStub:NewLibrary( MAJOR, MINOR ) if not AceAddon then return -- No Upgrade needed. elseif not oldminor then -- This is the first version AceAddon.frame = CreateFrame("Frame", "AceAddon30Frame") -- Our very own frame AceAddon.addons = {} -...
local MAJOR, MINOR = "AceAddon-3.0", 0 local AceAddon, oldminor = LibStub:NewLibrary( MAJOR, MINOR ) if not AceAddon then return -- No Upgrade needed. elseif not oldminor then -- This is the first version AceAddon.frame = CreateFrame("Frame", "AceAddon30Frame") -- Our very own frame AceAddon.addons = {} -- addons ...
Ace3 - - fixed indentation and some general cleanup
Ace3 - - fixed indentation and some general cleanup git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@5 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
125666db3cc5b259fe9becfcfa1f822c4959ce12
mods/nalc/init.lua
mods/nalc/init.lua
-- Change some craft recipe of Witchcraft if minetest.get_modpath("witchcraft") then -- clear crafts with this particular recipe minetest.clear_craft( { recipe = { {"default:sand"} } }) -- register default:desert_sand (by MFF) minetest.register_craft( { output = "default:desert_sand", recipe = { ...
-- Change some craft recipe of Witchcraft if minetest.get_modpath("witchcraft") then -- clear crafts with this particular recipe minetest.clear_craft( { recipe = { {"default:sand"} } }) -- register default:desert_sand (by MFF) minetest.register_craft( { output = "default:desert_sand", recipe = { ...
Fix crash with witchcraft support
Fix crash with witchcraft support
Lua
unlicense
sys4-fr/server-minetestforfun,sys4-fr/server-minetestforfun,sys4-fr/server-minetestforfun
7a600b727205da4eb8f49cbdd31eac55e881bef6
modules/dokpro.lua
modules/dokpro.lua
local htmlparser = require'htmlparser' local trim = function(s) if not s then return nil end return s:match('^()%s*$') and '' or s:match('^%s*(.*%S)') end local parseData = function(data) if(data:match('ordboksdatabasene')) then return nil, 'Service down. :(' end -- This page is a typical example of someone u...
local htmlparser = require'htmlparser' local trim = function(s) if not s then return nil end return s:match('^()%s*$') and '' or s:match('^%s*(.*%S)') end local parseData = function(data) if(data:match('ordboksdatabasene')) then return nil, 'Service down. :(' end -- This page is a typical example of someone u...
dokpro: more html parsing fixes
dokpro: more html parsing fixes
Lua
mit
torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2
6539e9ac7cea63b528d92306c35f83fb0896d44e
bundle/lua-acid-cluster/lib/acid/cluster.lua
bundle/lua-acid-cluster/lib/acid/cluster.lua
local acid_paxos = require( "acid.paxos" ) local paxoshelper = require( "acid.paxoshelper" ) local paxosserver = require( "acid.paxosserver" ) local _M = { _VERSION="0.1", dead_wait = 60*20, dead_timeout = 86400, admin_lease = 60*2, max_dead = 4, _dead = {}, } local _mt = { __index = _M } l...
local acid_paxos = require( "acid.paxos" ) local paxoshelper = require( "acid.paxoshelper" ) local paxosserver = require( "acid.paxosserver" ) local _M = { _VERSION="0.1", dead_wait = 60*20, dead_timeout = 86400, admin_lease = 60*2, max_dead = 4, _dead = {}, } local _mt = { __index = _M } f...
fixup
fixup
Lua
mit
drmingdrmer/lua-paxos,drmingdrmer/lua-paxos
4f984860bc926ab47af9b298f3d7646402815574
vanilla/v/request.lua
vanilla/v/request.lua
-- Request moudle -- @since 2015-08-17 10:54 -- @author idevz <zhoujing00k@gmail.com> -- version $Id$ -- perf local error = error local pairs = pairs local pcall = pcall local setmetatable = setmetatable local Reqargs = require 'vanilla.v.libs.reqargs' local Request = {} function Request:new() -- local headers =...
-- Request moudle -- @since 2015-08-17 10:54 -- @author idevz <zhoujing00k@gmail.com> -- version $Id$ -- perf local error = error local pairs = pairs local pcall = pcall local setmetatable = setmetatable local Reqargs = require 'vanilla.v.libs.reqargs' local Request = {} function Request:new() -- local headers =...
fix a request bug about request args
fix a request bug about request args
Lua
mit
idevz/vanilla,idevz/vanilla
de4ea98d03332261d385a9096ebd9c4f6a3c50d1
xmake/modules/privilege/sudo.lua
xmake/modules/privilege/sudo.lua
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
fix double quote pathenv for sudo
fix double quote pathenv for sudo
Lua
apache-2.0
tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake
ccfa70cfe911129c8bdb936fda99dd11cc60bff4
src/lua-factory/sources/grl-guardianvideos.lua
src/lua-factory/sources/grl-guardianvideos.lua
--[[ * Copyright (C) 2014 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 you...
--[[ * Copyright (C) 2014 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 you...
lua-factory: port grl-guardianvideos.lua to the new lua system
lua-factory: port grl-guardianvideos.lua to the new lua system https://bugzilla.gnome.org/show_bug.cgi?id=753141 Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
Lua
lgpl-2.1
MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins
b9343524e254b8c6d0ca3a781525cd334ce153f1
durden/tools/vrviewer/layouters/default.lua
durden/tools/vrviewer/layouters/default.lua
-- -- basic layout algorithm -- return function(layer) if (layer.fixed) then return; end -- 1. separate models that have parents and root models local root = {}; local chld = {}; local chld_collapse = {}; for _,v in ipairs(layer.models) do if not v.parent then table.insert(root, v); else chld[v.pare...
-- -- basic layout algorithm -- return function(layer) if (layer.fixed) then return; end -- 1. separate models that have parents and root models local root = {}; local chld = {}; local chld_collapse = {}; for _,v in ipairs(layer.models) do if not v.parent then table.insert(root, v); else chld[v.pare...
(vrviewer) fix to layouter ruleset
(vrviewer) fix to layouter ruleset
Lua
bsd-3-clause
letoram/durden
c9bae5346fcc312c2a654d4e3212b883191cd4cc
lua/entities/gmod_wire_keyboard/cl_init.lua
lua/entities/gmod_wire_keyboard/cl_init.lua
include('shared.lua') include("remap.lua") -- For stools/keyboard.lua's layout selector net.Receive("wire_keyboard_blockinput", function(netlen) if net.ReadBit() ~= 0 then hook.Add("PlayerBindPress", "wire_keyboard_blockinput", function(ply, bind, pressed) -- return true for all keys except the mouse, to block k...
include('shared.lua') include("remap.lua") -- For stools/keyboard.lua's layout selector net.Receive("wire_keyboard_blockinput", function(netlen) if net.ReadBit() ~= 0 then hook.Add("StartChat", "wire_keyboard_startchatoverride", function(teamChat) return true end) hook.Add("PlayerBindPress", "wire_keyboard_b...
keyboard fixed issue with chatbox opening
keyboard fixed issue with chatbox opening
Lua
apache-2.0
dvdvideo1234/wire,Grocel/wire,wiremod/wire
91d1138da715f96e25f6102725822c42ed8f6525
[resources]/GTWgates/gates.lua
[resources]/GTWgates/gates.lua
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.albonius.com/bug-reports/ Suggestions: http://forum.albonius....
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.albonius.com/bug-reports/ Suggestions: http://forum.albonius....
[Patch] Fixed arguments issue in colSphere
[Patch] Fixed arguments issue in colSphere
Lua
bsd-2-clause
GTWCode/GTW-RPG,404rq/GTW-RPG,SpRoXx/GTW-RPG,404rq/GTW-RPG,SpRoXx/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG
a5fc62b920a4696dbd91ce872aaba7c5510ff3b7
resources/prosody-plugins/mod_speakerstats_component.lua
resources/prosody-plugins/mod_speakerstats_component.lua
local get_room_from_jid = module:require "util".get_room_from_jid; local jid_resource = require "util.jid".resource; local ext_events = module:require "ext_events" local st = require "util.stanza"; local socket = require "socket"; local json = require "util.json"; local muc_component_host = module:get_option_string("m...
local get_room_from_jid = module:require "util".get_room_from_jid; local jid_resource = require "util.jid".resource; local ext_events = module:require "ext_events" local st = require "util.stanza"; local socket = require "socket"; local json = require "util.json"; local muc_component_host = module:get_option_string("m...
Updates correct loading and fix checking is dominant speaker.
Updates correct loading and fix checking is dominant speaker.
Lua
apache-2.0
jitsi/jitsi-meet,bgrozev/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpoli...
601ebb477e163e44290bcdd5129d378d6ff75ba5
server/lualib/channelhub.lua
server/lualib/channelhub.lua
local core = require "silly.core" local np = require "netpacket" local token = require "token" local sproto = require "protocol.server" local master = require "cluster.master" local pack = string.pack local unpack = string.unpack ----------------socket local function sendserver(fd, uid, cmd, ack) cmd = sproto:queryta...
local core = require "silly.core" local np = require "netpacket" local token = require "token" local sproto = require "protocol.server" local master = require "cluster.master" local pack = string.pack local unpack = string.unpack ----------------socket local function sendserver(fd, uid, cmd, ack) cmd = sproto:queryta...
bugfix: channel_tryforward
bugfix: channel_tryforward
Lua
mit
findstr/mmorpg-demo,findstr/mmorpg-demo
f107daad07b8e763d4ad8cac843ff9dc77894bbd
tests/sfxr/main3.lua
tests/sfxr/main3.lua
require "snd" require "timer" local sfxr = require("sfxr") local last = true room { nam = 'main'; timer = function() if snd.playing(3) then p [[PLAYING]] last = true return elseif last then last = false p [[Нажмите на {button|кнопку} для эффекта.]]; end return false end }:with{ obj { nam ...
require "snd" require "timer" local sfxr = require("sfxr") local last = true local wav -- to cache sound room { nam = 'main'; timer = function() if snd.playing() then p [[PLAYING]] last = true return elseif last then last = false p [[Нажмите на {button|кнопку} для эффекта.]]; end return false...
sfxr fix
sfxr fix
Lua
mit
gl00my/stead3
d968f88fed6e1fc05b0ca795b897d662a3517ff1
Shilke2D/Display/Image.lua
Shilke2D/Display/Image.lua
-- Image --[[ An Image is the Shilke2D equivalent of Flash's Bitmap class. Instead of BitmapData, Shilke2D uses textures to represent the pixels of an image. --]] Image = class(FixedSizeObject) function Image:init(texture, pivotMode) if texture then FixedSizeObject.init(self,texture.width,texture.h...
-- Image --[[ An Image is the Shilke2D equivalent of Flash's Bitmap class. Instead of BitmapData, Shilke2D uses textures to represent the pixels of an image. --]] Image = class(FixedSizeObject) function Image:init(texture, pivotMode) if texture then FixedSizeObject.init(self,texture.width,texture.height,pivotM...
image pixel precision hit test fixes
image pixel precision hit test fixes - setPixelPreciseHitTest alphaLevel is divided by 255 - hitTest handle now correctly the __USE_SIMULATION_COORDS__ configuration
Lua
mit
Shrike78/Shilke2D
a648e02157e23aa5de1fc2b9d10edae28651f065
core/ext/pm/buffer_browser.lua
core/ext/pm/buffer_browser.lua
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Buffer browser for the Textadept project manager. -- It is enabled with the prefix 'buffers' in the project manager entry field. module('textadept.pm.browsers.buffer', package.seeall...
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Buffer browser for the Textadept project manager. -- It is enabled with the prefix 'buffers' in the project manager entry field. module('textadept.pm.browsers.buffer', package.seeall...
Fixed issue with buffer browser cursor saving; core/ext/pm/buffer_browser.lua
Fixed issue with buffer browser cursor saving; core/ext/pm/buffer_browser.lua
Lua
mit
rgieseke/textadept,rgieseke/textadept
232e504f46ac07b1d03ea45f197a633fe3a9e9fd
volume-widget/volume.lua
volume-widget/volume.lua
------------------------------------------------- -- Volume Widget for Awesome Window Manager -- Shows the current volume level -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/volume-widget -- @author Pavel Makhov, Aurélien Lajoie -- @copyright 2018 Pavel Makhov -...
------------------------------------------------- -- Volume Widget for Awesome Window Manager -- Shows the current volume level -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/volume-widget -- @author Pavel Makhov, Aurélien Lajoie -- @copyright 2018 Pavel Makhov -...
fix volume widget initial icon
fix volume widget initial icon
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
bf8d48f3be5cc4b53b98564603dab4f48d495c89
embark_site.lua
embark_site.lua
--[[ embark_site (by Lethosor) Allows embarking in disabled locations (e.g. too small or on an existing site) Note that this script is not yet complete (although it's mostly functional). Notably, there is currently no GUI integration - you can either run it from the console or add keybindings. Some example keybinding...
--[[ embark_site (by Lethosor) Allows embarking in disabled locations (e.g. too small or on an existing site) Note that this script is not yet complete (although it's mostly functional). Notably, there is currently no GUI integration - you can either run it from the console or add keybindings. Some example keybinding...
Fix "a" bug
Fix "a" bug
Lua
unlicense
PeridexisErrant/lethosor-scripts,lethosor/dfhack-scripts,DFHack/lethosor-scripts
186828f356628b7ed70c22c60c05e54778520d8d
src/program/snabbddos/snabbddos.lua
src/program/snabbddos/snabbddos.lua
module(..., package.seeall) local S = require("syscall") local engine = require("core.app") local config = require("core.config") local timer = require("core.timer") local pci = require("lib.hardware.pci") local intel10g = require("apps.intel.intel10g") local intel_app = require("apps.intel.in...
module(..., package.seeall) local Intel82599 = require("apps.intel.intel_app").Intel82599 local S = require("syscall") local engine = require("core.app") local config = require("core.config") local timer = require("core.timer") local pci = require("lib.hardware.pci") local ipv4 = require("...
Fix 10G NIC + config of snabbddos program
Fix 10G NIC + config of snabbddos program I've refactored the config of the snabbddos program. It's quite a bit lengthier but I think it's reasonably easy to read compared to a more compact version. With this change now also have support for 10G intel NICs. Fixes #8.
Lua
apache-2.0
plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch,plajjan/snabbswitch
1af5293d605b0fc8095c3c67ba16522fe958377a
test_scripts/Policies/Related_HMI_API/186_ATF_OnPolicyUpdate_initiation_of_PTU.lua
test_scripts/Policies/Related_HMI_API/186_ATF_OnPolicyUpdate_initiation_of_PTU.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies]: SDL.OnPolicyUpdate initiation of PTU -- [HMI API] SDL.OnPolicyUpdate notification -- -- Description: -- 1. Used preconditions: SDL and HMI are running, Device connected to SDL is consente...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policies]: SDL.OnPolicyUpdate initiation of PTU -- [HMI API] SDL.OnPolicyUpdate notification -- -- Description: -- 1. Used preconditions: SDL and HMI are running, Device connected to SDL is consente...
Fix script issue in 186_atf_onPolicyUpdate (#2645)
Fix script issue in 186_atf_onPolicyUpdate (#2645) * increase wait timout for onStatusUpdate * add OnHMIStatus(NONE) expectation
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
f32d247f8a9ed505d4c38bd6bc25fb7006b33f53
plugins/mod_register.lua
plugins/mod_register.lua
local st = require "util.stanza"; local send = require "core.sessionmanager".send_to_session; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_create_user = require "core.usermanager".create_user; add_iq_handler("c2s", "jabber:iq:register", function (session, stanza) if stanz...
local st = require "util.stanza"; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_create_user = require "core.usermanager".create_user; add_iq_handler("c2s", "jabber:iq:register", function (session, stanza) if stanza.tags[1].name == "query" then local query = stanza.tags[1...
Fixed mod_register to use session.send for sending stanzas
Fixed mod_register to use session.send for sending stanzas
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
f1af81e9dc54a4ae5312077fd26ae5110676efdd
plugins/mod_saslauth.lua
plugins/mod_saslauth.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
mod_saslauth: Fix traceback on attempted login for non-existent users
mod_saslauth: Fix traceback on attempted login for non-existent users
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
add8832ef17a11dbcbde8869883dea52e89e1a52
BtUtils/Vector3.lua
BtUtils/Vector3.lua
-- A 3D Vector Library. -- By Gordon MacPherson with the assistance of google and sir divran! :L -- changes by: Michal Mojzk -- - adapted to be compatible BtUtils by -- - fixed methods to belong into the __index lookup table rather than the metatable itself -- - added LengthSqr -- - changed Normalize to alter ...
-- A 3D Vector Library. -- By Gordon MacPherson with the assistance of google and sir divran! :L -- changes by: Michal Mojzk -- - adapted to be compatible BtUtils by -- - fixed methods to belong into the __index lookup table rather than the metatable itself -- - added LengthSqr -- - changed Normalize to alter ...
fixing Vec3:ToHeading() to return proper values accorning expected azimuth angles
fixing Vec3:ToHeading() to return proper values accorning expected azimuth angles
Lua
mit
MartinFrancu/BETS
0e46395ece87fe25f0432f13ce319098ee74c34a
lua/LUA/ak/demo-anlagen/tutorial-ampel/Andreas_Kreuz-Tutorial-Ampelkreuzung-2-main.lua
lua/LUA/ak/demo-anlagen/tutorial-ampel/Andreas_Kreuz-Tutorial-Ampelkreuzung-2-main.lua
clearlog() local TrafficLightModel = require("ak.road.TrafficLightModel") local TrafficLight = require("ak.road.TrafficLight") local Lane = require("ak.road.Lane") local Crossing = require("ak.road.Crossing") local CrossingSequence = require("ak.road.CrossingSequence") Crossing.debug = true --------------------------...
clearlog() local TrafficLightModel = require("ak.road.TrafficLightModel") local TrafficLight = require("ak.road.TrafficLight") local Lane = require("ak.road.Lane") local Crossing = require("ak.road.Crossing") local CrossingSequence = require("ak.road.CrossingSequence") Crossing.debug = true --------------------------...
fix pedestrian light names and switch in order
fix pedestrian light names and switch in order
Lua
mit
Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep
0c0147c6c9aca3be54eee297c38d6f8e37f8a001
packages/lime-webui/src/model/essentials.lua
packages/lime-webui/src/model/essentials.lua
--[[ Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
--[[ Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
Fix web iface (dummy version but working...)
Fix web iface (dummy version but working...)
Lua
agpl-3.0
libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
4f6129a334f4cfc4963cdcc03c5de4483b01f8fc
src_trunk/resources/tag-system/c_tag_system.lua
src_trunk/resources/tag-system/c_tag_system.lua
cooldown = 0 count = 0 function clientTagWall(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon==41) then local team = getPlayerTeam(getLocalPlayer()) local ftype = getElementData(team, "type") local tag = getElementData(source, "tag") if (ftype~=2) then if not (hitElement...
cooldown = 0 count = 0 function clientTagWall(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon==41) then local team = getPlayerTeam(getLocalPlayer()) local ftype = getElementData(team, "type") local tag = getElementData(source, "tag") if (ftype~=2) then if not (hitElement...
Fixed a bug where you could spray a wall even if it wasn't tall enough to hold that tag.
Fixed a bug where you could spray a wall even if it wasn't tall enough to hold that tag. git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@492 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
02f8c27a43660e3bc3db6f4cec7468a7a0bf437f
libs/uvl/luasrc/uvl/errors.lua
libs/uvl/luasrc/uvl/errors.lua
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
libs/uvl: fix i18n handling for errors
libs/uvl: fix i18n handling for errors git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5475 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
zwhfly/openwrt-luci,vhpham80/luci,phi-psi/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,Flexibity/luci,Flexibity/luci,stephank/luci,jschmidlapp/luci,Canaan-Creative/luci,yeewang/openwrt-luci,phi-psi/luci,ch3n2k/luci,ch3n2k/luci,Canaan-Creative/luci,ch3n2k/luci,8devices/carambola2-luci,ThingMesh/openwrt-luci,8dev...