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
b570e0f3142cb9ba4e1612d6ab7782347bcfb377
main.lua
main.lua
emufun = { config = {}; } package.cpath = package.cpath..";/usr/lib64/lua/5.1/?.so" require "lfs" require "util" require "logging" require "input" require "settings" require "window" flags.register("library-paths", "L") { help = "Comma-separated paths to the media library or libraries"; type = flags.list; ...
emufun = { config = {}; } package.cpath = package.cpath..";/usr/lib64/lua/5.1/?.so" function love.update(dt) -- cap framerate at 30fps love.timer.sleep(1/30 - dt) end require "lfs" require "util" require "logging" require "input" require "settings" require "window" flags.register("library-paths", "L") { h...
Fix breakage of love.update function.
Fix breakage of love.update function.
Lua
mit
ToxicFrog/EmuFun
dfda26bb05bdb3a55c2dec00f6e7509c181d5b53
feedback/confusion.lua
feedback/confusion.lua
------------------------------------------------------------------------ --[[ Confusion ]]-- -- Feedback -- Adapter for optim.ConfusionMatrix -- requires 'optim' package ------------------------------------------------------------------------ local Confusion, parent = torch.class("dp.Confusion", "dp.Feedback") Confusio...
------------------------------------------------------------------------ --[[ Confusion ]]-- -- Feedback -- Adapter for optim.ConfusionMatrix -- requires 'optim' package ------------------------------------------------------------------------ local Confusion, parent = torch.class("dp.Confusion", "dp.Feedback") Confusio...
fixed small bug in Confusion
fixed small bug in Confusion
Lua
bsd-3-clause
eulerreich/dp,sagarwaghmare69/dp,kracwarlock/dp,fiskio/dp,rickyHong/dptorchLib,nicholas-leonard/dp,jnhwkim/dp
037662a3f9dd0468bd1af6a1c9a67c8dc5579327
nyagos.d/suffix.lua
nyagos.d/suffix.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) suffix=string.gsub(string.lower(suffix),"^%.","") if not share._suffixes[suffix] then local newext="."..suffix local orgpathext = ...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) suffix=string.gsub(string.lower(suffix),"^%.","") share._suffixes[suffix]=cmdline end suffix = setmetatable({},{ __call = function(t,k,v) s...
(#425) Do not append extensions defined suffix function to %PATHEXT%
(#425) Do not append extensions defined suffix function to %PATHEXT%
Lua
bsd-3-clause
tsuyoshicho/nyagos
808494bf724c30d50cc90034c6b976687824a7c6
share/media/clipfish.lua
share/media/clipfish.lua
-- libquvi-scripts -- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Fre...
-- libquvi-scripts -- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published by the Fre...
FIX: media/clipfish.lua: Raise "no match: media stream URL"
FIX: media/clipfish.lua: Raise "no match: media stream URL" Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts
6a132e6f804764a53cc71f9a58e62bf67422a3ef
misc.lua
misc.lua
-- new global functions, either replacing existing ones or providing new -- ones for convenience -- replacements: pairs, ipairs, type -- new: printf, fprintf, eprintf, sprintf, srequire, L -- new version of type() that supports the __type metamethod local _type = type function type(obj) local mt = getmetatable(obj) ...
-- new global functions, either replacing existing ones or providing new -- ones for convenience -- replacements: pairs, ipairs, type -- new: printf, fprintf, eprintf, sprintf, srequire, L -- new version of type() that supports the __type metamethod rawtype = type function type(obj) local mt = getmetatable(obj) if m...
Fix partial, and make original type available as rawtype
Fix partial, and make original type available as rawtype
Lua
mit
ToxicFrog/luautil
226bd84da0df884d23c5e98f82ce1842629f86f2
module/admin-core/src/controller/admin/index.lua
module/admin-core/src/controller/admin/index.lua
module("ffluci.controller.admin.index", package.seeall) function action_wizard() if ffluci.http.formvalue("ip") then return configure_freifunk() end local ifaces = {} local wldevs = ffluci.model.uci.show("wireless") if wldevs then for k, v in pairs(wldevs.wireless) do if v[".type"] == "wifi-device" the...
module("ffluci.controller.admin.index", package.seeall) function action_wizard() if ffluci.http.formvalue("ip") then return configure_freifunk() end local ifaces = {} local wldevs = ffluci.model.uci.show("wireless") if wldevs then for k, v in pairs(wldevs.wireless) do if v[".type"] == "wifi-device" the...
* Fixed Freifunk wizard
* Fixed Freifunk wizard
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci
4f70b29b82730640f67ec08f6871b0f0d2fe8c52
kong/vaults/env/init.lua
kong/vaults/env/init.lua
local type = type local gsub = string.gsub local upper = string.upper local kong = kong local ENV = {} local function init() local ffi = require "ffi" ffi.cdef("extern char **environ;") local e = ffi.C.environ if not e then kong.log.warn("could not access environment variables") return end lo...
local ffi = require "ffi" local type = type local gsub = string.gsub local upper = string.upper local find = string.find local sub = string.sub local str = ffi.string local kong = kong local ENV = {} ffi.cdef [[ extern char **environ; ]] local function init() local e = ffi.C.environ if not e then kong.l...
fix(env) luajit table overflow error when using ffi.cdef (#8945)
fix(env) luajit table overflow error when using ffi.cdef (#8945)
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
b23cc68d4459e96338c030e9aa812950bdf1e2c1
scripts/tundra/tools/gcc.lua
scripts/tundra/tools/gcc.lua
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
Put libraries after objects on GCC link command line.
Put libraries after objects on GCC link command line. Fixes GH-86.
Lua
mit
deplinenoise/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra
5762889ed90e82eefa16ce59f898d4005ece8066
inventory.lua
inventory.lua
local component = require("component") local ic = component.inventory_controller local robot = require("robot") local sides = require("sides") local util = require("util") local inventory = {} function inventory.isOneOf(item, checkList) for _,chk in ipairs(checkList) do if chk == "!tool" then if item.maxD...
local component = require("component") local ic = component.inventory_controller local robot = require("robot") local sides = require("sides") local util = require("util") local inventory = {} function inventory.isOneOf(item, checkList) for _,chk in ipairs(checkList) do if chk == "!tool" then if item.maxD...
fixes reverse issue with damage/maxDamage
fixes reverse issue with damage/maxDamage
Lua
apache-2.0
InfinitiesLoop/oclib
aee96dc67811cce904bb08f1d66b1616a4d7cb15
spec/cl_test.lua
spec/cl_test.lua
-- Tests the commandline options by executing busted through -- os.execute(). It can be run through the following command: -- -- busted --pattern=cl_test.lua --defer-print local error_started local error_start = function() print("================================================") print("== Error block follows...
-- Tests the commandline options by executing busted through -- os.execute(). It can be run through the following command: -- -- busted --pattern=cl_test.lua --defer-print local ditch local error_started local error_start = function() if ditch == "" then return end print("=======================================...
fixed cl spec to run on other platforms
fixed cl spec to run on other platforms
Lua
mit
sobrinho/busted,ryanplusplus/busted,mpeterv/busted,DorianGray/busted,xyliuke/busted,istr/busted,leafo/busted,Olivine-Labs/busted,o-lim/busted,nehz/busted
dc95f2b487928f0a839e1b47d86e25b26579355f
util/DataLoader.lua
util/DataLoader.lua
require 'torch' require 'hdf5' local utils = require 'util.utils' local DataLoader = torch.class('DataLoader') function DataLoader:__init(kwargs) local h5_file = utils.get_kwarg(kwargs, 'input_h5') self.batch_size = utils.get_kwarg(kwargs, 'batch_size') self.seq_length = utils.get_kwarg(kwargs, 'seq_length') ...
require 'torch' require 'hdf5' local utils = require 'util.utils' local DataLoader = torch.class('DataLoader') function DataLoader:__init(kwargs) local h5_file = utils.get_kwarg(kwargs, 'input_h5') self.batch_size = utils.get_kwarg(kwargs, 'batch_size') self.seq_length = utils.get_kwarg(kwargs, 'seq_length') ...
Fix bug when extra=0
Fix bug when extra=0
Lua
mit
dgcrouse/torch-rnn,oneyanshi/transcend-exe,gabrielegiannini/torch-rnn-repo,tmp6154/torch-rnn,phanhuy1502/FYP,jcjohnson/torch-rnn,spaceraccoon/bilabot,phanhuy1502/FYP,antihutka/torch-rnn
ab089caf5dedec2f66ff4941a27684a2cdc3a1b0
src/lua/main.lua
src/lua/main.lua
-- © 2008 David Given. -- WordGrinder is licensed under the BSD open source license. See the COPYING -- file in this distribution for the full text. -- -- $Id$ -- $URL$ local int = math.floor local Write = wg.write local SetNormal = wg.setnormal local SetBold = wg.setbold local SetUnderline = wg.setunderline local Set...
-- © 2008 David Given. -- WordGrinder is licensed under the BSD open source license. See the COPYING -- file in this distribution for the full text. -- -- $Id$ -- $URL$ local int = math.floor local Write = wg.write local SetNormal = wg.setnormal local SetBold = wg.setbold local SetUnderline = wg.setunderline local Set...
Fixed crash on File->New caused by the menu not being created at the right point.
Fixed crash on File->New caused by the menu not being created at the right point.
Lua
mit
rodoviario/wordgrinder,Munchotaur/wordgrinder,NRauh/wordgrinder,NRauh/wordgrinder,rodoviario/wordgrinder,Munchotaur/wordgrinder
90ca7152241450472ceb745b108b64afd7bdfd6e
mogamett/mixins/PhysicsBody.lua
mogamett/mixins/PhysicsBody.lua
local Class = require (mogamett_path .. '/libraries/classic/classic') local PhysicsBody = Class:extend() function PhysicsBody:physicsBodyNew(world, x, y, settings) self.bodies = {} self.shapes = {} self.fixtures = {} self.sensors = {} self.joints = {} self:addBody(world, x, y, settings) end ...
local Class = require (mogamett_path .. '/libraries/classic/classic') local PhysicsBody = Class:extend() function PhysicsBody:physicsBodyNew(world, x, y, settings) self.bodies = {} self.shapes = {} self.fixtures = {} self.sensors = {} self.joints = {} self:addBody(world, x, y, settings) end ...
Add body/shape/fixture/sensor naming for proper retrieval/removal
Add body/shape/fixture/sensor naming for proper retrieval/removal
Lua
mit
AntonioModer/fuccboiGDX,AntonioModer/fuccboiGDX
413904bb40d3ed3b82518c2d82201bceae27b555
premake4.lua
premake4.lua
---------------------------------------------------------------------------------------------------- if _ACTION == "clean" then os.rmdir("build") end ---------------------------------------------------------------------------------------------------- solution "Support" configurations { "Debug", "Release" } ...
---------------------------------------------------------------------------------------------------- if _ACTION == "clean" then os.rmdir("build") end ---------------------------------------------------------------------------------------------------- local have_gtest = os.isdir("test/gtest") ---------------------...
Fix linker errors with gtest
Fix linker errors with gtest
Lua
mit
abolz/CmdLine
84a971b27db6361ff5444060a7432b111c10a7de
premake4.lua
premake4.lua
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'cpp-bench' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32','x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } ...
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'cpp-bench' configurations {'Debug', 'Release'} language 'C++' flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32','x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } ...
fix linux linkage clock_gettime() need lib 'rt'
fix linux linkage clock_gettime() need lib 'rt'
Lua
apache-2.0
ichenq/cpp-bench,ichenq/cpp-bench
425cba468999e6d9a0636f0c4a40a6949abb08f3
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/107_counters.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/107_counters.lua
--The loop runs at about 130 Hz, meaning that frequencies up to about 65 Hz can -- be accurately counted. --The index of each counter within an array is 1 more than its -- associated counter. E.g. counter 10 (AIN113) corresponds with an array -- index of 11. --Counters 0-3 correspond with AIN0-AIN3 --Counters 4-13 co...
--[[ Name: 107_counters.lua Desc: Sets up and reads 107 counters Note: The loop runs at about 130 Hz, meaning that frequencies up to about 65 Hz can be accurately counted. The index of each counter within an array is 1 more than its associated counter. E.g. counter 10 (AIN113)...
Fixed up the formatting of the 107 counter example
Fixed up the formatting of the 107 counter example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
38a6ea96d73d0e9a187983d90b85791d7d0c27dd
frontend/ui/widget/touchmenu.lua
frontend/ui/widget/touchmenu.lua
require "ui/widget/container" require "ui/widget/group" require "ui/widget/line" require "ui/widget/iconbutton" --[[ TouchMenuItem widget --]] TouchMenuItem = InputContainer:new{ menu = nil, vertical_align = "center", item = nil, dimen = nil, face = Font:getFace("cfont", 22), } function TouchMenuItem:init() se...
require "ui/widget/container" require "ui/widget/group" require "ui/widget/line" require "ui/widget/iconbutton" --[[ TouchMenuItem widget --]] TouchMenuItem = InputContainer:new{ menu = nil, vertical_align = "center", item = nil, dimen = nil, face = Font:getFace("cfont", 22), parent = nil, } function TouchMenu...
fix: set parent on TouchMenuItem
fix: set parent on TouchMenuItem
Lua
agpl-3.0
koreader/koreader,apletnev/koreader-base,Hzj-jie/koreader,frankyifei/koreader-base,Hzj-jie/koreader-base,pazos/koreader,mihailim/koreader,apletnev/koreader-base,NiLuJe/koreader,Frenzie/koreader,frankyifei/koreader-base,NiLuJe/koreader,Frenzie/koreader-base,koreader/koreader,chihyang/koreader,poire-z/koreader,koreader/k...
761a00ae3e526bd54d2be649086dc7f9540c2be8
MMOCoreORB/bin/scripts/object/draft_schematic/furniture/furniture_tatooine_tapestry.lua
MMOCoreORB/bin/scripts/object/draft_schematic/furniture/furniture_tatooine_tapestry.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
[fixed] disabled factory runs on tatooine tapestry loot schem
[fixed] disabled factory runs on tatooine tapestry loot schem Change-Id: I4560c96e9b18bc6e509797bb37a2434eb8e1a111
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/lege...
530f6547b7ac51047f9b8bfa29e8e49bd2baed66
test/dump.lua
test/dump.lua
local ipairs = ipairs local pairs = pairs local tostring = tostring local type = type local format = string.format local huge = 1/0 local tiny = -1/0 local function dump(v) local builder = {} local i = 1 local depth = 0 local depth8 = 1 local view = 1 local usestack local vars = {'v1', 'v2', 'v3', 'v4', 'v5', ...
local ipairs = ipairs local pairs = pairs local tostring = tostring local type = type local format = string.format local huge = 1/0 local tiny = -1/0 local function dump(v) local builder = {} local i = 1 local depth = 0 local depth8 = 1 local view = 1 local usestack local vars = {'v1', 'v2', 'v3', 'v4', 'v5', ...
fix loop detection of dump.lua
fix loop detection of dump.lua
Lua
mit
grafi-tt/lunajson,bigcrush/lunajson,tst2005/lunajson,csteddy/lunajson,bigcrush/lunajson,grafi-tt/lunajson,grafi-tt/lunajson,tst2005/lunajson,csteddy/lunajson
aa8567aac171d30261ecd0ec925773d7c170d86f
xmake/repository/packages/a/automake/xmake.lua
xmake/repository/packages/a/automake/xmake.lua
package("automake") set_kind("binary") set_homepage("https://www.gnu.org/software/automake/") set_description("A tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.") if is_host("macosx", "linux") then add_urls("http://ftp.gnu.org/gnu/automake/automake-...
package("automake") set_kind("binary") set_homepage("https://www.gnu.org/software/automake/") set_description("A tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.") if is_host("macosx", "linux") then add_urls("http://ftp.gnu.org/gnu/automake/automake-...
fix automake install script
fix automake install script
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake
305daf860b11f36a51a943594c637b39f79efa87
trovebox.lua
trovebox.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
trovebox.lua: fixes
trovebox.lua: fixes
Lua
unlicense
ArchiveTeam/trovebox-grab,ArchiveTeam/trovebox-grab
85c82ce1a63eec639fa8a24fa7b6d46e6c44ee1d
lunamark/writer/man.lua
lunamark/writer/man.lua
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Groff man writer for lunamark. -- Extends [lunamark.writer.groff]. -- -- Note: continuation paragraphs in lists are not -- handled properly. local M = {} local groff = require("lunamark.writer.groff")...
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Groff man writer for lunamark. -- Extends [lunamark.writer.groff]. -- -- Note: continuation paragraphs in lists are not -- handled properly. local M = {} local groff = require("lunamark.writer.groff")...
man writer: Fixed lists so we don't get .PP after .IP.
man writer: Fixed lists so we don't get .PP after .IP.
Lua
mit
jgm/lunamark,tst2005/lunamark,simoncozens/lunamark,simoncozens/lunamark,tst2005/lunamark,tst2005/lunamark,jgm/lunamark,jgm/lunamark,simoncozens/lunamark
18b327504885c7c139d791d5c735ce22f1220cde
webpaste.lua
webpaste.lua
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
Fixed formatting and changed loop style
Fixed formatting and changed loop style
Lua
mit
vifino/cpaste,carbonsrv/cpaste
0528b8648d9829b9e3385665748889ee382b1745
src/hs/finalcutpro/ui/Table.lua
src/hs/finalcutpro/ui/Table.lua
local log = require("hs.logger").new("Table") local inspect = require("hs.inspect") local axutils = require("hs.finalcutpro.axutils") local tools = require("hs.fcpxhacks.modules.tools") local geometry = require("hs.geometry") local Table = {} --- hs.finalcutpro.ui.Table:new(axuielement, ta...
local log = require("hs.logger").new("Table") local inspect = require("hs.inspect") local axutils = require("hs.finalcutpro.axutils") local tools = require("hs.fcpxhacks.modules.tools") local geometry = require("hs.geometry") local Table = {} --- hs.finalcutpro.ui.Table:new(axuielement, ta...
#110 * Fixed bug in Table
#110 * Fixed bug in Table
Lua
mit
cailyoung/CommandPost,fcpxhacks/fcpxhacks,cailyoung/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost
776bb03740a8f89a6182bccc8a47ea5035347009
src/main/resources/std/utf8.lua
src/main/resources/std/utf8.lua
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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 ...
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. You may obtain a copy of -- the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law ...
fix optional params
fix optional params
Lua
apache-2.0
tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua
aa7e58f06c79d5f93ebcce8245c9c2fae0138f4a
extension/script/backend/worker/eval/repl.lua
extension/script/backend/worker/eval/repl.lua
local source, level = ... level = (level or 0) + 2 if _VERSION == "Lua 5.1" then load = loadstring function table.pack(...) local t = {...} t.n = select("#", ...) return t end table.unpack = unpack end local f = assert(debug.getinfo(level,"f").func, "can't find function") local args = {} local locals = {} l...
local source, level = ... level = (level or 0) + 2 if _VERSION == "Lua 5.1" then load = loadstring function table.pack(...) local t = {...} t.n = select("#", ...) return t end table.unpack = unpack end local f = assert(debug.getinfo(level,"f").func, "can't find function") local args_name = {} local args_val...
Fixes #118
Fixes #118
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
1453d200d965c3a30c6103a12ebc1ee36777cf15
fimbul/eh/character.lua
fimbul/eh/character.lua
---@module fimbul.eh.character local character = {} local base = _G local ability = require('fimbul.eh.ability') local rules = require('fimbul.eh.rules') local skill_check = require('fimbul.eh.skill_check') local util = require('fimbul.util') function character:new(y) local neu = y or {} setmetatable(neu, s...
---@module fimbul.eh.character local character = {} local base = _G local ability = require('fimbul.eh.ability') local rules = require('fimbul.eh.rules') local skill_check = require('fimbul.eh.skill_check') local util = require('fimbul.util') function character:new(y) local neu = y or {} setmetatable(neu, s...
Fix CCP calculation for abilities
Fix CCP calculation for abilities
Lua
bsd-2-clause
n0la/fimbul
a908ed67e182b8f44299d639381575d91a113447
site/api/lib/elastic.lua
site/api/lib/elastic.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 License, Version 2.0 (the "License"); you may not use ...
--[[ 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 License, Version 2.0 (the "License"); you may not use ...
Fix for https://github.com/apache/incubator-ponymail/issues/139
Fix for https://github.com/apache/incubator-ponymail/issues/139
Lua
apache-2.0
Humbedooh/ponymail,jimjag/ponymail,jimjag/ponymail,jimjag/ponymail,Humbedooh/ponymail,quenda/ponymail,quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail,quenda/ponymail
e558401e090c5f2cb0e06a9681f15579374a4e51
core/inputs-xml.lua
core/inputs-xml.lua
SILE.inputs.XML = { order = 1, appropriate = function(fn, sniff) return (fn:match("xml$") or sniff:match("<")) end, process = function (fn) local lom = require("lomwithpos") local fh = io.open(fn) local t = lom.parse(fh:read("*all")) local root = SILE.documentState.documentClass == nil i...
SILE.inputs.XML = { order = 1, appropriate = function(fn, sniff) return (fn:match("xml$") or sniff:match("<")) end, process = function (fn) local lom = require("lomwithpos") local fh = io.open(fn) local t, err = lom.parse(fh:read("*all")) if t == nil then error(err) end local r...
Fix #330
Fix #330
Lua
mit
simoncozens/sile,alerque/sile,alerque/sile,neofob/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile,alerque/sile,alerque/sile
e6a9deaf3a04164ae1099b3c1321c4234f938034
plugins/botinteract.lua
plugins/botinteract.lua
local function callback_setbot(extra, success, result) if success == 0 then send_large_msg('chat#id' .. extra.chatid, lang_text('noUsernameFound')) send_large_msg('channel#id' .. extra.chatid, lang_text('noUsernameFound')) return end local hash = 'botinteract' redis:sadd(h...
local function callback_setbot(extra, success, result) if success == 0 then send_large_msg('chat#id' .. extra.chatid, lang_text('noUsernameFound')) send_large_msg('channel#id' .. extra.chatid, lang_text('noUsernameFound')) return end local hash = 'botinteract' redis:sadd(h...
fix botinteract
fix botinteract
Lua
agpl-3.0
xsolinsx/AISasha
c4244d392988177a4d542f84d7fa720476cda252
Sequential.lua
Sequential.lua
local Sequential, _ = torch.class('nn.Sequential', 'nn.Container') function Sequential:__len() return #self.modules end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
local Sequential, _ = torch.class('nn.Sequential', 'nn.Container') function Sequential:__len() return #self.modules end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
fixing Sequential.remove corner case
fixing Sequential.remove corner case
Lua
bsd-3-clause
andreaskoepf/nn,eulerreich/nn,sbodenstein/nn,lukasc-ch/nn,lvdmaaten/nn,adamlerer/nn,Jeffyrao/nn,ominux/nn,diz-vara/nn,PierrotLC/nn,ivendrov/nn,douwekiela/nn,joeyhng/nn,abeschneider/nn,vgire/nn,kmul00/nn,davidBelanger/nn,LinusU/nn,hughperkins/nn,bartvm/nn,jhjin/nn,EnjoyHacking/nn,clementfarabet/nn,GregSatre/nn,Moodstock...
4fad635aa45f4de4bb97f748f3d3cc23e23f9763
training/main.lua
training/main.lua
#!/usr/bin/env th require 'torch' require 'optim' require 'paths' require 'xlua' local opts = paths.dofile('opts.lua') opt = opts.parse(arg) print(opt) if opt.cuda then require 'cutorch' cutorch.setDevice(opt.device) end torch.save(paths.concat(opt.save, 'opts.t7'), opt, 'ascii') print('Saving everything t...
#!/usr/bin/env th require 'torch' require 'optim' require 'paths' require 'xlua' local opts = paths.dofile('opts.lua') opt = opts.parse(arg) print(opt) if opt.cuda then require 'cutorch' cutorch.setDevice(opt.device) end torch.save(paths.concat(opt.save, 'opts.t7'), opt, 'ascii') print('Saving everything t...
Fix testing
Fix testing
Lua
apache-2.0
Alexx-G/openface,Alexx-G/openface,nmabhi/Webface,cmusatyalab/openface,Alexx-G/openface,francisleunggie/openface,cmusatyalab/openface,xinfang/face-recognize,francisleunggie/openface,nmabhi/Webface,nmabhi/Webface,Alexx-G/openface,xinfang/face-recognize,cmusatyalab/openface,nmabhi/Webface,francisleunggie/openface,xinfang/...
4e6c7dc7f979a1dc4651170e614b98f03631a5d1
src/luacheck/cache.lua
src/luacheck/cache.lua
local serializer = require "luacheck.serializer" local utils = require "luacheck.utils" local cache = {} -- Cache file contains check results for n unique filenames. -- Cache file consists of 3n+2 lines, the first line is empty and the second is cache format version. -- The rest are contain file records, 3 lines per ...
local serializer = require "luacheck.serializer" local utils = require "luacheck.utils" local cache = {} -- Cache file contains check results for n unique filenames. -- Cache file consists of 3n+2 lines, the first line is empty and the second is cache format version. -- The rest are contain file records, 3 lines per ...
Fix potential error on cache loading with an error reading the second line
Fix potential error on cache loading with an error reading the second line tonumber expects a number as the second argument, therefore `tonumber(fh:read())` is unsafe.
Lua
mit
xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck
76568bbb02430dda6689a97edc3c079a7b954e67
tests/test-http-parse-error.lua
tests/test-http-parse-error.lua
--[[ Copyright 2012 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 2012 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 test-http-parse-error.lua to be a little more concise
fix test-http-parse-error.lua to be a little more concise * fixes the test on windows
Lua
apache-2.0
sousoux/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,luvit/luvit,kaustavha/luvit,rjeli/luvit,DBarney/luvit,boundary/luvit,bsn069/luvit,kaustavha/luvit,boundary/luvit,sousoux/luvit,rjeli/luvit,kaustavha/luvit,DBarney/luvit,DBarney/luvit,sousoux/luvit,zhaozg/luvit,DBarney/luvit,boundary/luvit,G...
ba62c8cc315beb8e9075b34397acb763c3d34950
nodemcu/webz/server.lua
nodemcu/webz/server.lua
redled = 1 whiteled = 2 gpio.mode(redled, gpio.OUTPUT) gpio.mode(whiteled, gpio.OUTPUT) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(client,request) local buf = ""; local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP"); i...
whiteled = 1 redled = 2 gpio.mode(whiteled, gpio.OUTPUT) gpio.mode(redled, gpio.OUTPUT) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(client,request) local buf = ""; local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP"); i...
fixed wrong avrable assignments for colors
fixed wrong avrable assignments for colors
Lua
mit
tuvokki/pistuff,tuvokki/pistuff,tuvokki/pistuff
bac92c34172ad70802d56487c368d4a4da69efc8
src/jet/daemon/radix.lua
src/jet/daemon/radix.lua
-- Implements a radix tree for the jet-daemon local pairs = pairs local next = next local tinsert = table.insert local tremove = table.remove local new = function() local j = {} -- the table that holds the radix_tree j.radix_tree = {} -- elments that can be filled by several functions -- and be return...
-- Implements a radix tree for the jet-daemon local pairs = pairs local next = next local tinsert = table.insert local tremove = table.remove local new = function() local j = {} -- the table that holds the radix_tree j.radix_tree = {} -- elments that can be filled by several functions -- and be return...
fixed nil error
fixed nil error
Lua
mit
lipp/lua-jet
71c404e39cbbf9f5970a3c2caa07bbda71c64f0f
plugins/botinteract.lua
plugins/botinteract.lua
local function callback_setbot(extra, success, result) if success == 0 then send_large_msg('chat#id' .. extra.chatid, lang_text('noUsernameFound')) send_large_msg('channel#id' .. extra.chatid, lang_text('noUsernameFound')) return end local hash = 'botinteract' redis:sadd(h...
local function callback_setbot(extra, success, result) if success == 0 then send_large_msg('chat#id' .. extra.chatid, lang_text('noUsernameFound')) send_large_msg('channel#id' .. extra.chatid, lang_text('noUsernameFound')) return end local hash = 'botinteract' redis:sadd(h...
fix missing pattern
fix missing pattern
Lua
agpl-3.0
xsolinsx/AISasha
8bc1c56f9ca20a052b22592149d66158330a3605
build/LLVM.lua
build/LLVM.lua
-- Setup the LLVM dependency directories LLVMRootDir = depsdir .. "/llvm/" local LLVMDirPerConfiguration = false local LLVMRootDirDebug = "" local LLVMRootDirRelease = "" require "scripts/LLVM" function SearchLLVM() LLVMRootDirDebug = basedir .. "/scripts/" .. get_llvm_package_name(nil, "Debug") LLVMRootDirRel...
-- Setup the LLVM dependency directories LLVMRootDir = depsdir .. "/llvm/" local LLVMDirPerConfiguration = false local LLVMRootDirDebug = "" local LLVMRootDirRelease = "" require "scripts/LLVM" function SearchLLVM() LLVMRootDirDebug = basedir .. "/scripts/" .. get_llvm_package_name(nil, "Debug") LLVMRootDirRel...
Fix linked libs for linux
Fix linked libs for linux Link `pthread` and `z` on linux as well. Link `tinfo` if `/usr/lib/libtinfo.so` file exists. This is required because despite explicitly disabling these libs in LLVM build config they still somehow get pulled in on some systems. `pthread` and `z` are standard components of every linux distrib...
Lua
mit
mono/CppSharp,mono/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,mono/CppSharp,ddobrev/CppSharp,mono/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,mono/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,ddobrev/CppSharp,mo...
849d2ccc07c4c2c3ee6ef5ed0cbc9e3936910526
BothForms-data.lua
BothForms-data.lua
--[[ This module holds datas for those Pokémon that has both Alt and Useless forms. When possible, takes datas from the other alternative forms modules. --]] local t = {} local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck: no unused local alt = require("Al...
--[[ This module holds datas for those Pokémon that has both Alt and Useless forms. When possible, takes datas from the other alternative forms modules. --]] local t = {} local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck: no unused local alt = require("Al...
fixup! Adding plain links to AltForms-data and PokémonData
fixup! Adding plain links to AltForms-data and PokémonData
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
dd9b87e8a04434138c33dea0c8d3f600e347bf38
love2d/ambientsound.lua
love2d/ambientsound.lua
require "mapGenerator" -- world map: lizGame.world.map.* -- THIS IS ONLY THE SOUND PRODUCED BY THE AMBIENT (TODO the ambient consists of everything that is on the normal world map right now) -- for sound produced by objects (e.g. the player or a door or an enemy) look at objectsound.lua (NYI) --[[ possible sound source...
require "mapGenerator" -- world map: lizGame.world.map.* -- THIS IS ONLY THE SOUND PRODUCED BY THE AMBIENT (TODO the ambient consists of everything that is on the normal world map right now) -- for sound produced by objects (e.g. the player or a door or an enemy) look at objectsound.lua (NYI) --[[ possible sound source...
fix for issue #8 is fixed now and all the comments in the sound file are disabled
fix for issue #8 is fixed now and all the comments in the sound file are disabled
Lua
mit
nczempin/lizard-journey
0120745cd6257b3c7b6b30075223b3a7956ad317
tests/lua/tests/gl.lua
tests/lua/tests/gl.lua
local gl = require 'engine.gl' local ffi = require 'ffi' local fileutil = require 'engine.fileutil' local render_test = nil local program, posAttrib = nil, nil function _render() gl.glUseProgram(program) gl.glVertexAttribPointer(posAttrib, 2, gl.GL_FLOAT, gl.GL_FALSE, 0, nil) gl.glEnable...
local gl = require 'engine.gl' local ffi = require 'ffi' local fileutil = require 'engine.fileutil' local render_test = nil local program, posAttrib = nil, nil function _render() gl.glUseProgram(program) gl.glDrawArrays(gl.GL_TRIANGLES, 0, 3) end function _init() local vertexSource = [[...
Fix wrong vao and vbo number
Fix wrong vao and vbo number
Lua
mit
lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot
ee7837873f27e30d65de8cae113e302eb454b106
premake4.lua
premake4.lua
#!lua -- clang || gcc -- compiler = "clang" if not _OPTIONS["compiler"] then _OPTIONS["compiler"] = "gcc" end if _OPTIONS["compiler"] == "clang" then print("clang") toolset = "clang" else if os.execute("gcc-6 -v") == 0 then print("gcc") premake.gcc.cc = 'gcc-6' premake.gcc.cxx = 'g++-6' else ...
#!lua -- clang || gcc -- compiler = "clang" if not _OPTIONS["compiler"] then _OPTIONS["compiler"] = "gcc" end if _OPTIONS["compiler"] == "clang" then toolset = "clang" else if os.execute("gcc-6 -v") == 0 then premake.gcc.cc = 'gcc-6' premake.gcc.cxx = 'g++-6' else error("gcc version 6 required....
Minor premake fix
Minor premake fix
Lua
mit
hyrise/hyrise,hyrise/hyrise,hyrise/hyrise
6c1d04b7cab2cbbcddeb3f5da4bfd78e97cb0445
cache.lua
cache.lua
local cache = {} local _cache = {} local CACHE_PATH = love.filesystem.getSaveDirectory().."/cache" -- cache format -- TS\tFLAGS\tPATH\n function cache.load() LOG.INFO("Loading cache...") for line in io.lines(CACHE_PATH) do local ts,flags,path = line:match("(%d+)\t(%w*)\t(.*)") _cache[path] = { ts = tonumb...
local cache = {} local _cache = {} local CACHE_PATH = love.filesystem.getSaveDirectory().."/cache" -- cache format -- TS\tFLAGS\tPATH\n function cache.load() LOG.INFO("Loading cache...") for line in io.lines(CACHE_PATH) do local ts,flags,path = line:match("(%d+)\t(%w*)\t(.*)") _cache[path] = { ts = tonumb...
Remove cache before renaming new one into place to work around weird bug on windows. NOT SAFE. DO NOT KEEP.
Remove cache before renaming new one into place to work around weird bug on windows. NOT SAFE. DO NOT KEEP.
Lua
mit
ToxicFrog/EmuFun
292be5786a83f8f975d55ad7320c8b955e678430
src/plugins/lua/mid.lua
src/plugins/lua/mid.lua
--[[ Copyright (c) 2016, Alexander Moisseev <moiseev@mezonplus.ru> 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 ...
--[[ Copyright (c) 2016, Alexander Moisseev <moiseev@mezonplus.ru> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
[Fix] mid: handle incorrect rgexps in the map
[Fix] mid: handle incorrect rgexps in the map
Lua
bsd-2-clause
AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd
888a2ee3262a838967970f47c5901e5c1460eb04
src/commands/exec.lua
src/commands/exec.lua
local utils = require("utils") local exec = { func = function(msg) if msg.from.username == config.master then local t = {pcall(load(string.match(msg.text, "/exec(.*)")))} local ts = string.format("[status] %s\n", tostring(t[1])) for i = 2, #t do ts = ts ....
local utils = require("utils") local exec = { func = function(msg) if msg.from.username == config.master then local t = {pcall(load(string.match(msg.text, "/exec(.*)")))} local ts = string.format("[status] %s\n", tostring(t[1])) for i = 2, #t do ts = ts ....
fix: no utils in sandbox
fix: no utils in sandbox
Lua
apache-2.0
SJoshua/Project-Small-R
9f7187804f03d027a75b1052a264135772bfb64b
lor/lib/request.lua
lor/lib/request.lua
local error = error local pairs = pairs local setmetatable = setmetatable local Request = {} -- new request: init args/params/body etc from http request function Request:new() ngx.req.read_body() local body = {} -- body params for k,v in pairs(ngx.req.get_post_args()) do body[k] = v end ...
local error = error local pairs = pairs local setmetatable = setmetatable local Request = {} -- new request: init args/params/body etc from http request function Request:new() ngx.req.read_body() local body = {} -- body params local post_args = ngx.req.get_post_args() if post_args and type(post_arg...
fixbug: request body init
fixbug: request body init
Lua
mit
269724033/lor,ms2008/lor,sumory/lor
1bc5615d55ae05df270fae3793053805a3efc16c
levent/socket.lua
levent/socket.lua
--[[ -- author: xjdrew -- date: 2014-07-17 --]] local c = require "levent.socket.c" local errno = require "levent.errno.c" local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local closed_socket = setmetatable({}, {__index = function(t, key) ...
--[[ -- author: xjdrew -- date: 2014-07-17 --]] local c = require "levent.socket.c" local errno = require "levent.errno.c" local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local closed_socket = setmetatable({}, {__index = function(t, key) ...
bugfix: bad argument #1 to 'func' (socket_metatable expected, got table)
bugfix: bad argument #1 to 'func' (socket_metatable expected, got table)
Lua
mit
xjdrew/levent
01eb2e89b6177dc37496cff04a3dba8d0526055d
mod_mam/rsm.lib.lua
mod_mam/rsm.lib.lua
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
mod_mam/rsm.lib: Fix serialization of before = true
mod_mam/rsm.lib: Fix serialization of before = true
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
e2542e5d7174100924e2e453bd29fb422e83e8f9
layout-a4.lua
layout-a4.lua
local class = SILE.documentState.documentClass class:declareFrame("content", { left = "32mm", right = "100%pw-32mm", top = "36mm", bottom = "top(footnotes)" }) class:declareFrame("runningHead", { left = "left(content)", right = "right(content)", top = "top(content)-12mm", bottom = "top(content)-2mm" }) class:declareFra...
local class = SILE.documentState.documentClass class:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = { left = "32mm", right = "100%pw-32mm", top = "bottom(runningHead)+4mm", bottom = "top(footnotes)-4mm" }, runningHead = { ...
Fix frames layout to 'undo' masters layouts
Fix frames layout to 'undo' masters layouts Even though _this_ layout isn't a dual sided masters, this is the exception and our class has already loaded that stuff up. Unless we port the class to not be based on book, we need to undo the masters layout stuff rather that just setting up the single page template.
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
7cd5b23ff4048c7fd1bf44a299369325669bcfcf
src/pcap.lua
src/pcap.lua
-- pcap.lua -- simple pcap file export -- Copyright 2012 Snabb GmbH. See the file LICENSE. module(...,package.seeall) local ffi = require("ffi") local c = require("c") -- PCAP file format: http://wiki.wireshark.org/Development/LibpcapFileFormat/ ffi.cdef[[ struct pcap_file { /* file header */ uint32_t magi...
-- pcap.lua -- simple pcap file export -- Copyright 2012 Snabb GmbH. See the file LICENSE. module(...,package.seeall) local ffi = require("ffi") -- PCAP file format: http://wiki.wireshark.org/Development/LibpcapFileFormat/ ffi.cdef[[ struct pcap_file { /* file header */ uint32_t magic_number; /* magic numb...
pcap.lua: Minor fixes.
pcap.lua: Minor fixes.
Lua
apache-2.0
dpino/snabbswitch,kellabyte/snabbswitch,SnabbCo/snabbswitch,lukego/snabb,plajjan/snabbswitch,hb9cwp/snabbswitch,snabbco/snabb,xdel/snabbswitch,alexandergall/snabbswitch,SnabbCo/snabbswitch,andywingo/snabbswitch,Igalia/snabbswitch,eugeneia/snabbswitch,kellabyte/snabbswitch,lukego/snabbswitch,mixflowtech/logsensor,plajja...
8e8d81d27c35ce966b22bf819faeae0bb7982eca
src/pegasus/handler.lua
src/pegasus/handler.lua
local Request = require 'pegasus.request' local Response = require 'pegasus.response' local mimetypes = require 'mimetypes' local lfs = require 'lfs' local Handler = {} Handler.__index = Handler function Handler:new(callback, location, plugins) local handler = {} handler.callback = callback handler.location = l...
local Request = require 'pegasus.request' local Response = require 'pegasus.response' local mimetypes = require 'mimetypes' local lfs = require 'lfs' local function ternary(condition, t, f) if condition then return t else return f end end local Handler = {} Handler.__index = Handler function Handler:new(callback, ...
fix issue in processRequest method
fix issue in processRequest method
Lua
mit
EvandroLG/pegasus.lua
32713a3dcb7ee5850eadf6183f73fdac815931a1
config/nvim/lua/settings/gitsigns.lua
config/nvim/lua/settings/gitsigns.lua
require("gitsigns").setup { signs = { add = {hl = "GitSignsAdd", text = "│", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn"}, change = {hl = "GitSignsChange", text = "│", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn"}, delete = {hl = "GitSignsDelete", text = "_", numhl = "GitSignsDeleteNr", l...
require("gitsigns").setup { signs = { add = {hl = "GitSignsAdd", text = "│", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn"}, change = {hl = "GitSignsChange", text = "│", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn"}, delete = {hl = "GitSignsDelete", text = "_", numhl = "GitSignsDeleteNr", l...
fix(vim): remove deprecated gitsigns opts
fix(vim): remove deprecated gitsigns opts
Lua
mit
nicknisi/dotfiles,nicknisi/dotfiles,nicknisi/dotfiles
ba7c37d212db8a466f13e9e896f37d61f898ead2
base/explosion.lua
base/explosion.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 typo
fix typo
Lua
agpl-3.0
vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content
1bbe5c99b40fb66e436d34b892fead702d4b8923
src/lua/sancus/web/dispatcher.lua
src/lua/sancus/web/dispatcher.lua
-- local utils = require"sancus.utils" local object = require"sancus.object" local urltemplate = require"sancus.web.urltemplate" -- -- local function wsapi_logger(env, status, message) local h = env.headers local script_name = h["SCRIPT_NAME"] local path_info = h["PATH_INFO"] local method = h["REQUEST_METHOD"] l...
-- local utils = require"sancus.utils" local object = require"sancus.object" local urltemplate = require"sancus.web.urltemplate" -- -- local function wsapi_logger(env, status, message) local h = env.headers local script_name = h["SCRIPT_NAME"] local path_info = h["PATH_INFO"] local method = h["REQUEST_METHOD"] l...
sancus.web.dispatcher: clean wsapi_logger() by using utils.stderr_prefixed_lines()
sancus.web.dispatcher: clean wsapi_logger() by using utils.stderr_prefixed_lines()
Lua
bsd-2-clause
sancus-project/sancus-lua-web
656bf612346c79d0f15be1762de2bc264d80e0d5
loot.lua
loot.lua
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local pattern_cache = {} local function deformat(str, format) local pattern = pattern_cache[format] if not pattern then -- print(string.format("Format: %s", format)) -- Escape special c...
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local pattern_cache = {} local function deformat(str, format) local pattern = pattern_cache[format] if not pattern then -- print(string.format("Format: %s", format)) -- Escape special c...
Do not check non-existing variables to ignore loot events. This fixes issue 326.
Do not check non-existing variables to ignore loot events. This fixes issue 326.
Lua
bsd-3-clause
hayword/tfatf_epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded
0fc705c1ccd5cbea6256238bc613eaa97afbf4b9
src/nodes/baseball.lua
src/nodes/baseball.lua
local anim8 = require 'vendor/anim8' local Helper = require 'helper' local Baseball = {} Baseball.__index = Baseball Baseball.baseball = true local BaseballImage = love.graphics.newImage('images/baseball.png') local g = anim8.newGrid(9, 9, BaseballImage:getWidth(), BaseballImage:getHeight()) local game = {} game.ste...
local anim8 = require 'vendor/anim8' local Helper = require 'helper' local window = require 'window' local Baseball = {} Baseball.__index = Baseball Baseball.baseball = true local BaseballImage = love.graphics.newImage('images/baseball.png') local g = anim8.newGrid(9, 9, BaseballImage:getWidth(), BaseballImage:getHei...
Bugfixes for baseball
Bugfixes for baseball
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
2db471328e60378ae602cd745ec76697c13900f0
onmt/modules/WordEmbedding.lua
onmt/modules/WordEmbedding.lua
--[[ nn unit. Maps from word ids to embeddings. Slim wrapper around nn.LookupTable to allow fixed and pretrained embeddings. --]] local WordEmbedding, parent = torch.class('onmt.WordEmbedding', 'onmt.Network') --[[ Parameters: * `vocabSize` - size of the vocabulary * `vecSize` - size of the embedding * `preTrai...
--[[ nn unit. Maps from word ids to embeddings. Slim wrapper around nn.LookupTable to allow fixed and pretrained embeddings. --]] local WordEmbedding, parent = torch.class('onmt.WordEmbedding', 'onmt.Network') --[[ Parameters: * `vocabSize` - size of the vocabulary * `vecSize` - size of the embedding * `preTrai...
Fix fixed word embeddings condition
Fix fixed word embeddings condition
Lua
mit
da03/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/Op...
5279b8b4622cc2fe87b1596b879c04f79b3161bc
zpm.lua
zpm.lua
local zefiros = require( "Zefiros-Software/Zefiros-Defaults", "@head" ) function useCore() zpm.uses { "Zefiros-Software/MathLib", "Zefiros-Software/Boost", "Zefiros-Software/Date", "Zefiros-Software/Fmt" } end workspace "CoreLib" flags "C++14" pic "On" ...
local zefiros = require( "Zefiros-Software/Zefiros-Defaults", "@head" ) function useCore() zpm.uses { "Zefiros-Software/MathLib", "Zefiros-Software/Boost", "Zefiros-Software/Date", "Zefiros-Software/Fmt" } end workspace "CoreLib" flags "C++14" pic "On" ...
fixed link options of the debug build
fixed link options of the debug build
Lua
mit
Zefiros-Software/CoreLib,Zefiros-Software/CoreLib
bef58703aaedf24f1e1e7b5a9b0343b0d2dbaf49
kong/plugins/mashape-analytics/handler.lua
kong/plugins/mashape-analytics/handler.lua
-- Analytics plugin handler. -- -- How it works: -- Keep track of calls made to configured APIs on a per-worker basis, using the ALF format -- (alf_serializer.lua) and per-API buffers. `:access()` and `:body_filter()` are implemented to record some properties -- required for the ALF entry. -- -- When an API buffer is f...
-- Analytics plugin handler. -- -- How it works: -- Keep track of calls made to configured APIs on a per-worker basis, using the ALF format -- (alf_serializer.lua) and per-API buffers. `:access()` and `:body_filter()` are implemented to record some properties -- required for the ALF entry. -- -- When an API buffer is f...
hotfix(alf_serializer) do not include JSON body in params
hotfix(alf_serializer) do not include JSON body in params JSON bodies need to be present in the text field but not included in `postData.params`. This also avoids reading the request body if not configured so in the plugin. Sadly there is no unit test for this part of the ALF serializer. Fix #762
Lua
apache-2.0
shiprabehera/kong,icyxp/kong,Mashape/kong,Kong/kong,li-wl/kong,ajayk/kong,akh00/kong,Kong/kong,jerizm/kong,salazar/kong,xvaara/kong,beauli/kong,Vermeille/kong,smanolache/kong,jebenexer/kong,ccyphers/kong,Kong/kong
a0e60fb86af953a15b7022f53f3d9ccbf7427cc7
nonsence/deque.lua
nonsence/deque.lua
--[[ Double ended queue for Lua Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.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 limitat...
--[[ Nonsence Async HTTP client example Copyright 2013 John Abrahamsen Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law...
Fixed bug and added size in object.
Fixed bug and added size in object.
Lua
apache-2.0
mniestroj/turbo,YuanPeir-Chen/turbo-support-mipsel,zcsteele/turbo,luastoned/turbo,luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel,ddysher/turbo,zcsteele/turbo,ddysher/turbo,kernelsauce/turbo
88178c25d759a063db074762732f730dc8addad6
xmake.lua
xmake.lua
set_project("UBWindow") if is_mode("debug") then set_symbols("debug") set_optimize("none") end if is_mode("release") then set_symbols("hidden") set_optimize("fastest") set_strip("all") end add_includedirs("include") target("ubwindow") set_kind("static") set_targetdir("lib") add_includedirs("src") add_f...
set_project("UBWindow") if is_mode("debug") then add_defines("DEBUG") set_symbols("debug") set_optimize("none") end if is_mode("release") then add_defines("NDEBUG") set_symbols("hidden") set_optimize("fastest") set_strip("all") end add_includedirs("include") target("ubwindow") set_kind("static") set_targ...
Fixed xmake.lua
Fixed xmake.lua
Lua
mit
yulon/pwre
e6305ef83d305fe12317939a6b4f6fb2d46a477b
exploding-trees_0.0.1/control.lua
exploding-trees_0.0.1/control.lua
local random = math.random -- Explosions = { "explosion", "explosion-hit", "ground-explosion", "massive-explosion", "medium-explosion", "nuke-explosion", "crash-site-explosion-smoke" local exploding_trees = { ["tree-01"] = true, ["tree-02"] = true, ["tree-03"] = true, ["tree-04"] = true, ["tree-05"] = true, ["t...
local random = math.random -- Explosions = { -- "explosion", "explosion-hit", "ground-explosion", "massive-explosion", -- "medium-explosion", "nuke-explosion", "crash-site-explosion-smoke" -- } local exploding_trees = { ["tree-01"] = true, ["tree-02"] = true, ["tree-03"] = true, ["tree-04"] = true, ["tree-05"] =...
Fix Exploding Trees warnings
Fix Exploding Trees warnings We don't want things other than trees to explode, after all
Lua
mit
Zomis/FactorioMods
dfda42b8153b33aadbc7279ef929b3ab6133d5ed
plugins/database.lua
plugins/database.lua
local function callback_group_database(extra, success, result) local database = extra.database local chat_id = result.peer_id -- save group info if database["groups"][tostring(chat_id)] then database["groups"][tostring(chat_id)] = { print_name = result.print_name:gsub("_"," "...
local function callback_group_database(extra, success, result) local database = extra.database local chat_id = result.peer_id -- save group info if database["groups"][tostring(chat_id)] then database["groups"][tostring(chat_id)] = { print_name = result.print_name:gsub("_"," "...
fix database
fix database
Lua
agpl-3.0
xsolinsx/AISasha
7ec10d155d12bc118e0b57a017299b88ef5a583d
generate/lua/ParseDescription.lua
generate/lua/ParseDescription.lua
--[[ ParseDescription ( file ) Retrieves descriptions for a class from a given markdown dile. The file is divided into sections, delimited by level-1 headers. The following header names are detected (case-insensitive): - summary: A short and simple description of the class. - details: A long description of the class...
--[[ ParseDescription ( file ) Retrieves descriptions for a class from a given markdown dile. The file is divided into sections, delimited by level-1 headers. The following header names are detected (case-insensitive): - summary: A short and simple description of the class. - details: A long description of the class...
fixed missing dependencies
fixed missing dependencies
Lua
unlicense
Anaminus/roblox-api-ref,Anaminus/roblox-api-ref
185fc8f1a4c1b3754ff877c2b4a3a7e73da2c096
src_trunk/resources/anticheat-system/c_anticheat.lua
src_trunk/resources/anticheat-system/c_anticheat.lua
local cooldown = false local localPlayer = getLocalPlayer() function checkSpeedHacks() local vehicle = getPedOccupiedVehicle(localPlayer) if (vehicle) and not (cooldown) then local speedx, speedy, speedz = getElementVelocity(vehicle) local actualspeed = math.ceil(((speedx^2 + speedy^2 + speedz^2)^(0....
local cooldown = false local localPlayer = getLocalPlayer() function checkSpeedHacks() local vehicle = getPedOccupiedVehicle(localPlayer) if (vehicle) and not (cooldown) then local speedx, speedy, speedz = getElementVelocity(vehicle) local actualspeed = math.ceil(((speedx^2 + speedy^2 + speedz^2)^(0....
ac fix
ac fix git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1271 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
c676980f8b16415504fced711d1a36547317f124
src/apps/pcap/tap.lua
src/apps/pcap/tap.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local ffi = require("ffi") local app = require("core.app") local lib = require("core.lib") local link = require("core.link") local pcap = require("lib.pcap.pcap") local pf = require("pf") Tap = {} local tap_...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local ffi = require("ffi") local app = require("core.app") local lib = require("core.lib") local link = require("core.link") local pcap = require("lib.pcap.pcap") local pf = require("pf") Tap = {} local tap_...
apps.pcap.tap: fix selftest
apps.pcap.tap: fix selftest
Lua
apache-2.0
snabbco/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb
3048eed2aaaf3595d7e22ac792a41f60214a8b87
lualib/skynet/cluster.lua
lualib/skynet/cluster.lua
local skynet = require "skynet" local clusterd local cluster = {} local sender = {} local function get_sender(t, node) local c = skynet.call(clusterd, "lua", "sender", node) t[node] = c return c end setmetatable(sender, { __index = get_sender } ) function cluster.call(node, address, ...) -- skynet.pack(...) wil...
local skynet = require "skynet" local clusterd local cluster = {} local sender = {} local task_queue = {} local function request_sender(q, node) local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node) if not ok then skynet.error(c) c = nil end -- run tasks in queue local confirm = coroutine.running...
try to fix #988
try to fix #988
Lua
mit
xjdrew/skynet,sanikoyes/skynet,xcjmine/skynet,ag6ag/skynet,bigrpg/skynet,cloudwu/skynet,wangyi0226/skynet,icetoggle/skynet,wangyi0226/skynet,wangyi0226/skynet,korialuo/skynet,jxlczjp77/skynet,JiessieDawn/skynet,cloudwu/skynet,JiessieDawn/skynet,JiessieDawn/skynet,hongling0/skynet,cloudwu/skynet,icetoggle/skynet,honglin...
8216a7548560ec6e17048a53abeca94e6f7fe0b2
net/xmppserver_listener.lua
net/xmppserver_listener.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "l...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "l...
xmppserver_listener: Fix typo (thanks Jorj)
xmppserver_listener: Fix typo (thanks Jorj)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2ff0784f882f5d666c0a9c6502fb34765b8f66ba
entities/ui/wheel.lua
entities/ui/wheel.lua
local Wheel = Class('Wheel') function Wheel:initialize(parent, props) self.parent = parent self.radius = 90 self.inactiveColor = {255, 255, 255} self.pressColor = {127, 127, 127} self.position = Vector(0, 0) self.angle = 0 self.onClicked = function(rotDir) end for k, prop in pairs(prop...
local Wheel = Class('Wheel') function Wheel:initialize(parent, props) self.parent = parent self.radius = 90 self.inactiveColor = {255, 255, 255} self.pressColor = {127, 127, 127} self.position = Vector(0, 0) self.angle = 0 self.onClicked = function(rotDir) end for k, prop in pairs(prop...
fixed crash from moving the wheel with mouse
fixed crash from moving the wheel with mouse
Lua
mit
Nuthen/ludum-dare-39
db34128b952504c0830e47b6a1c3a432378590b8
src/xenia/gpu/vulkan/premake5.lua
src/xenia/gpu/vulkan/premake5.lua
project_root = "../../../.." include(project_root.."/tools/build") group("src") project("xenia-gpu-vulkan") uuid("717590b4-f579-4162-8f23-0624e87d6cca") kind("StaticLib") language("C++") links({ "vulkan-loader", "xenia-base", "xenia-gpu", "xenia-ui", "xenia-ui-spirv", "xenia-ui-vulkan",...
project_root = "../../../.." include(project_root.."/tools/build") group("src") project("xenia-gpu-vulkan") uuid("717590b4-f579-4162-8f23-0624e87d6cca") kind("StaticLib") language("C++") links({ "vulkan-loader", "xenia-base", "xenia-gpu", "xenia-ui", "xenia-ui-spirv", "xenia-ui-vulkan",...
Fix linux build of the vulkan trace dumper
Fix linux build of the vulkan trace dumper
Lua
bsd-3-clause
sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia
5675e2156ce1ed930817bbd1d114fa7c53404b9a
LuaAndCparticipants.lua
LuaAndCparticipants.lua
-- http://kodomo.fbb.msu.ru/wiki/Main/LuaAndC/Participants local participants = { {'Александра Галицина', 'agalicina', 'agalitsyna', }, {'Анна Колупаева', 'kolupaeva', 'AnyaKol', }, {'Александра Бойко', 'boyko.s', 'boykos', }, {'Андрей Сигорских', 'crescent8547', 'CarolusRex8547', }, {'Иван Русинов...
-- http://kodomo.fbb.msu.ru/wiki/Main/LuaAndC/Participants local participants = { {'Александра Галицина', 'agalicina', 'agalitsyna', }, {'Анна Колупаева', 'kolupaeva', 'AnyaKol', }, {'Александра Бойко', 'boyko.s', 'boykos', }, {'Андрей Сигорских', 'crescent8547', 'CarolusRex8547', }, {'Иван Русинов...
fix project URL & name (GlobinDetector-2015)
fix project URL & name (GlobinDetector-2015)
Lua
mit
LuaAndC/LuaAndC,hbucius/LuaAndC
27cccd8d89271e9ba59c1e95560f567b20d67f43
deps/base64.lua
deps/base64.lua
--[[lit-meta name = "creationix/base64" description = "A pure lua implemention of base64 using bitop" tags = {"crypto", "base64", "bitop"} version = "1.0.0" license = "MIT" author = { name = "Tim Caswell" } ]] local bit = require 'bit' local rshift = bit.rshift local lshift = bit.lshift local bor = bit.bor...
--[[lit-meta name = "creationix/base64" description = "A pure lua implemention of base64 using bitop" tags = {"crypto", "base64", "bitop"} version = "1.0.1" license = "MIT" author = { name = "Tim Caswell" } ]] local bit = require 'bit' local rshift = bit.rshift local lshift = bit.lshift local bor = bit.bor...
Fix typo in base64 library
Fix typo in base64 library
Lua
apache-2.0
luvit/lit,james2doyle/lit,squeek502/lit,zhaozg/lit
97511074b234ab00594507d1bf339c56f7787e9a
OS/DiskOS/Editors/sfx.lua
OS/DiskOS/Editors/sfx.lua
--SFX Editor local sfxobj = require("Libraries.sfx") --The sfx object local eapi = select(1,...) --The editors api local sw, sh = screenSize() --The screensize local volColors = {1,2,13,6,12,14,15,7} local se = {} --sfx editor local sfxSlots = 64 --The amount of sfx slots local sfxNotes = 32 --The number of notes ...
--SFX Editor local sfxobj = require("Libraries.sfx") --The sfx object local eapi = select(1,...) --The editors api local sw, sh = screenSize() --The screensize local volColors = {1,2,13,6,12,14,15,7} local se = {} --sfx editor local sfxSlots = 64 --The amount of sfx slots local sfxNotes = 32 --The number of notes ...
Bugfix
Bugfix Former-commit-id: 378f4359e983cbad222aa92db6bf9b67385190f9
Lua
mit
RamiLego4Game/LIKO-12
acf3d9bbd6e09254116383e899e06e126c4cebeb
item/id_258_flail.lua
item/id_258_flail.lua
-- Dreschflegel ( 258 ) -- Getreidebndel --> Getreidekrner -- UPDATE common SET com_script='item.id_258_flail' WHERE com_itemid IN (258); require("item.general.wood") require("base.common") require("content.gathering") module("item.id_258_flail", package.seeall, package.seeall(item.general.wood)) function UseItem...
-- Dreschflegel ( 258 ) -- Getreidebndel --> Getreidekrner -- UPDATE common SET com_script='item.id_258_flail' WHERE com_itemid IN (258); require("item.general.wood") require("base.common") require("content.gathering") module("item.id_258_flail", package.seeall, package.seeall(item.general.wood)) function UseItem...
fix flailing
fix flailing
Lua
agpl-3.0
KayMD/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content
2935d85c0f43bc4abe6b92f90970b0b1ee873366
tools/premake/app_template.lua
tools/premake/app_template.lua
local function add_pmtech_links() configuration "Debug" links { "put", "pen" } configuration "Release" links { "put", "pen" } configuration {} end local function copy_shared_libs() configuration "Debug" postbuildcommands { ("{COPY} " .. shared_libs_dir .. " %{cfg.targetdir}") } configuration ...
local function add_pmtech_links() configuration "Debug" links { "put", "pen" } configuration "Release" links { "put", "pen" } configuration {} end local function copy_shared_libs() configuration "Debug" postbuildcommands { ("{COPY} " .. shared_libs_dir .. " %{cfg.targetdir}") } configuration ...
- fix bullet lib dir
- fix bullet lib dir
Lua
mit
polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech
afa1f31486a2f0ed18c900c30bf29698f55ad12a
spec/pomelo_spec.lua
spec/pomelo_spec.lua
require('busted.runner')() local sleep = require('system').sleep local pomelo = require('pomelo') describe('pomelo', function() describe('.configure()', function() it('configure library without args', function() --pomelo.configure() end) it('configure library with options', function() pomelo...
require('busted.runner')() local sleep = require('system').sleep local pomelo = require('pomelo') describe('pomelo', function() describe('.configure()', function() it('configure library without args', function() --pomelo.configure() end) it('configure library with options', function() pomelo...
Fixes and add more tests.
Fixes and add more tests.
Lua
mit
xpol/lua-pomelo
0060125b03ceb5c31d57a4bed4cadeaf98140785
src/FileManager.lua
src/FileManager.lua
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
Fix #3 - Only use the end of a filename as an extension.
Fix #3 - Only use the end of a filename as an extension. We simply reverse the filename and find the first full stop from behind. Since we can assume this to be the file's extension, we cut it off and re-reverse it.
Lua
mit
rm-code/logivi
e27e98705619b45b32d026f64b80562442e97378
build/scripts/Torque6.lua
build/scripts/Torque6.lua
project "Torque6" targetname "Torque6" language "C++" kind "SharedLib" includedirs { "../../engine/lib/assimp/include", "../../engine/lib/bgfx/include", "../../engine/lib/bgfx/3rdparty", "../../engine/lib/bgfx/common", "../...
project "Torque6" targetname "Torque6" language "C++" kind "SharedLib" includedirs { "../../engine/lib/assimp/include", "../../engine/lib/bgfx/include", "../../engine/lib/bgfx/3rdparty", "../../engine/lib/bgfx/common", "../...
Fix windows builds from previous commit.
Fix windows builds from previous commit.
Lua
mit
lukaspj/Torque6,ktotheoz/Torque6,andr3wmac/Torque6,andr3wmac/Torque6,ktotheoz/Torque6,lukaspj/Torque6,JeffProgrammer/Torque6,ktotheoz/Torque6,ktotheoz/Torque6,RichardRanft/Torque6,RichardRanft/Torque6,RichardRanft/Torque6,lukaspj/Torque6,andr3wmac/Torque6,ktotheoz/Torque6,RichardRanft/Torque6,RichardRanft/Torque6,JeffP...
8795bbfb1709c532d7827301a5124275a8c373f0
loadcaffe_wrapper.lua
loadcaffe_wrapper.lua
local ffi = require 'ffi' require 'loadcaffe' local C = loadcaffe.C --[[ Most of this function is copied from https://github.com/szagoruyko/loadcaffe/blob/master/loadcaffe.lua with some horrible horrible hacks added by Justin Johnson to make it possible to load VGG-19 without any CUDA dependency. --]] local fu...
local ffi = require 'ffi' require 'loadcaffe' local C = loadcaffe.C --[[ Most of this function is copied from https://github.com/szagoruyko/loadcaffe/blob/master/loadcaffe.lua with some horrible horrible hacks added by Justin Johnson to make it possible to load VGG-19 without any CUDA dependency. --]] local fu...
fix loadcaffe_wrapper to work again in CPU mode
fix loadcaffe_wrapper to work again in CPU mode
Lua
mit
neilpanchal/neural-style,PaniniGelato/neural-style,zerolocker/neural-style,jcjohnson/neural-style,napsternxg/neural-style,VaKonS/neural-style,ksemianov/neural-style,shenyunhang/neural-style,n1ckfg/neural-style,waythe/neural-style,zerolocker/neural-style
2abf3edb10320fe9353b43620137536ab51eb315
core/hyphenator-liang.lua
core/hyphenator-liang.lua
local function addPattern(h, p) local t = h.trie; bits = SU.splitUtf8(p) for i = 1,#bits do char = bits[i] if not char:find("%d") then if not(t[char]) then t[char] = {} end t = t[char] end end t["_"] = {}; local lastWasDigit = 0 for i = 1,#bits do char = bits[i] if char:find("%d") ...
local function addPattern(h, p) local t = h.trie; bits = SU.splitUtf8(p) for i = 1,#bits do char = bits[i] if not char:find("%d") then if not(t[char]) then t[char] = {} end t = t[char] end end t["_"] = {}; local lastWasDigit = 0 for i = 1,#bits do char = bits[i] if char:find("%d") ...
Use Unicode aware function when splitting string
Use Unicode aware function when splitting string Fixes #346
Lua
mit
simoncozens/sile,neofob/sile,alerque/sile,neofob/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile,neofob/sile
d6a4d7103e42e54671ee603f497f3027ed62fae1
mods/mobs_mc/wolf.lua
mods/mobs_mc/wolf.lua
--MCmobs v0.2 --maikerumine --made for MC like Survival game --License for code WTFPL and otherwise stated in readmes --dofile(minetest.get_modpath("mobs").."/api.lua") --################### --################### WOLF --################### --[[ mobs:register_mob("mobs_mc:33wolf", { type = "animal", passive = true,...
--MCmobs v0.4 --maikerumine --made for MC like Survival game --License for code WTFPL and otherwise stated in readmes --dofile(minetest.get_modpath("mobs").."/api.lua") --################### --################### WOLF --################### --[[ mobs:register_mob("mobs_mc:33wolf", { type = "animal", passive = true,...
fix size
fix size
Lua
lgpl-2.1
maikerumine/grieftest
3fa18d019a2b8ac34cbd6483e62e6f76c9aa7c62
src/lua/lluv/poll_zmq.lua
src/lua/lluv/poll_zmq.lua
local uv = require "lluv" local ut = require "lluv.utils" -- This allows do not load zmq library -- and we can use only OO interface of socket object local ZMQ_POLLIN = 1 local uv_poll_zmq = ut.class() do function uv_poll_zmq:__init(s) self._s = s self._h = uv.poll_socket(s:fd()) return self end local funct...
local uv = require "lluv" local ut = require "lluv.utils" -- This allows do not load zmq library -- and we can use only OO interface of socket object local ZMQ_POLLIN = 1 local uv_poll_zmq = ut.class() do function uv_poll_zmq:__init(s) self._s = s self._h = uv.poll_socket(s:fd()) return self end local funct...
Fix. Allow restart poll from callback with different poll cb
Fix. Allow restart poll from callback with different poll cb ```Lua poller:start(function() poller:start(function() end) end) ```
Lua
mit
moteus/lua-lluv-poll-zmq
0a711097eddab99648e2f5f360619b6452a5e397
packages/verbatim.lua
packages/verbatim.lua
SILE.registerCommand("verbatim:font", function(options, content) SILE.settings.set("font.family", "Monaco") SILE.settings.set("font.size", SILE.settings.get("font.size") - 3) end, "The font chosen for the verbatim environment") SILE.registerCommand("verbatim", function(options, content) SILE.typesetter:pushV...
SILE.registerCommand("verbatim:font", function(options, content) SILE.settings.set("font.family", "Monaco") SILE.settings.set("font.size", SILE.settings.get("font.size") - 3) end, "The font chosen for the verbatim environment") SILE.registerCommand("verbatim", function(options, content) SILE.typesetter:pushV...
Fixes #132.
Fixes #132.
Lua
mit
neofob/sile,anthrotype/sile,simoncozens/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,neofob/sile,anthrotype/sile,neofob/sile,alerque/sile,anthrotype/sile,simoncozens/sile,anthrotype/sile,alerque/sile
3629e97d1a293ea0b3db39188b61e4c8691a70ec
init.lua
init.lua
local init = {} function init.getfiles() print("initializing files...") local repo = nil for line in io.lines(os.getenv("PWD") .. "/init.files") do if repo == nil then repo = line print("repo " .. repo) else print("getting " .. line) os.execute("wget -f https://raw.githubusercont...
local init = {} local shell = require("shell") function init.getfiles() print("initializing files...") local repo = nil for line in io.lines(os.getenv("PWD") .. "/init.files") do if repo == nil then repo = line print("repo " .. repo) else print("getting " .. line) os.execute("wge...
fixes init
fixes init
Lua
apache-2.0
InfinitiesLoop/oclib
8fb1c174847eb4502c429145e3317230051070e4
json.lua
json.lua
--source --http://www.computercraft.info/forums2/index.php?/topic/5854-json-api-v201-for-computercraft/ -------------------------------------------------------------------- utils local controls = {["\n"]="\\n", ["\r"]="\\r", ["\t"]="\\t", ["\b"]="\\b", ["\f"]="\\f", ["\""]="\\\"", ["\\"]="\\\\"} local function isArra...
--source --http://www.computercraft.info/forums2/index.php?/topic/5854-json-api-v201-for-computercraft/ -------------------------------------------------------------------- utils local controls = {["\n"]="\\n", ["\r"]="\\r", ["\t"]="\\t", ["\b"]="\\b", ["\f"]="\\f", ["\""]="\\\"", ["\\"]="\\\\"} local function isArra...
Fix still broken json parsing
Fix still broken json parsing The previous fix caused bugs by crashing when parsing some values with quotation marks. This fix replaces it with a more careful approach that is unlikely to cause any new problems.
Lua
mit
tmerr/computercraftIRC
c899b850b8dcc0b711109840a5cebc350bb73f78
main.lua
main.lua
io.stdout:setvbuf("no") local reboot, events = false --==Contribution Guide==-- --[[ I did create an events system for liko12, making my work more modular. Below there is a modified love.run function which implements 4 things: - Instead of calling love callbacks, it triggers the events with name "love:callback", for e...
io.stdout:setvbuf("no") local reboot, events = false --==Contribution Guide==-- --[[ I did create an events system for liko12, making my work more modular. Below there is a modified love.run function which implements 4 things: - Instead of calling love callbacks, it triggers the events with name "love:callback", for e...
Fix soft reboot crash
Fix soft reboot crash Former-commit-id: 8930a551138f9875bdee8a81d527728b5af58ad8
Lua
mit
RamiLego4Game/LIKO-12
f1f9e3a7c4f3d988173d3fba799d906ea9fe5c40
main.lua
main.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- function framework.load( arg ) -- Set glTF 2.0 physically-based rendering shader framework.graphics.setGlTFPBRShader() -- Light local ...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local kazmath = require( "kazmath" ) local ffi = require( "ffi" ) function framework.load( arg ) -- Set glTF 2.0 physically-based ren...
Fix reference camera
Fix reference camera
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
8a9ff4fffa7538bb7f22d4ccff48e456172f1005
hammerspoon/hammerspoon.symlink/modules/keyboard.lua
hammerspoon/hammerspoon.symlink/modules/keyboard.lua
local hyper = { "shift", "cmd", "alt", "ctrl" } local mash = { "ctrl", "alt", "cmd" } -- Global shortcut to reload Hammerspoon hs.hotkey.bind(hyper, "r", hs.reload) hs.hotkey.bind(hyper, "c", hs.toggleConsole) -- Move windows around current screen hs.hotkey.bind(mash, "left", function() window:leftHalf() end); hs...
local hyper = { "shift", "cmd", "alt", "ctrl" } local mash = { "ctrl", "alt", "cmd" } -- Global shortcut to reload Hammerspoon hs.hotkey.bind(hyper, "r", hs.reload) hs.hotkey.bind(hyper, "c", hs.toggleConsole) -- Move windows around current screen hs.hotkey.bind(mash, "left", function() window:leftHalf() end); hs...
fix(Hammerspoon): Fix bottom-half window resize to respoect menubar height
fix(Hammerspoon): Fix bottom-half window resize to respoect menubar height
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
bca1502ed14188676609d0903f9e8ab0ba6b9156
src/cjdnstools/addrcalc.lua
src/cjdnstools/addrcalc.lua
--- @module cjdnstools.addrcalc local addrcalc = {} local bit32 = require("bit32") local sha2 = require("sha2") function addrcalc.Base32_decode(input) local numForAscii = { 99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99,99,...
--- @module cjdnstools.addrcalc local addrcalc = {} local bit32 = require("bit32") local sha2 = require("sha2") function addrcalc.Base32_decode(input) local numForAscii = { 99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99, 99,99,99,99,99,99,99,99,99,99,99,99,9...
Fixed indentation
Fixed indentation
Lua
mit
intermesh-networks/transitd,pdxmeshnet/mnigs,pdxmeshnet/mnigs,transitd/transitd,transitd/transitd,transitd/transitd,intermesh-networks/transitd
89a7041cca8608e56940bf620a26797cdf734067
module/admin-core/src/model/cbi/admin_index/luci.lua
module/admin-core/src/model/cbi/admin_index/luci.lua
-- ToDo: Translate, Add descriptions and help texts m = Map("luci", "FFLuCI") c = m:section(NamedSection, "main", "core", "Allgemein") c:option(Value, "lang", "Sprache") c:option(Value, "mediaurlbase", "Mediaverzeichnis") f = m:section(NamedSection, "flash", "extern", "Firmwareupgrade") f:option(Value, "keep", "Übern...
-- ToDo: Translate, Add descriptions and help texts m = Map("luci", "FFLuCI") c = m:section(NamedSection, "main", "core", "Allgemein") c:option(Value, "lang", "Sprache") c:option(Value, "mediaurlbase", "Mediaverzeichnis") f = m:section(NamedSection, "flash_keep", "extern", "Zu übernehmende Dateien bei Firmwareupgrade...
* Fixed changed layout of flash_keep in admin > index
* Fixed changed layout of flash_keep in admin > index git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@1848 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ch3n2k/luci,Flexibity/luci,saraedum/luci-packages-old,projectbismark/luci-bismark,yeewang/openwrt-luci,dtaht/cerowrt-luci-3.3,Canaan-Creative/luci,8devices/carambola2-luci,Flexibity/luci,gwlim/luci,stephank/luci,ThingMesh/openwrt-luci,ReclaimYourPrivacy/cloak-luci,yeewang/openwrt-luci,gwlim/luci,zwhfly/openwrt-luci,eug...
6b4597a76db8bd32dd8165cbf9352a37aa175ade
agents/monitoring/tests/helper.lua
agents/monitoring/tests/helper.lua
local spawn = require('childprocess').spawn local constants = require('constants') local misc = require('monitoring/default/util/misc') function runner(name) return spawn('python', {'agents/monitoring/runner.py', name}) end local child local function start_server(callback) local data = '' callback = misc.fireO...
local spawn = require('childprocess').spawn local constants = require('constants') local misc = require('monitoring/default/util/misc') function runner(name) return spawn('python', {'agents/monitoring/runner.py', name}) end local child local function start_server(callback) local data = '' callback = misc.fireO...
Kill the fixture server always.
Kill the fixture server always. As simple as process:on('error'). This will make tests go better.
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
346ef3cfd01192d9b137b8a356d22c77babac446
gateway/config/standalone.lua
gateway/config/standalone.lua
local PolicyChain = require('apicast.policy_chain') local resty_url = require('resty.url') local format = string.format local function to_url(uri) local url = resty_url.parse(uri) if url then return uri elseif uri then return format('file:%s', uri) end end local standalone = assert(Po...
local PolicyChain = require('apicast.policy_chain') local resty_url = require('resty.url') local linked_list = require('apicast.linked_list') local format = string.format local function to_url(uri) local url = resty_url.parse(uri) if url then return uri elseif uri then return format('file:...
[standalone] fix propagating global configuration
[standalone] fix propagating global configuration
Lua
mit
3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway
a40a2fbc39e424a01b65c1ddee14aa8cd4f19064
loot.lua
loot.lua
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
Ignore emblems of triumph.
Ignore emblems of triumph. This fixes issue 482.
Lua
bsd-3-clause
hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,ceason/epgp-tfatf
9b9174ee6030680892ebe791fe197cbb30d1e9e7
init.lua
init.lua
-- [boundary.com] Tomcat Metrics using default Manager Web Application -- [author] Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com> local boundary = require('boundary') local http = require('http') local base64 = require('./modules/mime') local timer = require('timer') local string = require('string') local t...
-- [boundary.com] Tomcat Metrics using default Manager Web Application -- [author] Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com> local boundary = require('boundary') local http = require('http') local base64 = require('./modules/mime') local timer = require('timer') local string = require('string') local t...
Fixed error handling to go to stderr
Fixed error handling to go to stderr
Lua
apache-2.0
GabrielNicolasAvellaneda/boundary-plugin-tomcat-deprecated,boundary/boundary-plugin-apache-tomcat,prashantabmc/boundary-plugin-apache-tomcat
e8928f77a8f75011db6fac8fe3f61906025d76ca
examples/uvbook/thread-create.lua
examples/uvbook/thread-create.lua
local uv = require('luv') local hare_id = uv.new_thread() local tortoise_id = uv.new_thread() local step = 10 uv.thread_create(hare_id,function(step,...) local ffi = require'ffi' local uv = require('luv') local sleep if ffi.os=='Windows' then ffi.cdef "void Sleep(int ms);" sleep = ff...
local uv = require('luv') local step = 10 local hare_id = uv.new_thread(function(step,...) local ffi = require'ffi' local uv = require('luv') local sleep if ffi.os=='Windows' then ffi.cdef "void Sleep(int ms);" sleep = ffi.C.Sleep else ffi.cdef "unsigned int usleep(unsign...
fix uvbook example thread-create
fix uvbook example thread-create
Lua
apache-2.0
zhaozg/luv,luvit/luv,daurnimator/luv,RomeroMalaquias/luv,luvit/luv,joerg-krause/luv,daurnimator/luv,RomeroMalaquias/luv,RomeroMalaquias/luv,joerg-krause/luv,daurnimator/luv,zhaozg/luv
ac96c53209f298eca8f9dbf0512bfb0714f0363c
src/inputkeymaputils/src/Client/InputKeyMapUtils.lua
src/inputkeymaputils/src/Client/InputKeyMapUtils.lua
--- Utility methods for input map -- @module InputKeyMapUtils -- @author Quenty local require = require(script.Parent.loader).load(script) local Set = require("Set") local Table = require("Table") local InputKeyMapUtils = {} function InputKeyMapUtils.createKeyMap(inputMode, inputTypes) assert(type(inputMode) == "t...
--- Utility methods for input map -- @module InputKeyMapUtils -- @author Quenty local require = require(script.Parent.loader).load(script) local Set = require("Set") local Table = require("Table") local InputKeyMapUtils = {} function InputKeyMapUtils.createKeyMap(inputMode, inputTypes) assert(type(inputMode) == "t...
fix: Turns out assert passes multiple arguments so this was bad code
fix: Turns out assert passes multiple arguments so this was bad code
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
049da6125a3c669845945049d4539435079e1182
himan-scripts/emc.lua
himan-scripts/emc.lua
--- ensemble member count local currentProducer = configuration:GetSourceProducer(0) local currentProducerName = currentProducer.GetName(currentProducer) msg = string.format("Calculating ensemble member count for for producer: %s", currentProducerName) logger:Info(msg) local params = {} params["T-K"] = { current_lev...
--- ensemble member count local currentProducer = configuration:GetSourceProducer(0) local currentProducerName = currentProducer.GetName(currentProducer) msg = string.format("Calculating ensemble member count for for producer: %s", currentProducerName) logger:Info(msg) local params = {} params["T-K"] = { current_lev...
HIMAN-294: fix emc.lua to work with cmeps
HIMAN-294: fix emc.lua to work with cmeps
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
7bf0f748394e4ec19e3f6f1cff60f94943dbb348
src/cosy/tool/cli.lua
src/cosy/tool/cli.lua
package.path = package.path .. ";./?.lua" local Loader = require "cosy.loader.lua" {} local I18n = Loader.load "cosy.i18n" local Scheduler = Loader.load "cosy.scheduler" local Layer = Loader.require "layeredata" local Arguments = Loader.require "argparse" local Colors = Loader.require "ansicolors" l...
package.path = package.path .. ";./?.lua" local Loader = require "cosy.loader.lua" {} local I18n = Loader.load "cosy.i18n" local Scheduler = Loader.load "cosy.scheduler" local Layer = Loader.require "layeredata" local Arguments = Loader.require "argparse" local Colors = Loader.require "ansicolors" l...
Update Layer.require to automatically add labels. Fix #190
Update Layer.require to automatically add labels. Fix #190
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
4bbf168de180f887ab6005072bc8867b83b1995a
nyagos.lua
nyagos.lua
-------------------------------------------------------------------------- -- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ -- -------------------------------------------------------------------------- if nyagos == nil then print("This is the startup script for NYAGOS") print("Do n...
-------------------------------------------------------------------------- -- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ -- -------------------------------------------------------------------------- if nyagos == nil then print("This is the startup script for NYAGOS") print("Do n...
Fix: nyagos.lua loaded nyagos.d\*.lua~
Fix: nyagos.lua loaded nyagos.d\*.lua~
Lua
bsd-3-clause
hattya/nyagos,kissthink/nyagos,tyochiai/nyagos,hattya/nyagos,hattya/nyagos,zetamatta/nyagos,kissthink/nyagos,nocd5/nyagos,tsuyoshicho/nyagos,kissthink/nyagos
b50974a20c9dac0d6b8b479d2e6b54b3c5703ab6
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.load", package.seeall) function item() return luci.i18n.translate("System Load") end function rrdargs( graph, plugin, plugin_instance, dtype ) ...
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.load", package.seeall) function item() return luci.i18n.translate("System Load") end function rrdargs( graph, plugin, plugin_instance, dtype ) ...
luci-app-statistics: update misleading load view
luci-app-statistics: update misleading load view Fixes: #3301 During my tests and developing with the collectd and so luci-app-statistics I noticed that the values displayed in the Y-axis are misleading, because probably the individual values are added together in each case. So the view is not corrected. Signed-off-...
Lua
apache-2.0
rogerpueyo/luci,openwrt/luci,tobiaswaldvogel/luci,hnyman/luci,hnyman/luci,nmav/luci,lbthomsen/openwrt-luci,hnyman/luci,openwrt/luci,hnyman/luci,rogerpueyo/luci,hnyman/luci,rogerpueyo/luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,nmav/luci,hnyman/luci,tobiaswaldvogel/luci,lbthomsen/openwrt-luci,rogerpu...