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
1519ad9cc0a5cf12d849cb7306d73f5df9a97eef
state/main_menu.lua
state/main_menu.lua
local o = {} local startx = W.getWidth() * 0.5 - 176 * 0.5 local starty = 160 o.imgLogo = love.graphics.newImage("resources/sprites/ui/logo.png") o.imgBackground = love.graphics.newImage("resources/sprites/ui/menu_background.png") o.imgMiddleground = love.graphics.newImage("resources/sprites/ui/menu_middleground.p...
local o = {} local startx = W.getWidth() * 0.5 - 176 * 0.5 local starty = 160 o.imgLogo = love.graphics.newImage("resources/sprites/ui/logo.png") o.imgBackground = love.graphics.newImage("resources/sprites/ui/menu_background.png") o.imgMiddleground = love.graphics.newImage("resources/sprites/ui/menu_middleground.p...
menu fix
menu fix
Lua
mit
sam1i/Turres-Monacorum,sam1i/Turres-Monacorum
06f75dc18bf152d9d6bbe8749db69052506200f5
triggerfield/lakeoflife_teleport.lua
triggerfield/lakeoflife_teleport.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...
add sql lines, fix a typo in german text, style fixes
add sql lines, fix a typo in german text, style fixes
Lua
agpl-3.0
LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content
092a7fcb01de7fbe2497cc37578be547f0189bb1
item/id_90_flute.lua
item/id_90_flute.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 flute, and remove test code
fix flute, and remove test code
Lua
agpl-3.0
KayMD/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content
1965434c9b73a3245c30815f888ba83224af29f6
travis-test-tracer/premake4.lua
travis-test-tracer/premake4.lua
-- hdf5 linking is different in windows and ubuntu hdf5_link = "hdf5" thread_link = "pthread" -- Check current linux distro, (on windows returns mingw) local handle = io.popen('uname -a') local result = handle:read("*a") handle:close() if string.find(result, 'Debian') then print(result) hdf5_link="hdf5_serial" en...
-- hdf5 linking is different in windows and ubuntu hdf5_link = "hdf5" thread_link = "pthread" -- Check current linux distro, (on windows returns mingw) local handle = io.popen('uname -a') local result = handle:read("*a") handle:close() if string.find(result, 'Debian') then print(result) hdf5_link="hdf5_serial" en...
Travis fix
Travis fix
Lua
apache-2.0
ollitapa/VTT-Raytracer,ollitapa/VTT-Raytracer
b5746390cd24c1df6fcc0ac06c8108fcf16dfb5e
share/lua/playlist/lelombrik.lua
share/lua/playlist/lelombrik.lua
--[[ French humor site: http://lelombrik.net $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
--[[ French humor site: http://lelombrik.net $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any ...
lelombrik: fix title encoding.
lelombrik: fix title encoding.
Lua
lgpl-2.1
krichter722/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,shyamalschandra/vlc,xkfz007/vlc,krichter722/vlc,xkfz007/vlc,krichter722/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc,krichter722/vlc,vlc-mirror/vlc,shyamalschandra/vlc,shyamalschandra/vlc,vlc-mirror/vlc,xkfz007/vlc,joma...
7a7f63586f6445217b474bdb79e260977d4c6ec1
modules/client_serverlist/serverlist.lua
modules/client_serverlist/serverlist.lua
ServerList = {} -- private variables local serverListWindow = nil local serverTextList = nil local removeWindow = nil local servers = {} -- public functions function ServerList.init() serverListWindow = g_ui.displayUI('serverlist') serverTextList = serverListWindow:getChildById('serverList') local serverSettin...
ServerList = {} -- private variables local serverListWindow = nil local serverTextList = nil local removeWindow = nil local servers = {} -- public functions function ServerList.init() serverListWindow = g_ui.displayUI('serverlist') serverTextList = serverListWindow:getChildById('serverList') servers = g_settin...
Fix serverlist issues from previous commit.
Fix serverlist issues from previous commit. Was referencing a 'global' variable so a simple check will do.
Lua
mit
dreamsxin/otclient,dreamsxin/otclient,Radseq/otclient,dreamsxin/otclient,Radseq/otclient
e0a0c427f97677c905e74cd16733ac745f7a64a3
UCDwanted/server.lua
UCDwanted/server.lua
local wantedPoints = {} addEventHandler("onResourceStart", resourceRoot, function () for _, plr in ipairs(Element.getAllByType("player")) do if (not plr.account.guest) then setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp")) end end end ) addEventHandler("onResourceStop", resourceRoot, function ...
local wantedPoints = {} addEventHandler("onResourceStart", resourceRoot, function () for _, plr in ipairs(Element.getAllByType("player")) do if (not plr.account.guest) then setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp")) end end end ) addEventHandler("onResourceStop", resourceRoot, function ...
UCDwanted
UCDwanted - Fixed a case where wanted points would return as false or nil when logged in
Lua
mit
nokizorque/ucd,nokizorque/ucd
887823f1a3bfabbd75a84640a5c8d5a992426179
xmake/platforms/checker.lua
xmake/platforms/checker.lua
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
fix check toolchain for android platform
fix check toolchain for android platform
Lua
apache-2.0
waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake
5635fb0365eec5a02d9037c1c2b0070b10eecae5
protocol_memcached/test_client_ascii.lua
protocol_memcached/test_client_ascii.lua
require('protocol_memcached/test_base') require('protocol_memcached/client') client = memcached_client_ascii ------------------------------------------ location = arg[1] or '127.0.0.1:11211' host, port, c = connect(location) c:settimeout(nil) ------------------------------------------ p("connected", host, port, c...
require('protocol_memcached/test_base') require('protocol_memcached/client') client = memcached_client_ascii ------------------------------------------ location = arg[1] or '127.0.0.1:11211' host, port, c = connect(location) c:settimeout(nil) ------------------------------------------ p("connected", host, port, c...
Fixes to the client test. Need to figure out how to not pass 'amount' without it failing. How does one make an argument optional in lua?
Fixes to the client test. Need to figure out how to not pass 'amount' without it failing. How does one make an argument optional in lua?
Lua
apache-2.0
steveyen/moxilua
17db9b1860b555ef67cdb81f3400856ffe849f5b
lua/types.lua
lua/types.lua
local utils = require('utils') local M = {} -- type functions function M._sequential_Q(obj) return M._list_Q(obj) or M._vector_Q(obj) end function M._equal_Q(a,b) if M._symbol_Q(a) and M._symbol_Q(b) then return a.val == b.val elseif M._sequential_Q(a) and M._sequential_Q(b) then if #a ~...
local utils = require('utils') local M = {} -- type functions function M._sequential_Q(obj) return M._list_Q(obj) or M._vector_Q(obj) end function M._equal_Q(a,b) if M._symbol_Q(a) and M._symbol_Q(b) then return a.val == b.val elseif M._sequential_Q(a) and M._sequential_Q(b) then if #a ~...
lua: fix hash-map equality
lua: fix hash-map equality
Lua
mpl-2.0
0gajun/mal,jwalsh/mal,sleep/mal,hterkelsen/mal,jwalsh/mal,sleexyz/mal,0gajun/mal,tompko/mal,sleexyz/mal,h3rald/mal,SawyerHood/mal,sleexyz/mal,alantsev/mal,DomBlack/mal,sleexyz/mal,jwalsh/mal,alantsev/mal,foresterre/mal,0gajun/mal,alantsev/mal,h3rald/mal,h3rald/mal,sleep/mal,jwalsh/mal,tompko/mal,sleexyz/mal,h3rald/mal,...
4aff968116e15e8531d6f33aed5080aec1bf5f0b
tools/lua/epbin.lua
tools/lua/epbin.lua
local bit32 = require "bit32" local ppm = require "ppm" local epconv = require "epconv" local lzma = require "lzma" local pvr = require "pvr" local ktx = require "ktx" local model, filename, compress = ... local max_id = 0 local export = 0 local pic = {} local ani = {} local tex = 0 local memfile = { result = {} } ...
local bit32 = require "bit32" local ppm = require "ppm" local epconv = require "epconv" local lzma = require "lzma" local pvr = require "pvr" local ktx = require "ktx" local model, filename, compress = ... local max_id = 0 local export = 0 local pic = {} local ani = {} local tex = 0 local memfile = { result = {} } ...
fix epbin
fix epbin
Lua
mit
xzrunner/easyeditor,xzrunner/easyeditor
4b277f0f41638e4ab1aa6b1021b1e637f4d9e8f2
packages/pirania/files/usr/lib/lua/voucher/hooks.lua
packages/pirania/files/usr/lib/lua/voucher/hooks.lua
#!/usr/bin/lua local config = require('voucher.config') local fs = require("nixio.fs") local hooks = function(action) local hookPath = config.hooksDir..action..'/' local files = fs.dir(hookPath) or pairs({}) for file in files do os.execute(hookPath..file) end end if debug.getinfo(2).name == nil th...
#!/usr/bin/lua local config = require('voucher.config') local fs = require("nixio.fs") local hooks = function(action) local hookPath = config.hooksDir..action..'/' local files = fs.dir(hookPath) or pairs({}) for file in files do os.execute("(( sh "..hookPath..file.." 0<&- &>/dev/null &) &)") e...
fix ubus timeout
fix ubus timeout
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
2d89391cd624d543e4caafb48a6fb56f59f0995a
Sassilization/gamemode/server/game.lua
Sassilization/gamemode/server/game.lua
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- util.AddNetworkString( "SetWinners" ) function GM:StartGame() if(self.Started) then return end self.Started = true self.StartTime = tostring(os.time()) --for k,v in pairs(self.Players) do --...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- util.AddNetworkString( "SetWinners" ) function GM:StartGame() if(self.Started) then return end self.Started = true self.StartTime = tostring(os.time()) --for k,v in pairs(self.Players) do --...
Fixed lua error on game end.
Fixed lua error on game end.
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
93507acfb1105a85e403679304066151b577e063
busted/outputHandlers/base.lua
busted/outputHandlers/base.lua
return function(busted) local handler = { successes = {}, successesCount = 0, pendings = {}, pendingsCount = 0, failures = {}, failuresCount = 0, errors = {}, errorsCount = 0, inProgress = {} } handler.cancelOnPending = function(element, parent, status) return not ((elemen...
return function(busted) local handler = { successes = {}, successesCount = 0, pendings = {}, pendingsCount = 0, failures = {}, failuresCount = 0, errors = {}, errorsCount = 0, inProgress = {} } handler.cancelOnPending = function(element, parent, status) return not ((elemen...
Fix issue #283 Run duration is always 0.0 seconds
Fix issue #283 Run duration is always 0.0 seconds The reported run duration is always 0.0 seconds. This occurs because the terminal output handlers rely on the base output handler to record the start and end times of the suite. However, when the terminal output handler's suiteEnd() function runs, the base output handl...
Lua
mit
xyliuke/busted,sobrinho/busted,nehz/busted,o-lim/busted,ryanplusplus/busted,mpeterv/busted,leafo/busted,istr/busted,DorianGray/busted,Olivine-Labs/busted
d1516c850def5b064c2b4be931957668de62d6d8
packages/lime-system/files/usr/lib/lua/lime/network.lua
packages/lime-system/files/usr/lib/lua/lime/network.lua
#!/usr/bin/lua network = {} local bit = require "nixio".bit local function split(string, sep) local ret = {} for token in string.gmatch(string, "[^"..sep.."]+") do table.insert(ret, token) end return ret end function network.eui64(mac) local function hex(x) return string.format("%02x", x) end lo...
#!/usr/bin/lua network = {} local bit = require "nixio".bit local ip = require "luci.ip" local function hex(x) return string.format("%02x", x) end local function split(string, sep) local ret = {} for token in string.gmatch(string, "[^"..sep.."]+") do table.insert(ret, token) end return ret end func...
implement a generate_host() function using luci.ip lib, that fills necessary host bits on an address, using a hexsuffix
implement a generate_host() function using luci.ip lib, that fills necessary host bits on an address, using a hexsuffix
Lua
agpl-3.0
p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages
36340a2a13fc76abb365ad7cdf8fabfdacbf0142
.config/mpv/scripts/playback_logger.lua
.config/mpv/scripts/playback_logger.lua
mputils = require 'mp.utils' require 'os' -- from shell.lua, by Peter Odding local function escape(...) local command = type(...) == 'table' and ... or { ... } for i, s in ipairs(command) do s = (tostring(s) or ''):gsub('"', '\\"') if s:find '[^A-Za-z0-9_."/-]' then s = '"' .. s .. ...
mputils = require 'mp.utils' require 'os' -- from shell.lua, by Peter Odding local function escape(...) local command = type(...) == 'table' and ... or { ... } for i, s in ipairs(command) do s = (tostring(s) or ''):gsub('"', '\\"') if s:find '[^A-Za-z0-9_."/-]' then s = '"' .. s .. ...
Fixed mpv errors when playing audio files
Fixed mpv errors when playing audio files
Lua
mit
rr-/dotfiles,rr-/dotfiles,rr-/dotfiles
016e56f13d2577c64769826d6679bdabc77f47a0
openwrt/package/linkmeter/luasrc/luci/controller/linkmeter/api.lua
openwrt/package/linkmeter/luasrc/luci/controller/linkmeter/api.lua
local _M = {} local API_VERSION = 1 function _M.index() local API_READ_ONLY = "api_read" local API_WRITE_ONLY = "api_write" local API_READ_WRITE = { "api_read", "api_write" } local node node = entry({"lm", "api"}, alias({"lm", "api", "version"})) node.sysauth = API_READ_ONLY -- Set the authenticator f...
local _M = {} local API_VERSION = 1 function _M.index() entry({"lm", "api"}, alias({"lm", "api", "version"})) entry({"lm", "api", "version"}, call("action_api_version")) entry({"lm", "api", "status"}, call("action_api_status")).leaf = true entry({"lm", "api", "config"}, call("action_api_config")).leaf = true ...
[lm] Fix API access not working at all since LuCI changes
[lm] Fix API access not working at all since LuCI changes
Lua
mit
shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter
b0f2725e081f652f8ba582b886e7ce5efa3b48c7
core/debug-output.lua
core/debug-output.lua
if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local lastFont local outfile local writeline = function (...) local args = table.pack(...) for i = 1, #args do outfile:write(args[i]) if i < #args then outfile:write("\t") end end outfile:write("\n") end local _deprec...
if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local lastFont local outfile local writeline = function (...) local args = table.pack(...) for i = 1, #args do outfile:write(args[i]) if i < #args then outfile:write("\t") end end outfile:write("\n") end local _deprec...
chore(outputter): Fixup debug outputter for non-RGB
chore(outputter): Fixup debug outputter for non-RGB
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
7ba7e06f684ebf874832721645982ce85dde2586
Client/Assets/Lua/main.lua
Client/Assets/Lua/main.lua
------------------------------------------------ -- Copyright © 2015-2016 Hugula: Arpg game Engine -- 检查资源 -- author pu ------------------------------------------------ require("core.loader") json = require "lib.json" local Hugula = Hugula local RuntimePlatform= UnityEngine.RuntimePlatform local Application= Uni...
------------------------------------------------ -- Copyright © 2015-2016 Hugula: Arpg game Engine -- 检查资源 -- author pu ------------------------------------------------ require("core.loader") json = require "lib.json" local Hugula = Hugula local RuntimePlatform= UnityEngine.RuntimePlatform local Application= Uni...
改名时候重名bug修复。
改名时候重名bug修复。
Lua
mit
tenvick/hugula,tenvick/hugula,tenvick/hugula,tenvick/hugula,tenvick/hugula,tenvick/hugula,tenvick/hugula
27cc59360dca2f456c4200d0a753fc2c41d05258
deps/childprocess.lua
deps/childprocess.lua
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix(childprocess): do not prematurely close the handle
fix(childprocess): do not prematurely close the handle
Lua
apache-2.0
bsn069/luvit,zhaozg/luvit,bsn069/luvit,bsn069/luvit,kaustavha/luvit,kaustavha/luvit,luvit/luvit,kaustavha/luvit,luvit/luvit,zhaozg/luvit
835d644aebb532cdcabff3b98b2d2e2735b44845
jam_bo_ree.lua
jam_bo_ree.lua
if os.getenv('IS_DEV') require 'pl.strict' local setmetatable = setmetatable local print = print local stringx = require 'pl.stringx' local sip = require 'pl.sip' local pl_utils = require 'pl.utils' local _ = require 'underscore' local M = {} local meta = {} local WHITE =...
local setmetatable = setmetatable local print = print local stringx = require 'pl.stringx' local sip = require 'pl.sip' local pl_utils = require 'pl.utils' local _ = require 'underscore' local M = {} local meta = {} local WHITE = "%s+"; -- =================================...
Various fixes.
Various fixes.
Lua
mit
da99/jam_bo_ree
50a5f4f08d3cba6fea8a215baff82b5231585853
libs/rules.lua
libs/rules.lua
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
Fix files included by default not showing up in the log * Closes #111
Fix files included by default not showing up in the log * Closes #111
Lua
apache-2.0
zhaozg/lit,luvit/lit,squeek502/lit,1yvT0s/lit,kidaa/lit,james2doyle/lit
0d46ef4d45a39f5c5f0d8d7a5b340990d51badab
src/game/StarterPlayer/StarterCharacterScripts/TriggerListening.lua
src/game/StarterPlayer/StarterCharacterScripts/TriggerListening.lua
-- ClassName: LocalScript --[[ Handles user interaction with triggers. The server code explains what a trigger is, you can find it in: game.ServerScriptService.TriggerHandling This script connects all of the triggers to events that then allow the player to "interact" with the game world by the user of Cont...
-- ClassName: LocalScript --[[ Handles user interaction with triggers. The server code explains what a trigger is, you can find it in: game.ServerScriptService.TriggerHandling This script connects all of the triggers to events that then allow the player to "interact" with the game world by the user of Cont...
Fix the interact action still being bound after teleporting
Fix the interact action still being bound after teleporting This issue was talked about in commit 1882b20 in "known bugs".
Lua
mit
VoxelDavid/echo-ridge
82c052ceecb59e2023c4b6f336e0db9423529a02
batteryarc-widget/batteryarc.lua
batteryarc-widget/batteryarc.lua
------------------------------------------------- -- Battery Arc Widget for Awesome Window Manager -- Shows the battery level of the laptop -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/batteryarc-widget -- @author Pavel Makhov -- @copyright 2019 Pavel Makhov --...
------------------------------------------------- -- Battery Arc Widget for Awesome Window Manager -- Shows the battery level of the laptop -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/batteryarc-widget -- @author Pavel Makhov -- @copyright 2019 Pavel Makhov --...
batteryarc-widget: fix crash when battery is not available
batteryarc-widget: fix crash when battery is not available It was crashing awesome window manager when starting with battery removed from the laptop.
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets,streetturtle/AwesomeWM
2bc86a889419476c60a784542c7d181e6a0deb01
quest/alberto_dicker_674_runewick.lua
quest/alberto_dicker_674_runewick.lua
-- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (674, 'quest.alberto_dicker_674_runewick'); require("base.common") module("quest.alberto_dicker_674_runewick", package.seeall) GERMAN = Player.german ENGLISH = Player.english -- Insert the quest title here, in both languages Title = {} Title[GERMAN] = "Die Bild...
--[[ 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 NPC
Fix NPC
Lua
agpl-3.0
Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content
c51c4208029f4024631aa9d381ed0409bff7775f
modules/http/http.lua
modules/http/http.lua
module("http", package.seeall) local function str(char) return string.char(char) end local function getchar(stream) local char while true do char = stream:getchar() if char == -1 then coroutine.yield() else break end end return char end local function read_line(stream) local line = "" local ch...
module("http", package.seeall) local function str(char) return string.char(char) end local function getchar(stream) local char while true do char = stream:getchar() if char == -1 then coroutine.yield() else break end end return char end local function read_line(stream) local line = "" local ch...
Fix HTTP parser to handle /n
Fix HTTP parser to handle /n The end of line should be /r/n according to the rfc, but /n seams to be usable. Modified the parser to handle /n as line separator.
Lua
mpl-2.0
LubyRuffy/haka,lcheylus/haka,lcheylus/haka,Wingless-Archangel/haka,nabilbendafi/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka,nabilbendafi/haka,haka-security/haka,LubyRuffy/haka,Wingless-Archangel/haka,haka-security/haka
21f114c48ca614214bb1733526a1891baf02fbfe
scen_edit/state/abstract_heightmap_editing_state.lua
scen_edit/state/abstract_heightmap_editing_state.lua
SCEN_EDIT.Include("scen_edit/state/abstract_map_editing_state.lua") AbstractHeightmapEditingState = AbstractMapEditingState:extends{} function AbstractHeightmapEditingState:init(editorView) AbstractMapEditingState.init(self, editorView) self.paintTexture = self.editorView.paintTexture self.strength ...
SCEN_EDIT.Include("scen_edit/state/abstract_map_editing_state.lua") AbstractHeightmapEditingState = AbstractMapEditingState:extends{} function AbstractHeightmapEditingState:init(editorView) AbstractMapEditingState.init(self, editorView) self.paintTexture = self.editorView.paintTexture self.strength ...
fix terrain editing errors when no paint texture is selected
fix terrain editing errors when no paint texture is selected
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
876f2f9027697fef4bc934f3f38f90c8d21c062f
.hammerspoon/init.lua
.hammerspoon/init.lua
-- [[ -- Other stuff -- ]] -- Automatically reload config when init is saved function reloadConfig(files) doReload = false for _, file in pairs(files) do if file:sub(-4) == ".lua" then doReload = true end end if doReload then hs.reload() end end hs.hotkey.bind({"cmd", "ctrl"}, "R", func...
-- [[ -- Other stuff -- ]] -- Automatically reload config when init is saved function reloadConfig(files) doReload = false for _, file in pairs(files) do if file:sub(-4) == ".lua" then doReload = true end end if doReload then hs.reload() end end hs.hotkey.bind({"cmd", "ctrl"}, "R", func...
Fix: iTerm width resizing working better
Fix: iTerm width resizing working better
Lua
mit
tscheffe/dotfiles,tscheffe/dotfiles,tscheffe/dotfiles
3ad46c10236802bfae4689405ebcb23fb7555bd7
lib/out.lua
lib/out.lua
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
Improved/Fixed console output
Improved/Fixed console output
Lua
mit
Quit/jelly
f053df6674269663818df1d3cbbb85546113645e
scen_edit/view/file_dialog.lua
scen_edit/view/file_dialog.lua
FileDialog = Observable:extends{} function FileDialog:init(dir, caption, fileTypes) self.dir = dir or nil self.caption = caption or "File dialog" self.confirmDialogCallback = nil self.fileTypes = fileTypes local buttonPanel = MakeComponentPanel() self.fileEditBox = EditBox:New { y = 1, x...
FileDialog = Observable:extends{} function FileDialog:init(dir, caption, fileTypes) self.dir = dir or nil self.caption = caption or "File dialog" self.confirmDialogCallback = nil self.fileTypes = fileTypes local buttonPanel = MakeComponentPanel() self.fileEditBox = EditBox:New { y = 1, x...
focus editbox in file dialog (fix #137)
focus editbox in file dialog (fix #137)
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
2b3c7e696c3696a28bbdfb6e56bfde317f6d196c
lua/mini-stl/single_list.lua
lua/mini-stl/single_list.lua
-- Copyright (c) 2013 ASMlover. All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list ofconditions and...
-- Copyright (c) 2013 ASMlover. All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list ofconditions and...
fix bug of single_list push_front
fix bug of single_list push_front
Lua
bsd-2-clause
ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study,ASMlover/study
ed96af39601a84b9ea1a6919283696820070d474
src/cosy/server/middleware/perform.lua
src/cosy/server/middleware/perform.lua
local resource = require "cosy.server.resource" local Perform = {} function Perform.request (context) local request = context.request local response = context.response local r = resource (context) for _, k in ipairs (request.resource) do r = r [k] if r == nil then error { code ...
local Resource = require "cosy.server.resource" local Perform = {} function Perform.request (context) local request = context.request local response = context.response local r = Resource.root (context) for _, k in ipairs (request.resource) do r = r / k if not Resource.exists (r) then err...
Fix perform middleware.
Fix perform middleware.
Lua
mit
CosyVerif/data-server,CosyVerif/data-server
06f1192f56b01552a3219aef228bfaed49588dca
cleanup.lua
cleanup.lua
local util = require("util") local smartmove = require("smartmove") local robot = require("robot") local shell = require("shell") local objectStore = require("objectStore") local NEEDS_CHARGE_THRESHOLD = 0.1 local FULL_CHARGE_THRESHOLD = 0.95 local Cleanup = { } function Cleanup:ok() --luacheck: no unused args if ...
local util = require("util") local smartmove = require("smartmove") local robot = require("robot") local shell = require("shell") local objectStore = require("objectStore") local NEEDS_CHARGE_THRESHOLD = 0.1 local FULL_CHARGE_THRESHOLD = 0.95 local Cleanup = { } function Cleanup:ok() --luacheck: no unused args if ...
fixes looping bug
fixes looping bug
Lua
apache-2.0
InfinitiesLoop/oclib
600b0cce1d3e5ebf19b1a45477f9dcfdcd368319
lua/kni.lua
lua/kni.lua
local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" require "utils" local mod = {} local mg_kni = {} mod.mg_kni = mg_kni mg_kni.__index = mg_kni ffi.cdef[[ struct rte_kni; struct rte_kni * mg_create_kni(uint8_t port_id, uint8_t core_id, void* mempool_ptr, const char name[]); unsigned ...
local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" require "utils" local mod = {} local mg_kni = {} mod.mg_kni = mg_kni mg_kni.__index = mg_kni ffi.cdef[[ struct rte_kni; struct rte_kni * mg_create_kni(uint8_t port_id, uint8_t core_id, void* mempool_ptr, const char name[]); unsigne...
[kni] Many updates, fixes and improvements
[kni] Many updates, fixes and improvements
Lua
mit
libmoon/libmoon,scholzd/libmoon,emmericp/libmoon,libmoon/libmoon,libmoon/libmoon,emmericp/libmoon,emmericp/libmoon,scholzd/libmoon,scholzd/libmoon
6aa9553b1df04718a9ea826f85e9b5339f371621
home/.hammerspoon/jira.lua
home/.hammerspoon/jira.lua
local utils = require('utils') local jiraAccount = require ('jiraAccount') local log = hs.logger.new('init.lua', 'debug') -- Public part local jira = {} -- Returns a Jira URL to browse the given issue Key function jira.getBrowseUrl(key) return string.format("%s%s%s", jiraAccount.getBaseUrl(), "browse/", key) end ...
local utils = require('utils') local jiraAccount = require ('jiraAccount') local log = hs.logger.new('init.lua', 'debug') -- Public part local jira = {} -- Returns a Jira URL to browse the given issue Key function jira.getBrowseUrl(key) return string.format("%s%s%s", jiraAccount.getBaseUrl(), "browse/", key) end ...
Updated JIRA bug template
Updated JIRA bug template
Lua
mit
maanuair/dotfiles_tmp,maanuair/dotfiles
55c3fdbdc2efdbe73be79f752f9387a461eeeed2
spec/request_spec.lua
spec/request_spec.lua
describe('lift.request', function() local req = require 'lift.request' local stream = require 'lift.stream' local su = require 'spec.util' it("can fetch an HTML page", su.async(function() local sb = {} -- string buffer containing the page req('www.google.com/invalid_url'):pipe(stream.to_array(sb)):wai...
describe('lift.request', function() local req = require 'lift.request' local stream = require 'lift.stream' local su = require 'spec.util' it("can fetch an HTML page", su.async(function() local sb = {} -- string buffer containing the page req('www.google.com/invalid_url'):pipe(stream.to_array(sb)):wai...
Fix dependency on specific version of curl
Fix dependency on specific version of curl
Lua
mit
tbastos/lift
8758b3b634abbb32c91f7a3c3072f48aa451956d
item/bottles.lua
item/bottles.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...
#0010576 fix bottles
#0010576 fix bottles
Lua
agpl-3.0
Baylamon/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content
9a1c34fd1fea617aeaf0df8c175d5a9c49442b71
lua/entities/gmod_wire_hydraulic/init.lua
lua/entities/gmod_wire_hydraulic/init.lua
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) ENT.WireDebugName = "Hydraulic" include('shared.lua') function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateInputs( se...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) ENT.WireDebugName = "Hydraulic" include('shared.lua') function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateInputs( se...
[Hydraulic] Fixed hydraulic length starting at 0, causing the props to snap together unless they were frozen. The length now starts at whatever length is when the hydraulic is created.
[Hydraulic] Fixed hydraulic length starting at 0, causing the props to snap together unless they were frozen. The length now starts at whatever length is when the hydraulic is created.
Lua
apache-2.0
NezzKryptic/Wire,thegrb93/wire,dvdvideo1234/wire,wiremod/wire,bigdogmat/wire,notcake/wire,CaptainPRICE/wire,Grocel/wire,immibis/wiremod,garrysmodlua/wire,mms92/wire,plinkopenguin/wiremod,mitterdoo/wire,sammyt291/wire,rafradek/wire,Python1320/wire
f95ec132bd17ac240c59f53ffa9cf5196927da23
include/mars/util/mars-compile-evts.lua
include/mars/util/mars-compile-evts.lua
if not arg[1] then print ('Error: no input source specified') return end if not arg[2] then print ('Error: no prog file specified') return end local CODE_TEMPLATE = 'code/await Emit_{#1}_Event ({#2}) -> none\ndo\n' .. '\tawait async ({#3}) do\n' .. '\t\temit {#4} ({#5});\n' ...
if not arg[1] then print ('Error: no input source specified') return end if not arg[2] then print ('Error: no prog file specified') return end local CODE_TEMPLATE = 'code/await Emit_{#1}_Event ({#2}) -> none\ndo\n' .. '\tawait async ({#3}) do\n' .. '\t\temit {#4} ({#5});\n' ...
Fix events code generation
Fix events code generation * include/mars/util/mars-compile-evts.lua
Lua
mit
rodrimc/ceu-media-multidevice
d5e6f21608ce577c245f384705c8e01cdeb0fe19
plugins/mod_vcard.lua
plugins/mod_vcard.lua
require "util.datamanager" local datamanager = datamanager; local st = require "util.stanza" local send = require "core.sessionmanager".send_to_session local t_concat, t_insert = table.concat, table.insert; require "util.jid" local jid_split = jid.split; add_iq_handler("c2s", "vcard-temp", function (session, sta...
require "util.datamanager" local datamanager = datamanager; local st = require "util.stanza" local send = require "core.sessionmanager".send_to_session local t_concat, t_insert = table.concat, table.insert; require "util.jid" local jid_split = jid.split; add_iq_handler("c2s", "vcard-temp", function (session, sta...
mod_vcard: Fixed to use new util.stanza.add_child
mod_vcard: Fixed to use new util.stanza.add_child
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2ea572eeeaea1ed45736067c4f992dc8a5f48548
lua/timestamping.lua
lua/timestamping.lua
--- Hardware timestamping. local mod = {} local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" local device = require "device" local eth = require "proto.ethernet" local memory = require "memory" local timer = require "timer" local log = require "log" local filter = require ...
--- Hardware timestamping. local mod = {} local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" local device = require "device" local eth = require "proto.ethernet" local memory = require "memory" local timer = require "timer" local log = require "log" local filter = require ...
timestamper: fix UDP header length field
timestamper: fix UDP header length field was previously set too short, but apparently no one really cared about this
Lua
mit
emmericp/libmoon,libmoon/libmoon,libmoon/libmoon,emmericp/libmoon,emmericp/libmoon,scholzd/libmoon,scholzd/libmoon,libmoon/libmoon,scholzd/libmoon
4a339d1c9fd27cb87240fb11d0ed3366c09b15b3
generator/operators.lua
generator/operators.lua
module('operators', package.seeall) local operatorTrans = { ['<<'] = 'IN', ['>>'] = 'OUT', ['+='] = 'ADD', ['-='] = 'SUB', ['*='] = 'MUL', ['/='] = 'DIV', ['++'] = 'INC', ['--'] = 'DEC', ['+'] = '__add', ['-'] = '__sub', ['_'] = '__unm', ['*'] = '__mul', ['/'] = '__div', ['=='] = '__eq', } function fix_...
module('operators', package.seeall) local operatorTrans = { ['<<'] = 'IN', ['>>'] = 'OUT', ['+='] = 'ADD', ['-='] = 'SUB', ['*='] = 'MUL', ['/='] = 'DIV', ['++'] = 'INC', ['--'] = 'DEC', ['+'] = '__add', ['-'] = '__sub', ['_'] = '__unm', ['*'] = '__mul', ['/'] = '__div', ['=='] = '__eq', } local functio...
fix binding of overloaded operators
fix binding of overloaded operators
Lua
mit
mkottman/lqt,mkottman/lqt
4b34eb4967fdeae3e16a20720a90d88ff45113e5
mod_auth_dovecot/mod_auth_dovecot.lua
mod_auth_dovecot/mod_auth_dovecot.lua
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local log = require "util.logger".init("auth_dovecot"); loc...
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local log = require "util.logger".init("auth_dovecot"); loc...
mod_auth_dovecot: Use sequential (instead of fixed) id for messages
mod_auth_dovecot: Use sequential (instead of fixed) id for messages
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
a707a1a2ce4c5246e14a3885d80918bf0adad04e
lua/brainfuck.lua
lua/brainfuck.lua
#!/usr/bin/env lua -- Copyright (c) 2016 Francois Perrad local f = arg[1] and assert(io.open(arg[1], 'r')) or io.stdin local src = string.gsub(f:read'*a', '[^><+%-%.,%[%]]', '') local len = string.len(src) f:close() local stack = {} local jump = {} local code = {} for pc = 1, len do local opcode = src:sub(pc, pc...
#!/usr/bin/env lua -- Copyright (c) 2016 Francois Perrad local f = arg[1] and assert(io.open(arg[1], 'r')) or io.stdin local src = string.gsub(f:read'*a', '[^><+%-%.,%[%]]', '') local len = string.len(src) f:close() local stack = {} local jump = {} local code = {} for pc = 1, len do local opcode = src:sub(pc, pc...
fix IO in Lua interpreter
fix IO in Lua interpreter
Lua
mit
pablojorge/brainfuck,pablojorge/brainfuck,pablojorge/brainfuck,pablojorge/brainfuck,pablojorge/brainfuck,pablojorge/brainfuck,pablojorge/brainfuck
de3c81d16b02a2551d007d3d1d9cdf141ad3b393
plugins/feedback.lua
plugins/feedback.lua
function run(msg, matches) local text = lang_text(receiver, 'feedStart') if msg.from.first_name then text = text .. lang_text(receiver, 'feedName') .. msg.from.first_name end if msg.from.last_name then text = text .. lang_text(receiver, 'feedSurname') .. msg.from.last_name en...
function run(msg, matches) local text = lang_text('feedStart') if msg.from.first_name then text = text .. lang_text('feedName') .. msg.from.first_name end if msg.from.last_name then text = text .. lang_text('feedSurname') .. msg.from.last_name end if msg.from.username th...
fix feedback
fix feedback
Lua
agpl-3.0
xsolinsx/AISasha
058acba8d0e656f0e0c9c7cfa0932be419023fb9
script/c800000040.lua
script/c800000040.lua
--CX 風紀大宮司サイモン function c800000040.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,7),3) c:EnableReviveLimit() --unaffectable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_IMMUNE...
--CX 風紀大宮司サイモン function c800000040.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,7),3) c:EnableReviveLimit() --unaffectable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_IMMUNE...
fix
fix fixed effect being Ignition instead of Quick. added missing Variable
Lua
mit
Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher
800e8290a82e7623c758c5d95a4b5a41fa7c0d0d
examples/l3-load-latency.lua
examples/l3-load-latency.lua
local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local dpdkc = require "dpdkc" local filter = require "filter" local ffi = require "ffi" -- set addresses here local srcmac = "00:42:00:00:00:01" local dstmac = "00:42:00:00:00:02" local dst...
local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local dpdkc = require "dpdkc" local filter = require "filter" local ffi = require "ffi" -- set addresses here local srcmac = "00:42:00:00:00:01" local dstmac = "00:42:00:00:00:02" local dst...
fix performance of l3-load-latency
fix performance of l3-load-latency
Lua
mit
slyon/MoonGen,kidaa/MoonGen,schoenb/MoonGen,schoenb/MoonGen,gallenmu/MoonGen,duk3luk3/MoonGen,slyon/MoonGen,scholzd/MoonGen,bmichalo/MoonGen,kidaa/MoonGen,gallenmu/MoonGen,atheurer/MoonGen,wenhuizhang/MoonGen,pavel-odintsov/MoonGen,pavel-odintsov/MoonGen,werpat/MoonGen,wenhuizhang/MoonGen,emmericp/MoonGen,bmichalo/Moon...
35c030cae36ef3cc0b0ab1d4ac547ea9b4810aef
scripts/downloadimagenet.lua
scripts/downloadimagenet.lua
local dl = require 'dataload' cmd = torch.CmdLine() cmd:text() cmd:text('Script to download and extract ImageNet dataset (ILSVRC2014 Classification)') cmd:text('You will require 360GB of space to complete the download and extraction process.') cmd:text('You can download each tarball in a different partition if you do...
local dl = require 'dataload' cmd = torch.CmdLine() cmd:text() cmd:text('Script to download and extract ImageNet dataset (ILSVRC2014 Classification)') cmd:text('You will require 360GB of space to complete the download and extraction process.') cmd:text('You can download each tarball in a different partition if you do...
fix imagenet links
fix imagenet links
Lua
bsd-3-clause
Element-Research/dataload
97352cf987c139094c5d06b34eff67a946c07d18
src/lib/protocol/ipv4.lua
src/lib/protocol/ipv4.lua
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum -- TODO: generalize local AF_INET = 2 local INET_ADDRSTRLEN = 16 local ipv4hdr_t = ffi.typeof[[ struct { uint16_t...
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum -- TODO: generalize local AF_INET = 2 local INET_ADDRSTRLEN = 16 local ipv4hdr_t = ffi.typeof[[ struct { uint16_t...
Fix ipv4 header initialization.
Fix ipv4 header initialization. The version/header length/TOS field is 16 not 32 bits wide. Also add a self-test.
Lua
apache-2.0
justincormack/snabbswitch,Igalia/snabb,dwdm/snabbswitch,andywingo/snabbswitch,heryii/snabb,aperezdc/snabbswitch,dpino/snabb,snabbnfv-goodies/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,lukego/snabbswitch,kbara/snabb,andywingo/snabbswitch,Igalia/snabb,eugeneia/snabb,eugeneia/snabbswitch,wingo/snabbswitch,Igalia/snabb...
8af8e494bd993647bc82fed78676096d86831b72
src/patch/ui/lib/mppatch_softhook.lua
src/patch/ui/lib/mppatch_softhook.lua
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
Minor fix to softhook.
Minor fix to softhook.
Lua
mit
Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch
effc2cb84466d59501fcc2e1e6a8d7a97f6a9d92
lua/timestamping.lua
lua/timestamping.lua
--- Hardware timestamping. local mod = {} local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" local device = require "device" local eth = require "proto.ethernet" local memory = require "memory" local timer = require "timer" local log = require "log" local filter = require ...
--- Hardware timestamping. local mod = {} local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" local device = require "device" local eth = require "proto.ethernet" local memory = require "memory" local timer = require "timer" local log = require "log" local filter = require ...
timestamping: don't wait unnecessarily
timestamping: don't wait unnecessarily fixes #61
Lua
mit
libmoon/libmoon,libmoon/libmoon,libmoon/libmoon,emmericp/libmoon,scholzd/libmoon,scholzd/libmoon,scholzd/libmoon,emmericp/libmoon,emmericp/libmoon
cd075db3763ae9e096804c4a0a8310f51d0dc9f7
nvim/lua/options.lua
nvim/lua/options.lua
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options g.mapleader = ',' opt.clipboard = 'unnamed' opt.hidden = true opt.ignorecase = true opt.number = true op...
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options g.mapleader = ',' opt.clipboard = 'unnamed' opt.hidden = true opt.ignorecase = true opt.number = true op...
fix: listchar bug? with nvim 0.7
fix: listchar bug? with nvim 0.7
Lua
mit
drmohundro/dotfiles
b8f8467dddc14c1908e0c3bc6a9ec47fdea1ce74
json/decode.lua
json/decode.lua
local lpeg = require("lpeg") local util = require("json.util") local setmetatable, getmetatable = setmetatable, getmetatable local assert = assert local print = print local tonumber = tonumber local ipairs = ipairs local string = string module("json.decode") local digit = lpeg.R("09") local digits = digit^1 local alph...
local lpeg = require("lpeg") local util = require("json.util") local setmetatable, getmetatable = setmetatable, getmetatable local assert = assert local print = print local tonumber = tonumber local ipairs = ipairs local string = string module("json.decode") local digit = lpeg.R("09") local digits = digit^1 local alph...
* Fixed a few regressions and refactored table-items
* Fixed a few regressions and refactored table-items
Lua
mit
renchunxiao/luajson
28fefbcda569ea3593614a3bccbc7b980ff15d76
timeline_0.0.1/interface.lua
timeline_0.0.1/interface.lua
local mark_timeline = require "timeline" remote.add_interface("timeline", { add_timeline_mark = function(force, name, params, value) mark_timeline(force, name, params, value) end, advanced_combinator_callback = function(params, entity, current) local param_name = params[1] local param_params = params...
local mark_timeline = require "timeline" remote.add_interface("timeline", { add_timeline_mark = function(force, name, params, value) mark_timeline(force, name, params, value) end, advanced_combinator_callback = function(params, entity, current) local param_name = params[1] local param_params = params...
Timeline: Luacheck fix
Timeline: Luacheck fix
Lua
mit
Zomis/FactorioMods
0e855411fbc9b3f63950c16bb863aaa88ac905ca
lib/switchboard_modules/lua_script_debugger/premade_scripts/I2C/gyro-L3GD20H.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/I2C/gyro-L3GD20H.lua
--This is an example that uses the LSM303DLHC Accelerometer & Magnetometer on the I2C Bus on EIO4(SCL) and EIO5(SDA) --Outputs data to Registers: --X gyro = 46012 --Y gyro = 46014 --Z gyro = 46016 fwver = MB.R(60004, 3) devType = MB.R(60000, 3) if (fwver < 1.0224 and devType == 7) or (fwver < 0.2037 and devType == 4) ...
--This is an example that uses the L3GD20H Gyroscope on the I2C Bus on EIO4(SCL) and EIO5(SDA) --Outputs data to Registers: --X gyro = 46012 --Y gyro = 46014 --Z gyro = 46016 fwver = MB.R(60004, 3) devType = MB.R(60000, 3) if (fwver < 1.0224 and devType == 7) or (fwver < 0.2037 and devType == 4) then print("This lua...
fixed a lua script comment
fixed a lua script comment
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
390ee4ba112a07c9fd4a586d38cff22e41a9b79d
scripts/lmkbuild.lua
scripts/lmkbuild.lua
require "lmk" require "lmkutil" require "lmkbase" local assert = assert local error = error local io = io local ipairs = ipairs local lmk = lmk local lmkbase = lmkbase local lmkutil = lmkutil local os = os local print = print local tostring = tostring local type = type module (...) add_files = lmk.add_files_local ap...
require "lmk" require "lmkutil" require "lmkbase" local assert = assert local error = error local io = io local ipairs = ipairs local lmk = lmk local lmkbase = lmkbase local lmkutil = lmkutil local os = os local print = print local tostring = tostring local type = type module (...) add_files = lmk.add_files_local ap...
bugfix: lmkbuild.cp would fail when copying a file to a directory
bugfix: lmkbuild.cp would fail when copying a file to a directory
Lua
mit
dmzgroup/lmk,shillcock/lmk
d18b7f588a8887644d53cb5f044589085097f98e
xmake/core/base/template.lua
xmake/core/base/template.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix template bug
fix template bug
Lua
apache-2.0
tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake
068999656addf230aac038b5c1de0e3db976dbf1
xmake/scripts/tools/make.lua
xmake/scripts/tools/make.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix cannot get error log when make with -j4
fix cannot get error log when make with -j4
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake
84913a3ce400d520803e4be83ac501884b4ed118
resources/GTWturnsignals/turninsignals.lua
resources/GTWturnsignals/turninsignals.lua
--[[ ******************************************************************************** Project: GTW RPG Owner: GTW Games Location: Sweden Developers: MrBrutus Copyrights: See: "license.txt" Website: http://code.albonius.com Version: (git) Status: Stable release ************************************...
--[[ ******************************************************************************** Project: GTW RPG Owner: GTW Games Location: Sweden Developers: MrBrutus Copyrights: See: "license.txt" Website: http://code.albonius.com Version: (git) Status: Stable release ************************************...
Bugfix to turnsignals
Bugfix to turnsignals The bug appears to be related to the keybind, this update should make the lights work again.
Lua
bsd-2-clause
404rq/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,SpRoXx/GTW-RPG,SpRoXx/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG
4d2496d5b87a128e78f33177d523983f6e9a66c6
SpatialBatchNormalization.lua
SpatialBatchNormalization.lua
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs coming from convolution l...
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs coming from convolution l...
Fix loading of old SpatialBatchNormalization modules
Fix loading of old SpatialBatchNormalization modules The old-style running_std is actually the E[1/sqrt(var + eps)]. I forgot to subtract out the 'eps' when converting to running_var.
Lua
bsd-3-clause
apaszke/nn,andreaskoepf/nn,kmul00/nn,elbamos/nn,jhjin/nn,joeyhng/nn,diz-vara/nn,eriche2016/nn,nicholas-leonard/nn,jonathantompson/nn,PraveerSINGH/nn,xianjiec/nn,sagarwaghmare69/nn,caldweln/nn,colesbury/nn
0571b964cacad8a07c71d2cafc6e5f034fb25f1a
BIOS/init.lua
BIOS/init.lua
--The BIOS should control the system of LIKO-12 and load the peripherals-- --For now it's just a simple BIOS to get LIKO-12 working. --Require the engine libraries-- local events = require("Engine.events") local coreg = require("Engine.coreg") local function splitFilePath(path) return path:match("(.-)([^\\/]-%...
--The BIOS should control the system of LIKO-12 and load the peripherals-- --For now it's just a simple BIOS to get LIKO-12 working. --Require the engine libraries-- local events = require("Engine.events") local coreg = require("Engine.coreg") local function splitFilePath(path) return path:match("(.-)([^\\/]-%.?([^%....
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
a1224f33a6826077e89555428b5cc763afbe4415
src/api.lua
src/api.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
Fix typing
Fix typing
Lua
mit
Zefiros-Software/ZPM
e168b1d79d29ee55bb8fd41d8e568cae6e719df9
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 last commit
* Fixed last commit
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci
da11851284a7015d2890d24dbff34aa1db5b8aec
src/plugins/core/console/scripts.lua
src/plugins/core/console/scripts.lua
--- === plugins.core.console.scripts === --- --- Adds all installed AppleScripts to the Search Console. local require = require local hs = _G.hs local log = require "hs.logger".new "applications" local image = require "hs.image" local fs = r...
--- === plugins.core.console.scripts === --- --- Adds all installed AppleScripts to the Search Console. local require = require local hs = _G.hs local log = require "hs.logger".new "applications" local image = require "hs.image" local fs = r...
Fixed potential nil error in AppleScript actions
Fixed potential nil error in AppleScript actions - Closes #3137
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost
064e256771423182975f5b68d452513d89aa5a0d
lua/entities/sent_deployableballoons.lua
lua/entities/sent_deployableballoons.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
Fix #621. Make balloon spawner checks safer.
Fix #621. Make balloon spawner checks safer.
Lua
apache-2.0
notcake/wire,garrysmodlua/wire,immibis/wiremod,rafradek/wire,thegrb93/wire,dvdvideo1234/wire,Python1320/wire,sammyt291/wire,NezzKryptic/Wire,CaptainPRICE/wire,mitterdoo/wire,wiremod/wire,plinkopenguin/wiremod,mms92/wire,bigdogmat/wire,Grocel/wire
1fef1f9363a2d5028c212523b7d6912faf342b45
Parallel.lua
Parallel.lua
local Parallel, parent = torch.class('nn.Parallel', 'nn.Container') function Parallel:__init(inputDimension,outputDimension) parent.__init(self) self.modules = {} self.inputDimension = inputDimension self.outputDimension = outputDimension end function Parallel:updateOutput(input) local nModule=input:si...
local Parallel, parent = torch.class('nn.Parallel', 'nn.Container') function Parallel:__init(inputDimension,outputDimension) parent.__init(self) self.modules = {} self.inputDimension = inputDimension self.outputDimension = outputDimension end function Parallel:updateOutput(input) local nModule=input:si...
fix size for parallel container
fix size for parallel container
Lua
bsd-3-clause
xianjiec/nn,andreaskoepf/nn,Moodstocks/nn,elbamos/nn,apaszke/nn,PraveerSINGH/nn,eriche2016/nn,colesbury/nn,lukasc-ch/nn,nicholas-leonard/nn,diz-vara/nn,jhjin/nn,kmul00/nn,joeyhng/nn,jonathantompson/nn,caldweln/nn,witgo/nn,sagarwaghmare69/nn
49e0822fa91b27d364835c1aa6b079b03983603e
main.lua
main.lua
require "lib.gooi" require "pixelfunctions" dp = love.window.toPixels fd = love.window.fromPixels lg = love.graphics nB = gooi.newButton sw, sh = lg.getDimensions() require "styles" Camera = require"lib.hump.camera" showgrid = true showAlphaBG = true Timer = require"lib.hump.timer" require "guifunctions" require "color...
require "lib.gooi" require "pixelfunctions" dp = love.window.toPixels fd = love.window.fromPixels lg = love.graphics nB = gooi.newButton sw, sh = lg.getDimensions() require "styles" Camera = require"lib.hump.camera" showgrid = true showAlphaBG = true Timer = require"lib.hump.timer" require "guifunctions" require "color...
colorpicker bug fix
colorpicker bug fix
Lua
mit
trelemar/TM-Paint,trelemar/Dither
139930540fe18c2f920efca051765437d0676d96
game/scripts/vscripts/modules/hero_selection/hero_replacer.lua
game/scripts/vscripts/modules/hero_selection/hero_replacer.lua
function HeroSelection:SelectHero(playerId, heroName, callback, bSkipPrecache) HeroSelection:UpdateStatusForPlayer(playerId, "picked", heroName) Timers:CreateTimer(function() local connectionState = PlayerResource:GetConnectionState(playerId) if connectionState == DOTA_CONNECTION_STATE_CONNECTED then local fun...
function HeroSelection:SelectHero(playerId, heroName, callback, bSkipPrecache) HeroSelection:UpdateStatusForPlayer(playerId, "picked", heroName) Timers:CreateTimer(function() local connectionState = PlayerResource:GetConnectionState(playerId) if connectionState == DOTA_CONNECTION_STATE_CONNECTED then local fun...
Changing hero now interrupts motion controllers, so that fixes pudge crash
Changing hero now interrupts motion controllers, so that fixes pudge crash
Lua
mit
ark120202/aabs
685d12dc71797d69c7f24a6c6ced0d47dc404704
core/base-shaper.lua
core/base-shaper.lua
if not SILE.shapers then SILE.shapers = { } end -- local smallTokenSize = 20 -- Small words will be cached -- local shapeCache = {} -- local _key = function (options) -- return table.concat({ options.family;options.language;options.script;options.size;("%d"):format(options.weight);options.style;options.variant;optio...
if not SILE.shapers then SILE.shapers = { } end -- local smallTokenSize = 20 -- Small words will be cached -- local shapeCache = {} -- local _key = function (options) -- return table.concat({ options.family;options.language;options.script;options.size;("%d"):format(options.weight);options.style;options.variant;optio...
fix(shaper): Fix line length calcs with negative width word spacing
fix(shaper): Fix line length calcs with negative width word spacing Corrects regression of #579 in f4a64e7d, primarily affects nastaliq with negative spaces between clusters.
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
5cc42a1d6356c952b94e7c4e399bf57f36c6bb79
nylon/debug.lua
nylon/debug.lua
-- Nylon Copyright (c) 2013 David M. Placek see [doc/license.txt] local Debug = {} local config = nil require 'nylon.syscore' local Nylon = {} -- require 'nylon.core'() local tbase = os.time() or 0 -- it's crazy, but if you have a system for whatever reason set to a really old date (probably pre-1970), o...
-- Nylon Copyright (c) 2013 David M. Placek see [doc/license.txt] local Debug = {} local config = nil require 'nylon.syscore' local Nylon = {} -- require 'nylon.core'() local tbase = os.time() or 0 -- it's crazy, but if you have a system for whatever reason set to a really old date (probably pre-1970), o...
fix to allow setting of program to move all logfiles to a subdirectory
fix to allow setting of program to move all logfiles to a subdirectory
Lua
mit
dmattp/nylon,dmattp/nylon
71c2b3a137a6dcb78cf19195b60dbcb1d1d1972c
test/test_fl_create.lua
test/test_fl_create.lua
--[[---------------------------------------------------------------------------- --- @file test_fl_create.lua --- @brief Unit test for fl create command. ----------------------------------------------------------------------------]]-- local Helpers = require "test.helpers" local UUID = Helpers.FAKE_UUID local UUID_HE...
--[[---------------------------------------------------------------------------- --- @file test_fl_create.lua --- @brief Unit test for fl create command. ----------------------------------------------------------------------------]]-- local Helpers = require "test.helpers" local UUID = Helpers.FAKE_UUID local UUID_HE...
Fix: hardcoded valu in fl create test.
Fix: hardcoded valu in fl create test.
Lua
mit
norefle/facil
87371093d28d58b48447c866773c9a4d48753fd7
UCDplaytime/server.lua
UCDplaytime/server.lua
-- Global variables local playerTickCount = {} -- Events function onLogin(_, theCurrentAccount) if (not isGuestAccount(theCurrentAccount)) then source:setData("playtime", exports.UCDaccounts:GAD(source, "playtime"), true) playerTickCount[source] = getTickCount() end end addEventHandler("onPlayerLogin", root, onL...
-- Global variables local playerTickCount = {} -- Events function onLogin(_, theCurrentAccount) if (not isGuestAccount(theCurrentAccount)) then source:setData("playtime", exports.UCDaccounts:GAD(source, "playtime"), true) playerTickCount[source] = getTickCount() end end addEventHandler("onPlayerLogin", root, onL...
UCDplaytime
UCDplaytime - Fixed some monumental bugs where playtime would not save and would sometimes not update.
Lua
mit
nokizorque/ucd,nokizorque/ucd
145133a8380ed4162f1008a58e25fda8891e53c0
src/spy.lua
src/spy.lua
-- module will return spy table, and register its assertions with the main assert engine local assert = require('luassert.assert') local util = require('luassert.util') -- Spy metatable local spy_mt = { __call = function(self, ...) local arguments = {...} arguments.n = select('#',...) -- add argument count ...
-- module will return spy table, and register its assertions with the main assert engine local assert = require('luassert.assert') local util = require('luassert.util') -- Spy metatable local spy_mt = { __call = function(self, ...) local arguments = {...} arguments.n = select('#',...) -- add argument count ...
Fix confusing error messages for `called` asserts
Fix confusing error messages for `called` asserts This fixes the `called` error messages to print either `0` or `>0` instead of `nil` for the expected call count. Hence, the following error messages: - "Expected not to be called exactly nil time(s), but it was." - "Expected to be called nil time(s), but was called 0 ...
Lua
mit
mpeterv/luassert,ZyX-I/luassert,o-lim/luassert
06730642de02d064de022a28db20ea1554363dab
ui/keys.lua
ui/keys.lua
local bindings = {} -- key -> command map function ui.readkey() tty.flip() local key = tty.readkey() return bindings[key] or 'key:'..key end local function set(...) local R = {} for _,v in ipairs {...} do R[v] = true end return R end -- Keybinding validation. -- Checks that all critical keys are bound, a...
local bindings = {} -- key -> command map function ui.readkey() tty.flip() local key = tty.readkey() return bindings[key] or 'key:'..key end local function set(...) local R = {} for _,v in ipairs {...} do R[v] = true end return R end -- Keybinding validation. -- Checks that all critical keys are bound, a...
Fix error where keybinds weren't properly loaded
Fix error where keybinds weren't properly loaded
Lua
mit
ToxicFrog/ttymor
91d378a86ef6dfd34f80ad10bb83ec3b5fd14a72
src/ssl.lua
src/ssl.lua
------------------------------------------------------------------------------ -- LuaSec 0.5 -- Copyright (C) 2006-2014 Bruno Silvestre -- ------------------------------------------------------------------------------ local core = require("ssl.core") local context = require("ssl.context") local x509 = require("s...
------------------------------------------------------------------------------ -- LuaSec 0.5 -- Copyright (C) 2006-2014 Bruno Silvestre -- ------------------------------------------------------------------------------ local core = require("ssl.core") local context = require("ssl.context") local x509 = require("s...
Fix unpack().
Fix unpack().
Lua
mit
Tieske/luasec,Tieske/luasec,fhaoquan/luasec,ignacio/luasec,masoudre11/luasec,xnyhps/luasec,kernelsauce/luasec,ignacio/luasec,kernelsauce/luasec,xnyhps/luasec,fhaoquan/luasec,masoudre11/luasec
20320c8e3255188f2f33fda3b40031a0b44abf8b
kong/runloop/plugin_servers/mp_rpc.lua
kong/runloop/plugin_servers/mp_rpc.lua
local msgpack = require "MessagePack" local mp_pack = msgpack.pack local mp_unpacker = msgpack.unpacker local Rpc = {} Rpc.__index = Rpc Rpc.notifications_callbacks = {} function Rpc.new(socket_path, notifications) kong.log.debug("mp_rpc.new: ", socket_path) return setmetatable({ socket_path = socket_path,...
local msgpack = require "MessagePack" local mp_pack = msgpack.pack local mp_unpacker = msgpack.unpacker local Rpc = {} Rpc.__index = Rpc Rpc.notifications_callbacks = {} function Rpc.new(socket_path, notifications) kong.log.debug("mp_rpc.new: ", socket_path) return setmetatable({ socket_path = socket_path,...
fix(ext-plugin): store msg_id scope per-connection, not per-pluginserver to avoid races with concurrent calls
fix(ext-plugin): store msg_id scope per-connection, not per-pluginserver to avoid races with concurrent calls
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
dd85bd5dd8d44dfff55787446ee5469d0972a688
lua_scripts/pathmaps/maemo/00_default.lua
lua_scripts/pathmaps/maemo/00_default.lua
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Licensed under MIT license. tools = tools_root if (not tools) then tools = "/" end simple_chain = { next_chain = nil, binary = nil, rules = { {prefix = "/lib", map_to = target_root}, {prefix = "/usr/share/osso", map_to = target_root}, {prefix = "/usr...
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Licensed under MIT license. tools = tools_root if (not tools) then tools = "/" end simple_chain = { next_chain = nil, binary = nil, rules = { {prefix = "/lib", map_to = target_root}, {prefix = "/usr/share/osso", map_to = target_root}, {prefix = "/usr...
Map /usr/X11R6/lib in maemo mode
Map /usr/X11R6/lib in maemo mode Fixes Maemo 2.x rootstraps. Signed-off-by: Lauri Leukkunen <9b23c45cf0fb6926402fd5ded28029be7ec8bbef@rahina.org>
Lua
lgpl-2.1
OlegGirko/ldbox,lbt/scratchbox2,BinChengfei/scratchbox2,BinChengfei/scratchbox2,neeraj9/sbox2,BinChengfei/scratchbox2,loganchien/scratchbox2,madscientist42/scratchbox2,madscientist42/scratchbox2,BinChengfei/scratchbox2,neeraj9/sbox2,loganchien/scratchbox2,h113331pp/scratchbox2,neeraj9/sbox2,ldbox/ldbox,h113331pp/scratc...
f4a34eeab3c71df6578b1035f5b6fb5eb60e35bd
shared/unit.lua
shared/unit.lua
local blocking = require "shared.blocking" local GameMath = require "shared.gamemath" local Entity = require "shared.entity" local Unit = Entity:subclass("Unit") -- speed: pixels/second -- orientation: radians function Unit:initialize(entityStatic, player) Entity.initialize(self, entityStatic, player) self.sp...
local blocking = require "shared.blocking" local GameMath = require "shared.gamemath" local Entity = require "shared.entity" local Unit = Entity:subclass("Unit") -- speed: pixels/second -- orientation: radians function Unit:initialize(entityStatic, player) Entity.initialize(self, entityStatic, player) self.sp...
Fix: Movement normalization
Fix: Movement normalization
Lua
mit
ExcelF/project-navel
7b76e1c7ae1c08cbc5fec93e92a68d2e1d6a9c9d
MMOCoreORB/bin/scripts/screenplays/static_spawns/dantooine_static_spawns.lua
MMOCoreORB/bin/scripts/screenplays/static_spawns/dantooine_static_spawns.lua
--This is to be used for static spawns that are NOT part of caves, cities, dungeons, poi's, or other large screenplays. DantooineStaticSpawnsScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "DantooineStaticSpawnsScreenPlay", } registerScreenPlay("DantooineStaticSpawnsScreenPlay", true) function Da...
--This is to be used for static spawns that are NOT part of caves, cities, dungeons, poi's, or other large screenplays. DantooineStaticSpawnsScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "DantooineStaticSpawnsScreenPlay", } registerScreenPlay("DantooineStaticSpawnsScreenPlay", true) function Da...
[fixed] mantis 5656 added vexed voritor static spawn to dantooine
[fixed] mantis 5656 added vexed voritor static spawn to dantooine Change-Id: I694ba69fc20042204a0f900ce2f3d14cc07e5b9e
Lua
agpl-3.0
lasko2112/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,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/lege...
6a3ccfe602f1e3f62157554915447450ee8b93d5
tests/09-data.lua
tests/09-data.lua
local _ = require("underscore")._ , assert = require("assert") , One = require("../lib/tally_ho").Tally_Ho.new() ; describe( 'data', function () it( 'holds changes done in callbacks', function () One:on('change', function (f) f.data.a = 1; end) local data = {}; One:run('change', ...
local _ = require("underscore") local Jam = require("jam_bo_ree") local One = Jam.new() describe( 'data', function () it( 'holds changes done in callbacks', function () One:on('change', function (f) f.a = 1 end) local data = {} One:run('change', data) assert.equal(data.a, 1) end) ...
Fixed: typos in tests
Fixed: typos in tests
Lua
mit
da99/jam_bo_ree
33e539c5b3dca6e3599210763f0b92caa686b37e
game/lua-scripts/lenses/winkeltripel.lua
game/lua-scripts/lenses/winkeltripel.lua
-- cos of the standard parallel at 50 degrees 28' clat0 = 2/pi max_fov = 360 max_vfov = 180 onload = "f_contain" function lens_forward(x,y,z) local lat,lon = ray_to_latlon(x,y,z) local clat = cos(lat) local temp = clat*cos(lon*0.5) local D = acos(temp) local C = 1 - temp*temp temp = D/sqrt(C) l...
-- cos of the standard parallel at 50 degrees 28' clat0 = 2/pi max_fov = 360 max_vfov = 180 onload = "f_contain" function lens_forward(x,y,z) local lat,lon = ray_to_latlon(x,y,z) local clat = cos(lat) local temp = clat*cos(lon*0.5) local D = acos(temp) local C = 1 - temp*temp temp = D/sqrt(C) l...
fix winkel tripel artifacts (just a hack)
fix winkel tripel artifacts (just a hack)
Lua
mit
khonkhortisan/blinky,khonkhortisan/blinky,shaunlebron/blinky,shaunlebron/blinky,khonkhortisan/blinky,shaunlebron/blinky
a8440060b02074ecd6427a19df1b60a00451299b
spec/unit/statics_spec.lua
spec/unit/statics_spec.lua
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
Fixing configuration test
Fixing configuration test
Lua
apache-2.0
ejoncas/kong,jebenexer/kong,Kong/kong,akh00/kong,smanolache/kong,ind9/kong,streamdataio/kong,streamdataio/kong,xvaara/kong,ajayk/kong,beauli/kong,icyxp/kong,Kong/kong,isdom/kong,ind9/kong,ejoncas/kong,Kong/kong,kyroskoh/kong,rafael/kong,ccyphers/kong,li-wl/kong,shiprabehera/kong,Vermeille/kong,jerizm/kong,rafael/kong,i...
5358c40a029252c1bfcabb4132e05621934a2cf6
spotify-widget/spotify.lua
spotify-widget/spotify.lua
------------------------------------------------- -- Spotify Widget for Awesome Window Manager -- Shows currently playing song on Spotify for Linux client -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/spotify-widget -- @author Pavel Makhov -- @copyright 2020 Pav...
------------------------------------------------- -- Spotify Widget for Awesome Window Manager -- Shows currently playing song on Spotify for Linux client -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/spotify-widget -- @author Pavel Makhov -- @copyright 2020 Pav...
Fix bug introduced by #367
Fix bug introduced by #367
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
e23f583ff297259f974c2b1b0075cbefb40c3e14
lua/entities/gmod_wire_hologram/cl_init.lua
lua/entities/gmod_wire_hologram/cl_init.lua
include( "shared.lua" ) ENT.RenderGroup = RENDERGROUP_BOTH local blocked = {} local scale_buffer = {} local clip_buffer = {} local vis_buffer = {} function ENT:Initialize( ) self:DoScale() local ownerid = self:GetNetworkedInt("ownerid") self.blocked = blocked[ownerid] or false self.clips = {} ...
include( "shared.lua" ) ENT.RenderGroup = RENDERGROUP_BOTH local blocked = {} local scale_buffer = {} local clip_buffer = {} local vis_buffer = {} function ENT:Initialize( ) self:DoScale() local ownerid = self:GetNetworkedInt("ownerid") self.blocked = blocked[ownerid] or false self.clips = {} ...
Holograms: Swapped X and Y in scale Fixes #147 Scaling is now consistent with Gmod12 holograms, and the rest of source
Holograms: Swapped X and Y in scale Fixes #147 Scaling is now consistent with Gmod12 holograms, and the rest of source
Lua
apache-2.0
mms92/wire,plinkopenguin/wiremod,garrysmodlua/wire,mitterdoo/wire,dvdvideo1234/wire,notcake/wire,sammyt291/wire,CaptainPRICE/wire,wiremod/wire,immibis/wiremod,Grocel/wire,bigdogmat/wire,NezzKryptic/Wire,thegrb93/wire,rafradek/wire,Python1320/wire
a45940bf32f7a2f086c53aa0f079c7c51d974e25
packages/ubus-lime-utils/files/usr/lib/lua/lime/upgrade.lua
packages/ubus-lime-utils/files/usr/lib/lua/lime/upgrade.lua
#!/usr/bin/env lua --[[ Copyright (C) 2020 LibreMesh.org This is free software, licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 Copyright 2020 Santiago Piccinini <spiccinini@altermindi.net> ]]-- local json = require 'luci.jsonc' local utils = require 'lime.utils' local pkg = {} pkg.UPGRADE_INFO...
#!/usr/bin/env lua --[[ Copyright (C) 2020 LibreMesh.org This is free software, licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 Copyright 2020 Santiago Piccinini <spiccinini@altermindi.net> ]]-- local json = require 'luci.jsonc' local utils = require 'lime.utils' local pkg = {} pkg.UPGRADE_INFO...
lime-utils: remove debugging print
lime-utils: remove debugging print Fix the get_upgrade_info ubus endpoint, broken by the intrusion of the print into the json output.
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
c1b69a09445005af6e1a031ac085e572694aaafd
popups.lua
popups.lua
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") local function EPGP_CONFIRM_GP_CREDIT_UpdateButtons(self) local link = self.itemFrame.link local gp = tonumber(self.editBox:GetText()) if EPGP:CanIncGPBy(link, gp) th...
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") local function EPGP_CONFIRM_GP_CREDIT_UpdateButtons(self) local link = self.itemFrame.link local gp = tonumber(self.editBox:GetText()) if EPGP:CanIncGPBy(link, gp) th...
Further modifications to make the popup patch more resilient. This fixes issue 251 .
Further modifications to make the popup patch more resilient. This fixes issue 251 .
Lua
bsd-3-clause
hayword/tfatf_epgp,hayword/tfatf_epgp,sheldon/epgp,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf
30da8edab25939b8160fa62e988afe1e56a45b2e
random.lua
random.lua
local wrap = require 'cwrap' require 'torchcwrap' local interface = wrap.CInterface.new() interface:print( [[ #include "luaT.h" #include "TH.h" ]]) for _,name in ipairs({"seed", "initialSeed"}) do interface:wrap(name, string.format("THRandom_%s",name), {{name='Generator'...
local wrap = require 'cwrap' require 'torchcwrap' local interface = wrap.CInterface.new() interface:print( [[ #include "luaT.h" #include "TH.h" extern void torch_Generator_init(lua_State *L); extern void torch_Generator_new(lua_State *L); ]]) for _,name in ipairs({"seed", "initialSeed"}) do interface:wrap...
Fix build warnings.
Fix build warnings.
Lua
bsd-3-clause
ujjwalkarn/torch7,yt752/torch7,Atcold/torch7,golden1232004/torch7,hechenfon/torch7,Atcold/torch7,ujjwalkarn/torch7,jlegendary/torch7,Moodstocks/torch7,adamlerer/torch7,LinusU/torch7,eulerreich/torch7,waitwaitforget/torch7,ninjin/torch7,dominikgrewe/torch7,kaustubhcs/torch7,colesbury/torch7,pushups/torch7,dariosena/torc...
09b4705a33de9307e6502524a09c4bb1d0f46fbe
modules/game_textmessage/textmessage.lua
modules/game_textmessage/textmessage.lua
MessageTypesConf = { ConsoleRed = { color = '#F55E5E', consoleTab = tr('Default') }, ConsoleOrange = { color = '#FE6500', consoleTab = tr('Default') }, ConsoleBlue = { color = '#9F9DFD', consoleTab = tr('Default') }, Warning = { color = '#F55E5E', consoleTab = tr('Server Log'), labelId = 'war...
MessageTypes = { ConsoleRed = { color = '#F55E5E', consoleTab = tr('Default') }, ConsoleOrange = { color = '#FE6500', consoleTab = tr('Default') }, ConsoleBlue = { color = '#9F9DFD', consoleTab = tr('Default') }, Warning = { color = '#F55E5E', consoleTab = tr('Server Log'), labelId = 'warning...
Fixes errors in textmessage
Fixes errors in textmessage
Lua
mit
dreamsxin/otclient,gpedro/otclient,Radseq/otclient,gpedro/otclient,EvilHero90/otclient,EvilHero90/otclient,Cavitt/otclient_mapgen,kwketh/otclient,dreamsxin/otclient,kwketh/otclient,Radseq/otclient,gpedro/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen
663a0c06b8e9b95ab555695273c00b1b4f9f36af
data/dist/shooter/main.lua
data/dist/shooter/main.lua
oldprint = print print = function(...) local args = { n = select("#", ...), ... } local t = "" for i=1,args.n do t = t .. tostring(args[i]) end oldprint(t) end print('Hello world') IsDown = function(key) return key.state > 0.1 end WasDown = function(key) return key.last_state > 0.1 end JustPress...
oldprint = print print = function(...) local args = { n = select("#", ...), ... } local t = "" for i=1,args.n do t = t .. tostring(args[i]) end oldprint(t) end print('Hello world') IsDown = function(key) return key.state > 0.1 end WasDown = function(key) return key.last_state > ...
fixed indentation to 4 spaces
fixed indentation to 4 spaces
Lua
mit
madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria
1f91548c6e434128a2dae13061ccc31274f65265
waifu2x.lua
waifu2x.lua
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)() package.path = path.join(path.dirname(__FILE__), "lib", "?.lua;") .. package.path require 'sys' require 'pl' require 'w2nn' local iproc = require 'iproc' local reconstruct = require 'reconstruct' local image_loader = require ...
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)() package.path = path.join(path.dirname(__FILE__), "lib", "?.lua;") .. package.path require 'sys' require 'pl' require 'w2nn' local iproc = require 'iproc' local reconstruct = require 'reconstruct' local image_loader = require ...
Fix model loading error when using ukbench model; Add error handling
Fix model loading error when using ukbench model; Add error handling
Lua
mit
higankanshi/waifu2x,higankanshi/waifu2x,higankanshi/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler
cbfd8651370aabedcd4f0285de8630ae3958ce4e
src/plugins/lua/emails.lua
src/plugins/lua/emails.lua
-- Emails is module for different checks for emails inside messages -- Rules format: -- symbol = sym, map = file:///path/to/file, domain_only = yes -- symbol = sym2, dnsbl = bl.somehost.com, domain_only = no local rules = {} local logger = require "rspamd_logger" -- Check rule for a single email local function check_...
-- Emails is module for different checks for emails inside messages -- Rules format: -- symbol = sym, map = file:///path/to/file, domain_only = yes -- symbol = sym2, dnsbl = bl.somehost.com, domain_only = no local rules = {} local logger = require "rspamd_logger" -- Check rule for a single email local function check_...
Fix emails plugin.
Fix emails plugin.
Lua
bsd-2-clause
AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,amohanta/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,dark-al/rspamd,amohanta/rspamd,minaevmike/rspamd,awhitesong/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,dark-al/rspamd,dark-al/rspamd,andrejzverev/rspamd,min...
cab87cf5c02abd666713dce397fec2ee6b0e4aee
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
Lua
apache-2.0
deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci
9a7e9831774d56234b3a6ed6bd4690c61cebecbb
hindsight/output/executive_summary.lua
hindsight/output/executive_summary.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Outputs a executive summary based on the main and crash pings as a derived stream in the specified format one ta...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Outputs a executive summary based on the main and crash pings as a derived stream in the specified format one ta...
Fix the Field names to match what is in the executive summary
Fix the Field names to match what is in the executive summary
Lua
mpl-2.0
mozilla-services/data-pipeline,sapohl/data-pipeline,mozilla-services/data-pipeline,whd/data-pipeline,mozilla-services/data-pipeline,acmiyaguchi/data-pipeline,whd/data-pipeline,acmiyaguchi/data-pipeline,acmiyaguchi/data-pipeline,whd/data-pipeline,sapohl/data-pipeline,acmiyaguchi/data-pipeline,sapohl/data-pipeline,mozill...
18e5e47d1a6cf77d2668cba500356a4d805b16fc
premake5.lua
premake5.lua
newoption { trigger = 'enable-big-endian', description = 'Enable big-endian byte order support (default is little-endian)' } newoption { trigger = 'disable-int64', description = 'Disable 64 bits integers support (enabled by default)' } solution "cborphine" configurations { "Debug", "Releas...
newoption { trigger = 'enable-big-endian', description = 'Enable big-endian byte order support (default is little-endian)' } newoption { trigger = 'disable-int64', description = 'Disable 64 bits integers support (enabled by default)' } solution "cborphine" configurations { "Debug", "Releas...
Fix formatting
Fix formatting
Lua
mit
morphim/cborphine,morphim/cborphine
f3ca3a8916d4f62e1e44b7c5f8f45a23a2a70231
lua/main.lua
lua/main.lua
--- Main file called by all tasks on startup -- set up logger before doing anything else local log = require "log" -- set log level log:setLevel("INFO") -- enable logging to file --log:fileEnable() -- globally available utility functions require "utils" local phobos = require "phobos" local dpdk = require ...
--- Main file called by all tasks on startup -- set up logger before doing anything else local log = require "log" -- set log level log:setLevel("INFO") -- enable logging to file --log:fileEnable() -- globally available utility functions require "utils" local phobos = require "phobos" local dpdk = require ...
fix --dpdk-conf option
fix --dpdk-conf option
Lua
mit
libmoon/libmoon,libmoon/libmoon,scholzd/libmoon,libmoon/libmoon,emmericp/libmoon,scholzd/libmoon,scholzd/libmoon,emmericp/libmoon,emmericp/libmoon
8a2148921ee83ad7d6846c38199e812b53ea63c2
base/symbols.lua
base/symbols.lua
if not Flang then Flang = {} end Symbols = {} Flang.Symbols = Symbols Symbols.__index = Symbols -- turn the Table of {element, ...} into a table of {element = true, ...} -- will be queried later function Symbols:Set(table) local s = {} for _,v in pairs(table) do s[v] = true end return s end -- Returns true if e...
if not Flang then Flang = {} end Symbols = {} Flang.Symbols = Symbols Symbols.__index = Symbols -- turn the Table of {element, ...} into a table of {element = true, ...} -- will be queried later function Symbols.Set(table) local s = {} for _,v in pairs(table) do s[v] = true end return s end -- Returns true if e...
Fixed self issue in symbols
Fixed self issue in symbols
Lua
mit
radixdev/flang
3703b70561003bd3cf291a9a2cf323c2dff08053
tests/actions/make/cpp/test_objects.lua
tests/actions/make/cpp/test_objects.lua
-- -- tests/actions/make/cpp/test_objects.lua -- Validate the list of objects for a makefile. -- Copyright (c) 2009-2014 Jason Perkins and the Premake project -- local suite = test.declare("make_cpp_objects") local make = premake.make local project = premake.project -- -- Setup -- local sln, prj function suit...
-- -- tests/actions/make/cpp/test_objects.lua -- Validate the list of objects for a makefile. -- Copyright (c) 2009-2014 Jason Perkins and the Premake project -- local suite = test.declare("make_cpp_objects") local make = premake.make local project = premake.project -- -- Setup -- local sln, prj function suit...
Fix unit tests broken by previous commit
Fix unit tests broken by previous commit --HG-- branch : assassini/fix-perfile-custom-build-commands-in-c-g-1411831836712
Lua
bsd-3-clause
annulen/premake,annulen/premake,annulen/premake,annulen/premake
57d75970e21742dbee389c4f7c3d474c09ea815f
core/sile.lua
core/sile.lua
SILE = {} SILE.version = "0.9.3-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} SILE.tokenizers = {} if not unpack then unpack = table.unpack end -- 5.3 compatibility std = require("std") SILE.documentState = std.object {}; SILE.scra...
SILE = {} SILE.version = "0.9.3-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} SILE.tokenizers = {} loadstring = loadstring or load -- 5.3 compatibility if not unpack then unpack = table.unpack end -- 5.3 compatibility std = require(...
(insert standard rant here about Lua making massive incompatible changes between minor versions) Fixes #111
(insert standard rant here about Lua making massive incompatible changes between minor versions) Fixes #111
Lua
mit
simoncozens/sile,neofob/sile,WAKAMAZU/sile_fe,anthrotype/sile,simoncozens/sile,anthrotype/sile,simoncozens/sile,simoncozens/sile,alerque/sile,WAKAMAZU/sile_fe,neofob/sile,anthrotype/sile,WAKAMAZU/sile_fe,alerque/sile,alerque/sile,alerque/sile,anthrotype/sile,WAKAMAZU/sile_fe,neofob/sile,neofob/sile
55d489b7a3be069db1ced7af8d9530cd604a668d
Modules/Gui/Markdown/MarkdownRender.lua
Modules/Gui/Markdown/MarkdownRender.lua
--- Renders the markdown -- See: MarkdownParser -- @classmod MarkdownRender local TextService = game:GetService("TextService") local MarkdownRender = {} MarkdownRender.__index = MarkdownRender MarkdownRender.ClassName = "MarkdownRender" MarkdownRender.SpaceAfterParagraph = 10 MarkdownRender.SpaceAfterHeader = 5 Markd...
--- Renders the markdown -- See: MarkdownParser -- @classmod MarkdownRender local TextService = game:GetService("TextService") local MarkdownRender = {} MarkdownRender.__index = MarkdownRender MarkdownRender.ClassName = "MarkdownRender" MarkdownRender.SpaceAfterParagraph = 10 MarkdownRender.SpaceAfterHeader = 5 Markd...
Fix extra spacing after lists that end markdown render
Fix extra spacing after lists that end markdown render
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
9e03189586153cf4be915a865c6745d2fdec38be
mods/farming/soil.lua
mods/farming/soil.lua
--= Soil Functions -- Normal Soil minetest.register_node("farming:soil", { description = "Soil", tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"}, drop = "default:dirt", is_ground_content = true, groups = {crumbly=3, not_in_creative_inventory=1, soil=2}, sounds = default.node_sound_dirt_defaul...
--= Soil Functions -- Normal Soil minetest.register_node("farming:soil", { description = "Soil", tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"}, drop = "default:dirt", is_ground_content = true, groups = {crumbly=3, not_in_creative_inventory=1, soil=2}, sounds = default.node_sound_dirt_defaul...
Fixed the Soil abm.
Fixed the Soil abm.
Lua
unlicense
Gael-de-Sailly/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,...