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
7e07ea5a1f85c072e0283783db200231168667dd
commands.lua
commands.lua
require "keys" Keydef = { keycode = nil, modifier = nil, descr = nil } function Keydef:_new(obj) -- obj definition obj = obj or {} setmetatable(obj, self) self.__index = self self.__tostring=Keydef.tostring return obj end function Keydef:new(keycode,modifier,descr) obj = Keydef:_new() obj.keycode = keycode ...
require "keys" Keydef = { keycode = nil, modifier = nil, descr = nil } function Keydef:_new(obj) -- obj definition obj = obj or {} setmetatable(obj, self) self.__index = self self.__tostring=Keydef.tostring return obj end function Keydef:new(keycode,modifier,descr) obj = Keydef:_new() obj.keycode = keycod...
fix: bug in Commands:new()
fix: bug in Commands:new() assign a new map to every created object
Lua
agpl-3.0
houqp/koreader-base,noname007/koreader,frankyifei/koreader-base,Frenzie/koreader,apletnev/koreader-base,pazos/koreader,ashang/koreader,Hzj-jie/koreader-base,frankyifei/koreader-base,mwoz123/koreader,NiLuJe/koreader-base,koreader/koreader-base,NiLuJe/koreader,chrox/koreader,Hzj-jie/koreader,frankyifei/koreader,Frenzie/k...
e050b58a48fba493920024625933ff6a40422bb4
kong/vaults/env/init.lua
kong/vaults/env/init.lua
local type = type local upper = string.upper local kong = kong local ENV = {} local function init() local ffi = require "ffi" ffi.cdef("extern char **environ;") local e = ffi.C.environ if not e then kong.log.warn("could not access environment variables") end local find = string.find local sub =...
local type = type local gsub = string.gsub local upper = string.upper local kong = kong local ENV = {} local function init() local ffi = require "ffi" ffi.cdef("extern char **environ;") local e = ffi.C.environ if not e then kong.log.warn("could not access environment variables") end local find = ...
fix(pdk) env vault to replace "-" in resource with "_"
fix(pdk) env vault to replace "-" in resource with "_" ### Summary This will just convert possible `-` in resource name with `_` when looking up for an environment variable.
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
518cfd360c935f1a074cbf8920daec23d9950a3e
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
Loader defines source in addition to prefix.
Loader defines source in addition to prefix.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
257a28232be5db0d09e573e80b1471e5d83594c3
Hydra/API/repl.lua
Hydra/API/repl.lua
--- === repl === --- --- The REPL (Read-Eval-Print-Loop) is excellent for exploring and experiment with Hydra's API. --- --- It has all of the familiar readline-like keybindings, including C-b, C-f, M-b, M-f, etc; use C-p and C-n to browse command history. --- --- Type `help` in the REPL for info on how to use the docu...
--- === repl === --- --- The REPL (Read-Eval-Print-Loop) is excellent for exploring and experiment with Hydra's API. --- --- It has all of the familiar readline-like keybindings, including C-b, C-f, M-b, M-f, etc; use C-p and C-n to browse command history. --- --- Type `help` in the REPL for info on how to use the docu...
Took note of repl.open() bug; fixes #280.
Took note of repl.open() bug; fixes #280.
Lua
mit
ocurr/hammerspoon,lowne/hammerspoon,bradparks/hammerspoon,tmandry/hammerspoon,Habbie/hammerspoon,kkamdooong/hammerspoon,CommandPost/CommandPost-App,TimVonsee/hammerspoon,ocurr/hammerspoon,cmsj/hammerspoon,trishume/hammerspoon,joehanchoi/hammerspoon,Hammerspoon/hammerspoon,peterhajas/hammerspoon,nkgm/hammerspoon,heptal/...
8858c4796a5862107e60aec95a936dbbdd12b195
whisper.lua
whisper.lua
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if not EPGP.db.profile.auto_standby_whispers then return end if not msg:match("epgp ...
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if not msg:match("epgp standby") then return end local member = msg:match("epgp sta...
Fix standby awards. This fixes issue 330.
Fix standby awards. This fixes issue 330.
Lua
bsd-3-clause
sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,hayword/tfatf_epgp,sheldon/epgp
b0f4ed812f9667586541c36ee15f26afe409a009
projects/game003/scripts/app/controllers/Communication.lua
projects/game003/scripts/app/controllers/Communication.lua
local Communication = class("Communication") local url = "http://168.168.8.105:8765" function Communication:ctor() end function Communication:onRequestFinished( event ) local request = event.request if event.name == "complete" then local code = request:getResponseStatusCode() if code ~= 200 then printf("Resp...
local Communication = class("Communication") local url = "http://168.168.8.105:8765" function Communication:ctor() end function onRequestFinished( event ) local request = event.request if event.name == "completed" then local code = request:getResponseStatusCode() if code ~= 200 then printf("Response not comp...
bug修复
bug修复
Lua
mit
AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile,AdoBeatTheWorld/waytomobile
bb0c01757def3163471bf2a94aa081d90fbf3390
frontend/fontlist.lua
frontend/fontlist.lua
local CanvasContext = require("document/canvascontext") local FontList = { fontdir = "./fonts", fontlist = {}, } --[[ These non-LGC Kindle system fonts fail CRe's moronic header check. --]] local kindle_fonts_blacklist = { ["DiwanMuna-Bold.ttf"] = true, ["DiwanMuna-Regular.ttf"] = true, ["HYGothic...
local CanvasContext = require("document/canvascontext") local FontList = { fontdir = "./fonts", fontlist = {}, } --[[ These non-LGC Kindle system fonts fail CRe's moronic header check. Also applies to a number of LGC fonts that have different family names for different styles... (Those are actually "fixed" vi...
Blacklist a few Amazon Ember styles to get the main ones to behave. (#5951)
Blacklist a few Amazon Ember styles to get the main ones to behave. (#5951) Fix #5950
Lua
agpl-3.0
mwoz123/koreader,NiLuJe/koreader,Frenzie/koreader,Markismus/koreader,pazos/koreader,mihailim/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,koreader/koreader,Hzj-jie/koreader,koreader/koreader
a6acf0db4e8aad8c6a6f78d2e5b060a416aa17e1
src/bot/bin_game_bot.lua
src/bot/bin_game_bot.lua
--[[ Global variables: * int size * state[0-col][0-row] = value of cell Functions called from C++: * int getDeskSize() * int getWinNumber() * int getTimeNumber() * 0-int, 0-int, 0-int, 0-int getIndex() returns coordinates of joined cells * output(model) provides current state of game model has the following m...
--[[ Global variables: * int size * state[0-col][0-row] = value of cell Functions called from C++: * int getDeskSize() * int getWinNumber() * int getTimeNumber() * 0-int, 0-int, 0-int, 0-int getIndex() returns coordinates of joined cells * output(model) provides current state of game model has the following m...
Fix mistakes
Fix mistakes
Lua
mit
zer0main/bin_game_mvc
d5d47a90e2273bd120fdf33a8f1b92c598155f2b
tests/x.lua
tests/x.lua
di.spawn.run({"Xvfb", ":1", "-screen", "0", "1600x1200x24+32"}, true) di.spawn.run({"Xvfb", ":2", "-screen", "0", "1600x1200x24+32"}, true) di.env.DISPLAY=":1" di.event.timer(0.2).on("elapsed", true, function() -- wait a awhile for Xvfb to start o = di.xorg.connect() if o.errmsg then print(o.errmsg...
di.load_plugin("./plugins/xorg/di_xorg.so") di.spawn.run({"Xvfb", ":1", "-screen", "0", "1600x1200x24+32"}, true) di.spawn.run({"Xvfb", ":2", "-screen", "0", "1600x1200x24+32"}, true) di.env.DISPLAY=":1" di.event.timer(0.2).on("elapsed", true, function() -- wait a awhile for Xvfb to start o = di.xorg.connect()...
Fix missing load_plugin
Fix missing load_plugin
Lua
mpl-2.0
yshui/deai,yshui/deai,yshui/deai
6528d5684a2886e0000322aebff682847f1f3b23
lib/core/src/quanta/core/entity/Entity.lua
lib/core/src/quanta/core/entity/Entity.lua
u8R""__RAW_STRING__( local U = require "togo.utility" local O = require "Quanta.Object" local Match = require "Quanta.Match" local Measurement = require "Quanta.Measurement" local M = U.module(...) U.class(M) function M:__init(name) self.is_category = false self.name = nil self.name_hash = O.NAME_NULL self.descr...
u8R""__RAW_STRING__( local U = require "togo.utility" local O = require "Quanta.Object" local Match = require "Quanta.Match" local Measurement = require "Quanta.Measurement" local M = U.module(...) M.Type = { generic = 1, category = 2, universe = 3, } U.class(M) function M:__init(name) self.type = M.Type.generi...
lib/core/entity/Entity.lua: simplified types; fixed type checks.
lib/core/entity/Entity.lua: simplified types; fixed type checks.
Lua
mit
komiga/quanta,komiga/quanta,komiga/quanta
2497eb9ce7e9ed00d0cfd7fdda52d1d0be1cacf7
roles/neovim/config/lua/plugins/cmp.lua
roles/neovim/config/lua/plugins/cmp.lua
-- Setup nvim-cmp. local cmp = require('cmp') local lspkind = require('lspkind') local source_mapping = { buffer = "[Buffer]", nvim_lsp = "[LSP]", nvim_lua = "[Lua]", cmp_tabnine = "[TN]", path = "[Path]", cmp_git = "[Git]", } cmp.setup({ snippet = { expand = function(args) require('luasnip')...
-- Setup nvim-cmp. local cmp = require('cmp') local lspkind = require('lspkind') local source_mapping = { buffer = "[Buffer]", nvim_lsp = "[LSP]", nvim_lua = "[Lua]", cmp_tabnine = "[TN]", path = "[Path]", cmp_git = "[Git]", } cmp.setup({ snippet = { expand = function(args) require('luasnip')...
Fixed autocomplete in commandline with cmp
Fixed autocomplete in commandline with cmp
Lua
mit
Irubataru/dotfiles,Irubataru/dotfiles,Irubataru/dotfiles
66ac24ad35e5b1e56793fede68719e276d5136ef
Modules/Legacy/qGUI/3DRender/ModelRender3D.lua
Modules/Legacy/qGUI/3DRender/ModelRender3D.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local ScreenSpace = LoadCustomLibrary("ScreenSpace") -- @author Quenty local ModelRender3D = {} ModelRender3D.__ind...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local ScreenSpace = LoadCustomLibrary("ScreenSpace") -- @author Quenty local ModelRender3D = {} ModelRender3D.__ind...
Fix ModelRender3D to lock to camera, fixes distortion
Fix ModelRender3D to lock to camera, fixes distortion
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
f5235d5bc97c42803d31e3298b9dfd6868dbe638
hostinfo/packages.lua
hostinfo/packages.lua
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(hostinfo/packages): Make output more consistent with other checks. Closes #804
fix(hostinfo/packages): Make output more consistent with other checks. Closes #804
Lua
apache-2.0
kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent
43900f64b32c32b71d8bfcc2f826efaa4ef92284
verizon.lua
verizon.lua
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.download_ch...
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.download_ch...
verizon.lua: Fix string compare. Assert fail on else fall-through for debugging.
verizon.lua: Fix string compare. Assert fail on else fall-through for debugging.
Lua
unlicense
ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab
d3ff54291d904e75cad558c8853f5c87dd1bffee
busted/outputHandlers/junit.lua
busted/outputHandlers/junit.lua
local xml = require 'pl.xml' local socket = require("socket") local string = require("string") return function(options, busted) local handler = require 'busted.outputHandlers.base'(busted) local xml_doc local suiteStartTime, suiteEndTime handler.suiteStart = function() suiteStartTime = socket.gettime() ...
local xml = require 'pl.xml' local socket = require("socket") local string = require("string") return function(options, busted) local handler = require 'busted.outputHandlers.base'(busted) local xml_doc local suiteStartTime, suiteEndTime handler.suiteStart = function() suiteStartTime = socket.gettime() ...
Fix junit output
Fix junit output This fixes the following errors in the junit output handler: * Skip test count * Failure stack trace message * Missing error tags for describe/it errors * Missing trace info causes busted to crash * Missing pending (skip) tags Fixes issue #333
Lua
mit
xyliuke/busted,leafo/busted,Olivine-Labs/busted,istr/busted,o-lim/busted,ryanplusplus/busted,mpeterv/busted,nehz/busted,sobrinho/busted,DorianGray/busted
b81ad8d44207f751720a258e7b168b4912087e8c
IPyLua/rlcompleter.lua
IPyLua/rlcompleter.lua
--[[ IPyLua Copyright (c) 2015 Francisco Zamora-Martinez. Simplified, less deps and making it work. https://github.com/pakozm/IPyLua Released under the MIT License, see the LICENSE file. usage: lua IPyLuaKernel.lua CONNECTION_FILENAME --]] -- This file is based on the work of Patrick Rapin, ada...
--[[ IPyLua Copyright (c) 2015 Francisco Zamora-Martinez. Simplified, less deps and making it work. https://github.com/pakozm/IPyLua Released under the MIT License, see the LICENSE file. usage: lua IPyLuaKernel.lua CONNECTION_FILENAME --]] -- This file is based on the work of Patrick Rapin, ada...
Fixed problem with autocompletion in console
Fixed problem with autocompletion in console
Lua
mit
pakozm/IPyLua,pakozm/IPyLua
b90cd376c81615fec9d9c076b399c94951dc1f60
packages/url.lua
packages/url.lua
SILE.require("packages/verbatim") local pdf pcall(function() pdf = require("justenoughlibtexpdf") end) if pdf then SILE.require("packages/pdf") end local inputfilter = SILE.require("packages/inputfilter").exports local urlFilter = function (node, content, breakpat) if type(node) == "table" then return node end lo...
SILE.require("packages/verbatim") local pdf pcall(function() pdf = require("justenoughlibtexpdf") end) if pdf then SILE.require("packages/pdf") end local inputfilter = SILE.require("packages/inputfilter").exports local urlFilter = function (node, content, breakpat) if type(node) == "table" then return node end lo...
fix(packages): Remove extra space in \code in url
fix(packages): Remove extra space in \code in url Closes #1056
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
0e61eb7a7b3da3baefa31eac56b08680f92ec4b4
frontend/cache.lua
frontend/cache.lua
--[[ A global LRU cache ]]-- local DataStorage = require("datastorage") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local md5 = require("ffi/MD5") if require("device"):isAndroid() then require("jit").off(true, true) end local function calcFreeMem() local meminfo = io.open("/p...
--[[ A global LRU cache ]]-- local DataStorage = require("datastorage") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local md5 = require("ffi/MD5") if require("device"):isAndroid() then require("jit").off(true, true) end local function calcFreeMem() local meminfo = io.open("/p...
[fix] Cache: don't overwrite same CacheItem (#3847)
[fix] Cache: don't overwrite same CacheItem (#3847) If the most recently used global cache item refers to the same page, it would be overwritten. This will happen when closing a paged (PDF/DjVu) document on the same page you opened it, as well as when opening and closing EPUBs with crengine because it uses its own...
Lua
agpl-3.0
poire-z/koreader,lgeek/koreader,mihailim/koreader,Hzj-jie/koreader,NiLuJe/koreader,houqp/koreader,pazos/koreader,Frenzie/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,mwoz123/koreader,Markismus/koreader,koreader/koreader
324888041ba9f6a2e591fd7f8e9782ab0a655dad
xmake/actions/require/impl/environment.lua
xmake/actions/require/impl/environment.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 unzip for requires
fix find unzip for requires
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
0eefbbe91d4aa69559eecdc7203e6c52565fc8a2
libs/web/luasrc/template.lua
libs/web/luasrc/template.lua
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
* libs/web: Fixed secure caching with setuid/setgid handling
* libs/web: Fixed secure caching with setuid/setgid handling
Lua
apache-2.0
Kyklas/luci-proto-hso,schidler/ionic-luci,palmettos/test,Hostle/luci,lcf258/openwrtcn,teslamint/luci,teslamint/luci,taiha/luci,male-puppies/luci,LuttyYang/luci,cappiewu/luci,kuoruan/lede-luci,nwf/openwrt-luci,lbthomsen/openwrt-luci,mumuqz/luci,florian-shellfire/luci,forward619/luci,david-xiao/luci,kuoruan/luci,LazyZhu/...
3b6c5e57b5488d628ef20963e87371c5b3bdeaec
cherry/engine/game.lua
cherry/engine/game.lua
-------------------------------------------------------------------------------- local Background = require 'cherry.components.background' local Screen = require 'cherry.components.screen' local Effects = require 'cherry.engine.effects' local group = require 'cherry.libs.group' local _ = require '...
-------------------------------------------------------------------------------- local Background = require 'cherry.components.background' local Screen = require 'cherry.components.screen' local Effects = require 'cherry.engine.effects' local group = require 'cherry.libs.group' local _ = require '...
fixed _G.isTutorial setting
fixed _G.isTutorial setting
Lua
bsd-3-clause
chrisdugne/cherry
8abb0f28f82c5d60d7722b96b7bafeb5b2f8caf2
core/inputs-common.lua
core/inputs-common.lua
SILE.inputs.common = { init = function (_, tree) local class = tree.options.class or "plain" local constructor = SILE.require(class, "classes", true) -- Shim legacy stdlib based classes (most shim work done by here) if constructor._deprecated then if constructor._base._deprecated then S...
SILE.inputs.common = { init = function (_, tree) local class = tree.options.class or "plain" local constructor = SILE.require(class, "classes", true) -- Shim legacy stdlib based classes (most shim work done by here) if constructor._deprecated then if constructor._base._deprecated then S...
fix(inputs): Drop Lua path handling duplicated in core
fix(inputs): Drop Lua path handling duplicated in core
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
2a211bed29de028499e85d41d5288744a590e490
src/thread.lua
src/thread.lua
local loader = function(loader, ...) local thread = require"_cqueues.thread" -- -- thread.start -- local cache = {} local function dump(fn) if type(fn) == "string" then return fn else if not cache[fn] then cache[fn] = string.dump(fn) end return cache[fn] end end local include = { "cq...
local loader = function(loader, ...) local thread = require"_cqueues.thread" -- -- thread.start -- local cache = {} local function dump(fn) if type(fn) == "string" then return fn else if not cache[fn] then cache[fn] = string.dump(fn) end return cache[fn] end end local include = { "cq...
fix thread function loading on Lua 5.1/LuaJIT
fix thread function loading on Lua 5.1/LuaJIT
Lua
mit
wahern/cqueues,bigcrush/cqueues,daurnimator/cqueues,wahern/cqueues,daurnimator/cqueues,bigcrush/cqueues
ec593dcf60b54ca401aa7bc255b95459155d9735
gfx.lua
gfx.lua
local ffi = require 'ffi' local uuid = require 'uuid' local base64 = require 'base64' require 'pl.text'.format_operator() require 'image' local itorch = require 'itorch._env' require 'itorch.bokeh' local util = require 'itorch.util' -- Example: require 'image';itorch.image(image.scale(image.lena(),16,16)) function ito...
local ffi = require 'ffi' local uuid = require 'uuid' local base64 = require 'base64' require 'pl.text'.format_operator() require 'image' local itorch = require 'itorch._env' require 'itorch.bokeh' local util = require 'itorch.util' -- Example: require 'image';itorch.image(image.scale(image.lena(),16,16)) function ito...
fixing image display
fixing image display
Lua
bsd-3-clause
michaf/iTorch,Laeeth/dbokeh_torch,facebook/iTorch,facebook/iTorch,Laeeth/dbokeh_torch,michaf/iTorch
681c78897125e5a7efbef0e40d81dcfe1caf81cb
frontend/ui/screen.lua
frontend/ui/screen.lua
--[[ 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 the License, or (at your option) any later version. ...
--[[ 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 the License, or (at your option) any later version. ...
fix bug for touch event coordinates handling in landscape mode
fix bug for touch event coordinates handling in landscape mode This fix might only work for KPW, need to test on other devies later.
Lua
agpl-3.0
apletnev/koreader-base,chihyang/koreader,NiLuJe/koreader,mwoz123/koreader,NickSavage/koreader,Frenzie/koreader-base,Markismus/koreader,Frenzie/koreader-base,houqp/koreader,Hzj-jie/koreader,Frenzie/koreader-base,houqp/koreader-base,robert00s/koreader,koreader/koreader-base,apletnev/koreader,NiLuJe/koreader-base,apletnev...
c4a8f273373198540d870f9e6b283306dd880855
MixtureTable.lua
MixtureTable.lua
local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module') function MixtureTable:__init(dim) parent.__init(self) self.dim = dim self.size = torch.LongStorage() self.batchSize = 0 self.size2 = torch.LongStorage() self.backwardSetup = false self.gradInput = {} end function MixtureTabl...
local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module') function MixtureTable:__init(dim) parent.__init(self) self.dim = dim self.size = torch.LongStorage() self.batchSize = 0 self.size2 = torch.LongStorage() self.backwardSetup = false self.gradInput = {} end function MixtureTabl...
Bugfix for variable size inputs
Bugfix for variable size inputs If batch size is same between two successive inputs of variable size, self.size was not recomputed. Removed batch size checks in order to recompute self.size every time.
Lua
bsd-3-clause
joeyhng/nn,apaszke/nn,nicholas-leonard/nn
410c381ba19247213c3a2caef64edcd5ede96ca4
lua.lua
lua.lua
-- So let's start with adding POSITIVE INTEGERS (integers > 0) without + function add1(x,y) return -((-x)-y) end function increment1(i) for x=i,math.huge do if x>i then return x end end end function add2(a,b) for i=1,b do a = increment1(a) end return a end -- Oh so you want negative inte...
-- So let's start with adding POSITIVE INTEGERS (integers > 0) without + function add1(x,y) return -((-x)-y) end function increment1(i) for x=i,math.huge do if x>i then return x end end end function add2(a,b) for i=1,b do a = increment1(a) end return a end -- Oh so you want negative inte...
Update lua.lua
Update lua.lua Add missing mul3, fix derps. UNTESTED! probably doesn't even work :/
Lua
mit
SoniEx2/Stuff,SoniEx2/Stuff
3114e91f9040e3b22615502d6551fa4b68ff27c0
kong/clustering/init.lua
kong/clustering/init.lua
local _M = {} local pl_file = require("pl.file") local pl_tablex = require("pl.tablex") local ssl = require("ngx.ssl") local openssl_x509 = require("resty.openssl.x509") local ngx_null = ngx.null local ngx_md5 = ngx.md5 local tostring = tostring local assert = assert local concat = table.concat local sort = table.sor...
local _M = {} local pl_file = require("pl.file") local pl_tablex = require("pl.tablex") local ssl = require("ngx.ssl") local openssl_x509 = require("resty.openssl.x509") local ngx_null = ngx.null local ngx_md5 = ngx.md5 local tostring = tostring local assert = assert local error = error local concat = table.concat lo...
fix(clustering) error on hashing when given invalid types
fix(clustering) error on hashing when given invalid types
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
c0d5867ffef08c9c19b084d79ce59401176f5676
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 EnableNativeProjects() then project "CppSharp.CppParser" kind "SharedLib" language "C++" SetupNativeProject() rtti "Off" define...
clang_msvc_flags = { "/wd4146", "/wd4244", "/wd4800", "/wd4345", "/wd4355", "/wd4996", "/wd4624", "/wd4291", "/wd4251", "/wd4141", -- 'inline' : used more than once } if EnableNativeProjects() then project "CppSharp.CppParser" kind "SharedLib" language "C++" SetupNativeProject() rtti "Off" define...
Enable linking groups for the parser on Linux
Enable linking groups for the parser on Linux The previous fix didn't work at all because premake's syntax is extremely strange at best and without any sense whatsoever it completely failed before I moved the linking groups just a few lines up. Signed-off-by: Dimitar Dobrev <ca751a5c976abad79158718440750fc638d19ebc@p...
Lua
mit
mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp
da97e2964612609aeb544798e13598ba95ba5d64
Modules/Binder/BinderTouchingCalculator.lua
Modules/Binder/BinderTouchingCalculator.lua
--- Extends PartTouchingCalculator with generic binder stuff -- @classmod BinderTouchingCalculator -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local PartTouchingCalculator = require("PartTouchingCalculator") local BinderUtil = require("BinderUtil") local ...
--- Extends PartTouchingCalculator with generic binder stuff -- @classmod BinderTouchingCalculator -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local PartTouchingCalculator = require("PartTouchingCalculator") local BinderUtil = require("BinderUtil") local ...
Fix BinderTouchingCalculator to execute properly
Fix BinderTouchingCalculator to execute properly
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
448e05ade927984ed8c6a7299b9c47c69282e202
mods/soundset/init.lua
mods/soundset/init.lua
minetest.log("action","[mod soundset] Loading...") soundset = {} soundset.file = minetest.get_worldpath() .. "/sounds_config.txt" soundset.gainplayers = {} soundset.tmp = {} local function save_sounds_config() local input = io.open(soundset.file, "w") if input then input:write(minetest.serialize(soundset.gainpla...
minetest.log("action","[mod soundset] Loading...") soundset = {} soundset.file = minetest.get_worldpath() .. "/sounds_config.txt" soundset.gainplayers = {} soundset.tmp = {} local function save_sounds_config() local input = io.open(soundset.file, "w") if input then input:write(minetest.serialize(soundset.gainpla...
fix crash
fix crash
Lua
unlicense
sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/minetest...
215391b37af58177b3be5ce26d51836609cb7d57
premake4.lua
premake4.lua
-- os.outputof is broken in premake4, hence this workaround function llvm_config(opt) local stream = assert(io.popen("llvm-config-3.5 " .. opt)) local output = "" --llvm-config contains '\n' while true do local curr = stream:read("*l") if curr == nil then break end output = output .. curr ...
-- os.outputof is broken in premake4, hence this workaround function llvm_config(opt) local stream = assert(io.popen("llvm-config-3.5 " .. opt)) local output = "" --llvm-config contains '\n' while true do local curr = stream:read("*l") if curr == nil then break end output = output .. curr ...
fixed link ordering problem
fixed link ordering problem
Lua
bsd-2-clause
lukecheeseman/ponyta,ponylang/ponyc,gwelr/ponyc,sgebbie/ponyc,Praetonus/ponyc,malthe/ponyc,boemmels/ponyc,jonas-l/ponyc,jupvfranco/ponyc,sgebbie/ponyc,kulibali/ponyc,jupvfranco/ponyc,Praetonus/ponyc,ryanai3/ponyc,sgebbie/ponyc,boemmels/ponyc,Praetonus/ponyc,Theodus/ponyc,CausalityLtd/ponyc,kulibali/ponyc,jonas-l/ponyc,...
321cc462010f45062e8bd83c96a4cd75e0deec09
premake5.lua
premake5.lua
solution "NebuleuseClient" configurations { "Debug", "Release" } project "Nebuleuse" kind "StaticLib" language "C++" targetdir "lib/%{cfg.buildcfg}" includedirs { "include", "curl/builds/%{cfg.buildcfg}/include", "rapidjson/include"} files { "src/**.cpp", "include/**.h" } libdir...
solution "NebuleuseClient" configurations { "Debug", "Release" } project "Nebuleuse" kind "StaticLib" language "C++" targetdir "lib/%{cfg.buildcfg}" includedirs { "include", "curl/builds/%{cfg.buildcfg}/include", "rapidjson/include"} files { "src/**.cpp", "include/**.h" } libdir...
Fixed lib path for Tester project
Fixed lib path for Tester project
Lua
mit
Nebuleuse/NebuleuseClientCpp,Nebuleuse/NebuleuseClientCpp,Nebuleuse/NebuleuseClientCpp,Orygin/NebuleuseCppClient
0b565fb9d4b2b90106ef53b18285add4cdaa1926
APS/libaps2-cpp/src/test/aps2_dissectors.lua
APS/libaps2-cpp/src/test/aps2_dissectors.lua
-- wireshark APS2 protocol dissectors -- declare our protocol aps_proto = Proto("aps2","APS2 Control Protocol") local a = aps_proto.fields local aps_commands = { [0] = "RESET", [ 0x01] = "USER I/O ACK", [ 0x09] = "USER I/O NACK", [ 0x02] = "EPROM I/O", [ 0x03] = "CHIP CONFIG I/O", ...
-- wireshark APS2 protocol dissectors -- declare our protocol aps_proto = Proto("aps2","APS2 Control Protocol") local a = aps_proto.fields local aps_commands = { [0] = "RESET", [ 0x01] = "USER I/O ACK", [ 0x09] = "USER I/O NACK", [ 0x02] = "EPROM I/O", [ 0x03] = "CHIP CONFIG I/O", ...
Lua dissector shows packet payload.
Lua dissector shows packet payload. Also fix address type.
Lua
apache-2.0
BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2
f9319b39b1792eaf099f720567749801acc11681
test.lua
test.lua
local function printf(fmt, ...) io.stdout:write(string.format(fmt, unpack(arg))) end package.cpath = "./?.so" local shelve = assert(require("shelve")) print("Opening 'db'") local db = assert(shelve.open("test.db")) a = "one" b = "two" c = "three" db.num = 1234567890 -- a number db.str = "a string" -- a string db....
local printf if unpack ~= nil then printf = function(fmt, ...) io.stdout:write(string.format(fmt, unpack(arg))) end else printf = function(fmt, ...) io.stdout:write(string.format(fmt, ...)) end end package.cpath = "./?.so" local shelve = assert(require("shelve")) print("Opening 'db'") local d...
test.lua: Use unpack() only when available
test.lua: Use unpack() only when available This fixes running the test suite with Lua 5.3
Lua
lgpl-2.1
aperezdc/lua-shelve
6b2815a84f2d2e5beee25baf5ec2436002e43acf
after/plugin/mappings.lua
after/plugin/mappings.lua
if not vim.keymap then vim.keymap = require('nvim').keymap end -- local noremap = { noremap = true } local noremap_silent = { noremap = true, silent = true } if not packer_plugins or (packer_plugins and not packer_plugins['vim-commentary']) then vim.keymap.set('n', 'gc', '<cmd>set opfunc=neovim#comment<CR>g@'...
if not vim.keymap then vim.keymap = require('nvim').keymap end -- local noremap = { noremap = true } local noremap_silent = { noremap = true, silent = true } if not packer_plugins or (packer_plugins and not packer_plugins['vim-commentary'] and not packer_plugins['Comment.nvim']) then vim.keymap.set('n...
fix: fallback comment mapping
fix: fallback comment mapping
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
b9fa77bc790d62cbfa02ff9234223ec8ee70d702
pwm/cfg_pwm_bindings.lua
pwm/cfg_pwm_bindings.lua
-- -- PWM bindings configuration file. Global bindings and bindings common -- to screens and all types of frames only. See modules' configuration -- files for other bindings. -- -- Load Ion bindings dopath("cfg_bindings") -- Unbind anything using mod_query. defbindings("WMPlex", { kpress(MOD2.."F1", nil), ...
-- -- PWM bindings configuration file. Global bindings and bindings common -- to screens and all types of frames only. See modules' configuration -- files for other bindings. -- -- Load Ion bindings dopath("cfg_bindings") -- Unbind anything using mod_query and rebinding to mod_menu where -- applicable. defbinding...
Updated/fixed PWM bindings configuration.
Updated/fixed PWM bindings configuration. darcs-hash:20060120211608-4eba8-3f64a73e4f530149b58851acdc8308bdbd52751f.gz
Lua
lgpl-2.1
knixeur/notion,p5n/notion,p5n/notion,dkogan/notion,knixeur/notion,knixeur/notion,dkogan/notion,anoduck/notion,p5n/notion,anoduck/notion,neg-serg/notion,knixeur/notion,dkogan/notion.xfttest,p5n/notion,dkogan/notion.xfttest,anoduck/notion,dkogan/notion,neg-serg/notion,raboof/notion,raboof/notion,raboof/notion,raboof/noti...
ce0439b0848d939d65f6b010d967f68f2a36d8b0
agents/monitoring/default/check/disk.lua
agents/monitoring/default/check/disk.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fixes: remove snaptime metric
fixes: remove snaptime metric
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent...
a6eee57b3d4015a96fc609d7f1e7570ed5143a76
test_scripts/Polices/build_options/013_ATF_P_TC_HMI_sends_GetURLs_one_app_registered_HTTP.lua
test_scripts/Polices/build_options/013_ATF_P_TC_HMI_sends_GetURLs_one_app_registered_HTTP.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- In case HMI sends GetURLs and at least one app is registered SDL must return only default url and url related to registered app -- -- Description: -- In case HMI sends GetURLs (<serviceType>) AND at...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- In case HMI sends GetURLs and at least one app is registered SDL must return only default url and url related to registered app -- -- Description: -- In case HMI sends GetURLs (<serviceType>) AND at...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
0525e26809e2c6320490698c215e17188aa23d6e
maidroid_tool/nametag.lua
maidroid_tool/nametag.lua
------------------------------------------------------------ -- Copyright (c) 2016 tacigar. All rights reserved. -- https://github.com/tacigar/maidroid ------------------------------------------------------------ local formspec = "size[4,1.25]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots ...
------------------------------------------------------------ -- Copyright (c) 2016 tacigar. All rights reserved. -- https://github.com/tacigar/maidroid ------------------------------------------------------------ local formspec = "size[4,1.25]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots ...
Fix nametag
Fix nametag Set default value from existing data. Change item decrement timing. Use is_maidroid() method.
Lua
lgpl-2.1
tacigar/maidroid
0969aeb9c34957559ebbdcf232fb97424f650285
otouto/plugins/echo.lua
otouto/plugins/echo.lua
local echo = {} echo.command = 'echo <Text>' function echo:init(config) echo.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('echo', true).table echo.inline_triggers = { "^e (.+)", "^bold (.+)" } echo.doc = [[* ]]..config.cmd_pat..[[echo* _<Text>_: Gibt den Text aus]] end function echo:...
local echo = {} echo.command = 'echo <Text>' function echo:init(config) echo.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('echo', true).table echo.inline_triggers = { "^e (.+)", "^bold (.+)" } echo.doc = [[* ]]..config.cmd_pat..[[echo* _<Text>_: Gibt den Text aus]] end function echo:...
Echo Inline: Verwende HTML, statt Markdown (teilw.), fixes #9
Echo Inline: Verwende HTML, statt Markdown (teilw.), fixes #9
Lua
agpl-3.0
Brawl345/Brawlbot-v2
070ef7eb69112e6aa216eee65b50639564ba963e
state/gamelist.lua
state/gamelist.lua
local views = {} local view local visible local function hide() LOG.DEBUG("Blanking screen") visible = false end local function show() visible = true end local function push(node, ...) show() table.insert(views, new "View" (node.icon, node:path(), node, ...)) view = views[#views] LOG.DEBUG("Push: %s",...
local views = {} local visible local in_menu = false local function hide() visible = false end local function show() visible = true end local function peek(n) return views[#views - (n or 0)] end local function push(node, ...) show() table.insert(views, new "View" (node.icon, node:path(), node, ...)) ...
Bug fix: don't crash if the user opens the menu with MENU and then closes it with BACK
Bug fix: don't crash if the user opens the menu with MENU and then closes it with BACK
Lua
mit
ToxicFrog/EmuFun
64d16cfdc3c59eab0bc8c67d63332cf5840f6708
src_trunk/resources/tag-system/c_tag_system.lua
src_trunk/resources/tag-system/c_tag_system.lua
cooldown = 0 count = 0 MAX_TAGCOUNT = 2 MAX_TAG_RADIUS = 100 function clientTagWall(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon==41) then local team = getPlayerTeam(getLocalPlayer()) local ftype = getElementData(team, "type") local tag = getElementData(source, "tag") i...
cooldown = 0 count = 0 MAX_TAGCOUNT = 2 MAX_TAG_RADIUS = 100 function clientTagWall(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon==41) then local team = getPlayerTeam(getLocalPlayer()) local ftype = getElementData(team, "type") local tag = getElementData(source, "tag") i...
fixed 251 & 76
fixed 251 & 76 git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@78 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
40e7bd188951a0244ba5b0c9ea7d91a71a4f9d09
src/tie/src/Shared/Definition/TiePropertyDefinition.lua
src/tie/src/Shared/Definition/TiePropertyDefinition.lua
--[=[ @class TiePropertyDefinition ]=] local require = require(script.Parent.loader).load(script) local BaseObject = require("BaseObject") local TiePropertyImplementation = require("TiePropertyImplementation") local TiePropertyInterface = require("TiePropertyInterface") local TiePropertyDefinition = setmetatable({}...
--[=[ @class TiePropertyDefinition ]=] local require = require(script.Parent.loader).load(script) local BaseObject = require("BaseObject") local TiePropertyImplementation = require("TiePropertyImplementation") local TiePropertyInterface = require("TiePropertyInterface") local TiePropertyDefinition = setmetatable({}...
fix: Remove unused/wrong TiePropertyDefinition:IsAttribute() API method
fix: Remove unused/wrong TiePropertyDefinition:IsAttribute() API method
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
9632310387598cac928f4bb69e34cdc6388ce211
lib/lua/utils.lua
lib/lua/utils.lua
-------------------- -- Module with utility functions -- -- @module utils -- -- Submodules: -- -- * `file`: Operations on files -- * `math`: Contains a few math functions -- * `string`: Operations on strings -- * `table`: Operations on tables util = {} -- IO Functions util.file = {} -- Opens the file at path with t...
-------------------- --- Module with utility functions -- --- @module utils -- --- Submodules: -- --- * `file`: Operations on files --- * `math`: Contains a few math functions --- * `string`: Operations on strings --- * `table`: Operations on tables util = {} --- IO Functions util.file = {} --- Opens the file at pa...
Fixed comment formatting
Fixed comment formatting
Lua
mit
Immington-Industries/way-cooler,Immington-Industries/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler,way-cooler/way-cooler,way-cooler/way-cooler
2b46c3a056abc576b5ff0e6846831cd7fe9aa1a8
rootfs/etc/nginx/lua/test/monitor_test.lua
rootfs/etc/nginx/lua/test/monitor_test.lua
_G._TEST = true local original_ngx = ngx local function reset_ngx() _G.ngx = original_ngx end local function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, { __index = ngx }) _G.ngx = _ngx end local function mock_ngx_socket_tcp() local tcp_mock = {} stub(tcp_mock, "connect", true) stub(tcp_mock, "...
_G._TEST = true local original_ngx = ngx local function reset_ngx() _G.ngx = original_ngx end local function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, { __index = ngx }) _G.ngx = _ngx end local function mock_ngx_socket_tcp() local tcp_mock = {} stub(tcp_mock, "connect", true) stub(tcp_mock, "...
fix monitor test after move to openresty
fix monitor test after move to openresty
Lua
apache-2.0
caicloud/ingress,aledbf/ingress-nginx,kubernetes/ingress-nginx,kubernetes/ingress-nginx,caicloud/ingress,canhnt/ingress,kubernetes/ingress-nginx,aledbf/ingress-nginx,canhnt/ingress,aledbf/ingress-nginx,canhnt/ingress,caicloud/ingress,aledbf/ingress-nginx,kubernetes/ingress-nginx,caicloud/ingress,kubernetes/ingress-ngin...
1faa50c9538291ed23adcc8b7f7d568321955584
middleware/burningman-demultiply/burningman_demultiply.lua
middleware/burningman-demultiply/burningman_demultiply.lua
return function(request, next_middleware) local response = next_middleware() local events = json.decode(response.body) local newresponse ={} for i=1,#events do local e ={} local currentEvent = events[i]; e.title = currentEvent.title e.desc = currentEvent.description e.id = currentEvent.i...
return function(request, next_middleware) local response = next_middleware() local events = json.decode(response.body) local newresponse ={} for i=1,#events do local currentEvent = events[i]; for j=1,#currentEvent.occurrence_set do table.insert(newresponse,{ title = currentEvent.t...
fix burningman-demultiply
fix burningman-demultiply
Lua
mit
APItools/middleware
454f4676389738808d2231d6813e5eb70167efbe
test/lua/unit/html.lua
test/lua/unit/html.lua
context("HTML processing", function() local rspamd_util = require("rspamd_util") local logger = require("rspamd_logger") test("Extract text from HTML", function() local cases = { {[[ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>title</title> <link rel="styleshee...
context("HTML processing", function() local rspamd_util = require("rspamd_util") local logger = require("rspamd_logger") test("Extract text from HTML", function() local cases = { {[[ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>title</title> <link rel="stylesheet"...
Fix HTML tests
Fix HTML tests
Lua
apache-2.0
minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspam...
46c3ddfc60224a5c840bfe917e5cb9c8c2b51b02
dotfiles/nvim/init.lua
dotfiles/nvim/init.lua
-- functions that are not behavior added to the editor local u = require('utils') -- shotcuts to common functions local api = vim.api -- nvim api access local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to acce...
-- functions that are not behavior added to the editor local u = require('utils') -- shotcuts to common functions local api = vim.api -- nvim api access local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to acce...
Finally fixed the highlight bug, now it loads!
Finally fixed the highlight bug, now it loads!
Lua
mit
mavcunha/bash,mavcunha/bash
4a6bf9c0912d2b081138947f66cef80eaccf6a94
config/nvim/lua/fs.lua
config/nvim/lua/fs.lua
local M = {} function M.exists(path) return M.is_directory(path) or M.is_file(path) end function M.glob(path, pattern) if not M.is_directory(path) then return {} end return (vim.fn.globpath(path, (pattern or "*"))):split("\n") end function M.is_directory(path) return vim.fn.isdirectory(path) == 1 end ...
local M = {} function M.exists(path) return M.is_directory(path) or M.is_file(path) end function M.glob(path, pattern) if not M.is_directory(path) then return {} end local result = vim.fn.globpath(path, (pattern or "*")) if result == "" then return {} end return result:split("\n") end functio...
Fix issue where glob returns empty string
Fix issue where glob returns empty string
Lua
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
b8676103278cbeabbc28b2ef9d5e236c28e43b6e
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 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 = 0; module:add_event_hook(...
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 the logic for handling outgoing stanzas and ack requests
mod_smacks: Fix the logic for handling outgoing stanzas and ack requests
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
66b4e58b60f38e8339ca665640727b167a1239a1
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 timer = require "util.timer"; local xmlns_sm = "urn:xmpp:sm:2"; local sm_attr = { xmlns = xmln...
mod_smacks: Fixes for monkey-patched sessionmanager.destroy to handle stream resumption, and to fall back to stock destroy() if the session is not smacks-enabled.
mod_smacks: Fixes for monkey-patched sessionmanager.destroy to handle stream resumption, and to fall back to stock destroy() if the session is not smacks-enabled.
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
d8f0c32a5ac876295f7a14ebdb45522851f119ff
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "hotswap".new {} loader.require ...
Fix message on required lua version.
Fix message on required lua version.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
fefaf17bca95ee28d7537ebc72eb0d6fdec26c1b
fimbul/gtk/mainwindow.lua
fimbul/gtk/mainwindow.lua
---@module fimbul.gtk.mainwindow local mainwindow = {} local base = _G local table = require("table") local lgi = require("lgi") local Gtk = lgi.require("Gtk", "3.0") local console_page = require("fimbul.gtk.mainwindow.console_page") local party_page = require("fimbul.gtk.mainwindow.party_page") function mainwindo...
---@module fimbul.gtk.mainwindow local mainwindow = {} local base = _G local table = require("table") local lgi = require("lgi") local Gtk = lgi.require("Gtk", "3.0") local console_page = require("fimbul.gtk.mainwindow.console_page") local party_page = require("fimbul.gtk.mainwindow.party_page") function mainwindo...
Fix dialog not closing on error.
Fix dialog not closing on error.
Lua
bsd-2-clause
n0la/fimbul
d0ffb0948994cad65c503a33c91e447bb75cc7b1
frontend/ui/screen.lua
frontend/ui/screen.lua
--[[ 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 the License, or (at your option) any later version. ...
--[[ 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 the License, or (at your option) any later version. ...
fix adjustGesCoordinate
fix adjustGesCoordinate
Lua
agpl-3.0
koreader/koreader-base,koreader/koreader,Frenzie/koreader,apletnev/koreader-base,koreader/koreader-base,Frenzie/koreader-base,Hzj-jie/koreader-base,chihyang/koreader,Hzj-jie/koreader-base,houqp/koreader,Frenzie/koreader,frankyifei/koreader-base,poire-z/koreader,Frenzie/koreader-base,chrox/koreader,Hzj-jie/koreader,miha...
1c3a4ed4f9a4e7007038bd42f977e463f0057960
src/lua/lluv/redis.lua
src/lua/lluv/redis.lua
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-redis library. -- ----...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-redis library. -- ----...
Fix. Get password and db number from URL.
Fix. Get password and db number from URL.
Lua
mit
moteus/lua-lluv-redis
bd495709b1507dcdae949acc46bf72550859791a
rico.lua
rico.lua
-- -- rico.lua -- -- -- Remote Imap collector COunters. Stores some scheduling information needed for collectors. -- -- -- Space 0: Stores last collect time, last success collect time and so on. -- Tuple: { coll_id (NUM), last_time (NUM), last_ok (NUM), old_threshold (NUM), last_fullsync (NUM), success_collects_num...
-- -- rico.lua -- -- -- Remote Imap collector COunters. Stores some scheduling information needed for collectors. -- -- -- Space 0: Stores last collect time, last success collect time and so on. -- Tuple: { coll_id (NUM), last_time (NUM), last_ok (NUM), old_threshold (NUM), last_fullsync (NUM), success_collects_num...
rico.lua: fix tarantool return empty table behaivour
rico.lua: fix tarantool return empty table behaivour
Lua
bsd-2-clause
BHYCHIK/tntlua,mailru/tntlua,spectrec/tntlua,grechkin-pogrebnyakov/tntlua
d82319b781e06d69ff0bbfa17239adfe0e31e3d5
modules/more.lua
modules/more.lua
return { PRIVMSG = { ['^%pmore$'] = function(self, source, destination, module) local more = self.more[destination] if more then self:Msg('privmsg', destination, source, more) end end, ['^%pmore%?$'] = function(self, source, destination, module) local more = self.more[destination] if more then...
return { PRIVMSG = { ['^%pmore$'] = function(self, source, destination, module) if(destination == self.config.nick) then destination = source.nick end local more = self.more[destination] if more then self:Msg('privmsg', destination, source, more) end end, ['^%pmore%?$'] = function(self, so...
more: fix module to not only work on channels
more: fix module to not only work on channels
Lua
mit
torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2
efbd272c402522e582f488c53a81c588ef4a0637
levent/socket_util.lua
levent/socket_util.lua
local socket = require "levent.socket" local dns = require "levent.dns" local util = {} function util.create_connection(host, port, timeout) local ret, err = dns.resolve(host) if not ret then return nil, err end local ip = ret[1] local sock, err = socket.socket(socket.AF_INET, socket.SO...
local socket = require "levent.socket" local dns = require "levent.dns" local util = {} function util.create_connection(host, port, timeout) local ret, err = dns.resolve(host) if not ret then return nil, err end local ip = ret[1] local sock, err = socket.socket(socket.AF_INET, socket.SO...
fix util.read_full need return when EOF
fix util.read_full need return when EOF
Lua
mit
xjdrew/levent
54a9e666ea804ade7adec51e3fb7435d48e46771
src/lluv/pg/utils/bin.lua
src/lluv/pg/utils/bin.lua
local struct_unpack, struct_pack if string.pack then -- Lua 5.3 struct_unpack, struct_pack, struct_size = string.unpack, string.pack elseif not jit then -- Lua 5.1, 5.2 local struct = require "struct" struct_unpack, struct_pack, struct_size = struct.unpack, struct.pack else -- LuaJIT local unpack = unpack or ta...
local struct_unpack, struct_pack if string.pack then -- Lua 5.3 struct_unpack = function(fmt, ...) return string.unpack(string.gsub(fmt, 's', 'z'), ...) end struct_pack = function(fmt, ...) return string.pack(string.gsub(fmt, 's', 'z'), ...) end elseif not jit then -- Lua 5.1, 5.2 local struct = req...
Fix. sting pattern for Lua 5.3
Fix. sting pattern for Lua 5.3
Lua
mit
moteus/lua-lluv-pg
23f3b66e31e2d84a8460e33412f0f1e61d13b95a
druid/spell/id_01_analyze_plant.lua
druid/spell/id_01_analyze_plant.lua
--ds_druidspell_01.lua / 1. Rune des Lehrlings --Druidensystem --Falk require("base.common") require("druid.base.alchemy") require("druid.base.plants") module("druid.spell.id_01_analyze_plant", package.seeall, package.seeall(druid.base.alchemy), package.seeall(druid.base.plants)) -- INSERT INTO spells VALUES (2^0,3,...
--ds_druidspell_01.lua / 1. Rune des Lehrlings --Druidensystem --Falk require("base.common") require("druid.base.alchemy") require("druid.base.plants") module("druid.spell.id_01_analyze_plant", package.seeall) -- INSERT INTO spells VALUES (2^0,3,'druid.spell.id_01_analyze_plant'); function CastMagic(Caster,counter,...
minor fixes
minor fixes
Lua
agpl-3.0
KayMD/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content
80b41a8a108db66109d0e86b19c03f69b2abbca7
test_suite/main.lua
test_suite/main.lua
# testing special comment on first line print ("testing lua.c options") assert(os.execute() ~= 0) -- machine has a system command prog = os.tmpname() otherprog = os.tmpname() out = os.tmpname() do local i = 0 while arg[i] do i=i-1 end progname = '"'..arg[i+1]..'"' end print(progname) local prepfile = funct...
# testing special comment on first line print ("testing lua.c options") assert(os.execute() ~= 0) -- machine has a system command prog = os.tmpname() otherprog = os.tmpname() out = os.tmpname() do local i = 0 while arg[i] do i=i-1 end progname = '"'..arg[i+1]..'"' end print(progname) local prepfile = funct...
Disable tests in main.lua that don't work and are unlikely to work soon
Disable tests in main.lua that don't work and are unlikely to work soon Three types of errors: * Incompatibilities between slua's interactive mode and original Lua's * Bugs arising from slua's ungetc() emulation which will be difficult to fix quickly * Bugs arising from slua's incomplete io.write implementation
Lua
mit
Stevie-O/SharpLua,Stevie-O/SharpLua,Stevie-O/SharpLua
b925649a2c93cae5f26090feee49aeaf62bccf47
units.lua
units.lua
local lua_sources = { "lua/src/lapi.c", "lua/src/lauxlib.c", "lua/src/lbaselib.c", "lua/src/lcode.c", "lua/src/ldblib.c", "lua/src/ldebug.c", "lua/src/ldo.c", "lua/src/ldump.c", "lua/src/lfunc.c", "lua/src/lgc.c", "lua/src/linit.c", "lua/src/liolib.c", "lua/src/llex.c", "lua/src/lmathlib.c", "lua/src/lmem.c", "lua...
local lua_sources = { "lua/src/lapi.c", "lua/src/lauxlib.c", "lua/src/lbaselib.c", "lua/src/lcode.c", "lua/src/ldblib.c", "lua/src/ldebug.c", "lua/src/ldo.c", "lua/src/ldump.c", "lua/src/lfunc.c", "lua/src/lgc.c", "lua/src/linit.c", "lua/src/liolib.c", "lua/src/llex.c", "lua/src/lmathlib.c", "lua/src/lmem.c", "lua...
Fixed tty.c was built on win32.
Fixed tty.c was built on win32.
Lua
mit
deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra
c8353fe598ed3c912158fb7e3b21766b0edc3785
gin/core/router.lua
gin/core/router.lua
package.path = './app/controllers/?.lua;' .. package.path -- dep local json = require 'cjson' -- gin local Gin = require 'gin.core.gin' local Controller = require 'gin.core.controller' local Request = require 'gin.core.request' local Response = require 'gin.core.response' local Error = require 'gin.core.error' -- ap...
package.path = './app/controllers/?.lua;' .. package.path -- dep local json = require 'cjson' -- gin local Gin = require 'gin.core.gin' local Controller = require 'gin.core.controller' local Request = require 'gin.core.request' local Response = require 'gin.core.response' local Error = require 'gin.core.error' -- ap...
Fix race condition when using code cache.
Fix race condition when using code cache. Based on #16 and fix by @istr in https://github.com/ppolv/gin/commit/04b0fb6cadb0a33e1685d3a86308d95b52cf46c8
Lua
mit
ostinelli/gin,istr/gin
4733e9d95cbeb4a8840f063fe86f0b4c79dc4a3e
lua/encoders/opentsdb_raw.lua
lua/encoders/opentsdb_raw.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[=[ Extracts data from message fields and generates JSON suitable for use with OpenTSDB's TCP input. Config: - met...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[=[ Extracts data from message fields and generates JSON suitable for use with OpenTSDB's TCP input. Config: - met...
Fix silly logic bug
Fix silly logic bug Also make field names configurable
Lua
mpl-2.0
timurb/heka-tsutils-plugins,hynd/heka-tsutils-plugins
b272d2501e6243b244c97990a5377823a3df565a
item/id_6_scissors.lua
item/id_6_scissors.lua
-- I_6.lua garn aus darm -- UPDATE common SET com_script='item.id_6_scissors' WHERE com_itemid IN (6); require("item.general.metal") require("item.base.crafts") module("item.id_6_scissors", package.seeall, package.seeall(item.general.metal)) function UseItem(User,SourceItem,TargetItem,Counter,Param,ltstate) bas...
-- I_6.lua garn aus darm -- UPDATE common SET com_script='item.id_6_scissors' WHERE com_itemid IN (6); require("item.general.metal") require("item.base.crafts") module("item.id_6_scissors", package.seeall) function UseItem(User,SourceItem,TargetItem,Counter,Param,ltstate) base.common.ResetInterruption( User, lt...
fixed scisscors look at
fixed scisscors look at
Lua
agpl-3.0
vilarion/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content
78b9ad78089c2a1ded331f4e9680d95f5b04761d
test/test_connect.lua
test/test_connect.lua
package.path = "..\\src\\lua\\?.lua;" .. package.path pcall(require, "luacov") local Redis = require "lluv.redis" local uv = require "lluv" local TEST_PORT = 5555 local function TcpServer(host, port, cb) if not cb then host, port, cb = '127.0.0.1', host, port end return uv.tcp():bind(host, port, funct...
package.path = "..\\src\\lua\\?.lua;" .. package.path pcall(require, "luacov") local Redis = require "lluv.redis" local uv = require "lluv" local TEST_PORT = 5555 local function TcpServer(host, port, cb) if not cb then host, port, cb = '127.0.0.1', host, port end return uv.tcp():bind(host, port, funct...
Fix. Add timeout before connect in test.
Fix. Add timeout before connect in test.
Lua
mit
moteus/lua-lluv-redis
99d83c1738f7b6bccbb440b7fa4fd417745e83ce
src/vendor/gamestate.lua
src/vendor/gamestate.lua
--[[ Copyright (c) 2010-2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
--[[ Copyright (c) 2010-2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
Fix #568. Allow for levels to be loaded via the command line
Fix #568. Allow for levels to be loaded via the command line
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
73118c078a26812dc7a625edf3386e6d4e9fea9b
controller/main.lua
controller/main.lua
-- Main client program for monitoring the space probe -- Requirents: -- lua 5.1 or newer require "config" require "utils" require "probe" require "knob" require "bbl-twitter" twitter_client = client(config.oauth_consumer_key, config.oauth_consumer_secret, config.oauth_access_key, config.oauth_access_secret)...
-- Main client program for monitoring the space probe -- Requirents: -- lua 5.1 or newer require "config" require "utils" require "probe" require "knob" require "bbl-twitter" twitter_client = client(config.oauth_consumer_key, config.oauth_consumer_secret, config.oauth_access_key, config.oauth_access_secret)...
Timekeeping bugfixes
Timekeeping bugfixes
Lua
mit
makehackvoid/MHV-Space-Probe
d1c6235c5bae6f45aae6177b4774599f6df38226
crispy/quanty/templates/meta/rixs/fields.lua
crispy/quanty/templates/meta/rixs/fields.lua
-------------------------------------------------------------------------------- -- Define the magnetic field and exchange field terms. -------------------------------------------------------------------------------- Sx_#m = NewOperator("Sx", NFermions, IndexUp_#m, IndexDn_#m) Sy_#m = NewOperator("Sy", NFermions, Index...
-------------------------------------------------------------------------------- -- Define the magnetic field and exchange field terms. -------------------------------------------------------------------------------- Sx_#m = NewOperator("Sx", NFermions, IndexUp_#m, IndexDn_#m) Sy_#m = NewOperator("Sy", NFermions, Index...
Fix the magnetic field for RIXS
Fix the magnetic field for RIXS
Lua
mit
mretegan/crispy,mretegan/crispy
e2cbabbde2ca7bb1850732302f9c48986763a40d
torch/audio/benchmark.lua
torch/audio/benchmark.lua
require 'sys' require 'cunn' require 'cudnn' require 'nnx' require 'BatchBRNNReLU' require 'SequenceWise' require 'Dataset' cudnn.fastest = true cudnn.benchmark = false -- set this false due to the varying input shape cudnn.verbose = false nGPU = 4 deepSpeech = require 'cudnn_deepspeech2' print('Running on device: '...
require 'sys' require 'cunn' require 'cudnn' require 'nnx' require 'BatchBRNNReLU' require 'SequenceWise' require 'Dataset' cudnn.fastest = true cudnn.benchmark = false -- set this false due to the varying input shape cudnn.verbose = false nGPU = 4 deepSpeech = require 'cudnn_deepspeech2' print('Running on device: '...
Fix averaging, correct a couple tmbi => tmbg typos
Fix averaging, correct a couple tmbi => tmbg typos With the current averaging, the more steps are done, the lower the averages become. Proposed PR fixes that.
Lua
apache-2.0
DeepMark/deepmark
3f754137f1eadded42011be782641a0f3bb72fb7
premake4.lua
premake4.lua
if not _ACTION then _ACTION="vs2010" end isPosix = false isVisualStudio = false isOSX = false if _ACTION == "vs2002" or _ACTION == "vs2003" or _ACTION == "vs2005" or _ACTION == "vs2008" or _ACTION == "vs2010" then isVisualStudio = true end if _ACTION == "codeblocks" or _ACTION == "gmake" then isPosi...
if not _ACTION then _ACTION="vs2010" end isPosix = false isVisualStudio = false isOSX = false if _ACTION == "vs2002" or _ACTION == "vs2003" or _ACTION == "vs2005" or _ACTION == "vs2008" or _ACTION == "vs2010" then isVisualStudio = true end if _ACTION == "codeblocks" or _ACTION == "gmake" then isPosi...
Fixed GCC ASAN compiler options
Fixed GCC ASAN compiler options
Lua
mit
galek/TaskScheduler,galek/TaskScheduler,SergeyMakeev/TaskScheduler,galek/TaskScheduler,SergeyMakeev/TaskScheduler
6f1aaf469a894728300b693a7fe843ba091e55c9
premake4.lua
premake4.lua
-- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake4. -- -- -- Define the project. Put the release configuration first so it will be the -- default when folks build using the makefile. That way they don't have to -- worry about the /scripts argument and all that. -- ...
-- -- Premake 5.x build configuration script -- Use this script to configure the project with Premake4. -- -- -- Define the project. Put the release configuration first so it will be the -- default when folks build using the makefile. That way they don't have to -- worry about the /scripts argument and all that. -- ...
Fix premake4.lua bootstrap build script
Fix premake4.lua bootstrap build script
Lua
bsd-3-clause
soundsrc/premake-core,resetnow/premake-core,mendsley/premake-core,noresources/premake-core,bravnsgaard/premake-core,starkos/premake-core,noresources/premake-core,mandersan/premake-core,aleksijuvani/premake-core,tvandijck/premake-core,jstewart-amd/premake-core,TurkeyMan/premake-core,premake/premake-core,noresources/prem...
45bbaab8b2467950cb1e7f7b012d0fdbf2257b75
jwt.lua
jwt.lua
local encode = function(payload, key) header = { typ='JWT', alg="HS256" } segments = { urlsafeB64Encode(jsonEncode(header)), urlsafeB64Encode(jsonEncode(payload)) } signing_input = table.concat(segments, ".") signature = sign(signing_input, key) segments[#segments+1] = urlsafeB64Encode(signature) r...
local encode = function(payload, key) header = { typ='JWT', alg="HS256" } segments = { urlsafeB64Encode(jsonEncode(header)), urlsafeB64Encode(jsonEncode(payload)) } signing_input = table.concat(segments, ".") signature = sign(signing_input, key) segments[#segments+1] = urlsafeB64Encode(signature) r...
Fixing reference
Fixing reference
Lua
bsd-3-clause
thejeshgn/lib,robertbrook/lib
e8d1c642fb12c894438e3897b7fe677d9a74c7fb
premake5.lua
premake5.lua
-- The _ACTION variable can be null, which will be annoying. -- Let's make a action that won't be null action = _ACTION or "" -- New option to control if the chirp library should be built -- as a shared or static library newoption { trigger = "shared", description = "Generate projects for shared library (def...
-- The _ACTION variable can be null, which will be annoying. -- Let's make a action that won't be null action = _ACTION or "" -- New option to control if the chirp library should be built -- as a shared or static library newoption { trigger = "shared", description = "Generate projects for shared library (def...
Fix premake config
Fix premake config It should now produce buildable Makefile when issuing `premake5 gmake`
Lua
apache-2.0
fr00b0/chirp
c8c1c972d47b55e5c9b0108942ada51065d1375e
contrib/package/ffluci-splash/src/luci-splash.lua
contrib/package/ffluci-splash/src/luci-splash.lua
#!/usr/bin/lua package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.cpath = "/usr/lib/lua/?.so;" .. package.cpath require("ffluci.http") require("ffluci.sys") require("ffluci.model.uci") -- Init state session uci = ffluci.model.uci.StateSession() function main(argv) local cmd = arg...
#!/usr/bin/lua package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.cpath = "/usr/lib/lua/?.so;" .. package.cpath require("ffluci.http") require("ffluci.sys") require("ffluci.model.uci") -- Init state session uci = ffluci.model.uci.StateSession() function main(argv) local cmd = arg...
ffluci-splash: Minor fixes
ffluci-splash: Minor fixes
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci
7da965db8b8947a9073c7cdf7f3ffe0c080e329c
extension/script/backend/worker/eval/repl.lua
extension/script/backend/worker/eval/repl.lua
local source, level = ... level = (level or 0) + 2 if _VERSION == "Lua 5.1" then load = loadstring function table.pack(...) local t = {...} t.n = select("#", ...) return t end table.unpack = unpack end local f = assert(debug.getinfo(level,"f").func, "can't find function") local args_name = {} local args_val...
local source, level = ... level = (level or 0) + 2 if _VERSION == "Lua 5.1" then load = loadstring function table.pack(...) local t = {...} t.n = select("#", ...) return t end table.unpack = unpack end local f = assert(debug.getinfo(level,"f").func, "can't find function") local args_name = {} local args_val...
Fixes #123
Fixes #123
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
4c8ef614778fa33f22a8d67557e077524224417f
frontend/readhistory.lua
frontend/readhistory.lua
local DataStorage = require("datastorage") local DocSettings = require("docsettings") local dump = require("dump") local joinPath = require("ffi/util").joinPath local lfs = require("libs/libkoreader-lfs") local realpath = require("ffi/util").realpath local history_file = joinPath(DataStorage:getDataDir(), "history.lua...
local DataStorage = require("datastorage") local DocSettings = require("docsettings") local dump = require("dump") local joinPath = require("ffi/util").joinPath local lfs = require("libs/libkoreader-lfs") local realpath = require("ffi/util").realpath local history_file = joinPath(DataStorage:getDataDir(), "history.lua...
Fix sort-by-last-read when partition is mounted noatime (#3990)
Fix sort-by-last-read when partition is mounted noatime (#3990)
Lua
agpl-3.0
Frenzie/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,koreader/koreader,mwoz123/koreader,poire-z/koreader,NiLuJe/koreader,poire-z/koreader,Markismus/koreader,pazos/koreader,Hzj-jie/koreader,houqp/koreader,mihailim/koreader,lgeek/koreader
efe12f3f9d92b35d49bd050ed26fb4a2799fe38d
nwf_modules/direct_view_access_mod/init.lua
nwf_modules/direct_view_access_mod/init.lua
-- -- desc: Supports direct access to the views via file path for front-end debugging -- Author: Elvin -- Date: 17-5-25 -- others: It is only enabled when the nwf.config.echoDebugInfo configuration is set to true. -- print("direct_view_access_mod module init..."); if (nwf.config.echoDebugInfo) then nwf.registerRe...
-- -- desc: Supports direct access to the views via file path for front-end debugging -- Author: Elvin -- Date: 17-5-25 -- others: It is only enabled when the nwf.config.echoDebugInfo configuration is set to true. -- print("direct_view_access_mod module init..."); if (nwf.config.echoDebugInfo) then nwf.registerRe...
fix bug about direct_view_access_mod
fix bug about direct_view_access_mod
Lua
mit
Links7094/nwf,Links7094/nwf,elvinzeng/nwf,elvinzeng/nwf
6d8f65040cc8c04c31363e3b0aaad4218e700fd3
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
modules/admin-mini: Fixed wifi client mode again
modules/admin-mini: Fixed wifi client mode again
Lua
apache-2.0
deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci
2f40161c459d0530262349ce3dcd609a83b627dd
web.lua
web.lua
module(..., package.seeall) local Session = require 'bamboo.session' local Form = require 'bamboo.form' local View = require 'bamboo.view' local Web = Object:extend { __tag = 'Bamboo.Web'; __name = 'Web'; init = function (self, conn, main, req, stateful) local controller self.conn = conn self.req = req ...
module(..., package.seeall) local Session = require 'bamboo.session' local Form = require 'bamboo.form' local View = require 'bamboo.view' local Web = Object:extend { __tag = 'Bamboo.Web'; __name = 'Web'; init = function (self, conn, main, req, stateful) local controller self.conn = conn self.req = req ...
continue to fix the empty array json problem.
continue to fix the empty array json problem. Now web:json support 2 rank and 3 rank empty array. Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
Lua
bsd-3-clause
daogangtang/bamboo,daogangtang/bamboo
ed5959fe657c3938206c11aee3ea0b61037f6158
libs/term.lua
libs/term.lua
local prev, luv, T, stdin = ... 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"; [16384] = "red"...
local prev, luv, T, stdin = ... 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"; [16384] = "red"...
Fix the terminal
Fix the terminal
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
19907774571281e758c3237983fc28c4e3a95a21
src/main/lua/selectionConverter.lua
src/main/lua/selectionConverter.lua
STRATEGIES = { stabilized = 2 ^ 0, recurring = 2 ^ 1 } CONFIG_FILEPATH = (os.getenv("TMP") or os.getenv("TEMP") or error("Could not find a temporary directory.") ) .. "\\HookAnyText\\hex_config" HAT_IS_RUNNING = true HAT_MENU_ITEM = nil -- main hex capture function function convertHexSelection(threadObj) os.re...
STRATEGIES = { stabilized = 2 ^ 0, recurring = 2 ^ 1 } CONFIG_FILEPATH = (os.getenv("TMP") or os.getenv("TEMP") or error("Could not find a temporary directory.") ) .. "\\HookAnyText\\hex_config" HAT_IS_RUNNING = true HAT_MENU_ITEM = nil -- main hex capture function function convertHexSelection(threadObj) os.re...
Address deprecation of native methods in Lua
Address deprecation of native methods in Lua Fix #12
Lua
mit
MX-Futhark/hook-any-text
76188edfe583e36ea2713160e744176c9b9cdc77
src/rava.lua
src/rava.lua
local bcsave = require("libs/bcsave").start local preHooks = {} local postHooks = {} local maincode local mainobj local objs = {} local rava = {} -- check if file exists local function fileExists(file) if file then local f = io.open(file,"r") if f ~= nil then io.close(f) return true else return false ...
local bytecode = require("libs/bcsave").start local preHooks = {} local postHooks = {} local ccargs = os.getenv("CCARGS") or "" local mainobj local objs = {} local rava = {} -- check if file exists local function fileExists(file) if file then local f = io.open(file,"r") if f ~= nil then io.close(f) return ...
fixed compilation issue from ccargs and removed all print statements
fixed compilation issue from ccargs and removed all print statements
Lua
mit
frinknet/rava,frinknet/rava,frinknet/rava
79bc476fa58a94a33955b5d13f860401922ce02e
src/core.lua
src/core.lua
local busted = { root_context = { type = "describe", description = "global" }, options = {}, __call = function(self) self.output = self.options.output --run test local function test(description, callback) local debug_info = debug.getinfo(callback) local info = { source = debug_i...
-- return truthy if we're in a coroutine local function in_coroutine() local current_routine, main = coroutine.running() -- need check to the main variable for 5.2, it's nil for 5.1 return current_routine and (main == nil or main == false) end local busted = { root_context = { type = "describe", description = ...
Fix coroutine detection
Fix coroutine detection coroutine.running() has changed semantics between 5.1 and 5.2, and now returns a second boolean indicating whether the running coroutine is the main one.
Lua
mit
istr/busted,nehz/busted,azukiapp/busted,o-lim/busted,DorianGray/busted,sobrinho/busted,mpeterv/busted,xyliuke/busted,ryanplusplus/busted,leafo/busted,Olivine-Labs/busted
b57c352dcbd363220828b3832098cd680f16c265
assets/lua/Diggler.lua
assets/lua/Diggler.lua
local rtpath = digglerNative.gameLuaRuntimePath package.path = package.path .. ';' .. rtpath .. '/?.lua;' .. rtpath .. '/lds/?.lua' ffi = require('ffi') io = require('io') debug = require('debug') local STP = require "StackTracePlus" debug.traceback = STP.stacktrace diggler = { mods = {}, modOverlays = {}, mods...
local rtpath = digglerNative.gameLuaRuntimePath package.path = package.path .. ';' .. rtpath .. '/?.lua;' .. rtpath .. '/lds/?.lua' ffi = require('ffi') io = require('io') debug = require('debug') local STP = require "StackTracePlus" debug.traceback = STP.stacktrace diggler = { mods = {}, modOverlays = {}, mods...
Temp fix for Lua script crashing the game
Temp fix for Lua script crashing the game
Lua
agpl-3.0
ElementW/Diggler,ElementW/Diggler
7ad1b2e2cc88c4ed49e3133032727d71e50b9d4e
states/splash.lua
states/splash.lua
local Sprite = require 'entities.sprite' local splash = {} function splash:init() self.componentList = { { parent = self, image = Sprite:new('assets/images/splashscreen_logo.png'), initialAlpha = 0, finalAlpha = 255, fadeInTime = 2, s...
local Sprite = require 'entities.sprite' local splash = {} function splash:init() self.componentList = { { parent = self, image = Sprite:new('assets/images/splashscreen_logo.png'), initialAlpha = 0, finalAlpha = 255, fadeInTime = 2, s...
Fix splash image
Fix splash image
Lua
mit
Nuthen/ludum-dare-39
28ab3e31cb63a27d06566da53e8366041b9f3bfd
BIOS/init.lua
BIOS/init.lua
--The BIOS should control the system of LIKO-12 and load the peripherals-- --For now it's just a simple BIOS to get LIKO-12 working. --Require the engine libraries-- local events = require("Engine.events") local coreg = require("Engine.coreg") local function splitFilePath(path) return path:match("(.-)([^\\/]-%.?([^%....
--The BIOS should control the system of LIKO-12 and load the peripherals-- --For now it's just a simple BIOS to get LIKO-12 working. --Require the engine libraries-- local events = require("Engine.events") local coreg = require("Engine.coreg") local function splitFilePath(path) return path:match("(.-)([^\\/]-%.?([^%....
Bugfixes
Bugfixes
Lua
mit
RamiLego4Game/LIKO-12
84d5470a4143f497ec0242c60fbeff9d0800afaf
xmake/core/base/profiler.lua
xmake/core/base/profiler.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 profiler bug
fix profiler bug
Lua
apache-2.0
waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake
c7df5d519892976481ba59056e8225258261394b
src/make.lua
src/make.lua
local file_dir local test_dir local function git_fresh(fname) local f = io.open((test_dir / fname):string()) local test_file = f:read('*a') f:close() local map_file f = io.open((file_dir / fname):string()) if f then map_file = f:read('*a') f:close() end if test_file ~= map_file then f = io.open((file_dir...
local file_dir local test_dir local function git_fresh(fname) local f = io.open((test_dir / fname):string(), 'rb') local test_file = f:read('*a') f:close() local map_file f = io.open((file_dir / fname):string(), 'rb') if f then map_file = f:read('*a') f:close() end if test_file ~= map_file then f = io.op...
修正了会错误更改某些二进制文件的BUG
修正了会错误更改某些二进制文件的BUG
Lua
apache-2.0
syj2010syj/RPLegend
ca4d4953a5d57de1746230014014998dc9622a81
nvim/lua/plugins/cmp.lua
nvim/lua/plugins/cmp.lua
local require_safe = require("utils").require_safe local cmp = require_safe("cmp") local luasnip = require_safe("luasnip") require("luasnip/loaders/from_vscode").lazy_load() local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_l...
local require_safe = require("utils").require_safe local cmp = require_safe("cmp") local luasnip = require_safe("luasnip") require("luasnip/loaders/from_vscode").lazy_load() local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_l...
Nvim: fix cmp border config after update
Nvim: fix cmp border config after update
Lua
mit
aasare/aaku
31decbe144fca7578a872635207c8e450bd14188
gateway/src/apicast/policy/find_service/path_based_finder.lua
gateway/src/apicast/policy/find_service/path_based_finder.lua
local mapping_rules_matcher = require 'apicast.mapping_rules_matcher' local escape = require("resty.http.uri_escape") local _M = {} function _M.find_service(config_store, host) local found local services = config_store:find_by_host(host) local method = ngx.req.get_method() local uri = escape.escape_uri(ngx.va...
local mapping_rules_matcher = require 'apicast.mapping_rules_matcher' local escape = require("resty.http.uri_escape") local pretty = require("pl.pretty") local _M = {} function _M.find_service(config_store, host) local found local services = config_store:find_by_host(host) local method = ngx.req.get_method() ...
Fix: Path base routing match query args
Fix: Path base routing match query args Fix THREESCALE-5149
Lua
mit
3scale/docker-gateway,3scale/docker-gateway
cd2a91b23006a09a7e432d101d9d72011931a58c
UCDvehicleShops/client.lua
UCDvehicleShops/client.lua
local markerInfo = {} local sX, sY = guiGetScreenSize() GUI = { gridlist = {}, window = {}, button = {} } GUI.window = GuiWindow(1085, 205, 281, 361, "UCD | Vehicle Shop - Low End", false) GUI.window.sizable = false GUI.window.visible = false GUI.window.alpha = 255 GUI.gridlist = GuiGridList(9, 28, 262, 28...
local markerInfo = {} local sX, sY = guiGetScreenSize() GUI = { gridlist = nil, window = {}, button = {} } GUI.window = GuiWindow(1085, 205, 281, 361, "UCD | Vehicle Shop - Low End", false) GUI.window.sizable = false GUI.window.visible = false GUI.window.alpha = 255 function createGridList() if (GUI.gridl...
UCDvehicleShops
UCDvehicleShops - Fixed grid list sorting fuckung up when you sort a gridlist, then reopen the panel.
Lua
mit
nokizorque/ucd,nokizorque/ucd
ed788623be232592193783c58fcddd4c96cc1c28
packages/lime-system/files/usr/lib/lua/lime/wireless.lua
packages/lime-system/files/usr/lib/lua/lime/wireless.lua
#!/usr/bin/lua module(..., package.seeall) function generate_ssid() local id = assert(x:get("lime", "wireless", "ssid")) local r1, r2, r3 = node_id() return string.format("%02x%02x%02x.%s", r1, r2, r3, id) end function clean() print("Clearing wireless config...") x:foreach("wireless", "wifi-ifac...
#!/usr/bin/lua module(..., package.seeall) function generate_ssid() local r1, r2, r3 = node_id() return string.format("%02x%02x%02x.lime", r1, r2, r3) end function clean() print("Clearing wireless config...") x:foreach("wireless", "wifi-iface", function(s) x:delete("wireless", s[".name"]) ...
generate ad-hoc ssid with suffix '.lime' instead of overly long network name
generate ad-hoc ssid with suffix '.lime' instead of overly long network name
Lua
agpl-3.0
libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages
b5478aaeeddf44e56f7d1aecc391cd4a98061edd
nvim/lua/config.lua
nvim/lua/config.lua
local helper = require('helper') vim.o.background = "dark" -- or "light" for light mode -- vim.cmd([[colorscheme gruvbox-material]]) vim.cmd([[colorscheme gruvbox8]]) -- Copy with: "*y vim.o.clipboard = 'unnamed' --[[ Configure completion ]]-- -- LSP config (the mappings used in the default file don't quite work rig...
local helper = require('helper') vim.o.background = "dark" -- or "light" for light mode -- vim.cmd([[colorscheme gruvbox-material]]) vim.cmd([[colorscheme gruvbox8]]) -- Copy with: "*y vim.o.clipboard = 'unnamed' --[[ Configure completion ]]-- -- LSP config (the mappings used in the default file don't quite work rig...
Fix lsp server configuration
Fix lsp server configuration
Lua
bsd-2-clause
lateefj/side
0141a0d043fc8758fa8576c467dd2845df5e6e36
assets/dl.lua
assets/dl.lua
--[[ A LuaJIT FFI based version of dlopen() which loads dependencies first (for implementations of dlopen() lacking that feature, like on Android) This is heavily inspired by the lo_dlopen() implementation from LibreOffice (see http://cgit.freedesktop.org/libreoffice/core/tree/sal/android/lo-bootstrap.c) and as such: ...
--[[ A LuaJIT FFI based version of dlopen() which loads dependencies first (for implementations of dlopen() lacking that feature, like on Android) This is heavily inspired by the lo_dlopen() implementation from LibreOffice (see http://cgit.freedesktop.org/libreoffice/core/tree/sal/android/lo-bootstrap.c) and as such: ...
dl.lua: skip system libraries (fix Android 8) (#69)
dl.lua: skip system libraries (fix Android 8) (#69) Fixes https://github.com/koreader/koreader/issues/3126 Thanks to @chrox for testing, see https://github.com/koreader/koreader/issues/3126#issuecomment-335556571.
Lua
mit
koreader/android-luajit-launcher,koreader/android-luajit-launcher,koreader/android-luajit-launcher,koreader/android-luajit-launcher
eff127fd58b0fec1a259786ead9ffef5f38d4c26
train.lua
train.lua
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- The training...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- The training...
Limit top-5 to top-N for N-way classifier
Limit top-5 to top-N for N-way classifier Don't error when trying to compute top-5 for binary classifier Fixes #14
Lua
bsd-3-clause
ltrottier/pelu.resnet.torch,ltrottier/pelu.resnet.torch
0d2d5f9f71cb5393940a5ea18472376f9ad89792
embark_site.lua
embark_site.lua
--[[ embark_site (by Lethosor) Allows embarking in disabled locations (e.g. too small or on an existing site) Note that this script is not yet complete (although it's mostly functional). Notably, there is currently no GUI integration - you can either run it from the console or add keybindings. Some example keybinding...
--[[ embark_site (by Lethosor) Allows embarking in disabled locations (e.g. too small or on an existing site) Note that this script is not yet complete (although it's mostly functional). Notably, there is currently no GUI integration - you can either run it from the console or add keybindings. Some example keybinding...
Fix rendering and intercept input
Fix rendering and intercept input
Lua
unlicense
DFHack/lethosor-scripts,PeridexisErrant/lethosor-scripts,lethosor/dfhack-scripts
0a314e3ab8bbe0613a973986103b387346339ecd
frontend/ui/widget/scrollhtmlwidget.lua
frontend/ui/widget/scrollhtmlwidget.lua
--[[-- HTML widget with vertical scroll bar. --]] local Device = require("device") local HtmlBoxWidget = require("ui/widget/htmlboxwidget") local Geom = require("ui/geometry") local GestureRange = require("ui/gesturerange") local HorizontalGroup = require("ui/widget/horizontalgroup") local HorizontalSpan = require("ui...
--[[-- HTML widget with vertical scroll bar. --]] local Device = require("device") local HtmlBoxWidget = require("ui/widget/htmlboxwidget") local Geom = require("ui/geometry") local GestureRange = require("ui/gesturerange") local HorizontalGroup = require("ui/widget/horizontalgroup") local HorizontalSpan = require("ui...
[fix] widget/scrollhtmlwidget: default_font_size same as infofont and Screen:scaleBySize() (#4864)
[fix] widget/scrollhtmlwidget: default_font_size same as infofont and Screen:scaleBySize() (#4864) Otherwise it's: 1. Too small on virtually all devices due to a lack of scaling. 2. Unusably small by default. It's currently scaled by the callers (dictquicklookup & footnotewidget) based on other properties, but ...
Lua
agpl-3.0
poire-z/koreader,Frenzie/koreader,mihailim/koreader,houqp/koreader,NiLuJe/koreader,Hzj-jie/koreader,koreader/koreader,Markismus/koreader,mwoz123/koreader,Frenzie/koreader,poire-z/koreader,NiLuJe/koreader,pazos/koreader,koreader/koreader
8b97e3bac69f19425ef4d71fb429184b88462f12
GPTooltip.lua
GPTooltip.lua
local mod = EPGP:NewModule("EPGP_GPTooltip", "AceHook-2.1") local EQUIPSLOT_VALUE = { ["INVTYPE_HEAD"] = 1, ["INVTYPE_NECK"] = 0.55, ["INVTYPE_SHOULDER"] = 0.777, ["INVTYPE_CHEST"] = 1, ["INVTYPE_ROBE"] = 1, ["INVTYPE_WAIST"] = 0.777, ["INVTYPE_LEGS"] = 1, ["INVTYPE_FEET"] = 0.777, ["INVTYPE_WRIST"] ...
local mod = EPGP:NewModule("EPGP_GPTooltip", "AceHook-2.1") local EQUIPSLOT_VALUE = { ["INVTYPE_HEAD"] = 1, ["INVTYPE_NECK"] = 0.55, ["INVTYPE_SHOULDER"] = 0.777, ["INVTYPE_CHEST"] = 1, ["INVTYPE_ROBE"] = 1, ["INVTYPE_WAIST"] = 0.777, ["INVTYPE_LEGS"] = 1, ["INVTYPE_FEET"] = 0.777, ["INVTYPE_WRIST"] ...
Fix tooltip addition to work for all tooltips: addons and blizzard ui alike.
Fix tooltip addition to work for all tooltips: addons and blizzard ui alike.
Lua
bsd-3-clause
sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp