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
491960586a7b917a21817efe3d31228d7114ae2c
share/lua/website/liveleak.lua
share/lua/website/liveleak.lua
-- libquvi-scripts -- Copyright (C) 2010-2011 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
-- libquvi-scripts -- Copyright (C) 2010-2011 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
FIX: liveleak.lua: attempt to index field 'path' (nil)
FIX: liveleak.lua: attempt to index field 'path' (nil)
Lua
lgpl-2.1
hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts
3544b1a45ba0cb61670126d380b7daed99b92740
Resources/Scripts/Modules/Physics.lua
Resources/Scripts/Modules/Physics.lua
import('Math') import('PrintRecursive') Physics = { system = { gravity, gravityIsLoc, gravityMass }, -- this is quite static'd up, to use a Java term GRAVITY = 6.6742e-11, ID = 0, NewSystem = function(gravity, gravityIsLoc, gravityMass) Physics.system.gravity = gravity or vec(0, 0) ...
import('Math') import('PrintRecursive') Physics = { system = { gravity, gravityIsLoc, gravityMass }, -- this is quite static'd up, to use a Java term GRAVITY = 6.6742e-11, ID = 0, NewSystem = function(gravity, gravityIsLoc, gravityMass) Physics.system.gravity = gravity or vec(0, 0) ...
Fixed physics.
Fixed physics. Signed-off-by: Adam Hintz <2a5b6ddc0100a26b7bc181646061a53d90f3e753@gmail.com>
Lua
mit
prophile/xsera,prophile/xsera,prophile/xsera,prophile/xsera,adam000/xsera,adam000/xsera,adam000/xsera,prophile/xsera,adam000/xsera
f41709fa12890c9d7bb7e590ededa3efe3d02acb
scripts/toolchain.lua
scripts/toolchain.lua
function toolchain(_buildDir, _libDir) newoption { trigger = "gcc", value = "GCC", description = "Choose GCC flavor", allowed = { { "linux-gcc", "Linux (GCC compiler)" }, { "linux-clang", "Linux (Clang compiler)" }, }, } newoption { trigger = "xcode", value = "xcode_target",...
function toolchain(_buildDir, _libDir) newoption { trigger = "gcc", value = "GCC", description = "Choose GCC flavor", allowed = { { "linux-gcc", "Linux (GCC compiler)" }, { "linux-clang", "Linux (Clang compiler)" }, }, } newoption { trigger = "xcode", value = "xcode_target",...
Fix clang coverage build options
Fix clang coverage build options
Lua
mit
MikePopoloski/slang,MikePopoloski/slang
43ab7fd0c6972da40ac7c19f2270a75d1d75ed10
scripts/autocomplete.lua
scripts/autocomplete.lua
doubleTab = doubleTab or {} function autoComplete( str ) local prefixend = string.find( str:reverse(), '[() %[%]=+/,%%]' ) local prefix = '' local posibles if prefixend then prefix = string.sub( str, 1, #str - prefixend + 1 ) str = string.sub( str, #str - prefixend + 2 ) end s...
doubleTab = doubleTab or {} function autoComplete( str ) local prefixend = string.find( str:reverse(), '[() %[%]=+/,%%]' ) local prefix = '' local posibles if prefixend then prefix = string.sub( str, 1, #str - prefixend + 1 ) str = string.sub( str, #str - prefixend + 2 ) end s...
Fix autoComplete double ups
Fix autoComplete double ups
Lua
mit
merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed
2cb7a91bf266680266de51636ce6620cbecc9362
xmake/core/base/privilege.lua
xmake/core/base/privilege.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 privilege
fix privilege
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake
7c7b6f4ba94c499bea4065e1e6b250f44a7fa0d3
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local http = require("luci.http") local trmiface = uci:get("travelmate", "global", "trm_iface") or ...
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local http = require("luci.http") local trmiface = uci:get("travelmate", "global", "trm_iface") or ...
luci-app-travelmate: bring back cbi element to wifi_add.lua
luci-app-travelmate: bring back cbi element to wifi_add.lua * b00b676 fixed the cbi initialization for SimpleForm, therefore bring back "Ignore BSSID" flag with dependent input field Signed-off-by: Dirk Brenken <34c6fceca75e456f25e7e99531e2425c6c1de443@brenken.org>
Lua
apache-2.0
kuoruan/lede-luci,kuoruan/lede-luci,981213/luci-1,hnyman/luci,nmav/luci,openwrt-es/openwrt-luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,nmav/luci,rogerpueyo/luci,kuoruan/luci,nmav/luci,kuoruan/luci,hnyman/luci,chris5560/openwrt-luci,openwrt-es/openwrt-luci,rogerpueyo/luci,wongsyrone/luci-1,wongsyrone/luci-1,chris55...
7d486e88c2b3301449974e0e97168bc0f0fd6c64
xmake/rules/qt/moc.lua
xmake/rules/qt/moc.lua
--!A cross-platform 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 Apach...
--!A cross-platform 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 Apach...
fix moc bug
fix moc bug
Lua
apache-2.0
tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake
1ba1717e76f402b561bae0ab0e56fa6e7b605941
wyx/event/EventManager.lua
wyx/event/EventManager.lua
local Class = require 'lib.hump.class' -- EventManager -- Provides a class that registers objects with itself, then notifies -- those object when events occur. local Event = getClass 'wyx.event.Event' local eventsMT = {__mode = 'k'} local format = string.format -- EventManager class local EventManager = Class{name='...
local Class = require 'lib.hump.class' -- EventManager -- Provides a class that registers objects with itself, then notifies -- those object when events occur. local Event = getClass 'wyx.event.Event' local eventsMT = {__mode = 'k'} local format = string.format -- EventManager class local EventManager = Class{name='...
fix EventManager to stop notifying if cleared
fix EventManager to stop notifying if cleared
Lua
mit
scottcs/wyx
54b5071df907b8c9d35a0ec356c673701a3c6025
packages/parallel/init.lua
packages/parallel/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "parallel" local typesetterPool = {} local calculations = {} local folioOrder = {} local allTypesetters = function (callback) local oldtypesetter = SILE.typesetter for frame, typesetter in pairs(typesetterPool) do SILE.types...
local base = require("packages.base") local package = pl.class(base) package._name = "parallel" local typesetterPool = {} local calculations = {} local folioOrder = {} local allTypesetters = function (callback) local oldtypesetter = SILE.typesetter for frame, typesetter in pairs(typesetterPool) do SILE.types...
fix(packages): Check for user supplied commands before setting noops
fix(packages): Check for user supplied commands before setting noops Blindly setting a dummy command "to be overridden" by the user without checking if they already set one first is very frustrating to use. In particular it makes it very hard to write a class that provides these commands because class init stuff happe...
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
a0eb7a42b9ba93338a076d74530aabe5dda493cb
demos/8vb/main.lua
demos/8vb/main.lua
-- 8vb -- A shooter game to demo Modipulate require('modipulate') require('AnAL') -- Constants Direction = { NONE = 0, LEFT = 1, RIGHT = 2 } SHIP_SPEED = 4 ENEMY_SPEED = 4 LASER_SPEED = 6 LOW_NOTE = 50 HIGH_NOTE = 70 EVIL_INSTRUMENT = 2 -- Direction we're moving in. dir = Direction.NONE ---- Modipulate callbacks...
-- 8vb -- A shooter game to demo Modipulate require('modipulate') require('AnAL') -- Constants Direction = { NONE = 0, LEFT = 1, RIGHT = 2 } SHIP_SPEED = 4 ENEMY_SPEED = 4 LASER_SPEED = 6 LOW_NOTE = 85 HIGH_NOTE = 92 EVIL_INSTRUMENT = 2 -- Direction we're moving in. dir = Direction.NONE ---- Modipulate callbacks...
Fixed minor conflict... ?
Fixed minor conflict... ?
Lua
bsd-3-clause
MrEricSir/Modipulate,MrEricSir/Modipulate
820121252fe99212f366940dd51b851b8991bd8f
AceComm-3.0/AceComm-3.0.lua
AceComm-3.0/AceComm-3.0.lua
--[[ $Id$ ]] --[[ AceComm-3.0 proof-of-concept ]] local MAJOR, MINOR = "AceComm-3.0", 0 local AceComm, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceComm then return end local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0") local CTL = ChatThrottleLib local single_prio = "NORMAL" local multip...
--[[ $Id$ ]] --[[ AceComm-3.0 proof-of-concept ]] local MAJOR, MINOR = "AceComm-3.0", 0 local AceComm, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceComm then return end local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0") local CTL = ChatThrottleLib local single_prio = "NORMAL" local multip...
Ace3: * AceComm-3.0 - ignore out-of-sequence data. - re-added error since it's not reached unless self.__prefixes has bad data.
Ace3: * AceComm-3.0 - ignore out-of-sequence data. - re-added error since it's not reached unless self.__prefixes has bad data. git-svn-id: d324031ee001e5fbb202928c503a4bc65708d41c@314 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
9ee54ed727fe5f48e280a707c8f0484db5be710b
src/lua/sancus/template/generator.lua
src/lua/sancus/template/generator.lua
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local lpeg = assert(require"lpeg") local P,R,S,V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local C,Cc,Cg,Ct,Cp = lpeg.C, lpeg.Cc, lpeg.Cg, lpeg.Ct, lpeg.Cp local a...
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local lpeg = assert(require"lpeg") local P,R,S,V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local C,Cc,Cg,Ct,Cp = lpeg.C, lpeg.Cc, lpeg.Cg, lpeg.Ct, lpeg.Cp local a...
generator: parser: fix code catch
generator: parser: fix code catch
Lua
bsd-2-clause
sancus-project/sancus-lua-template
c9e3a36811a70e8b9954eacc00ca43f983c74bd6
busted/core.lua
busted/core.lua
local getfenv = require 'busted.compatibility'.getfenv local setfenv = require 'busted.compatibility'.setfenv local unpack = require 'busted.compatibility'.unpack local pretty = require 'pl.pretty' local throw = error local failureMt = { __index = {}, __tostring = function(e) return tostring(e.message) end, __ty...
local getfenv = require 'busted.compatibility'.getfenv local setfenv = require 'busted.compatibility'.setfenv local unpack = require 'busted.compatibility'.unpack local pretty = require 'pl.pretty' local throw = error local failureMt = { __index = {}, __tostring = function(e) return tostring(e.message) end, __ty...
Fix error level reporting
Fix error level reporting
Lua
mit
sobrinho/busted,Olivine-Labs/busted,DorianGray/busted,xyliuke/busted,istr/busted,ryanplusplus/busted,leafo/busted,o-lim/busted,mpeterv/busted,nehz/busted
ee85b3b76b38abc65a744e30ef4b505e5a9f9456
libs/core/luasrc/model/network/wireless.lua
libs/core/luasrc/model/network/wireless.lua
--[[ LuCI - Network model - Wireless extension 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...
--[[ LuCI - Network model - Wireless extension 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...
libs/core: i18n fixes for wds mode
libs/core: i18n fixes for wds mode
Lua
apache-2.0
taiha/luci,hnyman/luci,male-puppies/luci,ff94315/luci-1,nwf/openwrt-luci,taiha/luci,ReclaimYourPrivacy/cloak-luci,MinFu/luci,RedSnake64/openwrt-luci-packages,fkooman/luci,nwf/openwrt-luci,ff94315/luci-1,male-puppies/luci,obsy/luci,fkooman/luci,joaofvieira/luci,jchuang1977/luci-1,kuoruan/luci,openwrt-es/openwrt-luci,lcf...
32a40076be36b8005883b9b864a3c93e2203219f
premake4.lua
premake4.lua
--[[ DAGON An Adventure Game Engine This is a fairly basic Premake configuration that generates project files for your preferred build system. Premake may be downloaded from the following site: http://industriousone.com/premake Usage is as simple as typing 'premake4 [action]'. Because this Premake file is primarily...
--[[ DAGON An Adventure Game Engine This is a fairly basic Premake configuration that generates project files for your preferred build system. Premake may be downloaded from the following site: http://industriousone.com/premake Usage is as simple as typing 'premake4 [action]'. Because this Premake file is primarily...
Several fixes for building on Linux.
Several fixes for building on Linux.
Lua
mpl-2.0
Senscape/Dagon,Senscape/Dagon
2c3363bb675f847fd60ba5e125560ded4c271c7f
lua/entities/starfall_screen/init.lua
lua/entities/starfall_screen/init.lua
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") local context = SF.CreateContext() local screens = {} util.AddNetworkString( "starfall_screen_download" ) util.AddNetworkString( "starfall_screen_update"...
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") local context = SF.CreateContext() local screens = {} util.AddNetworkString( "starfall_screen_download" ) util.AddNetworkString( "starfall_screen_update"...
Fixing the missed table.copy from #210 fix.
Fixing the missed table.copy from #210 fix.
Lua
bsd-3-clause
INPStarfall/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall
aad9966403ee37a69215fe9b2ffb0cb169c0b265
Modules/Thumbnail/PlayerThumbnails.lua
Modules/Thumbnail/PlayerThumbnails.lua
--- Reimplementation of Player:GetUserThumbnailAsync but as a promise with -- retry logic -- @module PlayerThumbnails local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local Promise = require("Promise") local PlayerThumbnails = {} Pla...
--- Reimplementation of Player:GetUserThumbnailAsync but as a promise with -- retry logic -- @module PlayerThumbnails local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local Promise = require("Promise") local PlayerThumbnails = {} Pla...
Fix PlayerThumbnails so it doesn't error on timeout
Fix PlayerThumbnails so it doesn't error on timeout
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
4fa96290d576fecb42eb8dedefb452092314a067
lux/lux-expt/tsl2561lib.lua
lux/lux-expt/tsl2561lib.lua
-- This code is AGPL v3 by gareth@l0l.org.uk -- blah blah blah standard licence conditions apply blah blah blah -- Special hat-tip to lady ada - hacker hero - amongst many others -- Reads value of TSL2561 I2C Luminosity sensor -- As used on breakout board by Adafruit -- the package table, and lots of constants tsl2561...
-- This code is AGPL v3 by gareth@l0l.org.uk -- blah blah blah standard licence conditions apply blah blah blah -- Special hat-tip to lady ada - hacker hero - amongst many others -- Reads value of TSL2561 I2C Luminosity sensor -- As used on breakout board by Adafruit -- the package table, and lots of constants tsl2561...
note re. code size bug and lux refactor
note re. code size bug and lux refactor
Lua
agpl-3.0
pastukhov/fishy-wifi,pastukhov/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,pastukhov/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,pastukhov/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi
4307ac5dabce5177d1517b0e043a35b5a7c58512
xmake/actions/require/impl/environment.lua
xmake/actions/require/impl/environment.lua
--!A cross-platform 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 Apach...
--!A cross-platform 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 Apach...
add cmake prefix dirs
add cmake prefix dirs
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake
165c56a58ee203b5c9c9666bc93a99f3f70e8e35
mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua
mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua
local modulemanager = require "core.modulemanager"; local config = require "core.configmanager"; module.host = "*"; local function reload_components() module:log ("debug", "reload_components"); local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do modu...
local modulemanager = require "core.modulemanager"; local config = require "core.configmanager"; module.host = "*"; local function reload_components() local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do if (not hosts[host] and host ~= "*") then ...
mod_s2s_reload_newcomponent: fix debug logs
mod_s2s_reload_newcomponent: fix debug logs
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
3cb99c3a22c096be8797f4b70e7fe22e53efee6f
NLBW/res/vnstead/modules/paginator.lua
NLBW/res/vnstead/modules/paginator.lua
-- paginator module require "kbd" require "click" require "theme" require "modules/vn" require 'modules/log' click.bg = true local clickInInvArea = function(x, y) local invx, invy, invw, invh = tonumber(theme.get("inv.x")), tonumber(theme.get("inv.y")), tonumber(theme.get("inv.w")), tonumber(theme...
-- paginator module require "kbd" require "click" require "theme" require "modules/vn" require 'modules/log' click.bg = true local clickInInvArea = function(x, y) local invx, invy, invw, invh = tonumber(theme.get("inv.x")), tonumber(theme.get("inv.y")), tonumber(theme.get("inv.w")), tonumber(theme...
dev::NLB-276::Autos first + Page theme modifications + bugfixing
dev::NLB-276::Autos first + Page theme modifications + bugfixing
Lua
agpl-3.0
Antokolos/NLB,Antokolos/NLB,Antokolos/NLB,Antokolos/NLB
60e01b68a035fa076c03a639f5f62feb0220ed87
util/indexedbheap.lua
util/indexedbheap.lua
local setmetatable = setmetatable; local math_floor = math.floor; local t_remove = table.remove; local function _heap_insert(self, item, sync, item2, index) local pos = #self + 1; while true do local half_pos = math_floor(pos / 2); if half_pos == 0 or item > self[half_pos] then break; end self[pos] = self[hal...
local setmetatable = setmetatable; local math_floor = math.floor; local t_remove = table.remove; local function _heap_insert(self, item, sync, item2, index) local pos = #self + 1; while true do local half_pos = math_floor(pos / 2); if half_pos == 0 or item > self[half_pos] then break; end self[pos] = self[hal...
util.indexedbheap: Fix a possible traceback when removing the last item.
util.indexedbheap: Fix a possible traceback when removing the last item.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
0e2d2e1b7adf8a770ef5cbc37a9203b7bf8951bb
modules/title/post/olds.lua
modules/title/post/olds.lua
local sql = require'lsqlite3' local date = require'date' local uri = require"handler.uri" local uri_parse = uri.parse local patterns = { -- X://Y url "^(https?://%S+)", "^<(https?://%S+)>", "%f[%S](https?://%S+)", -- www.X.Y url "^(www%.[%w_-%%]+%.%S+)", "%f[%S](www%.[%w_-%%]+%.%S+)", } local openDB = functio...
local sql = require'lsqlite3' local date = require'date' local uri = require"handler.uri" local uri_parse = uri.parse local patterns = { -- X://Y url "^(https?://%S+)", "^<(https?://%S+)>", "%f[%S](https?://%S+)", -- www.X.Y url "^(www%.[%w_-%%]+%.%S+)", "%f[%S](www%.[%w_-%%]+%.%S+)", } local openDB = functio...
title/olds: Don't yell if the poster is the same as the first.
title/olds: Don't yell if the poster is the same as the first. Fixes #45. Former-commit-id: 6085c6b39c193b74651ba71add32d204b8b4272e [formerly 090d600351bfd88cd7470408ea5c69936143bb69] Former-commit-id: 49b60c8abd3f2df83c967ba45ea18e6eab2589b2
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
459af8fae97eb810178e6ddd953a64e33395dd60
share/lua/playlist/dailymotion.lua
share/lua/playlist/dailymotion.lua
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 o...
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 o...
Dailymotion: fix double encoding in video description
Dailymotion: fix double encoding in video description Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>
Lua
lgpl-2.1
vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,vlc-mirror/vlc-2.1,x...
8a5c842fdbe8dcbf53d86c4d290272733d5e2c11
game/scripts/vscripts/items/items_midas.lua
game/scripts/vscripts/items/items_midas.lua
function MidasCreep(keys) local caster = keys.caster local target = keys.target local ability = keys.ability Gold:AddGoldWithMessage(caster, keys.BonusGold) if caster.AddExperience then caster:AddExperience(target:GetDeathXP() * keys.XPMultiplier, false, false) end target:EmitSound("DOTA_Item.Hand_Of_Midas") ...
function MidasCreep(keys) local caster = keys.caster local target = keys.target local ability = keys.ability Gold:AddGoldWithMessage(caster, keys.BonusGold) if caster.AddExperience then caster:AddExperience(target:GetDeathXP() * keys.XPMultiplier, false, false) end target:EmitSound("DOTA_Item.Hand_Of_Midas") ...
fix(items): Chest of Midas emits error for units without experience
fix(items): Chest of Midas emits error for units without experience
Lua
mit
ark120202/aabs
0659bb43a4d91987efeae499c7f86f439dbff00f
.config/nvim/lua/modules/telescope.lua
.config/nvim/lua/modules/telescope.lua
local actions = require("telescope.actions") local action_state = require("telescope.actions.state") local M = {} local custom_actions = {} function custom_actions.fzf_multi_select(prompt_bufnr, mode) local picker = action_state.get_current_picker(prompt_bufnr) local num_selections = table.getn(picker:get_mul...
local actions = require("telescope.actions") local action_state = require("telescope.actions.state") local M = {} local custom_actions = {} function custom_actions.fzf_multi_select(prompt_bufnr) local picker = action_state.get_current_picker(prompt_bufnr) local num_selections = table.getn(picker:get_multi_sel...
fix telescope mappings
fix telescope mappings
Lua
mit
larrybotha/dotfiles,larrybotha/dotfiles
9521451c50d0d16c91fe33904ed400f0bec9797e
nyagos.lua
nyagos.lua
-------------------------------------------------------------------------- -- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ -- -------------------------------------------------------------------------- if nyagos == nil then print("This is the startup script for NYAGOS") print("Do n...
-------------------------------------------------------------------------- -- DO NOT EDIT THIS. PLEASE EDIT ~\.nyagos OR ADD SCRIPT INTO nyagos.d\ -- -------------------------------------------------------------------------- if nyagos == nil then print("This is the startup script for NYAGOS") print("Do n...
Fix: nyagos.lua did not print plugin-error
Fix: nyagos.lua did not print plugin-error
Lua
bsd-3-clause
zetamatta/nyagos,kissthink/nyagos,hattya/nyagos,kissthink/nyagos,nocd5/nyagos,tyochiai/nyagos,hattya/nyagos,tsuyoshicho/nyagos,kissthink/nyagos,hattya/nyagos
56624cc873b20d1d0afbc67d71f83596580363a2
core/modulemanager.lua
core/modulemanager.lua
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
Fix for add_iq_handler to allow multiple origin types too
Fix for add_iq_handler to allow multiple origin types too
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
b4b138020fcc2507db44042c22be9829d07d779e
xmake.lua
xmake.lua
set_xmakever("2.5.4") -- project set_project("hikyuu") add_rules("mode.debug", "mode.release") if not is_plat("windows") then add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan") end -- version set_version("1.2.4", {build="%Y%m%d%H%M"}) set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ...
set_xmakever("2.5.4") -- project set_project("hikyuu") add_rules("mode.debug", "mode.release") if not is_plat("windows") then add_rules("mode.coverage", "mode.asan", "mode.msan", "mode.tsan", "mode.lsan") end -- version set_version("1.2.4", {build="%Y%m%d%H%M"}) set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 ...
fixed fmt
fixed fmt
Lua
mit
fasiondog/hikyuu
f8a475fe25ac487e5ca568453aab615b3ac72fad
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...
Fix __call metamethod call
Fix __call metamethod call
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
21289fb45487552802484adbb42e5a10b4b411e2
lib/hixie76.lua
lib/hixie76.lua
local Crypto = require('crypto') local rshift = require('bit').rshift local sub, gsub, match, byte, char do local _table_0 = require('string') sub, gsub, match, byte, char = _table_0.sub, _table_0.gsub, _table_0.match, _table_0.byte, _table_0.char end -- -- verify connection secret -- local function verify_secre...
local Utils = require('utils') local Crypto = require('crypto') local rshift = require('bit').rshift local sub, gsub, match, byte, char do local _table_0 = require('string') sub, gsub, match, byte, char = _table_0.sub, _table_0.gsub, _table_0.match, _table_0.byte, _table_0.char end -- -- verify connection secret ...
fixed cut down initial buffer
fixed cut down initial buffer
Lua
mit
tempbottle/luvit-websocket,tempbottle/luvit-websocket,dvv/luvit-websocket
90568bd4cf9aaa602329115bb9bd5e8375fee4c6
scen_edit/view/actions/action.lua
scen_edit/view/actions/action.lua
--- Action module --- Action class. Inherit to create custom Actions -- @type Action Action = LCS.class{} -- Registered action classes SB.actionRegistry = {} --- Register the action. -- @tparam table opts Table -- @tparam string opts.name Machine name of the action control. Built-in actions have the "sb_" prefix. --...
--- Action module --- Action class. Inherit to create custom Actions -- @type Action Action = LCS.class{} -- Registered action classes SB.actionRegistry = {} function Table.FindKey(tbl, value) for k, v in pairs(tbl) do if v == value then return k end end end --- Register the acti...
fix hotkey strings
fix hotkey strings
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
cf54820f189c3f6702443c115a02943137303abd
OS/DiskOS/Programs/save.lua
OS/DiskOS/Programs/save.lua
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "gzip" local clvl = tonumber(select(4,...) or "9") local term = require("terminal") local eapi = require("Editors") local png = false if destination and destination ~= "@clip" and destination ~= "-?" then destination ...
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "gzip" local clvl = tonumber(select(4,...) or "9") local term = require("terminal") local eapi = require("Editors") local png = false if destination and destination ~= "@clip" and destination ~= "-?" then destination ...
Fix binary saving.
Fix binary saving. Former-commit-id: 0bdceac40244fd088f5a5e0695f328d256db71dd
Lua
mit
RamiLego4Game/LIKO-12
284f1aa0bc14c737e80e193e2d50c956c90b0a2e
Sandboxer/sandboxer.pre.lua
Sandboxer/sandboxer.pre.lua
config={} config.profile = loader.extra[1] config.home_dir = loader.extra[2] config.sandboxer_dir = loader.extra[3] config.pwd = loader.extra[4] config.sandbox_uid = loader.extra[5] config.tmpdir = loader.extra[6] config.ctldir = loader.extra[7] config.uid = loader.extra[8] config.gid = loader.extra[9] -- define some ...
config={} config.profile = loader.extra[1] config.home_dir = loader.extra[2] config.sandboxer_dir = loader.extra[3] config.pwd = loader.extra[4] config.sandbox_uid = loader.extra[5] config.tmpdir = loader.extra[6] config.ctldir = loader.extra[7] config.uid = loader.extra[8] config.gid = loader.extra[9] -- define some ...
sandboxer.pre.lua: minor fixes
sandboxer.pre.lua: minor fixes
Lua
mit
DarkCaster/Sandboxer,DarkCaster/Sandboxer
ee791e3117ce3355bcc49e9c8108c5143c989a1c
examples/echo-client-ev.lua
examples/echo-client-ev.lua
-- connects to a echo websocket server running a localhost:8080 -- sends a strong every second and prints the echoed messages -- to stdout local ev = require'ev' local ws_client = require('websocket.client').ev() ws_client:on_connect(function() print('connected') end) ws_client:connect('ws://localhost:8080','e...
-- connects to a echo websocket server running a localhost:8080 -- sends a strong every second and prints the echoed messages -- to stdout local ev = require'ev' local ws_client = require('websocket.client').ev() ws_client:on_open(function() print('connected') end) ws_client:connect('ws://echo.websocket.org','...
fix example
fix example
Lua
mit
OptimusLime/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,enginix/lua-websockets,enginix/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets
acf294c8259710d82628547bfbc2b50372d870e1
src/MarkdownEdit/Lib/task-list.lua
src/MarkdownEdit/Lib/task-list.lua
local List = require 'pandoc.List' local M = {} local function is_html (format) return format == 'html' or format == 'html4' or format == 'html5' end --- Create a ballot box for the given output format. function M.ballot_box (format) if is_html(format) then return pandoc.RawInline( 'html', '<inpu...
local List = require 'pandoc.List' local M = {} local function is_html (format) return format == 'html' or format == 'html4' or format == 'html5' end --- Create a ballot box for the given output format. function M.ballot_box (format) if is_html(format) then return pandoc.RawInline( 'html', '<inpu...
fix error in script
fix error in script
Lua
mit
punker76/Markdown-Edit,mike-ward/Markdown-Edit
5a83793b8b03919d3cfbdcd42aa221accff0ec6b
ffi/framebuffer_android.lua
ffi/framebuffer_android.lua
local ffi = require("ffi") local android = require("android") local BB = require("ffi/blitbuffer") local framebuffer = {} function framebuffer:init() -- we present this buffer to the outside self.bb = BB.new(android.screen.width, android.screen.height, BB.TYPE_BBRGB32) -- TODO: should we better use these?...
local ffi = require("ffi") local android = require("android") local BB = require("ffi/blitbuffer") local framebuffer = {} function framebuffer:init() -- we present this buffer to the outside self.bb = BB.new(android.screen.width, android.screen.height, BB.TYPE_BBRGB32) -- TODO: should we better use these?...
[fix] ffi/framebuffer_android: landscape mode was broken (#542)
[fix] ffi/framebuffer_android: landscape mode was broken (#542)
Lua
agpl-3.0
Frenzie/koreader-base,houqp/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,koreader/koreader-base,apletnev/koreader-base,koreader/koreader-base,apletnev/koreader-base,houqp/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,houqp/koreade...
c2aac0f71eb4b3736928e3396cca063eaa63073b
frontend/document/documentregistry.lua
frontend/document/documentregistry.lua
--[[-- This is a registry for document providers ]]-- local logger = require("logger") local lfs = require("libs/libkoreader-lfs") local util = require("util") local DocumentRegistry = { registry = {}, providers = {}, filetype_provider = {}, } function DocumentRegistry:addProvider(extension, mimetype, pr...
--[[-- This is a registry for document providers ]]-- local logger = require("logger") local lfs = require("libs/libkoreader-lfs") local util = require("util") local DocumentRegistry = { registry = {}, providers = {}, filetype_provider = {}, } function DocumentRegistry:addProvider(extension, mimetype, pr...
[fix] DocumentRegistry: only add provider once (#5947)
[fix] DocumentRegistry: only add provider once (#5947) Fixes <https://github.com/koreader/koreader/issues/5946>.
Lua
agpl-3.0
poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,Frenzie/koreader,poire-z/koreader,NiLuJe/koreader,Markismus/koreader,koreader/koreader,koreader/koreader,mwoz123/koreader,pazos/koreader,mihailim/koreader,Hzj-jie/koreader
59896b4cff7ecbdec2cce868d93b7b1b9076570b
autologin/directives/login.lua
autologin/directives/login.lua
function main(splash) local full_render = splash.args.full_render local first_request = true splash:on_request(function(request) if first_request then request:set_timeout(60) first_request = false end end) splash:init_cookies(splash.args.cookies) local ok,...
json = require('json') function main(splash) local full_render = splash.args.full_render local first_request = true splash:on_request(function(request) if first_request then request:set_timeout(60) first_request = false end end) splash:init_cookies(splash.ar...
Convert reason of splash:runjs to string
Convert reason of splash:runjs to string Fixes GH-33
Lua
apache-2.0
TeamHG-Memex/autologin,TeamHG-Memex/autologin,TeamHG-Memex/autologin
eb586d3241bc956972e379c777f642a1880e9e41
nginx-metrix/output/helper.lua
nginx-metrix/output/helper.lua
local exports = {} local version = require 'nginx-metrix.version' local lust = require 'Lust' local logger = require 'nginx-metrix.logger' local formats2headers = { ["text"] = "text/plain", ["html"] = "text/html", ["json"] = "application/json", } local headers2formats = {} for k,v in pairs(formats2header...
local exports = {} local version = require 'nginx-metrix.version' local lust = require 'Lust' local logger = require 'nginx-metrix.logger' local formats2headers = { ["text"] = "text/plain", ["html"] = "text/html", ["json"] = "application/json", } local headers2formats = {} for k,v in pairs(formats2header...
output.helper coverage fix
output.helper coverage fix
Lua
mit
bankiru/nginx-metrix
a07e99233db5c124f3f886e603821f8ccb9cd6ed
nvim/nvim/lua/_/completion.lua
nvim/nvim/lua/_/completion.lua
local has_cmp, cmp = pcall(require, 'cmp') local has_lspkind, lspkind = pcall(require, 'lspkind') local utils = require '_.utils' local M = {} local check_back_space = function() local col = vim.fn.col('.') - 1 if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then return true else return fal...
local has_cmp, cmp = pcall(require, 'cmp') local has_lspkind, lspkind = pcall(require, 'lspkind') local utils = require '_.utils' local M = {} local check_back_space = function() local col = vim.fn.col('.') - 1 if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then return true else return fal...
fix(nvim): cmp
fix(nvim): cmp
Lua
mit
skyuplam/dotfiles,skyuplam/dotfiles
a27d0d445edc15dbaa26e200bff2666cf41172b6
mod_blocking/mod_blocking.lua
mod_blocking/mod_blocking.lua
module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {}; local default_list_name = privacy_lists.default; if not default_list_name then default_list_name = "blocklist"; priva...
module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {}; local default_list_name = privacy_lists.default; if not default_list_name then default_list_name = "blocklist"; priva...
mod_blocking: Support for the "unblock all JIDs" case, and fix saving of rules after removing a JID
mod_blocking: Support for the "unblock all JIDs" case, and fix saving of rules after removing a JID
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
2d3d841f8f20c3aad31d00d9555f6521480452f7
sample.lua
sample.lua
--[[ This file samples characters from a trained model Code is based on implementation in https://github.com/oxford-cs-ml-2015/practical6 ]]-- require 'torch' require 'nn' require 'nngraph' require 'optim' require 'lfs' require 'util.OneHot' require 'util.misc' cmd = torch.CmdLine() cmd:text() cmd:text('Sample ...
--[[ This file samples characters from a trained model Code is based on implementation in https://github.com/oxford-cs-ml-2015/practical6 ]]-- require 'torch' require 'nn' require 'nngraph' require 'optim' require 'lfs' require 'util.OneHot' require 'util.misc' cmd = torch.CmdLine() cmd:text() cmd:text('Sample ...
fix bug & add stop option
fix bug & add stop option
Lua
mit
tonyqtian/melody-generator
9e38799a6a4fe29f8da5c0a10d27bd08eba68aae
nvim/nvim/lua/_/formatter.lua
nvim/nvim/lua/_/formatter.lua
local has_config, formatter = pcall(require, 'formatter') if not has_config then return end local utils = require '_.utils' local M = {} local function prettier() return { exe='prettier', args={ -- Config prettier '--config-precedence', 'prefer-file', '--no-bracket-spacing', ...
local has_config, formatter = pcall(require, 'formatter') if not has_config then return end local utils = require '_.utils' local M = {} local function prettier() return { exe='prettier', args={ -- Config prettier '--config-precedence', 'prefer-file', '--no-bracket-spacing', ...
fix(nvim): specify files for auto formatting on write
fix(nvim): specify files for auto formatting on write
Lua
mit
skyuplam/dotfiles,skyuplam/dotfiles
88c98da0702e7ef2b527f3f1bccb5b3d43e78c24
semver.lua
semver.lua
local semver = { _VERSION = '1.2.0', _DESCRIPTION = 'semver for Lua', _URL = 'https://github.com/kikito/semver.lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2015 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of tother software ...
local semver = { _VERSION = '1.2.0', _DESCRIPTION = 'semver for Lua', _URL = 'https://github.com/kikito/semver.lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2015 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of tother software ...
Fixed semver compare
Fixed semver compare
Lua
mit
Zefiros-Software/ZPM
a5298d0221256a7a02e3575e07a95ada8d13bd10
src/vendor/tmx.lua
src/vendor/tmx.lua
local camera = require 'camera' local tmx = {} local Map = {} Map.__index = Map function Map:draw(x, y) for _,layer in ipairs(self.layers) do love.graphics.draw(layer.batch, -( x - ( camera.x * ( 1 - layer.parallax ) ) ), y) end end function tmx.tileRotation(tile) return { r = tile.flipDiagonal and ma...
local camera = require 'camera' local tmx = {} local Map = {} Map.__index = Map function Map:draw(x, y) for _,layer in ipairs(self.layers) do local _x = math.floor( x - ( camera.x * ( 1 - layer.parallax ) ) ) love.graphics.draw(layer.batch, -_x, y) end end function tmx.tileRotation(tile) return { ...
Fix parallax rounding issue
Fix parallax rounding issue
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua
8f3775d4130fc951e1053b5b45d3cab366c24bf0
site/api/mbox.lua
site/api/mbox.lua
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
fix error handling - responses are not JSON!
fix error handling - responses are not JSON!
Lua
apache-2.0
Humbedooh/ponymail,quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,jimjag/ponymail,quenda/ponymail,quenda/ponymail,jimjag/ponymail,jimjag/ponymail
443f930141eb00a0b3dff74754033ab8ab20e796
buddycloud-stack/config/prosody.cfg.lua
buddycloud-stack/config/prosody.cfg.lua
modules_enabled = { "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. "tls"; -- Add support for secure TLS on c2s/s2s connections "dialback"; -- s2s dialback support "disco"; -- Service discovery "time"; -- L...
modules_enabled = { "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. "tls"; -- Add support for secure TLS on c2s/s2s connections "dialback"; -- s2s dialback support "disco"; -- Service discovery "time"; -- L...
fixing prosody
fixing prosody
Lua
apache-2.0
webhost/dockerfiles,buddycloud/dockerfiles,buddycloud/dockerfiles,webhost/dockerfiles
91d838ca49f2d76e29d65a8cb7b7a3bd9b50c4b4
share/lua/playlist/extreme.lua
share/lua/playlist/extreme.lua
--[[ $Id$ Copyright © 2011 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
--[[ $Id$ Copyright © 2011 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
Lua: Fix extreme.com playlist parser. They use http now.
Lua: Fix extreme.com playlist parser. They use http now.
Lua
lgpl-2.1
vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,krichter722/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc,krichter722/vlc,xkfz007/vlc,vlc-mirror/vlc,xkfz007/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,xkfz007/...
671e2c8345ccb25bde4d5fd47b16e40e135a3a03
twitpic.lua
twitpic.lua
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.get_urls = ...
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.download_ch...
twitpic.lua: fix
twitpic.lua: fix
Lua
unlicense
ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab
5f6bb86a59f8f5527f6d61deeefab50623275f76
spec/helper.lua
spec/helper.lua
local helper = {} local dir_sep = package.config:sub(1, 1) -- Return path to root directory when run from `path`. local function antipath(path) local _, level = path:gsub("[/\\]", "") return (".."..dir_sep):rep(level) end function helper.luacov_config(prefix) return { statsfile = prefix.."luacov.stats...
local helper = {} local function get_lua() local index = -1 local res = "lua" while arg[index] do res = arg[index] index = index - 1 end return res end local lua = get_lua() local dir_sep = package.config:sub(1, 1) -- Return path to root directory when run from `path`. local function an...
Fix CLI tests failing depending the way busted wrapper works
Fix CLI tests failing depending the way busted wrapper works Depending on luarocks version there may be different number of arguments in the call of busted in its "binary" wrapper. Don't expect arg[-5] to always point to the Lua binary, traverse negative indexes to get the lowest one instead.
Lua
mit
xpol/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck
845b64050f298150a6e03d3e61973add1e06327f
init.lua
init.lua
require 'textadept' _M.common = require 'common' textadept.editing.STRIP_TRAILING_SPACES = true keys.LANGUAGE_MODULE_PREFIX = "cat" function get_sel_lines() if #buffer.get_sel_text(buffer) == 0 then return buffer:line_from_position(buffer.current_pos), buffer:line_from_position(buffer.current_pos) else start...
require 'textadept' _M.common = require 'common' textadept.editing.STRIP_TRAILING_SPACES = true keys.LANGUAGE_MODULE_PREFIX = "cat" function get_sel_lines() if #buffer.get_sel_text(buffer) == 0 then return buffer:line_from_position(buffer.current_pos), buffer:line_from_position(buffer.current_pos) else start...
Fix keybindings
Fix keybindings
Lua
mit
Hackerpilot/TextadeptModules
450d184413cefe090c7d1332859fbbeca87f807d
mod_lastlog/mod_lastlog.lua
mod_lastlog/mod_lastlog.lua
local datamanager = require "util.datamanager"; local jid = require "util.jid"; local time = os.time; local log_ip = module:get_option_boolean("lastlog_ip_address", false); local host = module.host; module:hook("authentication-success", function(event) local session = event.session; if session.username then datama...
local datamanager = require "util.datamanager"; local jid = require "util.jid"; local time = os.time; local log_ip = module:get_option_boolean("lastlog_ip_address", false); local host = module.host; module:hook("authentication-success", function(event) local session = event.session; if session.username then datama...
mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik)
mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik)
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
62b7f4a09784b44041c928d76a6c8e68095c2cc9
modules/admin-core/luasrc/tools/webadmin.lua
modules/admin-core/luasrc/tools/webadmin.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
Add missing number conversion (fixed #108)
Add missing number conversion (fixed #108) git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2862 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ch3n2k/luci,dtaht/cerowrt-luci-3.3,ReclaimYourPrivacy/cloak-luci,freifunk-gluon/luci,projectbismark/luci-bismark,Flexibity/luci,yeewang/openwrt-luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,phi-psi/luci,alxhh/piratenluci,freifunk-gluon/luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,jschmidlapp/luci,phi-psi/luci,phi-...
797cc18d58399467cbf6fe2d610a745e5adb2b45
MY_Chat/src/MY_WhisperMetion.lua
MY_Chat/src/MY_WhisperMetion.lua
-------------------------------------------------------- -- This file is part of the JX3 Mingyi Plugin. -- @link : https://jx3.derzh.com/ -- @desc : ¼Ƶ -- @author : @˫ @׷Ӱ -- @modifier : Emil Zhai (root@derzh.com) -- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd. --------------------------------------...
-------------------------------------------------------- -- This file is part of the JX3 Mingyi Plugin. -- @link : https://jx3.derzh.com/ -- @desc : ¼Ƶ -- @author : @˫ @׷Ӱ -- @modifier : Emil Zhai (root@derzh.com) -- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd. --------------------------------------...
fix: 点名记录到密聊功能严格判定名字链接
fix: 点名记录到密聊功能严格判定名字链接
Lua
bsd-3-clause
tinymins/MY
ddf3169bdc4ca24a2df2a76ccab0ed93f207d271
test-server/test-server-copas.lua
test-server/test-server-copas.lua
#!/usr/bin/env lua --- lua websocket equivalent to test-server.c from libwebsockets. -- using copas as server framework package.path = '../src/?.lua;../src/?/?.lua;'..package.path local copas = require'copas' local socket = require'socket' local inc_clients = {} local server = require'websocket'.server.copas.listen {...
#!/usr/bin/env lua --- lua websocket equivalent to test-server.c from libwebsockets. -- using copas as server framework package.path = '../src/?.lua;../src/?/?.lua;'..package.path local copas = require'copas' local socket = require'socket' print('Open browser:') print('file://'..io.popen('pwd'):read()..'/index.html') ...
bugfix handle cases, when client closes connection
bugfix handle cases, when client closes connection
Lua
mit
KSDaemon/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets
3ef8271285381840ec59f15c1c3d40582c8bc522
src/dao/cassandra/plugins.lua
src/dao/cassandra/plugins.lua
local constants = require "kong.constants" local BaseDao = require "kong.dao.cassandra.base_dao" local cjson = require "cjson" local function load_value_schema(plugin_t) local status, plugin_schema = pcall(require, "kong.plugins."..plugin_t.name..".schema") if not status then return nil, "Plugin \""..plugin_t....
local constants = require "kong.constants" local BaseDao = require "kong.dao.cassandra.base_dao" local cjson = require "cjson" local function load_value_schema(plugin_t) if plugin_t.name then local status, plugin_schema = pcall(require, "kong.plugins."..plugin_t.name..".schema") if status then return p...
Fixing nil concatenation in Plugins
Fixing nil concatenation in Plugins
Lua
apache-2.0
wakermahmud/kong,skynet/kong,vmercierfr/kong,chourobin/kong,puug/kong,sbuettner/kong,Skyscanner/kong,AnsonSmith/kong,bbalu/kong,peterayeni/kong,paritoshmmmec/kong,ChristopherBiscardi/kong,ropik/kong
0ce63403f05ea2a6dfe247ba1178caf49557fb8d
kong/api/routes/plugins.lua
kong/api/routes/plugins.lua
local kong = kong local null = ngx.null local cjson = require "cjson" local utils = require "kong.tools.utils" local reports = require "kong.reports" local endpoints = require "kong.api.endpoints" local arguments = require "kong.api.arguments" local singletons = require "kong.singletons" local type = type local pairs...
local kong = kong local cjson = require "cjson" local utils = require "kong.tools.utils" local reports = require "kong.reports" local endpoints = require "kong.api.endpoints" local arguments = require "kong.api.arguments" local singletons = require "kong.singletons" local type = type local pairs = pairs local get_p...
fix(reports) do not send unnecessary attributes in 'ping' message
fix(reports) do not send unnecessary attributes in 'ping' message Prior to this patch, configuring a plugin via `POST /plugins` would send reports with `<entity>=userdata;<entity>=userdata;` when the plugin was not configured on a given entity (e.g. when configuring a global plugin, or a plugin with a Route only). ...
Lua
apache-2.0
Kong/kong,Kong/kong,Mashape/kong,Kong/kong
2f8964e83b2b1757009efb1a87a2372e6a557dec
main.lua
main.lua
-- Parameters taken from (tuned) Double DQN paper: http://arxiv.org/pdf/1509.06461.pdf require 'cutorch' local image = require 'image' local environment = require 'environment' local model = require 'model' -- Detect QT for image display local qt = pcall(require, 'qt') local cmd = torch.CmdLine() -- Base options cmd:...
-- Parameters taken from (tuned) Double DQN paper: http://arxiv.org/pdf/1509.06461.pdf require 'cutorch' local image = require 'image' local environment = require 'environment' local model = require 'model' -- Detect QT for image display local qt = pcall(require, 'qt') local cmd = torch.CmdLine() -- Base options cmd:...
Fix agent evaluation calls
Fix agent evaluation calls
Lua
mit
Kaixhin/Atari
de06ff68930b84166151b56e4a2419ad7479344d
ssbase/gamemode/sv_profiles.lua
ssbase/gamemode/sv_profiles.lua
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money"} SS.Profiles = {} function PLAYER_META:CreateProfile() local qu...
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money"} SS.Profiles = {} function PLAYER_META:CreateProfile() local qu...
One fix
One fix
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
c080ee0550ff1dbf4e60cc1c4e49c2f4c141f5c5
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
stephen322/prosody-modules,guilhem/prosody-modules,crunchuser/prosody-modules,joewalker/prosody-modules,heysion/prosody-modules,brahmi2/prosody-modules,amenophis1er/prosody-modules,obelisk21/prosody-modules,vfedoroff/prosody-modules,iamliqiang/prosody-modules,mardraze/prosody-modules,brahmi2/prosody-modules,apung/proso...
92bb8399f591f0bad12ea7bbd01dda34f220257c
test/dom/Node-isEqualNode.lua
test/dom/Node-isEqualNode.lua
local gumbo = require "gumbo" local document = assert(gumbo.parse [[ <!DOCTYPE html> <body> <div class="example"> <ul> <li><a href="http://example.com/" hidden>Example.com</a></li> <li><a href="http://example.org/" hidden>Example.org</a></li> </ul> </div> <div class=...
local gumbo = require "gumbo" local assert, rawequal = assert, rawequal local _ENV = nil local document = assert(gumbo.parse [[ <!DOCTYPE html> <body> <div class="example"> <ul> <li><a href="http://example.com/" hidden>Example.com</a></li> <li><a href="http://example.org/" hidden>Ex...
Minor style fixes in test/dom/Node-isEqualNode.lua
Minor style fixes in test/dom/Node-isEqualNode.lua
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
3a5acd7927e811674a35363927c11b0eb6dc8cfb
config/nvim/after.lua
config/nvim/after.lua
local map = require('utils').map local cmd = vim.cmd -- " Commands cmd([[colorscheme dracula]]) -- " Remove trailing spaces on save cmd([[autocmd BufWritePre * :%s/\s\+$//e]]) -- " Common typos cmd(':command! WQ wq') cmd(':command! WQ wq') cmd(':command! Wq wq') cmd(':command! Wqa wqa') cmd(':command! Qall qall') cm...
local map = require('utils').map local cmd = vim.cmd -- " Commands cmd([[colorscheme dracula]]) -- " Remove trailing spaces on save cmd([[autocmd BufWritePre * :%s/\s\+$//e]]) -- " Common typos cmd(':command! WQ wq') cmd(':command! WQ wq') cmd(':command! Wq wq') cmd(':command! Wqa wqa') cmd(':command! Qall qall') cm...
Fix sorbet complaints about not providing a dir
Fix sorbet complaints about not providing a dir
Lua
mit
albertoleal/dotfiles,albertoleal/dotfiles
5853249c6950fcaffaa1ef15bf41d18c3824429e
nvim/lua/ryankoval/init.lua
nvim/lua/ryankoval/init.lua
vim.g.mapleader = ',' vim.opt.termguicolors = true require('ryankoval.theme') require('ryankoval.cmp') require('ryankoval.gitsigns') require('ryankoval.neotree') require('ryankoval.treesitter') require('ryankoval.indent-blankline') require('ryankoval.telescope') require('ryankoval.telescope.mappings') require('ryank...
vim.g.mapleader = ',' vim.opt.termguicolors = true require('ryankoval.theme') require('ryankoval.cmp') require('ryankoval.gitsigns') require('ryankoval.neotree') require('ryankoval.treesitter') require('ryankoval.indent-blankline') require('ryankoval.telescope') require('ryankoval.telescope.mappings') require('ryank...
fixed split navigation
fixed split navigation
Lua
mit
rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles
f87f7415eb8fc3f1b96f28a40a7537dd57e0876f
PairwiseDistance.lua
PairwiseDistance.lua
local PairwiseDistance, parent = torch.class('nn.PairwiseDistance', 'nn.Module') function PairwiseDistance:__init(p) parent.__init(self) -- state self.gradInput = {torch.Tensor(), torch.Tensor()} self.output = torch.Tensor(1) self.diff = torch.Tensor() self.norm=p end function PairwiseDistance:u...
local PairwiseDistance, parent = torch.class('nn.PairwiseDistance', 'nn.Module') function PairwiseDistance:__init(p) parent.__init(self) -- state self.gradInput = {torch.Tensor(), torch.Tensor()} self.output = torch.Tensor(1) self.diff = torch.Tensor() self.norm=p end function PairwiseDistance:u...
Fixed a bug in PairwiseDistance where the gradInput table isn't converted when Module.type function is called (this bug has always existed and is not due to the recent changes).
Fixed a bug in PairwiseDistance where the gradInput table isn't converted when Module.type function is called (this bug has always existed and is not due to the recent changes).
Lua
bsd-3-clause
zhangxiangxiao/nn,lvdmaaten/nn,jzbontar/nn,boknilev/nn,PierrotLC/nn,jhjin/nn,nicholas-leonard/nn,witgo/nn,Aysegul/nn,bartvm/nn,xianjiec/nn,PraveerSINGH/nn,karpathy/nn,lukasc-ch/nn,jonathantompson/nn,rotmanmi/nn,Moodstocks/nn,kmul00/nn,EnjoyHacking/nn,caldweln/nn,davidBelanger/nn,andreaskoepf/nn,forty-2/nn,apaszke/nn,co...
d09db0de3073d275c7ce4517e6212c3640745598
util.lua
util.lua
local computer = require("computer") local event = require("event") local function trunc(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult) / mult end local function needsCharging(threshold, distanceFromCharger) distanceFromCharger = distanceFromCharger or 0 local per...
local computer = require("computer") local event = require("event") local function trunc(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult) / mult end local function needsCharging(threshold, distanceFromCharger) distanceFromCharger = distanceFromCharger or 0 local per...
attempting to fix charging util
attempting to fix charging util
Lua
apache-2.0
InfinitiesLoop/oclib
c7b1c25b16cec957763cf4413da2f90ed11869ca
share/util/resolve_redirections.lua
share/util/resolve_redirections.lua
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- 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 So...
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- 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 So...
FIX: resolve_redirections.lua: Do not append #t
FIX: resolve_redirections.lua: Do not append #t g00gle servers seem not to strip the #t parameter anymore. Do not append the #t parameter anymore. Comment out the code, in case this needs to be reactivated. Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
alech/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts
de63097f0411c6fba9158d28b56c14d9768f125a
examples/moonsniff/traffic-gen.lua
examples/moonsniff/traffic-gen.lua
--- Demonstrates and tests hardware timestamping capabilities local lm = require "libmoon" local device = require "device" local memory = require "memory" local ts = require "timestamping" local hist = require "histogram" local timer = require "timer" local log = require "log" local stats = require "sta...
--- Demonstrates and tests hardware timestamping capabilities local lm = require "libmoon" local device = require "device" local memory = require "memory" local ts = require "timestamping" local hist = require "histogram" local timer = require "timer" local log = require "log" local stats = require "sta...
fix counter showing values twice
fix counter showing values twice
Lua
mit
gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen
64be8bc5409364e37b511fa130dec7777b072252
wyx/ui/TooltipFactory.lua
wyx/ui/TooltipFactory.lua
local Class = require 'lib.hump.class' local Tooltip = getClass 'wyx.ui.Tooltip' local Text = getClass 'wyx.ui.Text' local Bar = getClass 'wyx.ui.Bar' local Frame = getClass 'wyx.ui.Frame' local Style = getClass 'wyx.ui.Style' local property = require 'wyx.component.property' local math_ceil = math.ceil local colors =...
local Class = require 'lib.hump.class' local Tooltip = getClass 'wyx.ui.Tooltip' local Text = getClass 'wyx.ui.Text' local Bar = getClass 'wyx.ui.Bar' local Frame = getClass 'wyx.ui.Frame' local Style = getClass 'wyx.ui.Style' local property = require 'wyx.component.property' local math_ceil = math.ceil local colors =...
fix TileCoords query in TooltipFactory
fix TileCoords query in TooltipFactory
Lua
mit
scottcs/wyx
1d88927934ac111d44edff77fdc4f5e122316a92
lua/iq-tex-filtered.lua
lua/iq-tex-filtered.lua
-- Visualize IQ data as a texture from the HackRF -- You want seizures? 'Cause this is how you get seizures. VERTEX_SHADER = [[ #version 400 layout (location = 0) in vec3 vp; layout (location = 1) in vec3 vn; layout (location = 2) in vec2 vt; out vec3 color; out vec2 texCoord; uniform mat4 uViewMatrix, uProjectionMatr...
-- Visualize IQ data as a texture from the HackRF -- You want seizures? 'Cause this is how you get seizures. VERTEX_SHADER = [[ #version 400 layout (location = 0) in vec3 vp; layout (location = 1) in vec3 vn; layout (location = 2) in vec2 vt; out vec3 color; out vec2 texCoord; uniform mat4 uViewMatrix, uProjectionMatr...
Do processing in main draw loop.
Do processing in main draw loop. This sidesteps the nrf_block model, which is currently buggy. The disadvantage is that all the processing needs to be done in the main thread; however it is easier to understand what’s going on.
Lua
mit
silky/frequensea,fdb/frequensea,fdb/frequensea,silky/frequensea,fdb/frequensea,fdb/frequensea,silky/frequensea,silky/frequensea,fdb/frequensea,silky/frequensea
09937be9b29b30b54dd9ec5fcfd6006d9f12061e
Modules/qGUI/KeyIcon/KeyIcon.lua
Modules/qGUI/KeyIcon/KeyIcon.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local FunctionMap = LoadCustomLibrary("FunctionMap") local qGUI = LoadCustomLibrary("qGUI") --...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local FunctionMap = LoadCustomLibrary("FunctionMap") local qGUI = LoadCustomLibrary("qGUI") --...
Update a few rendering things, fix a few glitches
Update a few rendering things, fix a few glitches
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
fab02bcac2cc5e9b95512bd3e34b1a1e14616f4c
lua/wincent/commandt/private/scanners/git.lua
lua/wincent/commandt/private/scanners/git.lua
-- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors. -- SPDX-License-Identifier: BSD-2-Clause local git = {} git.scanner = function(dir, options) local lib = require('wincent.commandt.private.lib') local command = 'git ls-files --exclude-standard --cached -z' if options.submodules th...
-- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors. -- SPDX-License-Identifier: BSD-2-Clause local git = {} git.scanner = function(dir, options) options = options or {} local lib = require('wincent.commandt.private.lib') local command = 'git ls-files --exclude-standard --cached -z' ...
fix(lua): unbreak scanner benchmarks
fix(lua): unbreak scanner benchmarks
Lua
bsd-2-clause
wincent/command-t,wincent/command-t,wincent/command-t
4fad0c9a528ad971c56d48b996aa440abed2c594
pud/command/Command.lua
pud/command/Command.lua
local Class = require 'lib.hump.class' -- Command class local Command = Class{name='Command', function(self, target) self._target = target end } -- destructor function Command:destroy() self._target = nil end -- get the target object of this command function Command:getTarget() return self._target end -- set t...
local Class = require 'lib.hump.class' -- Command class local Command = Class{name='Command', function(self, target) self._target = target end } -- destructor function Command:destroy() self._target = nil self._onComplete = nil self._onCompleteArgs = nil end -- get the target object of this command function C...
fix destructor
fix destructor
Lua
mit
scottcs/wyx
2db654a1b50086e5ec536330d8d68c1ea15e9443
kong/tools/public.lua
kong/tools/public.lua
local pcall = pcall local ngx_log = ngx.log local ERR = ngx.ERR local _M = {} do local multipart = require "multipart" local cjson = require "cjson.safe" local str_find = string.find local str_format = string.format local ngx_req_get_post_args = ngx.req.get_post_args local ...
local pcall = pcall local ngx_log = ngx.log local ERR = ngx.ERR local _M = {} do local multipart = require "multipart" local cjson = require "cjson.safe" local str_find = string.find local str_format = string.format local ngx_req_get_post_args = ngx.req.get_post_args local ...
fix(tools) do not error on reading non-existent bodies
fix(tools) do not error on reading non-existent bodies When calling `get_body_args()` or `get_body_info()` with a request that had no body but a Content-Type header of JSON or url-encoded, we would pass a `nil` reference to `cjson.decode` or `multipart()`. We now log the error for the user and return gracefully. The ...
Lua
apache-2.0
Kong/kong,jebenexer/kong,Mashape/kong,Kong/kong,Kong/kong
06e073089b8c35b96a108d30e078f74923e8132b
lib/settings.lua
lib/settings.lua
require 'xlua' require 'pl' require 'trepl' -- global settings if package.preload.settings then return package.preload.settings end -- default tensor type torch.setdefaulttensortype('torch.FloatTensor') local settings = {} local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x-training") cmd:text("Options:") ...
require 'xlua' require 'pl' require 'trepl' -- global settings if package.preload.settings then return package.preload.settings end -- default tensor type torch.setdefaulttensortype('torch.FloatTensor') local settings = {} local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x-training") cmd:text("Options:") ...
Fix for edac608f
Fix for edac608f
Lua
mit
nagadomi/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x
31d9ed7a0d5ffbf1e1e089de32048d04f735677b
kong/db/strategies/postgres/connector.lua
kong/db/strategies/postgres/connector.lua
local pgmoon = require "pgmoon" local setmetatable = setmetatable local concat = table.concat local setmetatable = setmetatable --local pairs = pairs --local type = type local ngx = ngx local get_phase = ngx.get_phase local null = ngx.null local log = ngx.log ...
local pgmoon = require "pgmoon" local setmetatable = setmetatable local concat = table.concat local setmetatable = setmetatable --local pairs = pairs --local type = type local ngx = ngx local get_phase = ngx.get_phase local null = ngx.null local log = ngx.log ...
fix(db) ensure postgres connector reentrancy
fix(db) ensure postgres connector reentrancy Because the connector currently stores its connection in an attribute, it is shared between all requests in a worker, which will throw cosocket errors. Instead, `:query()` is now reentrant by incoming requests (it instantiates and keepalive its own connections). The con...
Lua
apache-2.0
Kong/kong,Mashape/kong,Kong/kong,Kong/kong
41a75166476d915950096e3e88c03f44f0cba965
share/media/funnyordie.lua
share/media/funnyordie.lua
-- 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 program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public...
-- 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 program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public...
FIX: media/funnyordie.lua: Stream URL pattern
FIX: media/funnyordie.lua: Stream URL pattern Update the media stream URL pattern to reflect the recent changes to the website. Look for the video/mp4 content only. Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
Lua
agpl-3.0
legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts
97fcda5ae0bd4ef5db5b1df62824d704409fa5ef
packages/url.lua
packages/url.lua
SILE.require("packages/verbatim") local pdf pcall(function() pdf = require("justenoughlibtexpdf") end) if pdf then SILE.require("packages/pdf") end local inputfilter = SILE.require("packages/inputfilter").exports -- URL escape sequence, URL fragment: local preferBreakBefore = "%#" -- URL path elements, URL query argu...
SILE.require("packages/verbatim") local pdf pcall(function() pdf = require("justenoughlibtexpdf") end) if pdf then SILE.require("packages/pdf") end local inputfilter = SILE.require("packages/inputfilter").exports -- URL escape sequence, URL fragment: local preferBreakBefore = "%#" -- URL path elements, URL query argu...
docs(packages): Fix mangled merge artifacts from f295974
docs(packages): Fix mangled merge artifacts from f295974
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
1477f9bc981978bea28a265099acb3355110a11c
premake5.lua
premake5.lua
local environment = require "environment" workspace "imquery" configurations{ "Debug", "Release" } startproject "testimq" flags { "C++11" } filter "system:windows" defines {"_CRT_SECURE_NO_WARNINGS" } project "imq" kind "StaticLib" language "C++" targetdir "bin/%{cfg.buildcfg}" ...
local environment = require "environment" workspace "imquery" configurations{ "Debug", "Release" } startproject "testimq" flags { "C++11" } filter "system:windows" defines {"_CRT_SECURE_NO_WARNINGS" } project "imq" kind "StaticLib" language "C++" targetdir "bin/%{cfg.buildcfg}" ...
Fix indentation
Fix indentation
Lua
mit
redxdev/imquery,redxdev/imquery,redxdev/imquery
94bfe1476826da03ffc1fc066789fc8e11a04dfc
cherry/engine/sound.lua
cherry/engine/sound.lua
-------------------------------------------------------------------------------- local _ = require 'cherry.libs.underscore' -------------------------------------------------------------------------------- local Sound = {} -------------------------------------------------------------------------------- function Sou...
-------------------------------------------------------------------------------- local _ = require 'cherry.libs.underscore' -------------------------------------------------------------------------------- local Sound = {} -------------------------------------------------------------------------------- function Sou...
fixed track loops
fixed track loops
Lua
bsd-3-clause
chrisdugne/cherry
694024de82c10d0f578f7c43c8fe288df695b420
premakeUtils.lua
premakeUtils.lua
function coInitParams(_params) baseAbsPath = os.getcwd() print("baseAbsPath: "..baseAbsPath) externalAbsPath = baseAbsPath .. "/external" buildPath = "build/" .. _ACTION genAbsPath = baseAbsPath .. "/build/gen" buildAbsPath = baseAbsPath .. "/" .. buildPath coreRelativePath = "." if _params.coreRelativePath th...
function coInitParams(_params) baseAbsPath = os.getcwd() print("baseAbsPath: "..baseAbsPath) externalAbsPath = baseAbsPath .. "/external" buildPath = "build/" .. _ACTION genAbsPath = baseAbsPath .. "/build/gen" buildAbsPath = baseAbsPath .. "/" .. buildPath coreRelativePath = "." if _params.coreRelativePath th...
- Disabled some annoying link errors. - Fixed premake linkoptions not being taken into account by premake. - Remove the mainCRTstartup linkoption because it's not working correctly with DLLs.
- Disabled some annoying link errors. - Fixed premake linkoptions not being taken into account by premake. - Remove the mainCRTstartup linkoption because it's not working correctly with DLLs.
Lua
mit
smogpill/core,smogpill/core
7f5457b0584880befcbcfcbef47310b41281cb34
lua/wincent/commandt/private/match_listing.lua
lua/wincent/commandt/private/match_listing.lua
-- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors. -- SPDX-License-Identifier: BSD-2-Clause local match_listing = {} local Window = require('wincent.commandt.private.window').Window local merge = require('wincent.commandt.private.merge') local border_height = 2 local prompt_height = 1 +...
-- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors. -- SPDX-License-Identifier: BSD-2-Clause local match_listing = {} local Window = require('wincent.commandt.private.window').Window local merge = require('wincent.commandt.private.merge') local border_height = 2 local prompt_height = 1 +...
fix: don't let control characters mess up the display
fix: don't let control characters mess up the display Before: ╭─ CommandT [file] ────────────────────────────────────────────╮ │> │ ╰──────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────...
Lua
bsd-2-clause
wincent/command-t,wincent/command-t,wincent/command-t
11464a3373ea3e3f7fc9aee934544d4b1e1bd96e
lualib/mongo.lua
lualib/mongo.lua
local bson = require "bson" local socket = require "socket" local socketchannel = require "socketchannel" local skynet = require "skynet" local driver = require "mongo.driver" local rawget = rawget local assert = assert local bson_encode = bson.encode local bson_encode_order = bson.encode_order local bson_decode = bso...
local bson = require "bson" local socket = require "socket" local socketchannel = require "socketchannel" local skynet = require "skynet" local driver = require "mongo.driver" local rawget = rawget local assert = assert local bson_encode = bson.encode local bson_encode_order = bson.encode_order local bson_decode = bso...
bugfix: mongo driver, reply result
bugfix: mongo driver, reply result
Lua
mit
MoZhonghua/skynet,cmingjian/skynet,liuxuezhan/skynet,qyli/test,qyli/test,lynx-seu/skynet,zzh442856860/skynet,JiessieDawn/skynet,cdd990/skynet,javachengwc/skynet,helling34/skynet,lawnight/skynet,yinjun322/skynet,lawnight/skynet,cmingjian/skynet,lc412/skynet,xcjmine/skynet,sundream/skynet,fztcjjl/skynet,kyle-wang/skynet,...
57fb2b364320c5bc51e60da5fda558ca847d3c55
mods/throwing/fire_arrow.lua
mods/throwing/fire_arrow.lua
minetest.register_craftitem("throwing:arrow_fire", { description = "Fire Arrow", inventory_image = "throwing_arrow_fire.png", }) minetest.register_node("throwing:arrow_fire_box", { drawtype = "nodebox", node_box = { type = "fixed", fixed = { -- Shaft {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, ...
minetest.register_craftitem("throwing:arrow_fire", { description = "Fire Arrow", inventory_image = "throwing_arrow_fire.png", }) minetest.register_node("throwing:arrow_fire_box", { drawtype = "nodebox", node_box = { type = "fixed", fixed = { -- Shaft {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, ...
fix fire arrows don't touch fire
fix fire arrows don't touch fire
Lua
unlicense
MinetestForFun/server-minetestforfun,MinetestForFun/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,sys4-f...
321fef3de8ad4257a7089b811412742111e91671
kong/plugins/jwt/handler.lua
kong/plugins/jwt/handler.lua
local singletons = require "kong.singletons" local BasePlugin = require "kong.plugins.base_plugin" local cache = require "kong.tools.database_cache" local responses = require "kong.tools.responses" local constants = require "kong.constants" local jwt_decoder = require "kong.plugins.jwt.jwt_parser" local string_format =...
local singletons = require "kong.singletons" local BasePlugin = require "kong.plugins.base_plugin" local cache = require "kong.tools.database_cache" local responses = require "kong.tools.responses" local constants = require "kong.constants" local jwt_decoder = require "kong.plugins.jwt.jwt_parser" local string_format =...
fix(jwt) default algorithm to 'HS256'
fix(jwt) default algorithm to 'HS256' When migrating from an older version of Kong, the 'algorithm' field is left empty. Better to include it in the code rather than in the migration to resolve the issue for users who already migrated. Fix #1233
Lua
apache-2.0
salazar/kong,icyxp/kong,Kong/kong,jebenexer/kong,akh00/kong,smanolache/kong,jerizm/kong,ccyphers/kong,shiprabehera/kong,Kong/kong,beauli/kong,li-wl/kong,Kong/kong,Mashape/kong,Vermeille/kong
f4f708d3af77ce164291ede97c709b14a620785e
LUA/spec/eep/EepFunktionen_spec.lua
LUA/spec/eep/EepFunktionen_spec.lua
describe("EepFunktionen.lua", function() require("ak.eep.AkEepFunktionen") it("EEPVer steht auf \"Testsimulator\"", function() assert.are.equals("Testsimulator", EEPVer) end) it("print() Funktion ", function() clearlog() end) describe("EEPSetSignal", function() describe("setzt Signal 2 auf St...
describe("EepFunktionen.lua", function() require("ak.eep.AkEepFunktionen") it("EEPVer steht auf \"15\"", function() assert.are.equals("15", EEPVer) end) it("print() Funktion ", function() clearlog() end) describe("EEPSetSignal", function() describe("setzt Signal 2 auf Stellung 4", funct...
fix busted error - correct EEP-Version
fix busted error - correct EEP-Version
Lua
mit
Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep
4f3c1d9e962730883955d90a4fbf588b3af36167
imprint.lua
imprint.lua
SILE.require("packages/markdown", CASILE.casiledir) SILE.registerCommand("imprint:font", function (options, content) options.weight = options.weight or 400 options.size = options.size or "9pt" options.language = options.language or "und" options.family = options.family or "Libertinus Serif" SILE.call("font",...
SILE.require("packages/markdown", CASILE.casiledir) SILE.registerCommand("imprint:font", function (options, content) options.weight = options.weight or 400 options.size = options.size or "9pt" options.language = options.language or "und" options.family = options.family or "Libertinus Serif" SILE.call("font",...
fix: Only pass anonymous functions as content
fix: Only pass anonymous functions as content
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
863dbc448e9e4f477b6b66ae94b1420ec7d04cd1
samples/gtk-demo/demo-images.lua
samples/gtk-demo/demo-images.lua
return function(parent, dir) local coroutine = require 'coroutine' local lgi = require 'lgi' local bytes = require 'bytes' local GLib = lgi.GLib local Gio = lgi.Gio local Gtk = lgi.Gtk local GdkPixbuf = lgi.GdkPixbuf local window = Gtk.Window { title = 'Images', border_width = 8, Gtk.Box { id = 'vbox',...
return function(parent, dir) local coroutine = require 'coroutine' local lgi = require 'lgi' local bytes = require 'bytes' local GLib = lgi.GLib local Gio = lgi.Gio local Gtk = lgi.Gtk local GdkPixbuf = lgi.GdkPixbuf local window = Gtk.Window { title = 'Images', border_width = 8, Gtk.Box { id = 'vbox',...
gtkdemo: fix images loading
gtkdemo: fix images loading Another instance hit by Gio.InputStream[read|read_all|read_async] API change.
Lua
mit
psychon/lgi,pavouk/lgi
310679a01dacc039ddf6620c2fd890155b921f27
OS/DiskOS/Programs/help.lua
OS/DiskOS/Programs/help.lua
--Liko12 Help System ! local helpPATH = "C://Help/;C://Help/GPU/" local function nextPath() if helpPATH:sub(-1)~=";" then helpPATH=helpPATH..";" end return helpPATH:gmatch("(.-);") end local topic = select(1,...) topic = topic or "Welcome" local giveApi = select(2,...) if type(giveApi) == "boolean" then --Reque...
--Liko12 Help System ! local helpPATH = "C://Help/;C://Help/GPU/" local function nextPath() if helpPATH:sub(-1)~=";" then helpPATH=helpPATH..";" end return helpPATH:gmatch("(.-);") end local topic = select(1,...) topic = topic or "Welcome" local giveApi = select(2,...) if type(giveApi) == "boolean" then --Reque...
Reverted the colored help support because it's buggy and I don't have time before the FC Jam
Reverted the colored help support because it's buggy and I don't have time before the FC Jam
Lua
mit
RamiLego4Game/LIKO-12
7808a097124483a7245fbb3f8ebed8bd8fbf8ce2
testserver/item/id_90_flute.lua
testserver/item/id_90_flute.lua
-- I_90 Floete spielen -- UPDATE common SET com_script='item.id_90_flute' WHERE com_itemid=90; require("item.base.music") module("item.id_90_flute", package.seeall) item.base.music.addTalkText("#me produces some squeaking sounds on the flute.","#me macht einige quietschende Gerusche auf der Flte.","flute"); item.ba...
-- I_90 Floete spielen -- UPDATE common SET com_script='item.id_90_flute' WHERE com_itemid=90; require("item.base.music") module("item.id_90_flute", package.seeall) skill = Character.flute item.base.music.addTalkText("#me produces some squeaking sounds on the flute.","#me macht einige quietschende Gerusche auf der...
Fix flute
Fix flute
Lua
agpl-3.0
Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content
e08420e5543dd34a8510da2d4e43a67938fda86a
share/lua/playlist/vimeo.lua
share/lua/playlist/vimeo.lua
--[[ $Id$ Copyright © 2009-2013 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) François Revol (revol@free.fr) Pierre Ynard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
--[[ $Id$ Copyright © 2009-2013 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) François Revol (revol@free.fr) Pierre Ynard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
vimeo.lua: support channel video page URLs
vimeo.lua: support channel video page URLs Fix #16195
Lua
lgpl-2.1
xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc
84db6981bc34aacc6b3379f19d763f8895ac1aee
xmake.lua
xmake.lua
local modules = { Audio = { Deps = {"NazaraCore"}, Packages = {"dr_wav", "libflac", "libvorbis", "minimp3"}, Custom = function () add_packages("openal-soft", {links = {}}) -- Don't link OpenAL (it will be loaded dynamically) end }, Core = { Custom = function () add_headerfiles("include/(Nazara/*.hpp)...
local modules = { Audio = { Deps = {"NazaraCore"}, Packages = {"dr_wav", "libflac", "libvorbis", "minimp3"}, Custom = function () add_packages("openal-soft", {links = {}}) -- Don't link OpenAL (it will be loaded dynamically) end }, Core = { Custom = function () add_headerfiles("include/(Nazara/*.hpp)...
XMake: Fix allowed modes on Windows
XMake: Fix allowed modes on Windows
Lua
mit
DigitalPulseSoftware/NazaraEngine
be0e8c6d2404f6671ce82e8601f94eccd34b82ab
Helditemslist.lua
Helditemslist.lua
--[[ Module to create an entry in the list of Pokémon by wild held items. --]] local h = {} local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck: no unused local oop = require('Wikilib-oop') local list = require('Wikilib-lists') local mul...
--[[ Module to create an entry in the list of Pokémon by wild held items. --]] local h = {} local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck: no unused local oop = require('Wikilib-oop') local list = require('Wikilib-lists') local mul...
Fixed link to Perla in Helditemslist
Fixed link to Perla in Helditemslist
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
1529103d497e493ca2f8806ebffd1c939ec7bfe6
mbot_play_minetest/mod-mbot/mbot/init.lua
mbot_play_minetest/mod-mbot/mbot/init.lua
-- REST Arduino Interface -- Luca Colciago @dottork -- 13/12/2015 -- -- local www_box = { type = "regular" } local reset_meta = function(pos) minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]".."field[ArduinoIPAddress;ArduinoIPAddress;${ArduinoIPAddress}]") end local clears...
-- REST Arduino Interface -- Luca Colciago @dottork -- 13/12/2015 -- -- local www_box = { type = "regular" } local reset_meta = function(pos) minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]".."field[ArduinoIPAddress;ArduinoIPAddress;${ArduinoIPAddress}]") end local clears...
Piccoli fix alla mod_mbot
Piccoli fix alla mod_mbot
Lua
agpl-3.0
pdpfsug/playing-mBot,pdpfsug/playing-mBot
0e4f8f0823e07ea55aad633570531d46697735f8
spec/utils_spec.lua
spec/utils_spec.lua
local utils = require "luacheck.utils" describe("utils", function() describe("read_file", function() it("returns contents of a file", function() assert.equal("contents\n", utils.read_file("spec/folder/foo")) end) it("removes UTF-8 BOM", function() assert.equal("foo\nbar\n", util...
local utils = require "luacheck.utils" describe("utils", function() describe("read_file", function() it("returns contents of a file", function() assert.equal("contents\n", utils.read_file("spec/folder/foo")) end) it("removes UTF-8 BOM", function() assert.equal("foo\nbar\n", util...
Fix spec to work with latest luassert
Fix spec to work with latest luassert
Lua
mit
mpeterv/luacheck,linuxmaniac/luacheck,mpeterv/luacheck,mpeterv/luacheck,tst2005/luacheck,tst2005/luacheck,adan830/luacheck,adan830/luacheck,xpol/luacheck,linuxmaniac/luacheck,kidaa/luacheck,xpol/luacheck,xpol/luacheck,kidaa/luacheck
0b1fed4a41cf17dd97a8d9abbd7c81c21c9c3bc5
core/sessionmanager.lua
core/sessionmanager.lua
local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print= ipairs, pairs, print; local collectgarbage = collectgarbage; local m_random = import("math", "random"); local format = import("string", "format"); local hosts = hosts; local sessions = sessions; local modulemanager = require "core.modulemanag...
local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print, next= ipairs, pairs, print, next; local collectgarbage = collectgarbage; local m_random = import("math", "random"); local format = import("string", "format"); local hosts = hosts; local sessions = sessions; local modulemanager = require "core...
Final fix for marking user offline when all resources are gone :)
Final fix for marking user offline when all resources are gone :)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
44f12b0d97eb87e190e7642412e1d1b94002256b
tests/test-tls-sni-server-client.lua
tests/test-tls-sni-server-client.lua
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
Fix sni test to actually test something and not race and leak
Fix sni test to actually test something and not race and leak
Lua
apache-2.0
zhaozg/luvit,luvit/luvit,zhaozg/luvit,luvit/luvit
61b0f54731d3922b7e88a196f7140a2cf6101dec
includes/bootstrap.lua
includes/bootstrap.lua
local version = ('Ophal (ophal.org);version:0.1-alpha11') -- Jailed environment functions and modules env = { io = io, os = os, tonumber = tonumber, type = type, module = module, pcall = pcall, loadstring = loadstring, setfenv = setfenv, getfenv = getfenv, assert = assert, table = table, requir...
local version = ('Ophal (ophal.org);version:0.1-alpha11') -- Jailed environment functions and modules env = { io = io, os = os, tonumber = tonumber, type = type, module = module, pcall = pcall, loadstring = loadstring, setfenv = setfenv, getfenv = getfenv, assert = assert, table = table, requir...
Bug fix: bootstrap breaks when settings.lua is missing.
Bug fix: bootstrap breaks when settings.lua is missing.
Lua
agpl-3.0
ophal/core,coinzen/coinage,coinzen/coinage,coinzen/coinage,ophal/core,ophal/core
c28c94dae509421ae71ebac3e4d66f36d6690a48
kong/plugins/oauth2/migrations/001_14_to_15.lua
kong/plugins/oauth2/migrations/001_14_to_15.lua
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "oauth2_credentials" ADD "redirect_uris" TEXT[]; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END$$; DO $$ BEGIN UPDATE "oauth2_credentials" SET...
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "oauth2_credentials" ADD "redirect_uris" TEXT[]; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END$$; DO $$ BEGIN UPDATE "oauth2_credentials" SET...
hotfix(oauth2) make Cassandra migration more resilient (#4112)
hotfix(oauth2) make Cassandra migration more resilient (#4112) Avoid a crash if, during a Blue/Green migration, a new credential is inserted by the Blue cluster.
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong,Mashape/kong
d2e68068bf050eeecbb9e13775317929df7685c1
profiles/car.lua
profiles/car.lua
-- Begin of globals require("lib/access") barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true} access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = tru...
-- Begin of globals require("lib/access") barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true, ["entrance"] = true} access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = tru...
fixes #659
fixes #659
Lua
bsd-2-clause
raymond0/osrm-backend,jpizarrom/osrm-backend,deniskoronchik/osrm-backend,yuryleb/osrm-backend,oxidase/osrm-backend,atsuyim/osrm-backend,Conggge/osrm-backend,alex85k/Project-OSRM,oxidase/osrm-backend,neilbu/osrm-backend,antoinegiret/osrm-backend,Carsten64/OSRM-aux-git,beemogmbh/osrm-backend,deniskoronchik/osrm-backend,a...