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
d7934024148ff51ff39e6d248b36a16e45317597
scripts/package.lua
scripts/package.lua
--- -- Create a source or binary release package. --- --- -- Helper function: run a command while hiding its output. --- local function execQuiet(cmd, ...) cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log" local z = os.execute(cmd) os.remove("_output_.log") os.remove("_error_.log") return ...
--- -- Create a source or binary release package. --- --- -- Helper function: run a command while hiding its output. --- local function execQuiet(cmd, ...) cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log" local z = os.execute(cmd) os.remove("_output_.log") os.remove("_error_.log") return ...
Package: Fix repository not correctly removed due to git objects being read only
Package: Fix repository not correctly removed due to git objects being read only
Lua
bsd-3-clause
starkos/premake-core,LORgames/premake-core,sleepingwit/premake-core,mandersan/premake-core,dcourtois/premake-core,noresources/premake-core,starkos/premake-core,LORgames/premake-core,mandersan/premake-core,noresources/premake-core,starkos/premake-core,LORgames/premake-core,sleepingwit/premake-core,starkos/premake-core,L...
e801500901a56fb73efe8c2a89dda0e226a933a9
pud/component/CollisionComponent.lua
pud/component/CollisionComponent.lua
local Class = require 'lib.hump.class' local ModelComponent = getClass 'pud.component.ModelComponent' local property = require 'pud.component.property' local message = require 'pud.component.message' -- CollisionComponent -- local CollisionComponent = Class{name='CollisionComponent', inherits=ModelComponent, functi...
local Class = require 'lib.hump.class' local ModelComponent = getClass 'pud.component.ModelComponent' local property = require 'pud.component.property' local message = require 'pud.component.message' local match = string.match -- CollisionComponent -- local CollisionComponent = Class{name='CollisionComponent', inher...
fix migrating from old code
fix migrating from old code
Lua
mit
scottcs/wyx
99cc2c41e6fc026699c35eb0d08b2ae7c9301b8b
focuspoints.lrdevplugin/FocusPointDialog.lua
focuspoints.lrdevplugin/FocusPointDialog.lua
--[[ Copyright 2016 Joshua Musselwhite, Whizzbang Inc 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...
--[[ Copyright 2016 Joshua Musselwhite, Whizzbang Inc 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...
Fix size calculation for image in dialog window.
Fix size calculation for image in dialog window.
Lua
apache-2.0
musselwhizzle/Focus-Points,philmoz/Focus-Points,project802/Focus-Points,project802/Focus-Points,project802/Focus-Points,project802/Focus-Points,musselwhizzle/Focus-Points,mkjanke/Focus-Points,mkjanke/Focus-Points,philmoz/Focus-Points,rderimay/Focus-Points,rderimay/Focus-Points
8c750eab4fe7996abe4a117595b0c78afc1f9f65
event_list_slide.lua
event_list_slide.lua
require 'text_util' local class = require '30log' local json = require 'json' local Slide = require 'slide' -- local white_block = resource.load_image('white.png') local EventListSlide = Slide:extend("EventListSlide") local EventListItem = require 'event_list_item' function EventListSlide:init(x, y, width, height, d...
require 'text_util' local class = require '30log' local json = require 'json' local Slide = require 'slide' -- local white_block = resource.load_image('white.png') local EventListSlide = Slide:extend("EventListSlide") local EventListItem = require 'event_list_item' function EventListSlide:init(x, y, width, height, d...
Fixed page number logic
Fixed page number logic
Lua
apache-2.0
superlou/next-beamer
137494927d7665e68b8df2d051ebf718b9fd33fb
config/nvim/after.lua
config/nvim/after.lua
local map = require('utils').map local cmd = vim.cmd -- " Commands cmd([[colorscheme dracula]]) -- " Remove trailing spaces on save cmd([[autocmd BufWritePre * :%s/\s\+$//e]]) -- " Common typos cmd(':command! WQ wq') cmd(':command! WQ wq') cmd(':command! Wq wq') cmd(':command! Wqa wqa') cmd(':command! Qall qall') cm...
local map = require('utils').map local cmd = vim.cmd -- " Commands cmd([[colorscheme dracula]]) -- " Remove trailing spaces on save cmd([[autocmd BufWritePre * :%s/\s\+$//e]]) -- " Common typos cmd(':command! WQ wq') cmd(':command! WQ wq') cmd(':command! Wq wq') cmd(':command! Wqa wqa') cmd(':command! Qall qall') cm...
Fix sorbet lsp
Fix sorbet lsp
Lua
mit
albertoleal/dotfiles,albertoleal/dotfiles
f0f9cfc61a40b0f36af84aee4a13fb34e50b5a41
BtEvaluator/BtEvaluator.lua
BtEvaluator/BtEvaluator.lua
function widget:GetInfo() return { name = "BtEvaluator loader", desc = "BtEvaluator loader and message test to this AI.", author = "JakubStasta", date = "Sep 20, 2016", license = "BY-NC-SA", layer = 0, enabled = true, -- loaded by default? version = version, } end local U...
function widget:GetInfo() return { name = "BtEvaluator loader", desc = "BtEvaluator loader and message test to this AI.", author = "JakubStasta", date = "Sep 20, 2016", license = "BY-NC-SA", layer = 0, enabled = true, -- loaded by default? version = version, } end local U...
Fixed accidentally deleted expression handling.
Fixed accidentally deleted expression handling.
Lua
mit
MartinFrancu/BETS
394c6cea0bc7c7df264b8c9bdd64a4ca9716ef30
src/luacheck/options.lua
src/luacheck/options.lua
local options = {} local utils = require "luacheck.utils" local stds = require "luacheck.stds" local function boolean(x) return type(x) == "boolean" end local function number(x) return type(x) == "number" end local function array_of_strings(x) if type(x) ~= "table" then return false end for _,...
local options = {} local utils = require "luacheck.utils" local stds = require "luacheck.stds" local function boolean(x) return type(x) == "boolean" end local function number(x) return type(x) == "number" end local function array_of_strings(x) if type(x) ~= "table" then return false end for _,...
Fixed a bug in options.normalize
Fixed a bug in options.normalize Do not mutate options.
Lua
mit
mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck,tst2005/luacheck,mpeterv/luacheck,kidaa/luacheck,xpol/luacheck,linuxmaniac/luacheck,kidaa/luacheck,xpol/luacheck,tst2005/luacheck,linuxmaniac/luacheck,adan830/luacheck,adan830/luacheck
90dcea1ba46475a1c02493bd8fe18503931fb507
vrp/lib/Tunnel.lua
vrp/lib/Tunnel.lua
local Tools = module("lib/Tools") local Debug = module("lib/Debug") -- API used in function of the side local TriggerRemoteEvent = nil local RegisterLocalEvent = nil if SERVER then TriggerRemoteEvent = TriggerClientEvent RegisterLocalEvent = RegisterServerEvent else TriggerRemoteEvent = TriggerServerEvent Reg...
local Tools = module("lib/Tools") local Debug = module("lib/Debug") -- API used in function of the side local TriggerRemoteEvent = nil local RegisterLocalEvent = nil if SERVER then TriggerRemoteEvent = TriggerClientEvent RegisterLocalEvent = RegisterServerEvent else TriggerRemoteEvent = TriggerServerEvent Reg...
Try to fix hang issue with Tunnel call.
Try to fix hang issue with Tunnel call.
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
e092f74b974286bce9491ab751d42ad72f13509d
modules/tollpost.lua
modules/tollpost.lua
local ev = require'ev' local util = require'util' local simplehttp = util.simplehttp local json = util.json local apiurl = 'http://www.tollpost.no/XMLServer/rest/trackandtrace/%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral event data until we ...
local ev = require'ev' local util = require'util' local simplehttp = util.simplehttp local json = util.json local apiurl = 'http://www.tollpost.no/XMLServer/rest/trackandtrace/%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral event data until we ...
tollpost: Remove trailing whitespaces and fix mixed indent.
tollpost: Remove trailing whitespaces and fix mixed indent. Former-commit-id: dfcafde67a82008a90ac2044a3c01cf3960af540 [formerly 9b0a839130b657963cfc72d68f7d051fbceb9a2f] Former-commit-id: b8132d1e3c7ff1830fbc4a5e796f61bd1c823c0d
Lua
mit
torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2
c833c967505440717343dc5bd580dbb286e54b3f
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
applications/luci-statistics: fix controller (#7344)
applications/luci-statistics: fix controller (#7344)
Lua
apache-2.0
ReclaimYourPrivacy/cloak-luci,thesabbir/luci,ollie27/openwrt_luci,nmav/luci,RedSnake64/openwrt-luci-packages,palmettos/test,Wedmer/luci,thess/OpenWrt-luci,nmav/luci,jlopenwrtluci/luci,rogerpueyo/luci,NeoRaider/luci,thess/OpenWrt-luci,kuoruan/lede-luci,981213/luci-1,ReclaimYourPrivacy/cloak-luci,981213/luci-1,opentechin...
465401e3aa14123b234ff6ace7a77949058c46b1
Peripherals/FDD/init.lua
Peripherals/FDD/init.lua
local perpath = select(1,...) --The path to the FDD folder local bit = require("bit") local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift local function exe(ok,err,...) if ok then return err,... else return error(err or "NULL") end end return function(config) local GPUKit =...
local perpath = select(1,...) --The path to the FDD folder local bit = require("bit") local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift return function(config) local GPUKit = config.GPUKit or error("The FDD peripheral requires the GPUKit") local RAM = config.RAM or error("The FDD peri...
Crash fix
Crash fix Former-commit-id: 7284a92d3f5953daca34a594a37c7af4825a20f4
Lua
mit
RamiLego4Game/LIKO-12
67537db200c21a29f80ba831dac91469d913b65c
webpaste.lua
webpaste.lua
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
args = {} settings = args[1] return doctype()( tag"head"( tag"title" "CPaste WebPaste", tag"script"[{src="//code.jquery.com/jquery-1.11.3.min.js"}](), tag"script"[{src="//code.jquery.com/jquery-migrate-1.2.1.min.js"}](), tag"script"([[ $(document).ready(function() { $('#submit').click(function() { ...
I think I fixed it
I think I fixed it
Lua
mit
carbonsrv/cpaste,vifino/cpaste
5c5380ca90496e8488e06c13ba3cdcb530b7aa40
languages/unicode.lua
languages/unicode.lua
require("char-def") local chardata = characters.data icu = require("justenoughicu") SILE.nodeMakers.base = std.object { makeToken = function(self) if #self.contents>0 then coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options)) SU.debug("tokenizer", "Token: "..self.token) ...
require("char-def") local chardata = characters.data icu = require("justenoughicu") SILE.nodeMakers.base = std.object { makeToken = function(self) if #self.contents>0 then coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options)) SU.debug("tokenizer", "Token: "..self.token) ...
refactor(languages): Tidy up ICU-based shaper
refactor(languages): Tidy up ICU-based shaper The best way to solve the French bug is to create a French-specific nodemaker. But currently writing a nodemaker involves copying a lot of boilerplate code. Some of this is also confusing because there is a lot of overlap between the ICU nodemaker (which asks ICU about bre...
Lua
mit
alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,alerque/sile,simoncozens/sile
9406f3223335e6affe6214d904ade29584b721ff
testbed/units.lua
testbed/units.lua
require "tundra.syntax.glob" -- Used to generate the moc cpp files as needed for .h that uses Q_OBJECT DefRule { Name = "MocGeneration", Pass = "GenerateSources", Command = "$(QT5)/bin/moc $(<) -o $(@)", Blueprint = { Source = { Required = true, Type = "string", Help = "Input filename", }, OutName = { Requir...
require "tundra.syntax.glob" -- Used to generate the moc cpp files as needed for .h that uses Q_OBJECT DefRule { Name = "MocGeneration", Pass = "GenerateSources", Command = "$(QT5)/bin/moc $(<) -o $(@)", Blueprint = { Source = { Required = true, Type = "string", Help = "Input filename", }, OutName = { Requir...
Fixed so Qt5 code can use c++11
Fixed so Qt5 code can use c++11
Lua
mit
RobertoMalatesta/ProDBG,ashemedai/ProDBG,emoon/ProDBG,v3n/ProDBG,emoon/ProDBG,SlNPacifist/ProDBG,ashemedai/ProDBG,v3n/ProDBG,kondrak/ProDBG,emoon/ProDBG,ashemedai/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,v3n/ProDBG,kondrak/ProDBG,SlNPacifist/ProDBG,kondrak/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,kond...
f124c40f536fb1f0aa91227e9e92283164d98b6e
chooseAP.lua
chooseAP.lua
-- works using least memory if compiled, otherwise you may -- run out of memory and the module will randomly restart and -- drop connections local SSID = nil local pass = nil local otherSSID = nil local errMsg = nil local savedNetwork = false local SSIDs = {} -- lookup table for wifi.sta.status() local statusTable =...
-- works using least memory if compiled, otherwise you may -- run out of memory and the module will randomly restart and -- drop connections local SSID = nil local pass = nil local otherSSID = nil local errMsg = nil local savedNetwork = false local SSIDs = {} -- lookup table for wifi.sta.status() local statusTable =...
fixed local var problems
fixed local var problems
Lua
mit
wordsforthewise/ESP-8266_network-connect
f1310cc6adeae7cec04acfee7c65f606a347d8ca
src/lua/Parallel.lua
src/lua/Parallel.lua
local zmq = require "lzmq" local zloop = require "lzmq.loop" local zthreads = require "lzmq.threads" local mp = require "cmsgpack" local zassert = zmq.assert local ENDPOINT = "inproc://main" local THREAD_STARTER = [[ local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[ local zmq = require "lzm...
local zmq = require "lzmq" local zloop = require "lzmq.loop" local zthreads = require "lzmq.threads" local mp = require "cmsgpack" local zassert = zmq.assert local ENDPOINT = "inproc://main" local THREAD_STARTER = [[ local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[ local zmq = require "lzm...
Fix. Manually interrupt loop when job is done.
Fix. Manually interrupt loop when job is done.
Lua
mit
kidaa/lua-Parallel,moteus/lua-Parallel
f709e2888e1727184621d314a80442544f14242f
kong/plugins/zipkin/schema.lua
kong/plugins/zipkin/schema.lua
local typedefs = require "kong.db.schema.typedefs" return { name = "zipkin", fields = { { run_on = typedefs.run_on { default = "all" } }, { config = { type = "record", fields = { { http_endpoint = typedefs.url{ required = true } }, { sample_ratio = { type = "number", ...
local typedefs = require "kong.db.schema.typedefs" return { name = "zipkin", fields = { { config = { type = "record", fields = { { http_endpoint = typedefs.url{ required = true } }, { sample_ratio = { type = "number", default = 0.001, ...
fix(zipkin) remove `run_on` field from plugin schema (#54)
fix(zipkin) remove `run_on` field from plugin schema (#54) It is no longer needed as service mesh support is removed from Kong
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
80cd614a4e12ca8269971939a4ce80fe64ad78cf
lib/resty/mongol/object_id.lua
lib/resty/mongol/object_id.lua
local mod_name = (...):match ( "^(.*)%..-$" ) local setmetatable = setmetatable local strbyte = string.byte local strformat = string.format local t_insert = table.insert local t_concat = table.concat local hasposix , posix = pcall ( require , "posix" ) local ll = require ( mod_name .. ".ll" ) local num_to_le_uint = ...
local mod_name = (...):match ( "^(.*)%..-$" ) local setmetatable = setmetatable local strbyte = string.byte local strformat = string.format local t_insert = table.insert local t_concat = table.concat local hasposix , posix = pcall ( require , "posix" ) local ll = require ( mod_name .. ".ll" ) local num_to_le_uint = ...
bugfix: pid generated failed, so replaced with nginx var
bugfix: pid generated failed, so replaced with nginx var
Lua
mit
Olivine-Labs/resty-mongol
7be008936eab8e17bdc4de1811411071821eb294
mods/flowers/init.lua
mods/flowers/init.lua
-- Minetest 0.4 mod: default -- See README.txt for licensing and other information. -- Namespace for functions flowers = {} -- Map Generation dofile(minetest.get_modpath("flowers") .. "/mapgen.lua") -- -- Flowers -- -- Aliases for original flowers mod minetest.register_alias("flowers:flower_rose", "flowers:ro...
-- Minetest 0.4 mod: default -- See README.txt for licensing and other information. -- Namespace for functions flowers = {} -- Map Generation dofile(minetest.get_modpath("flowers") .. "/mapgen.lua") -- -- Flowers -- -- Aliases for original flowers mod minetest.register_alias("flowers:flower_rose", "flowers:ro...
Flowers: Fix itemstack when waterlily is placed
Flowers: Fix itemstack when waterlily is placed
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
ce92066de90d7803a950400ff7cde1e1545fdf9b
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
applications/luci-statistics: fix controller (#7344)
applications/luci-statistics: fix controller (#7344)
Lua
apache-2.0
8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci
16bf7363e707013d8d636c2d891cd5138e6aca53
game/scripts/vscripts/heroes/hero_sara/evolution.lua
game/scripts/vscripts/heroes/hero_sara/evolution.lua
LinkLuaModifier("modifier_sara_evolution", "heroes/hero_sara/evolution.lua", LUA_MODIFIER_MOTION_NONE) sara_evolution = class({ GetIntrinsicModifierName = function() return "modifier_sara_evolution" end, }) modifier_sara_evolution = class({ IsPurgable = function() return false end, DestroyOnExpire = function(...
LinkLuaModifier("modifier_sara_evolution", "heroes/hero_sara/evolution.lua", LUA_MODIFIER_MOTION_NONE) sara_evolution = class({ GetIntrinsicModifierName = function() return "modifier_sara_evolution" end, }) modifier_sara_evolution = class({ IsPurgable = function() return false end, DestroyOnExpire = function(...
fix(sara): armor reduction works incorrectly
fix(sara): armor reduction works incorrectly Fixes #401.
Lua
mit
ark120202/aabs
f9ba3e694c284cc831722a2a4a7cc53074e39917
Quadtastic/AppLogic.lua
Quadtastic/AppLogic.lua
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function" or self._state.coroutine) local co, ret if self._state.coroutine then -- The coroutine might be running if this was a nested call. -- In this c...
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function" or self._state.coroutine) local co, ret if self._state.coroutine then -- The coroutine might be running if this was a nested call. -- In this c...
Fix issue where catching up on queued events could crash the app
Fix issue where catching up on queued events could crash the app
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
e447b010ce03f988d9ea3c1708bbcf50a0411f0e
mods/inventory_icon/init.lua
mods/inventory_icon/init.lua
inventory_icon = {} inventory_icon.hudids = {} inventory_icon.COLORIZE_STRING = "[colorize:#A00000:192" function inventory_icon.get_inventory_state(inv, listname) local size = inv:get_size(listname) local occupied = 0 for i=1,size do local stack = inv:get_stack(listname, i) if not stack:is_empty() then occu...
inventory_icon = {} inventory_icon.hudids = {} inventory_icon.COLORIZE_STRING = "[colorize:#A00000:192" function inventory_icon.get_inventory_state(inv, listname) local size = inv:get_size(listname) local occupied = 0 for i=1,size do local stack = inv:get_stack(listname, i) if not stack:is_empty() then occu...
fix crash if not player
fix crash if not player
Lua
unlicense
LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,Coethium/server-minetestforfun,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,paly2/...
775a0922518b4e8f442688528297f39123beb54d
hymn/deposit.lua
hymn/deposit.lua
local Building = require "shared.building" local LogicCore = require "hymn.logiccore" local EntityStatics = require "hymn.staticdata.entitystatics" local GameMath = require "shared.gamemath" local Deposit = Building:subclass("Deposit") function Deposit:initialize(entityStatic) Building.initialize(self, entityStat...
local Building = require "shared.building" local LogicCore = require "hymn.logiccore" local EntityStatics = require "hymn.staticdata.entitystatics" local GameMath = require "shared.gamemath" local Deposit = Building:subclass("Deposit") function Deposit:initialize(entityStatic) Building.initialize(self, entityStat...
Fix: Don't change deposit ownership if already owned
Fix: Don't change deposit ownership if already owned
Lua
mit
ExcelF/project-navel
daa70acd8e6b5a05e5c761a7041b68838290eaa3
love2d/world.lua
love2d/world.lua
require "tileset" require "map" require "pawn" require "mapGenerator" function love.game.newWorld() local o = {} o.mapG = nil o.map = nil o.mapWidth = 32 o.mapHeight = 24 o.tileset = nil o.offsetX = 0 o.offsetY = 0 o.zoom = 1 o.offsetX = 0 o.offsetY = 0 o.goalX = 7 o.goalY =7 o.init = function() o.m...
require "tileset" require "map" require "pawn" require "mapGenerator" function love.game.newWorld() local o = {} o.mapG = nil o.map = nil o.mapWidth = 32 o.mapHeight = 24 o.tileset = nil o.offsetX = 0 o.offsetY = 0 o.zoom = 1 o.offsetX = 0 o.offsetY = 0 o.goalX = 7 o.goalY =7 o.init = function() o.m...
Fix zoom.
Fix zoom.
Lua
mit
nczempin/lizard-journey
1e217337391c9a50d27e7632d8a284fa446f2e29
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/37_counters.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/37_counters.lua
--This program demonstrates how to use AINs as counters. --Most commonly users should throttle their code execution using the functions: --'LJ.IntervalConfig(0, 1000)', and 'if LJ.CheckInterval(0) then' ... --Array indeces 1-14 correspond with AIN0-13 --Array indeces 15-37 correspond with DIO0-22 as the following: ...
--[[ Name: 37_counters.lua Desc: This program demonstrates how to use AINs as counters. Note: In most cases, users should throttle their code execution using the functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)" --]] --Array indexes 1-14 correspond with AIN0-13 --Array...
Fixed up the 37 counter example
Fixed up the 37 counter example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
1bd363f5fc2c4ff6a4042ce00063f6fa6eda5326
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/unipolar_full_step.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/unipolar_full_step.lua
-- The unipolar_full_step example script was written as part of LabJack''s -- "Stepper Motor Controller" App-Note. There is an accompanying python script -- as well as a (Windows Only) LabVIEW example application that should be run -- in conjunction wth this script. -- See: https://labjack.com/support/app-notes/d...
--[[ Name: unipolar_full_step.lua Desc: The unipolar_full_step example script was written as part of LabJack's "Stepper Motor Controller" App-Note. Note: There is an accompanying python script as well as a (Windows Only) LabVIEW example application that should be run in conjunct...
Fixed up the formatting of the unipolar full step example
Fixed up the formatting of the unipolar full step example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
9c349998457260a6b87a897138d82b0b0530176f
lua/wire/client/cl_gpulib.lua
lua/wire/client/cl_gpulib.lua
local RT_CACHE_SIZE = 32 // // Create rendertarget cache // if not RenderTargetCache then RenderTargetCache = {} for i = 1,RT_CACHE_SIZE do RenderTargetCache[i] = { Target = GetRenderTarget("WireGPU_RT_"..i, 512, 512), Used = false } end end // // Create basic fonts // surface.CreateFon...
local RT_CACHE_SIZE = 32 // // Create rendertarget cache // if not RenderTargetCache then RenderTargetCache = {} for i = 1,RT_CACHE_SIZE do RenderTargetCache[i] = { Target = GetRenderTarget("WireGPU_RT_"..i, 512, 512), Used = false } end end // // Create basic fonts // surface.CreateFon...
[GPULib] Drawing textures instead of materials again. This might or might not fix the bugs where a screen displays the wrong contents.
[GPULib] Drawing textures instead of materials again. This might or might not fix the bugs where a screen displays the wrong contents.
Lua
apache-2.0
mitterdoo/wire,CaptainPRICE/wire,bigdogmat/wire,dvdvideo1234/wire,sammyt291/wire,rafradek/wire,garrysmodlua/wire,Grocel/wire,mms92/wire,notcake/wire,wiremod/wire,NezzKryptic/Wire,immibis/wiremod,plinkopenguin/wiremod,Python1320/wire,thegrb93/wire
ae32c5bb6a4e7ec9e804e0d9cdec9493a19a440e
mod_pastebin/mod_pastebin.lua
mod_pastebin/mod_pastebin.lua
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local length_threshold = config.get(module.host, "core", "pasteb...
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local length_threshold = config.get(module.host, "core", "pasteb...
mod_pastebin: Fix trigger_string matching when no trigger is set, and add support for counting lines (pastebin_line_threshold, default: 4)
mod_pastebin: Fix trigger_string matching when no trigger is set, and add support for counting lines (pastebin_line_threshold, default: 4)
Lua
mit
BurmistrovJ/prosody-modules,cryptotoad/prosody-modules,heysion/prosody-modules,asdofindia/prosody-modules,cryptotoad/prosody-modules,cryptotoad/prosody-modules,olax/prosody-modules,syntafin/prosody-modules,1st8/prosody-modules,stephen322/prosody-modules,Craige/prosody-modules,cryptotoad/prosody-modules,drdownload/proso...
0bd6a3916227608d5a1f952a05e70238de8d79c7
bin/busted.lua
bin/busted.lua
if ngx ~= nil then ngx.exit = function()end end if os.getenv('CI') == 'true' then local luacov = require('luacov.runner') local pwd = os.getenv('PWD') for _, option in ipairs({"statsfile", "reportfile"}) do -- properly expand current working dir, workaround for https://github.com/openresty/resty-cli/issue...
-- Clean warning on openresty 1.15.8.1, where some global variables are set -- using ngx.timer that triggers an invalid warning message. -- Code related: https://github.com/openresty/lua-nginx-module/blob/61e4d0aac8974b8fad1b5b93d0d3d694d257d328/src/ngx_http_lua_util.c#L795-L839 getmetatable(_G).__newindex = nil if ng...
Fix invalid warning message from openresty 1.15.8.1
Fix invalid warning message from openresty 1.15.8.1 Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@gmail.com>
Lua
mit
3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast
716941cd019a1d1c398261fe05b1474fab8eb65e
nvim/.config/nvim/lua/gb/lsp.lua
nvim/.config/nvim/lua/gb/lsp.lua
local nvim_lsp = require("lspconfig") local function custom_on_init() print("Language Server Protocol started!") end local function custom_root_dir() if (string.find(vim.fn.expand("%f"), "node_modules/") == nil) then return nvim_lsp.util.root_pattern(".git") end return nil end local capabilities = requi...
local nvim_lsp = require("lspconfig") local function custom_on_init() print("Language Server Protocol started!") end local function custom_root_dir() if (string.find(vim.fn.expand("%f"), "node_modules/") == nil) then return nvim_lsp.util.root_pattern(".git") end return nil end local capabilities = requi...
Fix lsp with empty snippet function for tsserver
Fix lsp with empty snippet function for tsserver
Lua
mit
gblock0/dotfiles
bf573701018606d334e57349afc2f5962818ba16
share/lua/website/bbc.lua
share/lua/website/bbc.lua
-- quvi -- Copyright (C) 2010 quvi project -- -- This file is part of quvi <http://quvi.googlecode.com/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2.1 of ...
-- quvi -- Copyright (C) 2010 quvi project -- -- This file is part of quvi <http://quvi.googlecode.com/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2.1 of ...
bbc.lua: Only modify the application string if we have one
bbc.lua: Only modify the application string if we have one And fix extraneous closing bracket.
Lua
lgpl-2.1
hadess/libquvi-scripts-iplayer,hadess/libquvi-scripts-iplayer
3e6a5d49c2d0ca60653ffdae949b41987b30b8d6
SpatialConvolution.lua
SpatialConvolution.lua
local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self.kW = kW s...
local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self.kW = kW s...
fixing typing in SpatialConvolution
fixing typing in SpatialConvolution
Lua
bsd-3-clause
sagarwaghmare69/nn,douwekiela/nn,witgo/nn,fmassa/nn,Jeffyrao/nn,zchengquan/nn,lvdmaaten/nn,hery/nn,bartvm/nn,GregSatre/nn,PierrotLC/nn,noa/nn,lukasc-ch/nn,jonathantompson/nn,PraveerSINGH/nn,mys007/nn,rotmanmi/nn,andreaskoepf/nn,karpathy/nn,colesbury/nn,Djabbz/nn,boknilev/nn,abeschneider/nn,Moodstocks/nn,eriche2016/nn,a...
1af184763249882bbf4cbb56c144abecf68b63e6
premake4.lua
premake4.lua
if os.get() == "windows" then _ACTION = _ACTION or "vs2010" elseif os.get() == "linux"then _ACTION = _ACTION or "gmake" end newoption { trigger = "clincdir", value = "PATH", description = "Set path to a directory that contains CL/cl.h" } newoption { trigger = "cllibdir", val...
if os.get() == "windows" then _ACTION = _ACTION or "vs2010" elseif os.get() == "linux"then _ACTION = _ACTION or "gmake" end newoption { trigger = "clincdir", value = "PATH", description = "Set path to a directory that contains CL/cl.h" } newoption { trigger = "cllibdir", val...
fixed project file for linux build
fixed project file for linux build
Lua
mit
k0zmo/clw,k0zmo/clw
1b5683e842ec68eebc2e1a18b94da8655a457d38
prosody/mod_auth_wordpress.lua
prosody/mod_auth_wordpress.lua
-- Prosody Wordpress Authentication local datamanager = require "util.datamanager"; local md5 = require "md5"; local new_sasl = require "util.sasl".new; local nodeprep = require "util.encodings".stringprep.nodeprep; local log = require "util.logger".init("auth_wordpress"); local db = require 'luasql.mysql' local host...
-- Prosody Wordpress Authentication local datamanager = require "util.datamanager"; local base64 = require "util.encodings".base64; local md5 = require "util.hashes".md5; local new_sasl = require "util.sasl".new; local nodeprep = require "util.encodings".stringprep.nodeprep; local log = require "util.logger".init("aut...
Change md5 header to use internal prosody library. fix #5
Change md5 header to use internal prosody library. fix #5
Lua
mit
llun/wordpress-authenticator
2cb4d5386aa3a60314a2f7d0a66495eb58770cbf
home/.config/nvim/lua/plugin-config/lsp.lua
home/.config/nvim/lua/plugin-config/lsp.lua
local servers = { -------------- -- Languages "html", "jsonls", "yamlls", "cssls", "sumneko_lua", "tsserver", "bashls", -- "elixirls", -- "rust_analyzer", -- "fsautocomplete", -------------- -- Frameworks "ember", "glint", -------------- -- Tools "graphql", "tailwindcss", "gr...
local servers = { -------------- -- Languages "html", "jsonls", "yamlls", "cssls", "sumneko_lua", "tsserver", "bashls", -- "elixirls", -- "rust_analyzer", -- "fsautocomplete", -------------- -- Frameworks "ember", "glint", -------------- -- Tools "graphql", "tailwindcss", "gr...
Fix ESLint formatting
Fix ESLint formatting
Lua
mit
NullVoxPopuli/dotfiles,NullVoxPopuli/dotfiles,NullVoxPopuli/dotfiles
3da68e2665f2c68d4840b526badbd1422723edf6
vanilla/v/dispatcher.lua
vanilla/v/dispatcher.lua
-- vanilla local Controller = require 'vanilla.v.controller' local Request = require 'vanilla.v.request' local Router = require 'vanilla.v.router' local Response = require 'vanilla.v.response' local View = require 'vanilla.v.views.rtpl' local Error = require 'vanilla.v.error' -- perf local error = error local pairs = ...
-- vanilla local Controller = require 'vanilla.v.controller' local Request = require 'vanilla.v.request' local Router = require 'vanilla.v.router' local Response = require 'vanilla.v.response' local View = require 'vanilla.v.views.rtpl' local Error = require 'vanilla.v.error' -- perf local error = error local pairs = ...
fix route err bug
fix route err bug
Lua
mit
idevz/vanilla,lhmwzy/vanilla,lhmwzy/vanilla,lhmwzy/vanilla,lhmwzy/vanilla,idevz/vanilla
67bd708ae8784eec5018841bf83a9e7c1adfd9df
share/lua/website/videobash.lua
share/lua/website/videobash.lua
-- libquvi-scripts -- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
-- libquvi-scripts -- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
FIX: videobash.lua: media URL parsing (#81)
FIX: videobash.lua: media URL parsing (#81) * http://sourceforge.net/apps/trac/quvi/ticket/81
Lua
agpl-3.0
legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts
324d9f945b7cb1840fb8c958b5a30405a29861c8
scen_edit/view/file_panel.lua
scen_edit/view/file_panel.lua
--//============================================================================= FilePanel = LayoutPanel:Inherit{ -- so, this should be changed here as well -- (see unitdefsview.lua) classname = "imagelistview", autosize = true, autoArrangeH = false, autoArrangeV = false, centerItems = false, iconX...
--//============================================================================= FilePanel = LayoutPanel:Inherit{ -- so, this should be changed here as well -- (see unitdefsview.lua) classname = "imagelistview", autosize = true, autoArrangeH = false, autoArrangeV = false, centerItems = false, iconX...
fixed clicking on file_panel's first item
fixed clicking on file_panel's first item
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
a117ab7f0d15ded3851f1566dad78a2ef797bd99
share/luaplaylist/youtube.lua
share/luaplaylist/youtube.lua
-- $Id$ -- Helper function to get a parameter's value in a URL function get_url_param( url, name ) return string.gsub( vlc.path, "^.*"..name.."=([^&]*).*$", "%1" ) end -- Probe function. function probe() return vlc.access == "http" and string.match( vlc.path, "youtube.com" ) and ( string.mat...
-- $Id$ -- Helper function to get a parameter's value in a URL function get_url_param( url, name ) return string.gsub( url, "^.*[&?]"..name.."=([^&]*).*$", "%1" ) end function get_arturl( path, video_id ) if string.match( vlc.path, "iurl=" ) then return vlc.decode_uri( get_url_param( vlc.path, "iurl" ...
Attempt to fix youtube demux script. I still get connections errors towards youtube but i wanted to commit what i'd already done since i'll be gone for a week.
Attempt to fix youtube demux script. I still get connections errors towards youtube but i wanted to commit what i'd already done since i'll be gone for a week.
Lua
lgpl-2.1
vlc-mirror/vlc-2.1,vlc-mirror/vlc,shyamalschandra/vlc,krichter722/vlc,xkfz007/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,krichter722/vlc,krichter722/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,krichter722/vlc,vlc-mirr...
8c98aa0a67ed6e19068c8fbef1e50dde888f0693
bin/toc2breaks.lua
bin/toc2breaks.lua
#!/bin/env lua -- local dump = require("pl.pretty").dump local project = os.getenv("PROJECT") local basename = arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(doc))() local yaml = require("yaml") local meta...
#!/bin/env lua local dump = require("pl.pretty").dump local d = function(t) dump(t, "/dev/stderr") end local project = os.getenv("PROJECT") local basename = arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(do...
Add chapter titles to exported app info file
Add chapter titles to exported app info file Fixes #23
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
05516130a06fc6124526bf1756fb94463f0ffa9a
plugins/weather.lua
plugins/weather.lua
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local API_KEY = "" local function get_weather(location) print("Finding weather in ", location) local url = BASE_URL url = url.."?q="..location url = url.."&units=metric" url = url.."&appid="..API_KEY print(url) local b, c, h = http.re...
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local API_KEY = "" local function get_weather(location) print("Finding weather in ", location) local url = BASE_URL url = url.."?q="..string.gsub(location, " ", "+") url = url.."&units=metric" url = url.."&appid="..API_KEY local b, c, h...
Fix weather.lua
Fix weather.lua Now it looks up the weather also for cities with multiple words as name.
Lua
mit
KevinGuarnati/controllore,KevinGuarnati/controllore
a557155f7d421612dad712d6dbbcfa8e65755f8a
premake4.lua
premake4.lua
local GCC_AVR_CC_PATH = "avr-gcc" local GCC_AVR_CPP_PATH = "avr-g++" local GCC_AVR_AR_PATH = "avr-ar" premake.gcc.cc = GCC_AVR_CC_PATH premake.gcc.cxx = GCC_AVR_CPP_PATH premake.gcc.ar = GCC_AVR_AR_PATH solution "yalla" -------------------------------------------------------------------------------- -- Command line ...
local GCC_AVR_CC_PATH = "avr-gcc" local GCC_AVR_CPP_PATH = "avr-g++" local GCC_AVR_AR_PATH = "avr-ar" premake.gcc.cc = GCC_AVR_CC_PATH premake.gcc.cxx = GCC_AVR_CPP_PATH premake.gcc.ar = GCC_AVR_AR_PATH solution "yalla" -------------------------------------------------------------------------------- -- Command line ...
premake fix: use pkg-config to find simavr include path
premake fix: use pkg-config to find simavr include path
Lua
mit
chrism333/yalla,chrism333/yalla,chrism333/yalla
a1fab8b2dff5edb077f9b2e045dc962873a306ce
premake4.lua
premake4.lua
function copy(src, dst, always) local action = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\"" src = "\"" .. src .. "\"" dst = "\"" .. dst .. "\"" cwd = "\"" .. os.getcwd() .. "\"" postbuildcommands { action .. " " .. cwd .. " " .. src .. " " .. dst .. " " .. tostring(always) } end function resource...
function copy(src, dst, always) local action = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\"" src = "\"" .. src .. "\"" dst = "\"" .. dst .. "\"" cwd = "\"" .. os.getcwd() .. "\"" postbuildcommands { action .. " " .. cwd .. " " .. src .. " " .. dst .. " " .. tostring(always) } end function resource...
fixes in premake4.lua
fixes in premake4.lua
Lua
bsd-3-clause
bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph,bmteam/blowmorph
e0723fdcd7128f84cf4a1236c175d2094b865ffb
whereami.lua
whereami.lua
local modname = { 'whereami','core' } local concat = table.concat local ok, ffi = pcall(require,'ffi') if not ok then return require(concat(modname,'.')) end local wai_getExe ffi.cdef[[ int wai_getExecutablePath(char* out, int capacity, int* dirname_length); ]] pcall(function() if ffi.C.wai_getExecutablePat...
local modname = { 'whereami','core' } local concat = table.concat local ok, ffi = pcall(require,'ffi') if not ok then return require(concat(modname,'.')) end local wai_lib ffi.cdef[[ int wai_getExecutablePath(char* out, int capacity, int* dirname_length); ]] pcall(function() if ffi.C.wai_getExecutablePath t...
fix potential segfault
fix potential segfault
Lua
mit
jprjr/lua-whereami
069a4415a7b6a2dd766fa63f20b086b08399012e
extension/script/backend/master/mgr.lua
extension/script/backend/master/mgr.lua
local json = require 'common.json' local proto = require 'common.protocol' local ev = require 'backend.event' local thread = require 'remotedebug.thread' local stdio = require 'remotedebug.stdio' local redirect = {} local mgr = {} local network local seq = 0 local initialized = false local stat = {} local queue = {} l...
local json = require 'common.json' local proto = require 'common.protocol' local ev = require 'backend.event' local thread = require 'remotedebug.thread' local stdio = require 'remotedebug.stdio' local redirect = {} local mgr = {} local network local seq = 0 local initialized = false local stat = {} local queue = {} l...
fixes bug
fixes bug
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
a325d89df8376b75fa9a26d40da6a32501f940bd
gin/cli/application.lua
gin/cli/application.lua
-- dep local ansicolors = require 'ansicolors' -- gin local Gin = require 'gin.core.gin' local helpers = require 'gin.helpers.common' local gitignore = [[ # gin client_body_temp fastcgi_temp logs proxy_temp tmp uwsgi_temp # vim .*.sw[a-z] *.un~ Session.vim # textmate *.tmproj *.tmproject tmtags # OSX .DS_Store ._...
-- dep local ansicolors = require 'ansicolors' -- gin local Gin = require 'gin.core.gin' local helpers = require 'gin.helpers.common' local gitignore = [[ # gin client_body_temp fastcgi_temp logs proxy_temp tmp uwsgi_temp # vim .*.sw[a-z] *.un~ Session.vim # textmate *.tmproj *.tmproject tmtags # OSX .DS_Store ._...
Set temp paths to avoid polluting the app directory.
Set temp paths to avoid polluting the app directory. Fixed as suggested in #21
Lua
mit
istr/gin,ostinelli/gin
96a25fb33c61991056990e05afc66026f299d296
hammerspoon/tap-modifier-for-hotkey.lua
hammerspoon/tap-modifier-for-hotkey.lua
local eventtap = require('hs.eventtap') local events = eventtap.event.types local modal={} -- Return an object whose behavior is inspired by hs.hotkey.modal. In this case, -- the modal state is entered when the specified modifier key is tapped (i.e., -- pressed and then released in quick succession). modal.new = func...
local eventtap = require('hs.eventtap') local events = eventtap.event.types local modal={} -- Return an object whose behavior is inspired by hs.hotkey.modal. In this case, -- the modal state is entered when the specified modifier key is tapped (i.e., -- pressed and then released in quick succession). modal.new = func...
:bug: Fix isOnlyModifier fn
:bug: Fix isOnlyModifier fn
Lua
mit
jasonrudolph/keyboard,jasonrudolph/keyboard
f6550cfe915192fc9067250f8c428e086489e418
src/cosy/cli/init.lua
src/cosy/cli/init.lua
os.remove (os.getenv "HOME" .. "/.cosy/client.log") local Cli = {} Cli.__index = Cli function Cli.new () return setmetatable ({}, Cli) end ----------------------------- -- While not found Cli tries to determine what server it will connect to -- by scanning in that order : -- 1. --server=xxx cmd line option...
os.remove (os.getenv "HOME" .. "/.cosy/client.log") local Cli = {} Cli.__index = Cli function Cli.new () return setmetatable ({}, Cli) end ----------------------------- -- While not found Cli tries to determine what server it will connect to -- by scanning in that order : -- 1. --server=xxx cmd line option...
Fix error handling in loader creation.
Fix error handling in loader creation.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
445cca235bf9d1272eb91959d46b43334e424fd0
src/train_point_cloud.lua
src/train_point_cloud.lua
require 'torch' require 'cutorch' require 'math' require 'nn' require 'gnuplot' require 'image' require 'optim' require 'point_cloud_model_definition' require 'point_cloud_constants' require 'point_cloud_error_calculation' require 'point_cloud_loader' require 'loader_ffi' torch.manualSeed(10000) cutorch.manualSeed(100...
require 'torch' require 'cutorch' require 'math' require 'nn' require 'gnuplot' require 'image' require 'optim' require 'point_cloud_model_definition' require 'point_cloud_constants' require 'point_cloud_error_calculation' require 'point_cloud_loader' require 'loader_ffi' torch.manualSeed(10000) cutorch.manualSeed(100...
fixed cudnn problem
fixed cudnn problem
Lua
bsd-3-clause
nsavinov/semantic3dnet,nsavinov/semantic3dnet,nsavinov/semantic3dnet,nsavinov/semantic3dnet
8fd9d00c7aad3731d4bdf8695799da39bf033ac6
src/rename.lua
src/rename.lua
local util = require "util" local M = {} M.add = function(self, name) if util.is_file(name) then self[#self+1] = { path = name } end end M.loadscript = function(self, scr) local fn, err = loadstring(scr) if not fn then return string.format("Error in Lua script: %s", err) end l...
local util = require "util" local M = {} M.add = function(self, name) if util.is_file(name) then self[#self+1] = { path = name } end end M.loadscript = function(self, scr) local fn, err = loadstring(scr) if not fn then return string.format("Error in Lua script: %s", err) end l...
typo fix
typo fix
Lua
mit
fur-q/mfr,fur-q/mfr
7a6cf4f244120683c2060eaa325666ac5831f48d
Sum.lua
Sum.lua
local Sum, parent = torch.class('nn.Sum', 'nn.Module') function Sum:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Sum:updateOutput(input) if type(self.output) == 'number' then self.output = input.new() end self.output:sum(input, self.d...
local Sum, parent = torch.class('nn.Sum', 'nn.Module') function Sum:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Sum:updateOutput(input) if type(self.output) == 'number' then self.output = input.new() end self.output:sum(input, self.d...
[Torch] Fix `Sum:updateGradInput()` in the zero-stride case.
[Torch] Fix `Sum:updateGradInput()` in the zero-stride case.
Lua
bsd-3-clause
eriche2016/nn,jzbontar/nn,hughperkins/nn,colesbury/nn,EnjoyHacking/nn,andreaskoepf/nn,aaiijmrtt/nn,Aysegul/nn,karpathy/nn,kmul00/nn,zchengquan/nn,PraveerSINGH/nn,ominux/nn,diz-vara/nn,sbodenstein/nn,sagarwaghmare69/nn,mlosch/nn,apaszke/nn,GregSatre/nn,lukasc-ch/nn,joeyhng/nn,witgo/nn,adamlerer/nn,lvdmaaten/nn,rotmanmi/...
cfade58e6822ac7a636dfcf5c42299a4afde39ad
dotfiles/hammerspoon/init.lua
dotfiles/hammerspoon/init.lua
-- constants local applications = {"Google Chrome", "Mail", "Calendar", "Skype", "iTerm"} local laptopScreen = "Color LCD" local windowLayout = { {"Google Chrome", nil, laptopScreen, hs.layout.left50, nil, nil}, {"Mail", nil, laptopScreen, hs.layout.left50, nil, nil}, {"Calendar", ...
-- constants local applications = {"Google Chrome", "Mail", "Calendar", "Skype", "iTerm"} local laptopScreen = "Color LCD" local windowLayout = { {"Google Chrome", nil, laptopScreen, hs.layout.left50, nil, nil}, {"Mail", nil, laptopScreen, hs.layout.left50, nil, nil}, {"Calendar", ...
restart nexTab on screen change (fixes lots of problems)
restart nexTab on screen change (fixes lots of problems)
Lua
mit
wolfgangpfnuer/dotfiles,wolfgangpfnuer/dotfiles,wolfgangpfnuer/dotfiles
164e35a5fd175d69631d596d322154c6dd77fff2
cherry/store/apple.lua
cherry/store/apple.lua
-------------------------------------------------------------------------------- local analytics = require 'cherry.libs.analytics' -------------------------------------------------------------------------------- local AppleShop = {} -------------------------------------------------------------------------------- f...
-------------------------------------------------------------------------------- local analytics = require 'cherry.libs.analytics' -------------------------------------------------------------------------------- local AppleShop = {} -------------------------------------------------------------------------------- f...
fixed apple store
fixed apple store
Lua
bsd-3-clause
chrisdugne/cherry
193c4263e4527c28ff9c342edf6e0e2738d0e363
bin/stream_new_against_core.lua
bin/stream_new_against_core.lua
#!/usr/bin/env gt --[[ Copyright (c) 2015 Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2015 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appea...
#!/usr/bin/env gt --[[ Copyright (c) 2015 Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2015 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appea...
fix reference input
fix reference input
Lua
isc
satta/companion,satta/annot-nf,sanger-pathogens/companion,sanger-pathogens/annot-nf,sanger-pathogens/companion,fw1121/annot-nf,sanger-pathogens/annot-nf,fw1121/annot-nf,satta/companion,fw1121/annot-nf,satta/annot-nf,sanger-pathogens/annot-nf,satta/companion,sanger-pathogens/companion,satta/annot-nf
b56023113bdc2957a87409c4985c524645c17425
src/common/http.lua
src/common/http.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
Fix tar.gz destination
Fix tar.gz destination
Lua
mit
Zefiros-Software/ZPM
4fa52d07f34c7199a2da6114b5f78ea3f37f0e69
includes/theme.lua
includes/theme.lua
local theme_name local slash, tinsert, tconcat = settings.slash, table.insert, table.concat local pcall, settings, empty = pcall, settings, seawolf.variable.empty local assert, error, setfenv = assert, error, setfenv local currentdir = lfs.currentdir() .. slash local base, l = base, l if settings.mobile and (mobil...
local theme_name local slash, tinsert, tconcat = settings.slash, table.insert, table.concat local pcall, settings, empty = pcall, settings, seawolf.variable.empty local assert, error, setfenv = assert, error, setfenv local currentdir = lfs.currentdir() .. slash local base, l = base, l if settings.mobile and (mobil...
Bug fix #6: Apache: Missing content-length HTTP throws error on json output.
Bug fix #6: Apache: Missing content-length HTTP throws error on json output.
Lua
agpl-3.0
ophal/core,coinzen/coinage,coinzen/coinage,coinzen/coinage,ophal/core,ophal/core
69946d431b4cc4d2010f6ddf59aca46281f987c2
classes/book.lua
classes/book.lua
local plain = SILE.require("classes/plain"); local book = plain { id = "book" }; book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "8.3%", right = "86%", top = "11.6%", bottom = "top(footnotes)" }, folio = {left = "left(content)", right = "righ...
local plain = SILE.require("classes/plain"); local book = plain { id = "book" }; book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "8.3%", right = "86%", top = "11.6%", bottom = "top(footnotes)" }, folio = {left = "left(content)", right = "righ...
Rework sectioning. Fixes #46.
Rework sectioning. Fixes #46.
Lua
mit
anthrotype/sile,WAKAMAZU/sile_fe,alerque/sile,neofob/sile,simoncozens/sile,neofob/sile,simoncozens/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,shirat74/sile,alerque/sile,alerque/sile,anthrotype/sile,shirat74/sile,neofob/sile,neofob/sile,simoncozens/sile,shirat74/sile,simoncozens/sile,alerque/sile,anthrotype/sile,WAKAMAZU/si...
04775dc8a410d1ac493a9f9bcafa1c3da6381c12
scripts/bgfx.lua
scripts/bgfx.lua
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED_LIB_BU...
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED_LIB_BU...
Fixed issue #549.
Fixed issue #549.
Lua
bsd-2-clause
jdryg/bgfx,bkaradzic/bgfx,aonorin/bgfx,andr3wmac/bgfx,emoon/bgfx,mendsley/bgfx,LWJGL-CI/bgfx,jpcy/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,Synxis/bgfx,cuavas/bgfx,LSBOSS/bgfx,emoon/bgfx,fluffyfreak/bgfx,fluffyfreak/bgfx,cuavas/bgfx,jdryg/bgfx,elmindreda/bgfx,Synxis/bgfx,v3n/bgfx,aonorin/bgfx,jdryg/bgfx,marco-we/bgfx,jpcy/bgfx...
4a497cfcfb98c2462ccecc4d16640b503e206adb
frontend/device/kobo/device.lua
frontend/device/kobo/device.lua
local Generic = require("device/generic/device") local lfs = require("libs/libkoreader-lfs") local Geom = require("ui/geometry") local function yes() return true end local Kobo = Generic:new{ model = "Kobo", isKobo = yes, isTouchDevice = yes, -- all of them are -- most Kobos have X/Y switched for the...
local Generic = require("device/generic/device") local lfs = require("libs/libkoreader-lfs") local Geom = require("ui/geometry") local function yes() return true end local Kobo = Generic:new{ model = "Kobo", isKobo = yes, isTouchDevice = yes, -- all of them are -- most Kobos have X/Y switched for the...
fix initialization order on Kobos
fix initialization order on Kobos notably, this will set up input offsets for viewport stuff after the input rotation has been set up.
Lua
agpl-3.0
noname007/koreader,lgeek/koreader,koreader/koreader,Markismus/koreader,robert00s/koreader,houqp/koreader,chihyang/koreader,Frenzie/koreader,mwoz123/koreader,poire-z/koreader,NiLuJe/koreader,Hzj-jie/koreader,chrox/koreader,NiLuJe/koreader,koreader/koreader,ashang/koreader,ashhher3/koreader,apletnev/koreader,mihailim/kor...
19d70f27191569fce59fb6f6433ad339e99016a8
frontend/ui/widget/inputtext.lua
frontend/ui/widget/inputtext.lua
require "ui/graphics" require "ui/widget/text" require "ui/widget/keyboard" require "ui/widget/container" InputText = InputContainer:new{ text = "", hint = "demo hint", charlist = {}, -- table to store input string charpos = 1, input_type = nil, width = nil, height = nil, face = Font:getFace("cfont", 22), ...
require "ui/graphics" require "ui/widget/text" require "ui/widget/keyboard" require "ui/widget/container" InputText = InputContainer:new{ text = "", hint = "demo hint", charlist = {}, -- table to store input string charpos = 1, input_type = nil, width = nil, height = nil, face = Font:getFace("cfont", 22), ...
fix delChar decreasing charpos on blank charlist
fix delChar decreasing charpos on blank charlist
Lua
agpl-3.0
poire-z/koreader,Markismus/koreader,Frenzie/koreader,noname007/koreader,koreader/koreader,chrox/koreader,NiLuJe/koreader,ashang/koreader,pazos/koreader,mihailim/koreader,robert00s/koreader,NickSavage/koreader,houqp/koreader,mwoz123/koreader,lgeek/koreader,ashhher3/koreader,frankyifei/koreader,chihyang/koreader,koreader...
7c0bebb208c2c400baa1d80b7be73a57c8bfa395
lib/px/pxnginx.lua
lib/px/pxnginx.lua
-- Copyright © 2016 PerimeterX, Inc. -- 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, publis...
-- Copyright © 2016 PerimeterX, Inc. -- 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, publis...
Fixed multiapp-support race condition with multiple configurtion files
Fixed multiapp-support race condition with multiple configurtion files
Lua
mit
PerimeterX/perimeterx-nginx-plugin
faf30597a14bd77753d92bb26bdb267664498fb5
cnt.lua
cnt.lua
-- cnt.lua -- -- Simple counter. -- -- -- Increment counter identified by primary key. -- Create counter if not exists. -- Returns updated value of the counter. -- function cnt_inc(space, ...) local key = {...} local cnt_index = #key local tuple while true do tuple = box.update(space, key, '+...
-- cnt.lua -- -- Simple counter. -- -- -- Increment counter identified by primary key. -- Create counter if not exists. -- Returns updated value of the counter. -- function cnt_inc(space, ...) local key = {...} local cnt_index = #key local tuple while true do tuple = box.update(space, key, '+...
cnt.lua: fix
cnt.lua: fix
Lua
bsd-2-clause
mailru/tntlua,derElektrobesen/tntlua,grechkin-pogrebnyakov/tntlua,spectrec/tntlua,BHYCHIK/tntlua
5f9e9b7eb39fc98cdacba52d081fe2b559fcfb33
ffi/harfbuzz.lua
ffi/harfbuzz.lua
local coverage = require("ffi/harfbuzz_coverage") local ffi = require("ffi") local hb = ffi.load("libs/libharfbuzz." .. (ffi.os == "OSX" and "0.dylib" or "so.0")) local HB = setmetatable({}, {__index = hb}) require("ffi/harfbuzz_h") local hb_face_t = {} hb_face_t.__index = hb_face_t ffi.metatype("hb_face_t", hb_face_...
local coverage = require("ffi/harfbuzz_coverage") local ffi = require("ffi") local hb = ffi.load("libs/libharfbuzz." .. (ffi.os == "OSX" and "0.dylib" or "so.0")) local HB = setmetatable({}, {__index = hb}) require("ffi/harfbuzz_h") local hb_face_t = {} hb_face_t.__index = hb_face_t ffi.metatype("hb_face_t", hb_face_...
harfbuzz: Don't crash on invalid language tags. (#1223)
harfbuzz: Don't crash on invalid language tags. (#1223) Fixes https://github.com/koreader/koreader/issues/6806
Lua
agpl-3.0
koreader/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,koreader/koreader-base,koreader/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base
d3d9557fff94dd8943cbda9e242f40dcaae25ab1
lib/px/utils/pxclient.lua
lib/px/utils/pxclient.lua
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin -- Version 1.1.4 -- Release date: 07.11.2016 ---------------------------------------------- local _M = {} function _M.load(config_file) local http = require "resty.http" local px_config = require (config_file) loc...
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin -- Version 1.1.4 -- Release date: 07.11.2016 ---------------------------------------------- local _M = {} function _M.load(config_file) local http = require "resty.http" local px_config = require (config_file) loc...
fix removal of read_body for keepalive
fix removal of read_body for keepalive Added px_cookie to Page Requested Activity
Lua
mit
PerimeterX/perimeterx-nginx-plugin
5338cba51953ba560e9f51c6696b17498cdf3e76
lua/settings/autocmds.lua
lua/settings/autocmds.lua
-- luacheck: globals unpack vim local nvim = require'nvim' local has = nvim.has local plugins = nvim.plugins local set_autocmd = nvim.autocmds.set_autocmd -- local set_command = nvim.commands.set_command -- local set_mapping = nvim.mappings.set_mapping if plugins['completor.vim'] == nil then set_autocmd{ ...
-- luacheck: globals unpack vim local nvim = require'nvim' local has = nvim.has local plugins = nvim.plugins local set_autocmd = nvim.autocmds.set_autocmd -- local set_command = nvim.commands.set_command -- local set_mapping = nvim.mappings.set_mapping if plugins['completor.vim'] == nil then set_autocmd{ ...
fix: on_yack autocmd
fix: on_yack autocmd
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
7f3e311f73a80be96ae72c9ee75d7a416337bb86
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
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
92432ec276e6e62101769ac305971531eb5a0163
share/lua/modules/simplexml.lua
share/lua/modules/simplexml.lua
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
Lua: fix module simplexml using the new API
Lua: fix module simplexml using the new API
Lua
lgpl-2.1
jomanmuk/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,shyamalschandra/vlc,vlc-mirror/vlc,xkfz007/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,krichter722/vlc,xkfz007/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror...
15c4ab632ab235fbad4e7055b6b767f2a9c95191
vi_motion.lua
vi_motion.lua
-- Support for motion key sequences local M = {} -- Implementations of the movements local vi_motions = require 'vi_motions' -- Wrap a possibly nested table, returning a proxy which modifies any value -- which isn't a nested table. A nested table is considered one with no -- integer keys (so #t == 0, or t[1] == nil)...
-- Support for motion key sequences local M = {} -- Implementations of the movements local vi_motions = require 'vi_motions' -- Wrap a possibly nested table, returning a proxy which modifies any value -- which isn't a nested table. A nested table is considered one with no -- integer keys (so #t == 0, or t[1] == nil)...
Fix error when trying to jump to a mark that hasn't been saved.
Fix error when trying to jump to a mark that hasn't been saved.
Lua
mit
jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi
7291aa3ee5999bc09c9fd3bee0bb85ec018ba608
build/Helpers.lua
build/Helpers.lua
-- This module checks for the all the project dependencies. action = _ACTION or "" depsdir = path.getabsolute("../deps"); srcdir = path.getabsolute("../src"); incdir = path.getabsolute("../include"); bindir = path.getabsolute("../bin"); examplesdir = path.getabsolute("../examples"); testsdir = path.getabsolute("../te...
-- This module checks for the all the project dependencies. action = _ACTION or "" depsdir = path.getabsolute("../deps"); srcdir = path.getabsolute("../src"); incdir = path.getabsolute("../include"); bindir = path.getabsolute("../bin"); examplesdir = path.getabsolute("../examples"); testsdir = path.getabsolute("../te...
Changed the output folder to be based on separate folders rather than name suffixes.
Changed the output folder to be based on separate folders rather than name suffixes.
Lua
mit
nalkaro/CppSharp,mydogisbox/CppSharp,zillemarco/CppSharp,KonajuGames/CppSharp,ktopouzi/CppSharp,mono/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,ktopouzi/CppSharp,KonajuGames/CppSharp,Samana/CppSharp,Samana/CppSharp,mono/CppSharp,ddobrev/CppSharp,txdv/CppSharp,inordertotest/CppSharp,genuinelucifer/CppSharp,genu...
dbc1e9e079a99c73821fe6391efca966a01e270d
packages/lime-system/files/usr/lib/lua/lime/wireless.lua
packages/lime-system/files/usr/lib/lua/lime/wireless.lua
#!/usr/bin/lua local config = require("lime.config") local network = require("lime.network") local utils = require("lime.utils") local libuci = require("uci") local fs = require("nixio.fs") local iwinfo = require("iwinfo") wireless = {} wireless.limeIfNamePrefix="lm_" wireless.wifiModeSeparator="-" function wireles...
#!/usr/bin/lua local config = require("lime.config") local network = require("lime.network") local utils = require("lime.utils") local libuci = require("uci") local fs = require("nixio.fs") local iwinfo = require("iwinfo") wireless = {} wireless.limeIfNamePrefix="lm_" wireless.wifiModeSeparator="-" function wireles...
wireless.lua: fallback channel option
wireless.lua: fallback channel option If specific radio information are set without a suffix the current configuration fails. To fix this if *channel_<suffix>* ins't found it will fall back to *channel*
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
2dd7d5feb27d2df27db12ba20d70aff61fd941c8
vstreamers.lua
vstreamers.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
vstreamers.lua: little fix
vstreamers.lua: little fix
Lua
unlicense
ArchiveTeam/vstreamers-grab,ArchiveTeam/vstreamers-grab
701e1cc1e6bee7e3560a9b27f635de3c76c03b46
put.lua
put.lua
-- Put(1, queue, jid, klass, data, now, delay, [priority, p], [tags, t], [retries, r], [depends, '[...]']) -- ------------------------------------------------------------------------------------------------------- -- This script takes the name of the queue and then the -- info about the work item, and makes sure that ...
-- Put(1, queue, jid, klass, data, now, delay, [priority, p], [tags, t], [retries, r], [depends, '[...]']) -- ------------------------------------------------------------------------------------------------------- -- This script takes the name of the queue and then the -- info about the work item, and makes sure that ...
Bug fix around dependents reporting.
Bug fix around dependents reporting. If a job has a dependency, but then is moved queues, it was still getting reported under the original queue's jobs with dependencies.
Lua
mit
seomoz/qless-core,backupify/qless-core,seomoz/qless-core
2470970644b344786ef803948d31f9b186cfa094
src_trunk/resources/admin-system/c_overlay.lua
src_trunk/resources/admin-system/c_overlay.lua
local sx, sy = guiGetScreenSize() local localPlayer = getLocalPlayer() local statusLabel = nil local openReports = 0 local handledReports = 0 local unansweredReports = {} local ownReports = {} -- Admin Titles function getAdminTitle(thePlayer) local adminLevel = tonumber(getElementData(thePlayer, "adminlev...
local sx, sy = guiGetScreenSize() local localPlayer = getLocalPlayer() local statusLabel = nil local openReports = 0 local handledReports = 0 local unansweredReports = {} local ownReports = {} -- Admin Titles function getAdminTitle(thePlayer) local adminLevel = tonumber(getElementData(thePlayer, "adminlev...
Fixed a comparison error in admin overlay
Fixed a comparison error in admin overlay git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1572 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
59d3c32e3571dd65851006bae0c405747551057f
lexers/lua.lua
lexers/lua.lua
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Lua LPeg lexer. -- Original written by Peter Odding, 2007/04/04. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws...
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Lua LPeg lexer. -- Original written by Peter Odding, 2007/04/04. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws...
Fixed bug with folding longcomments; lexers/lua.lua
Fixed bug with folding longcomments; lexers/lua.lua
Lua
mit
rgieseke/scintillua
6dd0495ad347256bc164d29d27c9ac89c7b8c347
src/lluv/pg/converter.lua
src/lluv/pg/converter.lua
local prequire = function(m) local ok, m = pcall(require, m) if ok then return m end end local struct = require "lluv.pg.utils.bin" local cjson = prequire"cjson" local function unpack_int(n) local fmt = '>i' .. n return function(data) return (struct.unpack(fmt, data)) end; end local function pack_int(n) l...
local prequire = function(m) local ok, m = pcall(require, m) if ok then return m end end local struct = require "lluv.pg.utils.bin" local cjson = prequire"cjson" local function unpack_int(n) local fmt = '>i' .. n return function(data) return (struct.unpack(fmt, data)) end; end local function pack_int(n) l...
Fix. UB when build type converters for arrays
Fix. UB when build type converters for arrays
Lua
mit
moteus/lua-lluv-pg
c76a9ed409a63504cf99adb4c1f8716b79f2b2e6
templates/etc/trafficserver/remap.lua
templates/etc/trafficserver/remap.lua
function do_remap() ts.client_request.set_url_host(ts.client_request.header["X-Api-Umbrella-Backend-Server-Host"]) ts.client_request.set_url_port(ts.client_request.header["X-Api-Umbrella-Backend-Server-Port"]) ts.client_request.set_url_scheme(ts.client_request.header["X-Api-Umbrella-Backend-Server-Scheme"]) lo...
function do_remap() ts.client_request.set_url_host(ts.client_request.header["X-Api-Umbrella-Backend-Server-Host"]) ts.client_request.set_url_port(ts.client_request.header["X-Api-Umbrella-Backend-Server-Port"]) ts.client_request.set_url_scheme(ts.client_request.header["X-Api-Umbrella-Backend-Server-Scheme"]) --...
Fix cache key to account for different HTTP hosts and HEAD requests.
Fix cache key to account for different HTTP hosts and HEAD requests.
Lua
mit
NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella
99665b0ca4233f7bb97c682c75f50dbf6aec4c58
scen_edit/view/file_dialog.lua
scen_edit/view/file_dialog.lua
FileDialog = Observable:extends{} local function ExtractFileName(filepath) filepath = filepath:gsub("\\", "/") local lastChar = filepath:sub(-1) if (lastChar == "/") then filepath = filepath:sub(1,-2) end local pos,b,e,match,init,n = 1,1,1,1,0,0 repeat pos,init,n = b,init+1,n+1 b,init,match = f...
FileDialog = Observable:extends{} local function ExtractFileName(filepath) filepath = filepath:gsub("\\", "/") local lastChar = filepath:sub(-1) if (lastChar == "/") then filepath = filepath:sub(1,-2) end local pos,b,e,match,init,n = 1,1,1,1,0,0 repeat pos,init,n = b,init+1,n+1 b,init,match = f...
fix in file_dialog
fix in file_dialog
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
5921c8e4207a9c7f8818865f2a08ba31b44a27e2
modules/client_exit/exit.lua
modules/client_exit/exit.lua
Exit = {} local exitWindow local exitButton function Exit.init() if not g_game.isOnline() then exitButton = TopMenu.addRightButton('exitButton', tr('Exit Client'), 'exit.png', Exit.tryExit) end connect(g_game, { onGameStart = Exit.hide, onGameEnd = Exit.show }) end function Exit.terminate() di...
Exit = {} local exitWindow local exitButton function Exit.init() exitButton = TopMenu.addRightButton('exitButton', tr('Exit Client'), 'exit.png', Exit.tryExit) if g_game.isOnline() then exitButton:hide() else exitButton:show() end connect(g_game, { onGameStart = Exit.hide, onGameEnd = Ex...
Fixed Exit button not being created
Fixed Exit button not being created It will now show/hide appropriately instead of not being created and thus throwing errors.
Lua
mit
dreamsxin/otclient,Radseq/otclient,gpedro/otclient,dreamsxin/otclient,dreamsxin/otclient,Radseq/otclient,EvilHero90/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient,gpedro/otclient,kwketh/otclient,gpedro/otclient,kwketh/otclient,Cavitt/otclient_mapgen
5a19e06f99b1dc2993275ce3d945e0b3cab5aaf2
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
--[[ $Id$ Copyright © 2007-2011 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is dist...
--[[ $Id$ Copyright © 2007-2011 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is dist...
youtube.lua: fix commit 9a746cfa3078c53eed57d2102002b39c283c6ab4
youtube.lua: fix commit 9a746cfa3078c53eed57d2102002b39c283c6ab4
Lua
lgpl-2.1
vlc-mirror/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc,shyamalschandra/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.1,krichter722/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.1,vlc-mirror/...
31c43d91270079e5beb2f0580ee8fd0e6745b4bc
MMOCoreORB/bin/scripts/screenplays/quest_tasks/patrol.lua
MMOCoreORB/bin/scripts/screenplays/quest_tasks/patrol.lua
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") local Logger = require("utils.logger") Patrol = Task:new { -- Task properties taskName = "", -- Patrol properties waypointName = "", numPoints = 0, areaSize = 0, originX = 0, originY = 0...
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") local Logger = require("utils.logger") Patrol = Task:new { -- Task properties taskName = "", -- Patrol properties waypointName = "", numPoints = 0, areaSize = 0, originX = 0, originY = 0...
[fixed] Whip patrol quests failing on player death after player had already completed patrol
[fixed] Whip patrol quests failing on player death after player had already completed patrol Change-Id: I410b21568968381c09b6bbc04e57465a50fa04bc
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo
13743ba84ba51e237f70ca633f0a6bb9b6615736
main.lua
main.lua
local paths = require 'paths' local optim = require 'optim' local Executer = require 'utils.executer' local RnnCore = require 'models.rnnCore' local Stack = require 'utils.stack' local StoragePolicy = require 'utils.storagePolicy' local cmd = torch.CmdLine() cmd:option('-memoryAllocation', 100, 'memory allocation') c...
local paths = require 'paths' local optim = require 'optim' local Executer = require 'utils.executer' local RnnCore = require 'models.rnnCore' local Stack = require 'utils.stack' local StoragePolicy = require 'utils.storagePolicy' local cmd = torch.CmdLine() cmd:option('-memoryAllocation', 100, 'memory allocation') c...
Bugfix: params and gradParams after cuda
Bugfix: params and gradParams after cuda
Lua
mit
ctallec/bigart
9a11b9de79c8ff028c157021236bfd8d792ac087
framework.lua
framework.lua
-- Layer to create quests and act as middle-man between Evennia and Agent require 'utils' local underscore = require 'underscore' local DEBUG = false local DEFAULT_REWARD = -0.1 local STEP_COUNT = 0 -- count the number of steps in current episode local MAX_STEPS = 500 quests = {'You are hungry.','You are sleepy.', 'Y...
-- Layer to create quests and act as middle-man between Evennia and Agent require 'utils' local underscore = require 'underscore' local DEBUG = false local DEFAULT_REWARD = -0.05 local STEP_COUNT = 0 -- count the number of steps in current episode local MAX_STEPS = 500 quests = {'You are hungry.','You are sleepy.', '...
fixed bug for multi-level quests
fixed bug for multi-level quests
Lua
mit
karthikncode/text-world-player,ljm342/text-world-player,karthikncode/text-world-player,ljm342/text-world-player
da9ff1be6fbcda1d67fd8cab18c9cc21bfe28726
fontchooser.lua
fontchooser.lua
require "rendertext" require "keys" require "graphics" FontChooser = { -- font for displaying file/dir names face = freetype.newBuiltinFace("sans", 25), fhash = "s25", -- font for page title tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 32), tfhash = "hbo32", -- font for paging display sface = freet...
require "rendertext" require "keys" require "graphics" FontChooser = { -- font for displaying file/dir names face = freetype.newBuiltinFace("sans", 25), fhash = "s25", -- font for page title tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 30), tfhash = "hbo30", -- font for paging display sface = freet...
mod: two fix
mod: two fix * add background to the font menu title * set default current item to 1
Lua
agpl-3.0
mihailim/koreader,Hzj-jie/koreader,apletnev/koreader,frankyifei/koreader-base,lgeek/koreader,koreader/koreader-base,chihyang/koreader,NickSavage/koreader,apletnev/koreader-base,Frenzie/koreader-base,chrox/koreader,Frenzie/koreader-base,Frenzie/koreader,ashang/koreader,koreader/koreader-base,ashhher3/koreader,frankyifei...
a9e5469bcd85e0627576e56ff07aa17203954c31
spec/purge_spec.lua
spec/purge_spec.lua
local test_env = require("test/test_environment") local run = test_env.run local testing_paths = test_env.testing_paths test_env.unload_luarocks() describe("LuaRocks purge tests #blackbox #b_purge", function() before_each(function() test_env.setup_specs() end) describe("LuaRocks purge basic tests", fu...
local test_env = require("test/test_environment") local run = test_env.run local testing_paths = test_env.testing_paths test_env.unload_luarocks() local extra_rocks = { "/say-1.0-1.src.rock", } describe("LuaRocks purge tests #blackbox #b_purge", function() before_each(function() test_env.setup_specs(extr...
Tests: add regression test for #750
Tests: add regression test for #750 Fix #750.
Lua
mit
keplerproject/luarocks,tarantool/luarocks,keplerproject/luarocks,tarantool/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks,luarocks/luarocks,keplerproject/luarocks,luarocks/luarocks
5368a9d43606359a568ab76071e86535b8a9e769
scheduled/gaia.lua
scheduled/gaia.lua
require("base.common") module("scheduled.gaia", package.seeall) -- INSERT INTO scheduledscripts VALUES('scheduled.gaia', 10, 10, 'plantdrop'); function AddPlant(ItemID,Ground,Frequenz,Season,Datawert) table.insert(plnt,ItemID); table.insert(grnd,Ground); table.insert(freq,Frequenz); table.insert(seas...
require("base.common") module("scheduled.gaia", package.seeall) -- INSERT INTO scheduledscripts VALUES('scheduled.gaia', 10, 10, 'plantdrop'); function AddPlant(ItemID,Ground,Frequenz,Season,Datawert) table.insert(plnt,ItemID); table.insert(grnd,Ground); table.insert(freq,Frequenz); table.insert(seas...
Tried to solve a bug.
Tried to solve a bug.
Lua
agpl-3.0
KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content
f9600ce63d4a7717b2b554a7e96a21f4e5678a76
main.lua
main.lua
io.stdout:setvbuf("no") local events = require("Engine.events") --Internal Callbacks-- function love.load() love.filesystem.load("BIOS/init.lua")() --Initialize the BIOS. events:trigger("love:load") end function love.run() if love.math then love.math.setRandomSeed(os.time()) end if love.load then love.lo...
io.stdout:setvbuf("no") local events = require("Engine.events") --Internal Callbacks-- function love.load() love.filesystem.load("BIOS/init.lua")() --Initialize the BIOS. events:trigger("love:load") end function love.run() if love.math then love.math.setRandomSeed(os.time()) end if love.load then love.lo...
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
9ce763234292b4b9029ecf654ff396485d71a2d2
src/patch/ui/hooks/common/protocol_kickunpatched.lua
src/patch/ui/hooks/common/protocol_kickunpatched.lua
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
Fix MPPatch detection for hotjoins.
Fix MPPatch detection for hotjoins.
Lua
mit
Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager
af292e2b4b0b7fd699c216fa83da9b1dca6ff4f1
src/premake-system.lua
src/premake-system.lua
local function _updateRepo(destination, url, name, branch) local current = os.getcwd() if os.isdir(destination) then printf(" - Updating '%s'", name) os.chdir(destination) if branch then os.executef("git checkout %s", branch) else os.execute("git checko...
local function _updateRepo(destination, url, name, branch) local current = os.getcwd() if os.isdir(destination) then printf(" - Updating '%s'", name) os.chdir(destination) if branch then os.executef("git checkout %s", branch) else os.execute("git checko...
Fix installer
Fix installer
Lua
mit
Zefiros-Software/ZPM
bdb81c72f1c15357680a5a4c21a165990a68d604
frontend/version.lua
frontend/version.lua
--[[-- This module helps with retrieving version information. ]] local Version = {} --- Returns current KOReader git-rev. -- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238` function Version:getCurrentRevision() if not self.rev then local rev_file = io.open("git-rev", "r") if...
--[[-- This module helps with retrieving version information. ]] local Version = {} --- Returns current KOReader git-rev. -- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238` function Version:getCurrentRevision() if not self.rev then local rev_file = io.open("git-rev", "r") if...
[hotfix] Version: empty pattern max is an empty string, not nil! (#4299)
[hotfix] Version: empty pattern max is an empty string, not nil! (#4299) Fixes #4298.
Lua
agpl-3.0
poire-z/koreader,mihailim/koreader,poire-z/koreader,koreader/koreader,houqp/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader,pazos/koreader,NiLuJe/koreader,mwoz123/koreader,Markismus/koreader,NiLuJe/koreader,Hzj-jie/koreader
869f867dd3df1bf4f972198ea84cd09ceeffade8
test/serialize.lua
test/serialize.lua
#!/usr/bin/env lua -- Script for serializing a lua-gumbo parse tree into various formats. -- Can be used with the diff utility for testing against expected output. local gumbo = require "gumbo" local open = io.open local usage = [[ Usage: %s COMMAND [INPUT-FILE] [OUTPUT-FILE] Commands: html Parse and seriali...
#!/usr/bin/env lua -- Script for serializing a lua-gumbo parse tree into various formats. -- Can be used with the diff utility for testing against expected output. local gumbo = require "gumbo" local format = string.format local open = io.open local usage = [[ Usage: %s COMMAND [INPUT-FILE] [OUTPUT-FILE] Commands: ...
Style fixes for previous commit
Style fixes for previous commit
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
7d4488f149feb66c8933af290b63745ef656236d
path.lua
path.lua
--[[ Copyright (C) 2013 Masatoshi Teruya 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, publi...
--[[ Copyright (C) 2013 Masatoshi Teruya 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, publi...
fix: arguments of normalize function should accept nil values.
fix: arguments of normalize function should accept nil values.
Lua
mit
mah0x211/lua-path
11a9470a5c0a31ca376fb62bd791d0cc4deaa1b6
pud/entity/EntityArray.lua
pud/entity/EntityArray.lua
local Class = require 'lib.hump.class' local property = require 'pud.component.property' local table_sort = table.sort -- EntityArray -- local EntityArray = Class{name='EntityArray', function(self, ...) self._entities = {} self._count = 0 if select('#', ...) > 0 then self:add(...) end end } -- destructor fun...
local Class = require 'lib.hump.class' local property = require 'pud.component.property' local table_sort = table.sort -- EntityArray -- local EntityArray = Class{name='EntityArray', function(self, ...) self._entities = {} self._count = 0 if select('#', ...) > 0 then self:add(...) end end } -- destructor fun...
fix iterate() when empty
fix iterate() when empty
Lua
mit
scottcs/wyx
ff3154438727888c71de1c2a87d9d4220c8bf510
OS/DiskOS/Libraries/SyntaxParser/init.lua
OS/DiskOS/Libraries/SyntaxParser/init.lua
local newStream = require("Libraries.SyntaxParser.stream") local parser = {} parser.parser = {} parser.cache = {} parser.state = nil function parser:loadParser(language) self.parser = require("Libraries.SyntaxParser.languages."..language) end function parser:previousState(lineIndex) local record = 0 for i, st...
local newStream = require("Libraries.SyntaxParser.stream") local parser = {} parser.parser = {} parser.cache = {} parser.state = nil function parser:loadParser(language) self.cache = {} self.state = nil self.parser = require("Libraries.SyntaxParser.languages."..language) end function parser:previousState(line...
Bugfix
Bugfix Former-commit-id: 8972e0330ac80533391798d3de76841d83277f4b
Lua
mit
RamiLego4Game/LIKO-12
0bacdf08c50dd952842dbc953965ce35e9734f3d
scripts/make_thumbnail.lua
scripts/make_thumbnail.lua
-- -- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer, -- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton. -- This file is part of Sipi. -- Sipi is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published -- by ...
-- -- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer, -- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton. -- This file is part of Sipi. -- Sipi is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published -- by ...
fix (check for uploaded image): check if there was an image uploaded
fix (check for uploaded image): check if there was an image uploaded
Lua
agpl-3.0
dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi
9197fc03cc759c2fa40ac87e71b549d3e91f73dd
Model.lua
Model.lua
local Model = {}; local Plotter = require 'Plotter' Model.Lattice = nil; Model.k = 1; -- boltzmann function Model:New() local obj = {}; setmetatable(obj, {__index=self}) return obj end -- Helper functions, get min/max val of a table. local function mint(t) cmin = math.huge; for i,v in pairs(t) do if v < cm...
local Model = {}; local Plotter = require 'Plotter' Model.Lattice = nil; Model.k = 1; -- boltzmann function Model:New() local obj = {}; setmetatable(obj, {__index=self}) return obj end -- Helper functions, get min/max val of a table. local function mint(t) cmin = math.huge; for i,v in pairs(t) do if v < cm...
fixed anim metropolis
fixed anim metropolis
Lua
mit
jochem-brouwer/VO2_Model,jochem-brouwer/VO2_Model
7c1f97f2f414f1f0208244bb6de94dc2abdd09ec
test-server/test-server-ev.lua
test-server/test-server-ev.lua
#!/usr/bin/env lua --- lua websocket equivalent to test-server.c from libwebsockets. -- using lua-ev event loop package.path = package.path..';../src/?.lua' local ev = require'ev' local loop = ev.Loop.default local server = require'websocket'.server.ev.listen { protocols = { ['lws-mirror-protocol'] = function...
#!/usr/bin/env lua --- lua websocket equivalent to test-server.c from libwebsockets. -- using lua-ev event loop package.path = '../src/?.lua;../src/?/?.lua;'..package.path local ev = require'ev' local loop = ev.Loop.default local server = require'websocket'.server.ev.listen { protocols = { ['lws-mirror-protoc...
fix search path for local websocket module
fix search path for local websocket module
Lua
mit
enginix/lua-websockets,enginix/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,lipp/lua-websockets
9be82da44951c5b0389592369be0dcca65527e1a
frontend/document/documentregistry.lua
frontend/document/documentregistry.lua
--[[-- This is a registry for document providers ]]-- local logger = require("logger") local lfs = require("libs/libkoreader-lfs") local util = require("util") local DocumentRegistry = { registry = {}, providers = {}, filetype_provider = {}, } function DocumentRegistry:addProvider(extension, mimetype, pr...
--[[-- This is a registry for document providers ]]-- local logger = require("logger") local lfs = require("libs/libkoreader-lfs") local util = require("util") local DocumentRegistry = { registry = {}, providers = {}, filetype_provider = {}, } function DocumentRegistry:addProvider(extension, mimetype, pr...
Lower file suffix (#4369)
Lower file suffix (#4369)
Lua
agpl-3.0
koreader/koreader,koreader/koreader,mihailim/koreader,poire-z/koreader,NiLuJe/koreader,Frenzie/koreader,NiLuJe/koreader,Hzj-jie/koreader,Frenzie/koreader,houqp/koreader,pazos/koreader,mwoz123/koreader,Markismus/koreader,poire-z/koreader
2292a6fc2a4f0a92f20e2e223c9a7ab6acdd32fa
lib/onmt/Encoder.lua
lib/onmt/Encoder.lua
--[[ Encoder is a unidirectional Sequencer used for the source language. h_1 => h_2 => h_3 => ... => h_n | | | | . . . . | | | | h_1 => h_2 => h_3 => ... => h_n | | | | | | | |...
--[[ Encoder is a unidirectional Sequencer used for the source language. h_1 => h_2 => h_3 => ... => h_n | | | | . . . . | | | | h_1 => h_2 => h_3 => ... => h_n | | | | | | | |...
fix encoder input gradients
fix encoder input gradients Previously, the gradients of the last hidden states were returned instead of the gradients of the user inputs. Also discard the `clone()` which should ideally be avoided.
Lua
mit
da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,cservan/OpenNMT_scores_0.2.0,jungikim/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,jsenellart/Ope...
4cd1cb61faf648f1e4653481b1e4895339c63471
src/lgix/GObject-Value.lua
src/lgix/GObject-Value.lua
------------------------------------------------------------------------------ -- -- LGI GObject.Value support. -- -- Copyright (c) 2010, 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI GObject.Value support. -- -- Copyright (c) 2010, 2011 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------...
Fix workaround for boxed GLib structs in older GI
Fix workaround for boxed GLib structs in older GI
Lua
mit
zevv/lgi,psychon/lgi,pavouk/lgi