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 |
|---|---|---|---|---|---|---|---|---|---|
082962a8d80b7cb362388209c926538b50526842 | core/libtexpdf-output.lua | core/libtexpdf-output.lua | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])... | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])... | Revert "Possible fix for #384". It didn't fix it, and it messes other stuff up. | Revert "Possible fix for #384". It didn't fix it, and it messes other stuff up.
This reverts commit 4295e9ca1a6738bdb4bbaa52010724d585140c6a.
| Lua | mit | neofob/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,alerque/sile,neofob/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile |
ac164fdbd3f461844107840be09c26cb31f57460 | src/binder/src/Shared/BinderGroupProvider.lua | src/binder/src/Shared/BinderGroupProvider.lua | --- Provides a basis for binderGroups that can be retrieved anywhere
-- @classmod BinderGroupProvider
local require = require(script.Parent.loader).load(script)
local Promise = require("Promise")
local BinderGroupProvider = {}
BinderGroupProvider.ClassName = "BinderGroupProvider"
BinderGroupProvider.__index = Binder... | --- Provides a basis for binderGroups that can be retrieved anywhere
-- @classmod BinderGroupProvider
local require = require(script.Parent.loader).load(script)
local Promise = require("Promise")
local BinderGroupProvider = {}
BinderGroupProvider.ClassName = "BinderGroupProvider"
BinderGroupProvider.__index = Binder... | fix: Allow BinderGroup to be initialized by the service bag | fix: Allow BinderGroup to be initialized by the service bag
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
a7a90083bfeb4239a8a8ea2d9a803e4d894fc99c | mqtt-client.lua | mqtt-client.lua |
local module = {}
local client = nil
local options = nil
function module.connect(options, connected)
client:connect(options.host, options.port, options.secure, connected, 1,
function(c, reason) print("failed reason: "..reason) end)
end
function module.setup(opts, connected)
options = opts
... |
local module = {}
local client = nil
local options = nil
function module.connect(options, connected)
client:connect(options.host, options.port, options.secure, connected, 1,
function(c, reason) print("failed reason: "..reason) end)
end
function module.setup(opts, connected)
module.options = o... | No global options in mqtt-client, last fixes | No global options in mqtt-client, last fixes
| Lua | mit | DevLoL/super-mario-count |
3a47d1000d1cb9517cc23d6769b937a2055ba280 | nyagos.d/su.lua | nyagos.d/su.lua | nyagos.alias.sudo = function(args)
if #args <= 0 then
nyagos.shellexecute("runas",nyagos.exe)
return
end
local prog = args[1]
table.remove(args,1)
local cwd = nyagos.netdrivetounc(nyagos.getwd())
assert(nyagos.shellexecute("runas",prog,table.concat(args," "),cwd))
end
... | nyagos.alias.sudo = function(args)
if #args <= 0 then
nyagos.shellexecute("runas",nyagos.exe)
return
end
local prog = args[1]
table.remove(args,1)
local cwd = nyagos.netdrivetounc(nyagos.getwd())
assert(nyagos.shellexecute("runas",prog,table.concat(args," "),cwd))
end
... | Fix: su & clone's retrying by cmd.exe did not work on winapi error | Fix: su & clone's retrying by cmd.exe did not work on winapi error
| Lua | bsd-3-clause | tsuyoshicho/nyagos,tyochiai/nyagos,zetamatta/nyagos,nocd5/nyagos |
ddec2816e8290b8c636007158b7ab766384b02dd | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | Fixed statistics | Fixed statistics
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3321 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | zwhfly/openwrt-luci,dtaht/cerowrt-luci-3.3,ch3n2k/luci,8devices/carambola2-luci,vhpham80/luci,jschmidlapp/luci,Canaan-Creative/luci,eugenesan/openwrt-luci,phi-psi/luci,freifunk-gluon/luci,Canaan-Creative/luci,ch3n2k/luci,saraedum/luci-packages-old,Canaan-Creative/luci,stephank/luci,ReclaimYourPrivacy/cloak-luci,ThingMe... |
a4562060af840f00883819753bca2993f55d9bfe | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | mod_ircd: Fixed handling of empty <subject/> elements. | mod_ircd: Fixed handling of empty <subject/> elements.
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
c2be4bdcb39b7b0f746bae9def5564dedee4bba8 | src/characters/leonard.lua | src/characters/leonard.lua | local anim8 = require 'vendor/anim8'
local plyr = {}
plyr.name = 'leonard'
plyr.offset = 9
plyr.ow = 13
plyr.costumes = {
{name='Leonard Rodriguez', sheet='base'},
}
local beam = love.graphics.newImage('images/characters/' .. plyr.name .. '/beam.png')
function plyr.new(sheet)
local new_plyr = {}... | local anim8 = require 'vendor/anim8'
local plyr = {}
plyr.name = 'leonard'
plyr.offset = 9
plyr.ow = 13
plyr.costumes = {
{name='Leonard Rodriguez', sheet='base'},
}
local beam = love.graphics.newImage('images/characters/' .. plyr.name .. '/beam.png')
function plyr.new(sheet)
local new_plyr = {}
new_plyr... | Fixes line ending weirdness with leonard.lua | Fixes line ending weirdness with leonard.lua
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua |
fdd9ab471486162d83273d400f6d33cb97ffebd1 | scen_edit/command/set_sun_parameters_command.lua | scen_edit/command/set_sun_parameters_command.lua | SetSunParametersCommand = UndoableCommand:extends{}
SetSunParametersCommand.className = "SetSunParametersCommand"
function SetSunParametersCommand:init(opts)
self.className = "SetSunParametersCommand"
self.opts = opts
end
function SetSunParametersCommand:execute()
local cmd = WidgetSetSunParametersCommand... | SetSunParametersCommand = UndoableCommand:extends{}
SetSunParametersCommand.className = "SetSunParametersCommand"
function SetSunParametersCommand:init(opts)
self.className = "SetSunParametersCommand"
self.opts = opts
end
function SetSunParametersCommand:execute()
local cmd = WidgetSetSunParametersCommand... | fix sun direction control | fix sun direction control
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
9d3a74896dd3747c8a005115695e484052ec3b0b | roles/dotfiles/files/.imapfilter/work.lua | roles/dotfiles/files/.imapfilter/work.lua | dofile(os.getenv('HOME') .. '/.imapfilter/util.lua')
local me = 'glh@fb.com'
local password = get_pass(me, 'outlook.office365.com')
local phabricator_user = '<PHID-USER-dfiqtsjr7q4b4fu336uy>'
local phabricator_team = '<PHID-PROJ-vgzmhfup375n4lfv4xka>'
function connect()
return IMAP {
server = 'outlook.office365... | dofile(os.getenv('HOME') .. '/.imapfilter/util.lua')
local me = 'glh@fb.com'
local password = get_pass(me, 'outlook.office365.com')
local phabricator_user = '<PHID-USER-dfiqtsjr7q4b4fu336uy>'
local phabricator_team = '<PHID-PROJ-vgzmhfup375n4lfv4xka>'
function connect()
return IMAP {
server = 'outlook.office365... | mutt: add more filters, fixing issues with Exchange and contain_field | mutt: add more filters, fixing issues with Exchange and contain_field
While adding new fields noticed in testing that one of my
`contain_field` calls was returning the wrong messages:
`foo:contain_field('X-Differential-Author', 'some-id')` was matching all
messages with the field, regardless of its contents. Other, si... | Lua | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent |
297a5d27a4e29621044de03b50a9757e3a7de689 | tests/metaparser/main3.lua | tests/metaparser/main3.lua | --$Name:Хейди$
game.dsc = [[^Пример простой игры на Inform.
^Авторы: Роджер Фирт (Roger Firth) и Соня Кессерих (Sonja Kesserich).
^Перевод Юрия Салтыкова a.k.a. G.A. Garinson^
^Перевод на МЕТАПАРСЕР 3 выполнил Петр Косых.
^
]]
require "mp-ru"
require "fmt"
room {
nam = "before_cottage";
title = "Перед домом";
dsc ... | --$Name:Хейди$
game.dsc = [[^Пример простой игры на Inform.
^Авторы: Роджер Фирт (Roger Firth) и Соня Кессерих (Sonja Kesserich).
^Перевод Юрия Салтыкова a.k.a. G.A. Garinson^
^Перевод на МЕТАПАРСЕР 3 выполнил Петр Косых.
^
]]
require "mp-ru"
require "fmt"
room {
nam = "before_cottage";
title = "Перед домом";
dsc ... | heidi fix | heidi fix
| Lua | mit | gl00my/stead3 |
e25d114b78d825f4132d433c58b19f778f7ca800 | lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/accelerometer-adxl345.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/accelerometer-adxl345.lua | --[[
Name: accelerometer-adxl345.lua
Desc: This is an example that uses the ADXL345 Accelerometer on the
I2C Bus on EIO4(SCL) and EIO5(SDA)
--]]
--Outputs data to Registers:
--X accel = 46000
--Y accel = 46002
--Z accel = 46004
------------------------------------------------------------------------... | --[[
Name: accelerometer-adxl345.lua
Desc: This is an example that uses the ADXL345 Accelerometer on the
I2C Bus on EIO4(SCL) and EIO5(SDA)
--]]
--Outputs data to Registers:
--X accel = 46000
--Y accel = 46002
--Z accel = 46004
------------------------------------------------------------------------... | Fixed up the adxl345 example | Fixed up the adxl345 example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
d4c01b0ab321edd290ea0262a67119026c78c5d3 | config/nvim/lua/plugin/rc/catppuccin.lua | config/nvim/lua/plugin/rc/catppuccin.lua | local M = {}
local catppuccin = require("catppuccin")
local colors = require("catppuccin.api.colors").get_colors()
function M.config()
catppuccin.setup({})
catppuccin.remap({
HighlightedCursorLineNr = { fg = colors.red },
HighlightedLineNr = { fg = colors.white },
HighlightedLineNr1 = ... | local M = {}
local catppuccin = require("catppuccin")
local colors = require("catppuccin.api.colors").get_colors()
function M.config()
catppuccin.setup({})
catppuccin.remap({
HighlightedCursorLineNr = { fg = colors.red },
HighlightedLineNr = { fg = colors.text },
HighlightedLineNr1 = {... | fix: Update color palette for recently catppuccin update. | fix: Update color palette for recently catppuccin update.
| Lua | mit | IMOKURI/dotfiles,IMOKURI/dotfiles |
6fe2c8bbc8a5208c33d4e32d222d82b3ee505849 | Framework/LuaTools/info.lua | Framework/LuaTools/info.lua | function get_info(cmd, default)
local f = io.popen (cmd, "r");
local rev = f:read("*a")
f:close ();
if rev ~= nil then
return rev
end
return default
end
REVISION = get_info("git rev-parse HEAD", -1)
USER_NAME = get_info("git config user.name", "-")
BRANCH_PATH = get_info("git branch -a", -1)
REVISION ... | function get_info(cmd, default)
local f = io.popen (cmd, "r");
local rev = f:read("*a")
f:close ();
if rev ~= nil then
return rev
end
return default
end
REVISION = get_info("git rev-parse HEAD", -1)
USER_NAME = get_info("git config user.name", -1)
BRANCH_PATH = get_info("git branch -a", -1)
REVISION =... | buxfix: broken branch path corrected | buxfix: broken branch path corrected
| Lua | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
91c1285b7e51b4da6c202d367b8af9a37a7a0a93 | ffi/framebuffer_pocketbook.lua | ffi/framebuffer_pocketbook.lua | local ffi = require("ffi")
local BB = require("ffi/blitbuffer")
local inkview = ffi.load("inkview")
require("ffi/inkview_h")
require("ffi/linux_fb_h")
local framebuffer = {
}
function framebuffer:init()
self._finfo = ffi.new("struct fb_fix_screeninfo")
self._vinfo = ffi.new("struct fb_var_screeninfo")
... | local ffi = require("ffi")
local BB = require("ffi/blitbuffer")
local inkview = ffi.load("inkview")
require("ffi/inkview_h")
require("ffi/linux_fb_h")
local framebuffer = {
}
local function _getPhysicalRect(fb, x, y, w, h)
local bb = fb.full_bb or fb.bb
w, x = BB.checkBounds(w or bb:getWidth(), x or 0, 0, b... | Fix screen being partially refreshed when screen was rotated 90deg. (#1454) | Fix screen being partially refreshed when screen was rotated 90deg. (#1454)
Fixes: https://github.com/koreader/koreader/issues/8773
When the screen was rotated 90deg. The screen was only updated
partially. | Lua | agpl-3.0 | NiLuJe/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,koreader/koreader-base |
1884237120fbbb3c9b29032d995c132af381f16b | src/sounds/src/Shared/SoundUtils.lua | src/sounds/src/Shared/SoundUtils.lua | --[=[
Helps plays back sounds in the Roblox engine.
```lua
SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound
```
@class SoundUtils
]=]
local SoundService = game:GetService("SoundService")
local SoundUtils = {}
--[=[
Plays back a template given asset id.
```lua
SoundUtils.playFromI... | --[=[
Helps plays back sounds in the Roblox engine.
```lua
SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound
```
@class SoundUtils
]=]
local SoundService = game:GetService("SoundService")
local RunService = game:GetService("RunService")
local SoundUtils = {}
--[=[
Plays back a templa... | fix: Support sound playback for non-local situations. On the server this will require the sound to be parented. | fix: Support sound playback for non-local situations. On the server this will require the sound to be parented.
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
adcf0164338067237fcbb36f42684fa76bfa7b5d | Source/Urho3D/LuaScript/pkgs/ToCppHook.lua | Source/Urho3D/LuaScript/pkgs/ToCppHook.lua | --
-- Copyright (c) 2008-2015 the Urho3D project.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, m... | --
-- Copyright (c) 2008-2015 the Urho3D project.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, m... | Fix ToCpHook.lua when it is being used in external project. | Fix ToCpHook.lua when it is being used in external project.
| Lua | mit | SuperWangKai/Urho3D,luveti/Urho3D,henu/Urho3D,bacsmar/Urho3D,299299/Urho3D,luveti/Urho3D,tommy3/Urho3D,rokups/Urho3D,codedash64/Urho3D,MonkeyFirst/Urho3D,c4augustus/Urho3D,orefkov/Urho3D,bacsmar/Urho3D,kostik1337/Urho3D,codedash64/Urho3D,kostik1337/Urho3D,bacsmar/Urho3D,kostik1337/Urho3D,weitjong/Urho3D,rokups/Urho3D,r... |
4139bb28eeb7d37258b8e77ed3f485a1d23152e1 | test/rpc-handler_call_procedure-SET_COLOR.lua | test/rpc-handler_call_procedure-SET_COLOR.lua | package.path = "../?.lua;" .. package.path
require 'busted.runner'()
local match = require("luassert.match")
describe("impl.rpc-handler", function()
local qlua = require("qlua.api")
local sut = require("impl.rpc-handler")
describe("WHEN given a request of type ProcedureType.SET_COLOR", function()
... | package.path = "../?.lua;" .. package.path
require 'busted.runner'()
local match = require("luassert.match")
describe("impl.rpc-handler", function()
local qlua = require("qlua.api")
local sut = require("impl.rpc-handler")
describe("WHEN given a request of type ProcedureType.SET_COLOR", function()
... | * fixed the target function's definition. | * fixed the target function's definition.
| Lua | apache-2.0 | Enfernuz/quik-lua-rpc,Enfernuz/quik-lua-rpc |
ccff187723296ba9b1f694044b9fee227091126f | src/romdisk/samples/cairo/test/clip_image.lua | src/romdisk/samples/cairo/test/clip_image.lua | local M = {}
function M.test()
local cairo = require "org.xboot.cairo"
local M_PI = math.pi
local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400)
local cr = cairo.create(cs)
cr:save()
cr:set_source_rgb(0.9, 0.9, 0.9)
cr:paint()
cr:restore()
cr:arc(128.0, 128.0, 76.8, 0, 2*M_PI);
cr... | local M = {}
function M.test()
local cairo = require "org.xboot.cairo"
local M_PI = math.pi
local cs = cairo.image_surface_create(cairo.FORMAT_ARGB32, 400, 400)
local cr = cairo.create(cs)
local image = cairo.image_surface_create_from_png("/romdisk/system/media/image/battery/battery_8.png")
local w = image:get... | fix clip_image.lua | fix clip_image.lua
| Lua | mit | xboot/xboot,xboot/xboot |
bdd23c7a44b8467e5d29a3ad1bdb476851d881ab | lua_modules/bourbon/lib/run.lua | lua_modules/bourbon/lib/run.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | test fixes | test fixes
| Lua | apache-2.0 | kans/birgo,kans/birgo,kans/birgo,kans/birgo,kans/birgo |
c81b98b33cf26f01fb1963daa974d0922ebdd2f9 | empty-drills_0.0.1/styles/main.lua | empty-drills_0.0.1/styles/main.lua | --- Location view gui
data.raw["gui-style"].default["lv_location_view"] =
{
type = "button_style",
parent = "button_style",
width = 100,
height = 100,
top_padding = 65,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
font = "font-mb",
default_font_color = {r=0.98, g=0.6... | --- Location view gui
data.raw["gui-style"].default["lv_location_view"] =
{
type = "button_style",
parent = "button_style",
width = 100,
height = 100,
top_padding = 65,
right_padding = 0,
bottom_padding = 0,
left_padding = 0,
font = "font-mb",
default_font_color = {r=0.98, g=0.6... | Fix empty drills bug because of moved resource location | Fix empty drills bug because of moved resource location
| Lua | mit | Zomis/FactorioMods |
613b35fc8d36918745868bde173e34bf78288b2b | src/patch/ui/hooks/joiningroom_enablemods.lua | src/patch/ui/hooks/joiningroom_enablemods.lua | if _mpPatch and _mpPatch.loaded then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
local function enterLobby()
UIManager:QueuePopup(Controls.StagingRoomScreen, PopupPri... | if _mpPatch and _mpPatch.loaded then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
local function enterLobby()
UIManager:QueuePopup(Controls.StagingRoomScreen, PopupPri... | Fix more joiningroom issues. | Fix more joiningroom issues.
| Lua | mit | Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/CivV_Mod2DLC |
da870ca15cdd2c48bf4ef1af21fae16b96a862ce | dialog.lua | dialog.lua | require "widget"
require "font"
InfoMessage = {
face = Font:getFace("infofont", 25)
}
function InfoMessage:show(text,refresh_mode)
print("# InfoMessage ", text, refresh_mode)
local dialog = CenterContainer:new({
dimen = { w = G_width, h = G_height },
FrameContainer:new({
margin = 2,
background = 0,
Ho... | require "widget"
require "font"
InfoMessage = {
face = Font:getFace("infofont", 25)
}
function InfoMessage:show(text,refresh_mode)
print("# InfoMessage ", text, refresh_mode)
local dialog = CenterContainer:new({
dimen = { w = G_width, h = G_height },
FrameContainer:new({
margin = 2,
background = 0,
Ho... | fix bug in showInfoMsgWithDelay() | fix bug in showInfoMsgWithDelay()
The release key event will cause the dialog
disappear immediately after show up. Also
the timeout error is handled with pcall.
| Lua | agpl-3.0 | houqp/koreader,chihyang/koreader,Frenzie/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,noname007/koreader,chrox/koreader,houqp/koreader-base,koreader/koreader-base,frankyifei/koreader,frankyifei/koreader-base,koreader/koreader-base,Hzj-jie/koreader,NickSavage/koreader,NiLuJe/koreader,pazos/koreader,apletnev... |
905d16e64baa1883b7def5ce659667689897e766 | neovim/lua/plugins/nvim-lspconfig/init.lua | neovim/lua/plugins/nvim-lspconfig/init.lua | local is_present_lsp_config, lsp_config = pcall(require, "lspconfig")
local is_present_lsp_inst, lsp_install = pcall(require, "lspinstall")
local is_present_coq, coq = pcall(require, "coq")
if not (is_present_lsp_config or is_present_lsp_inst or is_present_coq) then
error("Error loading " .. "\n\n" .. lsp_config .. l... | local is_present_lsp_config, lsp_config = pcall(require, "lspconfig")
local is_present_lsp_inst, lsp_install = pcall(require, "lspinstall")
local is_present_coq, coq = pcall(require, "coq")
if not (is_present_lsp_config or is_present_lsp_inst or is_present_coq) then
error("Error loading " .. "\n\n" .. lsp_config .. l... | remove autoformat, fix lsp lua vim global | remove autoformat, fix lsp lua vim global
| Lua | mit | rucas/derpfiles,rucas/derpfiles,rucas/derpfiles |
af8bc6d307756bf376b7059f50ccf92732f15c2a | packages/dok/search.lua | packages/dok/search.lua | --------------------------------------------------------------------------------
-- search in help
-- that file defines all the tools and goodies to allow search
--------------------------------------------------------------------------------
local entries = {}
paths.install_dok = paths.concat(paths.install_html, '..'... | --------------------------------------------------------------------------------
-- search in help
-- that file defines all the tools and goodies to allow search
--------------------------------------------------------------------------------
local entries = {}
paths.install_dok = paths.concat(paths.install_html, '..'... | Fixed painful help parser. | Fixed painful help parser.
| Lua | bsd-3-clause | soumith/TH,soumith/TH,soumith/TH,soumith/TH |
b1a1f1dd6c0d3781097736c07107262722dbeffe | durden/menus/target/clipboard.lua | durden/menus/target/clipboard.lua | local function pastefun(wnd, msg)
local dst = wnd.clipboard_out;
if (not dst) then
local dst = alloc_surface(1, 1);
-- this approach triggers an interesting bug that may be worthwhile to explore
-- wnd.clipboard_out = define_recordtarget(alloc_surface(1, 1),
-- wnd.external, "", {null_surface(1,1)}, {},
-- R... | local function pastefun(wnd, msg)
local dst = wnd.clipboard_out;
if (not dst) then
local dst = alloc_surface(1, 1);
-- this approach triggers an interesting bug that may be worthwhile to explore
-- wnd.clipboard_out = define_recordtarget(alloc_surface(1, 1),
-- wnd.external, "", {null_surface(1,1)}, {},
-- R... | clipboard - target/url fix | clipboard - target/url fix
fields were wrong/broken after refactoring a while back.
| Lua | bsd-3-clause | letoram/durden |
677e5ee08e5549df8732b64eaa2462b64a111693 | MMOCoreORB/bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/survivalKnife.lua | MMOCoreORB/bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/survivalKnife.lua | --Copyright (C) 2009 <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) 2009 <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] messed up schematic | [fixed] messed up schematic
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@1255 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2... |
00ece41b2e89d197d1ed6169cdb668c92d088d36 | extensions/window/test_window.lua | extensions/window/test_window.lua | require("hs.timer")
function testAllWindows()
hs.openConsole()
hs.openPreferences()
local allWindows = hs.window.allWindows()
assertIsEqual("table", type(allWindows))
assertGreaterThan(1, #allWindows)
-- Enable this when hs.window objects have a proper __type metatable entry
-- assertIsUserdataOfType(all... | require("hs.timer")
function testAllWindows()
hs.openConsole()
hs.openPreferences()
local allWindows = hs.window.allWindows()
assertIsEqual("table", type(allWindows))
assertGreaterThan(1, #allWindows)
-- Enable this when hs.window objects have a proper __type metatable entry
-- assertIsUserdataOfType(all... | Attempt to debug hs.window.orderedWindows() failure | Attempt to debug hs.window.orderedWindows() failure
Attempt to fix hs.window.orderedWindows() test
Attempt to fix hs.window.orderedWindows() test
| Lua | mit | Hammerspoon/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,asmagill/hammerspoon,Habb... |
5a8b2cb4ca2623961ed9ddf783fc5ce7659920c0 | libs/httpd/luasrc/httpd.lua | libs/httpd/luasrc/httpd.lua | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / 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... | --[[
HTTP server implementation for LuCI - core
(c) 2008 Freifunk Leipzig / 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... | * libs/httpd: Fixed last commit | * libs/httpd: Fixed last commit
| Lua | apache-2.0 | 8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
ae8d7eec19d57e04dfc0280c95df32d6ce316d47 | macos/.config/nvim/lua/dk/lsp.lua | macos/.config/nvim/lua/dk/lsp.lua | local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function set(mode, lhs, rhs, opts)
vim.keymap.set(mode,lhs,rhs,opts)
end
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings.
local opts = { buffer=bufnr}
-- See `:help vim.lsp.*` f... | local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function set(mode, lhs, rhs, opts)
vim.keymap.set(mode,lhs,rhs,opts)
end
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings.
local opts = { buffer=bufnr}
-- See `:help vim.lsp.*` f... | nvim: fix lsp import on save | nvim: fix lsp import on save
| Lua | mit | dvrkps/dotfiles |
20a5d684dba6803090393f0fcd69919199029c43 | Sidebar.lua | Sidebar.lua | -- Sidebar
Sidebar = Tile:extend
{
width = 1,
height = 1,
visible = false,
frame = false,
buttonExists = {},
buttonTable = {},
onNew = function (self)
the.app.view.layers.ui:add(self)
self.frame = loveframes.Create("frame")
self.frame:SetSize(256 / inputScale, 1024 / inputScale)
self.frame:SetPos(1024 ... | -- Sidebar
Sidebar = Tile:extend
{
width = 1,
height = 1,
visible = false,
frame = false,
buttonExists = {},
buttonTable = {},
onNew = function (self)
the.app.view.layers.ui:add(self)
self.frame = loveframes.Create("frame")
self.frame:SetSize(256 / inputScale, 1024 / inputScale)
self.frame:SetPos(1024 ... | sidebar fix | sidebar fix
| Lua | mit | dbltnk/macro-prototype,dbltnk/macro-prototype,dbltnk/macro-prototype,dbltnk/macro-prototype |
b410003e30960416e0d46c5fc876a4396872b123 | xmake/modules/package/manager/find_package.lua | xmake/modules/package/manager/find_package.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix find_package | fix find_package
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
f0054790aa89e1fa8b011031c0f1504d6c888eb2 | lua/akamaiFunctions.lua | lua/akamaiFunctions.lua | -- vars for reference in criteria and behaviours
local aka_request_host = ngx.var.host
local aka_request_path = ngx.var.document_uri
local aka_request_qs = ngx.var.query_string
if aka_request_qs == nil then
aka_request_qs = ""
else
aka_request_qs = "?" .. aka_request_qs
end
-- table to contain manage headers ... | -- vars for reference in criteria and behaviours
local aka_request_scheme = ngx.var.scheme
local aka_request_host = ngx.var.host
local aka_request_path = ngx.var.document_uri
local aka_request_qs = ngx.var.query_string
local aka_origin_url = nil
if aka_request_qs == nil then
aka_request_qs = ""
else
aka_reques... | origin uri fixes and tidy | origin uri fixes and tidy
| Lua | mit | wyvern8/akamai-nginx,wyvern8/akamai-nginx |
fb42c59664c34c1b817a24442b3c5c9b0d244fe4 | packages/verseindex.lua | packages/verseindex.lua | SILE.scratch.tableofverses = {}
local orig_href = SILE.Commands["href"]
local loadstring = loadstring or load
local writeTov = function (self)
local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses)
local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w")
if not tovfile then return S... | SILE.scratch.tableofverses = {}
local orig_href = SILE.Commands["href"]
local loadstring = loadstring or load
local writeTov = function (self)
local contents = "return " .. std.string.pickle(SILE.scratch.tableofverses)
local tovfile, err = io.open(SILE.masterFilename .. '.tov', "w")
if not tovfile then return S... | Remove colomn balancing hack obsoleted by using fixed leading | Remove colomn balancing hack obsoleted by using fixed leading
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
33d63b5446868a06bd69e6da7c1403a382690452 | lualib/skynet/cluster.lua | lualib/skynet/cluster.lua | local skynet = require "skynet"
local clusterd
local cluster = {}
local sender = {}
local task_queue = {}
local function request_sender(q, node)
local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node)
if not ok then
skynet.error(c)
c = nil
end
-- run tasks in queue
local confirm = coroutine.running... | local skynet = require "skynet"
local clusterd
local cluster = {}
local sender = {}
local task_queue = {}
local function repack(address, ...)
return address, skynet.pack(...)
end
local function request_sender(q, node)
local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node)
if not ok then
skynet.error(... | bugfix:params changed when cluster sender is connecting | bugfix:params changed when cluster sender is connecting
| Lua | mit | pigparadise/skynet,pigparadise/skynet,pigparadise/skynet |
12f01b5416afc79e957cf5c1c22411dc5787fb35 | wyx/ui/TooltipFactory.lua | wyx/ui/TooltipFactory.lua | local Class = require 'lib.hump.class'
local Tooltip = getClass 'wyx.ui.Tooltip'
local Text = getClass 'wyx.ui.Text'
local Bar = getClass 'wyx.ui.Bar'
local Frame = getClass 'wyx.ui.Frame'
local Style = getClass 'wyx.ui.Style'
local property = require 'wyx.component.property'
local math_ceil = math.ceil
local colors =... | local Class = require 'lib.hump.class'
local Tooltip = getClass 'wyx.ui.Tooltip'
local Text = getClass 'wyx.ui.Text'
local Bar = getClass 'wyx.ui.Bar'
local Frame = getClass 'wyx.ui.Frame'
local Style = getClass 'wyx.ui.Style'
local property = require 'wyx.component.property'
local math_ceil = math.ceil
local colors =... | fix entity icon border in tooltip | fix entity icon border in tooltip
| Lua | mit | scottcs/wyx |
a36d59711c098896b5f7c3c256df0a9d86f30595 | agents/monitoring/tests/agent-protocol/init.lua | agents/monitoring/tests/agent-protocol/init.lua | local fs = require('fs')
local JSON = require('json')
local AgentProtocol = require('monitoring/lib/protocol/protocol')
local AgentProtocolConnection = require('monitoring/lib/protocol/connection')
local exports = {}
exports['test_handshake_hello'] = function(test, asserts)
fs.readFile('./options.gypi', function(e... | local fs = require('fs')
local JSON = require('json')
local AgentProtocol = require('monitoring/lib/protocol/protocol')
local AgentProtocolConnection = require('monitoring/lib/protocol/connection')
local exports = {}
exports['test_handshake_hello'] = function(test, asserts)
fs.readFile('./agents/monitoring/tests/a... | fix filename | fix filename
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-a... |
6707844c34b10b2cbb7844838c886e9aa315f415 | xmake/rules/cuda/xmake.lua | xmake/rules/cuda/xmake.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix cuda rules | fix cuda rules
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
f6553722b30b723c5027251bfa72c9d7ea7b8c2e | openwrt/package/linkmeter/luasrc/controller/linkmeter/lmadmin.lua | openwrt/package/linkmeter/luasrc/controller/linkmeter/lmadmin.lua | module("luci.controller.linkmeter.lmadmin", package.seeall)
function index()
local node = entry({"admin", "lm"}, alias("admin", "lm", "conf"), "LinkMeter",60)
node.index = true
entry({"admin", "lm", "home"}, template("linkmeter/index"), "Home", 10)
entry({"admin", "lm", "conf"}, template("linkmeter/conf"), "Co... | module("luci.controller.linkmeter.lmadmin", package.seeall)
function index()
local node = entry({"admin", "lm"}, alias("admin", "lm", "conf"), "LinkMeter",60)
node.index = true
entry({"admin", "lm", "home"}, template("linkmeter/index"), "Home", 10)
entry({"admin", "lm", "conf"}, template("linkmeter/conf"), "Co... | [lm] Fix 'reset database' restoring autobackup | [lm] Fix 'reset database' restoring autobackup
| Lua | mit | dwright134/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,s... |
b79ec9be7c6587a342b595de1ab385909fb1671b | MMOCoreORB/bin/scripts/screenplays/screenplay.lua | MMOCoreORB/bin/scripts/screenplays/screenplay.lua | local ObjectManager = require("managers.object.object_manager")
function printf(...) io.write(string.format(unpack(arg))) end
function writeData(key, data)
writeSharedMemory(string.format(key), data)
end
function writeStringData(key, data)
writeStringSharedMemory(string.format(key), string.format(data))
end
funct... | local ObjectManager = require("managers.object.object_manager")
function printf(...) io.write(string.format(unpack(arg))) end
function writeData(key, data)
writeSharedMemory(string.format(key), data)
end
function writeStringData(key, data)
writeStringSharedMemory(string.format(key), string.format(data))
end
funct... | [Fixed] magseals to no longer double spawn loot | [Fixed] magseals to no longer double spawn loot
Change-Id: I4c1b9c2eabac981c3c58c3c965594e0ae997a2b8
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/lege... |
01f0dd3826a356aed9bf3ffd5b2200dc1f4fc5e7 | modules/vim/installed-config/plugin/cmp.lua | modules/vim/installed-config/plugin/cmp.lua | local cmp = require('cmp')
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local kind_icons = {
text = "",
method = "",
['function'] = "",
constructor = "",
field = "",
variable = "",
class = "ﴯ",
interface = "",
module = "",
property = "ﰠ",
u... | local cmp = require('cmp')
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local kind_icons = {
text = "",
method = "",
['function'] = "",
constructor = "",
field = "",
variable = "",
class = "ﴯ",
interface = "",
module = "",
property = "ﰠ",
u... | Fix cmp mappings for command line | Fix cmp mappings for command line
| Lua | mit | justinhoward/dotfiles,justinhoward/dotfiles |
69c6fe6f4ecefc65b6dd7cd601bf3ac33aa61c86 | agents/monitoring/tests/fixtures/protocol/server.lua | agents/monitoring/tests/fixtures/protocol/server.lua | local net = require('net')
local JSON = require('json')
local fixtures = require('./')
local LineEmitter = require('line-emitter').LineEmitter
local table = require('table')
local tls = require('tls')
local timer = require('timer')
local string = require('string')
local math = require('math')
local table = require('tab... | local net = require('net')
local JSON = require('json')
local fixtures = require('./')
local LineEmitter = require('line-emitter').LineEmitter
local table = require('table')
local tls = require('tls')
local timer = require('timer')
local string = require('string')
local math = require('math')
local table = require('tab... | monitoring: fixtures: server: lineEmitter per connection | monitoring: fixtures: server: lineEmitter per connection
make the lineEmitter per connection so that we don't end up sending
responses to all three connections.
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
57e364eb0dde6e5ede7ba59f22c5d2edd14bfd04 | libs/httpd/luasrc/httpd/handler/luci.lua | libs/httpd/luasrc/httpd/handler/luci.lua | --[[
HTTP server implementation for LuCI - luci handler
(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
http://www.apache.org/licenses/LICENSE-2.... | --[[
HTTP server implementation for LuCI - luci handler
(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
http://www.apache.org/licenses/LICENSE-2.... | Fixed occasionally occuring "Overload"-problems with luci-httpd | Fixed occasionally occuring "Overload"-problems with luci-httpd
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3073 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | gwlim/luci,eugenesan/openwrt-luci,ch3n2k/luci,dtaht/cerowrt-luci-3.3,gwlim/luci,ReclaimYourPrivacy/cloak-luci,freifunk-gluon/luci,projectbismark/luci-bismark,eugenesan/openwrt-luci,phi-psi/luci,saraedum/luci-packages-old,yeewang/openwrt-luci,stephank/luci,phi-psi/luci,zwhfly/openwrt-luci,8devices/carambola2-luci,ThingM... |
7e9242cae92cb6c21819013c86bd2b5ec3fffa70 | bam.lua | bam.lua | -- important paths
sourcePath = "src/"
objectPath = "obj/"
testPath = "src/test/"
testObjectPath = "obj/test/"
-- set up compiler settings
settings = NewSettings()
-- full warning level, treat warnings as errors
settings.cc.flags:Add("-Wall -Wextra -Werror")
-- use fPIC for making a shared object
settings.cc.flags:Ad... | -- important paths
sourcePath = "src/"
objectPath = "obj/"
testPath = "src/test/"
testObjectPath = "obj/test/"
-- set up compiler settings
settings = NewSettings()
-- full warning level, treat warnings as errors
settings.cc.flags:Add("-Wall -Wextra -Werror")
-- use fPIC for making a shared object
settings.cc.flags:Ad... | fix multithreaded compilation race condition | fix multithreaded compilation race condition
| Lua | isc | Potent-Code/potency,Potent-Code/potency,Potent-Code/potency |
2c1e83677cb799b00b08f7270443399648e70419 | Modules/ROBLOXAnimations/AnimationPlayer.lua | Modules/ROBLOXAnimations/AnimationPlayer.lua | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local Signal = LoadCustomLibrary("Signal")
local AnimationPlayer = {}
AnimationPlayer.__index = AnimationPlayer
Ani... | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local Signal = LoadCustomLibrary("Signal")
local AnimationPlayer = {}
AnimationPlayer.__index = AnimationPlayer
Ani... | Fixed animation player | Fixed animation player
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
4134bbf5ba5a7bd393b11a43d878b3e5c72f4713 | src/attributeutils/src/Shared/RxAttributeUtils.lua | src/attributeutils/src/Shared/RxAttributeUtils.lua | ---
-- @module RxAttributeUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Observable = require("Observable")
local Maid = require("Maid")
local RxAttributeUtils = {}
function RxAttributeUtils.observeAttribute(instance, attributeName)
assert(typeof(instance) == "Instance", "... | ---
-- @module RxAttributeUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Observable = require("Observable")
local Maid = require("Maid")
local RxAttributeUtils = {}
function RxAttributeUtils.observeAttribute(instance, attributeName, defaultValue)
assert(typeof(instance) ==... | fix: Add default attribute utils | fix: Add default attribute utils
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
881d2acf6f4d1524c998cd59386138589293895f | item/id_164_emptybottle.lua | item/id_164_emptybottle.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | fix #0011309 Potions not created | fix #0011309 Potions not created
use a common function to safely create the item
| Lua | agpl-3.0 | vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content |
f58a5346dad4a3d7af9e3ed2e61b532df31ec01c | hammerspoon/Mute.lua | hammerspoon/Mute.lua | local M = {}
M.device = hs.audiodevice.defaultInputDevice()
M.micVolume = 0.0
M.muteSound = hs.sound.getByName("Mute"): volume(0.35)
M.unmuteSound = hs.sound.getByName("Unmute"):volume(0.35)
M.muteIcon = hs.image.imageFromPath(
"~/Dropbox/config/OSX/Hammerspoon/Images/muted.png"
):setSize({h=18, w=18}, fa... | local M = {}
M.device = hs.audiodevice.defaultInputDevice()
M.micVolume = 75
M.muteSound = hs.sound.getByName("Mute"): volume(0.35)
M.unmuteSound = hs.sound.getByName("Unmute"):volume(0.35)
M.muteIcon = hs.image.imageFromPath(
"~/Dropbox/config/OSX/Hammerspoon/Images/muted.png"
):setSize({h=18, w=18}, fal... | fewer lines, bug fixes | fewer lines, bug fixes
| Lua | mit | rahulsalvi/dotfiles,rahulsalvi/dotfiles,rahulsalvi/dotfiles |
af33824527bb99678ea39e5781adddcbe343a1d0 | includes/path.lua | includes/path.lua | if not ophal.aliases.source then ophal.aliases.source = {} end
if not ophal.aliases.alias then ophal.aliases.alias = {} end
local explode = seawolf.text.explode
local aliases = ophal.aliases
function path_register_alias(path, alias)
aliases.source[path] = alias
aliases.alias[alias] = path
end
do
local argument... | if not ophal.aliases.source then ophal.aliases.source = {} end
if not ophal.aliases.alias then ophal.aliases.alias = {} end
local explode = seawolf.text.explode
local aliases = ophal.aliases
function path_register_alias(path, alias)
aliases.source[path] = alias
aliases.alias[alias] = path
end
do
local argument... | Bug fix: path aliases mixed with source paths. | Bug fix: path aliases mixed with source paths.
| Lua | agpl-3.0 | ophal/core,coinzen/coinage,coinzen/coinage,ophal/core,ophal/core,coinzen/coinage |
acc7755b9ea4edef3aca57aa90a417c098325a81 | SVUI_!Core/system/_reports/artifact.lua | SVUI_!Core/system/_reports/artifact.lua | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | Attempted fix for artifact weirdness | Attempted fix for artifact weirdness
change artifact to only populate after PLAYER_ENTERING_WORLD | Lua | mit | FailcoderAddons/supervillain-ui,finalsliver/supervillain-ui |
c801638a2dbd750ff0793bc2b4da2cb8ad41cb3c | MMOCoreORB/bin/scripts/object/draft_schematic/furniture/city/furniture_fountain.lua | MMOCoreORB/bin/scripts/object/draft_schematic/furniture/city/furniture_fountain.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 later ... | [Fixed] Typo in fountain schematic | [Fixed] Typo in fountain schematic
Change-Id: I5798545f20f9bb9fdb045f9edf32506bb668791a
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
b5365b9af7280a1f0810226559c88ec84bcb8395 | spec/write_rockspec_spec.lua | spec/write_rockspec_spec.lua | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
test_env.unload_luarocks()
describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function()
before_each(function()
test_env.setup_specs()
end)
describe("LuaRocks write_rockspec basic ... | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
test_env.unload_luarocks()
describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function()
before_each(function()
test_env.setup_specs()
end)
describe("LuaRocks write_rockspec basic ... | Tests: fix write_rockspec tests wrt scm -> dev | Tests: fix write_rockspec tests wrt scm -> dev
| Lua | mit | keplerproject/luarocks,tarantool/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks,luarocks/luarocks,luarocks/luarocks,tarantool/luarocks,keplerproject/luarocks,keplerproject/luarocks |
8b09b5134262bbe766c79c8e123d79726229eb5e | src/latclient/starlight.lua | src/latclient/starlight.lua | -- This file is part of the Lua@Client project
-- Copyright (c) 2015 Etiene Dalcol
-- License: MIT
local M = {
js_served = false,
modules_served = {}
}
local common = require "latclient.common"
function M.get_header(s)
if M.js_served == false then
M.js_served = true
local header = [[
<script src="{url}/star... | -- This file is part of the Lua@Client project
-- v0.2
-- Copyright (c) 2015 Etiene Dalcol
-- License: MIT
local M = {
js_served = false,
modules_served = {}
}
local common = require "latclient.common"
function M.get_header(s)
if M.js_served == false then
M.js_served = true
local header = [[
<!-- While targ... | fix(starlight) Adds new starlight latclient module | fix(starlight) Adds new starlight latclient module
| Lua | mit | mpeterv/sailor,Etiene/sailor,Etiene/sailor,sailorproject/sailor,mpeterv/sailor |
c24498a9197231eccd8e6aa0b6b17ca4b7718d90 | src/program/packetblaster/replay/replay.lua | src/program/packetblaster/replay/replay.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
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... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
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... | fix argument pcap file for packetblaster replay | fix argument pcap file for packetblaster replay
| Lua | apache-2.0 | Igalia/snabb,wingo/snabbswitch,heryii/snabb,SnabbCo/snabbswitch,wingo/snabbswitch,kbara/snabb,eugeneia/snabb,eugeneia/snabb,alexandergall/snabbswitch,dpino/snabb,Igalia/snabbswitch,dpino/snabb,Igalia/snabbswitch,Igalia/snabbswitch,Igalia/snabb,mixflowtech/logsensor,Igalia/snabb,mixflowtech/logsensor,eugeneia/snabbswitc... |
224daefd0f692f8601497a7f5680451f9db1243a | src/base/os.lua | src/base/os.lua | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | Process ld.so.conf for includes, fixes os.findlib in Linux. | Process ld.so.conf for includes, fixes os.findlib in Linux.
| Lua | bsd-3-clause | premake/premake-4.x,lizh06/premake-4.x,soundsrc/premake-stable,lizh06/premake-4.x,ryanjmulder/premake-4.x,lizh06/premake-4.x,premake/premake-4.x,ryanjmulder/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,soundsrc/premake-stable,premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,ryanjmulder/pre... |
cbe6085f1aaeaca6fb36d1640c64dea52c36298d | orange/plugins/signature_auth/handler.lua | orange/plugins/signature_auth/handler.lua | local ipairs = ipairs
local type = type
local encode_base64 = ngx.encode_base64
local string_format = string.format
local string_gsub = string.gsub
local tabel_insert = table.insert
local utils = require("orange.utils.utils")
local orange_db = require("orange.store.orange_db")
local judge_util = require("orange.utils.... | local ipairs = ipairs
local type = type
local encode_base64 = ngx.encode_base64
local string_format = string.format
local string_gsub = string.gsub
local tabel_insert = table.insert
local utils = require("orange.utils.utils")
local orange_db = require("orange.store.orange_db")
local judge_util = require("orange.utils.... | fix: corrrect the plugins name | fix: corrrect the plugins name
| Lua | mit | jxskiss/orange,thisverygoodhhhh/orange,sumory/orange,wuhuatianbao007/orange,sumory/orange,wuhuatianbao007/orange,wuhuatianbao007/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange,jxskiss/orange,jxskiss/orange,sumory/orange |
f0d3e731adeaa4a15c62a82592aa1b8262a7cd3b | build/Helpers.lua | build/Helpers.lua | -- This module checks for the all the project dependencies.
newoption {
trigger = "arch",
description = "Choose a particular architecture / bitness",
allowed = {
{ "x86", "x86 32-bits" },
{ "x64", "x64 64-bits" },
}
}
newoption {
trigger = "no-cxx11-abi",
description = "disable... | -- This module checks for the all the project dependencies.
newoption {
trigger = "arch",
description = "Choose a particular architecture / bitness",
allowed = {
{ "x86", "x86 32-bits" },
{ "x64", "x64 64-bits" },
}
}
newoption {
trigger = "no-cxx11-abi",
description = "disable... | Fixed Windows SDK version detection in build scripts. | Fixed Windows SDK version detection in build scripts.
| Lua | mit | ddobrev/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,mono/CppSharp,mono/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,mono/CppSharp,zillemarco/CppSharp,mono/CppSharp,ddobrev/CppSharp,ddobrev/CppSharp,ddobrev/CppSharp,mono/CppSharp,mono/CppSharp |
6a52788b4632b71944881eaa17d28b2879d889cf | test/autobahn_client_test.lua | test/autobahn_client_test.lua | local uv = require "lluv"
local websocket = require "lluv.websocket"
local URI = "ws://127.0.0.1:9001"
local agent = "lluv-websocket"
local caseCount = 0
local currentCaseId = 0
function isWSEOF(err)
return err:name() == 'EOF' and err.cat and err:cat() == 'WEBSOCKET'
end
function getCa... | local uv = require "lluv"
local websocket = require "lluv.websocket"
local URI = "ws://127.0.0.1:9001"
local agent = "lluv-websocket"
local caseCount = 0
local currentCaseId = 0
function isWSEOF(err)
return err:name() == 'EOF' and err.cat and err:cat() == 'WEBSOCKET'
end
function getCa... | Fix. Test does not echo PONGs | Fix. Test does not echo PONGs
| Lua | mit | moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket |
6c8197adb32328afb70bb9ef46f83df661e5946c | spec/02-integration/03-db/11-postgres-ro_spec.lua | spec/02-integration/03-db/11-postgres-ro_spec.lua | local helpers = require "spec.helpers"
local cjson = require "cjson.safe"
for _, strategy in helpers.each_strategy() do
local postgres_only = strategy == "postgres" and describe or pending
postgres_only("postgres readonly connection", function()
local proxy_client, admin_client
lazy_setup(function()
... | local helpers = require "spec.helpers"
local cjson = require "cjson.safe"
for _, strategy in helpers.each_strategy() do
local postgres_only = strategy == "postgres" and describe or pending
postgres_only("postgres readonly connection", function()
local proxy_client, admin_client
lazy_setup(function()
... | fix(tests) more request to wait for router update (#9113) | fix(tests) more request to wait for router update (#9113)
This test is flaky because we may send the request before the router takes effect.
We need to wait not only for log emitting but also for the router update to take effect. | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
607b93c8fae24ff157e3ff36df7c34fee372e890 | aspects/vim/files/.vim/lua/wincent/lsp.lua | aspects/vim/files/.vim/lua/wincent/lsp.lua | local lsp = {}
local nnoremap = function (lhs, rhs)
vim.api.nvim_buf_set_keymap(0, 'n', lhs, rhs, {noremap = true, silent = true})
end
local on_attach = function ()
local mappings = {
['<Leader>ld'] = '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>',
['<c-]>'] = '<cmd>lua vim.lsp.buf.definition()... | local lsp = {}
local nnoremap = function (lhs, rhs)
vim.api.nvim_buf_set_keymap(0, 'n', lhs, rhs, {noremap = true, silent = true})
end
local on_attach = function ()
local mappings = {
['<Leader>ld'] = '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>',
['<c-]>'] = '<cmd>lua vim.lsp.buf.definition()... | fix(vim): provide missing highlighting for two LspDiagnostics groups | fix(vim): provide missing highlighting for two LspDiagnostics groups
These were linking to two cleared groups:
LspDiagnosticsDefaultWarning xxx cleared
LspDiagnosticsDefaultInformation xxx cleared
so showed up as white text on black background, which is a bit ugly... I
don't know if this is the best approach... | Lua | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent |
f365550b7dac594bc275cb4c8e67bf327613bfba | matlab/simple_solids/vrep_cuboid_script_drop_exp.lua | matlab/simple_solids/vrep_cuboid_script_drop_exp.lua | -- DO NOT WRITE CODE OUTSIDE OF THE if-then-end SECTIONS BELOW!! (unless the code is a function definition)
if (sim_call_type==sim_childscriptcall_initialization) then
handle=simGetObjectHandle('Cuboid')
init_pose=io.open("/home/ratnesh/projects/riss/windows_riss_code/bingham/matlab/simple_solids/data/vrep_cub... | -- DO NOT WRITE CODE OUTSIDE OF THE if-then-end SECTIONS BELOW!! (unless the code is a function definition)
if (sim_call_type==sim_childscriptcall_initialization) then
handle=simGetObjectHandle('Cuboid')
init_pose=io.open("/home/ratnesh/projects/riss/windows_riss_code/bingham/matlab/simple_solids/data/vrep_exp... | vrep: fixes/changes drop exp child script | vrep: fixes/changes drop exp child script
| Lua | bsd-3-clause | madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham,madratman/riss_bingham |
552a7b4d1b81fb764da58408ae8f775ed5fa93da | util/sasl.lua | util/sasl.lua |
local md5 = require "util.hashes".md5;
local log = require "util.logger".init("sasl");
local tostring = tostring;
local st = require "util.stanza";
local generate_uuid = require "util.uuid".generate;
local s_match = string.match;
local gmatch = string.gmatch
local string = string
local math = require "math"
local type... |
local md5 = require "util.hashes".md5;
local log = require "util.logger".init("sasl");
local tostring = tostring;
local st = require "util.stanza";
local generate_uuid = require "util.uuid".generate;
local s_match = string.match;
local gmatch = string.gmatch
local string = string
local math = require "math"
local type... | Added a FIXME | Added a FIXME
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
61d0a3777fe9f575fdcbf704b6a007329646db1a | lib/switchboard_modules/lua_script_debugger/premade_scripts/t4/t4_basic_io.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/t4/t4_basic_io.lua | print("T4 Basic I/O Example")
-- This is a basic lua script example that interacts with analog and digital I/O
-- on the T4 once per second. During initialization, all of the flexible I/O
-- lines get configured as digital I/O. Once running, once per second, an
-- analog value is read from AIN0 and written to DAC0. ... | --[[
Name: t4_basic_io.lua
Desc: This is a basic lua script example that interacts with analog and
digital I/O on the T4. During initialization, all of the flexible I/O
lines get configured as digital I/O. Once running, once per second,
an analog value is read from AIN0 and writte... | Fixed up the formatting of the T4 basic I/O example | Fixed up the formatting of the T4 basic I/O example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
44c41e57d077a7b03380358f90d0c366ab4bf056 | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua | -- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local nw = require("luci.model.network").init()
local fw = require("luci.model.firewall").init()
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
m = SimpleForm("... | -- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local nw = require("luci.model.network").init()
local fw = require("luci.model.firewall").init()
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
m = SimpleForm("... | luci-app-travelmate: Fix detection issues of i18n tools | luci-app-travelmate: Fix detection issues of i18n tools
Fixed detection issues of i18n tools for translation target.
'translate()' -> 'translatef()'
And fixed the format within that function.
Signed-off-by: INAGAKI Hiroshi <638227ec0cbd67eab386b2e29d2c44a2415c7884@gmail.com>
| Lua | apache-2.0 | kuoruan/lede-luci,Wedmer/luci,aa65535/luci,oneru/luci,artynet/luci,981213/luci-1,rogerpueyo/luci,remakeelectric/luci,nmav/luci,remakeelectric/luci,oneru/luci,981213/luci-1,openwrt/luci,LuttyYang/luci,openwrt/luci,taiha/luci,artynet/luci,rogerpueyo/luci,wongsyrone/luci-1,lbthomsen/openwrt-luci,oneru/luci,wongsyrone/luci... |
4de6b495156fe8dbd74ec4b581a95af2c60564e0 | src/extensions/cp/apple/finalcutpro/content/Clip.lua | src/extensions/cp/apple/finalcutpro/content/Clip.lua | --- === cp.apple.finalcutpro.content.Clip ===
---
--- Represents a clip of media inside FCP.
local require = require
--local log = require "hs.logger".new "Clip"
local axutils = require "cp.ui.axutils"
local Table = require "cp.ui.Table"
local childWithRole = axutil... | --- === cp.apple.finalcutpro.content.Clip ===
---
--- Represents a clip of media inside FCP.
local require = require
--local log = require "hs.logger".new "Clip"
local axutils = require "cp.ui.axutils"
local Table = require "cp.ui.Table"
local childWithRole = axutil... | Fixed a bug in Clip:setTitle() | Fixed a bug in Clip:setTitle()
- Fixed a bug which was causing the HUD Batch Rename tool to fail
- Closes #2211
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost |
ae5ccb4af05450bb384de9e7cc1dd2d0d2d94af9 | Interface/AddOns/RayUI/modules/skins/blizzard/quest.lua | Interface/AddOns/RayUI/modules/skins/blizzard/quest.lua | local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local
local S = R:GetModule("Skins")
local function LoadSkin()
local r, g, b = S["media"].classcolours[R.myclass].r, S["media"].classcolours[R.myclass].g, S["media"].classcolours[R.myclass].b
S:ReskinPortraitFrame(QuestFrame, true)
QuestF... | local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local
local S = R:GetModule("Skins")
local function LoadSkin()
local r, g, b = S["media"].classcolours[R.myclass].r, S["media"].classcolours[R.myclass].g, S["media"].classcolours[R.myclass].b
S:ReskinPortraitFrame(QuestFrame, true)
QuestT... | fix QuestTitleFont color | fix QuestTitleFont color
| Lua | mit | fgprodigal/RayUI |
036fc0cfd428f853d479c48e493cd7b051f42e63 | pages/shop/checkout/post.lua | pages/shop/checkout/post.lua | function post()
if not app.Shop.Enabled then
http:redirect("/")
return
end
if not session:isLogged() then
http:redirect("/subtopic/login")
return
end
local cart = session:get("shop-cart")
if cart == nil then
http:redirect("/")
return
end
... | function post()
if not app.Shop.Enabled then
http:redirect("/")
return
end
if not session:isLogged() then
http:redirect("/subtopic/login")
return
end
local cart = session:get("shop-cart")
if cart == nil then
http:redirect("/")
return
end
... | Fix shop discount usage | Fix shop discount usage
| Lua | mit | Raggaer/castro,Raggaer/castro,Raggaer/castro |
aff6d4b36dc6154973ab334b9fdbdbfd4a02e6d8 | resources/prosody-plugins/mod_muc_max_occupants.lua | resources/prosody-plugins/mod_muc_max_occupants.lua | -- MUC Max Occupants
-- Configuring muc_max_occupants will set a limit of the maximum number
-- of participants that will be able to join in a room.
-- Participants in muc_access_whitelist will not be counted for the
-- max occupants value (values are jids like recorder@jitsi.meeet.example.com).
-- This module is confi... | -- MUC Max Occupants
-- Configuring muc_max_occupants will set a limit of the maximum number
-- of participants that will be able to join in a room.
-- Participants in muc_access_whitelist will not be counted for the
-- max occupants value (values are jids like recorder@jitsi.meeet.example.com).
-- This module is confi... | Fix mod_muc_max_occupants to properly ignore whitelisted users | Fix mod_muc_max_occupants to properly ignore whitelisted users
In a typical Jitsi Meet setup, this plugin can be used to limit the number of
occupants in a meeting room, while ignoring "utility" users. Such a
configuration could be:
muc_max_occupants = 2
muc_access_whitelist = {
"focus@auth.meet.jitsi... | Lua | apache-2.0 | gpolitis/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,bgrozev/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,gpolitis/jitsi-meet,g... |
6d2163eb622a6f4da43b6ecc8379a1fc891b5b0b | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.df", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Disk space usage on %di",
vlabel = "Byte... | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.df", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Disk space usage on %di",
vlabel = "Byte... | luci-app-statistics: Fix disk usage graphing | luci-app-statistics: Fix disk usage graphing
Disk usage graphing was broken. This fixes it.
Signed-off-by: Daniel Dickinson <9b934cf284d9b196f48b43876d3e01912797242c@daniel.thecshore.com>
| Lua | apache-2.0 | taiha/luci,tobiaswaldvogel/luci,Noltari/luci,chris5560/openwrt-luci,lbthomsen/openwrt-luci,shangjiyu/luci-with-extra,bright-things/ionic-luci,kuoruan/lede-luci,Noltari/luci,981213/luci-1,aa65535/luci,bright-things/ionic-luci,wongsyrone/luci-1,Wedmer/luci,artynet/luci,rogerpueyo/luci,shangjiyu/luci-with-extra,openwrt-es... |
8f11781cd41f7bbd1906ae672ff10c8d62c56ada | Modules/Shared/Assembly/setAssemblyCFrame.lua | Modules/Shared/Assembly/setAssemblyCFrame.lua | --- Gets the full assembly of a part
-- @module setAssemblyCFrame
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local getFullAssembly = require("getFullAssembly")
return function(primaryPart, cframe)
assert(typeof(primaryPart) == "Instance")
assert(typeof(cframe) == "CFram... | --- Gets the full assembly of a part
-- @module setAssemblyCFrame
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local getFullAssembly = require("getFullAssembly")
return function(primaryPart, cframe)
assert(typeof(primaryPart) == "Instance")
assert(typeof(cframe) == "CFram... | Fix setting assembly CFrame | Fix setting assembly CFrame
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
32aa7dba943feca755e9b3f80e8de8cdb36e53ac | MMOCoreORB/bin/scripts/mobile/weapon/serverobjects.lua | MMOCoreORB/bin/scripts/mobile/weapon/serverobjects.lua | -- weapon group templates
-- creature default attack
includeFile("weapon/creature_default_weapon.lua")
-- creature spit attacks
includeFile("weapon/creature_spit_heavy_flame.lua")
includeFile("weapon/creature_spit_large_green.lua")
includeFile("weapon/creature_spit_large_red.lua")
includeFile("weapon/creature_spit_la... | -- weapon group templates
-- creature default attack
includeFile("weapon/creature_default_weapon.lua")
-- creature spit attacks
includeFile("weapon/creature_spit_heavy_flame.lua")
includeFile("weapon/creature_spit_large_green.lua")
includeFile("weapon/creature_spit_large_red.lua")
includeFile("weapon/creature_spit_la... | [Fixed] imperial_weapons_heavy weapon group not loading | [Fixed] imperial_weapons_heavy weapon group not loading
Change-Id: Ib31bd902abd924615479bec017d4496a3058e822
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/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/... |
364f59d7dd75af81305df9d78752ae18e4460974 | libs/chiliui/luaui/chili/chili/controls/combobox.lua | libs/chiliui/luaui/chili/chili/controls/combobox.lua | --//=============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1","item2",...} items table of items in the ComboBox, (default {"items"})
-- @int[opt=1] selected id of the s... | --//=============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1","item2",...} items table of items in the ComboBox, (default {"items"})
-- @int[opt=1] selected id of the s... | fix clicking on combobox scrollbar dismissing the combobox; close #306 | fix clicking on combobox scrollbar dismissing the combobox; close #306
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
2e308d67d88d0c80275610ed8bfe22bc2058db25 | resources/prosody-plugins/mod_muc_allowners.lua | resources/prosody-plugins/mod_muc_allowners.lua | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_healthcheck_room;
local extract_subdomain = util.extract_subdomain;
local pre... | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_healthcheck_room;
local extract_subdomain = util.extract_subdomain;
local pre... | feat: Fixes filtering not needed presences. | feat: Fixes filtering not needed presences.
We were filtering only self presences, no it filters and the presences to the other participants.
| Lua | apache-2.0 | gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet |
a5d99f0619bb58309313ece1ba320a5e465681a2 | packages/rules.lua | packages/rules.lua | SILE.baseClass:loadPackage("raiselower")
SILE.baseClass:loadPackage("rebox")
SILE.registerCommand("hrule", function (options, _)
local width = SU.cast("length", options.width)
local height = SU.cast("length", options.height)
local depth = SU.cast("length", options.depth)
SILE.typesetter:pushHbox({
width = ... | SILE.baseClass:loadPackage("raiselower")
SILE.baseClass:loadPackage("rebox")
SILE.registerCommand("hrule", function (options, _)
local width = SU.cast("length", options.width)
local height = SU.cast("length", options.height)
local depth = SU.cast("length", options.depth)
SILE.typesetter:pushHbox({
width = ... | fix(packages): Make underline respect shrink/strech (rules package) | fix(packages): Make underline respect shrink/strech (rules package)
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
51ea28488129d28cd346d04e605494afa30e16ea | MMOCoreORB/bin/scripts/commands/multiTargetShot.lua | MMOCoreORB/bin/scripts/commands/multiTargetShot.lua | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | [fixed] one of the grammar data bugs | [fixed] one of the grammar data bugs
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@3767 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,Tatwi/legend-of-hondo,Tatwi/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/... |
e9fbae995f5153b5e80883e0639cccd20f313316 | test_scripts/Polices/user_consent_of_Policies/101_ATF_Device_treated_as_consented.lua | test_scripts/Polices/user_consent_of_Policies/101_ATF_Device_treated_as_consented.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] Treating the device as consented
--
-- Description:
-- Condition for device to be consented
-- 1. Used preconditions:
-- Close current connection
-- Overwrite preloaded policy table to hav... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] Treating the device as consented
--
-- Description:
-- Condition for device to be consented
-- 1. Used preconditions:
-- Close current connection
-- Overwrite preloaded policy table to hav... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
18d2631f4dcf8e099230583d0b707fd681da2a72 | src/program/config/listen/listen.lua | src/program/config/listen/listen.lua | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local fiber = require("lib.fibers.fiber")
local queue = require("lib.fibers.queue")
local mem = require("lib.stream.mem")
local file = require("lib.stream.f... | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local fiber = require("lib.fibers.fiber")
local queue = require("lib.fibers.queue")
local mem = require("lib.stream.mem")
local file = require("lib.stream.f... | snabb config listen: fix bug introduced in bfa68ba1bd4ccf7afe973ed21cafac9a0dcb72b5 | snabb config listen: fix bug introduced in bfa68ba1bd4ccf7afe973ed21cafac9a0dcb72b5
| Lua | apache-2.0 | eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,snabbco/snabb,snabbco/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb |
da050a5630709c509174624a50d8b284526f67d6 | modules/corelib/ui/uipopupmenu.lua | modules/corelib/ui/uipopupmenu.lua | -- @docclass
UIPopupMenu = extends(UIWidget)
local currentMenu
function UIPopupMenu.create()
local menu = UIPopupMenu.internalCreate()
local layout = UIVerticalLayout.create(menu)
layout:setFitChildren(true)
menu:setLayout(layout)
return menu
end
function UIPopupMenu:display(pos)
-- don't display if not ... | -- @docclass
UIPopupMenu = extends(UIWidget)
local currentMenu
function UIPopupMenu.create()
local menu = UIPopupMenu.internalCreate()
local layout = UIVerticalLayout.create(menu)
layout:setFitChildren(true)
menu:setLayout(layout)
return menu
end
function UIPopupMenu:display(pos)
-- don't display if not ... | Fix trade/use bug from previous commit | Fix trade/use bug from previous commit
| Lua | mit | dreamsxin/otclient,Cavitt/otclient_mapgen,kwketh/otclient,Radseq/otclient,EvilHero90/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient,dreamsxin/otclient,kwketh/otclient,gpedro/otclient,Radseq/otclient,gpedro/otclient,gpedro/otclient,dreamsxin/otclient |
64179619daa402a98bb05839f6085a45bcd3a6bd | spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua | spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua | -- Mock for the underlying 'resty.dns.resolver' library
-- (so NOT the Kong dns client)
-- this file should be in the Kong working directory (prefix)
local MOCK_RECORD_FILENAME = "dns_mock_records.json"
local LOG_PREFIX = "[mock_dns_resolver] "
local cjson = require "cjson.safe"
-- first thing is to get the origina... | -- Mock for the underlying 'resty.dns.resolver' library
-- (so NOT the Kong dns client)
-- this file should be in the Kong working directory (prefix)
local MOCK_RECORD_FILENAME = "dns_mock_records.json"
local LOG_PREFIX = "[mock_dns_resolver] "
local cjson = require "cjson.safe"
-- first thing is to get the origina... | tests(fixtures) use dummy timer to ensure Nginx event loop continues after resolver returns | tests(fixtures) use dummy timer to ensure Nginx event loop continues after
resolver returns
It is determined that the semaphore module of OpenResty contains a bug
that when `:post()` is called right before a timer terminates, the
thread waiting on `:wait()` will not be triggered immediately. This is a
temporary workar... | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
3efd162049d60b68a299d4ac1e09b3965bc04db8 | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning.lua | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning.lua |
local function alphabeta(handler, node, depth, alpha, beta, maximize)
if depth == 0 then
return handler.heuristic(node)
end
local successors = handler.getNeighbors(node)
if maximize then
for i, successor in ipairs(successors) do
alpha = math.max(alpha, alphabeta(handler, successor, depth - 1, alp... |
local function alphabeta(tree, node, depth, alpha, beta, maximize)
if depth == 0 or tree:isLeaf(node) then
return tree:heuristic(node)
end
local children = tree:children(node)
if maximize then
for i, child in ipairs(children) do
alpha = math.max(alpha, alphabeta(tree, child, depth - 1, alpha, bet... | Fixed initial implementation | Fixed initial implementation
| Lua | mit | sugiartocokrowibowo/Algorithm-Implementations,Sweet-kid/Algorithm-Implementations,kennyledet/Algorithm-Implementations,movb/Algorithm-Implementations,Etiene/Algorithm-Implementations,isalnikov/Algorithm-Implementations,n1ghtmare/Algorithm-Implementations,aayushKumarJarvis/Algorithm-Implementations,imanmafi/Algorithm-Im... |
5f227efdb0cd945a4293a2b851aeb10a021212c6 | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | modules/admin-full/luasrc/model/cbi/admin_system/system.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... | admin-full: Better fix for the last change (timeserver setup), add button to add the missing section | admin-full: Better fix for the last change (timeserver setup), add button to add the missing section
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@7915 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 |
3eb0e48042ad064927afa3fa65a1a1d6c8f9b7d7 | kong/plugins/acl/migrations/001_14_to_15.lua | kong/plugins/acl/migrations/001_14_to_15.lua | return {
postgres = {
up = [[
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE;
EXCEPTION WHEN DUPLICATE_COLUMN THEN
-- Do nothing, accept existing state
END;
$$;
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls"
ALT... | return {
postgres = {
up = [[
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls" ADD "cache_key" TEXT UNIQUE;
EXCEPTION WHEN DUPLICATE_COLUMN THEN
-- Do nothing, accept existing state
END;
$$;
DO $$
BEGIN
ALTER TABLE IF EXISTS ONLY "acls"
ALT... | fix(acl) fix migration of acls on postgres | fix(acl) fix migration of acls on postgres
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
1f91b8fe8f5da833016abe6b204cbc3d8233ba2b | MMOCoreORB/bin/scripts/loot/items/krayt_dragon_scales.lua | MMOCoreORB/bin/scripts/loot/items/krayt_dragon_scales.lua | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
krayt_dragon_scales = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/armor/armor_segment_enhancement_krayt.iff",
craftingValues = {
{"armor_special_type",0,0,0},
{"acidef... | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
krayt_dragon_scales = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/armor/armor_segment_enhancement_krayt.iff",
craftingValues = {
{"armor_special_type",0,0,0},
{"acidef... | (Unstable) [Fixed] Krayt Scales | (Unstable) [Fixed] Krayt Scales
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5123 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
4d7950ff490cf0ab9eb688f8640d764b2ffdf90f | bot.lua | bot.lua | Class = require("hump.class")
require("entity")
require("bullet")
Polygon = require("HC.polygon")
require("mixins.collidable")
require("mixins.health")
local lg = love.graphics
local lk = love.keyboard
local font_14 = love.graphics.newFont("assets/fonts/Hack-Regular.ttf", 14)
local font_16 = love.graphics.newFont("ass... | Class = require("hump.class")
require("entity")
require("bullet")
Polygon = require("HC.polygon")
require("mixins.collidable")
require("mixins.health")
local lg = love.graphics
local lk = love.keyboard
local font_14 = love.graphics.newFont("assets/fonts/Hack-Regular.ttf", 14)
local font_16 = love.graphics.newFont("ass... | Fixed bot polygon | Fixed bot polygon
| Lua | mit | aswyk/botrot |
a303db78405b7a186c41acfadb1f7d29a0c37553 | redir_scripts/preload/default/00_default.lua | redir_scripts/preload/default/00_default.lua | -- Copyright (C) 2006,2007 Lauri Leukkunen <lle@rahina.org>
-- Licensed under so called MIT license.
default_bin = {
func_name = ".*",
path = "^/bin",
map_to = nil
}
default_usrbin = {
func_name = ".*",
path = "^/usr/bin",
map_to = nil
}
default_usrlocalbin = {
func_name = ".*",
path = "^/usr/local/bin",
ma... | -- Copyright (C) 2006,2007 Lauri Leukkunen <lle@rahina.org>
-- Licensed under so called MIT license.
default_bin = {
func_name = ".*",
path = "^/bin",
map_to = nil
}
default_usrbin = {
func_name = ".*",
path = "^/usr/bin",
map_to = nil
}
default_usrlocalbin = {
func_name = ".*",
path = "^/usr/local/bin",
ma... | Fix debhelper mappings | Fix debhelper mappings
Signed-off-by: Lauri Leukkunen <9b23c45cf0fb6926402fd5ded28029be7ec8bbef@rahina.org>
| Lua | lgpl-2.1 | neeraj9/sbox2,OlegGirko/ldbox,loganchien/scratchbox2,h113331pp/scratchbox2,h113331pp/scratchbox2,neeraj9/sbox2,lbt/scratchbox2,madscientist42/scratchbox2,ldbox/ldbox,neeraj9/sbox2,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,loganchien/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,lbt/scr... |
792a36d5b60faf3922641f742a7898d15f405a36 | mod_compat_vcard/mod_compat_vcard.lua | mod_compat_vcard/mod_compat_vcard.lua | -- Compatibility with clients and servers (i.e. ejabberd) that send vcard
-- requests to the full JID
--
-- https://support.process-one.net/browse/EJAB-1045
local jid_bare = require "util.jid".bare;
local st = require "util.stanza";
local core_process_stanza = prosody.core_process_stanza;
module:hook("iq/full", funct... | -- Compatibility with clients and servers (i.e. ejabberd) that send vcard
-- requests to the full JID
--
-- https://support.process-one.net/browse/EJAB-1045
local jid_bare = require "util.jid".bare;
local st = require "util.stanza";
local core_process_stanza = prosody.core_process_stanza;
module:hook("iq/full", funct... | mod_compat_vcard: Fix traceback from probably empty stanzas (Thanks Biszkopcik) | mod_compat_vcard: Fix traceback from probably empty stanzas (Thanks Biszkopcik)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
2a23b24d2d756c441827fd36cd6a869dc1dc5906 | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | modules/admin-full: fix static routes page | modules/admin-full: fix static routes page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5467 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 |
ed0356d6d920229467797729a5b21b390b310c11 | src_trunk/resources/realism-system/water.lua | src_trunk/resources/realism-system/water.lua | -- waves
function setInitialWaves(res)
if (res==getThisResource()) then
local hour, mins = getTime()
createSewerFlood()
if (hour%2==0) then -- even hour
setWaveHeight(1)
else
setWaveHeight(0)
end
end
end
addEventHandler("onClientResourceStart", getRootElement(), setInitialWaves)
fu... | -- waves
function setInitialWaves(res)
if (res==getThisResource()) then
local hour, mins = getTime()
createSewerFlood()
if (hour%2==0) then -- even hour
setWaveHeight(1)
else
setWaveHeight(0)
end
end
end
addEventHandler("onClientResourceStart", getRootElement(), setInitialWaves)
fu... | Many water fixes | Many water fixes
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@937 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
efcb9b7aa97a0dbfec4cb78762c1bbe7b196768a | Code/Tools/BuildScripts/publish.lua | Code/Tools/BuildScripts/publish.lua | ------------------------------------------------------------------------------
-- Copyright (C) 2008-2012, Shane Liesegang
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redist... | ------------------------------------------------------------------------------
-- Copyright (C) 2008-2012, Shane Liesegang
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redist... | Fixing publish script to work for IntroGame. | Fixing publish script to work for IntroGame.
--HG--
extra : convert_revision : svn%3A18234216-3d68-4496-97ee-3aadfc93d375/trunk%40733
| Lua | bsd-3-clause | angel2d/angel2d,tks2103/angel-test,angel2d/angel2d,tks2103/angel-test,angel2d/angel2d,angel2d/angel2d,tks2103/angel-test,tks2103/angel-test,angel2d/angel2d,angel2d/angel2d,tks2103/angel-test,tks2103/angel-test,angel2d/angel2d,tks2103/angel-test,tks2103/angel-test |
48e98af0713c7ebb4fca73a763460834d98129f3 | pud/component/ControllerComponent.lua | pud/component/ControllerComponent.lua | local Class = require 'lib.hump.class'
local Component = getClass 'pud.component.Component'
local CommandEvent = getClass 'pud.event.CommandEvent'
local ConsoleEvent = getClass 'pud.event.ConsoleEvent'
local DisplayPopupMessageEvent = getClass 'pud.event.DisplayPopupMessageEvent'
local WaitCommand = getClass 'pud.comma... | local Class = require 'lib.hump.class'
local Component = getClass 'pud.component.Component'
local CommandEvent = getClass 'pud.event.CommandEvent'
local ConsoleEvent = getClass 'pud.event.ConsoleEvent'
local DisplayPopupMessageEvent = getClass 'pud.event.DisplayPopupMessageEvent'
local WaitCommand = getClass 'pud.comma... | fix "Nothing to equip!" spam | fix "Nothing to equip!" spam
| Lua | mit | scottcs/wyx |
674c8fc07f82a3f9757400de0fa3efa737ff1ef7 | [resources]/GTWaccounts/c_intro.lua | [resources]/GTWaccounts/c_intro.lua | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: https://forum.404rq.com/bug-reports/
Suggestions: https://forum.404rq.com/mta-... | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: https://forum.404rq.com/bug-reports/
Suggestions: https://forum.404rq.com/mta-... | [Patch] Fixed the non working stop command | [Patch] Fixed the non working stop command
| Lua | bsd-2-clause | 404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG |
e525fa7b90a4bf26515b395b2bc361c7d95f7bac | lib/switchboard_modules/lua_script_debugger/premade_scripts/3_set_dac_based_on_voltage.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/3_set_dac_based_on_voltage.lua | print("Read AIN3 input voltage and set DAC0 output voltage. Update at 10Hz")
local InputVoltage = 0
local ThresholdVoltage = 2.5 --threshold is 2.5V
local OutputVoltageA = 4.5
local OutputVoltageB = 0
LJ.IntervalConfig(0, 100) --set interval to 100 for 100ms
local checkInterval=L... | --[[
Name: 3_set_dac_based_on_voltage.lua
Desc: This example shows how to set a DAC according to an input voltage
Note: This example requires firmware 1.0282 (T7) or 1.0023 (T4)
--]]
print("Read AIN3 input voltage and set DAC0 output voltage. Update at 10Hz")
local threshold = 2.5
local vout0 = 4.5
local v... | Fixed up the formatting of the set dac based on voltage example | Fixed up the formatting of the set dac based on voltage example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
a9fd135de39d85d3aca131e8b80284ce6995aa5c | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | applications/luci-firewall: fix turning off nat reflection | applications/luci-firewall: fix turning off nat reflection
| Lua | apache-2.0 | 8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci |
4b0b94264c29273a65e87ff50ce9629e27fb381b | Crop.lua | Crop.lua | local Crop, Parent = torch.class('nn.Crop', 'nn.Module')
---- forward: two paras, work with nnGraph. need redefine forward
function Crop:__init()
Parent.__init(self)
self.mask = torch.Tensor()
end
function Crop:updateOutput(input_data,input)
-- input_data: bottom data
-- input: the current layer's input, format:nBa... | local Crop, Parent = torch.class('nn.Crop', 'nn.Module')
function Crop:__init()
Parent.__init(self)
self.mask = torch.Tensor()
end
function Crop:updateOutput(_input)
-- input_data: bottom data
-- input: current laye's input, format:nBatch x nChanel x H x W or nChannel x H x W, just one scale for per... | fixe some bug | fixe some bug
the crop layer foraward input:{input_data,input}, thus the updateGradInput: {nil,gradInput} | Lua | bsd-3-clause | zchengquan/nn |
7678ab70bdfa4421eedf92b2d299069d74bf4d88 | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | applications/luci-firewall: some fixes on redirection page | applications/luci-firewall: some fixes on redirection page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6514 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI |
afa590000fcf6a6d33a26ee527fe5b3760ddee80 | src/plugins/core/commands/actions.lua | src/plugins/core/commands/actions.lua | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- C O M M A N D A C T I O N --
-----------------------------------------------------------------------------... | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- C O M M A N D A C T I O N --
-----------------------------------------------------------------------------... | Temporary Fix for Global Items in Console | Temporary Fix for Global Items in Console
| Lua | mit | fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost |
df40aaa6a64a7edad6983933f615982aba698d67 | lua/entities/gmod_wire_friendslist.lua | lua/entities/gmod_wire_friendslist.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Friends List"
ENT.WireDebugName = "Friends List"
if CLIENT then return end -- No more client
function ENT:Initialize()
self.BaseClass.Initialize( self )
WireLib.CreateInputs( self, {"CheckEntity [ENTITY]", "CheckSteamID [STRING]", "C... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Friends List"
ENT.WireDebugName = "Friends List"
if CLIENT then return end -- No more client
function ENT:Initialize()
self.BaseClass.Initialize( self )
WireLib.CreateInputs( self, {"CheckEntity [ENTITY]", "CheckSteamID [STRING]", "C... | Fixed friendslist issue | Fixed friendslist issue
Fixed an issue that would happen if someone disconnected from the server
a few times
| Lua | apache-2.0 | bigdogmat/wire,NezzKryptic/Wire,thegrb93/wire,dvdvideo1234/wire,sammyt291/wire,Grocel/wire,wiremod/wire,garrysmodlua/wire |
d048ccab03144f9e6cd93079d02d3a207aafe345 | test_scripts/Polices/Policy_Table_Update/011_ATF_P_TC_HMI_sends_GetURLs_no_app_registered.lua | test_scripts/Polices/Policy_Table_Update/011_ATF_P_TC_HMI_sends_GetURLs_no_app_registered.lua | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- In case HMI sends GetURLs and no apps registered SDL must return only default url
-- [HMI API] GetURLs request/response
--
-- Description:
-- SDL should request PTU in case user requests PTU
-- 1. U... | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- In case HMI sends GetURLs and no apps registered SDL must return only default url
-- [HMI API] GetURLs request/response
--
-- Description:
-- SDL should request PTU in case user requests PTU
-- 1. U... | Fix issues in script | Fix issues in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
84d56b2a4755a499def7fa25ca62e2323727cdd0 | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | modules/admin-full: fix udata vs. string in system.lua model | modules/admin-full: fix udata vs. string in system.lua model
| Lua | apache-2.0 | 8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci |
c892d0b4609be7f83831b6faa13889c8efe975ef | openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarm.lua | openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarm.lua | require "lmclient"
local json = require("luci.json")
local lmcf = json.decode(LmClient():query("$LMCF"))
local m, s, v
m = Map("linkmeter", "Alarm Settings",
[[Alarm trigger points and alert options. Enable an alarm by setting
its threshold to a positive value, or checking the box beside it.
Select the type... | require "lmclient"
local json = require("luci.json")
local lmcf = json.decode(LmClient():query("$LMCF"))
local m, s, v
m = Map("linkmeter", "Alarm Settings",
[[Alarm trigger points and alert options. Enable an alarm by setting
its threshold to a positive value, or checking the box beside it.
Select the type... | [lm] Fix not being able to disable alert actions | [lm] Fix not being able to disable alert actions
Also add help text about special shell characters, which blows up the
alarm script.
| Lua | mit | kdakers80/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,shm... |
c269ec9f53a789877fc3254496f38395760dd9e3 | lua/entities/gmod_wire_starfall_processor/init.lua | lua/entities/gmod_wire_starfall_processor/init.lua |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
ENT.WireDebugName = "Starfall Processor"
ENT.OverlayDelay = 0
local context = SF.CreateContext()
local name = nil
function ENT:UpdateState(state)
... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
ENT.WireDebugName = "Starfall Processor"
ENT.OverlayDelay = 0
local context = SF.CreateContext()
local name = nil
function ENT:UpdateState(state)
... | fixed it being purple | fixed it being purple
Fixes #1
| Lua | bsd-3-clause | Ingenious-Gaming/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.