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
fe45bb336033e3458030cb0e092dc35c227c5bd6
premake5.lua
premake5.lua
baseAbsPath = os.getcwd() srcAbsPath = baseAbsPath .. "/src" buildPath = "build/" .. _ACTION buildAbsPath = baseAbsPath .. "/" .. buildPath versionMajor = 0 versionMinor = 0 versionBuild = 0 function setSolutionDefaults() configurations {"debug", "release"} architecture "x86_64" location(buildPath) objdir(buildPat...
baseAbsPath = os.getcwd() srcAbsPath = baseAbsPath .. "/src" buildPath = "build/" .. _ACTION buildAbsPath = baseAbsPath .. "/" .. buildPath versionMajor = 0 versionMinor = 0 versionBuild = 0 function coSetSolutionDefaults() configurations {"debug", "release"} architecture "x86_64" location(buildPath) objdir(buildP...
Added the "co" prefix to the functions in the premake lua.
Added the "co" prefix to the functions in the premake lua.
Lua
mit
smogpill/core,smogpill/core
6bded7aaf7577192417987f45253e0f347ea6060
frontend/apps/reader/modules/readerconfig.lua
frontend/apps/reader/modules/readerconfig.lua
local ConfigDialog = require("ui/widget/configdialog") local Device = require("device") local Event = require("ui/event") local Geom = require("ui/geometry") local InputContainer = require("ui/widget/container/inputcontainer") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderConfig = ...
local ConfigDialog = require("ui/widget/configdialog") local Device = require("device") local Event = require("ui/event") local Geom = require("ui/geometry") local InputContainer = require("ui/widget/container/inputcontainer") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderConfig = ...
readerconfigmenu(fix): override pan gesture from scrolling
readerconfigmenu(fix): override pan gesture from scrolling
Lua
agpl-3.0
Hzj-jie/koreader,pazos/koreader,Frenzie/koreader,koreader/koreader,koreader/koreader,NiLuJe/koreader,houqp/koreader,mihailim/koreader,lgeek/koreader,NiLuJe/koreader,apletnev/koreader,Markismus/koreader,mwoz123/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader
ebc42da8cd5a60f633b79a54fabbe32cfd6dfcdd
share/lua/website/youjizz.lua
share/lua/website/youjizz.lua
-- libquvi-scripts -- Copyright (C) 2010-2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundatio...
-- libquvi-scripts -- Copyright (C) 2010-2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundatio...
FIX: website/youjizz.lua
FIX: website/youjizz.lua Fix media {ID,media stream URL} parsing. Parse thumbnail URL. Signed-off-by: anon
Lua
agpl-3.0
alech/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,DangerCove/libquvi-scripts
106265e0a7761eb7e3633d9bc76d98acaed48a0f
CCLib/src/cc/native/Turtle.lua
CCLib/src/cc/native/Turtle.lua
natives["cc.turtle.Turtle"] = natives["cc.turtle.Turtle"] or {} function booleanToInt(b) if b then return 1 else return 0 end end natives["cc.turtle.Turtle"]["forward()Z"] = function(this) local success = turtle.forward() return booleanToInt(success) end natives["cc.turtle.Turtle"]["back()Z"] = function(thi...
natives["cc.turtle.Turtle"] = natives["cc.turtle.Turtle"] or {} function booleanToInt(b) if b then return 1 else return 0 end end natives["cc.turtle.Turtle"]["forward()Z"] = function(this) local success = turtle.forward() return booleanToInt(success) end natives["cc.turtle.Turtle"]["back()Z"] = function(thi...
Really fixed the turtle methods which interpreted the this parameter wrong
Really fixed the turtle methods which interpreted the this parameter wrong
Lua
mit
apemanzilla/JVML-JIT,Team-CC-Corp/JVML-JIT
b16c93bbe50c72130ef84b5bd508404c10f8426a
frontend/ui/widget/htmlboxwidget.lua
frontend/ui/widget/htmlboxwidget.lua
--[[-- HTML widget (without scroll bars). --]] local Device = require("device") local DrawContext = require("ffi/drawcontext") local Geom = require("ui/geometry") local GestureRange = require("ui/gesturerange") local InputContainer = require("ui/widget/container/inputcontainer") local Mupdf = require("ffi/mupdf") loca...
--[[-- HTML widget (without scroll bars). --]] local Device = require("device") local DrawContext = require("ffi/drawcontext") local Geom = require("ui/geometry") local GestureRange = require("ui/gesturerange") local InputContainer = require("ui/widget/container/inputcontainer") local Mupdf = require("ffi/mupdf") loca...
HtmlBoxWidget: fix selection when starting from end (#3632)
HtmlBoxWidget: fix selection when starting from end (#3632)
Lua
agpl-3.0
NiLuJe/koreader,houqp/koreader,poire-z/koreader,mihailim/koreader,poire-z/koreader,koreader/koreader,koreader/koreader,lgeek/koreader,apletnev/koreader,Markismus/koreader,NiLuJe/koreader,Frenzie/koreader,Hzj-jie/koreader,Frenzie/koreader,mwoz123/koreader,pazos/koreader
394c9cf948119eacfe438c72ab79417c648cb3ce
frontend/ui/widget/container/inputcontainer.lua
frontend/ui/widget/container/inputcontainer.lua
local WidgetContainer = require("ui/widget/container/widgetcontainer") local UIManager = require("ui/uimanager") local Screen = require("device").screen local Geom = require("ui/geometry") local Event = require("ui/event") local DEBUG = require("dbg") local _ = require("gettext") --[[ an InputContainer is an WidgetCon...
local WidgetContainer = require("ui/widget/container/widgetcontainer") local UIManager = require("ui/uimanager") local Screen = require("device").screen local Geom = require("ui/geometry") local Event = require("ui/event") local DEBUG = require("dbg") local _ = require("gettext") --[[ an InputContainer is an WidgetCon...
fix dimen returned by getSize used as dimen in inputcontainer
fix dimen returned by getSize used as dimen in inputcontainer
Lua
agpl-3.0
NiLuJe/koreader,koreader/koreader,poire-z/koreader,mwoz123/koreader,pazos/koreader,NiLuJe/koreader,robert00s/koreader,apletnev/koreader,frankyifei/koreader,Hzj-jie/koreader,mihailim/koreader,Markismus/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,NickSavage/koreader,chihyang/koreader,Frenzie/koreader,hou...
c6214faeba114e505abebc26263e6d12ed1dec23
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
admin-full: Better fix for the last change (timeserver setup), add button to add the missing section
admin-full: Better fix for the last change (timeserver setup), add button to add the missing section git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@7915 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
phi-psi/luci,yeewang/openwrt-luci,eugenesan/openwrt-luci,dtaht/cerowrt-luci-3.3,vhpham80/luci,Flexibity/luci,dtaht/cerowrt-luci-3.3,phi-psi/luci,freifunk-gluon/luci,saraedum/luci-packages-old,saraedum/luci-packages-old,gwlim/luci,eugenesan/openwrt-luci,phi-psi/luci,jschmidlapp/luci,Canaan-Creative/luci,freifunk-gluon/l...
f61147a82b21024c7a030bb53d4eff5db19e3b9b
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: fixup newlines when storing sysupgrade.conf
modules/admin-full: fixup newlines when storing sysupgrade.conf
Lua
apache-2.0
dwmw2/luci,forward619/luci,openwrt/luci,male-puppies/luci,hnyman/luci,jchuang1977/luci-1,Noltari/luci,jchuang1977/luci-1,sujeet14108/luci,keyidadi/luci,male-puppies/luci,RedSnake64/openwrt-luci-packages,Hostle/openwrt-luci-multi-user,forward619/luci,ff94315/luci-1,bright-things/ionic-luci,chris5560/openwrt-luci,nwf/ope...
0251603f0aa064109138d40d06aa892f49e7abc7
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("system", translate("Router Password"), translate("Changes the administrator password for accessing the device")) s = ...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("system", translate("Router Password"), translate("Changes the administrator password for accessing the device")) s = ...
luci-mod-admin-full: fix empty SSH-Keys issue
luci-mod-admin-full: fix empty SSH-Keys issue If you delete all ssh keys in the textarea then LuCI will rais an error. So if you added one ssh-key to the textarea and then you want to delete them again that is not possbile in LuCI. To fix this remove "rmempty" attribute and add a remove function which will called if t...
Lua
apache-2.0
kuoruan/luci,kuoruan/lede-luci,rogerpueyo/luci,hnyman/luci,chris5560/openwrt-luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,kuoruan/lede-luci,artynet/luci,artynet/luci,artynet/luci,Noltari/luci,Noltari/luci,openwrt/luci,rogerpueyo/luci,chris5560/openwrt-luci,lbthomsen/openwrt-luci,nmav/luci,rogerpueyo/luci,kuoruan/lu...
5bda87845ff706cc16a54d4aa8a559ac48b069f8
lua_modules/yeelink/yeelink_lib.lua
lua_modules/yeelink/yeelink_lib.lua
-- *************************************************************************** -- Yeelink Updata Libiary -- -- Written by Martin -- but based on a script of zhouxu_o from bbs.nodemcu.com -- -- MIT license, http://opensource.org/licenses/MIT -- ***************************************************************************...
-- *************************************************************************** -- Yeelink Updata Libiary Version 0.1.2 -- -- Written by Martin -- but based on a script of zhouxu_o from bbs.nodemcu.com -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************...
Update to Ver0.1.2, fix logic bug
Update to Ver0.1.2, fix logic bug Detail: When require lib before connect to ap, program will return nil but the table.
Lua
mit
vsky279/nodemcu-firmware,radiojam11/nodemcu-firmware,flexiti/nodemcu-firmware,christakahashi/nodemcu-firmware,Alkorin/nodemcu-firmware,FelixPe/nodemcu-firmware,iotcafe/nodemcu-firmware,vowstar/nodemcu-firmware,dnc40085/nodemcu-firmware,daned33/nodemcu-firmware,zhujunsan/nodemcu-firmware,funshine/nodemcu-firmware,iotcaf...
402be3ff795a872da1f1a237924d2696c569bf5d
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
modules/admin-full: fix static routes page
modules/admin-full: fix static routes page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5467 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
gwlim/luci,stephank/luci,Flexibity/luci,ThingMesh/openwrt-luci,freifunk-gluon/luci,ThingMesh/openwrt-luci,gwlim/luci,jschmidlapp/luci,Canaan-Creative/luci,phi-psi/luci,Canaan-Creative/luci,saraedum/luci-packages-old,dtaht/cerowrt-luci-3.3,phi-psi/luci,yeewang/openwrt-luci,freifunk-gluon/luci,freifunk-gluon/luci,8device...
c5623d15c02486659ca882477c003a05f03bcbe9
spec/unit/statics_spec.lua
spec/unit/statics_spec.lua
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
fix: config test broken by 48e69f29cef085
fix: config test broken by 48e69f29cef085
Lua
apache-2.0
beauli/kong,rafael/kong,ccyphers/kong,ind9/kong,salazar/kong,li-wl/kong,vzaramel/kong,Kong/kong,ind9/kong,streamdataio/kong,Kong/kong,jebenexer/kong,ejoncas/kong,akh00/kong,Mashape/kong,xvaara/kong,Kong/kong,ejoncas/kong,streamdataio/kong,icyxp/kong,vzaramel/kong,jerizm/kong,ajayk/kong,shiprabehera/kong,Vermeille/kong,...
4694bedd696c9a33116751bf8915f300632ea30c
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
Fix saving of ipkg configuration file
Fix saving of ipkg configuration file
Lua
apache-2.0
tobiaswaldvogel/luci,aa65535/luci,thess/OpenWrt-luci,forward619/luci,deepak78/new-luci,aa65535/luci,harveyhu2012/luci,bittorf/luci,nwf/openwrt-luci,NeoRaider/luci,daofeng2015/luci,Sakura-Winkey/LuCI,cshore/luci,joaofvieira/luci,bright-things/ionic-luci,kuoruan/lede-luci,MinFu/luci,RedSnake64/openwrt-luci-packages,male-...
8e08c191db57540e93bcca14bceea10864301a08
base/gems.lua
base/gems.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
Fix variables
Fix variables
Lua
agpl-3.0
Illarion-eV/Illarion-Content
980ebf8ddc96470c4080d78236d06bc6b9047e77
script/watchdog.lua
script/watchdog.lua
require "room" require "player" local function WatchDog() local self = { sid2room = {} } function self.gainRoom(tsid, sid) local room = self.sid2room[sid] if room == nil then room = GameRoom.new(tsid, sid) self.sid2room[sid] = room end retur...
require "room" require "player" local function WatchDog() local self = { sid2room = {} } function self.gainRoom(tsid, sid) local room = self.sid2room[sid] if room == nil then room = GameRoom.new(tsid, sid) self.sid2room[sid] = room end retur...
fix giftcb bug
fix giftcb bug
Lua
apache-2.0
lsaint/act,lsaint/act,lsaint/act
2e825dd0b4a8f93249bce0b24bed9b7890ca4c57
lua/lodbc/luasql.lua
lua/lodbc/luasql.lua
local odbc = require "lodbc" luasql = (type(luasql) == 'table') and luasql or { _COPYRIGHT = "Copyright (C) 2006-2012 Kepler Project"; _DESCRIPTION = "LuaSQL is a simple interface from Lua to a DBMS"; _VERSION = "LuaSQL 2.2.1"; } local Environment = {__metatable = "LuaSQL: you're not allowed to ge...
local odbc = require "lodbc" luasql = (type(luasql) == 'table') and luasql or { _COPYRIGHT = "Copyright (C) 2006-2012 Kepler Project"; _DESCRIPTION = "LuaSQL is a simple interface from Lua to a DBMS"; _VERSION = "LuaSQL 2.2.1"; } local Environment = {__metatable = "LuaSQL: you're not allowed to ge...
Fix. lodbc.luasql creates global functions
Fix. lodbc.luasql creates global functions
Lua
mit
moteus/lua-odbc,moteus/lua-odbc,moteus/lua-odbc
a28b21054707b80df39d11e6d28aa4ea3c0af76c
util.lua
util.lua
-- Define the sock_send/recv functions to use asynchronous actor sockets. -- if _G.sock_recv == nil and _G.sock_send == nil and _G.sock_send_recv == nil and _G.asock then function sock_recv(skt, pattern) return asock.recv(apo.self_address(), skt, pattern) end function sock_send(skt, data, from, to) ...
-- Define the sock_send/recv functions to use asynchronous actor sockets. -- if _G.sock_recv == nil and _G.sock_send == nil and _G.sock_send_recv == nil and _G.asock then function sock_recv(skt, pattern) return asock.recv(apo.self_address(), skt, pattern) end function sock_send(skt, data, from, to) ...
trace/trace_table improved with more info and optional prefix
trace/trace_table improved with more info and optional prefix
Lua
apache-2.0
steveyen/moxilua
4734b23481c19a33cb35d7645a7248770f644701
kong/plugins/aws-lambda/schema.lua
kong/plugins/aws-lambda/schema.lua
local typedefs = require "kong.db.schema.typedefs" local REGIONS = { "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "sa-east-1", "us-east-1", "us-east-2", "us-gov-west-...
local typedefs = require "kong.db.schema.typedefs" local REGIONS = { "ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "sa-east-1", "us-east-1", "us-east-2", "us-gov-west-...
fix(aws-lambda) remove the `run_on` field from plugin config schema (#11)
fix(aws-lambda) remove the `run_on` field from plugin config schema (#11) It is no longer needed as service mesh support is removed from Kong
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
aaf1e4c4b69e6e9ab1790bbc12db8f35395de046
scheduled/scs_skeleton_forest.lua
scheduled/scs_skeleton_forest.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope th...
fix bug iterating a list
fix bug iterating a list
Lua
agpl-3.0
Illarion-eV/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content
406da3d84d61228e42e96d876a8247046d5087c3
src/main/resources/moe/lymia/mppatch/data/patch/lib/mppatch_runtime.lua
src/main/resources/moe/lymia/mppatch/data/patch/lib/mppatch_runtime.lua
-- Copyright (c) 2015-2016 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-2016 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...
Fixed debugPrint for multiple fields.
Fixed debugPrint for multiple fields.
Lua
mit
Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch
d14323f889aaa77cd758670dd887849599bd212f
test/test_Map.lua
test/test_Map.lua
local Map = require 'pud.level.Map' local MapNode = require 'pud.level.MapNode' local MapType = require 'pud.level.MapType' local Rect = require 'pud.kit.Rect' context('Map', function() context('When instantiating with no arguments', function() local map = Map() test('should exist', function() assert_not_nil(m...
local Map = require 'pud.level.Map' local MapNode = require 'pud.level.MapNode' local MapType = require 'pud.level.MapType' local Rect = require 'pud.kit.Rect' context('Map', function() context('When instantiating with no arguments', function() local map = Map() test('should exist', function() assert_not_nil(m...
fix Map tostring test
fix Map tostring test
Lua
mit
scottcs/wyx
74a94743d3b98daacb45fa8fc422a6ccec5a4522
share/lua/website/101greatgoals.lua
share/lua/website/101greatgoals.lua
-- libquvi-scripts -- Copyright (C) 2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; ei...
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2012 quvi project -- -- 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 --...
FIX: website/101greatgoals.lua: embedded URL patterns
FIX: website/101greatgoals.lua: embedded URL patterns Improve the patterns used to parse the embedded media URLs. Do not attempt to check for the known hosts; leave the determination for libquvi(-scripts) to do. Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts
0844c5bc198e452aa107c3dd15ffcda4d4c43ed1
premake/premake5.lua
premake/premake5.lua
solution "demboyz" basedir ".." location (_ACTION) targetdir "../bin" startproject "demboyz" configurations { "Debug", "Release" } platforms "x32" flags { "MultiProcessorCompile", "Symbols" } defines "_CRT_SECURE_NO_WARNINGS" configuration "Debug" defines { "DEBUG" } co...
solution "demboyz" basedir ".." location (_ACTION) targetdir "../bin" startproject "demboyz" configurations { "Debug", "Release" } platforms "x32" flags { "MultiProcessorCompile", "Symbols" } defines "_CRT_SECURE_NO_WARNINGS" configuration "Debug" defines { "DEBUG" } co...
Fixed clang build of celt. Moved -std=c++11 to demboyz project scope.
Fixed clang build of celt. Moved -std=c++11 to demboyz project scope.
Lua
mit
SizzlingStats/demboyz,SizzlingStats/demboyz,SizzlingStats/demboyz
bc97b318134b7f394166cf3caa12a4615b6d0488
hash.lua
hash.lua
local ffi = require 'ffi' local tds = require 'tds.env' local elem = require 'tds.elem' local C = tds.C local hash = {} function hash.new() local self = C.tds_hash_new() if self == nil then error('unable to allocate hash') end self = ffi.cast('tds_hash&', self) ffi.gc(self, C.tds_hash_free) re...
local ffi = require 'ffi' local tds = require 'tds.env' local elem = require 'tds.elem' local C = tds.C local hash = {} function hash.__new() local self = C.tds_hash_new() if self == nil then error('unable to allocate hash') end self = ffi.cast('tds_hash&', self) ffi.gc(self, C.tds_hash_free) ...
hash: fix type handling with torch
hash: fix type handling with torch
Lua
bsd-3-clause
torch/tds,Moodstocks/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds
3d42eeb7e894423fd46d1d057f216bdbaa73f4ae
pud/ui/TextEntry.lua
pud/ui/TextEntry.lua
local Class = require 'lib.hump.class' local Text = getClass 'pud.ui.Text' local KeyboardEvent = getClass 'pud.event.KeyboardEvent' local string_len = string.len local string_sub = string.sub local format = string.format -- TextEntry -- A text frame that gathers keyboard input. local TextEntry = Class{name='TextEntry...
local Class = require 'lib.hump.class' local Text = getClass 'pud.ui.Text' local KeyboardEvent = getClass 'pud.event.KeyboardEvent' local string_len = string.len local string_sub = string.sub local format = string.format -- TextEntry -- A text frame that gathers keyboard input. local TextEntry = Class{name='TextEntry...
fix adding unicode when it's nil
fix adding unicode when it's nil
Lua
mit
scottcs/wyx
2b461a3ac1e6fa1a20ab7c818f848f5aecb27de5
src/pf/savefile.lua
src/pf/savefile.lua
module(...,package.seeall) local ffi = require("ffi") -- PCAP file format: http://wiki.wireshark.org/Development/LibpcapFileFormat/ ffi.cdef[[ struct pcap_file { /* file header */ uint32_t magic_number; /* magic number */ uint16_t version_major; /* major version number */ uint16_t version_minor; /...
module(...,package.seeall) local ffi = require("ffi") -- PCAP file format: http://wiki.wireshark.org/Development/LibpcapFileFormat/ ffi.cdef[[ struct pcap_file { /* file header */ uint32_t magic_number; /* magic number */ uint16_t version_major; /* major version number */ uint16_t version_minor; /...
Fix error related to types
Fix error related to types The last commit missed 'pcap_pkthdr_t'
Lua
apache-2.0
SnabbCo/pflua,mpeterv/pflua
cd114c746bb94864e84703c34751a7bdd4f34331
tests/actions/make/cpp/test_make_pch.lua
tests/actions/make/cpp/test_make_pch.lua
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
Fix makefile unit tests broken by previous commits
Fix makefile unit tests broken by previous commits
Lua
bsd-3-clause
dimitarcl/premake-dev,dimitarcl/premake-dev,dimitarcl/premake-dev
424cf469adea51515ffee27076ba494ce54134e9
config/nvim/lua/file-icons.lua
config/nvim/lua/file-icons.lua
local colors = require("nightfox.colors").init() require "nvim-web-devicons".setup { override = { html = { icon = "", color = colors.pink_br, name = "html" }, css = { icon = "", color = colors.blue, name = "css" ...
local colors = require("nightfox.colors").init() require "nvim-web-devicons".setup { override = { html = { icon = "", color = colors.pink_br, name = "html" }, css = { icon = "", color = colors.blue, name = "css" }, js = { icon = "", color = color...
Fix icon colors
Fix icon colors
Lua
mit
lisinge/dotfiles,lisinge/dotfiles
3c1fe57b4c50786be51aee018cab620e531acf93
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
local window,screen=require'hs.window',require'hs.screen' local application,spaces=require'hs.application',require'hs.spaces' local drawing,canvas=require'hs.drawing',require'hs.canvas' local uielement=require'hs.uielement' local fnutils=require'hs.fnutils' -- local serial = require("hs._asm.serial") local lastScreenI...
local window,screen=require'hs.window',require'hs.screen' local application,spaces=require'hs.application',require'hs.spaces' local drawing,canvas=require'hs.drawing',require'hs.canvas' local uielement=require'hs.uielement' local fnutils=require'hs.fnutils' -- local serial = require("hs._asm.serial") local lastScreenI...
fix(hammerspoon): monitor-monitor handle additional window eventing
fix(hammerspoon): monitor-monitor handle additional window eventing
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
5b4dc7d667cea1734dad87d2c7278822b712743e
lua/dynamic.lua
lua/dynamic.lua
local _M = { _VERSION = "2.0.0" } local function check_throw(result, err) if not result then ngx.status = ngx.HTTP_BAD_REQUEST ngx.say(err) ngx.exit(ngx.HTTP_BAD_REQUEST) end return result end local function set_peer(upstream, peer, fun) check_throw(upstream and peer, "upstream and peer argument...
local _M = { _VERSION = "2.0.0" } local function check_throw(result, err) if not result then ngx.status = ngx.HTTP_BAD_REQUEST ngx.say(err) ngx.exit(ngx.HTTP_BAD_REQUEST) end return result end local function set_peer(upstream, peer, fun) check_throw(upstream and peer, "upstream and peer argument...
fix dynamic
fix dynamic
Lua
bsd-2-clause
ZigzagAK/nginx-resty-auto-healthcheck-config,ZigzagAK/nginx-resty-auto-healthcheck-config
ef45a2dbd4b7a2b56e971b9bf7f373c2a7c1ebef
lantern/criteria.lua
lantern/criteria.lua
-- -- Definitions of the stopping criteria. -- -- -- Returns true if an improvement has been made over the best value of a metric -- before the past `epochs` epochs during the past `epochs` epochs. This -- stopping criterion is designed to be conservative, and may not be appropriate -- when training large numbers of m...
-- -- Definitions of the stopping criteria. -- -- -- Returns true if an improvement has been made over the best value of a metric -- before the past `epochs` epochs during the past `epochs` epochs. This -- stopping criterion is designed to be conservative, and may not be appropriate -- when training large numbers of m...
Bugfix for max_epochs_for_improvement; added max_epochs_per_test_improvement.
Bugfix for max_epochs_for_improvement; added max_epochs_per_test_improvement.
Lua
bsd-3-clause
adityaramesh/lantern
a1167407bd00d5316b6a0cfdc7bf1cdd9e1f6d24
src/cosy/store.lua
src/cosy/store.lua
local Configuration = require "cosy.configuration" local I18n = require "cosy.i18n" local Redis = require "cosy.redis" local Value = require "cosy.value" local Coromake = require "coroutine.make" local Layer = require "layeredata" Configuration.load { "cosy.methods", } local i1...
local Configuration = require "cosy.configuration" local I18n = require "cosy.i18n" local Redis = require "cosy.redis" local Value = require "cosy.value" local Coromake = require "coroutine.make" local Layer = require "layeredata" Configuration.load { "cosy.methods", } local i1...
Fix access to redis client.
Fix access to redis client.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
763338c0164a96d74f235cea65fe76fcd1a1687d
share/lua/website/1tvru.lua
share/lua/website/1tvru.lua
-- libquvi-scripts -- Copyright (C) 2012 Mikhail Gusarov <dottedmag@dottedmag.net> -- -- 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...
-- libquvi-scripts -- Copyright (C) 2012 Mikhail Gusarov <dottedmag@dottedmag.net> -- -- 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...
FIX: 1tvru.lua: title and media URL patterns
FIX: 1tvru.lua: title and media URL patterns Only some of the (archived?) videos seem to work (now?). Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
alech/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,DangerCove/libquvi-scripts
93ea55da638a4f197a4d90d5185071214b9296f5
core/certmanager.lua
core/certmanager.lua
local configmanager = require "core.configmanager"; local log = require "util.logger".init("certmanager"); local ssl = ssl; local ssl_newcontext = ssl and ssl.newcontext; local setmetatable, tostring = setmetatable, tostring; local prosody = prosody; module "certmanager" -- These are the defaults if not overridden ...
local configmanager = require "core.configmanager"; local log = require "util.logger".init("certmanager"); local ssl = ssl; local ssl_newcontext = ssl and ssl.newcontext; local setmetatable, tostring = setmetatable, tostring; local prosody = prosody; local resolve_path = prosody.resolve_relative_path; module "certma...
certmanager: Adjust paths of SSL key/certs to be relative to the config file, fixes #147
certmanager: Adjust paths of SSL key/certs to be relative to the config file, fixes #147
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
b674ffbccc4c21eb2d48d35ddd4ed47bc3f427c0
src/websocket/frame.lua
src/websocket/frame.lua
-- Following Websocket RFC: http://tools.ietf.org/html/rfc6455 local struct = require'struct' local bit = require'websocket.bit' local band = bit.band local bxor = bit.bxor local bor = bit.bor local tremove = table.remove local srep = string.rep local ssub = string.sub local sbyte = string.byte local schar = string.cha...
-- Following Websocket RFC: http://tools.ietf.org/html/rfc6455 local struct = require'struct' local bit = require'websocket.bit' local band = bit.band local bxor = bit.bxor local bor = bit.bor local tremove = table.remove local srep = string.rep local ssub = string.sub local sbyte = string.byte local schar = string.cha...
Fix. Use global `unpack` is not compatible with Lua 5.2 Minor performance improvements
Fix. Use global `unpack` is not compatible with Lua 5.2 Minor performance improvements
Lua
mit
lipp/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets
820e8d9502d5ad0faf8fe0981e1e32dd3ac48e95
core/sile.lua
core/sile.lua
SILE = {} SILE.version = "0.9.4-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} SILE.nodeMakers = {} SILE.tokenizers = {} loadstring = loadstring or load -- 5.3 compatibility if not unpack then unpack = table.unpack end -- 5.3 compati...
SILE = {} SILE.version = "0.9.4-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {}; SILE.debugFlags = {} SILE.nodeMakers = {} SILE.tokenizers = {} loadstring = loadstring or load -- 5.3 compatibility if not unpack then unpack = table.unpack end -- 5.3 compati...
Resolve classes etc. in the directory of the input file. Fixes #184.
Resolve classes etc. in the directory of the input file. Fixes #184.
Lua
mit
alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,simoncozens/sile
2e4ff7013feb07c60c87ad579c5ed140799fc338
mod_auth_dovecot/mod_auth_dovecot.lua
mod_auth_dovecot/mod_auth_dovecot.lua
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local log = require "util.logger".init("auth_dovecot"); loc...
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local usermanager = require "core.usermanager"; local log =...
mod_auth_dovecot: Fix various global variable sets/gets, log levels, unclear variable names and change coding style to match more closely the rest of the Prosody code.
mod_auth_dovecot: Fix various global variable sets/gets, log levels, unclear variable names and change coding style to match more closely the rest of the Prosody code.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
fb4a7eef4f3e8be9ea6360d833c3fad5b72b5264
src/cosy/platform/dummy.lua
src/cosy/platform/dummy.lua
local _ = require "cosy.util.string" local ignore = require "cosy.util.ignore" local logging = require "logging" logging.console = require "logging.console" local logger = logging.console "%level %message\n" local Platform = {} Platform.__index = Platform function Platform:log (message) ignore (sel...
local _ = require "cosy.util.string" local ignore = require "cosy.util.ignore" local logging = require "logging" logging.console = require "logging.console" local logger = logging.console "%level %message\n" local Platform = {} Platform.__index = Platform function Platform:log (message) ignore (sel...
Fix dummy platform.
Fix dummy platform.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
5d80e0d16221099e6b7ea949f47bdb950d9b973d
test/dump.lua
test/dump.lua
local ipairs = ipairs local pairs = pairs local tostring = tostring local type = type local format = string.format local huge = 1/0 local tiny = -1/0 local function dump(v) local builder = {} local i = 1 local depth = 0 local depth8 = 1 local view = 1 local usestack local vars = {'v1', 'v2', 'v3', 'v4', 'v5', ...
local ipairs = ipairs local pairs = pairs local tostring = tostring local type = type local format = string.format local huge = 1/0 local tiny = -1/0 local function dump(v) local builder = {} local i = 1 local depth = 0 local depth8 = 0 local view = 1 local usestack local vars = {'v1', 'v2', 'v3', 'v4', 'v5', ...
fix toplevel obj
fix toplevel obj
Lua
mit
tst2005/lunajson,grafi-tt/lunajson,tst2005/lunajson,grafi-tt/lunajson,csteddy/lunajson,bigcrush/lunajson,bigcrush/lunajson,csteddy/lunajson,grafi-tt/lunajson
b1f6e740a3e4af64e0217880b0275b3f28cf9855
modules/console.lua
modules/console.lua
--- Utility functions to output text to the console (i.e., default chat frame). local A, L = unpack(select(2, ...)) local M = A:NewModule("console") A.console = M local PREFIX = A.util:HighlightAddon(A.NAME)..":" local date, format, print, select, strfind, tinsert, tostring = date, format, print, select, strfind, tin...
--- Utility functions to output text to the console (i.e., default chat frame). local A, L = unpack(select(2, ...)) local M = A:NewModule("console") A.console = M local PREFIX = A.util:HighlightAddon(A.NAME)..":" local date, format, print, select, strfind, tinsert, tostring, type = date, format, print, select, strfin...
Fix error in console:Errorf
Fix error in console:Errorf
Lua
mit
bencvt/FixGroups
226c7da1b473ace716b298fb4f7185c3e1083112
game/scripts/vscripts/util/ability.lua
game/scripts/vscripts/util/ability.lua
function CDOTABaseAbility:HasBehavior(behavior) local abilityBehavior = tonumber(tostring(self:GetBehavior())) return bit.band(abilityBehavior, behavior) == behavior end function AbilityHasBehaviorByName(ability_name, behaviorString) local AbilityBehavior = GetKeyValue(ability_name, "AbilityBehavior") if AbilityBe...
function CDOTABaseAbility:HasBehavior(behavior) local abilityBehavior = tonumber(tostring(self:GetBehavior())) return bit.band(abilityBehavior, behavior) == behavior end function AbilityHasBehaviorByName(ability_name, behaviorString) local AbilityBehavior = GetKeyValue(ability_name, "AbilityBehavior") if AbilityBe...
fix(ogre_magi): multicast works incorrectly on not unit target abilities
fix(ogre_magi): multicast works incorrectly on not unit target abilities
Lua
mit
ark120202/aabs
43fe9760d08cd1cc0ae95bcf5047985b4277df65
lua/utils.lua
lua/utils.lua
-- -*- mode: lua; coding: utf-8 -*- function printTable(table) for index, value in ipairs(table) do io.write(index) io.write(": ") print(value) end end function stringToLines(str, maxColumns, indent, indent1) local indent = indent or "" local indent1 = indent1 or indent local maxColumns ...
-- -*- mode: lua; coding: utf-8 -*- function printTable(table) for index, value in ipairs(table) do io.write(index) io.write(": ") print(value) end end function stringToLines(str, maxColumns, indent, indent1) local indent = indent or "" local indent1 = indent1 or indent local maxColumns ...
fix line wrapping
fix line wrapping Ignore-this: 718f1d9fc1d3a68072c8a92bf1dd8f1 darcs-hash:20120614101314-6b9e8-54e4b7aabc54c5e3832f79e5b8f01fcf8ee0edc5
Lua
bsd-3-clause
attila-lendvai/moonboots
68c2c8fe22e1388aff56b5b1bb52e939c7a9293b
examples/httpd.lua
examples/httpd.lua
package.path = package.path .. ";../src/?.lua" require "HttpServer"package.path = package.path .. ";../src/?.lua" require "HttpServer" require "VirtualHost" uv = HttpMisc.backend HttpMisc.setupSignals() -- to make sure GC runs htdocs = VirtualHost:new(uv.cwd() .. "/htdocs") :logRequestsTo(HttpLogge...
package.path = package.path .. ";../src/?.lua" require "HttpServer" require "VirtualHost" uv = HttpMisc.backend HttpMisc.setupSignals() -- to make sure GC runs htdocs = VirtualHost:new(uv.cwd() .. "/htdocs") :logRequestsTo(HttpLogger:new()) server = HttpServer:new(8080, function(req, res) htdocs:...
Fix example.
Fix example.
Lua
mit
imzyxwvu/objective-and-sync,imzyxwvu/objective-and-sync
32ad9ce6b0760eb7938b4f9eb4c2767eea4b0ef8
cache.lua
cache.lua
local cache = {} local _cache = {} local CACHE_PATH = love.filesystem.getSaveDirectory().."/cache" -- cache format -- TS\tFLAGS\tPATH\n function cache.load() log.info("Loading cache...") for line in io.lines(CACHE_PATH) do local ts,flags,path = line:match("(%d+)\t(%w*)\t(.*)") _cache[path] = { ts = tonumb...
local cache = {} local _cache = {} local CACHE_PATH = love.filesystem.getSaveDirectory().."/cache" -- cache format -- TS\tFLAGS\tPATH\n function cache.load() log.info("Loading cache...") for line in io.lines(CACHE_PATH) do local ts,flags,path = line:match("(%d+)\t(%w*)\t(.*)") _cache[path] = { ts = tonumb...
Fix cache reading and writing
Fix cache reading and writing We can get away with this for now because "seen" is the only supported flag. - separate flags with ; rather than : - store values as key=value rather than key:value - do not store keys where the value is false
Lua
mit
ToxicFrog/EmuFun
bbe1ab3d62220922139d4ed78e70f2ef90c8427c
src/npge/model/BlockSet.lua
src/npge/model/BlockSet.lua
local BlockSet = {} local BlockSet_mt = {} local bs_mt = {} BlockSet_mt.__index = BlockSet_mt bs_mt.__index = bs_mt local is_prepangenome = function(seq2fragments) for seq, fragments in pairs(seq2fragments) do local lengths_sum = 0 local prev for _, fragment in ipairs(fragments) do ...
local BlockSet = {} local BlockSet_mt = {} local bs_mt = {} BlockSet_mt.__index = BlockSet_mt bs_mt.__index = bs_mt local is_prepangenome = function(seq2fragments) for seq, fragments in pairs(seq2fragments) do local lengths_sum = 0 local prev for _, fragment in ipairs(fragments) do ...
fix unintended global vars
fix unintended global vars
Lua
mit
starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge
33f2fb4957885a853ceb755a05d4ae6f6c83caa1
lua-project/src/creator/components/AnimationComponent.lua
lua-project/src/creator/components/AnimationComponent.lua
local cc = cc local DEBUG_VERBOSE = cc.DEBUG_VERBOSE local ccp = cc.p local ccsize = cc.size local ccrect = cc.rect local ComponentBase = cc.import(".ComponentBase") local AnimationComponent = cc.class("cc.Animation", ComponentBase) local _LOOP_NORMAL = 1 local _LOOP_LOOP = 2 AnimationComponent.LOOP_NORMAL = _LOO...
local cc = cc local DEBUG_VERBOSE = cc.DEBUG_VERBOSE local ccp = cc.p local ccsize = cc.size local ccrect = cc.rect local ComponentBase = cc.import(".ComponentBase") local AnimationComponent = cc.class("cc.Animation", ComponentBase) local _LOOP_NORMAL = 1 local _LOOP_LOOP = 2 AnimationComponent.LOOP_NORMAL = _LOO...
fix Animation component
fix Animation component
Lua
mit
dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua,dualface/creator-lua
af45c4df39e9c5cfc6f916ce1b217ec3c25fa9a2
modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
modules/freifunk/luasrc/model/cbi/freifunk/contact.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- luc...
* luci/modules/freifunk: translation fixes on contact admin page
* luci/modules/freifunk: translation fixes on contact admin page git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3387 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
freifunk-gluon/luci,Canaan-Creative/luci,saraedum/luci-packages-old,ReclaimYourPrivacy/cloak-luci,Flexibity/luci,Canaan-Creative/luci,gwlim/luci,ThingMesh/openwrt-luci,freifunk-gluon/luci,Canaan-Creative/luci,gwlim/luci,ch3n2k/luci,Flexibity/luci,ReclaimYourPrivacy/cloak-luci,alxhh/piratenluci,Canaan-Creative/luci,phi-...
79c2fc9c2d881940a3a32bed11f29af53f32a995
src/filesize/filesize.lua
src/filesize/filesize.lua
-- lua-filesize, generate a human readable string describing the file size -- Copyright (c) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local si = { bits = {"b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"}, bytes = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}, } local function isN...
-- lua-filesize, generate a human readable string describing the file size -- Copyright (c) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local si = { bits = {"b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"}, bytes = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}, } local function isN...
fix toFixed() for Lua 5.3
fix toFixed() for Lua 5.3 In Lua 5.3, tostring(double(42)) returns "42.0". In Lua 5.2, tostring(double(42)) returns "42". See https://travis-ci.org/starius/lua-filesize/jobs/103972092
Lua
mit
starius/lua-filesize
bf61e6f0932761b413c7451932e2e9af7441481b
frontend/device/android/powerd.lua
frontend/device/android/powerd.lua
local BasePowerD = require("device/generic/powerd") local _, android = pcall(require, "android") local AndroidPowerD = BasePowerD:new{ fl_min = 0, fl_max = 25, fl_intensity = 10, } function AndroidPowerD:frontlightIntensityHW() return math.floor(android.getScreenBrightness() / 255 * self.fl_max) end func...
local BasePowerD = require("device/generic/powerd") local _, android = pcall(require, "android") local AndroidPowerD = BasePowerD:new{ fl_min = 0, fl_max = 25, fl_intensity = 10, } function AndroidPowerD:frontlightIntensityHW() return math.floor(android.getScreenBrightness() / 255 * self.fl_max) end func...
[fix] Android frontlight control
[fix] Android frontlight control
Lua
agpl-3.0
poire-z/koreader,poire-z/koreader,NiLuJe/koreader,pazos/koreader,lgeek/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,koreader/koreader,Frenzie/koreader,Hzj-jie/koreader,mwoz123/koreader,mihailim/koreader,Markismus/koreader,houqp/koreader,apletnev/koreader
320346b8966b3f5b4f8fb36ba7a34f7c469ef4c5
titan-compiler/syntax_errors.lua
titan-compiler/syntax_errors.lua
local syntax_errors = {} local errors = { -- The `0` label is the default "parsing failed" error number [0] = { label = "SyntaxError", msg = "Syntax Error" }, { label = "MalformedNumber", msg = "Malformed number." }, { label = "UnclosedLongString", msg = "Unclosed long s...
local syntax_errors = {} local errors = { -- The `0` label is the default "parsing failed" error number [0] = { label = "SyntaxError", msg = "Syntax Error" }, { label = "MalformedNumber", msg = "Malformed number." }, { label = "UnclosedLongString", msg = "Unclosed long s...
Fix indentation in syntax_errors.lua
Fix indentation in syntax_errors.lua
Lua
mit
titan-lang/titan-v0,titan-lang/titan-v0,titan-lang/titan-v0
7a47602b8f42134e08245acd671503a6ed2a7654
Modules/Shared/Binder/Binder.lua
Modules/Shared/Binder/Binder.lua
--- Bind class to Roblox Instance -- @classmod Binder local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local RunService = game:GetService("RunService") local CollectionService = game:GetService("CollectionService") local Maid = require("Maid") local fastSpawn = require("fastSpa...
--- Bind class to Roblox Instance -- @classmod Binder local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local RunService = game:GetService("RunService") local CollectionService = game:GetService("CollectionService") local Maid = require("Maid") local fastSpawn = require("fastSpa...
More explicit binding on clients to prevent bugs
More explicit binding on clients to prevent bugs
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
cb2892c0e8cdc9e6f4c8b699fe1eef341c641778
premake4.lua
premake4.lua
-- Clean Function -- newaction { trigger = "clean", description = "clean the software", execute = function () print("clean the build...") os.rmdir("./build") print("done.") end } -- A solution contains projects, and defines the available configurations solution "simhub" confi...
-- Clean Function -- newaction { trigger = "clean", description = "clean the software", execute = function () print("clean the build...") os.rmdir("./obj") os.remove("./*.make") os.remove("./Makefile") print("done.") end } -- A solution contains projects, and defines ...
Fixed the premake clean command to actually clean ...
Fixed the premake clean command to actually clean ...
Lua
mit
mteichtahl/simhub,lurkerbot/simhub,lurkerbot/simhub,lurkerbot/simhub,mteichtahl/simhub,mteichtahl/simhub,mteichtahl/simhub,lurkerbot/simhub
47e0c011e1ec98f5fffd138d82aebb97bca73383
game/scripts/vscripts/modules/hero_selection/hero_replacer.lua
game/scripts/vscripts/modules/hero_selection/hero_replacer.lua
function HeroSelection:SelectHero(playerId, heroName, beforeReplace, afterReplace, bSkipPrecache, bUpdateStatus) if bUpdateStatus ~= false then HeroSelection:UpdateStatusForPlayer(playerId, "picked", heroName) end Timers:CreateTimer(function() local connectionState = PlayerResource:GetConnectionState(playerId) ...
function HeroSelection:SelectHero(playerId, heroName, beforeReplace, afterReplace, bSkipPrecache, bUpdateStatus) if bUpdateStatus ~= false then HeroSelection:UpdateStatusForPlayer(playerId, "picked", heroName) end Timers:CreateTimer(function() local connectionState = PlayerResource:GetConnectionState(playerId) ...
fix(hero_selection): location is stored too early
fix(hero_selection): location is stored too early That allows to dodge unit:Teleport with HeroSelection:ChangeHero. Closes #274.
Lua
mit
ark120202/aabs
0e3f00f3f7adcc8becab35a7142b58dbaadcd01f
Lempel_Ziv_Welch/Lua/Yonaba/lzw.lua
Lempel_Ziv_Welch/Lua/Yonaba/lzw.lua
-- Lempel-Ziv Welch compression data algorithm implementation -- See : http://en.wikipedia.org/wiki/LZW local function lzw_encode(str) local w = '' local result = {} local dict_size = 255 -- Builds the dictionnary local dict = {} for i = 0, dict_size do dict[string.char(i)] = i end local i = dict...
-- Lempel-Ziv Welch compression data algorithm implementation -- See : http://en.wikipedia.org/wiki/LZW local function lzw_encode(str) local w = '' local result = {} local dict_size = 256 -- Builds the dictionnary local dict = {} for i = 0, dict_size-1 do dict[string.char(i)] = i end local i = di...
fix LZW decode error
fix LZW decode error
Lua
mit
isalnikov/Algorithm-Implementations,mishin/Algorithm-Implementations,praveenjha527/Algorithm-Implementations,girishramnani/Algorithm-Implementations,Sweet-kid/Algorithm-Implementations,rohanp/Algorithm-Implementations,joshimoo/Algorithm-Implementations,aayushKumarJarvis/Algorithm-Implementations,praveenjha527/Algorithm...
3d4b64039079336348be5ea51610d17129ac8cda
core/ext/pm/buffer_browser.lua
core/ext/pm/buffer_browser.lua
-- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Buffer browser for the Textadept project manager. -- It is enabled with the prefix 'buffers' in the project manager entry field. module('textadept.pm.browsers.buffer', package....
-- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Buffer browser for the Textadept project manager. -- It is enabled with the prefix 'buffers' in the project manager entry field. module('textadept.pm.browsers.buffer', package....
Fixed issue with buffer browser cursor saving; core/ext/pm/buffer_browser.lua
Fixed issue with buffer browser cursor saving; core/ext/pm/buffer_browser.lua
Lua
mit
jozadaquebatista/textadept,jozadaquebatista/textadept
a2f970dd4fa6340b14e8e77366b082410ecb35b7
mod_auth_joomla/mod_auth_joomla.lua
mod_auth_joomla/mod_auth_joomla.lua
-- Joomla authentication backend for Prosody -- -- Copyright (C) 2011 Waqas Hussain -- local new_sasl = require "util.sasl".new; local nodeprep = require "util.encodings".stringprep.nodeprep; local saslprep = require "util.encodings".stringprep.saslprep; local DBI = require "DBI" local md5 = require "util.hashes".md5;...
-- Joomla authentication backend for Prosody -- -- Copyright (C) 2011 Waqas Hussain -- local new_sasl = require "util.sasl".new; local nodeprep = require "util.encodings".stringprep.nodeprep; local saslprep = require "util.encodings".stringprep.saslprep; local DBI = require "DBI" local md5 = require "util.hashes".md5;...
mod_auth_joomla: Added config option sql.prefix (default = "jos_").
mod_auth_joomla: Added config option sql.prefix (default = "jos_").
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
c1d48327438516ad5c5a69a43fc8c4de655793ff
snapshots.lua
snapshots.lua
local std = stead local type = std.type local SNAPSHOT = false local snap = std.obj { nam = '@snaphots'; data = {}; make = function(s, name) name = name or 'default' local fp = { -- fake file object data = ''; write = function(s, str) s.data = s.data .. str end; } std:save(fp) s.data[name] =...
local std = stead local type = std.type local SNAPSHOT = false local snap = std.obj { nam = '@snaphots'; data = {}; write = function(s, name) name = name or 'default' local fp = { -- fake file object data = ''; write = function(s, str) s.data = s.data .. str end; } std:save(fp) s.data[name] ...
snap fix
snap fix
Lua
mit
gl00my/stead3
1f46de9d2f7a9420e48c533af7a4b1b6118aa130
scripts/lua/management/lib/tenants.lua
scripts/lua/management/lib/tenants.lua
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
Add paging to getTenantAPIs (#335)
Add paging to getTenantAPIs (#335) * Fix for https://github.com/apache/incubator-openwhisk/issues/1692#issuecomment-463651323
Lua
unknown
openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway,openwhisk/apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/openwhisk-apigateway
003267b1145b02f7719dc084633bc5cf32e2aedb
usage-detector_0.17.0/usage_detector.lua
usage-detector_0.17.0/usage_detector.lua
--current_machines = {} -- table of: entity + recipe + count -- TODO: Player-specific. Multiplayer support. -- Potential improvement: "How is Iron used?" -- a lot probably goes to iron gear wheel, but how is those gears then used? -- production for transport belts for example uses a lot of gears. -- likewise for prod...
--current_machines = {} -- table of: entity + recipe + count -- TODO: Player-specific. Multiplayer support. -- Potential improvement: "How is Iron used?" -- a lot probably goes to iron gear wheel, but how is those gears then used? -- production for transport belts for example uses a lot of gears. -- likewise for prod...
Usage Detector: Fix bug with no job results found
Usage Detector: Fix bug with no job results found
Lua
mit
Zomis/FactorioMods
057d9e6200e161cf1b4e832248fe1d59a67142c8
src/lua/css.lua
src/lua/css.lua
local explode = string.explode local string = unicode.utf8 local function new(self) c = { rules = {}, priorities = {}, } setmetatable(c,self) self.__index = self return c end -- sanitize selector and calculate priority local function get_priority( selector ) prio = 0 string.gsub(selector,"[%...
--- This file contains the code for the CSS parser. -- -- css.lua -- speedata publisher -- -- For a list of authors see `git blame' -- See file COPYING in the root directory for license info. local explode = string.explode local string = unicode.utf8 local function new(self) c = { rules = {}, priorit...
Better match of CSS classes
Better match of CSS classes Don't match if a common prefix matches. This fixes #134.
Lua
agpl-3.0
speedata/publisher,speedata/publisher,speedata/publisher,speedata/publisher
a8d5da851d1d469587adea086c65d61ae20c50ef
xmake/platforms/windows/environment.lua
xmake/platforms/windows/environment.lua
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
fix windows envirnoment for global
fix windows envirnoment for global
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake
45536a8cc0ad553dd8f23d5701ccff902ac8c72b
runtime.lua
runtime.lua
local r = {} function r.newGlobals(spritesheet) local GLOB = { assert=assert, error=error, ipairs=ipairs, pairs=pairs, next=next, pcall=pcall, select=select, tonumber=tonumber, tostring=tostring, type=type, unpack=unpack, _VERSION=_VERSION, xpcall=xpcall, strin...
local r = {} function r:newGlobals(spritesheet) local GLOB = { assert=assert, error=error, ipairs=ipairs, pairs=pairs, next=next, pcall=pcall, select=select, tonumber=tonumber, tostring=tostring, type=type, unpack=unpack, _VERSION=_VERSION, xpcall=xpcall, strin...
Fixed error catching for the run command + fixed the args support
Fixed error catching for the run command + fixed the args support
Lua
mit
RamiLego4Game/LIKO-12
bc4a33a73cd7f4550e6dc547a31505f6865e38fe
packages/rules.lua
packages/rules.lua
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
SILE.baseClass:loadPackage("raiselower") SILE.baseClass:loadPackage("rebox") SILE.registerCommand("hrule", function (options, _) local width = SU.cast("length", options.width) local height = SU.cast("length", options.height) local depth = SU.cast("length", options.depth) SILE.typesetter:pushHbox({ width = ...
fix(packages): Orient rules for all 8 directions
fix(packages): Orient rules for all 8 directions
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
44a02ca8aac5f326b9a1119fde8df41161535bf5
favorite_face_classifier/classify.lua
favorite_face_classifier/classify.lua
require 'image' require 'torch' require 'inception' local buildEnsembleModel = require 'ensemble' local channels = {'r', 'g', 'b'} local frameWidth = 96 local frameHeight = 96 cmd = torch.CmdLine() cmd:text() cmd:text('Classify a face') cmd:text() cmd:text('Options') -- optional parameters cmd:option('-input', 'pic_t...
require 'image' require 'torch' require 'inception' local buildEnsembleModel = require 'ensemble' local channels = {'r', 'g', 'b'} local frameWidth = 96 local frameHeight = 96 cmd = torch.CmdLine() cmd:text() cmd:text('Classify a face') cmd:text() cmd:text('Options') -- optional parameters cmd:option('-input', 'pic_t...
fix BatchNormalization.lua:43: assertion failed!
fix BatchNormalization.lua:43: assertion failed!
Lua
unlicense
rickerliang/face_filter,rickerliang/face_filter
04a4cdcb576d448c42bd51246819463dc5e7433a
pud/level/TileLevelView.lua
pud/level/TileLevelView.lua
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local TileLevelView = Class{name='TileLevelV...
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local TileLevelView = Class{name='TileLevelV...
fix variations
fix variations
Lua
mit
scottcs/wyx
940beff044feb3e4c04abe325d3315a1b3c0526a
frontend/apps/reader/modules/readerrotation.lua
frontend/apps/reader/modules/readerrotation.lua
local InputContainer = require("ui/widget/container/inputcontainer") local Screen = require("ui/screen") local Geom = require("ui/geometry") local Device = require("ui/device") local Event = require("ui/event") local GestureRange = require("ui/gesturerange") local _ = require("gettext") local ReaderRotation = InputCon...
local InputContainer = require("ui/widget/container/inputcontainer") local Screen = require("ui/screen") local Geom = require("ui/geometry") local Device = require("ui/device") local Event = require("ui/event") local GestureRange = require("ui/gesturerange") local _ = require("gettext") local ReaderRotation = InputCon...
fix insensitive rotate gesture detection This should fix #546.
fix insensitive rotate gesture detection This should fix #546.
Lua
agpl-3.0
NiLuJe/koreader,poire-z/koreader,Hzj-jie/koreader,ashhher3/koreader,Frenzie/koreader,Markismus/koreader,robert00s/koreader,houqp/koreader,ashang/koreader,mwoz123/koreader,NiLuJe/koreader,noname007/koreader,chrox/koreader,NickSavage/koreader,koreader/koreader,koreader/koreader,poire-z/koreader,apletnev/koreader,Frenzie/...
cdaa5dc5ccab9f53dd0c129abd000ab285f1759b
lib/resty/consul.lua
lib/resty/consul.lua
local pcall = pcall local tostring = tostring local cjson = require('cjson') local json_decode = cjson.decode local json_encode = cjson.encode local tbl_concat = table.concat local tbl_insert = table.insert local ngx = ngx local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_DEBUG = ngx.DEBUG local http = require(...
local pcall = pcall local tostring = tostring local cjson = require('cjson') local json_decode = cjson.decode local json_encode = cjson.encode local tbl_concat = table.concat local tbl_insert = table.insert local ngx = ngx local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_DEBUG = ngx.DEBUG local http = require(...
Fix wait query param
Fix wait query param
Lua
mit
hamishforbes/lua-resty-consul
e068ba043c22f6885a1034ec561be6f351326cfe
lua/plugins/ltex.lua
lua/plugins/ltex.lua
require("grammar-guard").init() -- setup LSP config require("lspconfig").grammar_guard.setup({ -- cmd = {'/path/to/ltex-ls'}, -- add this if you install ltex-ls yourself settings = { ltex = { enabled = {"latex", "tex", "bib", "markdown"}, language = "en", diagnosticS...
require("grammar-guard").init() local path = vim.fn.stdpath 'config' .. '/spell/en.utf-8.add' local words = {} for word in io.open(path, 'r'):lines() do table.insert(words, word) end -- setup LSP config require("lspconfig").grammar_guard.setup({ -- cmd = {'/path/to/ltex-ls'}, -- add this if you install ltex-ls y...
ltex fix that did not work
ltex fix that did not work
Lua
mit
shwsun/yavc,shwsun/yavc
a26e1a0c84efd59f85d7a5fc29e4d9326464ac03
contrib/package/iwinfo/src/iwinfo.lua
contrib/package/iwinfo/src/iwinfo.lua
#!/usr/bin/lua require "iwinfo" function printf(fmt, ...) print(string.format(fmt, ...)) end function s(x) if x == nil then return "?" else return tostring(x) end end function n(x) if x == nil then return 0 else return tonumber(x) end end function print_info(api, dev) local iw = iwinfo[api] print...
#!/usr/bin/lua require "iwinfo" function printf(fmt, ...) print(string.format(fmt, ...)) end function s(x) if x == nil then return "?" else return tostring(x) end end function n(x) if x == nil then return 0 else return tonumber(x) end end function print_info(api, dev) local iw = iwinfo[api] local ...
[libiwinfo] fix crash in iwinfo cli when operating on monitor interfaces
[libiwinfo] fix crash in iwinfo cli when operating on monitor interfaces
Lua
apache-2.0
deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci
29f1330d57b675b6cdf34a44fe989bd9a86705b6
pud/component/ComponentMediator.lua
pud/component/ComponentMediator.lua
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local ListenerBag = getClass 'pud.kit.ListenerBag' local property = require 'pud.component.property' local message = require 'pud.component.message' local queryFunc = require 'pud.component.queryFunc' -- ComponentMediator -- lo...
local Class = require 'lib.hump.class' local Component = getClass 'pud.component.Component' local ListenerBag = getClass 'pud.kit.ListenerBag' local property = require 'pud.component.property' local message = require 'pud.component.message' local queryFunc = require 'pud.component.queryFunc' -- ComponentMediator -- lo...
fix receive call, remove unused registerComponents()
fix receive call, remove unused registerComponents()
Lua
mit
scottcs/wyx
0cec8ab1430fe368ded705d767ed32ab652d6ed4
L1Penalty.lua
L1Penalty.lua
local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module') --This module acts as an L1 latent state regularizer, adding the --[gradOutput] to the gradient of the L1 loss. The [input] is copied to --the [output]. function L1Penalty:__init(l1weight, sizeAverage) parent.__init(self) self.l1weight = l1w...
local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module') --This module acts as an L1 latent state regularizer, adding the --[gradOutput] to the gradient of the L1 loss. The [input] is copied to --the [output]. function L1Penalty:__init(l1weight, sizeAverage, provideOutput) parent.__init(self) self...
L1Penalty bug fixed
L1Penalty bug fixed
Lua
bsd-3-clause
jonathantompson/nn,Jeffyrao/nn,GregSatre/nn,ominux/nn,karpathy/nn,Moodstocks/nn,zhangxiangxiao/nn,hery/nn,clementfarabet/nn,joeyhng/nn,noa/nn,xianjiec/nn,sbodenstein/nn,bartvm/nn,rotmanmi/nn,Djabbz/nn,abeschneider/nn,colesbury/nn,witgo/nn,eriche2016/nn,boknilev/nn,Aysegul/nn,vgire/nn,jhjin/nn,jzbontar/nn,andreaskoepf/n...
9535258191b9187e6ba9987391d6777a71f974bd
xmake/rules/cuda/device_link/xmake.lua
xmake/rules/cuda/device_link/xmake.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
fix device-link linkdirs for linux
fix device-link linkdirs for linux
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
0728c31560098da9a50f06c789717f59f44e0054
ffi/util.lua
ffi/util.lua
--[[ Module for various utility functions ]] local ffi = require "ffi" local bit = require "bit" ffi.cdef[[ struct timeval { long int tv_sec; long int tv_usec; }; int gettimeofday(struct timeval *tp, void *tzp); unsigned int sleep(unsigned int seconds); int usleep(unsigned int usec); struct statvfs { unsigned lo...
--[[ Module for various utility functions ]] local ffi = require "ffi" local bit = require "bit" ffi.cdef[[ struct timeval { long int tv_sec; long int tv_usec; }; int gettimeofday(struct timeval *restrict, struct timezone *restrict) __attribute__((__nothrow__, __leaf__)); unsigned int sleep(unsigned int); int usle...
Fix segfault in util.df and improve performance by struct preallocation (see #46)
Fix segfault in util.df and improve performance by struct preallocation (see #46)
Lua
agpl-3.0
koreader/koreader-base,koreader/koreader-base,apletnev/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,houqp/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,Hzj-jie/koreader-...
774511373b5afb78e0ada2dbd6dcea7f873773f0
lua/entities/gmod_wire_trigger_entity.lua
lua/entities/gmod_wire_trigger_entity.lua
-- Wire Trigger created by mitterdoo AddCSLuaFile() ENT.Base = "base_anim" ENT.Name = "Wire Trigger Entity" ENT.Author = "mitterdoo" function ENT:Initialize() if SERVER then self.EntsLookup = {} self.EntsInside = {} end end function ENT:SetupDataTables() self:NetworkVar( "Entity", 0, "TriggerEntity" ) end ...
-- Wire Trigger created by mitterdoo AddCSLuaFile() ENT.Base = "base_anim" ENT.Name = "Wire Trigger Entity" ENT.Author = "mitterdoo" function ENT:Initialize() if SERVER then self.EntsLookup = {} self.EntsInside = {} end end function ENT:SetupDataTables() self:NetworkVar( "Entity", 0, "TriggerEntity" ) end ...
Fixed Trigger not removing correct entity index
Fixed Trigger not removing correct entity index If you put a prop in the trigger, add another prop, then remove the first, the lookup table won't have the correct index anymore because table.remove shifts all values.
Lua
apache-2.0
Grocel/wire,wiremod/wire,bigdogmat/wire,CaptainPRICE/wire,notcake/wire,NezzKryptic/Wire,mms92/wire,garrysmodlua/wire,dvdvideo1234/wire,thegrb93/wire,sammyt291/wire,mitterdoo/wire
51b8568eec22618207aaf9dbd2320e1651fe9651
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: Fixes for rdate config
modules/admin-full: Fixes for rdate config
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci
656f02c7f67949096a538353786079e2a9aa6dfe
frontend/apps/filemanager/fm.lua
frontend/apps/filemanager/fm.lua
require "ui/widget/filechooser" require "apps/filemanager/fmhistory" require "apps/filemanager/fmmenu" FileManager = InputContainer:extend{ title = _("FileManager"), width = Screen:getWidth(), height = Screen:getHeight(), root_path = './', -- our own size dimen = Geom:new{ w = 400, h = 600 }, onExit = function...
require "ui/widget/filechooser" require "apps/filemanager/fmhistory" require "apps/filemanager/fmmenu" FileManager = InputContainer:extend{ title = _("FileManager"), width = Screen:getWidth(), height = Screen:getHeight(), root_path = './', -- our own size dimen = Geom:new{ w = 400, h = 600 }, onExit = function...
fix out-of-bound bug in filemanager
fix out-of-bound bug in filemanager
Lua
agpl-3.0
pazos/koreader,koreader/koreader,robert00s/koreader,frankyifei/koreader,poire-z/koreader,koreader/koreader,ashang/koreader,chrox/koreader,Frenzie/koreader,mwoz123/koreader,houqp/koreader,chihyang/koreader,ashhher3/koreader,mihailim/koreader,NiLuJe/koreader,noname007/koreader,lgeek/koreader,NickSavage/koreader,Markismus...
40fe33005559223610852cb2d204344c80c34049
game_view.lua
game_view.lua
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' watcher = require 'watcher' player_state = require 'player_state' stack_trace = require 'stackTrace' active_screen = require 'active_screen' game_over_view = require 'game_over_view'...
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' watcher = require 'watcher' player_state = require 'player_state' stack_trace = require 'stackTrace' active_screen = require 'active_screen' game_over_view = require 'game_over_view'...
Fixed a few bugs.
Fixed a few bugs.
Lua
mit
NamefulTeam/PortoGameJam2015
c7cfd896b9dca86df49ae00b2dcf298f4234d4cd
api/server.lua
api/server.lua
local htmlparser = require("htmlparser") local http = require('socket.http') local app = require('waffle').CmdLine() local search = function(req, res) local query = req.url.args.zoektermen local queryType = tonumber(req.url.args.opZoeken) local queryPage = tonumber(req.url.args.page) or 0 local queryEan = "" if q...
local htmlparser = require("htmlparser") local http = require('socket.http') local app = require('waffle').CmdLine() local search = function(req, res) local query = req.url.args.zoektermen local queryType = tonumber(req.url.args.opZoeken) local queryPage = tonumber(req.url.args.page) or 0 local queryEan = "" if q...
Fix data format to app format
Fix data format to app format
Lua
mit
JoostvDoorn/GlutenVrijApp
4a9259586dfac657054ad74b8edd7e16928b7a08
modules/rpc/luasrc/controller/rpc.lua
modules/rpc/luasrc/controller/rpc.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
Fixed RPC-API
Fixed RPC-API
Lua
apache-2.0
RuiChen1113/luci,RedSnake64/openwrt-luci-packages,shangjiyu/luci-with-extra,keyidadi/luci,bittorf/luci,kuoruan/lede-luci,RedSnake64/openwrt-luci-packages,jchuang1977/luci-1,RuiChen1113/luci,sujeet14108/luci,db260179/openwrt-bpi-r1-luci,fkooman/luci,harveyhu2012/luci,oyido/luci,oyido/luci,mumuqz/luci,Hostle/openwrt-luci...
3a494b4642ac3fbdb9fbac42346d36f7bc3ba801
mods/soundset/init.lua
mods/soundset/init.lua
minetest.log("action","[mod soundset] Loading...") soundset = {} soundset.file = minetest.get_worldpath() .. "/sounds_config.txt" soundset.gainplayers = {} soundset.tmp = {} local function save_sounds_config() local input = io.open(soundset.file, "w") if input then input:write(minetest.serialize(soundset.gainpla...
minetest.log("action","[mod soundset] Loading...") soundset = {} soundset.file = minetest.get_worldpath() .. "/sounds_config.txt" soundset.gainplayers = {} local tmp = {} tmp["music"] = {} tmp["ambience"] = {} tmp["other"] = {} local function save_sounds_config() local input = io.open(soundset.file, "w") if input ...
fix crash due to lag
fix crash due to lag
Lua
unlicense
MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative
311a205d56d3a071b723bb19ed7231934e630094
jvml_data/vm/bindump.lua
jvml_data/vm/bindump.lua
function makeDumpster(platform) local dump = { } local out = "" local function dumpNum(n, bytes, forcedEndianness) if (platform.endianness == 0 or forcedEndianness == 0) and forcedEndianness ~= 1 then for i=bytes-1, 0, -1 do dump.dumpByte(bit.band(bit.brshift(n, i * 8),...
function makeDumpster(platform) local dump = { } local out = "" local function dumpNum(n, bytes, forcedEndianness) if (platform.endianness == 0 or forcedEndianness == 0) and forcedEndianness ~= 1 then for i=bytes-1, 0, -1 do dump.dumpByte(bit.band(bit.brshift(n, i * 8),...
Fixed dumpNumber
Fixed dumpNumber
Lua
mit
Team-CC-Corp/JVML-JIT,apemanzilla/JVML-JIT
bdb5814a666985fea6073a1c8c6cca85c826e72a
model.lua
model.lua
local _ = require 'moses' local nn = require 'nn' local image = require 'image' require 'modules/GradientRescale' local DuelAggregator = require 'modules/DuelAggregator' local model = {} -- Returns optimal module based on type local bestModule = function(mod, ...) if mod == 'relu' then if model.hasCudnn then ...
local _ = require 'moses' local nn = require 'nn' local image = require 'image' require 'modules/GradientRescale' local DuelAggregator = require 'modules/DuelAggregator' local model = {} -- Returns optimal module based on type local bestModule = function(mod, ...) if mod == 'relu' then if model.gpu > 0 and mode...
CPU-mode fix when cuDNN is installed
CPU-mode fix when cuDNN is installed
Lua
mit
Kaixhin/Atari
70ecf15aacfb57ea3670135c3a1751e701286bc9
conf/utils.lua
conf/utils.lua
local _M = {} local cmsgpack = require "cmsgpack" local inspect = require "inspect" local iputils = require "resty.iputils" local plutils = require "pl.utils" local stringx = require "pl.stringx" local types = require "pl.types" local escape = plutils.escape local is_empty = types.is_empty local pack = cmsgpack.pack ...
local _M = {} local cmsgpack = require "cmsgpack" local inspect = require "inspect" local iputils = require "resty.iputils" local plutils = require "pl.utils" local stringx = require "pl.stringx" local types = require "pl.types" local escape = plutils.escape local is_empty = types.is_empty local pack = cmsgpack.pack ...
Fix referrer matching not matching based on the full URL.
Fix referrer matching not matching based on the full URL.
Lua
mit
NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella
26a4307db226d2ea80de063db117890648b19050
src/MY_CheckUpdate.lua
src/MY_CheckUpdate.lua
local _L = MY.LoadLangPack() MY_CheckUpdate = { szUrl = "http://j3my.sinaapp.com/interface/my/latest_version.html", szTipId = nil, } RegisterCustomData('MY_CheckUpdate.szTipId') MY_CheckUpdate.bChecked = false MY_CheckUpdate.GetValue = function(szText, szKey) local escape = function(s) return string.gsub(s,...
local _L = MY.LoadLangPack() MY_CheckUpdate = { szUrl = "http://j3my.sinaapp.com/interface/my/latest_version.html", szTipId = nil, } RegisterCustomData('MY_CheckUpdate.szTipId') MY_CheckUpdate.bChecked = false MY_CheckUpdate.GetValue = function(szText, szKey) local escape = function(s) return string.gsub(s,...
修复没有更新不会推送消息的BUG
修复没有更新不会推送消息的BUG
Lua
bsd-3-clause
tinymins/MY
f1bec0264638035ea9b51f4bcb92a95263f319cb
MMOCoreORB/bin/scripts/object/resource_container/resource_spawn.lua
MMOCoreORB/bin/scripts/object/resource_container/resource_spawn.lua
object_resource_container_resource_spawn = object_resource_container_shared_simple:new { playerUseMask = ALL, level = 10, maxCondition = 1000, useCount = 1, optionsBitmask = 256, --Default all objects to not display ham bars. pvpStatusBitmask = 0, objectMenuComponent = "TangibleObjectMenuComponent", sl...
object_resource_container_resource_spawn = object_resource_container_shared_simple:new { playerUseMask = ALL, level = 10, maxCondition = 1000, useCount = 1, optionsBitmask = 256, --Default all objects to not display ham bars. pvpStatusBitmask = 0, objectMenuComponent = "TangibleObjectMenuComponent", att...
[fixed] stability fixes
[fixed] stability fixes git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@3871 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
44208f18ab1f57bc392b7d3a00fe01cf59ad2476
lib/image_loader.lua
lib/image_loader.lua
local gm = require 'graphicsmagick' local ffi = require 'ffi' require 'pl' local image_loader = {} function image_loader.decode_float(blob) local im, alpha = image_loader.decode_byte(blob) if im then im = im:float():div(255) end return im, alpha end function image_loader.encode_png(rgb, alpha) if...
local gm = require 'graphicsmagick' local ffi = require 'ffi' require 'pl' local image_loader = {} function image_loader.decode_float(blob) local im, alpha = image_loader.decode_byte(blob) if im then im = im:float():div(255) end return im, alpha end function image_loader.encode_png(rgb, alpha) if...
Fix handling for gamma embed PNG
Fix handling for gamma embed PNG
Lua
mit
nagadomi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,zyhkz/waifu2x,higankanshi/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,vitaliylag/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,higankanshi/waifu2x,zyhkz/waifu2x
e1ffee056e3cae2ef81710847f0f0f31fe3340a8
model/dictionary.lua
model/dictionary.lua
------------------------------------------------------------------------ --[[ Dictionary ]]-- -- Adapts a nn.LookupTable -- Works on a WordTensor:context() view. ------------------------------------------------------------------------ local Dictionary, parent = torch.class("dp.Dictionary", "dp.Layer") Dictionary.isDic...
------------------------------------------------------------------------ --[[ Dictionary ]]-- -- Adapts a nn.LookupTable (often used for language modeling) -- Outputs a SequenceView ------------------------------------------------------------------------ local Dictionary, parent = torch.class("dp.Dictionary", "dp.Laye...
fixed Dictionary acc_update bug
fixed Dictionary acc_update bug
Lua
bsd-3-clause
kracwarlock/dp,jnhwkim/dp,fiskio/dp,sagarwaghmare69/dp,rickyHong/dptorchLib,nicholas-leonard/dp,eulerreich/dp
4e2ded571ec0ff9e4a11713ffb0bdedc426ded61
modules/gamelib/game.lua
modules/gamelib/game.lua
local currentRsa function g_game.getRsa() return currentRsa end function g_game.findPlayerItem(itemId, subType) local localPlayer = g_game.getLocalPlayer() if localPlayer then for slot = InventorySlotFirst, InventorySlotLast do local item = localPlayer:getInventoryItem(slot) ...
function g_game.getRsa() return G.currentRsa end function g_game.findPlayerItem(itemId, subType) local localPlayer = g_game.getLocalPlayer() if localPlayer then for slot = InventorySlotFirst, InventorySlotLast do local item = localPlayer:getInventoryItem(slot) if item and item...
Fixed not being able to relog after reloading gamelib
Fixed not being able to relog after reloading gamelib
Lua
mit
gpedro/otclient,dreamsxin/otclient,Radseq/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,gpedro/otclient,gpedro/otclient,Cavitt/otclient_mapgen,Radseq/otclient,dreamsxin/otclient
0a7bdb85283accf120e2898724aec8e1a5eff311
volumearc-widget/volumearc.lua
volumearc-widget/volumearc.lua
------------------------------------------------- -- Volume Arc Widget for Awesome Window Manager -- Shows the current volume level -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/volumearc-widget -- @author Pavel Makhov -- @copyright 2018 Pavel Makhov -----------...
------------------------------------------------- -- Volume Arc Widget for Awesome Window Manager -- Shows the current volume level -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/volumearc-widget -- @author Pavel Makhov -- @copyright 2018 Pavel Makhov -----------...
fix to prevent stdout from passing a null string
fix to prevent stdout from passing a null string
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
57c03051492e564486a261cab1d381a03cd2b41f
src/lua/sancus/web/resource.lua
src/lua/sancus/web/resource.lua
-- local Class = assert(require"sancus.object").Class local request = assert(require"wsapi.request") local mimeparse = require"mimeparse" local C = Class{ _methods = {'GET', 'HEAD', 'POST', 'PUT', 'DELETE'} } function C:find_supported_methods(d) local l = {} if #d > 0 then for _, k in ipairs(d) do if type(se...
-- local Class = assert(require"sancus.object").Class local request = assert(require"wsapi.request") local mimeparse = require"mimeparse" local C = Class{ _methods = {'GET', 'HEAD', 'POST', 'PUT', 'DELETE'} } function C:find_supported_methods(d) local l = {} if #d > 0 then for _, k in ipairs(d) do if type(se...
web.resource: fix __call by using the environ.headers table instead of environ
web.resource: fix __call by using the environ.headers table instead of environ
Lua
bsd-2-clause
sancus-project/sancus-lua-web
0996eb01aa5ae1537195a9db3b391afa622975cb
guiexample/test.lua
guiexample/test.lua
-- Mouse enumeration Mouse = {} Mouse.Button = {} Mouse.Button.Left = 1 Mouse.Button.Right = 2 -- Widget Base Class Widget = {} Widget.__index = Widget -- Some Syntactic Sugar, calling a Class table is like calling it's create method. -- Note here 'self' is the class table. function Widget:__call(...) return self...
-- Mouse enumeration Mouse = {} Mouse.Button = {} Mouse.Button.Left = 1 Mouse.Button.Right = 2 -- Widget Base Class Widget = {} Widget.__index = Widget -- Some Syntactic Sugar, calling a Class table is like calling it's create method. -- Note here 'self' is the class table. function Widget.__call( class, ...) pri...
Fix Rectangle params
Fix Rectangle params
Lua
mit
wmAndym/LuaBridgeTest,wmAndym/LuaBridgeTest
f8ea8fc0fc290b7247ba7b4edcd1a57b8788c296
lua/entities/gmod_wire_plug.lua
lua/entities/gmod_wire_plug.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Plug" ENT.Author = "Divran" ENT.Purpose = "Links with a socket" ENT.Instructions = "Move a plug close to a socket to link them, and data will be transferred through the link." ENT.WireDebugName = "Plug" local base = sc...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Plug" ENT.Author = "Divran" ENT.Purpose = "Links with a socket" ENT.Instructions = "Move a plug close to a socket to link them, and data will be transferred through the link." ENT.WireDebugName = "Plug" local base = sc...
Fixed undefined variable "old"
Fixed undefined variable "old"
Lua
apache-2.0
garrysmodlua/wire,bigdogmat/wire,sammyt291/wire,wiremod/wire,NezzKryptic/Wire,dvdvideo1234/wire,Grocel/wire,thegrb93/wire
19f77d553c90920edf8274c627667a30d72c91de
src/plugins/core/scripting/preferences.lua
src/plugins/core/scripting/preferences.lua
--- === plugins.core.scripting.preferences === --- --- Scripting Preferences. local require = require local hs = hs local dialog = require("hs.dialog") local ipc = require("hs.ipc") local timer = require("hs.timer") local config = require("cp.config") local html = requ...
--- === plugins.core.scripting.preferences === --- --- Scripting Preferences. local require = require local hs = hs local dialog = require("hs.dialog") local ipc = require("hs.ipc") local timer = require("hs.timer") local i18n = require("cp.i18n") local execut...
#1692
#1692 - Fixed @stickler-ci errors
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
8f44f417d5b17106312f5aafd4c62a5c934d02b1
examples/test-dns.lua
examples/test-dns.lua
local p = require('lib/utils').prettyPrint local uv = require('luv') uv.getaddrinfo(nil, 80, nil, p) local domains = { "facebook.com", "google.com", "mail.google.com", "maps.google.com", "plus.google.com", "play.google.com", "apple.com", "hp.com", "yahoo.com", "mozilla.com", "developer.mozilla.c...
local p = require('lib/utils').prettyPrint local uv = require('luv') uv.getaddrinfo(nil, 80, nil, p) local domains = { "facebook.com", "google.com", "mail.google.com", "maps.google.com", "plus.google.com", "play.google.com", "apple.com", "hp.com", "yahoo.com", "mozilla.com", "developer.mozilla.c...
Fix dns example
Fix dns example
Lua
apache-2.0
daurnimator/luv,mkschreder/luv,kidaa/luv,daurnimator/luv,zhaozg/luv,NanXiao/luv,joerg-krause/luv,joerg-krause/luv,brimworks/luv,brimworks/luv,RomeroMalaquias/luv,daurnimator/luv,DBarney/luv,NanXiao/luv,RomeroMalaquias/luv,kidaa/luv,leecrest/luv,luvit/luv,luvit/luv,xpol/luv,xpol/luv,RomeroMalaquias/luv,DBarney/luv,zhaoz...
4c9e9125dea52b1296e096e13812c04b4d3fd637
lib/luvit/luvit.lua
lib/luvit/luvit.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
HACK: fix repl on windows
HACK: fix repl on windows the event loop for windows needs to be incremented from zero in order to not exit the loop immediatly. How does this work under Linux? Under Linux ev seems to keep the loop at 1 from the start..
Lua
apache-2.0
GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,boundary/luvit,DBarney/luvit,AndrewTsao/luvit,bsn069/luvit,rjeli/luvit,zhaozg/luvit,sousoux/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,connectFree/lev,AndrewTsao/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,connectFree/le...
290c8e0214be3c9f5814e12515c26c7531310760
mod_host_guard/mod_host_guard.lua
mod_host_guard/mod_host_guard.lua
-- (C) 2011, Marco Cirillo (LW.Org) -- Block or restrict by blacklist remote access to local components or hosts. module:set_global() local guard_blockall = module:get_option_set("host_guard_blockall", {}) local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {}) local guard_protect = module:g...
-- (C) 2011, Marco Cirillo (LW.Org) -- Block or restrict by blacklist remote access to local components or hosts. module:set_global() local guard_blockall = module:get_option_set("host_guard_blockall", {}) local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {}) local guard_protect = module:g...
mod_host_guard: fixed plugin, minor code refactor.
mod_host_guard: fixed plugin, minor code refactor.
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
3bd349301417ed09736b8ca3a8e461716bd2e4cc
frontend/device/remarkable/device.lua
frontend/device/remarkable/device.lua
local Generic = require("device/generic/device") -- <= look at this file! local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function no() return false end local EV_ABS = 3 local ABS_X = 00 local ABS_Y = 01 local ABS_MT_POSITION_X = 53 local ABS_MT_POSITI...
local Generic = require("device/generic/device") -- <= look at this file! local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function no() return false end local EV_ABS = 3 local ABS_X = 00 local ABS_Y = 01 local ABS_MT_POSITION_X = 53 local ABS_MT_POSITI...
Fix double-pressing reMarkable 2 power button twice to wake up (#7065)
Fix double-pressing reMarkable 2 power button twice to wake up (#7065)
Lua
agpl-3.0
NiLuJe/koreader,Hzj-jie/koreader,pazos/koreader,koreader/koreader,Markismus/koreader,poire-z/koreader,Frenzie/koreader,poire-z/koreader,NiLuJe/koreader,mwoz123/koreader,Frenzie/koreader,koreader/koreader
00bfbba25768a37a60af805304c30eda3fe686e1
ProtoplugFiles/include/audiomath.lua
ProtoplugFiles/include/audiomath.lua
-- Support math and low level function to help with plugin development --[[ Functions added to math ------------------------------------------------------------------------------------ --]] -- Initialise the random number generator math.randomseed(os.time()) math.random(); math.random(); math.random() math....
-- Support math and low level function to help with plugin development --[[ Functions added to math ------------------------------------------------------------------------------------ --]] -- Initialise the random number generator math.randomseed(os.time()) math.random(); math.random(); math.random() math....
Fixed some missing locals and also avoid dynamic allocation for the upsampler
Fixed some missing locals and also avoid dynamic allocation for the upsampler
Lua
mit
JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug
0d59587b1cf55c923586f0a609903ae60c328183
MMOCoreORB/bin/scripts/screenplays/tasks/naboo/librarian.lua
MMOCoreORB/bin/scripts/screenplays/tasks/naboo/librarian.lua
npcMapLibrarian = { { spawnData = { planetName = "naboo", npcTemplate = "librarian", x = 40.7, z = 33, y = -93.9, direction = -97, cellID = 1688867, position = STAND }, npcNumber = 1, stfFile = "@celebrity/librarian", }, } Librarian = ThemeParkLogic:new { numberOfActs = 1, npcMap = npcMapLibrarian, permi...
npcMapLibrarian = { { spawnData = { planetName = "naboo", npcTemplate = "librarian", x = 40.7, z = 33, y = -93.9, direction = -97, cellID = 1688867, position = STAND }, npcNumber = 1, stfFile = "@celebrity/librarian", }, } Librarian = ThemeParkLogic:new { numberOfActs = 1, npcMap = npcMapLibrarian, permi...
[fixed] Naboo Librarian no longer starts from beginning after wrong answer.
[fixed] Naboo Librarian no longer starts from beginning after wrong answer. Change-Id: I10c5fc4259fbc29fa00becedb6fadb76781c69db
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Ta...
03b0b7174dec3658c548795fdd99b45b68682dbc
Examples/opensuse-sandbox.cfg.lua
Examples/opensuse-sandbox.cfg.lua
-- this is an example config for sandbox that use external opensuse rootfs as base. -- config based on debian-sandbox.cfg.lua, and will be maintained as small as possible - most notes removed. -- see ubuntu-sandbox.cfg.lua and example.cfg.lua for more comments and information about config options -- this example confi...
-- this is an example config for sandbox that use external opensuse rootfs as base. -- config based on debian-sandbox.cfg.lua, and will be maintained as small as possible - most notes removed. -- see ubuntu-sandbox.cfg.lua and example.cfg.lua for more comments and information about config options -- this example confi...
Examples: fix trim_args function at opensuse-sandbox.cfg.lua
Examples: fix trim_args function at opensuse-sandbox.cfg.lua
Lua
mit
DarkCaster/Sandboxer,DarkCaster/Sandboxer