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 |
|---|---|---|---|---|---|---|---|---|---|
12359927dfeee65f84ea14696260dfccb104b88d | src/formatters/init.lua | src/formatters/init.lua | -- module will not return anything, only register formatters with the main assert engine
local assert = require('luassert.assert')
local function fmt_string(arg)
if type(arg) == "string" then
return string.format("(string) '%s'", arg)
end
end
local function fmt_number(arg)
if type(arg) == "number" then
... | -- module will not return anything, only register formatters with the main assert engine
local assert = require('luassert.assert')
local function fmt_string(arg)
if type(arg) == "string" then
return string.format("(string) '%s'", arg)
end
end
local function fmt_number(arg)
if type(arg) == "number" then
... | Refactored table formatting | Refactored table formatting
This fixes a number of problems with the old implementation, which
used gsub on result to fix up formatting.
| Lua | mit | o-lim/luassert,tst2005/lua-luassert,ZyX-I/luassert,mpeterv/luassert |
47fea172a5e5d217fbf3b4627b9bc605e90271df | packages/ruby.lua | packages/ruby.lua | SILE.registerCommand("ruby", function (o,c)
local reading = SU.required(o, "reading", "\\ruby")
SILE.call("hbox", {}, function()
SILE.settings.temporarily(function ()
SILE.call("noindent")
SILE.call("font", {size = "0.6zw", weight = 800 })
SILE.typesetter:typeset(reading)
end)
end)
loc... | SILE.registerCommand("ruby", function (o,c)
local reading = SU.required(o, "reading", "\\ruby")
SILE.call("hbox", {}, function()
SILE.settings.temporarily(function ()
SILE.call("noindent")
SILE.call("font", {size = "0.6zw", weight = 800 })
SILE.typesetter:typeset(reading)
end)
end)
loc... | This is tidier but there is still a bug (#245) measuring the width of hboxes in TTB mode. | This is tidier but there is still a bug (#245) measuring the width of hboxes in TTB mode. | Lua | mit | simoncozens/sile,simoncozens/sile,simoncozens/sile,alerque/sile,neofob/sile,neofob/sile,alerque/sile,alerque/sile,neofob/sile,simoncozens/sile,alerque/sile,neofob/sile |
ecf2b91a0b0538b60fb708a237e10af77afe33dc | misc/freeswitch/scripts/common/sip_account.lua | misc/freeswitch/scripts/common/sip_account.lua | -- Gemeinschaft 5 module: sip account class
-- (c) AMOOMA GmbH 2012-2013
--
module(...,package.seeall)
SipAccount = {}
-- Create SipAccount object
function SipAccount.new(self, arg)
arg = arg or {}
object = arg.object or {}
setmetatable(object, self);
self.__index = self;
self.class = 'sipaccount';
self... | -- Gemeinschaft 5 module: sip account class
-- (c) AMOOMA GmbH 2012-2013
--
module(...,package.seeall)
SipAccount = {}
-- Create SipAccount object
function SipAccount.new(self, arg)
arg = arg or {}
object = arg.object or {}
setmetatable(object, self);
self.__index = self;
self.class = 'sipaccount';
self... | call waiting fixed | call waiting fixed
| Lua | mit | amooma/GS5,amooma/GS5,funkring/gs5,amooma/GS5,amooma/GS5,funkring/gs5,funkring/gs5,funkring/gs5 |
f2a7242ef294c46c18a2b4d427411bbd9e321e45 | 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 | virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitorin... |
cc8a562413a0a77827c66ec95e70ef4f02bf75db | src_trunk/resources/global/money_globals.lua | src_trunk/resources/global/money_globals.lua | --TAX
tax = 15 -- percent
function randomizeTax()
tax = math.random(5, 30)
end
setTimer(randomizeTax, 3600000, 0)
randomizeTax()
function getTaxAmount()
return (tax/100)
end
--INCOME TAX
tax = 10 -- percent
function randomizeIncomeTax()
tax = math.random(1, 25)
end
setTimer(randomizeIncomeTa... | --TAX
tax = 15 -- percent
function randomizeTax()
tax = math.random(5, 30)
end
setTimer(randomizeTax, 3600000, 0)
randomizeTax()
function getTaxAmount()
return (tax/100)
end
--INCOME TAX
tax = 10 -- percent
function randomizeIncomeTax()
tax = math.random(1, 25)
end
setTimer(randomizeIncomeTa... | money fix | money fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1674 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
adfd78e69146657566f18fa8815ff0028b1f4e21 | ffi/framebuffer_SDL1_2.lua | ffi/framebuffer_SDL1_2.lua | local ffi = require("ffi")
local bit = require("bit")
-- load common SDL input/video library
local SDL = require("ffi/SDL1_2")
local BB = require("ffi/blitbuffer")
local fb = {}
function fb.open()
if not fb.dummy then
SDL.open()
-- we present this buffer to the outside
fb.bb = BB.new(SDL.screen.w, SDL.scre... | local ffi = require("ffi")
local bit = require("bit")
-- load common SDL input/video library
local SDL = require("ffi/SDL1_2")
local BB = require("ffi/blitbuffer")
local fb = {}
function fb.open()
if not fb.dummy then
SDL.open()
-- we present this buffer to the outside
fb.bb = BB.new(SDL.screen.w, SDL.screen.... | fix test frontend in travis | fix test frontend in travis
| Lua | agpl-3.0 | NiLuJe/koreader-base,houqp/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,apletnev/koreader-base,houqp/koreader-base,Frenzie/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,Hzj-jie/koreader-b... |
b2e0ed4f7920ec9e73829c464740db1db306f4b9 | share/lua/website/xhamster.lua | share/lua/website/xhamster.lua |
-- libquvi-scripts
-- Copyright (C) 2010 Paul Kocialkowski <contact@paulk.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free ... |
-- libquvi-scripts
-- Copyright (C) 2010 Paul Kocialkowski <contact@paulk.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free ... | Fix xhamster.lua title parsing | Fix xhamster.lua title parsing
| Lua | agpl-3.0 | alech/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer,hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
d9c87649f34382ade7257444edee935686bd7861 | scripts/embed.lua | scripts/embed.lua | --
-- Embed the Lua scripts into src/host/scripts.c as static data buffers.
-- I embed the actual scripts, rather than Lua bytecodes, because the
-- bytecodes are not portable to different architectures, which causes
-- issues in Mac OS X Universal builds.
--
local function loadScript(fname)
local f = io.open(fnam... | --
-- Embed the Lua scripts into src/host/scripts.c as static data buffers.
-- I embed the actual scripts, rather than Lua bytecodes, because the
-- bytecodes are not portable to different architectures, which causes
-- issues in Mac OS X Universal builds.
--
local function loadScript(fname)
local f = io.open(fnam... | Fix embedding of main script and manifest | Fix embedding of main script and manifest
| Lua | bsd-3-clause | TurkeyMan/premake-core,premake/premake-core,saberhawk/premake-core,felipeprov/premake-core,dcourtois/premake-core,kankaristo/premake-core,starkos/premake-core,premake/premake-core,resetnow/premake-core,felipeprov/premake-core,mendsley/premake-core,dcourtois/premake-core,saberhawk/premake-core,CodeAnxiety/premake-core,j... |
4295e9ca1a6738bdb4bbaa52010724d585140c6a | core/libtexpdf-output.lua | core/libtexpdf-output.lua | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])... | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])... | Possible fix for #384 | Possible fix for #384 | Lua | mit | simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,alerque/sile,neofob/sile |
2dcacfcc1292fba9d876a7ee0c8a08d930c364ff | pkg/torch/argtypes.lua | pkg/torch/argtypes.lua | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true, -- if needed, one can override it to false
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
if self.vararg then -- can be (1, 2, 3) or... | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true, -- if needed, one can override it to false
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
if self.vararg then -- can be (1, 2, 3) or... | argtypes: fixed string type and added function type | argtypes: fixed string type and added function type
| Lua | bsd-3-clause | torch/argcheck |
b59e9f8b582d55b34aad3b2d94a7fb6efb9bae90 | kong/plugins/pre-function/_handler.lua | kong/plugins/pre-function/_handler.lua | -- handler file for both the pre-function and post-function plugin
return function(plugin_name, priority)
local loadstring = loadstring
local insert = table.insert
local ipairs = ipairs
local config_cache = setmetatable({}, { __mode = "k" })
local ServerlessFunction = {
PRIORITY = priority,
VERSION ... | -- handler file for both the pre-function and post-function plugin
return function(plugin_name, priority)
local loadstring = loadstring
local insert = table.insert
local ipairs = ipairs
local config_cache = setmetatable({}, { __mode = "k" })
local ServerlessFunction = {
PRIORITY = priority,
VERSION ... | fix(serverless-functions) only run them once when initializing | fix(serverless-functions) only run them once when initializing
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
68eb0795eb6a87189e27001d2e95c701536dac3f | resources/prosody-plugins/mod_polls.lua | resources/prosody-plugins/mod_polls.lua | -- This module provides persistence for the "polls" feature,
-- by keeping track of the state of polls in each room, and sending
-- that state to new participants when they join.
local json = require("util.json");
local st = require("util.stanza");
local util = module:require("util");
local muc = module:depends("muc"... | -- This module provides persistence for the "polls" feature,
-- by keeping track of the state of polls in each room, and sending
-- that state to new participants when they join.
local json = require("util.json");
local st = require("util.stanza");
local util = module:require("util");
local muc = module:depends("muc"... | feat(polls) fix spacing and send answer identifier | feat(polls) fix spacing and send answer identifier
| Lua | apache-2.0 | jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet |
1121b152bddc78f1a5b4709d91d4f0a9745ccdb2 | Modules/Server/ChunkedDataStore/ChunkedDataStore.lua | Modules/Server/ChunkedDataStore/ChunkedDataStore.lua | --- Stores very large strings into the datastore
-- @classmod ChunkDataStore
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local HttpService = game:GetService("HttpService")
local ChunkUtils = require("ChunkUtils")
local DataStorePromises = require("DataStorePromises")
local... | --- Stores very large strings into the datastore
-- @classmod ChunkDataStore
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local HttpService = game:GetService("HttpService")
local ChunkUtils = require("ChunkUtils")
local DataStorePromises = require("DataStorePromises")
local... | fix spelling mistake | fix spelling mistake
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
acd1e22bf45485d7155feeab52eea4316373e000 | frame/common/string.lua | frame/common/string.lua | --------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/a... | --------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/a... | [frame/common] fix: incorrect escaping the trailing underscores | [frame/common] fix: incorrect escaping the trailing underscores
| Lua | mit | vovkos/doxyrest,vovkos/doxyrest,vovkos/doxyrest,vovkos/doxyrest,vovkos/doxyrest |
efb8e8c1ef851be738d69aa563c9a4097cd42246 | xmake/modules/package/manager/vcpkg/find_package.lua | xmake/modules/package/manager/vcpkg/find_package.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix find_package for vcpkg | fix find_package for vcpkg
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
b62619859286f00af322d0bc0273aa832a5aedb0 | lualib/skynet/db/redis.lua | lualib/skynet/db/redis.lua | local skynet = require "skynet"
local socket = require "skynet.socket"
local socketchannel = require "skynet.socketchannel"
local table = table
local string = string
local assert = assert
local redis = {}
local command = {}
local meta = {
__index = command,
-- DO NOT close channel in __gc
}
---------- redis respon... | local socketchannel = require "skynet.socketchannel"
local tostring = tostring
local tonumber = tonumber
local table = table
local string = string
local assert = assert
local setmetatable = setmetatable
local ipairs = ipairs
local type = type
local select = select
local pairs = pairs
local redis = {}
local command =... | fix global var (#1342) | fix global var (#1342)
Co-authored-by: xiaojin <2ef63b2bf1df299231e686b49447ebee8d6f4736@onemt.com.cn> | Lua | mit | korialuo/skynet,hongling0/skynet,sanikoyes/skynet,icetoggle/skynet,xjdrew/skynet,cloudwu/skynet,icetoggle/skynet,pigparadise/skynet,hongling0/skynet,hongling0/skynet,sanikoyes/skynet,xjdrew/skynet,wangyi0226/skynet,wangyi0226/skynet,pigparadise/skynet,cloudwu/skynet,icetoggle/skynet,sanikoyes/skynet,wangyi0226/skynet,k... |
034a1f9eb147357ad498858bbd22f2d617ef15d1 | control.lua | control.lua | require 'util'
require 'gui'
require 'test'
function print(stuff)
game.players[1].print(stuff)
end
function printBool(stuff)
game.players[1].print(tostring(stuff))
end
function setup()
global.hoverboard = global.hoverboard or {}
for _, player in pairs(game.players) do
createPlayerMag(player.index)
end
... | require 'util'
require 'gui'
require 'test'
function print(stuff)
game.players[1].print(stuff)
end
function printBool(stuff)
game.players[1].print(tostring(stuff))
end
function setup()
global.hoverboard = global.hoverboard or {}
for _, player in pairs(game.players) do
createPlayerMag(player.index)
end
... | fix a subtle bug in which the user is forcefully moved by arrows | fix a subtle bug in which the user is forcefully moved by arrows
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
849edcdb4924c9a8895931e7d90a09eb7de52393 | modules/message_dispatcher.lua | modules/message_dispatcher.lua | local ph = require('protocol_handler/protocol_handler')
local config = require('config')
local module = { mt = { __index = { } } }
local fbuffer_mt = { __index = { } }
local fstream_mt = { __index = { } }
function module.FileStorage(filename)
local res = {}
res.filename = filename
res.protocol_handler = ph.Proto... | local ph = require('protocol_handler/protocol_handler')
local module = { mt = { __index = { } } }
local fbuffer_mt = { __index = { } }
local fstream_mt = { __index = { } }
function module.FileStorage(filename)
local res = {}
res.filename = filename
res.protocol_handler = ph.ProtocolHandler()
res.wfd = io.open(... | Fix: ATF is stopped when sending many requests APPLINK-13004:ATF is stopped when sending many requests | Fix: ATF is stopped when sending many requests
APPLINK-13004:ATF is stopped when sending many requests
| Lua | bsd-3-clause | aderiabin/sdl_atf,aderiabin/sdl_atf,aderiabin/sdl_atf |
149ea711b0b60034d671863c497c6c994910e782 | src/plugins/finalcutpro/tangent/browser.lua | src/plugins/finalcutpro/tangent/browser.lua | --- === plugins.finalcutpro.tangent.browser ===
---
--- Final Cut Pro Tangent Browser Group
local require = require
--local log = require("hs.logger").new("tangentBrowser")
local timer = require("hs.timer")
local fcp = require("cp.apple.finalcutpro")
local i18n ... | --- === plugins.finalcutpro.tangent.browser ===
---
--- Final Cut Pro Tangent Browser Group
local require = require
--local log = require("hs.logger").new("tangentBrowser")
local timer = require("hs.timer")
local fcp = require("cp.apple.finalcutpro")
local i18n ... | #1732 | #1732
- Fixed @stickler-ci errors
| Lua | mit | CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost |
31c878675abfdef589ce80980771e387f0b52393 | core/ext/pm/buffer_browser.lua | core/ext/pm/buffer_browser.lua | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Buffer browser for the Textadept project manager.
-- It is enabled with the prefix 'buffers' in the project manager entry field.
module('textadept.pm.browsers.buffer', package.seeall)
function matches(entry_text)
return entry_text:sub(1... | -- Copyright 2007-2008 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- Buffer browser for the Textadept project manager.
-- It is enabled with the prefix 'buffers' in the project manager entry field.
module('textadept.pm.browsers.buffer', package.seeall)
function matches(entry_text)
return entry_text:sub(1... | Fixed bug for menu actions on non-focused buffer; core/ext/pm/buffer_browser.lua | Fixed bug for menu actions on non-focused buffer; core/ext/pm/buffer_browser.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
bb32f61c7c0aec838cb30d0f457594e5af98d1d0 | premake5.lua | premake5.lua | solution "libdrone"
configurations { "Debug", "Release" }
platforms { "linux", "mingw" }
location "build"
configuration "Debug"
flags { "Symbols" }
project "drone"
kind "SharedLib"
language "C++"
location "build/libdrone"
-- Enable C++11
buildoptions { "-std=c++11", "-DBOO... | solution "libdrone"
configurations { "Debug", "Release" }
platforms { "linux", "mingw" }
location "build"
configuration "Debug"
flags { "Symbols" }
project "drone"
kind "SharedLib"
language "C++"
location "build/libdrone"
-- Enable C++11
buildoptions { "-std=c++11", "-DBOO... | Fixes for Windows | Fixes for Windows
| Lua | mit | lukaslaobeyer/libdrone,lukaslaobeyer/libdrone,lukaslaobeyer/libdrone |
7b54859e358eedc42c1bf94c43330bfbe5f46dc4 | build/ode.lua | build/ode.lua | package.name = "ode"
package.language = "c++"
package.objdir = "obj/ode"
-- Separate distribution files into toolset subdirectories
if (options["usetargetpath"]) then
package.path = options["target"]
else
package.path = "custom"
end
-- Write a custom <config.h> to include/ode, based on ... | package.name = "ode"
package.language = "c++"
package.objdir = "obj/ode"
-- Separate distribution files into toolset subdirectories
if (options["usetargetpath"]) then
package.path = options["target"]
else
package.path = "custom"
end
-- Write a custom <config.h> to include/ode, based on ... | Fix for build error when using a manually generated project (i.e. dumping in all of the files) and premake to generate config.h with the --no-trimesh option. This was due to "#define dTRIMESH_OPCODE 1" still being present in 'collision_trimesh_internal.h'. Also it now ignores '--with-gimpact' if --no-trimesh is used as... | Fix for build error when using a manually generated project (i.e. dumping in all of the files) and premake to generate config.h with the --no-trimesh option. This was due to "#define dTRIMESH_OPCODE 1" still being present in 'collision_trimesh_internal.h'. Also it now ignores '--with-gimpact' if --no-trimesh is used as... | Lua | lgpl-2.1 | forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende |
1713e2ab0b055706c956eab5539a54715b7f4df5 | reader.lua | reader.lua | #!./kpdfview
--[[
KindlePDFViewer: a reader implementation
Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of ... | #!./kpdfview
--[[
KindlePDFViewer: a reader implementation
Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of ... | fix: refresh screen more elegantly after reader exit | fix: refresh screen more elegantly after reader exit
| Lua | agpl-3.0 | apletnev/koreader,chihyang/koreader,poire-z/koreader,Hzj-jie/koreader-base,koreader/koreader-base,frankyifei/koreader-base,pazos/koreader,houqp/koreader-base,Frenzie/koreader-base,chrox/koreader,Frenzie/koreader-base,NiLuJe/koreader,NiLuJe/koreader-base,NickSavage/koreader,koreader/koreader-base,houqp/koreader,NiLuJe/k... |
11bc5fe5215961c2fb05699f302451e29b40f87c | baraza.lua | baraza.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 = {}
local ids = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local d... | 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 = {}
local ids = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local d... | baraza.lua: fixes and additions | baraza.lua: fixes and additions | Lua | unlicense | ArchiveTeam/baraza-grab,ArchiveTeam/baraza-grab |
1aaa6fe261f6512989b37900a3136304b1339da9 | src/ffluci/model/cbi/admin_wifi/networks.lua | src/ffluci/model/cbi/admin_wifi/networks.lua | -- ToDo: Translate, Add descriptions and help texts
m = Map("wireless", "Netze")
s = m:section(TypedSection, "wifi-iface")
s.addremove = true
s.anonymous = true
s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
device = s:option(ListValue, "device", "Gerät")
for k, v in pairs(ffluci.model.uci.show("wirel... | -- ToDo: Translate, Add descriptions and help texts
m = Map("wireless", "Netze")
s = m:section(TypedSection, "wifi-iface")
s.addremove = true
s.anonymous = true
s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
device = s:option(ListValue, "device", "Gerät")
local d = ffluci.model.uci.show("wireless").wi... | * Fixed a bug in Wifi when no wifi interfaces are available | * Fixed a bug in Wifi when no wifi interfaces are available
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@1774 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | projectbismark/luci-bismark,Flexibity/luci,eugenesan/openwrt-luci,gwlim/luci,phi-psi/luci,stephank/luci,8devices/carambola2-luci,saraedum/luci-packages-old,phi-psi/luci,8devices/carambola2-luci,projectbismark/luci-bismark,saraedum/luci-packages-old,Flexibity/luci,Flexibity/luci,phi-psi/luci,freifunk-gluon/luci,eugenesa... |
89219a513f2e620459d5058888007149c05fc2df | src/http/request_key.lua | src/http/request_key.lua | local assert, format, load = assert, string.format, loadstring
local concat = table.concat
local function var_method()
return nil, 'req.method'
end
local function var_path()
return nil, 'req.path'
end
local function var_query(name)
return 'local q = req.query or req:parse_query()',
'(q["' .. ... | local assert, format, load = assert, string.format, loadstring
local concat = table.concat
local function var_method()
return nil, 'req.method'
end
local function var_path()
return nil, 'req.path'
end
local function var_query(name)
return 'local q = req.query or req:parse_query()',
'(q["' .. ... | Fixed check warnings. | Fixed check warnings.
| Lua | mit | akornatskyy/lucid |
9c4c48e363b09983eae65fed192229740cc62e31 | fbnn/Optim.lua | fbnn/Optim.lua | -- Copyright 2004-present Facebook. All Rights Reserved.
local pl = require('pl.import_into')()
-- from fblualib/fb/util/data.lua , copied here because fblualib is not rockspec ready yet.
-- deepcopy routine that assumes the presence of a 'clone' method in user
-- data should be used to deeply copy. This matches the ... | -- Copyright 2004-present Facebook. All Rights Reserved.
local pl = require('pl.import_into')()
-- from fblualib/fb/util/data.lua , copied here because fblualib is not rockspec ready yet.
-- deepcopy routine that assumes the presence of a 'clone' method in user
-- data should be used to deeply copy. This matches the ... | bug fix for DataParallel | bug fix for DataParallel
| Lua | bsd-3-clause | facebook/fbnn,facebook/fbnn,facebook/fbnn |
5032cc1e76d4f3bb0ded2073421f47dce926220c | build/premake4.lua | build/premake4.lua | function MakeUnmanagedProjects()
dofile("MusiC.Native.Base.lua")
dofile("MusiC.Native.Core.lua")
dofile("MusiC.Extensions.Classifiers.uBarbedo.lua")
end
function MakeManagedProjects()
dofile("MusiC.lua")
dofile("MusiC.Apps.GenreC.lua")
dofile("MusiC.Extensions.Classifiers.Barbedo.lua")
dofile("MusiC.E... | function MakeUnmanagedProjects()
dofile("MusiC.Native.Base.lua")
dofile("MusiC.Native.Core.lua")
dofile("MusiC.Extensions.Classifiers.uBarbedo.lua")
end
function MakeManagedProjects()
dofile("MusiC.lua")
dofile("MusiC.Apps.GenreC.lua")
dofile("MusiC.Extensions.Classifiers.Barbedo.lua")
dofile("MusiC.E... | FIX: Premake building. Excluded MusiC.Test.Unit entry. | FIX: Premake building. Excluded MusiC.Test.Unit entry. | Lua | mit | berkus/music-cs,berkus/music-cs,berkus/music-cs,berkus/music-cs |
c86e1489c81c4ac6ae98416b908e086bac4d587c | src/pcap.lua | src/pcap.lua | module("pcap",package.seeall)
local ffi = require("ffi")
local pf = require("pf")
local pcap = ffi.load("pcap")
function pcap_compile (filter_str)
ffi.cdef[[
typedef struct pcap pcap_t;
pcap_t *pcap_create(const char *source, char *errbuf);
int pcap_activate(pcap_t *p);
int pcap_compile... | module("pcap",package.seeall)
local ffi = require("ffi")
local pf = require("pf")
local pcap = ffi.load("pcap")
-- The dlt_name is a "datalink type name" and specifies the link-level
-- wrapping to expect. E.g., for raw ethernet frames, you would specify
-- "EN10MB" (even though you have a 10G card), which corresp... | Filter compilation works without root privileges | Filter compilation works without root privileges
* src/pcap.lua: Fix to work without root privileges by using
pcap_open_dead.
| Lua | apache-2.0 | mpeterv/pflua,SnabbCo/pflua |
c613e06c69a7d05e736aa7c69f83e850c4fed050 | tundra.lua | tundra.lua | local common = {
Env = {
CPPPATH = { "." },
CXXOPTS = {
-- clang and GCC
{ "-std=c++14"; Config = { "*-gcc-*", "*-clang-*" } },
{ "-g"; Config = { "*-gcc-debug", "*-clang-debug" } },
{ "-g -O2"; Config = { "*-gcc-production", "*-clang-production" } },
{ "-O3"; Config = { "*-gcc-r... | local common = {
Env = {
CPPPATH = { "." },
CXXOPTS = {
-- clang and GCC
{ "-std=c++14"; Config = { "*-gcc-*", "*-clang-*" } },
{ "-g"; Config = { "*-gcc-debug", "*-clang-debug" } },
{ "-g -O2"; Config = { "*-gcc-production", "*-clang-production" } },
{ "-O3"; Config = { "*-gcc-r... | Fix windows build. | Fix windows build.
| Lua | bsd-2-clause | deplinenoise/deluxe68,deplinenoise/deluxe68 |
53fef98acfc30c53c3481d0fb39cdf4ce379787d | lualib/skynet/datasheet/builder.lua | lualib/skynet/datasheet/builder.lua | local skynet = require "skynet"
local dump = require "skynet.datasheet.dump"
local core = require "skynet.datasheet.core"
local service = require "skynet.service"
local builder = {}
local cache = {}
local dataset = {}
local address
local function monitor(pointer)
skynet.fork(function()
skynet.call(address, "lua", ... | local skynet = require "skynet"
local dump = require "skynet.datasheet.dump"
local core = require "skynet.datasheet.core"
local service = require "skynet.service"
local builder = {}
local cache = {}
local dataset = {}
local address
local unique_id = 0
local function unique_string(str)
unique_id = unique_id + 1
ret... | fix #718 | fix #718
| Lua | mit | great90/skynet,zhouxiaoxiaoxujian/skynet,sanikoyes/skynet,JiessieDawn/skynet,sundream/skynet,zhouxiaoxiaoxujian/skynet,zhangshiqian1214/skynet,ag6ag/skynet,czlc/skynet,korialuo/skynet,great90/skynet,cloudwu/skynet,bigrpg/skynet,jxlczjp77/skynet,zhangshiqian1214/skynet,kyle-wang/skynet,fztcjjl/skynet,korialuo/skynet,xcj... |
95fb7bfdef2f764b8f3a8083d9933000869cff60 | src/move.lua | src/move.lua | function getTile(index)
return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y)
end
function getDirectiveEntity(index)
position = {game.players[index].position.x, game.players[index].position.y}
local list = {"left","down","up","right","accelerator_charger"}
f... | function getTile(index)
return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y)
end
function getDirectiveEntity(index)
position = {game.players[index].position.x, game.players[index].position.y}
local list = {"left","down","up","right","accelerator_charger"}
f... | fix regression caused by motionCheck function | fix regression caused by motionCheck function
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
f51be9b269546332e7cfe6f86f1d3c8ab873a5f0 | net/cqueues.lua | net/cqueues.lua | -- Prosody IM
-- Copyright (C) 2014 Daurnimator
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This module allows you to use cqueues with a net.server mainloop
--
local server = require "net.server";
local cqueues = require "cqueues";
-- Create... | -- Prosody IM
-- Copyright (C) 2014 Daurnimator
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This module allows you to use cqueues with a net.server mainloop
--
local server = require "net.server";
local cqueues = require "cqueues";
assert(cqu... | net.cqueues: Fixes hardcoded timeout for first iteration | net.cqueues: Fixes hardcoded timeout for first iteration
This was originally put in place as a fix for what ended up a cqueues bug: https://github.com/wahern/cqueues/issues/40
A check for a cqueues version with the bug fix is included.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
69d99f4a6c60169c302027ecfa3e91bc93738fa3 | lua/wire/flir.lua | lua/wire/flir.lua | --[[
Simulation of FLIR (forward-looking infrared) vision.
Possible future ideas:
* Different materials have different emissivities:
aluminium is about 20%, wherease asphalt is 95%.
maybe we could use the physical properties to simulate this?
* the luminance of a texture contributes *negatively* to its emissivi... | --[[
Simulation of FLIR (forward-looking infrared) vision.
Possible future ideas:
* Different materials have different emissivities:
aluminium is about 20%, wherease asphalt is 95%.
maybe we could use the physical properties to simulate this?
* the luminance of a texture contributes *negatively* to its emissivi... | Flir fixes (#2264) | Flir fixes (#2264)
* Flir fixes
* fix lua error | Lua | apache-2.0 | Grocel/wire,dvdvideo1234/wire,wiremod/wire |
206dfa5c816a70753453d0351051f76774e50110 | mod_statistics/prosodytop.lua | mod_statistics/prosodytop.lua | local curses = require "curses";
local server = require "net.server_select";
local timer = require "util.timer";
assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'");
local top = require "top";
function main()
local stdscr = curses.stdscr() -- it's a userdatum
--stds... | local curses = require "curses";
local server = require "net.server_select";
local timer = require "util.timer";
assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'");
local top = require "top";
function main()
local stdscr = curses.stdscr() -- it's a userdatum
--stds... | mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG) | mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG)
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
b53daf6803d256fa4750f0a3498af73a89813608 | models/upload.lua | models/upload.lua | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(dest_dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match('^(.+)(%.%w+)$')
if not ex... | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(dest_dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match('^(.+)(%.%w+)$')
if not ex... | Add an upload API: | Add an upload API:
Upload:absoluteDirPrefix() this function will return the upload files'
really absolute directory prefix, can be used for generating files by
app code.
Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
| Lua | bsd-3-clause | daogangtang/bamboo,daogangtang/bamboo |
1b67164560870d8f48908d2d6448f66632ae97fc | lovetoys/eventManager.lua | lovetoys/eventManager.lua | EventManager = class("EventManager")
function EventManager:__init()
self.eventListeners = {}
self.getKey = function ()
for index, value in pairs(table) do
if value == element then
return index
e... | EventManager = class("EventManager")
function EventManager:__init()
self.eventListeners = {}
self.getKey = function()
for index, value in pairs(table) do
if value == element then
return index
end
... | Fixed bug in Eventmanager. I'm stupid -.- | Fixed bug in Eventmanager. I'm stupid -.-
| Lua | mit | takaaptech/lovetoys,xpol/lovetoys |
431feb6f16477eb77f4e95d9fde2989248290481 | lualib/http/tlshelper.lua | lualib/http/tlshelper.lua | local socket = require "http.sockethelper"
local c = require "ltls.c"
local tlshelper = {}
function tlshelper.init_requestfunc(fd, tls_ctx)
local readfunc = socket.readfunc(fd)
local writefunc = socket.writefunc(fd)
return function ()
local ds1 = tls_ctx:handshake()
writefunc(ds1)
... | local socket = require "http.sockethelper"
local c = require "ltls.c"
local tlshelper = {}
function tlshelper.init_requestfunc(fd, tls_ctx)
local readfunc = socket.readfunc(fd)
local writefunc = socket.writefunc(fd)
return function ()
local ds1 = tls_ctx:handshake()
writefunc(ds1)
... | bugfix #1007 | bugfix #1007
| Lua | mit | jxlczjp77/skynet,xcjmine/skynet,xjdrew/skynet,icetoggle/skynet,xcjmine/skynet,bigrpg/skynet,sanikoyes/skynet,cloudwu/skynet,korialuo/skynet,ag6ag/skynet,ag6ag/skynet,pigparadise/skynet,hongling0/skynet,cloudwu/skynet,hongling0/skynet,pigparadise/skynet,bigrpg/skynet,sanikoyes/skynet,xcjmine/skynet,ag6ag/skynet,JiessieD... |
eaddc558dd524e37691a02262a6768d7573f17b3 | Examples/freecad-debian-sandbox.cfg.lua | Examples/freecad-debian-sandbox.cfg.lua | -- example config for freecad sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua
-- using debian-sandbox.cfg.lua config file as base
-- redefine defaults.recalculate function, that will be called by base config
defaults.recalculate_orig=defaults.recalculate
function defaults.r... | -- example config for freecad sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua
-- using debian-sandbox.cfg.lua config file as base
-- redefine defaults.recalculate function, that will be called by base config
defaults.recalculate_orig=defaults.recalculate
function defaults.r... | fixup! Examples: add freecad-debian-sandbox.cfg.lua example config | fixup! Examples: add freecad-debian-sandbox.cfg.lua example config
| Lua | mit | DarkCaster/Sandboxer,DarkCaster/Sandboxer |
cc50abebc2ee8ac01d3e373397f82ec373974e0c | quiz/c1quiz.lua | quiz/c1quiz.lua | local c1quiz = {}
local typing = require 'quiz.typing'
c1quiz.typing_direct = typing.direct
c1quiz.typing_reverse = typing.reverse
function c1quiz.include_direction(req)
return
'',
[[заголовочные файлы - в другие заголовочные файлы
и файлы с исходным кодом]],
[[файлы с исходным кодом - в другие ... | local c1quiz = {}
local typing = require 'quiz.typing'
c1quiz.typing_direct = typing.direct
c1quiz.typing_reverse = typing.reverse
function c1quiz.include_direction(req)
return
'',
[[заголовочные файлы - в другие заголовочные файлы
и файлы с исходным кодом]],
[[файлы с исходным кодом - в другие ... | fix task c1quiz.linking | fix task c1quiz.linking
| Lua | mit | starius/kodomoquiz |
34c11c6453efe79d5718f87e804ce976c54accfb | commands/build.lua | commands/build.lua |
zpm.build.commands = {}
zpm.build.rcommands = {}
function zpm.build.commands.extractdir( targets, prefix )
prefix = prefix or "./"
if type(targets) ~= "table" then
targets = {targets}
end
for i, target in ipairs(targets) do
local zipFile = path.join( zpm.temp, "submodule.zip" )
... |
zpm.build.commands = {}
zpm.build.rcommands = {}
function zpm.build.commands.extractdir( targets, prefix )
prefix = prefix or "./"
if type(targets) ~= "table" then
targets = {targets}
end
for i, target in ipairs(targets) do
local zipFile = path.join( zpm.temp, "submodule.zip" )
... | Fixed touch output | Fixed touch output
| Lua | mit | Zefiros-Software/ZPM |
744b4060c35229249b6aadd1f414859e2d24b9fe | lib/net.lua | lib/net.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 net test | Fix net test
| Lua | apache-2.0 | zhaozg/luvit,sousoux/luvit,luvit/luvit,rjeli/luvit,luvit/luvit,kaustavha/luvit,boundary/luvit,boundary/luvit,rjeli/luvit,zhaozg/luvit,AndrewTsao/luvit,sousoux/luvit,kaustavha/luvit,sousoux/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,rjeli/luvit,bsn069/luvit,connectFree/lev,GabrielNicola... |
e242e8d5e6362f190f1ead9a489f56a0f9143737 | modules/admin-full/luasrc/controller/admin/network.lua | modules/admin-full/luasrc/controller/admin/network.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
modu... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
modu... | modules/admin-full: support deleting wireless networks and fix wireless join | modules/admin-full: support deleting wireless networks and fix wireless join
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5442 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | stephank/luci,projectbismark/luci-bismark,ch3n2k/luci,Flexibity/luci,ReclaimYourPrivacy/cloak-luci,zwhfly/openwrt-luci,saraedum/luci-packages-old,jschmidlapp/luci,jschmidlapp/luci,gwlim/luci,projectbismark/luci-bismark,8devices/carambola2-luci,jschmidlapp/luci,jschmidlapp/luci,freifunk-gluon/luci,phi-psi/luci,eugenesan... |
84e6c615c7a41aaf47cd7661b077908278bb9e2a | poll-invertor.lua | poll-invertor.lua | print("Ginlong Reader started\n")
function string.fromhex(str)
return (str:gsub('..', function (cc)
return string.char(tonumber(cc, 16))
end))
end
function string.tohex(str)
if str ~= nil then
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
... | print("Ginlong Invertor Poller started\n")
SERIAL_PORT = "/dev/rfcomm0"
-- Bytes to send to request info from invertor
inquiryHex = "7E01A1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A2"
-- all valid responses from invertor begin with this set of bytes
respon... | fixed lots of bugs, now gives correct values | fixed lots of bugs, now gives correct values
as compared with perl script
| Lua | bsd-2-clause | maks/ginlong-lua |
d4e5746eb3fe78c38c619f8a2d3bf0522a14bf35 | frontend/device/kindle/powerd.lua | frontend/device/kindle/powerd.lua | local BasePowerD = require("device/generic/powerd")
-- liblipclua, see require below
local KindlePowerD = BasePowerD:new{
fl_min = 0, fl_max = 24,
fl_intensity = nil,
battCapacity = nil,
is_charging = nil,
lipc_handle = nil,
}
function KindlePowerD:init()
local haslipc, lipc = pcall(require, ... | local BasePowerD = require("device/generic/powerd")
-- liblipclua, see require below
local KindlePowerD = BasePowerD:new{
fl_min = 0, fl_max = 24,
fl_intensity = nil,
battCapacity = nil,
is_charging = nil,
lipc_handle = nil,
}
function KindlePowerD:init()
local haslipc, lipc = pcall(require, ... | Unbreak toggling the fL on Kindles | Unbreak toggling the fL on Kindles
Fix #1960
| Lua | agpl-3.0 | apletnev/koreader,Hzj-jie/koreader,lgeek/koreader,NiLuJe/koreader,robert00s/koreader,Frenzie/koreader,houqp/koreader,poire-z/koreader,chihyang/koreader,Frenzie/koreader,pazos/koreader,mwoz123/koreader,frankyifei/koreader,koreader/koreader,NickSavage/koreader,mihailim/koreader,poire-z/koreader,koreader/koreader,Markismu... |
29e0fd3a952633d5fdbbeb1fb0c7cc92ce25b565 | MMOCoreORB/bin/scripts/commands/fastBlast.lua | MMOCoreORB/bin/scripts/commands/fastBlast.lua | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | [fixed] Master BH attack-special 'Fast Blast', Mantis 3552 | [fixed] Master BH attack-special 'Fast Blast', Mantis 3552
Change-Id: Icdbec67112ac8db34f7d7b74b255bea53bdbc2d0
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo |
b38e757140070fb5ba2eea4418bf094ead074248 | scripts/window_unpin.lua | scripts/window_unpin.lua | -- Macro by Cegaiel
-- This will right click all windows found (both searchImage1 or searchImage2), in an attempt to unpin and close all pinned windows.
-- It right clicks (closes) every open window that currently shows on screen, in one pass.. If it finds any windows to click then:
--Repeat and search for more windo... | -- Macro by Cegaiel
-- This will right click all windows found (both searchImage1 or searchImage2), in an attempt to unpin and close all pinned windows.
-- It right clicks (closes) every open window that currently shows on screen, in one pass.. If it finds any windows to click then:
--Repeat and search for more windo... | window_unpin.lua - Fix overlapping End Script/Exit buttons (while running). Slight tweak in operation. | window_unpin.lua - Fix overlapping End Script/Exit buttons (while running). Slight tweak in operation.
| Lua | mit | DashingStrike/Automato-ATITD,wzydhek/Automato-ATITD,wzydhek/Automato-ATITD,DashingStrike/Automato-ATITD |
ce3464c9d0ed4270dcc205ab165c9a7da20ff83e | nvim/lua/plugins.lua | nvim/lua/plugins.lua | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local g = vim.g -- a table to access global variables
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use('wbthomason/packer.nvim')
-- treesitter (LSP)
use({ 'nvim-treesitter/nvim-treesitter', run = '... | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local g = vim.g -- a table to access global variables
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use('wbthomason/packer.nvim')
-- treesitter (LSP)
use({ 'nvim-treesitter/nvim-treesitter', run = '... | fix: update to latest null-ls config | fix: update to latest null-ls config
| Lua | mit | drmohundro/dotfiles |
e4eeb014c7ea623ae8128f6766d2ac4904b98751 | limefa.lua | limefa.lua | -- limefa.lua: Converts regex trees to nondeterminstic finite automata (NFAs),
-- and then thence to a deterministic finite automaton (DFA).
--
-- Copyright © 2012 Zachary Catlin. See LICENSE for terms.
-- The package table
local P = {}
if _REQUIREDNAME == nil then
limefa = P
else
_G[_REQUIREDNAME] = P
end
-- Imp... | -- limefa.lua: Converts regex trees to nondeterminstic finite automata (NFAs),
-- and then thence to a deterministic finite automaton (DFA).
--
-- Copyright © 2012 Zachary Catlin. See LICENSE for terms.
-- The package table
local P = {}
if _REQUIREDNAME == nil then
limefa = P
else
_G[_REQUIREDNAME] = P
end
-- Imp... | Fixed some dumb bugs in limefa.lua | Fixed some dumb bugs in limefa.lua
| Lua | mit | zec/moonlime,zec/moonlime |
0137c8c8095d34ce240c503e5e2dd021a6a31aa3 | lua/autorun/Wire_Load.lua | lua/autorun/Wire_Load.lua | -- $Rev: 1663 $
-- $LastChangedDate: 2009-09-12 03:34:53 -0700 (Sat, 12 Sep 2009) $
-- $LastChangedBy: TomyLobo $
if VERSION < 70 then Error("WireMod: Your GMod is years too old. Load aborted.\n") end
if SERVER then
-- this file
AddCSLuaFile("autorun/Wire_Load.lua")
-- shared includes
AddCSLuaFile("wi... | -- $Rev: 1663 $
-- $LastChangedDate: 2009-09-12 03:34:53 -0700 (Sat, 12 Sep 2009) $
-- $LastChangedBy: TomyLobo $
if VERSION < 70 then Error("WireMod: Your GMod is years too old. Load aborted.\n") end
if SERVER then
-- this file
AddCSLuaFile("autorun/Wire_Load.lua")
-- shared includes
AddCSLuaFile("wi... | Wire_Load.lua: Fixed a leftover include for cl_gpulib.lua. | Wire_Load.lua: Fixed a leftover include for cl_gpulib.lua.
| Lua | apache-2.0 | mitterdoo/wire,wiremod/wire,rafradek/wire,CaptainPRICE/wire,thegrb93/wire,notcake/wire,NezzKryptic/Wire,mms92/wire,sammyt291/wire,immibis/wiremod,garrysmodlua/wire,bigdogmat/wire,Grocel/wire,Python1320/wire,plinkopenguin/wiremod,dvdvideo1234/wire |
d3ffe194727397be8ab7b056e76799d9686c3c89 | lunamark/reader/html.lua | lunamark/reader/html.lua | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
local htmlparser = require("lunamark.htmlparser")
local entities = require("lunamark.entities")
local M = {}
local function convert_entities(s)
return s:gsub("&#[Xx](%x+);", entities.hex_entity):gsub("... | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
local htmlparser = require("lunamark.htmlparser")
local entities = require("lunamark.entities")
local M = {}
local function convert_entities(s)
return s:gsub("&#[Xx](%x+);", entities.hex_entity):gsub("... | Improvements to html reader. | Improvements to html reader.
* Fixed code inside pre.
* Moved function defn out of loop.
| Lua | mit | simoncozens/lunamark,jgm/lunamark,tst2005/lunamark,jgm/lunamark,tst2005/lunamark,simoncozens/lunamark,jgm/lunamark,tst2005/lunamark,simoncozens/lunamark |
41881127aa047dfc61ce27ff2f20c148854e854c | hammerspoon/.hammerspoon/window-management/layouts.lua | hammerspoon/.hammerspoon/window-management/layouts.lua | local export = {}
grid = require("window-management/grid")
helpers = require("window-management/helpers")
local areas = grid.areas
local hsGrid = grid.hsGrid
-- FILTERS
-------------------------------------------------------------------------------
local wf = hs.window.filter
-- Single Apps
w_chrome = wf.new{'Google... | local export = {}
grid = require("window-management/grid")
helpers = require("window-management/helpers")
local areas = grid.areas
local hsGrid = grid.hsGrid
-- FILTERS
-------------------------------------------------------------------------------
local wf = hs.window.filter
local mainScreenName = hs.screen.mainScre... | layouts: fix problem with video windows | layouts: fix problem with video windows
| Lua | mit | francoiscote/dotfiles,francoiscote/dotfiles |
4ff94cd95b47b7710704ea25a53302c3e35a0ec8 | mod_smacks/mod_smacks.lua | mod_smacks/mod_smacks.lua | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | local st = require "util.stanza";
local t_insert, t_remove = table.insert, table.remove;
local math_min = math.min;
local tonumber, tostring = tonumber, tostring;
local add_filter = require "util.filters".add_filter;
local xmlns_sm = "urn:xmpp:sm:2";
local sm_attr = { xmlns = xmlns_sm };
local max_unacked_stanzas =... | mod_smacks: Fix to reply to stream for s2s sessions | mod_smacks: Fix to reply to stream for s2s sessions
| Lua | mit | dhotson/prosody-modules,1st8/prosody-modules,olax/prosody-modules,LanceJenkinZA/prosody-modules,jkprg/prosody-modules,obelisk21/prosody-modules,softer/prosody-modules,1st8/prosody-modules,crunchuser/prosody-modules,cryptotoad/prosody-modules,heysion/prosody-modules,NSAKEY/prosody-modules,prosody-modules/import,Craige/p... |
b130139d962d11d1cd97f0cd062a00856c835e37 | titan-compiler/util.lua | titan-compiler/util.lua | local util = {}
function util.get_file_contents(filename)
local f, err = io.open(filename, "r")
if not f then
return false, err
end
local s = f:read("a")
f:close()
if not s then
return false, "unable to open file " .. filename
else
return s
end
end
function util... | local util = {}
function util.get_file_contents(filename)
local f, err = io.open(filename, "r")
if not f then
return false, err
end
local s = f:read("a")
f:close()
if not s then
return false, "unable to open file " .. filename
else
return s
end
end
function util... | Fix and cleanup get_line_number's binary search | Fix and cleanup get_line_number's binary search
- Return 1 instead of crashing if `xs` is the empty list
- Work around integer overflow when computing the averages
- Clarify the comments
- Document the loop invariants
- Don't use tail recursion (in case we want to rewrite this in Titan)
| Lua | mit | titan-lang/titan-v0,titan-lang/titan-v0,titan-lang/titan-v0 |
189be9fa99c373b434596e868d3eb835c06513f9 | xmake/rules/wdk/mof/xmake.lua | xmake/rules/wdk/mof/xmake.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | FIX WDK path | FIX WDK path
FIX WDK path | Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
dfe9935d96426aad181dc1b078f06bf9a1d0cf2e | config/sipi.init-knora-test.lua | config/sipi.init-knora-test.lua |
--
-- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer,
-- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton.
-- This file is part of Sipi.
-- Sipi is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by... |
--
-- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer,
-- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton.
-- This file is part of Sipi.
-- Sipi is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by... | fix (adapt sipi.init-knora-test.lua) add new error handling functions | fix (adapt sipi.init-knora-test.lua) add new error handling functions
| Lua | agpl-3.0 | dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi |
f9be587a09040469bed2c5e85f5ba6beb6615571 | Modules/Shared/Utility/ColorSequenceUtils.lua | Modules/Shared/Utility/ColorSequenceUtils.lua | ---
-- @module ColorSequenceUtils
local ColorSequenceUtils = {}
local EPSILON = 1e-3
function ColorSequenceUtils.stripe(stripes, backgroundColor3, stripeColor3, percentStripeThickness, percentOffset)
percentOffset = percentOffset or 0.5
percentStripeThickness = math.clamp(percentStripeThickness or 0.5, 0, 1)
if ... | ---
-- @module ColorSequenceUtils
local ColorSequenceUtils = {}
local EPSILON = 1e-3
function ColorSequenceUtils.stripe(stripes, backgroundColor3, stripeColor3, percentStripeThickness, percentOffset)
percentOffset = percentOffset or 0
percentStripeThickness = math.clamp(percentStripeThickness or 0.5, 0, 1)
if pe... | Fix striping | Fix striping
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
99c12f8fd2ac022bb3505986e609b1c5ab644d11 | src/python.lua | src/python.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix python directory | Fix python directory
| Lua | mit | Zefiros-Software/ZPM |
348505c67da49d5ef300168715b4cda3b0360741 | src/CppParser/premake5.lua | src/CppParser/premake5.lua | clang_msvc_flags =
{
"/wd4146", "/wd4244", "/wd4800", "/wd4345",
"/wd4355", "/wd4996", "/wd4624", "/wd4291",
"/wd4251",
"/wd4141", -- 'inline' : used more than once
}
if not (string.starts(action, "vs") and not os.is("windows")) then
project "CppSharp.CppParser"
kind "SharedLib"
language "C++"
SetupN... | clang_msvc_flags =
{
"/wd4146", "/wd4244", "/wd4800", "/wd4345",
"/wd4355", "/wd4996", "/wd4624", "/wd4291",
"/wd4251",
"/wd4141", -- 'inline' : used more than once
}
if not (string.starts(action, "vs") and not os.is("windows")) then
project "CppSharp.CppParser"
kind "SharedLib"
language "C++"
SetupN... | Fixed Premake parser symbols build to point to the correct files. | Fixed Premake parser symbols build to point to the correct files.
| Lua | mit | mono/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,mohtamohit/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,mo... |
9b9f7b171ad00c963213e6a985652ea05af8ad93 | xmake/plugins/project/clang/compile_commands.lua | xmake/plugins/project/clang/compile_commands.lua | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | fix compile_commands plugin | fix compile_commands plugin
| Lua | apache-2.0 | waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
7ccb62cc5a48d173107df2e08898ba1c77b93949 | .hammerspoon/example_config.lua | .hammerspoon/example_config.lua | -- copy this file to config.lua and edit as needed
--
local cfg = {}
cfg.global = {} -- this will be accessible via hsm.cfg in modules
----------------------------------------------------------------------------
local ufile = require('utils.file')
local E = require('hs.application.watcher') -- appwindows events
loc... | -- copy this file to config.lua and edit as needed
--
local cfg = {}
cfg.global = {} -- this will be accessible via hsm.cfg in modules
----------------------------------------------------------------------------
local ufile = require('utils.file')
local E = require('hs.application.watcher') -- appwindows events
loc... | Fix browsers in example config | Fix browsers in example config
| Lua | mit | scottcs/dot_hammerspoon |
f785b29f346e4e54327c40f2db0f0fd0b87de653 | frontend/device/kobo/device.lua | frontend/device/kobo/device.lua | local Generic = require("device/generic/device")
local lfs = require("libs/libkoreader-lfs")
local Geom = require("ui/geometry")
local function yes() return true end
local Kobo = Generic:new{
model = "Kobo",
isKobo = yes,
isTouchDevice = yes, -- all of them are
-- most Kobos have X/Y switched for the... | local Generic = require("device/generic/device")
local lfs = require("libs/libkoreader-lfs")
local Geom = require("ui/geometry")
local function yes() return true end
local Kobo = Generic:new{
model = "Kobo",
isKobo = yes,
isTouchDevice = yes, -- all of them are
-- most Kobos have X/Y switched for the... | Fix the viewport on Kobo Aura (phoenix). | Fix the viewport on Kobo Aura (phoenix).
| Lua | agpl-3.0 | lgeek/koreader,NiLuJe/koreader,Hzj-jie/koreader,robert00s/koreader,houqp/koreader,Frenzie/koreader,Markismus/koreader,pazos/koreader,frankyifei/koreader,koreader/koreader,koreader/koreader,ashang/koreader,poire-z/koreader,apletnev/koreader,ashhher3/koreader,NiLuJe/koreader,mihailim/koreader,chrox/koreader,Frenzie/korea... |
841e8ac4634499007d3ce9434f47172b3ac01d01 | libs/term.lua | libs/term.lua | local prev, pl, luv, dir, T, stdin, exit_seq = ...
local _colors = {
[1] = "white";
[2] = "orange";
[4] = "magenta";
[8] = "lightBlue";
[16] = "yellow";
[32] = "lime";
[64] = "pink";
[128] = "gray";
[256] = "lightGray";
[512] = "cyan";
[1024] = "purple";
[2048] = "blue";
[4096] = "brown";
[8192] = "green... | local prev, pl, luv, dir, T, stdin, exit_seq = ...
local _colors = {
[1] = "white";
[2] = "orange";
[4] = "magenta";
[8] = "lightBlue";
[16] = "yellow";
[32] = "lime";
[64] = "pink";
[128] = "gray";
[256] = "lightGray";
[512] = "cyan";
[1024] = "purple";
[2048] = "blue";
[4096] = "brown";
[8192] = "green... | Fix partial rendering | Fix partial rendering
when the cursor is off to the left of the screen only part of the text
should be rendered
| Lua | mit | CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu |
055b621cf5cdc15b24e78408d610a00f6869b8e0 | modules/luci-mod-rpc/luasrc/controller/rpc.lua | modules/luci-mod-rpc/luasrc/controller/rpc.lua | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.rpc", package.seeall)
function index()
local function session_retrieve(sid, allowed_users)
local util = require "luci.util"
loca... | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.rpc", package.seeall)
function session_retrieve(sid, allowed_users)
local util = require "luci.util"
local sdat = util.ubus("sessio... | luci-mod-rpc: more auth/login fixes, expose further libraries | luci-mod-rpc: more auth/login fixes, expose further libraries
The previous attempt to fix authentication broke login functionality so
rework the code once again, this time with referencing helper functions
directly via the controller scope.
Furthermore, properly expose luci.sys.wifi.getiwinfo() and luci.ip.
For geti... | Lua | apache-2.0 | Noltari/luci,kuoruan/luci,rogerpueyo/luci,remakeelectric/luci,openwrt/luci,artynet/luci,artynet/luci,openwrt/luci,remakeelectric/luci,rogerpueyo/luci,openwrt/luci,kuoruan/lede-luci,kuoruan/luci,artynet/luci,Noltari/luci,Noltari/luci,openwrt-es/openwrt-luci,nmav/luci,kuoruan/luci,artynet/luci,wongsyrone/luci-1,artynet/l... |
39a15d1bef591eef410d9ead34e7c2fdd925a5fd | libs/core/luasrc/init.lua | libs/core/luasrc/init.lua | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | libs/core: make sure that bitlib is loaded, fixes some sdk problems | libs/core: make sure that bitlib is loaded, fixes some sdk problems
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
6a191817c7787b15093ef38e95214b3b8b7de984 | Pooling.lua | Pooling.lua | local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function Pooling:__init(kW, kH, dW, dH, padW, padH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or kW
self.dH = dH or kW
self.padW = padW or 0
self.padH = pad... | local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function Pooling:__init(kW, kH, dW, dH, padW, padH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or kW
self.dH = dH or kW
self.padW = padW or 0
self.padH = pad... | fixing free padding bug in pooling | fixing free padding bug in pooling
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
9a12eaffdd128578cb7244b102f7a202312f87b9 | test/tree-construction.lua | test/tree-construction.lua | -- Test runner for the html5lib tree-construction test suite.
-- Runs quiet by default to avoid clobbering test runner output.
-- Run with VERBOSE=1 in the environment for full output.
local gumbo = require "gumbo"
local Buffer = require "gumbo.Buffer"
local Indent = require "gumbo.serialize.Indent"
local parse = gumb... | -- Test runner for the html5lib tree-construction test suite.
-- Runs quiet by default to avoid clobbering test runner output.
-- Run with VERBOSE=1 in the environment for full output.
local gumbo = require "gumbo"
local Buffer = require "gumbo.Buffer"
local Indent = require "gumbo.serialize.Indent"
local parse = gumb... | Minor style fixes in test/tree-construction.lua | Minor style fixes in test/tree-construction.lua
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
5e402ee7f062b5a3ac17e3845e3c641bd72755ce | editor/lib/lua/editor/edit/CanvasView/PickingManager.lua | editor/lib/lua/editor/edit/CanvasView/PickingManager.lua |
local defaultSortMode = MOAILayer.SORT_Z_ASCENDING
---------------------------------------------------------------------------------
--
-- @type PickingManager
--
---------------------------------------------------------------------------------
local PickingManager = Class( "PickingManager" )
function PickingManage... |
local defaultSortMode = MOAILayer.SORT_PRIORITY_DESCENDING--SORT_Z_ASCENDING
---------------------------------------------------------------------------------
--
-- @type PickingManager
--
---------------------------------------------------------------------------------
local PickingManager = Class( "PickingManager"... | fix pick sprite | fix pick sprite
| Lua | mit | cloudteampro/juma-editor,cloudteampro/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor |
f1efc695e29e0d7a99ae6de7555d85d8f735aedf | nyagos.d/catalog/git.lua | nyagos.d/catalog/git.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- hub exists, replace git command
local hubpath=nyagos.which("hub.exe")
if hubpath then
nyagos.alias.git = "hub.exe"
end
share.git = {}
local getcommits = function(args)
local fd=io.popen("git log --format=... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- hub exists, replace git command
local hubpath=nyagos.which("hub.exe")
if hubpath then
nyagos.alias.git = "hub.exe"
end
share.git = {}
local getcommits = function(args)
local fd=io.popen("git log --format=... | git.lua: fixup keyword completion for 2021/11/07 document and commented feature work | git.lua: fixup keyword completion for 2021/11/07 document and commented feature work
| Lua | bsd-3-clause | tsuyoshicho/nyagos |
a4dbd2df925eb1bdc8fdf286f1615f49355e42db | mods/00_bt_armor/throwing/tnt_arrow.lua | mods/00_bt_armor/throwing/tnt_arrow.lua | minetest.register_craftitem("throwing:arrow_tnt", {
description = "TNT Arrow",
inventory_image = "throwing_arrow_tnt.png",
})
minetest.register_node("throwing:arrow_tnt_box", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-- Shaft
{-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17},
--... | minetest.register_craftitem("throwing:arrow_tnt", {
description = "TNT Arrow",
inventory_image = "throwing_arrow_tnt.png",
})
minetest.register_node("throwing:arrow_tnt_box", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-- Shaft
{-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17},
--... | Fix of the TNT arrow printing and referring to the wrong table | Fix of the TNT arrow printing and referring to the wrong table
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
f552fbc36476b4c2949986ebc2ed8fc82aa137b9 | applications/luci-wol/luasrc/model/cbi/wol.lua | applications/luci-wol/luasrc/model/cbi/wol.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local uc... | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local uc... | applications/luci-wol: fix XSS | applications/luci-wol: fix XSS
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci |
b6c0bdfbf692e9b76fa766654cd0c4d2f3cff152 | eqn/mhd.lua | eqn/mhd.lua | local class = require 'ext.class'
local table = require 'ext.table'
local file = require 'ext.file'
local template = require 'template'
local Equation = require 'eqn.eqn'
local MHD = class(Equation)
MHD.name = 'MHD'
MHD.numStates = 8
MHD.numWaves = 7
MHD.consVars = {'rho', 'mx', 'my', 'mz', 'ETotal', 'bx', 'by', 'b... | local class = require 'ext.class'
local table = require 'ext.table'
local file = require 'ext.file'
local template = require 'template'
local Equation = require 'eqn.eqn'
local MHD = class(Equation)
MHD.name = 'MHD'
MHD.numStates = 8
MHD.numWaves = 7
MHD.consVars = {'rho', 'mx', 'my', 'mz', 'ETotal', 'bx', 'by', 'b... | found another bug | found another bug
| Lua | mit | thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua |
d2536d8b7e9474bd7748b199d1f01a53f332942a | platform/android/llapp_main.lua | platform/android/llapp_main.lua | local A = require("android")
A.dl.library_path = A.dl.library_path .. ":" .. A.dir .. "/libs"
local ffi = require("ffi")
local dummy = require("ffi/posix_h")
local C = ffi.C
-- check uri of the intent that starts this application
local file = A.getIntent()
if file ~= nil then
A.LOGI("intent file path " .. file)
... | local android = require("android")
android.dl.library_path = android.dl.library_path .. ":" .. android.dir .. "/libs"
local ffi = require("ffi")
local dummy = require("ffi/posix_h")
local C = ffi.C
-- check uri of the intent that starts this application
local file = android.getIntent()
if file ~= nil then
androi... | android: fix some warnings on launcher script, no need to chmod binaries as they are uncompressed on each update, A becomes android | android: fix some warnings on launcher script,
no need to chmod binaries as they are uncompressed on each update,
A becomes android
| Lua | agpl-3.0 | koreader/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader,Hzj-jie/koreader,Markismus/koreader,NiLuJe/koreader,koreader/koreader,NiLuJe/koreader,mwoz123/koreader,Frenzie/koreader,pazos/koreader,mihailim/koreader |
dcb50d38ab8244297124a6532ed23e7ed026da3b | hammerspoon/smart_modifier_keys.lua | hammerspoon/smart_modifier_keys.lua | -- Make the modifiers keys smarter:
-- Tap ctrl -> esc.
-- Tap shift -> switch input method.
-- Whether ctrl and shift is being pressed alone.
local ctrlPressed = false
local shiftPressed = false
local prevModifiers = {}
local log = hs.logger.new('smart_modifier_keys','debug')
hs.eventtap.new({hs.eventtap.event.typ... | -- Make the modifiers keys smarter:
-- Tap ctrl -> esc.
-- Tap shift -> switch input method.
local module = {}
-- Whether ctrl and shift is being pressed alone.
module.ctrlPressed = false
module.shiftPressed = false
module.prevModifiers = {}
module.log = hs.logger.new('smart_modifier_keys','debug')
module.modifier... | Fix listener getting GCed | Fix listener getting GCed
| Lua | mit | raulchen/dotfiles,raulchen/dotfiles |
9dccbe7792cfdc6ffd56348aa9092004526b3794 | MCServer/Plugins/APIDump/Hooks/OnServerPing.lua | MCServer/Plugins/APIDump/Hooks/OnServerPing.lua | (cClientHandle & a_ClientHandle, AString & a_ServerDescription, int & a_OnlinePlayersCount, int & a_MaxPlayersCount, AString & a_Favicon);
return
{
HOOK_SERVER_PING =
{
CalledWhen = "Client pings the server from the server list.",
DefaultFnName = "OnServerPing", -- also used as pagename
Desc = [[
A plugi... | return
{
HOOK_SERVER_PING =
{
CalledWhen = "Client pings the server from the server list.",
DefaultFnName = "OnServerPing", -- also used as pagename
Desc = [[
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
clients in the server server list. It can change... | Fixed line left in. | Fixed line left in. | Lua | apache-2.0 | ionux/MCServer,mc-server/MCServer,SamOatesPlugins/cuberite,nichwall/cuberite,Frownigami1/cuberite,tonibm19/cuberite,Tri125/MCServer,thetaeo/cuberite,johnsoch/cuberite,zackp30/cuberite,Fighter19/cuberite,zackp30/cuberite,birkett/MCServer,birkett/cuberite,birkett/cuberite,electromatter/cuberite,nichwall/cuberite,mmdk95/c... |
471e73d2037d6875b682651d64d063db5900a50a | share/lua/website/videobash.lua | share/lua/website/videobash.lua |
-- libquvi-scripts
-- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
-- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GN... |
-- libquvi-scripts
-- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
-- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GN... | FIX: videobash.lua: media URL parsing | FIX: videobash.lua: media URL parsing
| Lua | lgpl-2.1 | hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts |
5aa1e3e13876809ff14264429ad98fa3d5457b99 | xmake/scripts/action/_build.lua | xmake/scripts/action/_build.lua | --!The Automatic Cross-platform Build Tool
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is dis... | --!The Automatic Cross-platform Build Tool
--
-- XMake is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
--
-- XMake is dis... | fix rebuild bug | fix rebuild bug
| Lua | apache-2.0 | tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
e0154a63a4caa38aa653d9b4ca39baa9e094ff35 | lua/wire/client/rendertarget_fix.lua | lua/wire/client/rendertarget_fix.lua | WireLib.RTFix = {}
local RTFix = WireLib.RTFix
---------------------------------------------------------------------
-- RTFix Lib
---------------------------------------------------------------------
RTFix.List = {}
function RTFix:Add( ClassName, NiceName, Function )
RTFix.List[ClassName] = { NiceName, Function }
en... | WireLib.RTFix = {}
local RTFix = WireLib.RTFix
---------------------------------------------------------------------
-- RTFix Lib
---------------------------------------------------------------------
RTFix.List = {}
function RTFix:Add( ClassName, NiceName, Function )
RTFix.List[ClassName] = { NiceName, Function }
en... | Added EGP Emitters to the RT fix code. | Added EGP Emitters to the RT fix code.
| Lua | apache-2.0 | wiremod/wire,dvdvideo1234/wire,garrysmodlua/wire,Grocel/wire,sammyt291/wire,NezzKryptic/Wire |
2088bded304c4a7ce1a2b88aebe601ac3e429067 | core/length.lua | core/length.lua | local _length
_length = std.object {
length = 0,
stretch = 0,
shrink = 0,
_type = "Length",
absolute = function (self, context)
return _length { length = SILE.toAbsoluteMeasurement(self.length),
stretch = SILE.toAbsoluteMeasurement(self.stretch),
shrink = SILE.toAbsoluteMeasurement(self.shrin... | local _length
_length = std.object {
length = 0,
stretch = 0,
shrink = 0,
_type = "Length",
absolute = function (self, context)
return _length { length = SILE.toAbsoluteMeasurement(self.length),
stretch = SILE.toAbsoluteMeasurement(self.stretch),
shrink = SILE.toAbsoluteMeasurement(self.shrin... | Restore (and fix) function to multiply lengths | Restore (and fix) function to multiply lengths
| Lua | mit | alerque/sile,neofob/sile,simoncozens/sile,alerque/sile,neofob/sile,simoncozens/sile,simoncozens/sile,neofob/sile,neofob/sile,simoncozens/sile,alerque/sile,alerque/sile |
06d6055374fe358c6ed9263e2f23db5744118cc9 | battery-widget/battery.lua | battery-widget/battery.lua | local wibox = require("wibox")
local awful = require("awful")
local naughty = require("naughty")
local watch = require("awful.widget.watch")
-- acpi sample outputs
-- Battery 0: Discharging, 75%, 01:51:38 remaining
-- Battery 0: Charging, 53%, 00:57:43 until charged
local PATH_TO_ICONS = "/usr/share/icons/Arc/status/... | local awful = require("awful")
local naughty = require("naughty")
local watch = require("awful.widget.watch")
local wibox = require("wibox")
-- acpi sample outputs
-- Battery 0: Discharging, 75%, 01:51:38 remaining
-- Battery 0: Charging, 53%, 00:57:43 until charged
local PATH_TO_ICONS = "/usr/share/icons/Arc/status/... | Attempt to fix memory leak | Attempt to fix memory leak
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets,streetturtle/AwesomeWM |
8e8eb10f8d9991e0d268cf5febc9c885e5b72df8 | lstm_embedding.lua | lstm_embedding.lua |
require 'nn'
require 'rnn' -- IMP: dont use LSTM package from nnx - buggy
require 'nngraph'
--require 'cunn'
-- IMP if args is not passed, global 'args' are taken.
LSTM_MODEL = nil
return function(args)
-- overriding LSTM factory functions below
LSTM = nn.LSTM
-- incoming is {input(t), output(t-... |
require 'nn'
require 'rnn' -- IMP: dont use LSTM package from nnx - buggy
require 'nngraph'
--require 'cunn'
-- IMP if args is not passed, global 'args' are taken.
LSTM_MODEL = nil
return function(args)
-- overriding LSTM factory functions below
LSTM = nn.LSTM
-- incoming is {input(t), output(t-... | bug fix with new rnn update | bug fix with new rnn update
| Lua | mit | karthikncode/text-world-player,karthikncode/text-world-player |
f64ddb0f8cc5ca17dcbd7f7df8c631003f2ec7e3 | vrp/client/gui.lua | vrp/client/gui.lua | -- MENU
function tvRP.openMenuData(menudata)
SendNUIMessage({act="open_menu", menudata = menudata})
end
function tvRP.closeMenu()
SendNUIMessage({act="close_menu"})
end
-- PROMPT
function tvRP.prompt(title,default_text)
SendNUIMessage({act="prompt",title=title,text=tostring(default_text)})
SetNuiFocus(true)... | -- MENU
function tvRP.openMenuData(menudata)
SendNUIMessage({act="open_menu", menudata = menudata})
end
function tvRP.closeMenu()
SendNUIMessage({act="close_menu"})
end
-- PROMPT
function tvRP.prompt(title,default_text)
SendNUIMessage({act="prompt",title=title,text=tostring(default_text)})
SetNuiFocus(true)... | Try to fix cfg gui issue | Try to fix cfg gui issue
| Lua | mit | ENDrain/vRP-plusplus,ImagicTheCat/vRP,ImagicTheCat/vRP,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus |
21328113ddcd07a1711ce0a14c6c4abe6d1de503 | libs/http/luasrc/http/protocol/conditionals.lua | libs/http/luasrc/http/protocol/conditionals.lua | --[[
HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | --[[
HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | libs/http: fix incorrent treatment of If-None-Match (#100) | libs/http: fix incorrent treatment of If-None-Match (#100)
| Lua | apache-2.0 | Wedmer/luci,rogerpueyo/luci,remakeelectric/luci,slayerrensky/luci,zhaoxx063/luci,maxrio/luci981213,mumuqz/luci,cappiewu/luci,male-puppies/luci,oyido/luci,cshore/luci,Hostle/luci,openwrt/luci,daofeng2015/luci,Sakura-Winkey/LuCI,Hostle/luci,daofeng2015/luci,fkooman/luci,jorgifumi/luci,jorgifumi/luci,forward619/luci,oneru... |
7f33a366cf06569c35ad031e0f611dd48eb49d3c | applications/luci-wol/luasrc/model/cbi/wol.lua | applications/luci-wol/luasrc/model/cbi/wol.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: olsrd.lua... | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local sy... | applications/luci-wol: fix copyright | applications/luci-wol: fix copyright
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6092 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
bd52e034c166c7e2abf9b0c7744894c1b55c9f87 | Framework/Platforms/Make/NaoRobot.lua | Framework/Platforms/Make/NaoRobot.lua | -- NaoRobot is the platform for the physical Nao >= v4
project "NaoRobot"
kind "StaticLib"
language "C++"
includedirs {
"../Source/DCM"
}
files {
"../Source/DCM/NaoRobot/**.cpp",
"../Source/DCM/NaoRobot/**.h",
"../Source/DCM/Tools/**.cpp",
"../Source/DCM/Tools/**.h"
}
links... | -- NaoRobot is the platform for the physical Nao >= v4
project "NaoRobot"
kind "StaticLib"
language "C++"
includedirs {
"../Source/DCM"
}
files {
"../Source/DCM/NaoRobot/**.cpp",
"../Source/DCM/NaoRobot/**.h",
"../Source/DCM/Tools/**.cpp",
"../Source/DCM/Tools/**.h"
}
links... | bugfix: solve compatimility with the old toolchain | bugfix: solve compatimility with the old toolchain
| Lua | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
80253da5638aa45685f2837da07c36ec79e03f3a | arduino+esp01/sendData.lua | arduino+esp01/sendData.lua | file.open("keys")
PuKey = file.readline()
PrKey = file.readline()
file.close()
print(PuKey)
print(PrKey)
if (currentDust.P1~=nil) then
if (wifi.sta.status()~=5) then
wifi.sleeptype(0)
wifi.setmode(1)
wifi.sta.config(ssid,pass)
wifi.sta.connect()
end
local address = "54.... | file.open("keys")
PuKey = file.readline()
PrKey = file.readline()
file.close()
print(PuKey)
print(PrKey)
if (currentDust.P1~=nil) then
if (wifi.sta.status()~=5) then
wifi.sleeptype(0)
wifi.setmode(1)
dofile("tryConnect.lua")
end
local address = "54.86.132.254" -- IP for data.sp... | fixed wifi connecting | fixed wifi connecting
| Lua | mit | wordsforthewise/ESP-8266-particle-sensor |
cd17cb2de1a23e98572072ef1fdd9477673d8bf4 | util/dataforms.lua | util/dataforms.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type, next = tost... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type, next = tost... | util.dataforms: Add support for generating type='fixed' fields | util.dataforms: Add support for generating type='fixed' fields
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
c81138f994fea343ca3c8df6f50dab5d00147287 | editor/console.lua | editor/console.lua | local terminal = require("terminal")
local runtime = require("runtime")
local lume = require("libraries.lume")
-- use lume for serialization, which is so lame but good enough for nom
local pps = lume.serialize
local console = lume.clone(terminal) --Clone the terminal
console.textbuffer, console.textcolors, console.cu... | local terminal = require("terminal")
local runtime = require("runtime")
local lume = require("libraries.lume")
-- use lume for serialization, which is so lame but good enough for nom
local pps = lume.serialize
local console = lume.clone(terminal) --Clone the terminal
console.textbuffer, console.textcolors, console.cu... | Fix printing in console. | Fix printing in console.
| Lua | mit | RamiLego4Game/LIKO-12 |
59f766e8c759597e28026ecd8fff1b7cacda4d5a | src_trunk/resources/job-system/s_carjacker_job.lua | src_trunk/resources/job-system/s_carjacker_job.lua | vehicles = {}
vehicles [1] = {602}
vehicles [2] = {496}
vehicles [3] = {517}
vehicles [4] = {401}
vehicles [5] = {410}
vehicles [6] = {518}
vehicles [7] = {600}
vehicles [8] = {527}
vehicles [9] = {436}
vehicles [10] = {589}
vehicles [11] = {419}
vehicles [12] = {549}
vehicles [13] = {526}
vehicles... | vehicles = {}
vehicles [1] = {602}
vehicles [2] = {496}
vehicles [3] = {517}
vehicles [4] = {401}
vehicles [5] = {410}
vehicles [6] = {518}
vehicles [7] = {600}
vehicles [8] = {527}
vehicles [9] = {436}
vehicles [10] = {589}
vehicles [11] = {419}
vehicles [12] = {549}
vehicles [13] = {526}
vehicles... | Carjacker bug fix | Carjacker bug fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@475 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
bef55ac3f83ff34ee0507b0b76cba12df9a14f31 | sessions.lua | sessions.lua | local check_type = require("textadept-nim.utils").check_type
local errortips = require("textadept-nim.errortips")
local parse_errors = errortips.parse_errors
local error_handler = errortips.error_handler
local get_project = require("textadept-nim.project").detect_project
local nimsuggest_executable = require("textadept... | local check_type = require("textadept-nim.utils").check_type
local errortips = require("textadept-nim.errortips")
local parse_errors = errortips.parse_errors
local error_handler = errortips.error_handler
local get_project = require("textadept-nim.project").detect_project
local nimsuggest_executable = require("textadept... | Fixed error message when session_name not exists in _M.active | Fixed error message when session_name not exists in _M.active
| Lua | mit | xomachine/textadept-nim |
f9491dc8daf48f1204bf9e775fc0cb00b319289f | Quadtastic/Scrollpane.lua | Quadtastic/Scrollpane.lua | local Layout = require("Layout")
local Scrollpane = {}
local scrollbar_margin = 7
local quads = {
up_button = love.graphics.newQuad(80, 0, 7, 7, 128, 128),
down_button = love.graphics.newQuad(80, 9, 7, 7, 128, 128),
left_button = love.graphics.newQuad(96, 9, 7, 7, 128, 128),
right_button = love.grap... | local Layout = require("Layout")
local Scrollpane = {}
local scrollbar_margin = 7
local quads = {
up_button = love.graphics.newQuad(80, 0, 7, 7, 128, 128),
down_button = love.graphics.newQuad(80, 9, 7, 7, 128, 128),
left_button = love.graphics.newQuad(96, 9, 7, 7, 128, 128),
right_button = love.grap... | Fix Scrollpane setting the wrong scissor dimensions | Fix Scrollpane setting the wrong scissor dimensions
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
3fa34da3685614a3cadcc5e6b34cb6f95774d0a4 | src/nodes/platform.lua | src/nodes/platform.lua | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
lo... | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
lo... | Fix whitespace | Fix whitespace
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
5b5f6856d30efd916e86bf653eda5035fd2a37dd | frontend/ui/reader/readercropping.lua | frontend/ui/reader/readercropping.lua | require "ui/bbox"
ReaderCropping = InputContainer:new{}
function ReaderCropping:onPageCrop(mode)
if mode == "auto" then return end
local orig_reflow_mode = self.document.configurable.text_wrap
self.document.configurable.text_wrap = 0
self.ui:handleEvent(Event:new("CloseConfig"))
self.cropping_zoommode = true
se... | require "ui/bbox"
ReaderCropping = InputContainer:new{}
function ReaderCropping:onPageCrop(mode)
if mode == "auto" then return end
local orig_reflow_mode = self.document.configurable.text_wrap
self.document.configurable.text_wrap = 0
self.ui:handleEvent(Event:new("CloseConfig"))
self.cropping_zoommode = true
se... | fix visible_area recalculate for manual crop in reflow mode | fix visible_area recalculate for manual crop in reflow mode
| Lua | agpl-3.0 | Hzj-jie/koreader-base,apletnev/koreader-base,mwoz123/koreader,houqp/koreader,NiLuJe/koreader,Hzj-jie/koreader-base,robert00s/koreader,NiLuJe/koreader,houqp/koreader-base,apletnev/koreader,frankyifei/koreader,chrox/koreader,Frenzie/koreader,mihailim/koreader,koreader/koreader-base,Frenzie/koreader-base,noname007/koreade... |
8416506555a97b629dc25b25471efb8233b03e5e | build/LLVM.lua | build/LLVM.lua | -- Setup the LLVM dependency directories
LLVMRootDir = depsdir .. "/llvm/"
LLVMBuildDir = LLVMRootDir .. "llvm/build/"
require "scripts/LLVM"
function SearchLLVM()
local pkg_path = basedir .. "/scripts/" .. get_llvm_package_name()
print(path.getabsolute(pkg_path))
if os.isdir(pkg_path) then
LLVMRootDir = p... | -- Setup the LLVM dependency directories
LLVMRootDir = depsdir .. "/llvm/"
require "scripts/LLVM"
function SearchLLVM()
local pkg_path = basedir .. "/scripts/" .. get_llvm_package_name()
print(path.getabsolute(pkg_path))
if os.isdir(pkg_path) then
LLVMRootDir = pkg_path
elseif os.isdir(LLVMRootDir) then
... | Fixed the LLVM build directory path when searching for the correct LLVM. | Fixed the LLVM build directory path when searching for the correct LLVM.
| Lua | mit | mohtamohit/CppSharp,mono/CppSharp,mono/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,u255436/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,u255436/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,mono/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,mono/CppSharp,ddobrev/CppS... |
c5df72439f8e753b456feaff288f475f38396efa | lib/alpha_util.lua | lib/alpha_util.lua | local w2nn = require 'w2nn'
local reconstruct = require 'reconstruct'
local image = require 'image'
local iproc = require 'iproc'
local gm = require 'graphicsmagick'
alpha_util = {}
alpha_util.sum2d = nn.SpatialConvolutionMM(1, 1, 3, 3, 1, 1, 1, 1):cuda()
alpha_util.sum2d.weight:fill(1)
alpha_util.sum2d.bias:zero()
f... | local w2nn = require 'w2nn'
local reconstruct = require 'reconstruct'
local image = require 'image'
local iproc = require 'iproc'
local gm = require 'graphicsmagick'
alpha_util = {}
function alpha_util.make_border(rgb, alpha, offset)
if not alpha then
return rgb
end
local sum2d = nn.SpatialConvolutionM... | Fix cuda tensor error in async environment | Fix cuda tensor error in async environment
| Lua | mit | nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,higankanshi/waifu2x,zyhkz/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,higankanshi/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x |
2fc1eb7e0e85a5043abd0dcf696c829cf8858940 | kong/plugins/session/storage/kong.lua | kong/plugins/session/storage/kong.lua | local singletons = require "kong.singletons"
local concat = table.concat
local tonumber = tonumber
local setmetatable = setmetatable
local floor = math.floor
local now = ngx.now
local kong_storage = {}
kong_storage.__index = kong_storage
function kong_storage.new(config)
return setmetat... | local singletons = require "kong.singletons"
local concat = table.concat
local tonumber = tonumber
local setmetatable = setmetatable
local floor = math.floor
local now = ngx.now
local kong_storage = {}
kong_storage.__index = kong_storage
function kong_storage.new(config)
return setmetat... | fix(session) make sure ttl doesn't try to call dao in header_filter phase | fix(session) make sure ttl doesn't try to call dao in header_filter phase
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
a257e0f39ab1fa62c5f5bea046d5cda8f1557d00 | kong/db/schema/typedefs.lua | kong/db/schema/typedefs.lua | --- A library of ready-to-use type synonyms to use in schema definitions.
-- @module kong.db.schema.typedefs
local utils = require "kong.tools.utils"
local openssl_pkey = require "openssl.pkey"
local openssl_x509 = require "openssl.x509"
local Schema = require("kong.db.schema")
local socket_url = require("socket.url")... | --- A library of ready-to-use type synonyms to use in schema definitions.
-- @module kong.db.schema.typedefs
local utils = require "kong.tools.utils"
local openssl_pkey = require "openssl.pkey"
local openssl_x509 = require "openssl.x509"
local Schema = require("kong.db.schema")
local socket_url = require("socket.url")... | feat(schema) catch typedef typos to print a nicer error | feat(schema) catch typedef typos to print a nicer error
A typo in a typedef could lead to very cryptic error messages. This adds a
metatable which catches accesses to unknown fields, producing an immediate
error that is more evident for plugin authors. Since the metatable only hits
on invalid accesses which are alw... | Lua | apache-2.0 | Kong/kong,Kong/kong,Mashape/kong,Kong/kong |
13947897ea5af0afc4ea46db4dbfeb63ee557f94 | src/gluttony.lua | src/gluttony.lua | local sentinel = {}
local end_program = {}
local end_quote = {}
local function exit (operands) print ('result', unpack (operands)) print ('exit') end
local function quote (operands) return operands end
local function operator_prototype (operators, execute)
local delimit_counter = 1
local delimiter = sentinel
... | local sentinel = {}
local end_program = {}
local end_quote = {}
local function exit (operands) print ('result', unpack (operands)) print ('exit') end
local function quote (operands) return operands end
local function operator_prototype (operators, execute)
local delimit_counter = 1
local delimiter = sentinel
... | Fixed evaluation. | Fixed evaluation.
| Lua | mit | alisa-dolinsky/Thirst,alisa-dolinsky/Gluttony,Alisaxy/Thirst |
cea9f62b62ef491c29140992b7e33a801b5fa87d | src/utils.lua | src/utils.lua | local utils = {}
function utils.curl(url)
local f = io.popen(('curl -s -m 5 "%s"'):format(url))
local r = f:read("*a")
f:close()
return r
end
function utils.wget(url)
local fn = "/tmp/" ..tostring(math.random())
os.execute('wget --timeout=0 --waitretry=0 --tries=1 -O ' .. fn .. ' "' .. url .. ... | local utils = {}
function utils.curl(url)
local f = io.popen(('curl -s -m 5 "%s"'):format(url))
local r = f:read("*a")
f:close()
return r
end
function utils.wget(url)
local fn = "/tmp/" ..tostring(math.random())
os.execute('wget --timeout=0 --waitretry=0 --tries=1 -O ' .. fn .. ' "' .. url .. ... | fix: a patch for integer | fix: a patch for integer
| Lua | apache-2.0 | SJoshua/Project-Small-R |
d098213fc60109b21ae4014357bab8c7fe0b056b | lua/job.lua | lua/job.lua | local _M = {
_VERSION = "1.1.0"
}
local lock = require "resty.lock"
local JOBS = ngx.shared.jobs
local ipairs = ipairs
local update_time = ngx.update_time
local ngx_now = ngx.now
local worker_exiting = ngx.worker.exiting
local timer_at = ngx.timer.at
local ngx_log = ngx.log
local INFO, ERR, WARN = ngx.INFO, ngx.E... | local _M = {
_VERSION = "1.8.5"
}
local lock = require "resty.lock"
local JOBS = ngx.shared.jobs
local ipairs = ipairs
local update_time = ngx.update_time
local ngx_now = ngx.now
local worker_exiting = ngx.worker.exiting
local timer_at = ngx.timer.at
local ngx_log = ngx.log
local INFO, ERR, WARN = ngx.INFO, ngx.E... | fix job | fix job
| Lua | bsd-2-clause | ZigzagAK/nginx-resty-auto-healthcheck-config,ZigzagAK/nginx-resty-auto-healthcheck-config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.