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
53e0001738310e056810146735c78408b76e09e5
orange/plugins/dynamic_upstream/handler.lua
orange/plugins/dynamic_upstream/handler.lua
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
fix & modify dynamic_upstream
fix & modify dynamic_upstream 1. keep the behavior with rewrite ins 2. fix copy bug: not to rewrite whtn to_rewrite equals to uri 3. test case : 添加两个规则,规则中配置处理一栏: 1. /notso/${1}/2ad%20fa/hha dd/?name=11 2223&ab=1c, ${1} 表示变量提取式,可以随意配置一个。 2. /gooda/ requrest: http://192.168.110.137/hhhe?aafad=1 http://19...
Lua
mit
thisverygoodhhhh/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange
dd2393834d65fbcdfec44033bdbcbb2e302b14c7
vanilla/v/request.lua
vanilla/v/request.lua
-- Request moudle -- @since 2015-08-17 10:54 -- @author idevz <zhoujing00k@gmail.com> -- version $Id$ -- perf local error = error local pairs = pairs local pcall = pcall local setmetatable = setmetatable local Reqargs = require 'vanilla.v.libs.reqargs' local Request = {} function Request:new() -- local headers =...
-- Request moudle -- @since 2015-08-17 10:54 -- @author idevz <zhoujing00k@gmail.com> -- version $Id$ -- perf local error = error local pairs = pairs local pcall = pcall local setmetatable = setmetatable local Reqargs = require 'vanilla.v.libs.reqargs' local Request = {} function Request:new() -- local headers =...
fix a request bug
fix a request bug
Lua
mit
idevz/vanilla,idevz/vanilla
37b2744dca46248abc48eb6aa724cb0e9b7955f7
src/Script.lua
src/Script.lua
local System = require 'System' local Target = require 'Target' local P = {} local function write_pkg_var(w, prefix, name, value) if not value then return end local tp = type(value) if tp == 'string' or tp == 'number' then w("pkg_%s%s='%s'", prefix, name, value) elseif tp == 'boolean' then ...
local System = require 'System' local Target = require 'Target' local P = {} local function write_pkg_var(w, prefix, name, value) if not value then return end local tp = type(value) if tp == 'string' or tp == 'number' then w("pkg_%s%s='%s'", prefix, name, value) elseif tp == 'boolean' then ...
Fix handling of use aliases when generating scripts
Fix handling of use aliases when generating scripts
Lua
mit
bazurbat/jagen
71cdfd067e05ab1f07b369ca26b1acf73e9a61f1
src/state.lua
src/state.lua
-- maintains a state of the assert engine in a linked-list fashion -- records; formatters, parameters, spies and stubs local state_mt = { __call = function(self) self:revert() end } local nilvalue = {} -- unique ID to refer to nil values for parameters -- will hold the current state local current -- exporte...
-- maintains a state of the assert engine in a linked-list fashion -- records; formatters, parameters, spies and stubs local state_mt = { __call = function(self) self:revert() end } local spies_mt = { __mode = "kv" } local nilvalue = {} -- unique ID to refer to nil values for parameters -- will hold the cur...
Save spies to weak table
Save spies to weak table This allows spies to be garbage collected without needing to revert the current snapshot. Fixes a memory leak if a snapshot is never reverted.
Lua
mit
o-lim/luassert,ZyX-I/luassert
ed5c06edaf8172891586e9f1ad0e90b7359d9223
lib/resty/template.lua
lib/resty/template.lua
-- Copyright (C) 2015 Lloyd Zhou local _M = { _VERSION = '0.1' } local mt = {__index = _M} function _M.new(callback, minify, tags) tags = ("table" == type(tags) and 4 == #tags) and tags or {"{{", "}}", "{%%", "%%}"} return setmetatable({ callback = callback or (nil == ngx and io.write or ngx.print), ...
-- Copyright (C) 2015 Lloyd Zhou local _M = { _VERSION = '0.1' } local mt = {__index = _M} function _M.new(callback, minify, tags, cacheable) tags = ("table" == type(tags) and 4 == #tags) and tags or {"{{", "}}", "{%%", "%%}"} return setmetatable({ callback = callback or (nil == ngx and io.write or n...
fixed bug for cache compiled template
fixed bug for cache compiled template
Lua
mit
lloydzhou/lua-resty-tmpl,lloydzhou/lua-resty-template
ddbd7088587167cf62d9d5b9579764f3d20d6b48
tests/file.lua
tests/file.lua
di:load_plugin("./plugins/file/di_file.so") unpack = table.unpack or unpack md = di.spawn:run({"mkdir", "testdir"}, true) md:once("exit", function() w = di.file:watch({"testdir"}) function sigh(ev) return function(name, path) print("event: "..ev, name, path) end end events = {"create", "access", "at...
di:load_plugin("./plugins/file/di_file.so") unpack = table.unpack or unpack md = di.spawn:run({"mkdir", "testdir"}, true) md:once("exit", function() w = di.file:watch({"testdir"}) event_count = 0 function sigh(ev) return function(name, path) print("event: "..ev, name, path) event_count = event_co...
tests: fix file.lua hang
tests: fix file.lua hang Signed-off-by: Yuxuan Shui <7f7e1535bcd10fa942d56a3436533af20f33203f@gmail.com>
Lua
mpl-2.0
yshui/deai,yshui/deai,yshui/deai
527e7b367446f79bc0f7c03b8f949cf37ee9cc87
core/lfs_ext.lua
core/lfs_ext.lua
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE. --[[ This comment is for LuaDoc. --- -- Extends the `lfs` library to find files in directories and determine absolute -- file paths. module('lfs')]] --- -- The filter table containing common binary file extensions and version control -- directorie...
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE. --[[ This comment is for LuaDoc. --- -- Extends the `lfs` library to find files in directories and determine absolute -- file paths. module('lfs')]] --- -- The filter table containing common binary file extensions and version control -- directorie...
Fixed inability to effectively halt `lfs.dir_foreach()` loops; core/lfs_ext.lua
Fixed inability to effectively halt `lfs.dir_foreach()` loops; core/lfs_ext.lua
Lua
mit
rgieseke/textadept,rgieseke/textadept
7f521d2de11a626a9d4498a89260452e736afdea
src/nodish/buffer.lua
src/nodish/buffer.lua
local ffi = require'ffi' local S = require'syscall' ffi.cdef[[ void * memcpy(void *restrict dst, const void *restrict src, size_t n); ]] local types = { Double = { ctype = 'double', size = 8, }, Float = { ctype = 'float', size = 4 }, Int32 = { ctype = 'uint32_t', size = 4, } } loc...
local ffi = require'ffi' local S = require'syscall' ffi.cdef[[ void * memcpy(void *restrict dst, const void *restrict src, size_t n); ]] local types = { Double = { ctype = 'double', size = 8, }, Float = { ctype = 'float', size = 4 }, UInt8 = { ctype = 'uint8_t', size = 1, }, UInt...
some fixes
some fixes
Lua
mit
lipp/nodish
c813877b16429a7c56bd009cfe9ab9e9b51ce26a
src/cmdrservice/src/Server/CmdrService.lua
src/cmdrservice/src/Server/CmdrService.lua
--[=[ Bridge to https://eryn.io/Cmdr/ Uses [PermissionService] to provide permissions. @server @class CmdrService ]=] local require = require(script.Parent.loader).load(script) local HttpService = game:GetService("HttpService") local PermissionService = require("PermissionService") local CmdrTemplateProviderSer...
--[=[ Bridge to https://eryn.io/Cmdr/ Uses [PermissionService] to provide permissions. @server @class CmdrService ]=] local require = require(script.Parent.loader).load(script) local HttpService = game:GetService("HttpService") local PermissionService = require("PermissionService") local CmdrTemplateProviderSer...
fix: Fix issue where anyone can execute admin commands
fix: Fix issue where anyone can execute admin commands This is a critical security issue. You should deploy this immediately
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
c9103d3ce17be5c531a81abbfee8efb2783775be
packages/pirania/tests/test_redirect.lua
packages/pirania/tests/test_redirect.lua
local test_utils = require("tests.utils") local match = require("luassert.match") local REDIRECT_PATH = "packages/pirania/files/www/pirania-redirect/redirect" local CONFIG_PATH = "./packages/pirania/files/etc/config/pirania" local FAKE_ENV = { HTTP_HOST = 'detectportal.firefox.com', REQUEST_URI = '/success.txt...
local test_utils = require("tests.utils") local match = require("luassert.match") local REDIRECT_PATH = "packages/pirania/files/www/pirania-redirect/redirect" local CONFIG_PATH = "./packages/pirania/files/etc/config/pirania" local FAKE_ENV = { HTTP_HOST = 'detectportal.firefox.com', REQUEST_URI = '/success.txt...
pirania: fix test after defaults changed
pirania: fix test after defaults changed
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
0006e06c6d87d83dbdc53ff4b038c0831038c779
BIOS/filethread.lua
BIOS/filethread.lua
--A thread to keep track of files being edited, and automatically update them in the appdata folder --So there would be no longer need to restart LIKO-12 for some tasks. --By default it only tracks the DiskOS folder. require("love.system") require("love.timer") local reg = {} local tpath = "/OS/DiskOS/" --Tracking ...
--Thread used to keep track of files being edited and automatically update them --in the appdata folder so LIKO-12 does not need to be restarted for some tasks --Only tracks the DiskOS folder by default require("love.system") require("love.timer") local reg = {} local delay_between_checks = 3 --Time in seconds betw...
Improve filethread (#242)
Improve filethread (#242) * Improve formatting and add some comments * Rename some variables * Store delay between checks in a variable * Use 2 spaces for indentation * Tiny spelling fix * Fix the tab indentation problem Former-commit-id: 7c253b7d67bbdeb7f62da2ce3d0c8118ef6463f6
Lua
mit
RamiLego4Game/LIKO-12
6d031b13a74b5a8b02c2eb7a481fe8721693225a
src/pci.lua
src/pci.lua
-- pci.lua -- PCI device access via Linux sysfs. -- Copyright 2012 Snabb GmbH. See the file LICENSE. module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("lib") require("clib_h") require("snabb_h") --- ## Hardware device information --- Array of all supported hardware devices. ...
-- pci.lua -- PCI device access via Linux sysfs. -- Copyright 2012 Snabb GmbH. See the file LICENSE. module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("lib") require("clib_h") require("snabb_h") --- ## Hardware device information --- Array of all supported hardware devices. ...
pci.lua: Bug fix - don't unbind devices from Linux if they are already unbound.
pci.lua: Bug fix - don't unbind devices from Linux if they are already unbound.
Lua
apache-2.0
fhanik/snabbswitch,alexandergall/snabbswitch,mixflowtech/logsensor,kellabyte/snabbswitch,snabbco/snabb,snabbnfv-goodies/snabbswitch,andywingo/snabbswitch,aperezdc/snabbswitch,eugeneia/snabbswitch,snabbco/snabb,eugeneia/snabb,plajjan/snabbswitch,dpino/snabb,kellabyte/snabbswitch,eugeneia/snabb,justincormack/snabbswitch,...
793e9428a9ec02922e7ada4db68ae7efaed42000
generate/lua/format.lua
generate/lua/format.lua
local slt = require 'slt2' local utl = require 'utl' local format = {} function format.html(str) return tostring(str) :gsub('&','&amp;') :gsub("'",'&apos;') :gsub('<','&lt;') :gsub('>','&gt;') :gsub('"','&quot;') end local templateCache = {} function format.slt(file,data) file = utl.path('resources/templ...
local slt = require 'slt2' local utl = require 'utl' local format = {} function format.html(str) return tostring(str) :gsub('&','&amp;') :gsub("'",'&apos;') :gsub('<','&lt;') :gsub('>','&gt;') :gsub('"','&quot;') end local templateCache = {} function format.slt(file,data) file = utl.path('resources/templ...
fixed redundancy
fixed redundancy
Lua
unlicense
Anaminus/roblox-api-ref,Anaminus/roblox-api-ref
62149acc0859a9f91d7034e03d0cf0127d0bc56f
mod_register_json/mod_register_json.lua
mod_register_json/mod_register_json.lua
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local usermanager = require "core.usermanager"; local b64_deco...
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local usermanager = require "core.usermanager"; local b64_deco...
mod_register_json: Fixed http listener creation syntax. (Please document that in the API, that would avoid my brain overheating, thank you.)
mod_register_json: Fixed http listener creation syntax. (Please document that in the API, that would avoid my brain overheating, thank you.)
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
f0058db9c5c931fce4b30b813a0b56e960296f95
src/structure/IndexMap.lua
src/structure/IndexMap.lua
local class = require 'lib/30log' inspect = require 'lib/inspect' local IndexMap = class("IndexMap",{ addressbook = {}, placeables_index = {} }) local Location = class("Location",{ address = nil, placeables = {}, neighbors = {} }) function Location:init(address, neighbors) if address == nil then error('Tried to...
local class = require 'lib/30log' inspect = require 'lib/inspect' local IndexMap = class("IndexMap",{ addressbook = {}, placeables_index = {} }) local Location = class("Location",{ address = nil, placeables = {}, neighbors = {} }) function Location:init(address, neighbors) if address == nil then error('Tried to...
Fix placeable placement
Fix placeable placement
Lua
mit
Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400
0132be5a5f802ce29ec4a76884a5b742b7fbe03f
MMOCoreORB/bin/scripts/quest/tasks/patrol.lua
MMOCoreORB/bin/scripts/quest/tasks/patrol.lua
local Task = require("quest.tasks.task") local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") local Logger = require("utils.logger") Patrol = Task:new { -- Task properties taskName = "", -- Patrol properties waypointName = "", numPoints = 0, ...
local Task = require("quest.tasks.task") local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") local Logger = require("utils.logger") Patrol = Task:new { -- Task properties taskName = "", -- Patrol properties waypointName = "", numPoints = 0, ...
[fixed] stability issue
[fixed] stability issue Change-Id: I03b8c3945bb2d05bb4e18bf704acdced189804e5
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo
54cedbf76ed4c03e8b8ae0c2e1540d1c8f0c44a0
premake.lua
premake.lua
project.name = "Premake4" -- Project options addoption("no-tests", "Build without automated tests") -- Output directories project.config["Debug"].bindir = "bin/debug" project.config["Release"].bindir = "bin/release" -- Packages dopackage("src") -- Cleanup code function doclean(cmd,...
project.name = "Premake4" -- Project options addoption("no-tests", "Build without automated tests") -- Output directories project.config["Debug"].bindir = "bin/debug" project.config["Release"].bindir = "bin/release" -- Packages dopackage("src") -- Cleanup code function doclean(cmd,...
Another fix to my fix
Another fix to my fix --HG-- extra : convert_revision : svn%3A644ed5ae-bb15-0410-aa60-99f397bbb77a/trunk%40409
Lua
bsd-3-clause
Lusito/premake,annulen/premake-annulen,annulen/premake-annulen,annulen/premake-annulen,annulen/premake-dev-rgeary,Lusito/premake,warrenseine/premake,annulen/premake-dev-rgeary,annulen/premake,Lusito/premake,annulen/premake,annulen/premake,annulen/premake-annulen,Lusito/premake,annulen/premake,warrenseine/premake,warren...
46def6db0b9deba9c32cb14c8e4cb9bde459e453
Modules/Events/Maid.lua
Modules/Events/Maid.lua
--[[Maid Manages the cleaning of events and other things. Modified by Quenty API: MakeMaid() Returns a new Maid object. Maid[key] = (function) Adds a task to perform when cleaning up. Maid[key] = (event connection) Manages an event connection. Anything that isn"t a function...
--[[Maid Manages the cleaning of events and other things. Modified by Quenty API: MakeMaid() Returns a new Maid object. Maid[key] = (function) Adds a task to perform when cleaning up. Maid[key] = (event connection) Manages an event connection. Anything that isn"t a function...
FIx some typos with Maid,
FIx some typos with Maid,
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
e4d8cb8a0ed3c6dfd35cc1ce4b64c90b903247a1
ovi-store.lua
ovi-store.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
Fix ignoring related applications page
Fix ignoring related applications page Fixes repeatedly fetching 404 urls
Lua
unlicense
ArchiveTeam/ovi-store-grab,ArchiveTeam/ovi-store-grab
00d58945499d82d55cd2de4c8cde4a09dc4b1560
lib/switchboard_modules/lua_script_debugger/premade_scripts/ain_config/ain_ef_config_set_defaults_and_powercycle.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/ain_config/ain_ef_config_set_defaults_and_powercycle.lua
-- This is a general AIN_EF config example that shows the basic process for -- configuring any AIN_EF feature on a T-Series device, saving them as defaults -- and then powercycling the device. This example configures AIN0 and AIN2 to -- enable the Average/Min/Max extended feature. -- For a list of all AIN_EF options,...
--[[ Name: ain_ef_config_set_defaults_and_powercycle.lua Desc: This is a general AIN_EF config example that shows the basic process for configuring any AIN_EF feature on a T-Series device, saving them as defaults, and powercycling the device. This example configures AIN0 and AIN2 t...
Fixed up formatting of the AIN EF config and powercycle script
Fixed up formatting of the AIN EF config and powercycle script
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
e1e8029cb15ab7cf44b8618b9cc84746b52ff99d
scripts/genie.lua
scripts/genie.lua
solution "retrocmd" configurations { "Debug", "Release", } platforms { "x32", "x64", } language "C++" startproject "retrocmd" -- BEGIN GENie configuration premake.make.makefile_ignore = true --premake._checkgenerate = false premake.check_paths = true msgcompile ("Compiling $(subst ../,,$<)...") msgcompile...
solution "retrocmd" configurations { "Debug", "Release", } platforms { "x32", "x64", } language "C++" startproject "retrocmd" -- BEGIN GENie configuration premake.make.makefile_ignore = true --premake._checkgenerate = false premake.check_paths = true msgcompile ("Compiling $(subst ../,,$<)...") msgcompile...
Fix compile
Fix compile
Lua
bsd-3-clause
mamedev/retrocmd
436501642d9cbaf5177e711b583fa79c243e1cf5
modules/textadept/bookmarks.lua
modules/textadept/bookmarks.lua
-- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Bookmarks for the textadept module. -- There are several option variables used: -- MARK_BOOKMARK: The integer mark used to identify a bookmarked line. -- MARK_BOOKMARK_COLO...
-- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Bookmarks for the textadept module. -- There are several option variables used: -- MARK_BOOKMARK: The integer mark used to identify a bookmarked line. -- MARK_BOOKMARK_COLO...
Fixed toggle bookmark bug, wrap searches; modules/textadept/bookmarks.lua
Fixed toggle bookmark bug, wrap searches; modules/textadept/bookmarks.lua
Lua
mit
jozadaquebatista/textadept,jozadaquebatista/textadept
ad7f647f42751a64beb193e5ceac5ea52560baff
AceAddon-3.0/AceAddon-3.0.lua
AceAddon-3.0/AceAddon-3.0.lua
local MAJOR, MINOR = "AceAddon-3.0", 0 local AceAddon, oldminor = LibStub:NewLibrary( MAJOR, MINOR ) if not AceAddon then return -- No Upgrade needed. elseif not oldminor then -- This is the first version AceAddon.frame = CreateFrame("Frame", "AceAddon30Frame") -- Our very own frame AceAddon.addons = {} -- addons ...
local MAJOR, MINOR = "AceAddon-3.0", 0 local AceAddon, oldminor = LibStub:NewLibrary( MAJOR, MINOR ) if not AceAddon then return -- No Upgrade needed. elseif not oldminor then -- This is the first version AceAddon.frame = CreateFrame("Frame", "AceAddon30Frame") -- Our very own frame AceAddon.addons = {} -- addons ...
Ace3 - - fixed a bug in EmbedLibraries - updated svn properties
Ace3 - - fixed a bug in EmbedLibraries - updated svn properties git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@6 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
9d63ed2947a3938a7da2e27aca20cda606359733
lib/WeightedMSECriterion.lua
lib/WeightedMSECriterion.lua
local WeightedMSECriterion, parent = torch.class('w2nn.WeightedMSECriterion','nn.Criterion') function WeightedMSECriterion:__init(w) parent.__init(self) self.weight = w:clone() self.diff = torch.Tensor() self.loss = torch.Tensor() end function WeightedMSECriterion:updateOutput(input, target) self.diff:...
local WeightedMSECriterion, parent = torch.class('w2nn.WeightedMSECriterion','nn.Criterion') function WeightedMSECriterion:__init(w) parent.__init(self) self.weight = w:clone() self.diff = torch.Tensor() self.loss = torch.Tensor() end function WeightedMSECriterion:updateOutput(input, target) self.diff:...
Fix gradient scale in WeightedMSECriterion
Fix gradient scale in WeightedMSECriterion
Lua
mit
higankanshi/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,Spitfire1900/upscaler,higankanshi/waifu2x,nagadomi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x
fa45469924a0af2d73cebd2e4499a905e1309e88
popups.lua
popups.lua
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") StaticPopupDialogs["EPGP_CONFIRM_GP_CREDIT"] = { text = L["Credit GP to %s"], button1 = L["Full"], button3 = L["Offspec"], button2 = CANCEL, timeout = ...
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") StaticPopupDialogs["EPGP_CONFIRM_GP_CREDIT"] = { text = L["Credit GP to %s"], button1 = L["Full"], button3 = L["Offspec"], button2 = CANCEL, timeout = ...
Partial fix of EPGP_CONFIRM_GP_CREDIT popup and some cosmetic changes. Popup works if Enter is pressed, but the buttons still need work.
Partial fix of EPGP_CONFIRM_GP_CREDIT popup and some cosmetic changes. Popup works if Enter is pressed, but the buttons still need work.
Lua
bsd-3-clause
hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp
9b49c65a301ecc3ad0bac3f377ccca29766f6b5d
Lua_examples/host_and_connect.lua
Lua_examples/host_and_connect.lua
-- Run this file in both SV and CL to see working output. require("bromsock") -- SERVER EXAMPLE if SERVER then if server then server:Close() end server = BromSock() if (not server:Listen(6789)) then print("[BS:S] Failed to listen!") else print("[BS:S] Server listening...") end server:SetCallbackAccept(f...
-- Run this file in both SV and CL to see working output. require("bromsock") -- SERVER EXAMPLE if SERVER then if server then server:Close() end server = BromSock() if (not server:Listen(6789)) then print("[BS:S] Failed to listen!") else print("[BS:S] Server listening...") end server:SetCallbackAccept(f...
Updated example for connect, was already fixed a while ago
Updated example for connect, was already fixed a while ago
Lua
mit
Bromvlieg/gm_bromsock,Bromvlieg/gm_bromsock
1ed4817fb65d2ac0d2960afbd041ef5aa74c9673
openwrt/package/linkmeter/luasrc/linkmeterd.lua
openwrt/package/linkmeter/luasrc/linkmeterd.lua
#! /usr/bin/env lua local io = require("io") local os = require("os") local rrd = require("rrd") local nixio = require("nixio") nixio.fs = require("nixio.fs") local uci = require("uci") local SERIAL_DEVICE = "/dev/ttyS1" local RRD_FILE = "/tmp/hm.rrd" local JSON_FILE = "/tmp/json" local probeNames = { "Pit", "Food P...
#! /usr/bin/env lua local io = require("io") local os = require("os") local rrd = require("rrd") local nixio = require("nixio") nixio.fs = require("nixio.fs") local uci = require("uci") local SERIAL_DEVICE = "/dev/ttyS1" local RRD_FILE = "/tmp/hm.rrd" local JSON_FILE = "/tmp/json" local probeNames = { "Pit", "Food P...
[lm] Recreate RRD if the clock jumps forward more than 24 hours. Fixes broken RRD files created on boot
[lm] Recreate RRD if the clock jumps forward more than 24 hours. Fixes broken RRD files created on boot
Lua
mit
kdakers80/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,kdakers8...
88a2559edce1b44dfa3786478508ee076df231ba
xmake/tools/swiftc.lua
xmake/tools/swiftc.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix swift link bug
fix swift link bug
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
62d8fba76c473261bdcd2810638dd5edf87d0167
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
Fix loader.source for busted tests.
Fix loader.source for busted tests.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
e4ae3229aa7db5487d256d6af4a68d689407f9cb
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) 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...
FIX: 101greatgoals.lua: article pattern
FIX: 101greatgoals.lua: article pattern The pattern for the article was broken for: http://is.gd/MuYcm3 Converted the original patch to apply. ref: http://article.gmane.org/gmane.comp.web.flash.quvi/89
Lua
lgpl-2.1
DangerCove/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts
a6d2e80258ed88cd2483a450963d697862935663
lua/AtemMixer.lua
lua/AtemMixer.lua
local cqueues = require 'cqueues' local socket = require 'cqueues.socket' local struct = require 'struct' --- ATEM Stuff local AtemMixer = { CMD_ACK = 0x8000, CMD_RESEND = 0x2000, CMD_HELLO = 0x1000, CMD_ACKREQ = 0x0800, CMD_LENGTHMASK = 0x07ff, } function AtemMixer:new(ip) o = { ip = ip, sock = socket.con...
local cqueues = require 'cqueues' local socket = require 'cqueues.socket' local struct = require 'struct' --- ATEM Stuff local AtemMixer = { CMD_ACK = 0x8000, CMD_RESEND = 0x2000, CMD_HELLO = 0x1000, CMD_ACKREQ = 0x0800, CMD_LENGTHMASK = 0x07ff, } function AtemMixer:new(ip) o = { ip = ip, sock = socket.con...
AtemMixer: fix reconnecting on timeout
AtemMixer: fix reconnecting on timeout
Lua
mit
rstanislav/bmd-tools,fabled/bmd-tools
2ac580bb0effdef820c6b2b0c8595cdb3335c2b6
src/plugins/finalcutpro/midi/controls/timeline.lua
src/plugins/finalcutpro/midi/controls/timeline.lua
--- === plugins.finalcutpro.midi.controls.timeline === --- --- Final Cut Pro MIDI Timeline Controls. local require = require --local log = require "hs.logger".new "timeline" local axutils = require "cp.ui.axutils" local deferred = require "cp.deferred" local fcp = require "c...
--- === plugins.finalcutpro.midi.controls.timeline === --- --- Final Cut Pro MIDI Timeline Controls. local require = require --local log = require "hs.logger".new "timeline" local axutils = require "cp.ui.axutils" local deferred = require "cp.deferred" local fcp = require "c...
Fixed bug in MIDI Timeline Scroll
Fixed bug in MIDI Timeline Scroll - Closes #2473
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks
f9e61d217f29664b595fc60a7c05587687dd1cda
src/pf/codegen.lua
src/pf/codegen.lua
module(...,package.seeall) verbose = os.getenv("PF_VERBOSE"); local function dup(db) local ret = {} for k, v in pairs(db) do ret[k] = v end return ret end local function filter_builder(...) local written = 'return function(' local vcount = 0 local lcount = 0 local indent = ' ' local jumps =...
module(...,package.seeall) verbose = os.getenv("PF_VERBOSE"); local function dup(db) local ret = {} for k, v in pairs(db) do ret[k] = v end return ret end local function filter_builder(...) local written = 'return function(' local vcount = 0 local lcount = 0 local indent = ' ' local jumps =...
Fix codegen scoping bug
Fix codegen scoping bug * src/pf/codegen.lua (compile_bool): Wrap true continuation in a do / end in all cases, to preserve scoping.
Lua
apache-2.0
mpeterv/pflua,SnabbCo/pflua
fde6e1971c89db8b10e9ad1233442bef9d54a765
packages/bidi.lua
packages/bidi.lua
SILE.registerCommand("thisframeLTR", function(options, content) SILE.typesetter.frame.direction = "LTR" SILE.typesetter:leaveHmode() end); SILE.registerCommand("thisframeRTL", function(options, content) SILE.typesetter.frame.direction = "RTL" SILE.typesetter:leaveHmode() end); local bidi = require("unicode-bi...
SILE.registerCommand("thisframeLTR", function(options, content) SILE.typesetter.frame.direction = "LTR" SILE.typesetter:leaveHmode() end); SILE.registerCommand("thisframeRTL", function(options, content) SILE.typesetter.frame.direction = "RTL" SILE.typesetter:leaveHmode() end); local bidi = require("unicode-bi...
Fix docs now this is default.
Fix docs now this is default.
Lua
mit
shirat74/sile,simoncozens/sile,alerque/sile,alerque/sile,WAKAMAZU/sile_fe,shirat74/sile,alerque/sile,simoncozens/sile,alerque/sile,anthrotype/sile,anthrotype/sile,neofob/sile,neofob/sile,neofob/sile,shirat74/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,anthrotype/sile,neofob/sile,simoncozens...
a2484afd3a451eea46ffd386e1a8894e5f07871a
pud/ui/Text.lua
pud/ui/Text.lua
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local pushRenderTarget, popRenderTarget = pushRenderTarget, popRenderTarget local setColor = love.graphics.setColor local setFont = love.graphics.setFont local gprint = love.graphics.print local math_floor = math.floor local string_sub = str...
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local pushRenderTarget, popRenderTarget = pushRenderTarget, popRenderTarget local setColor = love.graphics.setColor local setFont = love.graphics.setFont local gprint = love.graphics.print local math_floor = math.floor local string_sub = str...
fixed wrap, and call wrap on setText instead of during draw
fixed wrap, and call wrap on setText instead of during draw
Lua
mit
scottcs/wyx
f79a6bc543ebc146550e241713609924d3c20208
xmake/languages/dlang/xmake.lua
xmake/languages/dlang/xmake.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 dlang config bugs
fix dlang config bugs
Lua
apache-2.0
tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake
2d67de80955ab5786ac8677f64c36e327f8b8eae
agents/monitoring/default/protocol/request.lua
agents/monitoring/default/protocol/request.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
Fix request.lua to handle trying to open a stupid file
Fix request.lua to handle trying to open a stupid file
Lua
apache-2.0
christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/r...
7da7263d140d2a66300fbee16e3571f2b2db4e00
hydro/tooltip.lua
hydro/tooltip.lua
-- wrapper for imgui stuff to put a tooltip over it (and give it no title) -- (and push/pop id strs so the no-title doesn't cause a problem) local ffi = require 'ffi' local ig = require 'ffi.imgui' local table = require 'ext.table' local function hoverTooltip(name) if ig.igIsItemHovered(ig.ImGuiHoveredFlags_None) th...
-- wrapper for imgui stuff to put a tooltip over it (and give it no title) -- (and push/pop id strs so the no-title doesn't cause a problem) local ffi = require 'ffi' local ig = require 'ffi.imgui' local table = require 'ext.table' require 'ffi.c.string' -- strlen local function hoverTooltip(name) if ig.igIsItemHove...
fixed a bug
fixed a bug
Lua
mit
thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua
1b700c00443da111bdd3eb0bad6a42a9a8f2a370
plugins/kobolight.koplugin/main.lua
plugins/kobolight.koplugin/main.lua
local Device = require("device") local with_frontlight = (Device:isKindle() or Device:isKobo()) and Device:hasFrontlight() if not (with_frontlight or Device:isSDL()) then return { disabled = true, } end local ConfirmBox = require("ui/widget/confirmbox") local ImageWidget = require("ui/widget/imagewidget") local I...
local Device = require("device") local with_frontlight = (Device:isKindle() or Device:isKobo()) and Device:hasFrontlight() if not (with_frontlight or Device:isSDL()) then return { disabled = true, } end local ConfirmBox = require("ui/widget/confirmbox") local ImageWidget = require("ui/widget/imagewidget") local I...
kobolight(fix): do not consume swipe event if not matched
kobolight(fix): do not consume swipe event if not matched Otherwise it will conflict with swipe to go back feature
Lua
agpl-3.0
Markismus/koreader,mihailim/koreader,mwoz123/koreader,koreader/koreader,NiLuJe/koreader,Frenzie/koreader,apletnev/koreader,robert00s/koreader,lgeek/koreader,Frenzie/koreader,pazos/koreader,NiLuJe/koreader,Hzj-jie/koreader,poire-z/koreader,houqp/koreader,koreader/koreader,poire-z/koreader
794a2f537c2235779995192e91c482caf455b9e5
modules/admin-core/luasrc/controller/admin/uci.lua
modules/admin-core/luasrc/controller/admin/uci.lua
module("luci.controller.admin.uci", package.seeall) require("luci.util") require("luci.sys") function index() node("admin", "uci", "changes").target = call("action_changes") node("admin", "uci", "revert").target = call("action_revert") node("admin", "uci", "apply").target = call("action_apply") end function con...
module("luci.controller.admin.uci", package.seeall) function index() node("admin", "uci", "changes").target = call("action_changes") node("admin", "uci", "revert").target = call("action_revert") node("admin", "uci", "apply").target = call("action_apply") end function convert_changes(changes) local ret = {} fo...
* Fixed an issue that prevented the controller from working with fastindex
* Fixed an issue that prevented the controller from working with fastindex
Lua
apache-2.0
bright-things/ionic-luci,LuttyYang/luci,hnyman/luci,981213/luci-1,openwrt/luci,aircross/OpenWrt-Firefly-LuCI,zhaoxx063/luci,dwmw2/luci,david-xiao/luci,RuiChen1113/luci,fkooman/luci,Sakura-Winkey/LuCI,Noltari/luci,NeoRaider/luci,joaofvieira/luci,slayerrensky/luci,male-puppies/luci,LazyZhu/openwrt-luci-trunk-mod,kuoruan/...
ba4e1d91aa0eefc29e739269481c26ed5ba40172
lib/lua/mock_edit/drag/TextureDragIn.lua
lib/lua/mock_edit/drag/TextureDragIn.lua
module 'mock_edit' -------------------------------------------------------------------- CLASS: TextureDragIn ( SceneViewDrag ) :MODEL{} function TextureDragIn:__init( path, x, y ) local entity = mock.Entity() local texturePlane = entity:attach( mock.TexturePlane() ) texturePlane:setTexture( path ) texturePlane:...
module 'mock_edit' -------------------------------------------------------------------- CLASS: TextureDragIn ( SceneViewDrag ) :MODEL{} function TextureDragIn:__init( path, x, y ) local entity = mock.Entity() local texturePlane = entity:attach( mock.TexturePlane() ) texturePlane:setTexture( path ) texturePlane:...
fix texture drag stop
fix texture drag stop
Lua
mit
tommo/gii,tommo/gii,tommo/gii,tommo/gii,tommo/gii,tommo/gii
a1762b989ac6a650307adc0f7620bfe1609301b7
Mean.lua
Mean.lua
local Mean, parent = torch.class('nn.Mean', 'nn.Module') function Mean:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension end function Mean:updateOutput(input) self.output:mean(input, self.dimension) if self.output:nDimension() > 1 then self.output = self....
local Mean, parent = torch.class('nn.Mean', 'nn.Module') function Mean:__init(dimension) parent.__init(self) dimension = dimension or 1 self.dimension = dimension self._gradInput = torch.Tensor() end function Mean:updateOutput(input) self.output:mean(input, self.dimension) if self.output:nDimension(...
Fix contiguous output bug in nn.Mean
Fix contiguous output bug in nn.Mean
Lua
bsd-3-clause
nicholas-leonard/nn,rotmanmi/nn,douwekiela/nn,kmul00/nn,elbamos/nn,witgo/nn,lukasc-ch/nn,bartvm/nn,xianjiec/nn,eulerreich/nn,Moodstocks/nn,Djabbz/nn,vgire/nn,apaszke/nn,abeschneider/nn,lvdmaaten/nn,noa/nn,EnjoyHacking/nn,diz-vara/nn,PraveerSINGH/nn,PierrotLC/nn,zhangxiangxiao/nn,davidBelanger/nn,Aysegul/nn,eriche2016/n...
0493d7adca89ebe73fafc6b209eb7cb9e7dee5f9
Ndex.lua
Ndex.lua
--[[ This module prints an entry in a list of Pokémon. The interface allow for printing from WikiCode, and expose the class for other modules to use it. Example call from WikiCode: {{#invoke: ndex | list | 396 397 398 487 487O 422E | color = alola }} Takes a list of space separated ndexes and print the relative ent...
--[[ This module prints an entry in a list of Pokémon. The interface allow for printing from WikiCode, and expose the class for other modules to use it. Example call from WikiCode: {{#invoke: ndex | list | 396 397 398 487 487O 422E | color = alola }} Takes a list of space separated ndexes and print the relative ent...
Fixes and improvements to layout
Fixes and improvements to layout
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
8fdb3961907a79c9e8101442238739f4a86b9b3c
examples/cookie.lua
examples/cookie.lua
--- Turbo.lua Cookie usage example -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless requi...
--- Turbo.lua Cookie usage example -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless requi...
Fixed cookie counter example.
Fixed cookie counter example.
Lua
apache-2.0
mniestroj/turbo,kernelsauce/turbo,YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo,zcsteele/turbo,ddysher/turbo,YuanPeir-Chen/turbo-support-mipsel,zcsteele/turbo,luastoned/turbo,ddysher/turbo
874b1ae326c146da1743c2975bddfea4767ef701
mods/beds/api.lua
mods/beds/api.lua
local reverse = true local function destruct_bed(pos, n) local node = minetest.get_node(pos) local other if n == 2 then local dir = minetest.facedir_to_dir(node.param2) other = vector.subtract(pos, dir) elseif n == 1 then local dir = minetest.facedir_to_dir(node.param2) other = vector.add(pos, dir) end ...
local reverse = true local function destruct_bed(pos, n) local node = minetest.get_node(pos) local other if n == 2 then local dir = minetest.facedir_to_dir(node.param2) other = vector.subtract(pos, dir) elseif n == 1 then local dir = minetest.facedir_to_dir(node.param2) other = vector.add(pos, dir) end ...
Beds: Check for buildable_to for bottom half
Beds: Check for buildable_to for bottom half We properly checked top half already, just not the top half target location. Assure both checked positions are not unknown nodes. Fixes #991
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
73e58cec5b6b1f7a5c86b693430bf58cde6a8cda
src/c3_spec.lua
src/c3_spec.lua
require "busted.runner" () local assert = require "luassert" describe ("c3 algorithm implementation", function () it ("can be required", function() assert.has.no.errors (function () require "c3" end) end) it ("can be instantiated", function () assert.has.no.error (function () local C3 ...
require "busted.runner" () local assert = require "luassert" describe ("c3 algorithm implementation", function () it ("can be required", function() assert.has.no.errors (function () require "c3" end) end) it ("can be instantiated", function () assert.has.no.error (function () local C3 ...
Fix test.
Fix test.
Lua
mit
saucisson/lua-c3
9309f35b4ace90f893a52e62bde0b6eb2e6cf83e
src/lib/cltable.lua
src/lib/cltable.lua
module(..., package.seeall) local ffi = require("ffi") local ctable = require("lib.ctable") function build(keys, values) return setmetatable({ keys = keys, values = values }, {__index=get, __newindex=set}) end function new(params) local ctable_params = {} for k,v in _G.pairs(params) d...
module(..., package.seeall) local ffi = require("ffi") local ctable = require("lib.ctable") function build(keys, values) return setmetatable({ keys = keys, values = values }, {__index=get, __newindex=set}) end function new(params) local ctable_params = {} for k,v in _G.pairs(params) d...
Fix cltable removal bug and add tests
Fix cltable removal bug and add tests
Lua
apache-2.0
alexandergall/snabbswitch,Igalia/snabb,Igalia/snabb,dpino/snabbswitch,Igalia/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,heryii/snabb,dpino/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,snabbco/snabb,eugeneia/snabb,Igalia/snabb,dpino/snabb,eugeneia/snabbswitch,eugeneia/snabb,alexandergall/sna...
2b6bf1ae8c154b88d70860cb8b326dfef44d6fc8
src/hs/finalcutpro/main/LibrariesFilmstrip.lua
src/hs/finalcutpro/main/LibrariesFilmstrip.lua
local axutils = require("hs.finalcutpro.axutils") local tools = require("hs.fcpxhacks.modules.tools") local Filmstrip = {} function Filmstrip.matches(element) return element and element:attributeValue("AXIdentifier") == "_NS:33" end function Filmstrip:new(parent) o = {_parent = parent} setmetatable(...
local axutils = require("hs.finalcutpro.axutils") local tools = require("hs.fcpxhacks.modules.tools") local Filmstrip = {} function Filmstrip.matches(element) return element and element:attributeValue("AXIdentifier") == "_NS:33" end function Filmstrip:new(parent) o = {_parent = parent} setmetatable(...
#145 * Fixed bug with updateTitleList when the Libraries browser was in filmstrip mode.
#145 * Fixed bug with updateTitleList when the Libraries browser was in filmstrip mode.
Lua
mit
cailyoung/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost
f0cc87bac9ad89d32d244bf7165f144836a47753
src/commands/fetch.lua
src/commands/fetch.lua
local fetch = { func = function(msg) local f = io.popen("git pull", "r") local s = f:read("*a") f:close() if (s:find("Already up to date")) then bot.sendMessage{ chat_id = msg.chat.id, reply_to_message_id = msg.message_id, ...
local fetch = { func = function(msg) local f = io.popen("cd ~/small-r/Project-Small-R/ && git pull", "r") local s = f:read("*a") f:close() if (s:find("Already up to date")) then bot.sendMessage{ chat_id = msg.chat.id, reply_to_message_id =...
fix(fetch): modified work directory
fix(fetch): modified work directory
Lua
apache-2.0
SJoshua/Project-Small-R
0f8b5ce99eab563afea5e798083e27ce6639fdfc
extension/script/backend/worker/traceback.lua
extension/script/backend/worker/traceback.lua
local rdebug = require 'remotedebug.visitor' local hookmgr = require 'remotedebug.hookmgr' local source = require 'backend.worker.source' local luaver = require 'backend.worker.luaver' local fs = require 'backend.worker.filesystem' local info = {} local function shortsrc(source, maxlen) maxlen = maxlen or 60 ...
local rdebug = require 'remotedebug.visitor' local hookmgr = require 'remotedebug.hookmgr' local source = require 'backend.worker.source' local luaver = require 'backend.worker.luaver' local fs = require 'backend.worker.filesystem' local info = {} local function shortsrc(source, maxlen) maxlen = maxlen or 60 ...
Fixes #109
Fixes #109
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
9c64da40cd781da9bdb09b4342ced12645e5db35
Hydra/API/hotkey.lua
Hydra/API/hotkey.lua
hotkey.keycodes = hotkey._cachekeycodes() --- hotkey.bind(mods, key, fn) -> hotkey --- Shortcut for: return hotkey.new(mods, key, fn):enable() function hotkey.bind(...) return hotkey.new(...):enable() end --- hotkey.disableall() --- Disables all hotkeys; automatically called when user config reloads. function hotke...
hotkey.keycodes = hotkey._cachekeycodes() --- hotkey.bind(mods, key, pressedfn, releasedfn) -> hotkey --- Shortcut for: return hotkey.new(mods, key, pressedfn, releasedfn):enable() function hotkey.bind(...) return hotkey.new(...):enable() end --- hotkey.disableall() --- Disables all hotkeys; automatically called wh...
Fixed docs for hotkey:bind(...)
Fixed docs for hotkey:bind(...)
Lua
mit
wsmith323/hammerspoon,lowne/hammerspoon,Habbie/hammerspoon,trishume/hammerspoon,hypebeast/hammerspoon,knl/hammerspoon,nkgm/hammerspoon,latenitefilms/hammerspoon,knu/hammerspoon,zzamboni/hammerspoon,Habbie/hammerspoon,kkamdooong/hammerspoon,TimVonsee/hammerspoon,Hammerspoon/hammerspoon,ocurr/hammerspoon,nkgm/hammerspoon...
983d737dac425155e5cc4f2594e3e2e7a28ff845
mod_ircd/mod_ircd.lua
mod_ircd/mod_ircd.lua
local irc_listener = { default_port = 6667, default_mode = "*l" }; local sessions = {}; local commands = {}; local nicks = {}; local st = require "util.stanza"; local conference_server = module:get_option("conference_server") or "conference.jabber.org"; local function irc_close_session(session) session.conn:close...
local irc_listener = { default_port = 6667, default_mode = "*l" }; local sessions = {}; local commands = {}; local nicks = {}; local st = require "util.stanza"; local conference_server = module:get_option("conference_server") or "conference.jabber.org"; local function irc_close_session(session) session.conn:close...
mod_ircd: Fixed handling of empty <subject/> elements.
mod_ircd: Fixed handling of empty <subject/> elements.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
487bc7383c0e241f05760cfd86566bea8ee15d67
build/scripts/tools/ndk_server.lua
build/scripts/tools/ndk_server.lua
TOOL.Name = "SDKServer" TOOL.Directory = "../SDK" TOOL.Kind = "Library" TOOL.TargetDirectory = "../SDK/lib" TOOL.Defines = { "NDK_BUILD", "NDK_SERVER" } TOOL.Includes = { "../SDK/include", "../SDK/src" } TOOL.Files = { "../SDK/include/NDK/**.hpp", "../SDK/include/NDK/**.inl", "../SDK/src/NDK/**.hpp", "../SD...
TOOL.Name = "SDKServer" TOOL.Directory = "../SDK" TOOL.Kind = "Library" TOOL.TargetDirectory = "../SDK/lib" TOOL.Defines = { "NDK_BUILD", "NDK_SERVER" } TOOL.Includes = { "../SDK/include", "../SDK/src" } TOOL.Files = { "../SDK/include/NDK/**.hpp", "../SDK/include/NDK/**.inl", "../SDK/src/NDK/**.hpp", "../SD...
Build/NDKServer: Fix dependencies, allowing it to exists in server mode
Build/NDKServer: Fix dependencies, allowing it to exists in server mode Former-commit-id: e917ce65aaea2567e4cb261777f458c3ea8ecdad [formerly a2f437b555af173f06b75f78bfe89ee14de7ba9f] Former-commit-id: 83d69a7152c45f02ae5a344c7f8be574cded2318
Lua
mit
DigitalPulseSoftware/NazaraEngine
ab4a9ad98f4afc290fb5885e7b72d6127044fc18
examples/talking-to-children.lua
examples/talking-to-children.lua
local p = require('lib/utils').prettyPrint local uv = require('luv') local stdout = uv.new_pipe(false) local stderr = uv.new_pipe( false) local stdin = uv.new_pipe(false) local handle, pid local function onexit(code, signal) p("exit", {code=code,signal=signal}) end local function onclose() p("close") end local...
local p = require('lib/utils').prettyPrint local uv = require('luv') local stdout = uv.new_pipe(false) local stderr = uv.new_pipe( false) local stdin = uv.new_pipe(false) local handle, pid local function onexit(code, signal) p("exit", {code=code,signal=signal}) end local function onclose() p("close") end local...
Quick fix for PROCESS_CLEANUP_TEST CI failures (#436)
Quick fix for PROCESS_CLEANUP_TEST CI failures (#436) The problem is that the shutdown callback is being called during loop_gc, so the Lua/Libuv state is being closed/free'd and the `handle` local var has already been closed/free'd so it's no longer a valid uv_stream_t (see https://github.com/luvit/luv/pull/414). T...
Lua
apache-2.0
zhaozg/luv,luvit/luv,luvit/luv,zhaozg/luv
268a79926293370ee1d5fe40081f1f16ce25b3b0
mod_carbons/mod_carbons.lua
mod_carbons/mod_carbons.lua
local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[module.host].sessions; -- TODO merge message handlers into one somehow module:hook...
local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[module.host].sessions; -- TODO merge message handlers into one somehow module:hook...
mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps)
mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps)
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
1a1318622962cfad9dad192b9dcdc5297478e135
cardshifter-core/src/main/resources/com/cardshifter/core/start.lua
cardshifter-core/src/main/resources/com/cardshifter/core/start.lua
-- Always name this function "startGame" function startGame(game) local endturnAction = require "src/main/resources/com/cardshifter/core/actions/player/endturn" game:on('actionUsed', onActionUsed) game:on('turnStart', onTurnStart) local numPlayers = game:getPlayers():size() for i = 0, numPlayers - 1 do loc...
-- Always name this function "startGame" function startGame(game) local endturnAction = require "src/main/resources/com/cardshifter/core/actions/player/endturn" game:on('actionUsed', onActionUsed) game:on('turnStart', onTurnStart) local numPlayers = game:getPlayers():size() for i = 0, numPlayers - 1 do loc...
Player now lose life on each failed draw card. Fixes #13
Player now lose life on each failed draw card. Fixes #13
Lua
apache-2.0
Cardshifter/Cardshifter,June92/Cardshifter,Cardshifter/Cardshifter,June92/Cardshifter,SirPython/Cardshifter,Cardshifter/Cardshifter,June92/Cardshifter,SirPython/Cardshifter,SirPython/Cardshifter
2b5ae24d57072cc0c88fbf2c2ec920e4dcc5bfde
plugins/pwgen.lua
plugins/pwgen.lua
local pwgen = {} local HTTP = require('socket.http') local JSON = require('dkjson') local functions = require('functions') function pwgen:init(configuration) pwgen.command = 'pwgen <length>' pwgen.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('pwgen', true).table pwgen.doc = confi...
local pwgen = {} local HTTP = require('socket.http') local JSON = require('dkjson') local functions = require('functions') function pwgen:init(configuration) pwgen.command = 'pwgen <length>' pwgen.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('pwgen', true).table pwgen.doc = confi...
Fixed a bug
Fixed a bug Solved a bug where an error was returned if the inputted message with /pwgen wasn't numeric
Lua
mit
barreeeiroo/BarrePolice
c32edf0d4acc2d9e22acb6ae6b92b4d7672b1ff3
src/game/StarterPlayer/StarterCharacterScripts/TriggerListening.lua
src/game/StarterPlayer/StarterCharacterScripts/TriggerListening.lua
-- ClassName: LocalScript --[[ Handles client-side trigger setup. This script instantiates all of the ClientTriggers and connects to their events to allow the user to "interact" with the game world by binding actions. Each CharacterTrigger has an associated RemoteEvent it can fire, and the server takes car...
-- ClassName: LocalScript --[[ Handles client-side trigger setup. This script instantiates all of the ClientTriggers and connects to their events to allow the user to "interact" with the game world by binding actions. Each CharacterTrigger has an associated RemoteEvent it can fire, and the server takes car...
Fix last Trigger defining the bound function for all Triggers
Fix last Trigger defining the bound function for all Triggers Since we only set the bound function when setting up the Trigger, this means that the last Trigger in the call SetBoundFunction, overriding all the other Triggers' calls to it. This fixes that by setting the bound function each time a Character enters one ...
Lua
mit
VoxelDavid/echo-ridge
3be0c934ab73d19a1e1fdfaf4e40809ded2354aa
game/scripts/vscripts/items/item_bloodthorn.lua
game/scripts/vscripts/items/item_bloodthorn.lua
item_bloodthorn_baseclass = {} LinkLuaModifier("modifier_item_bloodthorn_arena", "items/item_bloodthorn", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_bloodthorn_arena_silence", "items/item_bloodthorn", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_bloodthorn_arena_crit", "items/item_bloodthorn",...
LinkLuaModifier("modifier_item_bloodthorn_arena", "items/item_bloodthorn", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_bloodthorn_arena_silence", "items/item_bloodthorn", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_bloodthorn_arena_crit", "items/item_bloodthorn", LUA_MODIFIER_MOTION_NONE) ite...
Fixed Bloodthorn 2 not dealt bonus damage
Fixed Bloodthorn 2 not dealt bonus damage
Lua
mit
ark120202/aabs
4ce366470467ef4052c171f02bf5e6fa6e1a5c57
src/plugins/lua/rbl.lua
src/plugins/lua/rbl.lua
local rbls = {} local rspamd_logger = require "rspamd_logger" local function ip_to_rbl(ip, rbl) return table.concat(ip:inversed_str_octets(), ".") .. '.' .. rbl end local function rbl_cb (task) local function rbl_dns_cb(resolver, to_resolve, results, err, key) if results then local thisrbl = nil ...
local rbls = {} local rspamd_logger = require "rspamd_logger" local rspamd_ip = require "rspamd_ip" local function ip_to_rbl(ip, rbl) return table.concat(ip:inversed_str_octets(), ".") .. '.' .. rbl end local function rbl_cb (task) local function rbl_dns_cb(resolver, to_resolve, results, err, key) if results...
Fix helo checks in rbl.lua
Fix helo checks in rbl.lua
Lua
apache-2.0
minaevmike/rspamd,awhitesong/rspamd,andrejzverev/rspamd,amohanta/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,dark-al/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,amohanta/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,awhitesong/rspamd,AlexeySa/rspamd,minaevmike/rspamd,awh...
01377b485f1e5cdc680ee47448d1fa4313f3a8e6
plugins/mod_vcard.lua
plugins/mod_vcard.lua
require "util.datamanager" local datamanager = datamanager; local st = require "util.stanza" local send = require "core.sessionmanager".send_to_session local t_concat, t_insert = table.concat, table.insert; require "util.jid" local jid_split = jid.split; add_iq_handler({"c2s", "s2sin"}, "vcard-temp", function (s...
require "util.datamanager" local datamanager = datamanager; local st = require "util.stanza" local t_concat, t_insert = table.concat, table.insert; require "util.jid" local jid_split = jid.split; add_iq_handler({"c2s", "s2sin"}, "vcard-temp", function (session, stanza) if stanza.tags[1].name == "vCard" then ...
Fix mod_vcard to use session.send for sending stanzas
Fix mod_vcard to use session.send for sending stanzas
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
a60235cfa28bf382b264910230977e5e20c35692
tests/test_lime_config_device.lua
tests/test_lime_config_device.lua
local config = require 'lime.config' local utils = require 'lime.utils' local hw_detection = require 'lime.hardware_detection' local test_utils = require 'tests.utils' -- disable logging in config module config.log = function() end local uci local librerouter_board = test_utils.get_board('librerouter-v1') describe...
local config = require 'lime.config' local network = require 'lime.network' local utils = require 'lime.utils' local hw_detection = require 'lime.hardware_detection' local test_utils = require 'tests.utils' -- disable logging in config module config.log = function() end local uci local librerouter_board = test_util...
tests: fix device test assertion
tests: fix device test assertion the device test was relying in the existence of eth0 in the system.
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
ed3f70805ac0e30bf14f6a5850e873329f5e337c
spec/insulate-expose_spec.lua
spec/insulate-expose_spec.lua
assert.is_nil(package.loaded.pl) assert.is_nil(package.loaded['pl.file']) describe('Tests insulation', function() insulate('environment inside insulate', function() pl = require 'pl' _G.insuated_global = true it('updates insuated global table _G', function() assert.is_not_nil(insuated_global) ...
assert.is_nil(package.loaded.pl) assert.is_nil(package.loaded['pl.file']) describe('Tests insulation', function() insulate('environment inside insulate', function() pl = require 'pl' _G.insuated_global = true it('updates insuated global table _G', function() assert.is_not_nil(insuated_global) ...
Fix failing tests after penlight upgrade
Fix failing tests after penlight upgrade This fixes failing unit tests after upgrading `penlight`. Apparently, the new version of `penlight` uses `pl.List` internally when traversing a directory. Hence, we cannot use `pl.List` in any of the insulation tests.
Lua
mit
Olivine-Labs/busted,o-lim/busted
f60b15aaa33fdf7664773713bc45d218f07b36ab
pud/debug/Console.lua
pud/debug/Console.lua
local Class = require 'lib.hump.class' local Deque = getClass 'pud.kit.Deque' local format = string.format local gprint = love.graphics.print local draw = love.graphics.draw local setRenderTarget = love.graphics.setRenderTarget local rectangle = love.graphics.rectangle local setColor = love.graphics.setColor local set...
local Class = require 'lib.hump.class' local Deque = getClass 'pud.kit.Deque' local format = string.format local gprint = love.graphics.print local draw = love.graphics.draw local setRenderTarget = love.graphics.setRenderTarget local rectangle = love.graphics.rectangle local setColor = love.graphics.setColor local set...
fix bugs
fix bugs
Lua
mit
scottcs/wyx
539c356fb96aba1a4a2a7cc5e2e89388088dc2a9
libs/core/luasrc/model/wireless.lua
libs/core/luasrc/model/wireless.lua
--[[ LuCI - Wireless model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
--[[ LuCI - Wireless model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
libs/core: fixes luci.model.wireless
libs/core: fixes luci.model.wireless
Lua
apache-2.0
8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci
09bc6664e537458416e82397aa37bfb07ad22afd
fusion/core/lexer.lua
fusion/core/lexer.lua
local re = require("re"); local defs = {} defs['true'] = function() return true end defs['false'] = function() return false end defs['bool'] = function(...) return defs[(...)]() end defs['numberify'] = tonumber function defs:transform_binary_expression() table.insert(self, 1, 'expression') self.type = 'binary' re...
local re = require("re"); local defs = {} defs['true'] = function() return true end defs['false'] = function() return false end defs['bool'] = function(...) return defs[(...)]() end defs['numberify'] = tonumber function defs:transform_binary_expression() table.insert(self, 1, 'expression') self.type = 'binary' re...
lexer.lua: fix parsing class fields
lexer.lua: fix parsing class fields
Lua
mit
RyanSquared/FusionScript
a8a4c2bfcb35e72aef89ea4f6179e9d2997908ae
src_trunk/resources/item-system/c_books.lua
src_trunk/resources/item-system/c_books.lua
wBook, buttonClose, buttonPrev, buttonNext, page, cover, pgNumber, xml, pane = nil pageNumber = 0 totalPages = 0 function createBook( bookName, bookTitle ) -- Window variables local Width = 460 local Height = 520 local screenwidth, screenheight = guiGetScreenSize() local X = (screenwidth - Width)/2 ...
wBook, buttonClose, buttonPrev, buttonNext, page, cover, pgNumber, xml, pane = nil pageNumber = 0 totalPages = 0 function createBook( bookName, bookTitle ) -- Window variables local Width = 460 local Height = 520 local screenwidth, screenheight = guiGetScreenSize() local X = (screenwidth - Width)/2 ...
Bug fix for books
Bug fix for books git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@483 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
7f2c14bd494642dd81bab8583d7f9fa78998aba1
App/NevermoreEngine.lua
App/NevermoreEngine.lua
--- Nevermore module loader. -- Used to simply resource loading and networking so a more unified server / client codebased can be used -- @module Nevermore local DEBUG_MODE = false -- Set to true to help identify what libraries have circular dependencies local RunService = game:GetService("RunService") local Replicat...
--- Nevermore module loader. -- Used to simply resource loading and networking so a more unified server / client codebased can be used -- @module Nevermore local DEBUG_MODE = false -- Set to true to help identify what libraries have circular dependencies local RunService = game:GetService("RunService") local Replicat...
Ignore children of module scripts, fix tabbing
Ignore children of module scripts, fix tabbing
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
0dff850318caf3cf0911147136d8e273dce5ab0f
neovim/.config/nvim/ftplugin/markdown.lua
neovim/.config/nvim/ftplugin/markdown.lua
local map = require'utilities'.map -- Enable spell checking. vim.cmd('setlocal spell') -- Default to 4 space indent, as that's the amount that triggers preformatted -- text in markdown. vim.opt.shiftwidth = 4 -- Support code fencing syntax highlighting for the listed languages. vim.g.markdown_fenced_languages = { ...
local map = require'utilities'.map -- Enable spell checking. vim.cmd('setlocal spell') -- Default to 4 space indent, as that's the amount that triggers preformatted -- text in markdown. vim.opt.shiftwidth = 4 -- Support code fencing syntax highlighting for the listed languages. vim.g.markdown_fenced_languages = { ...
Fix markdown todo toggle mapping
Fix markdown todo toggle mapping The mapping function didn't properly check for a string containing the `[x]` todo syntax, instead checking for the literal, meaning the toggle would never work to turn "off" the checkbox. Enhance the mapping by keeping the cursor position the same after the job is done. Use the little...
Lua
mit
bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles
190ecf2331c0956d270fbf0de3d1e967c5ce4881
core/certmanager.lua
core/certmanager.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local configmanager = require "core.configmanager"; local log = require "util.logger".init("certmanager")...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local configmanager = require "core.configmanager"; local log = require "util.logger".init("certmanager")...
certmanager: Fix for working around a bug with LuaSec 0.4.1 that causes it to not honour the 'ciphers' option. This change will apply 0.9's default cipher string for LuaSec 0.4.1 users.
certmanager: Fix for working around a bug with LuaSec 0.4.1 that causes it to not honour the 'ciphers' option. This change will apply 0.9's default cipher string for LuaSec 0.4.1 users.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
e901b16cbcdb5ad0671066e1319af066e8647006
tarantool/tarantool.lua
tarantool/tarantool.lua
box.cfg { pid_file = nil, background = false, log_level = 5 } local function init() space1 = box.schema.space.create('primary_only_index', { if_not_exists = true }) space1:create_index('primary', {type='hash', parts={1, 'unsigned'}, if_not_exists = true}) performanceSpace = box.schema.space.cr...
box.cfg { pid_file = nil, background = false, log_level = 5 } local function init() space1 = box.schema.space.create('primary_only_index', { if_not_exists = true }) space1:create_index('primary', {type='hash', parts={1, 'unsigned'}, if_not_exists = true}) performanceSpace = box.schema.space.cr...
Fix bug
Fix bug
Lua
mit
progaudi/progaudi.tarantool,aensidhe/tarantool-dnx,aensidhe/tarantool-csharp
37ae245f2b69e2483179557d9b03e063e19266a1
libs/web/luasrc/http.lua
libs/web/luasrc/http.lua
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor FileId: $Id$ ToDo: - Cookie handling License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor FileId: $Id$ ToDo: - Cookie handling License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
libs/web: Fixed bug where the environment table gets returned in case of an undefined variable
libs/web: Fixed bug where the environment table gets returned in case of an undefined variable
Lua
apache-2.0
deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci
1115e0143c222a078d1159095e7500cc0a54d182
preprocess/lecunlcn.lua
preprocess/lecunlcn.lua
----------------------------------------------------------------------- --[[ LeCunLCN ]]-- -- Performs Local Contrast Normalization on images -- http://yann.lecun.com/exdb/publis/pdf/jarrett-iccv-09.pdf -- You should probably use dp.GCN before applying LeCunLCN to -- mitigate border effects. ---------------------------...
----------------------------------------------------------------------- --[[ LeCunLCN ]]-- -- Performs Local Contrast Normalization on images -- http://yann.lecun.com/exdb/publis/pdf/jarrett-iccv-09.pdf -- You should probably use dp.GCN before applying LeCunLCN to -- mitigate border effects. ---------------------------...
fixed LecunLCN bug
fixed LecunLCN bug
Lua
bsd-3-clause
sagarwaghmare69/dp,nicholas-leonard/dp,jnhwkim/dp,eulerreich/dp,rickyHong/dptorchLib,kracwarlock/dp,fiskio/dp
9919e4ff269bbeaaa02b38c3f9f5d14a61a166a3
Interface/AddOns/RayUI/modules/misc/merchant.lua
Interface/AddOns/RayUI/modules/misc/merchant.lua
local R, L, P = unpack(select(2, ...)) --Inport: Engine, Locales, ProfileDB local M = R:GetModule("Misc") local function LoadFunc() if not M.db.merchant then return end local poisons = { [6947] = 20, --速效 [3775] = 20, --减速 -- [5237] = 20, --麻痹 [2892] = 20, --致命 [10918] = 20, --致伤 } local f = Create...
local R, L, P = unpack(select(2, ...)) --Inport: Engine, Locales, ProfileDB local M = R:GetModule("Misc") local function LoadFunc() if not M.db.merchant then return end local poisons = { [6947] = 20, --速效 [3775] = 20, --减速 -- [5237] = 20, --麻痹 [2892] = 20, --致命 [10918] = 20, --致伤 } local f = Create...
修复一个自动卖垃圾可能引起的bug
修复一个自动卖垃圾可能引起的bug
Lua
mit
fgprodigal/RayUI
d297969c7cf6e87e8c618c0310a9eaf9c83cac28
ssbase/gamemode/cl_init.lua
ssbase/gamemode/cl_init.lua
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- include("player_class/player_ssbase.lua") include("shared.lua") include("sh_library.lua") include("sh_profiles.lua") include("sh_store.lua") include("cl_scoreboard.lua") include("cl_store.lu...
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- include("player_class/player_ssbase.lua") include("shared.lua") include("sh_library.lua") include("sh_profiles.lua") include("sh_store.lua") include("cl_scoreboard.lua") include("cl_store.lu...
Blur fix and store background update
Blur fix and store background update
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
12f65f155130d2e725ff8f2096189e3ed46fd105
mod_muc_intercom/mod_muc_intercom.lua
mod_muc_intercom/mod_muc_intercom.lua
-- Relay messages between rooms -- By Kim Alvefur <zash@zash.se> local host_session = prosody.hosts[module.host]; local st_msg = require "util.stanza".message; local jid = require "util.jid"; function check_message(data) local origin, stanza = data.origin, data.stanza; local muc_rooms = host_session.muc and host_se...
-- Relay messages between rooms -- By Kim Alvefur <zash@zash.se> local host_session = prosody.hosts[module.host]; local st_msg = require "util.stanza".message; local jid = require "util.jid"; function check_message(data) local origin, stanza = data.origin, data.stanza; local muc_rooms = host_session.muc and host_se...
mod_muc_intercom: Fix traceback on topic changes
mod_muc_intercom: Fix traceback on topic changes
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
b26fb438e149ac6c3cd19e607f1698d6144c5d07
genie/engine.lua
genie/engine.lua
-- -- Copyright (c) 2015 Jonathan Howard. -- function engine_project( _name, _kind, _defines ) project ( _name ) kind (_kind) includedirs { ENG_DIR .. "src/", BGFX_DIR .. "examples/common" } defines { _defines } links { "example-common", "...
-- -- Copyright (c) 2015 Jonathan Howard. -- function engine_project( _name, _kind, _defines ) project ( _name ) kind (_kind) includedirs { ENG_DIR .. "src/", BGFX_DIR .. "examples/common" } defines { _defines } links { "example-common", "...
fixes libluajit on OS X
fixes libluajit on OS X
Lua
mit
v3n/altertum,NathanaelThompson/altertum,NathanaelThompson/altertum,v3n/altertum,NathanaelThompson/altertum,v3n/altertum
b71bb5d525dd38a6d4e0991064f6c243f666bb2e
packages/lime-proto-bmx6/src/bmx6.lua
packages/lime-proto-bmx6/src/bmx6.lua
#!/usr/bin/lua local network = require("lime.network") local config = require("lime.config") local fs = require("nixio.fs") local libuci = require("uci") local wireless = require("lime.wireless") bmx6 = {} function bmx6.setup_interface(ifname, args) if ifname:match("^wlan%d.ap") then return end vlanId = args[2] or...
#!/usr/bin/lua local network = require("lime.network") local config = require("lime.config") local fs = require("nixio.fs") local libuci = require("uci") local wireless = require("lime.wireless") bmx6 = {} function bmx6.setup_interface(ifname, args) if ifname:match("^wlan%d.ap") then return end vlanId = args[2] or...
lime-proto-bmx6: simplify bmx6 config, merge local[4|6] tunIns into tun[4|6]Address
lime-proto-bmx6: simplify bmx6 config, merge local[4|6] tunIns into tun[4|6]Address bmx6 automatically announces the correspondent tunIn if tunXAddress is a network (/64) rather than a host (/128). So it's better to not announce specific host routes, since this creates many extra routes and tunnels which clutter up th...
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages
b20690f5501ff1adf2459e13e942f3e570b177d7
packages/tate.lua
packages/tate.lua
-- Japaneese language support defines units which are useful here SILE.languageSupport.loadLanguage("ja") SILE.tateFramePrototype = pl.class({ _base = SILE.framePrototype, direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter SILE.typesetter.leadin...
-- Japaneese language support defines units which are useful here SILE.languageSupport.loadLanguage("ja") SILE.tateFramePrototype = pl.class({ _base = SILE.framePrototype, direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter SILE.typesetter.leadin...
fix(packages): Turn off complex flag for items in \latin-in-tate
fix(packages): Turn off complex flag for items in \latin-in-tate Arguably breaks vertical Arabic in Japanese, but to be fair it was broken already.
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
3aa2c680a277ad222fc8d0f16d0bef449801445f
Modules/qGUI/Compass/ICompass.lua
Modules/qGUI/Compass/ICompass.lua
local ICompass = {} ICompass.__index = ICompass ICompass.ClassName = "ICompass" ICompass.PercentSolid = 0.8 ICompass.ThetaVisible = math.pi/2 --- Provides a basis for the compass GUI. Invidiual CompassElements handle -- the positioning. -- @author Quenty function ICompass.new(CompassModel, Container) --- Makes a sk...
local ICompass = {} ICompass.__index = ICompass ICompass.ClassName = "ICompass" ICompass.PercentSolid = 0.8 ICompass.ThetaVisible = math.pi/2 --- Provides a basis for the compass GUI. Invidiual CompassElements handle -- the positioning. -- @author Quenty function ICompass.new(CompassModel, Container) --- Makes a sk...
tostring --> tonumber glitch fix, added rotation support
tostring --> tonumber glitch fix, added rotation support
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
02048eba958ab5ff2bf03497aeceea6f47f37bca
lua/LUA/spec/eep/EepSimulator_spec.lua
lua/LUA/spec/eep/EepSimulator_spec.lua
describe("EepFunktionen.lua", function() insulate("EEPVer", function() require("ak.core.eep.AkEepFunktionen") it("EEPVer has value \"15\"", function() assert.are.equals(15, EEPVer) end) end) insulate("clearlog", function() require("ak.core.eep.AkEepFunktionen") it("clearlog(...
describe("EepFunktionen.lua", function() insulate("EEPVer", function() require("ak.core.eep.AkEepFunktionen") it("EEPVer has value \"15\"", function() assert.are.equals(15, EEPVer) end) end) insulate("clearlog", function() require("ak.core.eep.AkEepFunktionen") it("clearlog(...
fix test description
fix test description
Lua
mit
Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep
3f2fc57a07bb9e658f4d53ccc60ba8177e3f1236
src/dns.resolvers.lua
src/dns.resolvers.lua
local loader = function(loader, ...) local resolver = require"cqueues.dns.resolver" local config = require"cqueues.dns.config" local condition = require"cqueues.condition" local monotime = require"cqueues".monotime local random = require"cqueues.dns".random local errno = require"cqueues.errno" local ETIMEDOUT = ...
local loader = function(loader, ...) local resolver = require"cqueues.dns.resolver" local config = require"cqueues.dns.config" local condition = require"cqueues.condition" local monotime = require"cqueues".monotime local random = require"cqueues.dns".random local errno = require"cqueues.errno" local ETIMEDOUT = ...
refactor new hook creation so we can test buggy and fixed behavior from a unit test
refactor new hook creation so we can test buggy and fixed behavior from a unit test
Lua
mit
wahern/cqueues,bigcrush/cqueues,daurnimator/cqueues,daurnimator/cqueues,wahern/cqueues,bigcrush/cqueues
b20447b743f0fa259a05e6ecb9e3aa6e6988cd73
lua/entities/gmod_wire_egp_emitter.lua
lua/entities/gmod_wire_egp_emitter.lua
AddCSLuaFile() DEFINE_BASECLASS( "gmod_wire_egp" ) ENT.PrintName = "Wire E2 Graphics Processor Emitter" ENT.WireDebugName = "E2 Graphics Processor Emitter" ENT.RenderGroup = RENDERGROUP_BOTH ENT.gmod_wire_egp_emitter = true local DrawOffsetPos = Vector(0, 0, 71) local DrawOffsetAng = Angle(0, 0, 90) local Dr...
AddCSLuaFile() DEFINE_BASECLASS( "gmod_wire_egp" ) ENT.PrintName = "Wire E2 Graphics Processor Emitter" ENT.WireDebugName = "E2 Graphics Processor Emitter" ENT.RenderGroup = RENDERGROUP_BOTH ENT.gmod_wire_egp_emitter = true local DrawOffsetPos = Vector(0, 0, 71) local DrawOffsetAng = Angle(0, 0, 90) local Dr...
fixed emitters missing rendertable
fixed emitters missing rendertable
Lua
apache-2.0
dvdvideo1234/wire,garrysmodlua/wire,wiremod/wire,sammyt291/wire,NezzKryptic/Wire,Grocel/wire
cbbdeedaccc6a241e82114627f407d8014a0d41c
lua/entities/gmod_wire_nailer/init.lua
lua/entities/gmod_wire_nailer/init.lua
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Nailer" function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateInputs(self.E...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Nailer" function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire_CreateInputs(self.E...
Fixed nailer exploit.
Fixed nailer exploit.
Lua
apache-2.0
garrysmodlua/wire,notcake/wire,mms92/wire,bigdogmat/wire,NezzKryptic/Wire,plinkopenguin/wiremod,rafradek/wire,Grocel/wire,thegrb93/wire,mitterdoo/wire,Python1320/wire,sammyt291/wire,dvdvideo1234/wire,immibis/wiremod,CaptainPRICE/wire,wiremod/wire
b968820cd25a18a748412f0005c48d15901ae744
Peripherals/Audio/ctunethread.lua
Peripherals/Audio/ctunethread.lua
--Chiptune Thread local chIn = ... require("love.audio") require("love.sound") require("love.timer") local QSource = require("Peripherals.Audio.QueueableSource") local qs = QSource:new() local rate = 44100 local buffer_size = rate/4 local sleeptime = 0.9/(rate/buffer_size) local wave, freq, amp local waves = {} ...
--Chiptune Thread local chIn = ... require("love.audio") require("love.sound") require("love.timer") local QSource = require("Peripherals.Audio.QueueableSource") local qs = QSource:new() local rate = 44100 local buffer_size = rate/4 local sleeptime = 0.9/(rate/buffer_size) local wave, freq, amp, gen local waves ...
Got rid of the pops and fixed square wave
Got rid of the pops and fixed square wave Former-commit-id: a6cd35c8077c81cd49327d9decd6dd05e0002194
Lua
mit
RamiLego4Game/LIKO-12
f36259a31645fc55bab06d9c358d952233bad3de
busted/execute.lua
busted/execute.lua
local shuffle = require 'busted.utils'.shuffle local urandom = require 'busted.utils'.urandom local tablex = require 'pl.tablex' local function sort(elements) table.sort(elements, function(t1, t2) if t1.name and t2.name then return t1.name < t2.name end return t2.name ~= nil end) return element...
local shuffle = require 'busted.utils'.shuffle local urandom = require 'busted.utils'.urandom local tablex = require 'pl.tablex' local function sort(elements) table.sort(elements, function(t1, t2) if t1.name and t2.name then return t1.name < t2.name end return t2.name ~= nil end) return element...
Fix the random seed sent to suite start
Fix the random seed sent to suite start The random seed being sent to suite start is incorrect when multiple runs are requested. In such cases, the seed passed to suite start is actually the seed for the previous run and not the current run. This change passes to suite start the random seed being used for the current ...
Lua
mit
Olivine-Labs/busted,o-lim/busted
e712c80c25006ee483a3547f4b07f3b678c7f153
vrp/modules/emotes.lua
vrp/modules/emotes.lua
-- this module define the emotes menu local cfg = module("cfg/emotes") local lang = vRP.lang local emotes = cfg.emotes -- clear current emotes menu[lang.emotes.clear.title()] = {function(player,choice) vRPclient.stopAnim(player,{true}) -- upper vRPclient.stopAnim(player,{false}) -- full end, lang.emotes.clear.d...
-- this module define the emotes menu local cfg = module("cfg/emotes") local lang = vRP.lang local emotes = cfg.emotes local function ch_emote(player,choice) local emote = emotes[choice] if emote then vRPclient.playAnim(player,{emote[1],emote[2],emote[3]}) end end -- add emotes menu to main menu vRP.reg...
Fix emote issue.
Fix emote issue.
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
8c97711147f478710d4a9c800bbdaea506bc4b98
nyagos.d/aliases.lua
nyagos.d/aliases.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.lua_e=function(args) if #args >= 1 then local ok,err =loadstring(args[1]) if not ok then io.stderr:write(err,"\n") end end end nyagos.alias.lua_f=function(args...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.lua_e=function(args) if #args >= 1 then local f,err =loadstring(args[1]) if f then f() else io.stderr:write(err,"\n") end end end nyagos....
Fix lua_e broken (bug only snapshot)
Fix lua_e broken (bug only snapshot)
Lua
bsd-3-clause
zetamatta/nyagos,nocd5/nyagos,tsuyoshicho/nyagos
b9f2331921ef3f6eb91d600754f6d1f85475c093
share/lua/website/funnyordie.lua
share/lua/website/funnyordie.lua
-- libquvi-scripts -- Copyright (C) 2011 Toni Gundogdu -- Copyright (C) 2010 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...
-- libquvi-scripts -- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2010 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 Publi...
FIX: website/funnyordie.lua: media stream URL pattern
FIX: website/funnyordie.lua: media stream URL pattern * Conform to the standard media property error messages * Fix the pattern for the media stream URLs * Update the pattern for the "quality" and the "container" * Both FunnyOrDie.choose_{best,default} now return the first stream Signed-off-by: Toni Gundogdu <eac2284...
Lua
agpl-3.0
alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts
31da259b658bd268f5163b5f471dbae31d3f94b1
lunaci/Cache.lua
lunaci/Cache.lua
module("lunaci.Cache", package.seeall) local log = require "lunaci.log" local config = require "lunaci.config" local pl = require "pl.import_into"() local Cache = {} Cache.__index = Cache setmetatable(Cache, { __call = function(self) local self = setmetatable({}, Cache) self.manifest = nil self.targets...
module("lunaci.Cache", package.seeall) local log = require "lunaci.log" local utils = require "lunaci.utils" local config = require "lunaci.config" local pl = require "pl.import_into"() local Cache = {} Cache.__index = Cache setmetatable(Cache, { __call = function(self) local self = setmetatable({}, Cache) ...
Cache: fix caching latest versions and add caching of latest rockspecs
Cache: fix caching latest versions and add caching of latest rockspecs
Lua
mit
smasty/LunaCI,smasty/LunaCI
203b5a638bcd0bd6ecded02b31d8dc9cb04c5861
nvim/lua/ryankoval/neotree.lua
nvim/lua/ryankoval/neotree.lua
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) require('neo-tree').setup({ close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab popup_border_style = 'rounded', enable_git_status = true, enable_diagnostics = true, default_component_configs = { container = { ...
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) require('neo-tree').setup({ close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab popup_border_style = 'rounded', enable_git_status = true, enable_diagnostics = true, default_component_configs = { container = { ...
fixed neotree mappings
fixed neotree mappings
Lua
mit
rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles
8d0f8a504b59c1ce93fa5224a5becfcd91d03fcd
Peripherals/Keyboard.lua
Peripherals/Keyboard.lua
local events = require("Engine.events") return function(config) --A function that creates a new Keyboard peripheral. if config._SpaceWalkthrough then events.register("love:keypressed",function(key,sc,isrepeat) if key == "space" then events.trigger("love:textinput"," ") end end) end ...
local events = require("Engine.events") return function(config) --A function that creates a new Keyboard peripheral. local OSX = (love.system.getOS() == "OS X") if config._SpaceWalkthrough then events.register("love:keypressed",function(key,sc,isrepeat) if key == "space" then events.trigger("lo...
Keyboard Alias OSX (#212)
Keyboard Alias OSX (#212) When on OSX, the Cmd key will now trigger Ctrl keypresses and keyreleases in addition to Cmd ones. isDown will also check for rgui/lgui (Cmd keys) when rctrl/lctrl is requested (Ctrl keys) using a fast short-circuit mechanic where the first truthy value is returned before continue checking...
Lua
mit
RamiLego4Game/LIKO-12
7ad5547d14fd3a2d5e5e47702b6abf416e36e6d3
spec/server_ev_spec.lua
spec/server_ev_spec.lua
require'busted' package.path = package.path..'../src' local server = require'websocket.server' local client = require'websocket.client' local ev = require'ev' local port = os.getenv('LUAWS_PORT') or 8081 describe( 'The server (ev) module', function() local s it( 'exposes the correct interface...
require'busted' package.path = package.path..'../src' local server = require'websocket.server' local client = require'websocket.client' local ev = require'ev' local port = os.getenv('LUAWS_PORT') or 8081 describe( 'The server (ev) module', function() local s it( 'exposes the correct interface...
fix connection close order
fix connection close order
Lua
mit
lipp/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,enginix/lua-websockets,enginix/lua-websockets
14dc77d00f5a68272b374896633d35b6d8df79df
scripts/autocomplete.lua
scripts/autocomplete.lua
require 'misc' doubleTab = doubleTab or {} keywords = keywords or valuesToKeys { 'and', 'break', 'do', 'else', 'elseif', 'end', 'false', 'for', 'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat', 'return', 't...
require 'misc' doubleTab = doubleTab or {} keywords = keywords or valuesToKeys { 'and', 'break', 'do', 'else', 'elseif', 'end', 'false', 'for', 'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat', 'return', 't...
Fix auto complete for sub-tables.
Fix auto complete for sub-tables.
Lua
mit
merlinblack/oyunum,merlinblack/oyunum,merlinblack/oyunum,merlinblack/oyunum
e8e58814b1c511396589846ed3f7cb57a3222d48
src/i18n.lua
src/i18n.lua
local _M = {} _M['translate'] = function (sentence) local ret local lang_code = _G.languageEnv or 'zh-cn' local tranelem = bamboo.i18n[sentence] if tranelem then ret = bamboo.i18n[sentence][lang_code] end if ret then return ret else return sentence end end ...
local _M = {} _M['translate'] = function (sentence) local ret local lang_code = _G.languageEnv or 'zh-cn' local tranelem = bamboo.i18n[sentence] if tranelem then ret = bamboo.i18n[sentence][lang_code] end if ret then return ret else return sentence end end ...
fix a bug in i18n.
fix a bug in i18n. Signed-off-by: root <dc76e9f0c0006e8f919e0c515c66dbba3982f785@test.mobilechat.im>
Lua
bsd-3-clause
daogangtang/bamboo,daogangtang/bamboo
4833316ae55dfd8ed79c39ae677b43a374a227c3
src/plugins/finalcutpro/menu/menuaction.lua
src/plugins/finalcutpro/menu/menuaction.lua
--- === plugins.finalcutpro.menu.menuaction === --- --- A `action` which will trigger an Final Cut Pro menu with a matching path, if available/enabled. --- Registers itself with the `plugins.core.actions.actionmanager`. local require = require local fnutils = require("hs.fnutils") local image = ...
--- === plugins.finalcutpro.menu.menuaction === --- --- A `action` which will trigger an Final Cut Pro menu with a matching path, if available/enabled. --- Registers itself with the `plugins.core.actions.actionmanager`. local require = require local fnutils = require("hs.fnutils") local image = ...
Bug Fix
Bug Fix - Removed unnecessary line of code
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
cda2fc60d808ab1f51bb3fd560623da6cfbca18e
src/lpeg.lua
src/lpeg.lua
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local unpack = unpack or table.unpack local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't suppor...
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local unpack = unpack or table.unpack local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't suppor...
lpeg wrapper: fix metamethod selector
lpeg wrapper: fix metamethod selector
Lua
mit
starius/lpjit,starius/lpjit
84962c647f8a8d487e6e574bf3278fdb28af4d43
.config/awesome/widgets/brightness.lua
.config/awesome/widgets/brightness.lua
local awful = require("awful") local wibox = require("wibox") local M = {} function M.getBrightness() return tonumber(awful.util.pread("xbacklight -get")) end function M.changeBrightness(x) awful.util.pread("xbacklight -inc " .. tostring(x)) end function M.update(reg) -- reg.callback(reg.widget, M.getBr...
local awful = require("awful") local wibox = require("wibox") local M = {} function M.getBrightness(device) -- xbacklight causes lags -- return tonumber(awful.util.pread("xbacklight -get")) return tonumber(awful.util.pread("cat /sys/class/backlight/" .. device .. "/brightness")) / 10 end function M.chang...
Fix periodic lags caused by xbacklight
Fix periodic lags caused by xbacklight Seems like some update broke/changed something that causes xbacklight to produce a short screen freeze when called. To work around this issue the brightness value from /sys is used for polling.
Lua
mit
mphe/dotfiles,mphe/dotfiles,mall0c/dotfiles,mphe/dotfiles,mphe/dotfiles,mphe/dotfiles,mphe/dotfiles,mall0c/dotfiles
ff32468c7f565660c122dccc119c8e29673604c8
Shilke2D/Utils/XmlNode.lua
Shilke2D/Utils/XmlNode.lua
--[[--- XmlNode is an helper class to work with xmls. A XmlNode object has a name, a value, attributes, children nodes and a father. An XmlNode without a father is a root node. It's possible to convert product of XmlParser into an XmlNode. It's also possible to add / remove children and attributes from a node. --]] Xml...
--[[--- XmlNode is an helper class to work with xmls. A XmlNode object has a name, a value, attributes, children nodes and a father. An XmlNode without a father is a root node. It's possible to convert product of XmlParser into an XmlNode. It's also possible to add / remove children and attributes from a node. --]] Xml...
Fix bug in XmlNode that lead to duplicated nodes
Fix bug in XmlNode that lead to duplicated nodes
Lua
mit
Shrike78/Shilke2D
5b5aa493b5c9e30949585e29db4be249462ab756
mods/boats/init.lua
mods/boats/init.lua
-- -- Helper functions -- local function is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end local function get_sign(i) if i == 0 then return 0 else return i / math.abs(i) end end local function get_velocity(v, yaw, y) local x = -math.sin(yaw) * v loc...
-- -- Helper functions -- local function is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end local function get_sign(i) if i == 0 then return 0 else return i / math.abs(i) end end local function get_velocity(v, yaw, y) local x = -math.sin(yaw) * v loc...
Fix boat flying up and some tweaks
Fix boat flying up and some tweaks
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy