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
2226dfc22c3e7a283016ed69b2fcdec3311d6e24
kong/plugins/acme/api.lua
kong/plugins/acme/api.lua
local client = require "kong.plugins.acme.client" local http = require "resty.http" local function find_plugin() for plugin, err in kong.db.plugins:each(1000) do if err then return nil, err end if plugin.name == "acme" then return plugin end end end return { ["/acme"] = { POST =...
local client = require "kong.plugins.acme.client" local http = require "resty.http" local function find_plugin() for plugin, err in kong.db.plugins:each(1000) do if err then return nil, err end if plugin.name == "acme" then return plugin end end end return { ["/acme"] = { POST =...
fix(acme) fix sanity check params to correctly test flow only (#40)
fix(acme) fix sanity check params to correctly test flow only (#40)
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
98336c4fcf0443df02292c9e8947a8cb4e968f1f
love2d/game.lua
love2d/game.lua
love.game = {} require "world" require "external/gui/gui" require "conf" function love.game.newGame() local o = {} o.state = 1 o.world = nil o.version = "0.0.0" o.x = 30 o.y = 20 o.xVel = 0.1 o.yVel = -0.1 o.init = function() o.world = love.game.newWorld() o.world.init() o.setupMenu() o.setState(...
love.game = {} require "world" require "external/gui/gui" require "conf" function love.game.newGame() local o = {} o.state = 1 o.world = nil o.version = "0.0.0" o.x = 30 o.y = 20 o.xVel = 0.1 o.yVel = -0.1 o.init = function() o.world = love.game.newWorld() o.world.init() o.setupMenu() o.setupCredi...
Added proper credits and slightly refactored game.lua (still many smells to fix)
Added proper credits and slightly refactored game.lua (still many smells to fix)
Lua
mit
nczempin/lizard-journey
b36e5079a6f1a78a47444370538005335bb18fa7
test_scripts/Polices/build_options/ATF_PM_change_status_UPDATE_NEEDED_after_timeout_expired.lua
test_scripts/Polices/build_options/ATF_PM_change_status_UPDATE_NEEDED_after_timeout_expired.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate][GENIVI] PoliciesManager changes status to “UPDATE_NEEDED” -- -- Description: -- SDL should request PTU in case new application is registered and is not listed in PT -- 1. Used pr...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate][GENIVI] PoliciesManager changes status to “UPDATE_NEEDED” -- -- Description: -- SDL should request PTU in case new application is registered and is not listed in PT -- 1. Used pr...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
a1ab08e58522b06f8a71e8c15c2d152cd32a250b
src/lua/switch.lua
src/lua/switch.lua
-- Copyright 2012 Snabb GmbH -- -- Ethernet switch module. -- -- Packets are represented as tables with the following fields: -- inputport = port the packet was received on -- src, dst = string representations of the ethernet src/dst addresses -- length = number of bytes of data -- data = pointer to me...
-- Copyright 2012 Snabb GmbH -- -- Ethernet switch module. -- -- Packets are represented as tables with the following fields: -- inputport = port the packet was received on -- src, dst = string representations of the ethernet src/dst addresses -- length = number of bytes of data -- data = pointer to me...
switch.lua: Fixed a bug -- don't send packets back out the ingress port.
switch.lua: Fixed a bug -- don't send packets back out the ingress port.
Lua
apache-2.0
dpino/snabb,wingo/snabb,virtualopensystems/snabbswitch,heryii/snabb,SnabbCo/snabbswitch,dpino/snabb,kbara/snabb,plajjan/snabbswitch,dpino/snabbswitch,kbara/snabb,andywingo/snabbswitch,justincormack/snabbswitch,snabbco/snabb,kbara/snabb,eugeneia/snabb,wingo/snabb,pavel-odintsov/snabbswitch,snabbco/snabb,eugeneia/snabb,I...
8679302e3ae285af670514a2d6ec9f764cd41bba
mock/common/LinePath2D.lua
mock/common/LinePath2D.lua
module 'mock' -------------------------------------------------------------------- CLASS: LinePath2D ( Component ) :MODEL{ Field 'verts' :array( 'number' ) :getset( 'Verts' ) :no_edit(); Field 'looped' :boolean() :isset( 'Looped' ); Field 'reverse' :action(); } registerComponent( 'LinePath2D', LinePath2D ) fu...
module 'mock' -------------------------------------------------------------------- CLASS: LinePath2D ( Component ) :MODEL{ Field 'verts' :array( 'number' ) :getset( 'Verts' ) :no_edit(); Field 'looped' :boolean() :isset( 'Looped' ); Field 'reverse' :action(); } registerComponent( 'LinePath2D', LinePath2D ) fu...
move path fix
move path fix
Lua
mit
tommo/mock
58d287464df637e298a25e66941ed6079085dda0
test_scripts/Polices/build_options/ATF_Start_PTU_retry_sequence.lua
test_scripts/Polices/build_options/ATF_Start_PTU_retry_sequence.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Local Policy Table retry sequence start -- -- Description: -- In case PoliciesManager does not receive the Updated PT during time defined in -- "timeout_after_x_seconds...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Local Policy Table retry sequence start -- -- Description: -- In case PoliciesManager does not receive the Updated PT during time defined in -- "timeout_after_x_seconds" section ...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
cf4327e605788211bd562da6131a761dd9d6d0a8
OS/DiskOS/Libraries/GUI/imageButton.lua
OS/DiskOS/Libraries/GUI/imageButton.lua
local path = select(1,...):sub(1,-(string.len("imageButton")+1)) local base = require(path..".base") --Wrap a function, used to add functions alias names. local function wrap(f) return function(self,...) local args = {pcall(self[f],self,...)} if args[1] then return select(2,unpack(args)) else ...
local path = select(1,...):sub(1,-(string.len("imageButton")+1)) local base = require(path..".base") --Wrap a function, used to add functions alias names. local function wrap(f) return function(self,...) local args = {pcall(self[f],self,...)} if args[1] then return select(2,unpack(args)) else ...
Bugfix image crash
Bugfix image crash
Lua
mit
RamiLego4Game/LIKO-12
e33752b08673a0622ff18933f9a182df9d9217ad
api/elasticsearch/client.lua
api/elasticsearch/client.lua
local oo = require "loop.base" require "broker" ElasticsearchBroker = oo.class({}, Broker) local DEFAULT_ES_PORT = 9200 local DEFAULT_ES_SERVER = "127.0.0.1" local DEFAULT_ES_PROTOCOL = PROTOCOLS.HTTP local request_path = "%s/_search" function ElasticsearchBroker:__init(server, port, protocol) server = server ...
local oo = require "loop.base" require "broker" ElasticsearchBroker = oo.class({}, Broker) local DEFAULT_ES_PORT = 9200 local DEFAULT_ES_SERVER = "127.0.0.1" local DEFAULT_ES_PROTOCOL = PROTOCOLS.HTTP local request_path = "%s/_search" function ElasticsearchBroker:__init(server, port, protocol) server = server ...
Fixing aggs dictionary key count
Fixing aggs dictionary key count
Lua
apache-2.0
airtonjal/Lua-JSON-Tester
58d36c482a29916d4131847852c4cfe2b1c76e03
test_scripts/Polices/build_options/006_ATF_P_TC_Policy_Table_Update_Trigger_After_N_Kilometers_HTTP.lua
test_scripts/Polices/build_options/006_ATF_P_TC_Policy_Table_Update_Trigger_After_N_Kilometers_HTTP.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PTU] Trigger: kilometers -- -- Description: -- If SDL is subscribed via SubscribeVehicleData(odometer) right after ignition on, SDL gets OnVehcileData ("odometer") notification from HMI -- and the d...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PTU] Trigger: kilometers -- -- Description: -- If SDL is subscribed via SubscribeVehicleData(odometer) right after ignition on, SDL gets OnVehcileData ("odometer") notification from HMI -- and the d...
Fix issues in script after clarification
Fix issues in script after clarification
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
ea62b0b94566e59e06c0801483e9c2dcef02d1ec
spec/plugins/logging_spec.lua
spec/plugins/logging_spec.lua
local IO = require "kong.tools.io" local uuid = require "uuid" local cjson = require "cjson" local stringy = require "stringy" local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" -- This is important to seed the UUID generator uuid.seed() local STUB_GET_URL = spec_help...
local IO = require "kong.tools.io" local uuid = require "uuid" local cjson = require "cjson" local stringy = require "stringy" local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" -- This is important to seed the UUID generator uuid.seed() local STUB_GET_URL = spec_help...
Fixing tests
Fixing tests Former-commit-id: fb1c0ee051969877c8289444db7d064bfe094e7c
Lua
apache-2.0
ind9/kong,shiprabehera/kong,ejoncas/kong,rafael/kong,Kong/kong,smanolache/kong,jerizm/kong,Mashape/kong,Kong/kong,isdom/kong,isdom/kong,kyroskoh/kong,jebenexer/kong,streamdataio/kong,akh00/kong,ccyphers/kong,ind9/kong,rafael/kong,ajayk/kong,kyroskoh/kong,li-wl/kong,icyxp/kong,salazar/kong,vzaramel/kong,ejoncas/kong,Ver...
b3a046edacb223bf2209dfd70131c132efb94a97
src/luarocks/test/command.lua
src/luarocks/test/command.lua
local command = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local cfg = require("luarocks.core.cfg") local unpack = table.unpack or unpack function command.detect_type() if fs.exists("test.lua") then return true end return false end function command.run_tests(test, args)...
local command = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local cfg = require("luarocks.core.cfg") local unpack = table.unpack or unpack function command.detect_type() if fs.exists("test.lua") then return true end return false end function command.run_tests(test, args)...
test: fix reporting failures on 'command' backend
test: fix reporting failures on 'command' backend
Lua
mit
luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,tarantool/luarocks,luarocks/luarocks,tarantool/luarocks,tarantool/luarocks,luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks
90e16f60354646e78fa68175b3d1ab2dca5e6c25
pythonlua/luainit.lua
pythonlua/luainit.lua
--[[ Begin the lua pythonization. --]] local string_meta = getmetatable("") string_meta.__add = function(v1, v2) if type(v1) == "string" and type(v2) == "string" then return v1 .. v2 end return v1 + v2 end local str = tostring local int = tonumber local function len(t) return #t end loca...
--[[ Begin the lua pythonization. --]] local string_meta = getmetatable("") string_meta.__add = function(v1, v2) if type(v1) == "string" and type(v2) == "string" then return v1 .. v2 end return v1 + v2 end local str = tostring local int = tonumber local function len(t) if type(t._data) ==...
Fixed list and dict bugs
Fixed list and dict bugs
Lua
apache-2.0
NeonMercury/python-lua
1f5c03d4013f6995fdfc0ec1d3bcf763f9081315
plugins/translate.lua
plugins/translate.lua
local translate = {} local HTTPS = require('ssl.https') local URL = require('socket.url') local JSON = require('dkjson') local functions = require('functions') function translate:init(configuration) translate.command = 'translate (text)' translate.triggers = functions.triggers(self.info.username, configuration.comman...
local translate = {} local HTTPS = require('ssl.https') local URL = require('socket.url') local JSON = require('dkjson') local functions = require('functions') function translate:init(configuration) translate.command = 'translate (text)' translate.triggers = functions.triggers(self.info.username, configuration.comman...
mattata v2.2.1
mattata v2.2.1 Fixed a small bug with /translate where messages couldn't be translated via reply - credit to eliKAAS for discovering this issue.
Lua
mit
barreeeiroo/BarrePolice
f6f9b22492f44dd7b07932098d35f183608ce55e
pkg/polarssl.pkg/xmake.lua
pkg/polarssl.pkg/xmake.lua
-- add polarssl package option("polarssl") -- show menu set_showmenu(true) -- set category set_category("package") -- set description set_description("The polarssl package") -- add defines to config.h if checking ok add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_POLARSSL") -- add l...
-- add polarssl package option("polarssl") -- show menu set_showmenu(true) -- set category set_category("package") -- set description set_description("The polarssl package") -- add defines to config.h if checking ok add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_POLARSSL") -- add l...
fix check polarssl
fix check polarssl
Lua
apache-2.0
waruqi/tbox,waruqi/tbox,tboox/tbox,tboox/tbox
c5b6f4294325652899ccca0419d7058cfadd7c85
modules/luci-base/luasrc/controller/admin/index.lua
modules/luci-base/luasrc/controller/admin/index.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.index", package.seeall) function index() function toplevel_page(page, preflookup, preftarget) if preflookup and preftarget then if lookup(preflookup) then page.target = p...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.index", package.seeall) function index() function toplevel_page(page, preflookup, preftarget) if preflookup and preftarget then if lookup(preflookup) then page.target = p...
luci-base: fix handling of large ubus HTTP requests
luci-base: fix handling of large ubus HTTP requests Properly handle ubus POST requests exceeding the default chunk size and fix a possible nil dereference when rejecting incoming requests due to bad JSON message framing. Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
Lua
apache-2.0
nmav/luci,lbthomsen/openwrt-luci,artynet/luci,rogerpueyo/luci,hnyman/luci,tobiaswaldvogel/luci,Noltari/luci,tobiaswaldvogel/luci,tobiaswaldvogel/luci,Noltari/luci,nmav/luci,nmav/luci,tobiaswaldvogel/luci,openwrt/luci,artynet/luci,hnyman/luci,nmav/luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,openwrt/luci,lbthom...
929eca2ea45cc3adeab8c3780d94980a7012541a
packages/features.lua
packages/features.lua
local lpeg = require("lpeg") local S, P, C = lpeg.S, lpeg.P, lpeg.C local Cf, Ct = lpeg.Cf, lpeg.Ct local opentype = { -- Mapping of opentype features to friendly names Ligatures = { Required = "rlig", Common = "liga", Contextual = "clig", Rare = "dlig", Discretionary = "dlig", Historic = "h...
local lpeg = require("lpeg") local S, P, C = lpeg.S, lpeg.P, lpeg.C local Cf, Ct = lpeg.Cf, lpeg.Ct local opentype = { -- Mapping of opentype features to friendly names Ligatures = { Required = "rlig", Common = "liga", Contextual = "clig", Rare = "dlig", Discretionary = "dlig", Historic = "h...
fix(packages): Add CharacterVariant to features
fix(packages): Add CharacterVariant to features
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
2ea4224e153b0dd3560f897fe40a2e3e4a220ce9
mod_push_appserver_fcm/mod_push_appserver_fcm.lua
mod_push_appserver_fcm/mod_push_appserver_fcm.lua
-- mod_push_appserver_fcm -- -- Copyright (C) 2017 Thilo Molitor -- -- This file is MIT/X11 licensed. -- -- Submodule implementing FCM communication -- -- imports -- unlock prosody globals and allow ltn12 to pollute the global space -- this fixes issue #8 in prosody 0.11, see also https://issues.prosody.im/1033 prosod...
-- mod_push_appserver_fcm -- -- Copyright (C) 2017 Thilo Molitor -- -- This file is MIT/X11 licensed. -- -- Submodule implementing FCM communication -- -- imports -- unlock prosody globals and allow ltn12 to pollute the global space -- this fixes issue #8 in prosody 0.11, see also https://issues.prosody.im/1033 prosod...
Better fix for #8
Better fix for #8
Lua
mit
tmolitor-stud-tu/mod_push_appserver,tmolitor-stud-tu/mod_push_appserver
5c27022f29c4183169f0e6b0c1ce3dfd3e2a3a17
zpm.lua
zpm.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
Fix coverage build
Fix coverage build
Lua
mit
Zefiros-Software/SerLib2
b65778b7391aa30ced8034861d10a6a75b651870
src/nodish/stream.lua
src/nodish/stream.lua
local ev = require'ev' local S = require'syscall' local loop = ev.Loop.default local EAGAIN = S.c.E.AGAIN local readable = function(emitter) self = emitter assert(self.watchers) self.add_read_watcher = function(_,fd) assert(self._read) if self.watchers.read then return end local watchers =...
local ev = require'ev' local S = require'syscall' local loop = ev.Loop.default local EAGAIN = S.c.E.AGAIN local readable = function(emitter) self = emitter assert(self.watchers) self.add_read_watcher = function(_,fd) assert(self._read) if self.watchers.read then return end local watchers =...
fix nexttick usage
fix nexttick usage
Lua
mit
lipp/nodish
762c4de31d7e8d561495aa5cbafccbe8061e2e90
otouto/plugins/antilink.lua
otouto/plugins/antilink.lua
local bindings = require('otouto.bindings') local utilities = require('otouto.utilities') local autils = require('otouto.administration') local antilink = {} function antilink:init() assert(self.named_plugins.flags, antilink.name .. ' requires flags') self.named_plugins.flags.flags[antilink.name] = 'P...
local bindings = require('otouto.bindings') local utilities = require('otouto.utilities') local autils = require('otouto.administration') local antilink = {} function antilink:init() assert(self.named_plugins.flags, antilink.name .. ' requires flags') self.named_plugins.flags.flags[antilink.name] = 'P...
more antilink improvements, moving store to the db and some bugfixes
more antilink improvements, moving store to the db and some bugfixes
Lua
agpl-3.0
topkecleon/otouto
eafbb9ec5dcad8c1942cbe8e5698bf9d549394a3
scene/info.lua
scene/info.lua
-- -- Ekran wyświetlający komunikat. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = require( '...
-- -- Ekran wyświetlający komunikat. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = require( '...
Bugfix with no sound
Bugfix with no sound
Lua
mit
ldurniat/The-Great-Pong,ldurniat/My-Pong-Game
79c656da2d4a725c7845e40fc0ddedc70ad046b2
spawn/init.lua
spawn/init.lua
local kill = require "spawn.kill" local posix = require "spawn.posix" local sigset = require "spawn.sigset" local wait = require "spawn.wait" local default_file_actions = posix.new_file_actions() local default_attr = posix.new_attr() local function start(program, ...) return posix.spawnp(program, default_file_action...
local kill = require "spawn.kill" local posix = require "spawn.posix" local sigset = require "spawn.sigset" local wait = require "spawn.wait" local default_file_actions = posix.new_file_actions() local default_attr = posix.new_attr() local function start(program, ...) return posix.spawnp(program, default_file_action...
spawn/init: Fix error handling in `run`
spawn/init: Fix error handling in `run`
Lua
mit
daurnimator/lua-spawn
18a815527129ea65a709dce6bb41466a2535a79f
src/core/buffer.lua
src/core/buffer.lua
module(...,package.seeall) local ffi = require("ffi") local memory = require("core.memory") local freelist = require("core.freelist") local lib = require("core.lib") local C = ffi.C require("core.packet_h") max = 10e5 allocated = 0 buffersize = 4096 buffers = freelist.new("struct buffer *", max) buffer_t = ...
module(...,package.seeall) local ffi = require("ffi") local memory = require("core.memory") local freelist = require("core.freelist") local lib = require("core.lib") local C = ffi.C require("core.packet_h") max = 10e5 allocated = 0 buffersize = 4096 buffers = freelist.new("struct buffer *", max) buffer_t = ...
Fix initialization bug in buffer.new_buffer()
Fix initialization bug in buffer.new_buffer() The origin.type member of a newly allocated buffer needs to be set explicitely after receiving a memory block with undefined contents from malloc(3).
Lua
apache-2.0
Igalia/snabb,snabbco/snabb,eugeneia/snabbswitch,Igalia/snabb,snabbco/snabb,lukego/snabb,dpino/snabb,lukego/snabbswitch,eugeneia/snabb,virtualopensystems/snabbswitch,lukego/snabbswitch,eugeneia/snabb,alexandergall/snabbswitch,pirate/snabbswitch,justincormack/snabbswitch,heryii/snabb,alexandergall/snabbswitch,kellabyte/s...
fa2c9156b1de9be58fe8ae8efbc161a24eacb096
src/System.lua
src/System.lua
local P = {} local Log = require 'Log' function P.quote(...) local function quote(arg) return string.format('%q', tostring(arg)) end return table.concat(table.imap({...}, quote), ' ') end function P.mkpath(...) local sep = '/' local path = {} for _, c in ipairs({...}) do table...
local P = {} local Log = require 'Log' function P.quote(...) local function quote(arg) return string.format('%q', tostring(arg)) end return table.concat(table.imap({...}, quote), ' ') end function P.expand(...) return P.pread('*a', 'printf "%s" '..P.quote(...), '%s') end function P.mkpath(.....
Add System.expand, fix double expansion of command when debug logging
Add System.expand, fix double expansion of command when debug logging
Lua
mit
bazurbat/jagen
7bb0d4215eeb03b771f549979404a21204c3be71
src/Source.lua
src/Source.lua
local system = require 'system' local Source = {} function Source:new(o) local o = o or {} setmetatable(o, self) self.__index = self return o end local GitSource = Source:new() local HgSource = Source:new() local RepoSource = Source:new() -- Source function Source:is_scm() return self.type ...
local system = require 'system' local Source = {} function Source:new(o) local o = o or {} setmetatable(o, self) self.__index = self return o end local GitSource = Source:new() local HgSource = Source:new() local RepoSource = Source:new() -- Source function Source:is_scm() return self.type ...
Fix RepoSource clean command
Fix RepoSource clean command
Lua
mit
bazurbat/jagen
037b74ae662ac6607117e705bd43457b87ee84b9
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 tooltip factory
fix tooltip factory
Lua
mit
scottcs/wyx
d25f181682aeebb0d04e44d0ca704686f037542b
src/system.lua
src/system.lua
function table.firstElement(list) for index, value in pairs(list) do return value end end System = class("System") function System:__init() -- Liste aller Entities, die die RequiredComponents dieses Systems haben self.targets = {} self.active = true end function System:requires() return {...
function table.firstElement(list) for index, value in pairs(list) do return value end end System = class("System") function System:__init() -- Liste aller Entities, die die RequiredComponents dieses Systems haben self.targets = {} self.active = true end function System:requires() return {...
Multiple requirement removing of system fixed
Multiple requirement removing of system fixed
Lua
mit
takaaptech/lovetoys,xpol/lovetoys
d7abb2b7a0bf0a51d7d7da685fe5e63ddede2426
gumbo/serialize/html5lib.lua
gumbo/serialize/html5lib.lua
local util = require "gumbo.serialize.util" local Rope = util.Rope return function(node) local rope = Rope() local indent = " " local level = 0 local function serialize(node) if node.type == "element" then local i1, i2 = indent:rep(level), indent:rep(level+1) if node.ta...
local util = require "gumbo.serialize.util" local Rope = util.Rope return function(node) local rope = Rope() local indent = " " local level = 0 local function serialize(node) if node.type == "element" then local i1, i2 = indent:rep(level), indent:rep(level+1) if node.ta...
Fix DOCTYPE serialization in gumbo/serialize/html5lib.lua
Fix DOCTYPE serialization in gumbo/serialize/html5lib.lua
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
a2a4c534ed3f1b64a04e3224fb2f0c1d965f1cc5
interface/configenv/flow.lua
interface/configenv/flow.lua
local Flow = {} local _time_units = { [""] = 1, ms = 1 / 1000, s = 1, m = 60, h = 3600 } local _size_units = { [""] = 1, k = 10 ^ 3, ki = 2 ^ 10, m = 10 ^ 6, mi = 2 ^ 20, g = 10 ^ 9, gi = 2 ^ 30 } local _option_list = { rate = { parse = function(self, rate) if type(rate) == "number" then self.cbr = rat...
local Flow = {} local _time_units = { [""] = 1, ms = 1 / 1000, s = 1, m = 60, h = 3600 } local _size_units = { [""] = 1, k = 10 ^ 3, ki = 2 ^ 10, m = 10 ^ 6, mi = 2 ^ 20, g = 10 ^ 9, gi = 2 ^ 30 } local _option_list = { rate = { parse = function(self, rate) if type(rate) == "number" then self.cbr = rat...
Fix option validation.
Fix option validation.
Lua
mit
scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,emmericp/MoonGen
9d432517b71840322ed2f2475547a5524aa6d49d
gjk.lua
gjk.lua
--[[ Copyright (c) 2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
--[[ Copyright (c) 2012 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
Hackish fix for 97ae2d89 and parent.
Hackish fix for 97ae2d89 and parent. A clean solution needs more investigation, but this will work for now.
Lua
mit
aswyk/botrot
f2b901911268a9f620774d9537f326942f774e8a
src/remy/cgilua.lua
src/remy/cgilua.lua
-- Remy - CGI-Lua compatibility -- Copyright (c) 2014 Felipe Daragon -- License: MIT require "base64" -- TODO: implement all functions from mod_lua's request_rec local request = { -- ENCODING/DECODING FUNCTIONS base64_decode = function(_,...) return base64.decode(...) end, base64_encode = function(_,...) return ba...
-- Remy - CGI-Lua compatibility -- Copyright (c) 2014 Felipe Daragon -- License: MIT require "base64" -- TODO: implement all functions from mod_lua's request_rec local request = { -- ENCODING/DECODING FUNCTIONS base64_decode = function(_,...) return base64.decode(...) end, base64_encode = function(_,...) return ba...
Update cgilua.lua
Update cgilua.lua Fixing uri coming from cgilua requests for Xavante compatibility
Lua
mit
noname007/sailor,Etiene/sailor,mpeterv/sailor,ignacio/sailor,felipedaragon/sailor,sailorproject/sailor,mpeterv/sailor,hallison/sailor,ignacio/sailor,felipedaragon/sailor,jeary/sailor,Etiene/sailor
3b4d7ce56d1d53af69a77e3c3101c93113f18548
lgi/override/Gio-DBus.lua
lgi/override/Gio-DBus.lua
------------------------------------------------------------------------------ -- -- lgi Gio DBus override module. -- -- Copyright (c) 2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- lgi Gio DBus override module. -- -- Copyright (c) 2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ------------------------------------------------------------------...
Work around incorect annotation on Gio.DBusProxy.get_interface_info
Work around incorect annotation on Gio.DBusProxy.get_interface_info The return value should be "transfer=none", but since it is not annotated as such, it gets "transfer=full". Work around this with a hand-written bindings based on core.callable. This fixes the test added by the previous commit. Signed-off-by: Uli Sc...
Lua
mit
psychon/lgi,pavouk/lgi
38ec00d9351a61ea0365ac6fd2252b812744ba66
helper/string.lua
helper/string.lua
-- Copyright (C) Dejiang Zhu (doujiang24) local utf8 = require "system.helper.utf8" local find = string.find local sub = string.sub local insert = table.insert local concat = table.concat local type = type local re_gsub = ngx.re.gsub local random = math.random local time = ngx.time local gsub = string.gsub local gmat...
-- Copyright (C) Dejiang Zhu (doujiang24) local utf8 = require "system.helper.utf8" local find = string.find local sub = string.sub local insert = table.insert local concat = table.concat local type = type local re_gsub = ngx.re.gsub local random = math.random local time = ngx.time local gsub = string.gsub local gmat...
bugfix: \0 is string ending in c, can not use in pcre; * means any char, + means more instead
bugfix: \0 is string ending in c, can not use in pcre; * means any char, + means more instead
Lua
mit
doujiang24/durap-system
14982f45ae5be42b2ed716278d7bf7f0d4af6b50
quest/rutrus_67_cadomyr_wilderness.lua
quest/rutrus_67_cadomyr_wilderness.lua
-- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (67, 'quest.rutrus_67_cadomyr_wilderness'); require("base.common") module("quest.rutrus_67_cadomyr_wilderness", package.seeall) GERMAN = Player.german ENGLISH = Player.english -- Insert the quest title here, in both languages Title = {} Title[GERMAN] ...
-- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (67, 'quest.rutrus_67_cadomyr_wilderness'); require("base.common") module("quest.rutrus_67_cadomyr_wilderness", package.seeall) GERMAN = Player.german ENGLISH = Player.english -- Insert the quest title here, in both languages Title = {} Title[GERMAN] ...
Bugfix
Bugfix
Lua
agpl-3.0
vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content
53e78405d71c9b78d0a60e0d038c472fdb33280a
lib/train/epoch_state.lua
lib/train/epoch_state.lua
require 'torch' --[[ Class for managing the training process by logging and storing the state of the current epoch. ]] local EpochState = torch.class("EpochState") --[[ Initialize for epoch `epoch` and training `status` (current loss)]] function EpochState:__init(epoch, num_iterations, learning_rate, status) self...
require 'torch' --[[ Class for managing the training process by logging and storing the state of the current epoch. ]] local EpochState = torch.class("EpochState") --[[ Initialize for epoch `epoch` and training `status` (current loss)]] function EpochState:__init(epoch, num_iterations, learning_rate, status) self...
fix "infinite" minimal memory value that was too low
fix "infinite" minimal memory value that was too low
Lua
mit
OpenNMT/OpenNMT,jsenellart/OpenNMT,cservan/OpenNMT_scores_0.2.0,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,srush/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,da03/OpenN...
3c593e387bc4383e9a1f1060a3c34ff3109b4751
src/lua_libraries/agent.lua
src/lua_libraries/agent.lua
local cjson = require("cjson.safe") local sleep = require("socket") local ldbus = require("ldbus") local agent = { conn = assert(ldbus.bus.get("session")) } assert(assert(ldbus.bus.request_name(agent.conn , "dynamicagent.signal.sink" , {replace_existing = true})) == "primary_owner" , "Not Primary Owner") -- DBus...
local cjson = require("cjson.safe") local sleep = require("socket") local ldbus = require("ldbus") local agent = { conn = assert(ldbus.bus.get("session")) } local full_path = (arg[0]):match("^.+/(.+)$") if full_path == nil then full_path = arg[0] end assert(assert(ldbus.bus.request_name(agent.conn , "dynami...
Fixed multiple agents collision for getting dbus namespace. Also fixed infinite while loop if no D-Bus signals on initation
Fixed multiple agents collision for getting dbus namespace. Also fixed infinite while loop if no D-Bus signals on initation
Lua
mpl-2.0
PDXostc/rvi_dynamic_agents,PDXostc/rvi_dynamic_agents
bf3fd18cf16928b1f8fcff532c37993fe01d99e9
home/config/nvim/lua/plugins/alpha.lua
home/config/nvim/lua/plugins/alpha.lua
local alpha = require'alpha' local dashboard = require'alpha.themes.dashboard' dashboard.section.header.val = { [[███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]], [[████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]], [[██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]], [[██║╚██╗██║ ██╔══╝...
local alpha = require'alpha' local dashboard = require'alpha.themes.dashboard' dashboard.section.header.val = { [[███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]], [[████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]], [[██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]], [[██║╚██╗██║ ██╔══╝...
fix(nvim): remove fortune call in alpha.lua
fix(nvim): remove fortune call in alpha.lua
Lua
unlicense
knpwrs/dotfiles
44ebea556a502684a63f4619ac341f50f165df0f
src/rspamadm/fuzzy_stat.lua
src/rspamadm/fuzzy_stat.lua
--Res here is the table of the following args: --workers: { -- pid: { -- data: { -- key_id: { -- matched: -- scanned: -- added: -- removed: -- errors: -- last_ips: { -- ip: { -- matched: -- scanned -- added: -- removed: -- } -- } -...
--Res here is the table of the following args: --workers: { -- pid: { -- data: { -- key_id: { -- matched: -- scanned: -- added: -- removed: -- errors: -- last_ips: { -- ip: { -- matched: -- scanned -- added: -- removed: -- } -- } -...
Fix output
Fix output
Lua
apache-2.0
minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,...
d9a8b9a64f055b000b06f0364c7b1fd28528252f
Source/PinnedDownClient/PinnedDownClient/Assets/Text/English.lua
Source/PinnedDownClient/PinnedDownClient/Assets/Text/English.lua
Card_0_0 = "Bridge Hit" Card_0_1 = "Cargo Bay Hit" Card_0_3 = "Direct Hit" Card_0_4 = "Engine Room Hit" Card_0_5 = "Engines Hit" Card_0_6 = "Sickbay Hit" Card_0_7 = "Weapon Systems Hit" Card_0_45 = "Ace In The Hole" Card_0_48 = "Never Say Die" Card_0_54 = "Berlin" Card_0_55 = "London" Card_0_56 = "Moscow" Card_0_57 = "...
Card_0_0 = "Bridge Hit" Card_0_1 = "Cargo Bay Hit" Card_0_3 = "Direct Hit" Card_0_4 = "Engine Room Hit" Card_0_5 = "Engines Hit" Card_0_6 = "Sickbay Hit" Card_0_7 = "Weapon Systems Hit" Card_0_45 = "Ace In The Hole" Card_0_48 = "Never Say Die" Card_0_54 = "Berlin" Card_0_55 = "London" Card_0_56 = "Moscow" Card_0_57 = "...
FIXED #40 UI - Show useful links with error messages
FIXED #40 UI - Show useful links with error messages
Lua
mit
npruehs/pinned-down-client-win8,npruehs/pinned-down-client-win8
8797fd5adfea08e23b5515bc087db0f3fc816570
testserver/npc/base/condition/skill.lua
testserver/npc/base/condition/skill.lua
require("base.class") require("npc.base.condition.condition") module("npc.base.condition.skill", package.seeall) skill = base.class.class(npc.base.condition.condition.condition, function(self, name, comp, value) npc.base.condition.condition.condition:init(self); self["value"], self["valuetype"] = npc.base.tal...
require("base.class") require("npc.base.condition.condition") module("npc.base.condition.skill", package.seeall) skill = base.class.class(npc.base.condition.condition.condition, function(self, name, comp, value) npc.base.condition.condition.condition:init(self); self["value"], self["valuetype"] = npc.base.tal...
Bug in easyNPC
Bug in easyNPC
Lua
agpl-3.0
KayMD/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content
419c943b8e72a11a21631c0b63ac60ad5de70f13
src/program/alarms/set_operator_state/set_operator_state.lua
src/program/alarms/set_operator_state/set_operator_state.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local common = require("program.config.common") function show_usage(status, err_msg) if err_msg then print('error: '..err_msg) end print(require("program.alarms.set_operator_state.README_inc")) main.exi...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local common = require("program.config.common") function show_usage(program, status, err_msg) if err_msg then print('error: '..err_msg) end print(require("program.alarms.set_operator_state.README_inc")) ...
Fix error message
Fix error message
Lua
apache-2.0
Igalia/snabbswitch,eugeneia/snabbswitch,dpino/snabb,alexandergall/snabbswitch,Igalia/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabb,alexandergall/snabbswitch,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,dpino/snabb,eugeneia/snabbswitch,Igalia/snabbswitch,Igalia/snabb,eugeneia/snabb,eugeneia...
bae982571abb9c109c28cc90aabefe5f7b2c92c8
src/analytics/delrequest.lua
src/analytics/delrequest.lua
-- -- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. -- local sm = ARGV[1]..":"..ARGV[2]..":"..ARGV[3]..":"..ARGV[4] local ngen_sm = ARGV[1]..":"..ARGV[2]..":"..ARGV[3]..":"..ARGV[6] redis.log(redis.LOG_NOTICE,"DelRequest for "..sm) local db = tonumber(ARGV[5]) redis.call('select',db) local typ = red...
-- -- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. -- local sm = ARGV[1]..":"..ARGV[2]..":"..ARGV[3]..":"..ARGV[4] local ngen_sm = ARGV[1]..":"..ARGV[2]..":"..ARGV[3]..":"..ARGV[6] redis.log(redis.LOG_NOTICE,"DelRequest for "..sm) local db = tonumber(ARGV[5]) redis.call('select',db) local typ = red...
We should not queue UVEs for delete during generator removal. Closes-Bug:1671281
We should not queue UVEs for delete during generator removal. Closes-Bug:1671281 Change-Id: I36d63950c52833388fb072fc97eb66de37c73f58
Lua
apache-2.0
rombie/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,nischalsheth/contrail-controller,eonpatapon/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-cont...
bc28bde4db80c8f5131bc71dd71d04f508618c8b
agents/monitoring/tests/fixtures/protocol/server.lua
agents/monitoring/tests/fixtures/protocol/server.lua
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local tls = require('tls') local timer = require('timer') local lineEmitter = LineEmitter:new() local port = 50041 local send_schedule_changed_initial = 2000 local send_schedul...
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local lineEmitter = LineEmitter:new() local ports = {500...
monitoring: tests: server: listen on multiple ports
monitoring: tests: server: listen on multiple ports listen on all of the expected ports of the fixtures config file. Then randomly disconnect the agent at random intervals to test the retry logic.
Lua
apache-2.0
cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,vi...
368693b7a8599941d5bfe3b73f440e16ff115a24
src/lua-factory/sources/grl-pocket.lua
src/lua-factory/sources/grl-pocket.lua
--[[ * Copyright (C) 2015 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2015 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
lua-factory: port grl-pocket.lua to the new lua system
lua-factory: port grl-pocket.lua to the new lua system https://bugzilla.gnome.org/show_bug.cgi?id=753141 Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
Lua
lgpl-2.1
jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins
ae1d5eca726701e37ff1c0b59d25b260efc3c673
CircuitsUI_0.1.0/control.lua
CircuitsUI_0.1.0/control.lua
--control.lua -- Show ALL signals connected to network, and the value of them -- Button in top left to open up list of all UI Combinators -- Condition on UI combinator for when to auto-show the data -- Work in multiplayer -- Configure update interval require "libs.itemselection" require "signal_gui" --We'll keep our ...
--control.lua -- Show ALL signals connected to network, and the value of them -- Button in top left to open up list of all UI Combinators -- Condition on UI combinator for when to auto-show the data -- Work in multiplayer -- Configure update interval require "libs.itemselection" require "signal_gui" --We'll keep our ...
CircuitsUI: Fix removing
CircuitsUI: Fix removing
Lua
mit
Zomis/FactorioMods
9bb0ad04429498a0f3e232e6b9b85addc4b27ccb
worldedit_commands/mark.lua
worldedit_commands/mark.lua
worldedit.marker1 = {} worldedit.marker2 = {} worldedit.marker_region = {} --marks worldedit region position 1 worldedit.mark_pos1 = function(name) local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name] if pos1 ~= nil then --make area stay loaded local manip = minetest.get_voxel_manip() mani...
worldedit.marker1 = {} worldedit.marker2 = {} worldedit.marker_region = {} --marks worldedit region position 1 worldedit.mark_pos1 = function(name) local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name] if pos1 ~= nil then --make area stay loaded local manip = minetest.get_voxel_manip() mani...
Fix double-definition of visual_size in entity def
Fix double-definition of visual_size in entity def
Lua
agpl-3.0
Uberi/Minetest-WorldEdit
6f671cc17fbd9648de6034a0c9239dabb8b12316
nvim/lua/local/packer.lua
nvim/lua/local/packer.lua
-- https://github.com/wbthomason/packer.nvim#notices -- https://github.com/wbthomason/packer.nvim#bootstrapping -- If you want to automatically install and set up packer.nvim on any machine -- you clone your configuration to, add the following snippet -- (which is due to @Iron-E and @khuedoan) -- somewhere in your con...
-- https://github.com/wbthomason/packer.nvim#notices -- https://github.com/wbthomason/packer.nvim#bootstrapping -- If you want to automatically install and set up packer.nvim on any machine -- you clone your configuration to, add the following snippet -- (which is due to @Iron-E and @khuedoan) -- somewhere in your con...
Update the url used in packer to install vim-fugitive, this fixes an issue where it wants to remove and re-install fugitive on every run of packer
Update the url used in packer to install vim-fugitive, this fixes an issue where it wants to remove and re-install fugitive on every run of packer
Lua
mit
jeffbuttars/nvim
c98cf3f776ea6d61cec4071647e04b1a0544a50c
game/mapgen.lua
game/mapgen.lua
-- Implementation of map generation. -- The function returned by this library becomes the Map:generate() method. local function in_bounds(map, x, y, w, h) return x >= 0 and y >= 0 and x+w < map.w and y+h < map.h end local opposite = { n='s'; s='n'; e='w'; w='e'; } local function pushDoor(self, door, x, y) table....
-- Implementation of map generation. -- The function returned by this library becomes the Map:generate() method. local function in_bounds(map, x, y, w, h) return x >= 0 and y >= 0 and x+w < map.w and y+h < map.h end local opposite = { n='s'; s='n'; e='w'; w='e'; } local function pushDoor(self, door, x, y) table....
Fix a bug in creation of objects-in-void
Fix a bug in creation of objects-in-void
Lua
mit
ToxicFrog/ttymor
688065673c36823b8c285516cfbc951ba4c0f884
lib/Async.lua
lib/Async.lua
--- -- Execute a query with no result required -- -- @param query -- @param params -- @param func -- @param Transaction transaction -- -- @return coroutine -- function MySQL.Async.execute(query, params, func, transaction) local Command = MySQL.Utils.CreateCommand(query, params, transaction) local executeTask =...
--- -- Execute a query with no result required -- -- @param query -- @param params -- @param func -- @param Transaction transaction -- -- @return coroutine -- function MySQL.Async.execute(query, params, func, transaction) local Command = MySQL.Utils.CreateCommand(query, params, transaction) local executeTask =...
Fix fetchall result transform for callback
Fix fetchall result transform for callback
Lua
mit
brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async
4bdef6885b5ff5f86b52c074c9a9d453a68d6fc0
src/plugins/lua/phishing.lua
src/plugins/lua/phishing.lua
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> 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...
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> 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...
[Feature] Improve phishing plugin
[Feature] Improve phishing plugin - Ignore redirected URLs - Fix levenshtein distance calculations
Lua
bsd-2-clause
andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/r...
6b73c1d4e673b74db6b137e125dd7142084eb198
orange/utils/headers.lua
orange/utils/headers.lua
-- -- Created by IntelliJ IDEA. -- User: soul11201 <soul11201@gmail.com> -- Date: 2017/4/26 -- Time: 20:50 -- To change this template use File | Settings | File Templates. -- local handle_util = require("orange.utils.handle") local extractor_util = require("orange.utils.extractor") local _M = {} local function set_h...
-- -- Created by IntelliJ IDEA. -- User: soul11201 <soul11201@gmail.com> -- Date: 2017/4/26 -- Time: 20:50 -- To change this template use File | Settings | File Templates. -- local handle_util = require("orange.utils.handle") local extractor_util = require("orange.utils.extractor") local _M = {} local function set_h...
refactor: headers.lua del log && fix info
refactor: headers.lua del log && fix info
Lua
mit
thisverygoodhhhh/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange
4aa3b704739e3398402fbbef1216ae588ff9be2e
src/plugins/lua/received_rbl.lua
src/plugins/lua/received_rbl.lua
-- This plugin is designed for testing received headers via rbl -- Configuration: -- .module 'received_rbl' { -- rbl = "insecure-bl.rambler.ru"; -- rbl = "xbl.spamhaus.org"; -- symbol = "RECEIVED_RBL"; -- }; local symbol = 'RECEIVED_RBL' local rbls = {} function dns_cb(task, to_resolve, results, err) ...
-- This plugin is designed for testing received headers via rbl -- Configuration: -- .module 'received_rbl' { -- rbl = "insecure-bl.rambler.ru"; -- rbl = "xbl.spamhaus.org"; -- symbol = "RECEIVED_RBL"; -- }; local symbol = 'RECEIVED_RBL' local rbls = {} function dns_cb(task, to_resolve, results, err) ...
Fix configuration of received_rbl module.
Fix configuration of received_rbl module.
Lua
bsd-2-clause
andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,awhitesong/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,amohanta/rspamd,AlexeySa/rspamd,minaevmike/rspamd,dark-al/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,amohanta/rspamd,amohanta/rspamd,awhiteson...
1259877163f90dfe7f37adac44eeeb5f377dc1da
tests/AceDB-3.0-defaults.lua
tests/AceDB-3.0-defaults.lua
dofile("wow_api.lua") dofile("LibStub.lua") dofile("../CallbackHandler-1.0/CallbackHandler-1.0.lua") dofile("../AceDB-3.0/AceDB-3.0.lua") dofile("serialize.lua") -- Test the defaults system do local defaults = { profile = { singleEntry = "singleEntry", tableEntry = { tableDefault = "tableDefault", }, ...
dofile("wow_api.lua") dofile("LibStub.lua") dofile("../CallbackHandler-1.0/CallbackHandler-1.0.lua") dofile("../AceDB-3.0/AceDB-3.0.lua") dofile("serialize.lua") -- Test the defaults system do local defaults = { profile = { singleEntry = "singleEntry", tableEntry = { tableDefault = "tableDefault", }, ...
Ace3 - fix some tests
Ace3 - fix some tests git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@275 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
bb5c910b85023842518a06b0eb0439f7b8418858
FabFileConverter/res/drl.lua
FabFileConverter/res/drl.lua
drl_lines = {} drl_tool_colors = {} function addColor(rgb) drl_tool_colors[#drl_tool_colors + 1] = rgb end addColor(Colors.RGB(255,0,0)) addColor(Colors.RGB(0,255,0)) addColor(Colors.RGB(0,0,255)) addColor(Colors.RGB(255,255,0)) addColor(Colors.RGB(0,255,255)) addColor(Colors.RGB(255,0,255)) addColor(Colors.RGB(255...
drl_lines = {} drl_tool_colors = {} function addColor(rgb) drl_tool_colors[#drl_tool_colors + 1] = rgb end addColor(Colors.RGB(255,0,0)) addColor(Colors.RGB(0,255,0)) addColor(Colors.RGB(0,0,255)) addColor(Colors.RGB(255,255,0)) addColor(Colors.RGB(0,255,255)) addColor(Colors.RGB(255,0,255)) addColor(Colors.RGB(255...
Fixed drl bug with scaling.
Fixed drl bug with scaling.
Lua
mit
DeltaCore/FabFileConverter
75445137a0758c578ad07e1c24a85316662eaf3e
init.lua
init.lua
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
Fixed incorrect suggestion pasting when only one suggestion availible
Fixed incorrect suggestion pasting when only one suggestion availible
Lua
mit
xomachine/textadept-nim
88d7dec24a82d47f706a80e5382915bb8e7aaa5d
nyagos.d/trash.lua
nyagos.d/trash.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.trash = function(args) if #args <= 0 then nyagos.writerr("Move files or directories to Windows Trashbox\n") nyagos.writerr("Usage: trash file(s)...\n") return end local ...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.trash = function(args) if #args <= 0 then nyagos.writerr("Move files or directories to Windows Trashbox\n") nyagos.writerr("Usage: trash file(s)...\n") return end local ...
The command `trash` did not work because lua.LNumber used as float64. It is fixed by nyagos.to_ole_integer
The command `trash` did not work because lua.LNumber used as float64. It is fixed by nyagos.to_ole_integer
Lua
bsd-3-clause
tsuyoshicho/nyagos,nocd5/nyagos,zetamatta/nyagos
5c5f715e9862af59609eb48491ea730763d4c1bc
spec/demos/form_spec.lua
spec/demos/form_spec.lua
local request = require 'http.functional.request' local writer = require 'http.functional.response' local describe, it, assert = describe, it, assert local function test_cases(app) assert.not_nil(app) it('responds with bad request status cod and errors', function() local w, req = writer.new(), request.ne...
local request = require 'http.functional.request' local writer = require 'http.functional.response' local json = require 'core.encoding.json' local describe, it, assert = describe, it, assert local function test_cases(app) assert.not_nil(app) it('responds with bad request status cod and errors', function() ...
Fixed issue with lua 5.2.
Fixed issue with lua 5.2.
Lua
mit
akornatskyy/lucid
45ad4796648a33c1c526fde43e5c763d6101575d
Modules/Gui/Markdown/MarkdownParser.lua
Modules/Gui/Markdown/MarkdownParser.lua
--- Parses text into markdown -- @classmod MarkdownParser local MarkdownParser = {} MarkdownParser.__index = MarkdownParser MarkdownParser.ClassName = "MarkdownParser" function MarkdownParser.new(text) local self = setmetatable({}, MarkdownParser) self._text = text or error("No text") return self end function M...
--- Parses text into markdown -- @classmod MarkdownParser local MarkdownParser = {} MarkdownParser.__index = MarkdownParser MarkdownParser.ClassName = "MarkdownParser" function MarkdownParser.new(text) local self = setmetatable({}, MarkdownParser) self._text = text or error("No text") return self end function M...
Fix single line markdown instances
Fix single line markdown instances
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
0b8e96e8cbc93a56deda4f815762e6d00005c7ea
ardivink.lua
ardivink.lua
bootstrap = require("bootstrap") bootstrap.init() ci = require("ci") --godi = require("godi") oasis = require("oasis") git = require("git") ci.init() -- godi.init() git.init() oasis.init() --godi.bootstrap("3.12") --godi.update() --godi.upgrade() --godi.build_many( -- {"godi-findlib", -- "godi-ocaml-fileutils", ...
ci = require("ci") --godi = require("godi") oasis = require("oasis") git = require("git") ci.init() -- godi.init() git.init() oasis.init() --godi.bootstrap("3.12") --godi.update() --godi.upgrade() --godi.build_many( -- {"godi-findlib", -- "godi-ocaml-fileutils", -- "godi-ocaml-data-notation", -- "godi-ocaml-ex...
Fix missing bootstrap.lua.
Fix missing bootstrap.lua.
Lua
lgpl-2.1
Chris00/oasis,Chris00/oasis,RadicalZephyr/oasis,jpdeplaix/oasis,jpdeplaix/oasis,gerdstolpmann/oasis,gerdstolpmann/oasis,madroach/oasis,madroach/oasis,RadicalZephyr/oasis,Chris00/oasis,gerdstolpmann/oasis,diml/oasis,diml/oasis,jpdeplaix/oasis
9d13e7d111da9544d416df772540a54845bfb2d8
gateway/src/apicast/policy_loader.lua
gateway/src/apicast/policy_loader.lua
--- Policy loader -- This module loads a policy defined by its name and version. -- It uses sandboxed require to isolate dependencies and not mutate global state. -- That allows for loading several versions of the same policy with different dependencies. -- And even loading several independent copies of the same policy...
--- Policy loader -- This module loads a policy defined by its name and version. -- It uses sandboxed require to isolate dependencies and not mutate global state. -- That allows for loading several versions of the same policy with different dependencies. -- And even loading several independent copies of the same policy...
policy_loader: fix building of the cache key in call()
policy_loader: fix building of the cache key in call() The code was not taking into account that 'dir' is a table.
Lua
mit
3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast
88e16001e37eab28f5d6f4c242f65b8a4c2a1e33
src/luarocks/download.lua
src/luarocks/download.lua
--- Module implementing the luarocks "download" command. -- Download a rock from the repository. --module("luarocks.download", package.seeall) local download = {} package.loaded["luarocks.download"] = download local util = require("luarocks.util") local path = require("luarocks.path") local fetch = require("luarocks....
--- Module implementing the luarocks "download" command. -- Download a rock from the repository. --module("luarocks.download", package.seeall) local download = {} package.loaded["luarocks.download"] = download local util = require("luarocks.util") local path = require("luarocks.path") local fetch = require("luarocks....
Fix stat error on `luarocks download <provided rock> --all`
Fix stat error on `luarocks download <provided rock> --all`
Lua
mit
xpol/luavm,xpol/luavm,robooo/luarocks,tarantool/luarocks,xpol/luarocks,xpol/luarocks,tarantool/luarocks,keplerproject/luarocks,xpol/luarocks,xpol/luainstaller,keplerproject/luarocks,xpol/luarocks,xpol/luainstaller,xpol/luainstaller,xpol/luavm,luarocks/luarocks,tarantool/luarocks,robooo/luarocks,xpol/luainstaller,xpol/l...
f2e0d829b43011cce87568118a5b8b0b469ade1e
tests/build.lua
tests/build.lua
-- main entry function main(argv) -- generic? os.exec("xmake m -b") os.exec("xmake f -c") os.exec("xmake") if os.host() ~= "windows" then os.exec("sudo xmake install") os.exec("sudo xmake uninstall") end os.exec("xmake p") os.exec("xmake c") os.exec("xmake f -m relea...
-- main entry function main(argv) -- generic? os.exec("$(xmake) m -b") os.exec("$(xmake) f -c") os.exec("$(xmake)") if os.host() ~= "windows" then os.exec("sudo $(xmake) install") os.exec("sudo $(xmake) uninstall") end os.exec("$(xmake) p") os.exec("$(xmake) c") os.e...
use $(xmake) instead of xmake to fix cnf
use $(xmake) instead of xmake to fix cnf
Lua
apache-2.0
waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake
5915d7cd26e9b85b63e5dad6a29229d1a63a027d
libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua
libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua
--[[ LuCI - Server Gateway Interface for the uHTTPd server Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
--[[ LuCI - Server Gateway Interface for the uHTTPd server Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
libs/sgi-uhttpd: fix binding to properly work with current uhttpd2 implementation
libs/sgi-uhttpd: fix binding to properly work with current uhttpd2 implementation Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@9963 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
gwlim/luci,ch3n2k/luci,ch3n2k/luci,yeewang/openwrt-luci,phi-psi/luci,zwhfly/openwrt-luci,ThingMesh/openwrt-luci,eugenesan/openwrt-luci,ch3n2k/luci,8devices/carambola2-luci,phi-psi/luci,8devices/carambola2-luci,ReclaimYourPrivacy/cloak-luci,8devices/carambola2-luci,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,Recl...
e50a194d178d747f9a9bad3a3b324620d6acc3fa
l2l/main.lua
l2l/main.lua
local compiler = require("l2l.compiler") local version = "0.0.2-pre" local paired_options = {eval=true, load=true, compile=true} local single_options = {repl=true, help=true, version=true} local aliases = {r="repl", e="eval", l="load", c="compile", v="version", h="help", ["?"]="help"} local lookup_a...
local compiler = require("l2l.compiler") local version = "0.0.2-pre" local loadstring = _G["loadstring"] or _G["load"] local paired_options = {eval=true, load=true, compile=true} local single_options = {repl=true, help=true, version=true} local aliases = {r="repl", e="eval", l="load", c="compile", v...
Fix main.lua for 5.2 and 5.3
Fix main.lua for 5.2 and 5.3
Lua
bsd-2-clause
carloscm/l2l,meric/l2l
ca6f28d2a2f1fa2d565a48c5bea435fd8ed654db
mods/eventobjects/init.lua
mods/eventobjects/init.lua
minetest.register_tool("eventobjects:spleef_shovel", { description = "Golden Spleef Shovel", inventory_image = "eventobjects_spleef_shovel.png", wield_image = "eventobjects_spleef_shovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ unbreakable={times={[...
minetest.register_tool("eventobjects:spleef_shovel", { description = "Golden Spleef Shovel", inventory_image = "eventobjects_spleef_shovel.png", wield_image = "eventobjects_spleef_shovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ unbreakable={times={[...
fix wrong name
fix wrong name
Lua
unlicense
LeMagnesium/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,crabm...
e688a9523f005c340d4d9ed62a93fcc918307e5e
pud/kit/Rect.lua
pud/kit/Rect.lua
local Class = require 'lib.hump.class' local math_floor, math_ceil = math.floor, math.ceil local round = function(x) return math_floor(x + 0.5) end local format = string.format -- Rect -- provides position and size of a rectangle -- Note: coordinates are not floored or rounded and may be floats local Rect = Class{nam...
local Class = require 'lib.hump.class' local math_floor, math_ceil = math.floor, math.ceil local round = function(x) return math_floor(x + 0.5) end local format = string.format -- Rect -- provides position and size of a rectangle -- Note: coordinates are not floored or rounded and may be floats local Rect = Class{nam...
fix rect setCenter
fix rect setCenter
Lua
mit
scottcs/wyx
992d2ee4898106bfa17bb1fb05454fa844e4e953
test/test_record_udf.lua
test/test_record_udf.lua
--[[UDF which performs arithmetic operation on bin containing integer value. --]] function bin_udf_operation_integer(record, bin_name, x, y) record[bin_name] = (record[bin_name] + x) + y if aerospike:exists(record) then aerospike:update(record) else aerospike:create(record) end r...
--[[UDF which performs arithmetic operation on bin containing integer value. --]] function bin_udf_operation_integer(record, bin_name, x, y) record[bin_name] = (record[bin_name] + x) + y if aerospike:exists(record) then aerospike:update(record) else aerospike:create(record) end r...
Fixed lua record UDF for test
Fixed lua record UDF for test
Lua
apache-2.0
aerospike/aerospike-client-python,trupty/aerospike-client-python,arthurprs/aerospike-client-python,aerospike/aerospike-client-python,arthurprs/aerospike-client-python,aerospike/aerospike-client-python,arthurprs/aerospike-client-python,trupty/aerospike-client-python,trupty/aerospike-client-python
9270d3e282510ab0841f1f4c43eb53beb2202122
core/hostmanager.lua
core/hostmanager.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local hosts = hosts; local configmanager = require "core.configmanager"; local eventmanager = require "c...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ssl = ssl local hosts = hosts; local configmanager = require "core.configmanager"; local eventmana...
hostmanager: Create ssl context for each host (fixes #30 for outgoing s2s connections)
hostmanager: Create ssl context for each host (fixes #30 for outgoing s2s connections)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
65425fdf70732a8e1dec071f478099a69f04a66b
lib/luvit/module.lua
lib/luvit/module.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
FIxup for linux
FIxup for linux
Lua
apache-2.0
kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,boundary/luvit,AndrewTsao/luvit,sousoux/luvit,rjeli/luvit,kaustavha/luvit,sousoux/luvit,sousoux/luvit,luvit/luvit,AndrewTsao/luvit,DBarney/luvit,AndrewTsao/luvit,boundary/luvit,boundary/luvit,zhaozg/luvit,bsn069/luvit,bsn069/luvit,luvit/luvit,Gabriel...
6071fbc74c22ddcf72e0134ed41147ac4467e46c
.vim/lua/pluginconfig/nvim-treesitter.lua
.vim/lua/pluginconfig/nvim-treesitter.lua
require'nvim-treesitter.configs'.setup { ensure_installed = 'all', -- one of 'all', 'language', or a list of languages highlight = { enable = true, -- false will disable the whole extension disable = { }, -- list of language that will be disabled cus...
require'nvim-treesitter.configs'.setup { ensure_installed = 'all', -- one of 'all', 'language', or a list of languages highlight = { enable = true, -- false will disable the whole extension disable = {}, -- list of language that will be disabled custom_captures = { -- mapping of user defined captures to...
vim: Fix format
vim: Fix format
Lua
mit
yutakatay/dotfiles,yutakatay/dotfiles
c1d415c7c06a2cacf4d52a1af1b92016893cb1f3
libs/base64.lua
libs/base64.lua
--------------------------------------------------------- --- base64 library in pure lua --- credits go to the original creator --------------------------------------------------------- -- Luvit libraries local string = require('string') --------------------------------------------------------- --- START ORIGINAL ---...
--------------------------------------------------------- --- base64 library in pure lua --- credits go to the original creator --------------------------------------------------------- -- Luvit libraries local string = require('string') --------------------------------------------------------- --- START ORIGINAL ---...
Fixed recursion in curried function.
Fixed recursion in curried function.
Lua
mit
b42nk/LuvSocks,b42nk/LuvSocks
2e46ee9c63350049422e0f855b3d978d23cd7f59
lua/autorun/sbep_global.lua
lua/autorun/sbep_global.lua
-- -- Created by IntelliJ IDEA. -- User: Sam Elmer (Selekton99) -- Date: 27/11/12 -- Time: 11:08 AM -- Last Updated : -- if SERVER then CreateConVar("sv_sbep_debug", 0, FCVAR_SERVER_CAN_EXECUTE, "Enable Debug Messages for the Server") elseif CLIENT then CreateClientConVar("cl_sbep_debug", 0, true, fal...
-- -- Created by IntelliJ IDEA. -- User: Sam Elmer (Selekton99) -- Date: 27/11/12 -- Time: 11:08 AM -- Last Updated : -- SBEP = SBEP or {} --Version: SBEP.Version = "\"1.0.1\"" if SERVER then CreateConVar("sv_sbep_debug", 0, FCVAR_SERVER_CAN_EXECUTE, "Enable Debug Messages for the Server") elseif...
Fixed Versioning System. Not going to bother with a new version number considering they weren't working til now.
Fixed Versioning System. Not going to bother with a new version number considering they weren't working til now.
Lua
apache-2.0
SnakeSVx/sbep
ec7791b5ec5a63644d4028841c376c763b4c34d1
lunamark/parser/generic.lua
lunamark/parser/generic.lua
module(..., package.seeall) local lpeg = require "lpeg" local util = require "lunamark.util" local c = lpeg.C local _ = lpeg.V local p = lpeg.P local r = lpeg.R spacechar = lpeg.S("\t ") newline = p"\r"^-1 * p"\n" nonspacechar = p(1) - (spacechar + newline) sp = spacechar^0 space = spacechar^1 eof = -p(1) nonindents...
module(..., package.seeall) local lpeg = require "lpeg" local util = require "lunamark.util" local c = lpeg.C local _ = lpeg.V local p = lpeg.P local r = lpeg.R spacechar = lpeg.S("\t ") newline = p"\r"^-1 * p"\n" nonspacechar = p(1) - (spacechar + newline) sp = spacechar^0 space = spacechar^1 eof = -p(1) nonindents...
Fixed bug in inline code spans.
Fixed bug in inline code spans. Test case: ``hi ``` there``.
Lua
mit
simoncozens/lunamark,simoncozens/lunamark,jgm/lunamark,jgm/lunamark,simoncozens/lunamark,jgm/lunamark,tst2005/lunamark,tst2005/lunamark,tst2005/lunamark
6d3e45a67a7d596a7ee26a7572e5c6b428085d3c
shared/file.lua
shared/file.lua
local IsWindows = false os.fs.name = {} if iguana.workingDir():find('\\') then IsWindows = true end function os.fs.dirExists(Path) Path = os.fs.name.toNative(Path) return os.fs.access(Path,'r') end function os.fs.addDir(Dir) if Dir:sub(#Dir) ~= '/' then return Dir..'/' end return Dir en...
local IsWindows = false os.fs.name = {} if iguana.workingDir():find('\\') then IsWindows = true end function os.fs.dirExists(Path) Path = os.fs.name.toNative(Path) return os.fs.access(Path,'r') end function os.fs.addDir(Dir) if Dir:sub(#Dir) ~= '/' then return Dir..'/' end return Dir en...
Added os.fs.chmod to non native file abstraction.
Added os.fs.chmod to non native file abstraction. Fixed non existent problem with os.fs.access - I think the png files were in fact damaged.
Lua
mit
interfaceware/iguana-web-apps,interfaceware/iguana-web-apps
7c9a6bdb7ed491168bf4e444ff7c7e7ea011e274
src/plugins/finalcutpro/midi/controls/colorwheels.lua
src/plugins/finalcutpro/midi/controls/colorwheels.lua
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- M I D I C O N T R O L S -- -----------------------------------------------------------------------------...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- M I D I C O N T R O L S -- -----------------------------------------------------------------------------...
#1050 * Attempted fix for scaling MIDI values on Color Wheels.
#1050 * Attempted fix for scaling MIDI values on Color Wheels.
Lua
mit
fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost
9b005e98631fc351b455854508151fa7b72fd430
src_trunk/resources/camera-system/s_camera_system.lua
src_trunk/resources/camera-system/s_camera_system.lua
-- STRIP CAMERA 1 stripCamera1 = nil stripCamera1Col = nil stripCamera1ColWarn = nil stripCamera1Speed = nil function resourceStart(res) -- STRIP CAMERA 1 stripCamera1 = createObject(1293, 1342.5859375, -1471.4306640625, 12.939081573486, 0, 0, 347.48364257813) exports.pool:allocateElement(stripCamera1) ...
-- STRIP CAMERA 1 stripCamera1 = nil stripCamera1Col = nil stripCamera1ColWarn = nil stripCamera1Speed = nil function resourceStart(res) -- STRIP CAMERA 1 stripCamera1 = createObject(1293, 1342.5859375, -1471.4306640625, 12.939081573486, 0, 0, 347.48364257813) exports.pool:allocateElement(stripCamera1) ...
fixed speedcam direction detection
fixed speedcam direction detection git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1234 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
8eead7e3ca1d150569e9f0c540ad980c91b87bec
nvim/lua/user/treesitter.lua
nvim/lua/user/treesitter.lua
local status_ok, configs = pcall(require, "nvim-treesitter.configs") if not status_ok then return end configs.setup { ensure_installed = { "bash", "comment", "css", "dockerfile", "eex", "elixir", "erlang", "graphql", "heex", "html", "javascript", "jsdoc", "json",...
local status_ok, configs = pcall(require, "nvim-treesitter.configs") if not status_ok then return end configs.setup { ensure_installed = { "bash", -- "comment", "css", "dockerfile", "eex", "elixir", "erlang", "graphql", "heex", "html", "javascript", "jsdoc", "jso...
nvim: fix commenting code in elixir and heex
nvim: fix commenting code in elixir and heex
Lua
mit
sax/dotfiles,sax/dotfiles
c4532ebfc34d20bbc2dafc4bf99583a4f1b81e07
item/id_917_cursedshield.lua
item/id_917_cursedshield.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
remove a doubled function and fix lookat
remove a doubled function and fix lookat
Lua
agpl-3.0
Illarion-eV/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content
3548da6bcd9ce3b1ad46f1fb005b6d6ba51c47f4
plugins/warn.lua
plugins/warn.lua
local warn = {} local mattata = require('mattata') local redis = require('mattata-redis') local JSON = require('dkjson') function warn:init(configuration) warn.arguments = 'warn' warn.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('warn').table warn.help = configuration.commandPrefix...
local warn = {} local mattata = require('mattata') local redis = require('mattata-redis') local JSON = require('dkjson') function warn:init(configuration) warn.arguments = 'warn' warn.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('warn').table warn.help = configuration.commandPrefix...
[v5.2] Fixed a JSON-related bug with warn.lua
[v5.2] Fixed a JSON-related bug with warn.lua
Lua
mit
barreeeiroo/BarrePolice
498e66fea2c3451f68bebfcf91d32f9512b15561
mod_mam/rsm.lib.lua
mod_mam/rsm.lib.lua
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
mod_mam/rsm.lib: Fix serialization of before = true
mod_mam/rsm.lib: Fix serialization of before = true
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
deeb65ba9ca514d7628e7cb2618d3894e3760e47
mod_xrandr/cfg_xrandr.lua
mod_xrandr/cfg_xrandr.lua
-- map workspace name to list of initial outputs for that workspace initialScreens = {} function screenmanagedchanged(tab) if tab.mode == 'add' and initialScreens[tab.sub:name()] == nil then outputs = mod_xrandr.get_outputs(tab.reg) outputKeys = {} for k,v in pairs(outputs) do ta...
-- map workspace name to list of initial outputs for that workspace initialScreens = {} function screenmanagedchanged(tab) if tab.mode == 'add' and initialScreens[tab.sub:name()] == nil then outputs = mod_xrandr.get_outputs(tab.reg) outputKeys = {} for k,v in pairs(outputs) do ta...
Fix bug when handling wanderers
Fix bug when handling wanderers
Lua
lgpl-2.1
anoduck/notion,dkogan/notion,anoduck/notion,knixeur/notion,knixeur/notion,dkogan/notion,p5n/notion,anoduck/notion,neg-serg/notion,raboof/notion,knixeur/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,dkogan/notion.xfttest,knixeur/notion,neg-serg/notion,anoduck/notion,p5n/notion,neg-serg/notion...
5b093f33a9bc21f0a6a09a367e540b01a2e7a3aa
HexChat/mymsg.lua
HexChat/mymsg.lua
hexchat.register('MyMessage', '1', 'Properly show your own messages in ZNC playback') hexchat.hook_print('Capability List', function (args) if args[2]:find('znc.in/self-message') then hexchat.command('CAP REQ znc.in/self-message') end end) hexchat.hook_server_attrs('PRIVMSG', function (word, word_eol, attrs) -- ...
hexchat.register('MyMessage', '1', 'Properly show your own messages in ZNC playback') hexchat.hook_print('Capability List', function (args) if args[2]:find('znc.in/self%-message') then hexchat.command('CAP REQ znc.in/self-message') end end) hexchat.hook_server_attrs('PRIVMSG', function (word, word_eol, attrs) --...
mymsg.lua: Fixup
mymsg.lua: Fixup
Lua
mit
TingPing/plugins,TingPing/plugins
f2cac00849bd370df72a7e13eac1d339c01c9789
game/scripts/vscripts/heroes/structures/healer_bottle_filling.lua
game/scripts/vscripts/heroes/structures/healer_bottle_filling.lua
LinkLuaModifier("modifier_healer_bottle_filling", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_healer_bottle_filling_delay", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) healer_bottle_filling = class({ GetIntrinsicModifierName = functio...
LinkLuaModifier("modifier_healer_bottle_filling", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_healer_bottle_filling_delay", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) healer_bottle_filling = class({ GetIntrinsicModifierName = functio...
fix(abilities) Shrine bottle filling ability had wrong modifier verify.
fix(abilities) Shrine bottle filling ability had wrong modifier verify. This commit supresses c8f5658.
Lua
mit
ark120202/aabs
b811416e0512ebf6a12e0288bad252956d0c9ac7
lua/entities/gmod_wire_button/cl_init.lua
lua/entities/gmod_wire_button/cl_init.lua
include('shared.lua') ENT.Spawnable = false ENT.AdminSpawnable = false ENT.RenderGroup = RENDERGROUP_OPAQUE local halo_ent, halo_blur function ENT:Initialize() self.PosePosition = 0.0 end function ENT:Draw() baseclass.Get("gmod_button").UpdateLever(self) self:DoNormalDraw(true,false) if Lo...
include('shared.lua') ENT.Spawnable = false ENT.AdminSpawnable = false ENT.RenderGroup = RENDERGROUP_OPAQUE local halo_ent, halo_blur function ENT:Initialize() self.PosePosition = 0.0 end function ENT:Think() baseclass.Get("gmod_button").UpdateLever(self) end function ENT:Draw() self:DoN...
gmod_wire_button: Call UpdateLever() in the right way. Fixes a bug where the lever would move faster if you were hovering over it.
gmod_wire_button: Call UpdateLever() in the right way. Fixes a bug where the lever would move faster if you were hovering over it.
Lua
apache-2.0
mms92/wire,plinkopenguin/wiremod,rafradek/wire,sammyt291/wire,dvdvideo1234/wire,immibis/wiremod,CaptainPRICE/wire,thegrb93/wire,notcake/wire,garrysmodlua/wire,Python1320/wire,Grocel/wire,mitterdoo/wire,NezzKryptic/Wire,bigdogmat/wire,wiremod/wire
7ed68c0d2b1f006071a2a6fc2600eab76c4d7128
lib/lux/oo/class.lua
lib/lux/oo/class.lua
--[[ -- -- Copyright (c) 2013-2014 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
--[[ -- -- Copyright (c) 2013-2014 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
[class] Package.import fixed
[class] Package.import fixed Require heuristic was poor
Lua
mit
Kazuo256/luxproject
0b1a13d9c0f2dd008d3a6b6ce7c755ea2e757937
tools/export_model.lua
tools/export_model.lua
-- adapted from https://github.com/marcan/cl-waifu2x require 'pl' local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)() package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path require 'w2nn' local cjson = require "cjson" local function meta_data(...
-- adapted from https://github.com/marcan/cl-waifu2x require 'pl' local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)() package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path require 'w2nn' local cjson = require "cjson" local function meta_data(...
Add to json formt model; Fix json format;
Add to json formt model; Fix json format;
Lua
mit
nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x
9e7d41d1296edc0b06b533bbc10b4e1b6702391e
frontend/ui/reader/readertoc.lua
frontend/ui/reader/readertoc.lua
ReaderToc = InputContainer:new{ toc_menu_title = "Table of contents", } function ReaderToc:init() if not Device:hasNoKeyboard() then self.key_events = { ShowToc = { { "T" }, doc = "show Table of Content menu" }, } end self.ui.menu:registerToMainMenu(self) end function ReaderToc:cleanUpTocTitle(titl...
ReaderToc = InputContainer:new{ toc_menu_title = "Table of contents", } function ReaderToc:init() if not Device:hasNoKeyboard() then self.key_events = { ShowToc = { { "T" }, doc = "show Table of Content menu" }, } end self.ui.menu:registerToMainMenu(self) end function ReaderToc:cleanUpTocTitle(titl...
bug fix in readertoc
bug fix in readertoc * typo in fillToc method * handle xpointer in getTocTitleByPage * return true in onShowToc
Lua
agpl-3.0
houqp/koreader-base,NiLuJe/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,apletnev/koreader,ashang/koreader,ashhher3/koreader,mwoz123/koreader,chrox/koreader,pazos/koreader,poire-z/koreader,Hzj-jie/koreader-base,frankyifei/koreader-base,koreader/koreader,Frenzie/koreader-base,Frenzi...
c8df1035ff97aa42d2881586ccc02a69183037c1
KataAnimalQuiz.lua
KataAnimalQuiz.lua
#! /usr/bin/lua -- utils function yes() local resp repeat resp = io.read() until (resp == 'y') or (resp == 'n') return (resp == 'y') end -- returns 'a' or 'an' function article(noun) if (type(noun) == 'table') then noun = noun.value or noun.name end if (string.find(noun, '^[...
#! /usr/bin/lua -- utils function yes() local resp repeat resp = io.read() until (resp == 'y') or (resp == 'n') return (resp == 'y') end -- returns 'a' or 'an' function article(noun) if (type(noun) == 'table') then noun = noun.value or noun.name end if (string.find(noun, '^[...
Quiz:next() fixed, Quiz:answer() returns the animal's name if it guess it, false if not.
Quiz:next() fixed, Quiz:answer() returns the animal's name if it guess it, false if not.
Lua
mit
bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas
0729a1bec2441c935490a5003df844b3480bd829
classes/plain.lua
classes/plain.lua
plain = SILE.baseClass { id = "plain" } plain:declareFrame("content", {left = "5%", right = "95%", top = "5%", bottom = "90%" }); plain:declareFrame("folio", {left = "5%", right = "95%", top = "92%", bottom = "97%" }); plain.pageTemplate.firstContentFrame = plain.pageTemplate.frames["content"]; plain:loadPa...
plain = SILE.baseClass { id = "plain" } plain:declareFrame("content", {left = "5%", right = "95%", top = "5%", bottom = "90%" }); plain:declareFrame("folio", {left = "5%", right = "95%", top = "92%", bottom = "97%" }); plain.pageTemplate.firstContentFrame = plain.pageTemplate.frames["content"]; plain:loadPa...
Fix \hbox’ing of unshaped nodes.
Fix \hbox’ing of unshaped nodes.
Lua
mit
alerque/sile,alerque/sile,neofob/sile,neofob/sile,simoncozens/sile,neofob/sile,simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,simoncozens/sile,alerque/sile
7aae88044fda5701823421bd1f342cf78590d3cc
spec/01-unit/14-dns_spec.lua
spec/01-unit/14-dns_spec.lua
local mocker = require "spec.fixtures.mocker" local balancer = require "kong.runloop.balancer" local utils = require "kong.tools.utils" local ws_id = utils.uuid() local function setup_it_block() local cache_table = {} local function mock_cache(cache_table, limit) return { safe_set = function(self, k, v...
local mocker = require "spec.fixtures.mocker" local balancer = require "kong.runloop.balancer" local utils = require "kong.tools.utils" local ws_id = utils.uuid() local function setup_it_block() local client = require "kong.resty.dns.client" local cache_table = {} local function mock_cache(cache_table, limit)...
tests(dns) fix dns resolve in 14-dns_spec.lua (#8300)
tests(dns) fix dns resolve in 14-dns_spec.lua (#8300) * fix dns resolve in 14-dns_spec.lu * style fix for 14-dns_spec.lua
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
74b579e28a98d0e417044224ae161575bec6653d
src/extensions/cp/apple/finalcutpro/browser/Columns.lua
src/extensions/cp/apple/finalcutpro/browser/Columns.lua
--- === cp.apple.finalcutpro.browser.Columns === --- --- Final Cut Pro Browser List View Columns local require = require --local log = require("hs.logger").new("Columns") local ax = require("hs._asm.axuielement") local geometry = require("hs.geometry") ...
--- === cp.apple.finalcutpro.browser.Columns === --- --- Final Cut Pro Browser List View Columns local require = require --local log = require("hs.logger").new("Columns") local ax = require("hs._asm.axuielement") local geometry = require("hs.geometry") ...
#1701
#1701 - Fixes a bug that still exists in `cp.apple.finalcutpro.browser.Columns:show()` - Closes #1701
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost
fd2e20440acd5c83b58cfbdf4bfee9ebed83731d
src_trunk/resources/social-system/c_player_rightclick.lua
src_trunk/resources/social-system/c_player_rightclick.lua
wRightClick = nil bAddAsFriend, bFrisk, bRestrain, bCloseMenu = nil sent = false ax, ay = nil player = nil gotClick = false function clickPlayer(button, state, absX, absY, wx, wy, wz, element) if (element) and (getElementType(element)=="player") and (button=="right") and (state=="down") and (sent==false) and...
wRightClick = nil bAddAsFriend, bFrisk, bRestrain, bCloseMenu = nil sent = false ax, ay = nil player = nil gotClick = false closing = false function clickPlayer(button, state, absX, absY, wx, wy, wz, element) if (element) and (getElementType(element)=="player") and (button=="right") and (state=="down") and (...
Crash fix for right click of player
Crash fix for right click of player git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@253 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
e8eef4bce44ed2fa0649cd29b1299df1b709a291
lib/xjob.lua
lib/xjob.lua
--- SCP commands function uploadFile(conf, localfile, remotefile) if (not remotefile) then remotefile = "./" end local scpcmd = 'scp -i '.. conf.sshkey .. ' ' .. localfile .. ' ' .. conf.user ..'@'.. conf.server .. ':' .. remotefile; --print('CMD>' .. scpcmd) local handle = io.popen(scpcmd) local ...
--- SCP commands function uploadFile(conf, localfile, remotefile) if (not remotefile) then remotefile = "./" end local scpcmd = 'scp -i '.. conf.sshkey .. ' ' .. localfile .. ' ' .. conf.user ..'@'.. conf.server .. ':' .. remotefile; --print('CMD>' .. scpcmd) local handle = io.popen(scpcmd) local ...
fixed for windows
fixed for windows
Lua
bsd-2-clause
avr-aics-riken/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI
f0a98f01ffeeb1adb852eb658b887e0f47794c76
lua/mp_menu/sidebar_tabs.lua
lua/mp_menu/sidebar_tabs.lua
local math = math local ceil = math.ceil local clamp = math.Clamp local surface = surface local color_white = color_white local PANEL = {} PANEL.TabHeight = 43 function PANEL:Init() self:SetShowIcons( false ) self:SetFadeTime( 0 ) self:SetPadding( 0 ) self.animFade = Derma_Anim( "Fade", self, self.CrossFade ...
local math = math local ceil = math.ceil local clamp = math.Clamp local surface = surface local color_white = color_white local PANEL = {} PANEL.TabHeight = 43 function PANEL:Init() self:SetShowIcons( false ) self:SetFadeTime( 0 ) self:SetPadding( 0 ) self.animFade = Derma_Anim( "Fade", self, self.CrossFade ...
Fixed vgui Lua error.
Fixed vgui Lua error.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
5ae92b4dc494d27fc8c94cab50000c95fa2a4d0c
premake4.lua
premake4.lua
solution "alloy" configurations { "Debug", "Release" } -- get data from shell LLVM_OPTIONS = "--system-libs --libs " LLVM_CONFIG = "core analysis executionengine jit interpreter native " LLVM_CFLAGS = "$(" .. "llvm-config --cflags " .. LLVM_OPTIONS .. LLVM_CONFIG .. ")" LLVM_LFLAGS = "$(" .. "llvm-config --ldfla...
solution "alloy" configurations { "Debug", "Release" } -- missing function if not os.outputof then function os.outputof(cmd) local pipe = io.popen(cmd) local result = pipe:read('*a') pipe:close() result = result:gsub ("\n", " ") return result end end -- get data from shell LLVM_OPTIONS = "-...
fix various premake/makefile/LLVM errors
fix various premake/makefile/LLVM errors
Lua
mit
dansawkins/ark,dansawkins/ark,naegelejd/ark,8l/ark-c,8l/ark-c,8l/ark-c,naegelejd/ark,naegelejd/ark
050752a4ae302384e5008943a7417593e0597b91
applications/luci-app-ddns/luasrc/model/cbi/ddns/hints.lua
applications/luci-app-ddns/luasrc/model/cbi/ddns/hints.lua
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local DISP = require "luci.dispatcher" local SYS = require "luci.sys" local CTRL = require "luci.controller.ddns" -- this application's controller local DDNS = require "luc...
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local DISP = require "luci.dispatcher" local SYS = require "luci.sys" local CTRL = require "luci.controller.ddns" -- this application's controller local DDNS = require "luc...
luci-app-ddns: fix package installation link
luci-app-ddns: fix package installation link Signed-off-by: Florian Eckert <ee3e4af9c48a69f5a5c47153eb4a777754bfbe6f@dev.tdt.de>
Lua
apache-2.0
nmav/luci,nmav/luci,Noltari/luci,openwrt-es/openwrt-luci,hnyman/luci,openwrt-es/openwrt-luci,rogerpueyo/luci,tobiaswaldvogel/luci,artynet/luci,hnyman/luci,hnyman/luci,rogerpueyo/luci,openwrt/luci,openwrt-es/openwrt-luci,nmav/luci,nmav/luci,hnyman/luci,nmav/luci,nmav/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,nm...
e55f2e12a8b87db8e2da4819f0d828819b687914
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.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...
applications/luci-ddns: fix selection of custom update_url
applications/luci-ddns: fix selection of custom update_url
Lua
apache-2.0
MinFu/luci,bright-things/ionic-luci,kuoruan/luci,schidler/ionic-luci,mumuqz/luci,david-xiao/luci,cshore-firmware/openwrt-luci,remakeelectric/luci,thess/OpenWrt-luci,rogerpueyo/luci,jchuang1977/luci-1,NeoRaider/luci,oyido/luci,LuttyYang/luci,schidler/ionic-luci,RedSnake64/openwrt-luci-packages,florian-shellfire/luci,art...
6ca3a55505272869d2fac0fc0ca1ee2bdbb69c82
oracle/xplan.lua
oracle/xplan.lua
local db,cfg=env.getdb(),env.set local xplan={} local default_fmt,e10053,prof="ALLSTATS ALL -PROJECTION OUTLINE REMOTE" function xplan.explain(fmt,sql) local ora,sqltext=db.C.ora env.checkhelp(fmt) if fmt:sub(1,1)=='-' then if not sql then return end fmt=fmt:sub(2) if fmt=='10053' th...
local db,cfg=env.getdb(),env.set local xplan={} local default_fmt,e10053,prof="ALLSTATS ALL -PROJECTION OUTLINE REMOTE" function xplan.explain(fmt,sql) local ora,sqltext=db.C.ora env.checkhelp(fmt) if fmt:sub(1,1)=='-' then if not sql then return end fmt=fmt:sub(2) if fmt=='10053' th...
fix incorrect xplan result;
fix incorrect xplan result;
Lua
mit
hyee/dbcli,hyee/dbcli,hyee/dbcli,hyee/dbcli
b710e9f8a58ef212d12ed14b4dc0e3bb8896efce
nvim/lua/config/lspconfig.lua
nvim/lua/config/lspconfig.lua
-- NOTE: see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md -- see also https://github.com/williamboman/nvim-lsp-installer -- keymaps local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) ...
-- NOTE: see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md -- see also https://github.com/williamboman/nvim-lsp-installer -- keymaps local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) ...
fix: avoid LSP formatting conflicts
fix: avoid LSP formatting conflicts See https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Avoiding-LSP-formatting-conflicts I had tsserver, eslint and stylelint_lsp set up... so... lots of options.
Lua
mit
drmohundro/dotfiles
d5375b5e4a24ac66c9321f7f23fe8b72c535b304
src/logfactory/LogCreator.lua
src/logfactory/LogCreator.lua
local LogCreator = {}; -- ------------------------------------------------ -- Constants -- ------------------------------------------------ local GIT_COMMAND = 'git -C "' local LOG_COMMAND = '" log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges'; local FIRST_COMMIT_COMMAND = '" log ...
local LogCreator = {}; -- ------------------------------------------------ -- Constants -- ------------------------------------------------ local GIT_COMMAND = 'git -C "' local LOG_COMMAND = '" log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges'; local FIRST_COMMIT_COMMAND = '" log ...
Fix #24 - Use io.popen instead of os.execute to check for git
Fix #24 - Use io.popen instead of os.execute to check for git Had to replace os.execute as it produced garbled output on Windows. Apparently this is an issue within LOVE / LuaJIT itself. (see https://bitbucket.org/rude/love/issue/940)
Lua
mit
rm-code/logivi