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 |
|---|---|---|---|---|---|---|---|---|---|
3ec5522d0666095da61915b29b0661aa8ea705e8 | mods/broomstick/init.lua | mods/broomstick/init.lua | local broomstick_time = 120 -- Seconds (for default 2 minutes)
local broomstick_mana = 210
local broomstick_actual_users = {}
local had_fly_privilege = {}
local privs = {}
-- Register broomstick
minetest.register_craftitem("broomstick:broomstick", {
description = "Broomstick",
inventory_image = "broomstick.png",
st... | local broomstick_time = 120 -- Seconds (for default 2 minutes)
local broomstick_mana = 210
local broomstick_actual_users = {}
local had_fly_privilege = {}
local privs = {}
-- Register broomstick
minetest.register_craftitem("broomstick:broomstick", {
description = "Broomstick",
inventory_image = "broomstick.png",
st... | fixed itemstack remove broomstick | fixed itemstack remove broomstick
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,Coethium/server-minetestforfun,Ombridride/minetest-minetestforfun-server,MinetestForFun/minetest-min... |
999d49c95d9a8b7d96068a68c11432899ce2f9c8 | net/adns.lua | net/adns.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local server = require "net.server";
local dns = require "net.dns";
local log = require "util.logger".in... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local server = require "net.server";
local dns = require "net.dns";
local log = require "util.logger".in... | net.adns: Fix logging to handle unconnected UDP sockets | net.adns: Fix logging to handle unconnected UDP sockets
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
7cf95dd2bb4f27f9ab674df89d5983a03a3aa481 | core/frame.lua | core/frame.lua | local cassowary = require("cassowary")
SILE.frames = {}
local solver = cassowary.SimplexSolver();
solverNeedsReloading = true
local parseFrameDef = function(d, width_or_height)
SILE.documentState._dimension = width_or_height; -- ugly hack since you can't pass state to the parser
return SILE._frameParser:match(d);
... | local cassowary = require("cassowary")
SILE.frames = {}
local solver = cassowary.SimplexSolver();
solverNeedsReloading = true
local parseFrameDef = function(d, width_or_height)
SILE.documentState._dimension = width_or_height; -- ugly hack since you can't pass state to the parser
return SILE._frameParser:match(d);
... | Better fix for #34. | Better fix for #34. | Lua | mit | shirat74/sile,shirat74/sile,neofob/sile,neofob/sile,anthrotype/sile,WAKAMAZU/sile_fe,alerque/sile,WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,Nathan22Miles/sile,alerque/sile,alerque/sile,simoncozens/sile,Nathan22Miles/sile,simoncozens/sile,shirat74/sile,anthrotype/sile,Nathan22Miles/sile,simoncozens/sile,anthrot... |
76781ff7b950c9f4a618daedf93a1ecc9eb8075b | ios-icons/icons.lua | ios-icons/icons.lua | local icons_mt = {}
icons_mt.__tostring = function(i)
local result = "Icon Set\n\n"
for _, p in ipairs(i) do
result = result .. tostring(p)
end
result = result .. "\n"
return result
end
local icons = {}
icons.__meta = icons_mt
icons.flatten = function(tab)
local insert = table.insert
lo... | local icons_mt = {}
icons_mt.__tostring = function(i)
local result = "Icon Set\n\n"
for _, p in ipairs(i) do
result = result .. tostring(p)
end
result = result .. "\n"
return result
end
local icons = {}
icons.__meta = icons_mt
icons.flatten = function(tab)
local insert = table.insert
lo... | fixed flatten function | fixed flatten function
| Lua | mit | profburke/ios-icons,profburke/ios-icons,profburke/ios-icons |
590c8d95ffc0a0362ef871dbac41911199428ba3 | MMOCoreORB/bin/scripts/mobile/tatooine/wild_dune_boar.lua | MMOCoreORB/bin/scripts/mobile/tatooine/wild_dune_boar.lua | wild_dune_boar = Creature:new {
objectName = "@mob/creature_names:wild_dune_boar",
socialGroup = "boar",
pvpFaction = "",
faction = "",
level = 50,
chanceHit = 0.5,
damageMin = 395,
damageMax = 500,
baseXp = 4916,
baseHAM = 10000,
baseHAMmax = 12000,
armor = 1,
resists = {110,140,110,5,5,5,5,-1,-1},
meatT... | wild_dune_boar = Creature:new {
objectName = "@mob/creature_names:wild_dune_boar",
socialGroup = "boar",
pvpFaction = "",
faction = "",
level = 50,
chanceHit = 0.5,
damageMin = 395,
damageMax = 500,
baseXp = 4916,
baseHAM = 10000,
baseHAMmax = 12000,
armor = 1,
resists = {110,140,110,5,5,5,5,-1,-1},
meatT... | [fix] mantis# 5877, same fix that was appleid to the zucca boar | [fix] mantis# 5877, same fix that was appleid to the zucca boar
Change-Id: Ib518db7153286e5cdf53b0f4fe2ddf7114e9bb6e
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
ea4bd2d02334db7c52af70f64f591bbd293330e3 | test_scripts/Defects/4_5/1206_REQUEST_PTU_Trigger_PTU_failed_previous_IGN_ON.lua | test_scripts/Defects/4_5/1206_REQUEST_PTU_Trigger_PTU_failed_previous_IGN_ON.lua | ----------------------------------------------------------------------------------------------------
-- Script verifies issue https://github.com/SmartDeviceLink/sdl_core/issues/1206
-- Flow: HTTP
----------------------------------------------------------------------------------------------------
--[[ Required Shared li... | ----------------------------------------------------------------------------------------------------
-- Script verifies issue https://github.com/SmartDeviceLink/sdl_core/issues/1206
-- Flow: HTTP, PROPRIETARY
----------------------------------------------------------------------------------------------------
--[[ Requi... | fixup! Update 1206 script | fixup! Update 1206 script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
8a1b16429de76b9efd47f9a203dd07621819abc6 | otouto/plugins/imdb.lua | otouto/plugins/imdb.lua | local imdb = {}
imdb.command = 'imdb <query>'
function imdb:init(config)
imdb.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('imdb', true).table
imdb.inline_triggers = {
"^imdb (.+)"
}
imdb.doc = [[*
]]..config.cmd_pat..[[imdb* _<Film>_
Sucht _Film_ bei IMDb]]
end
local BASE_URL = 'https:... | local imdb = {}
imdb.command = 'imdb <query>'
function imdb:init(config)
imdb.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('imdb', true).table
imdb.inline_triggers = {
"^imdb (.+)"
}
imdb.doc = [[*
]]..config.cmd_pat..[[imdb* _<Film>_
Sucht _Film_ bei IMDb]]
end
local BASE_URL = 'https:... | IMDB: Fix Inline für einige Filme | IMDB: Fix Inline für einige Filme
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
49eb5aee862ba21492ef6cd96c5e6d3f445a06e8 | test_scripts/Polices/Validation_of_PolicyTables/Check_count_of_user_selections.lua | test_scripts/Polices/Validation_of_PolicyTables/Check_count_of_user_selections.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] "usage_and_error_counts" and "count_of_rejections_duplicate_name" update
--
-- Description:
-- In case application registers with the name already registered on SDL now,
-- Policy Manager ... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] "usage_and_error_counts" and "count_of_rejections_duplicate_name" update
--
-- Description:
-- In case application registers with the name already registered on SDL now,
-- Policy Manager ... | Fixed test script | Fixed test script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
8e7bad47a5605a348ca7c599fad8f95b69ea8b85 | src/lounge/lua/mplayer.lua | src/lounge/lua/mplayer.lua | #!/lounge/bin/janosh -f
local RUN_DIR="/var/run/mplayer"
local CMD_FIFO=RUN_DIR .. "/cmdfifo"
Janosh:exec({
"mkdir -p " .. RUN_DIR,
"rm -rf " .. CMD_FIFO,
"mkfifo " .. CMD_FIFO
})
Janosh:setenv("DISPLAY",":0")
Janosh:setenv("http_proxy","http://localhost:1234/")
local PID, STDIN, STDOUT, STDERR = Janosh:popen("/... | #!/lounge/bin/janosh -f
local RUN_DIR="/var/run/mplayer"
local CMD_FIFO=RUN_DIR .. "/cmdfifo"
Janosh:exec({
"mkdir -p " .. RUN_DIR,
"rm -rf " .. CMD_FIFO,
"mkfifo " .. CMD_FIFO
})
Janosh:setenv("DISPLAY",":0")
Janosh:setenv("http_proxy","http://localhost:1234/")
local PID, STDIN, STDOUT, STDERR = Janosh:popen("/... | fixed eotrack in mplayer | fixed eotrack in mplayer
| Lua | agpl-3.0 | screeninvader/ScreenInvader,screeninvader/ScreenInvader |
2560730123b73f8c3e52345dc238c96b9b8c7e0f | src/lua/main.lua | src/lua/main.lua | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local int = math.floor
local Write = wg.write
local SetNormal = wg.setnormal
local SetBold = wg.setbold
local SetUnderline = wg.setunderline
local SetReverse = wg.setreve... | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local int = math.floor
local Write = wg.write
local SetNormal = wg.setnormal
local SetBold = wg.setbold
local SetUnderline = wg.setunderline
local SetReverse = wg.setreve... | Fix command line parsing to consider more than just the first parameter. | Fix command line parsing to consider more than just the first parameter.
| Lua | mit | rodoviario/wordgrinder,NRauh/wordgrinder,rodoviario/wordgrinder,NRauh/wordgrinder,Munchotaur/wordgrinder,Munchotaur/wordgrinder |
e69dcf68a2da0c2dc74ce6932b195144330a6c1b | libs/httpd/luasrc/httpd/handler/luci.lua | libs/httpd/luasrc/httpd/handler/luci.lua | --[[
HTTP server implementation for LuCI - luci handler
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | --[[
HTTP server implementation for LuCI - luci handler
(c) 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | * luci/libs/httpd: fix spurious Overload errors in luci-httpd | * luci/libs/httpd: fix spurious Overload errors in luci-httpd
| Lua | apache-2.0 | david-xiao/luci,Kyklas/luci-proto-hso,openwrt-es/openwrt-luci,schidler/ionic-luci,thesabbir/luci,Kyklas/luci-proto-hso,openwrt-es/openwrt-luci,maxrio/luci981213,Sakura-Winkey/LuCI,hnyman/luci,taiha/luci,RedSnake64/openwrt-luci-packages,981213/luci-1,mumuqz/luci,jorgifumi/luci,cappiewu/luci,db260179/openwrt-bpi-r1-luci,... |
40e7b6b8ee82c2aea18e43327fc6807a608c5c7e | core/base-shaper.lua | core/base-shaper.lua | if not SILE.shapers then SILE.shapers = { } end
SILE.tokenizers.default = function(text)
return SU.gtoke(text, SILE.settings.get("shaper.spacepattern"))
end
SILE.settings.declare({
name = "shaper.spacepattern",
type = "string",
default = "%s+",
help = "The Lua pattern used for splitting words on spaces"
})... | if not SILE.shapers then SILE.shapers = { } end
SILE.tokenizers.default = function(text)
return SU.gtoke(text, SILE.settings.get("shaper.spacepattern"))
end
SILE.settings.declare({
name = "shaper.spacepattern",
type = "string",
default = "%s+",
help = "The Lua pattern used for splitting words on spaces"
})... | Remove the autoshaping of unshaped nodes. This should get us closer to a fix of #76 | Remove the autoshaping of unshaped nodes. This should get us closer to a fix of #76 | Lua | mit | neofob/sile,anthrotype/sile,anthrotype/sile,alerque/sile,anthrotype/sile,shirat74/sile,WAKAMAZU/sile_fe,neofob/sile,alerque/sile,alerque/sile,anthrotype/sile,WAKAMAZU/sile_fe,shirat74/sile,shirat74/sile,simoncozens/sile,simoncozens/sile,neofob/sile,simoncozens/sile,alerque/sile,WAKAMAZU/sile_fe,shirat74/sile,simoncozen... |
3ec1064010cab2cfc40f0d41ca42d6e5049b649e | LibCoroutine-1.0.lua | LibCoroutine-1.0.lua | -- A library to make usage of coroutines in wow easier.
local MAJOR_VERSION = "LibCoroutine-1.0"
local MINOR_VERSION = tonumber(("$Revision: 1023 $"):match("%d+")) or 0
local lib, oldMinor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not lib then return end
local AT = LibStub("AceTimer-3.0")
local AE = LibS... | -- A library to make usage of coroutines in wow easier.
local MAJOR_VERSION = "LibCoroutine-1.0"
local MINOR_VERSION = tonumber(("$Revision: 1023 $"):match("%d+")) or 0
local lib, oldMinor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not lib then return end
local AT = LibStub("AceTimer-3.0")
local AE = LibS... | Add unittest to LibCoroutine. Multiple fixes. | Add unittest to LibCoroutine. Multiple fixes.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp |
b1af70d03a346b4e83cb1d71409f8fd03357a23f | test/test-c3.lua | test/test-c3.lua | require "busted.runner" ()
local assert = require "luassert"
describe ("the c3 module", function ()
it ("can be required", function ()
assert.has.no.error (function ()
local C3 = require "c3"
end)
end)
it ("can be instantiated", function ()
assert.has.no.error (function ()
local C3 = r... | require "busted.runner" ()
local assert = require "luassert"
describe ("the c3 module", function ()
it ("can be required", function ()
assert.has.no.error (function ()
require "c3"
end)
end)
it ("can be instantiated", function ()
assert.has.no.error (function ()
local C3 = require "c3"... | Fix warnings. | Fix warnings.
| Lua | mit | saucisson/lua-c3 |
c12fa6d01b44dfea387120763315b3181f5bb2ad | src/cqueues.lua | src/cqueues.lua | local loader = function(loader, ...)
local core = require"_cqueues"
local errno = require"_cqueues.errno"
local yield = coroutine.yield
local resume = coroutine.resume
local monotime = core.monotime
local running = core.running
local strerror = errno.strerror
local _POLL = {}
function core.poll(...)
local ... | local loader = function(loader, ...)
local core = require"_cqueues"
local errno = require"_cqueues.errno"
local yield = coroutine.yield
local resume = coroutine.resume
local monotime = core.monotime
local running = core.running
local strerror = errno.strerror
local _POLL = {}
function core.poll(...)
local ... | remove the prefix on iresume and iwrap and just call it resume and wrap | remove the prefix on iresume and iwrap and just call it resume and wrap
| Lua | mit | bigcrush/cqueues,daurnimator/cqueues,wahern/cqueues,bigcrush/cqueues,wahern/cqueues,daurnimator/cqueues |
a836857aa5512a1c8596e629fb7bb468deabc986 | state/demo.lua | state/demo.lua |
--[[--
DEMO STATE
----
Developer playground.
--]]--
local st = GameState.new()
local math_max, math_min, math_random, string_char
= math.max, math.min, math.random, string.char
local RandomBag = require 'lib.pud.randombag'
local RingBuffer = require 'lib.hump.ringbuffer'
-- s... |
--[[--
DEMO STATE
----
Developer playground.
--]]--
local st = GameState.new()
local math_max, math_min, math_random, string_char
= math.max, math.min, math.random, string.char
local RandomBag = require 'lib.pud.randombag'
local RingBuffer = require 'lib.hump.ringbuffer'
-- s... | fix demo | fix demo
| Lua | mit | scottcs/wyx |
6866d5331fa14cde62fa31edeb9a97bda02984fb | lua/histogram.lua | lua/histogram.lua | --- Histogram, typically used for latencies
local histogram = {}
histogram.__index = histogram
local serpent = require "Serpent"
local log = require "log"
function histogram:create()
local histo = setmetatable({}, histogram)
histo.histo = {}
histo.dirty = true
return histo
end
histogram.new = histogram.create
... | --- Histogram, typically used for latencies
local histogram = {}
histogram.__index = histogram
local serpent = require "Serpent"
local log = require "log"
function histogram:create()
local histo = setmetatable({}, histogram)
histo.histo = {}
histo.dirty = true
return histo
end
histogram.new = histogram.create
... | fix error when printing empty histograms | fix error when printing empty histograms
| Lua | mit | libmoon/libmoon,libmoon/libmoon,emmericp/libmoon,scholzd/libmoon,scholzd/libmoon,emmericp/libmoon,emmericp/libmoon,libmoon/libmoon,scholzd/libmoon |
b2d63e5f4fbf00ad9a2c2bf1fc4678f1a7204557 | TripletCriterion.lua | TripletCriterion.lua | -- Look for shared object
local libpath = package.searchpath('libtriplet', package.cpath)
if not libpath then return end
local ffi = require 'ffi'
local C = ffi.load(libpath)
ffi.cdef[[
void updateOutput(
THCState* state,
THCudaTensor* input,
THCudaTensor* label,
float norm,
float alpha,
int samples,
int... | -- Look for shared object
local libpath = package.searchpath('libtriplet', package.cpath)
if not libpath then return end
local ffi = require 'ffi'
local C = ffi.load(libpath)
ffi.cdef[[
void updateOutput(
THCState* state,
THCudaTensor* input,
THCudaTensor* label,
float norm,
float alpha,
int samples,
int... | Bug fix: avoid invasion of trash area | Bug fix: avoid invasion of trash area
| Lua | mit | jhjin/triplet-criterion |
c2d68da910a1b993b78742504fde40b5681c3f8d | eqn/adm1d_v2.lua | eqn/adm1d_v2.lua | --[[
Based on the Alcubierre 1997 "The appearance of coorindate shocks in hyperbolic formalisms of General Relativity".
This is also a 1D version of the 3D formalism in the Alcubierre 2008 book "Introduction to 3+1 Numerical Relativity" on the chapter on hyperbolic formalisms.
a_x,t + (alpha f K_xx / gamma_xx),x = 0
... | --[[
Based on the Alcubierre 1997 "The appearance of coorindate shocks in hyperbolic formalisms of General Relativity".
This is also a 1D version of the 3D formalism in the Alcubierre 2008 book "Introduction to 3+1 Numerical Relativity" on the chapter on hyperbolic formalisms.
a_x,t + (alpha f K_xx / gamma_xx),x = 0
... | fixed the v2 display vars | fixed the v2 display vars
| Lua | mit | thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua |
87f9b7970c81d30f971f9256866f3d7092b03dac | hammerspoon/do-not-disturb.lua | hammerspoon/do-not-disturb.lua | --------------------------------------------------------------------------------
--- Function
--- Determine whether "Do Not Disturb" is enabled.
---
--- Parameters:
--- * None
---
--- Returns:
--- * A boolean value indicating whether "Do Not Disturb" is enabled.
-------------------------------------------------------... | --------------------------------------------------------------------------------
--- Function
--- Determine whether "Do Not Disturb" is enabled.
---
--- Parameters:
--- * None
---
--- Returns:
--- * A boolean value indicating whether "Do Not Disturb" is enabled.
-------------------------------------------------------... | Use sindresorhus/do-not-disturb-cli to toggle "Do Not Disturb" | Use sindresorhus/do-not-disturb-cli to toggle "Do Not Disturb"
Ever since upgrading to macOS Mojave, using AppleScript to toggle "Do
Not Disturb" has been fairly buggy for me. I suspect it's related to the
updated permission rules in Mojave. sindresorhus/do-not-disturb-cli
seems to do the trick though, so let's use it... | Lua | mit | jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles |
d1d330ecfcfe2feb540da9797d484609f53ac592 | esp8266/sta_mode.lua | esp8266/sta_mode.lua | function writeSerialCommand(command)
for i, byte in pairs(command) do
uart.write(0, string.char(byte))
end
uart.write(0, string.char(10))
end
uart.setup(0, 9600, 8, 0, 1, 0)
conn=net.createConnection(net.TCP, 0)
conn:connect(1337, "tdc2.turningdigital.com")
conn:on("connection", function(conn)
conn... | function writeSerialCommand(command)
for i, byte in pairs(command) do
uart.write(0, string.char(byte))
end
uart.write(0, string.char(10))
end
uart.setup(0, 9600, 8, 0, 1, 0)
conn=net.createConnection(net.TCP, 0)
conn:connect(1337, "tdc2.turningdigital.com")
conn:on("connection", function(conn)
conn... | Fix ups | Fix ups
| Lua | mit | ttosi/moodbeam,ttosi/moodbeam,ttosi/moodbeam |
e215d77087a81a619a241e24077b5066929a2aa2 | xmake/core/main.lua | xmake/core/main.lua | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | fix find xmake.lua path on windows | fix find xmake.lua path on windows
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
15a7a3e9e66d8a167cc3d4c0b84d1a66c79acd0c | lualib/json.lua | lualib/json.lua | local json = {}
function json.decode(str)
local j = string.gsub(str, '\"([^\"]-)\":','%1=')
j = "local t =" .. j .."; return t"
t = assert(load(j))()
return t;
end
local encode_tbl, encode_array, encode_object
local function table_type(tbl)
assert(type(tbl) == "table")
... | local json = {}
function json.decode(str)
local j = string.gsub(str, '\"([^\"]-)\":','%1=')
j = "local t =" .. j .."; return t"
t = assert(load(j))()
return t;
end
local encode_tbl, encode_array, encode_object
local function table_type(tbl)
assert(type(tbl) == "table")
... | fix json encode bug | fix json encode bug
| Lua | mit | findstr/silly |
8c4f9f7a994238c97bc436b8fd7376833d1d042a | upcache/vary.lua | upcache/vary.lua | local common = require "upcache.common"
local console = common.console
local module = {}
local varyHeader = "Vary"
local function build_key(key, headers, list)
local resVal
local reqVal
for reqName, map in pairs(list) do
reqVal = headers[reqName]
if reqVal ~= nil then
resVal = map[reqVal]
if resVal ~= n... | local common = require "upcache.common"
local console = common.console
local module = {}
local varyHeader = "Vary"
local function build_key(key, headers, list)
local resVal
local reqVal
for reqName, map in pairs(list) do
reqVal = headers[reqName] or "*"
resVal = map[reqVal]
if resVal ~= nil then
key = re... | vary: fix cache pollution by empty headers | vary: fix cache pollution by empty headers
| Lua | mit | kapouer/cache-protocols,kapouer/upcache |
e21782dd79cb50ede2756018ff9a24aa4ac9fc4b | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua |
local new_sasl = require "util.sasl".new;
local log = require "util.logger".init("auth_ldap");
local ldap_server = module:get_option_string("ldap_server", "localhost");
local ldap_rootdn = module:get_option_string("ldap_rootdn", "");
local ldap_password = module:get_option_string("ldap_password", "");
local ldap_tls ... |
local new_sasl = require "util.sasl".new;
local log = require "util.logger".init("auth_ldap");
local ldap_server = module:get_option_string("ldap_server", "localhost");
local ldap_rootdn = module:get_option_string("ldap_rootdn", "");
local ldap_password = module:get_option_string("ldap_password", "");
local ldap_tls ... | mod_auth_ldap: Fix set_password | mod_auth_ldap: Fix set_password
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
cc1cd5c293bc65e0cd4af5d4cee0f7cc83eefbdf | stable_pairs.lua | stable_pairs.lua | -- https://www.lua.org/manual/5.4/manual.html#pdf-next
-- The order in which the indices are enumerated is not specified, even for numeric indices.
local table_insert = table.insert
local table_sort = table.sort
local opairs = _G.pairs
_G.pairs = function(t)
local st = {}
for k, v in opairs(t) do
table_insert(st,... | -- https://www.lua.org/manual/5.4/manual.html#pdf-next
-- The order in which the indices are enumerated is not specified, even for numeric indices.
local table_insert = table.insert
local table_sort = table.sort
local opairs = _G.pairs
_G.pairs = function(t)
local st = {}
for k in opairs(t) do
table_insert(st, k)... | fix bug | fix bug
| Lua | mit | kinbei/lua-misc |
ef0250259d6e6f21bf43461e3561d2509f230b0b | testserver/item/id_293_throwing_spear.lua | testserver/item/id_293_throwing_spear.lua | -- UPDATE common SET com_script='item.id_293_throwing_spear' WHERE com_itemid IN (293);
require("base.lookat")
module("item.id_293_throwing_spear", package.seeall)
function LookAtItem(User, Item)
local customText = base.lookat.GetItemDescription(User,Item,2,false,false);
if Item.data > 2^30 then
world:itemInfo... | -- UPDATE common SET com_script='item.id_293_throwing_spear' WHERE com_itemid IN (293);
require("base.lookat")
module("item.id_293_throwing_spear", package.seeall)
function LookAtItem(User, Item)
local customText = base.lookat.GetItemDescription(User,Item,base.lookat.WOOD,false,false);
if Item:getData("spearData... | fixed lookat and exchanged old data | fixed lookat and exchanged old data
| Lua | agpl-3.0 | KayMD/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content |
bac4b779b07a15be35b3dd3c7192a993e684c362 | TripletCriterion.lua | TripletCriterion.lua | local TripletCriterion, parent = torch.class('nn.TripletCriterion', 'nn.Criterion')
function TripletCriterion:__init(samples, blocks, norm, margin)
parent.__init(self)
self.norm = norm or 2
self.alpha = margin or 0.2
self.samples = samples or 1 -- use all anchor-positive pairs for (>1)
self.blocks ... | local TripletCriterion, parent = torch.class('nn.TripletCriterion', 'nn.Criterion')
function TripletCriterion:__init(samples, blocks, norm, margin)
parent.__init(self)
self.norm = norm or 2
self.alpha = margin or 0.2
self.samples = samples or 1 -- use all anchor-positive pairs for (>1)
self.blocks ... | Fix gradInput dimensionality and computation | Fix gradInput dimensionality and computation
| Lua | mit | jhjin/triplet-criterion |
66ca3a742b1b4da5d6435efa7b31e198201fc046 | build/Tests.lua | build/Tests.lua | -- Tests/examples helpers
function SetupExampleProject()
kind "ConsoleApp"
language "C#"
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupManagedProject()
SetupParser()
end
function SetupTestProject(name, file, lib)
SetupTestGeneratorProject(name)
S... | -- Tests/examples helpers
function SetupExampleProject()
kind "ConsoleApp"
language "C#"
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupManagedProject()
SetupParser()
end
function SetupTestProject(name, file, lib)
SetupTestGeneratorProject(name)
S... | Fixed the VS build. | Fixed the VS build.
The version of Premake that's on the repository does not seem to like the token patterns.
| Lua | mit | mono/CppSharp,genuinelucifer/CppSharp,mydogisbox/CppSharp,Samana/CppSharp,genuinelucifer/CppSharp,mydogisbox/CppSharp,u255436/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,ktopouzi/CppSharp,KonajuGames/CppSharp,SonyaSa/CppSharp,zillemarco/CppSharp,mono/CppSharp,Samana/CppSharp,inordertotest/CppSharp,genuinelucifer/CppS... |
5b940cecaf10dec3ac2f0c8973fb1469cbfe212c | frontend/ui/widget/inputtext.lua | frontend/ui/widget/inputtext.lua | local InputContainer = require("ui/widget/container/inputcontainer")
local ScrollTextWidget = require("ui/widget/scrolltextwidget")
local TextBoxWidget = require("ui/widget/textboxwidget")
local FrameContainer = require("ui/widget/container/framecontainer")
local VirtualKeyboard = require("ui/widget/virtualkeyboard")
l... | local InputContainer = require("ui/widget/container/inputcontainer")
local ScrollTextWidget = require("ui/widget/scrolltextwidget")
local TextBoxWidget = require("ui/widget/textboxwidget")
local FrameContainer = require("ui/widget/container/framecontainer")
local VirtualKeyboard = require("ui/widget/virtualkeyboard")
l... | refactoring: hide the charlist implementation of InputText This patch also fix #875. | refactoring: hide the charlist implementation of InputText
This patch also fix #875.
| Lua | agpl-3.0 | ashhher3/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,apletnev/koreader,NickSavage/koreader,Hzj-jie/koreader,noname007/koreader,chrox/koreader,koreader/koreader,NiLuJe/koreader,NiLuJe/koreader,Frenzie/koreader,frankyifei/koreader,mihailim/koreader,ashang/koreader,lgeek/koreader,robert00s/koreader,pazos/... |
d3f957729985a9b127279e81ba81af8b5c34fc46 | lua/LUA/ak/strasse/KreuzungJsonCollector.lua | lua/LUA/ak/strasse/KreuzungJsonCollector.lua | print("Lade ak.strasse.KreuzungJsonCollector")
KreuzungJsonCollector = {}
local enabled = true
local initialized = false
KreuzungJsonCollector.name = "ak.data.KreuzungJsonCollector"
local AkKreuzung = require("ak.strasse.AkKreuzung")
local function collect(alleKreuzungen)
local intersections = {}
local interse... | print("Lade ak.strasse.KreuzungJsonCollector ...")
KreuzungJsonCollector = {}
local enabled = true
local initialized = false
KreuzungJsonCollector.name = "ak.data.KreuzungJsonCollector"
local AkKreuzung = require("ak.strasse.AkKreuzung")
local AkRichtung = require("ak.strasse.AkRichtung")
local AkPhase = require("ak.st... | fix Kreuzungsausgabe nach Json | fix Kreuzungsausgabe nach Json
| Lua | mit | Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep |
535181b25ccbc492f741b9eeb111a02dfd038b41 | configs/layering.lua | configs/layering.lua | -- This global variable has the current base offset for the input channels.
-- We want to map 16 input channels (from MIDI) to 512 output channels (ArtNet),
-- so we have 32 possible offsets (32 * 16 = 512)
current_layer = 0
-- Set the current_layer based on the control input channel
function control(value)
current_l... | -- This global variable has the current base offset for the input channels.
-- We want to map 16 input channels (from MIDI) to 512 output channels (ArtNet),
-- so we have 32 possible offsets (32 * 16 = 512)
current_layer = 0
-- Set the current_layer based on the control input channel
function control(value)
current_l... | Fix lua order of operations | Fix lua order of operations
| Lua | bsd-2-clause | cbdevnet/midimonster,cbdevnet/midimonster,cbdevnet/midimonster,cbdevnet/midimonster |
1516b367106aa6a8f351b6eebcc4f75e8051187a | conf/health.lua | conf/health.lua | local cjson = require "cjson"
local inspect = require "inspect"
local response = {
status = "red",
}
if ngx.shared.apis:get("last_fetched_at") and ngx.shared.api_users:get("last_fetched_at") then
response["status"] = "yellow"
end
local http = require "resty.http"
local httpc = http.new()
local res, err = httpc:... | local cjson = require "cjson"
local inspect = require "inspect"
local response = {
status = "red",
details = {
apis_config = "red",
api_users = "red",
analytics_db = "red",
},
}
if ngx.shared.apis:get("last_fetched_at") then
response["details"]["apis_config"] = "green"
end
if ngx.shared.api_users... | Fix erroneous passing health check when config fetching failed. | Fix erroneous passing health check when config fetching failed.
If elasticsearch was up, but the config fetching from Mongo had failed,
we were erroneously returning a "green" status.
Also provide more details on the breakdown of the health status to
better indicate what pieces are functional or not.
| Lua | mit | apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella |
788d625549a342a58e7061b94b028f9b7e61b456 | OS/DiskOS/Runtime/Globals/01_Lua.lua | OS/DiskOS/Runtime/Globals/01_Lua.lua | --Complete the standard Lua functions.
local Globals = (...) or {}
local co = select(2,...) or {}
local function callevfunc(evf, a,b,c,d,e,f)
if evf and type(evf) == "function" then
local ok, err = pcall(evf, a,b,c,d,e,f)
if not ok then
local err = tostring(err)
if err:sub(1,12) == '[string ""]:... | --Complete the standard Lua functions.
local Globals = (...) or {}
local co = select(2,...) or {}
local function callevfunc(evf, a,b,c,d,e,f)
if evf and type(evf) == "function" then
local ok, err = pcall(evf, a,b,c,d,e,f)
if not ok then
local err = tostring(err)
if err:sub(1,12) == '[string ""]:... | Fix not event looping if only `_update60` is defined. | Fix not event looping if only `_update60` is defined.
Former-commit-id: c0ec311db68a8cabcf9244ffa215d14fcc0cf7b3 | Lua | mit | RamiLego4Game/LIKO-12 |
067231a3d1bd366482fecce727a687ffc45fe1fa | core/ext/find.lua | core/ext/find.lua | -- Copyright 2007 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local find = textadept.find
---
-- [Local table] Text escape sequences with their associated characters.
-- @class table
-- @name escapes
local escapes = {
['\\a'] = '\a', ['\\b'] = '\b', ['\\f'] = '\f', ['\\n'] = '\n',
['\\r'] = '\r', ['\\... | -- Copyright 2007 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local find = textadept.find
---
-- [Local table] Text escape sequences with their associated characters.
-- @class table
-- @name escapes
local escapes = {
['\\a'] = '\a', ['\\b'] = '\b', ['\\f'] = '\f', ['\\n'] = '\n',
['\\r'] = '\r', ['\\... | Fixed escapes in replace, added %() sequence; core/ext/find.lua '%%' is now properly escaped. %() sequence executes Lua code, showing an error dialog if one occured. | Fixed escapes in replace, added %() sequence; core/ext/find.lua
'%%' is now properly escaped.
%() sequence executes Lua code, showing an error dialog if one occured.
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
43fc4bca58da9288dda0dc001b647ed45e5267d5 | inputters/sil.lua | inputters/sil.lua | local base = require("inputters.base")
local epnf = require("epnf")
local inputter = pl.class(base)
inputter._name = "sil"
inputter.order = 50
inputter.appropriate = function (round, filename, doc)
if round == 1 then
return filename:match(".sil$")
elseif round == 2 then
local sniff = doc:sub(1, 100)
... | local base = require("inputters.base")
local epnf = require("epnf")
local inputter = pl.class(base)
inputter._name = "sil"
inputter.order = 50
inputter.appropriate = function (round, filename, doc)
if round == 1 then
return filename:match(".sil$")
elseif round == 2 then
local sniff = doc:sub(1, 100)
... | fix(inputters): Relax SIL format sniffing to allow valid syntax | fix(inputters): Relax SIL format sniffing to allow valid syntax
This allows the content sniffer to succeed and tag content as SIL when
the syntax is valid even if the document is invalid (e.g. not wrapped in
a single top level document tag). This helps with correctly identifying
STDIN streams that happen to be SIL and... | Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
d2f6309d694944eff0b1c93a4bde3283a12db3e3 | config/nvim/init.lua | config/nvim/init.lua | local ext = require("ext")
require = ext.require
vim = _G.vim
vim.map = ext.vim.mapping("")
vim.imap = ext.vim.mapping("i")
vim.nmap = ext.vim.mapping("n")
vim.omap = ext.vim.mapping("o")
vim.smap = ext.vim.mapping("s")
vim.vmap = ext.vim.mapping("v")
vim.xmap = ext.vim.mapping("x")
vim.hl = ext.vim.highli... | local ext = require("ext")
require = ext.require
vim = _G.vim
vim.map = ext.vim.mapping("")
vim.imap = ext.vim.mapping("i")
vim.nmap = ext.vim.mapping("n")
vim.omap = ext.vim.mapping("o")
vim.smap = ext.vim.mapping("s")
vim.vmap = ext.vim.mapping("v")
vim.xmap = ext.vim.mapping("x")
vim.hl = ext.vim.highli... | Fix keybindings | Fix keybindings
| Lua | mit | charlesbjohnson/dotfiles,charlesbjohnson/dotfiles |
7c60d0749f1696ef5f9b7a5ec31c653c6e70c254 | data/notmnist.lua | data/notmnist.lua | ------------------------------------------------------------------------
--[[ NotMnist ]]--
-- http://yaroslavvb.blogspot.ca/2011/09/notmnist-dataset.html
-- http://yaroslavvb.com/upload/notMNIST/
-- A 500k+ example alternative to MNIST using unicode fonts.
--------------------------------------------------------------... | ------------------------------------------------------------------------
--[[ NotMnist ]]--
-- http://yaroslavvb.blogspot.ca/2011/09/notmnist-dataset.html
-- http://yaroslavvb.com/upload/notMNIST/
-- A 500k+ example alternative to MNIST using unicode fonts.
--------------------------------------------------------------... | NotMnist fixes | NotMnist fixes
| Lua | bsd-3-clause | nicholas-leonard/dp,sagarwaghmare69/dp,kracwarlock/dp,rickyHong/dptorchLib,fiskio/dp,jnhwkim/dp,eulerreich/dp |
8deab10dd8ef2e03277c919054e02380d3cad2d8 | PokePrecSucc.lua | PokePrecSucc.lua | --[[
Navigation bar with previous and next Pokémon in dex order.
This module exports two functions.
One is the "PokePrecSucc", intended to be used within Pokémon pages, that
links the previous and next Pokémon pages.
The other is "subpage", intended to be used in Pokémon subpages to link
corresponding subpages of pre... | --[[
Navigation bar with previous and next Pokémon in dex order.
This module exports two functions.
One is the "PokePrecSucc", intended to be used within Pokémon pages, that
links the previous and next Pokémon pages.
The other is "subpage", intended to be used in Pokémon subpages to link
corresponding subpages of pre... | Fixing link of PrevNext in Pokémon subpages | Fixing link of PrevNext in Pokémon subpages
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
2afdcddad880ad5f3694070bb3b8a7692ac375ec | TemporalAdapter.lua | TemporalAdapter.lua | require 'torch'
require 'nn'
--[[
A TemporalAdapter wraps a module intended to work on a minibatch of inputs
and allows you to use it on a minibatch of sequences of inputs.
The constructor accepts a module; we assume that the module operates
expects to receive a minibatch of inputs of shape (N, A) and produce a
minib... | require 'torch'
require 'nn'
--[[
A TemporalAdapter wraps a module intended to work on a minibatch of inputs
and allows you to use it on a minibatch of sequences of inputs.
The constructor accepts a module; we assume that the module operates
expects to receive a minibatch of inputs of shape (N, A) and produce a
minib... | Fix TemporalAdapter | Fix TemporalAdapter
| Lua | mit | antihutka/torch-rnn |
dcb8215a3f89d2d3c3acb4e6e923568a2b71db55 | frontend/version.lua | frontend/version.lua | --[[--
This module helps with retrieving version information.
]]
local Version = {}
--- Returns current KOReader git-rev.
-- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238`
function Version:getCurrentRevision()
if not self.rev then
local rev_file = io.open("git-rev", "r")
if... | --[[--
This module helps with retrieving version information.
]]
local Version = {}
--- Returns current KOReader git-rev.
-- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238`
function Version:getCurrentRevision()
if not self.rev then
local rev_file = io.open("git-rev", "r")
if... | Fix point release and revision detection in Version:getShortVersion (#6693) | Fix point release and revision detection in Version:getShortVersion (#6693)
| Lua | agpl-3.0 | Hzj-jie/koreader,koreader/koreader,mwoz123/koreader,pazos/koreader,Markismus/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,NiLuJe/koreader |
d41336cb488f558a7c8086813d8b284ac6cf46bb | Resources/Scripts/Modes/Xsera/MainMenu.lua | Resources/Scripts/Modes/Xsera/MainMenu.lua | import('GlobalVars')
-- main menu script
lastTime = 0
ships = {}
math.randomseed(os.time())
math.random()
if (math.random() < 0.5) then
-- allied ships going to war
allies = true
shipVelocity = { -340, 70 }
shipType = { "Human/Gunship", "Human/Fighter", "Human/Cruiser", "Human/Destroyer", "Human/Fighte... | import('GlobalVars')
-- main menu script
lastTime = 0
ships = {}
math.randomseed(os.time())
math.random()
if (math.random() < 0.5) then
-- allied ships going to war
allies = true
shipVelocity = { -340, 70 }
shipType = { "Human/Gunship", "Human/Fighter", "Human/Cruiser", "Human/Destroyer", "Human/Fighte... | Fixed up the main menu key control system. | Fixed up the main menu key control system.
Signed-off-by: Adam Hintz <96c833980ca266d81f358ac8bd40898278f74af6@gmail.com>
| Lua | mit | adam000/xsera,adam000/xsera,prophile/xsera,prophile/xsera,prophile/xsera,prophile/xsera,adam000/xsera,adam000/xsera,prophile/xsera |
39b5fd1bf37b217c9082ac2db0621e4a01736e37 | Examples/smplayer-debian-sandbox.cfg.lua | Examples/smplayer-debian-sandbox.cfg.lua | -- example config for smplayer sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua
-- using debian-sandbox.cfg.lua config file as base
-- opengl acceleration should work with opensurce mesa drivers, tested on Intel HD graphics.
-- for proprietary NVIDIA and AMD drivers it may b... | -- example config for smplayer sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua
-- using debian-sandbox.cfg.lua config file as base
-- opengl acceleration should work with opensurce mesa drivers, tested on Intel HD graphics.
-- for proprietary NVIDIA and AMD drivers it may b... | fixup! Examples: rework and simplify smplayer-debian-sandbox.cfg.lua | fixup! Examples: rework and simplify smplayer-debian-sandbox.cfg.lua
| Lua | mit | DarkCaster/Sandboxer,DarkCaster/Sandboxer |
e0fe1a08c573cb82e3d950ba6c0cbe321f528b04 | mods/stairs/init.lua | mods/stairs/init.lua | -- Minetest 0.4 mod: stairs
-- See README.txt for licensing and other information.
stairs = {}
-- Node will be called stairs:stair_<subname>
function stairs.register_stair(subname, recipeitem, groups, images, description)
minetest.register_node("stairs:stair_" .. subname, {
description = description,
drawtype = ... | -- Minetest 0.4 mod: stairs
-- See README.txt for licensing and other information.
stairs = {}
-- Node will be called stairs:stair_<subname>
function stairs.register_stair(subname, recipeitem, groups, images, description)
minetest.register_node("stairs:stair_" .. subname, {
description = description,
drawtype = ... | Fix slab -> full block transformation | Fix slab -> full block transformation
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
072680c9077bfbdce48155435ebbb61e155a9f01 | OS/DiskOS/Runtime/Globals/04_GameAPI.lua | OS/DiskOS/Runtime/Globals/04_GameAPI.lua | --Games special API loader
local term = require("terminal")
local MainDrive = term.getMainDrive()
local Globals = (...) or {}
local sw,sh = screenSize()
function Globals.pause()
if Globals._DISABLE_PAUSE then return end
pushMatrix()
pushPalette()
pushColor()
palt() pal() colorPalette() cam()
lo... | --Games special API loader
local term = require("terminal")
local MainDrive = term.getMainDrive()
local Globals = (...) or {}
local sw,sh = screenSize()
function Globals.pause()
if Globals._DISABLE_PAUSE then return end
pushMatrix()
pushPalette()
pushColor()
palt() pal() colorPalette() cam()
lo... | Fix gamedata saving | Fix gamedata saving
Former-commit-id: 4c1a6724a48acbb313150d9d7c8a38dfdb4e9441 | Lua | mit | RamiLego4Game/LIKO-12 |
74407312e33b1f10d9f5a472b4a79e6eb6fb8edc | extensions/tabs/init.lua | extensions/tabs/init.lua | --- === hs.tabs ===
---
--- Place the windows of an application into tabs drawn on its titlebar
local tabs = {}
local drawing = require "hs.drawing"
local uielement = require "hs.uielement"
local watcher = uielement.watcher
local fnutils = require "hs.fnutils"
local application = require "hs.application"
local appwatc... | --- === hs.tabs ===
---
--- Place the windows of an application into tabs drawn on its titlebar
local tabs = {}
local drawing = require "hs.drawing"
local uielement = require "hs.uielement"
local watcher = uielement.watcher
local fnutils = require "hs.fnutils"
local application = require "hs.application"
local appwatc... | Update init.lua | Update init.lua
fix code logic bug (show as when click tab / invoke tabs.focusTab, but cannot switch to app's corresponding window) | Lua | mit | latenitefilms/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,CommandPost/CommandPost-App,asmagill/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,CommandPo... |
d7227cfd1a77981c1951a11b3da058d4429f5444 | service/watchdog.lua | service/watchdog.lua | local skynet = require "skynet"
local command = {}
local agent_all = {}
local gate = skynet.launch("gate" , skynet.self(), ...)
print("gate",gate)
function command:open(parm)
local fd,addr = string.match(parm,"(%d+) ([^%s]+)")
fd = tonumber(fd)
print("agent open",self,string.format("%d %d %s",self,fd,addr))
loca... | local skynet = require "skynet"
local command = {}
local agent_all = {}
local gate = skynet.launch("gate" , skynet.self(), ...)
print("gate",gate)
function command:open(parm)
local fd,addr = string.match(parm,"(%d+) ([^%s]+)")
fd = tonumber(fd)
print("agent open",self,string.format("%d %d %s",self,fd,addr))
loca... | bugfix: watchdog forward client message to agent, set session = 0x7fffffff | bugfix: watchdog forward client message to agent, set session = 0x7fffffff
| Lua | mit | ypengju/skynet_comment,xcjmine/skynet,qyli/test,zzh442856860/skynet,kyle-wang/skynet,fhaoquan/skynet,MetSystem/skynet,ruleless/skynet,LiangMa/skynet,QuiQiJingFeng/skynet,longmian/skynet,letmefly/skynet,codingabc/skynet,kyle-wang/skynet,togolwb/skynet,boyuegame/skynet,LuffyPan/skynet,pichina/skynet,cpascal/skynet,wangyi... |
29dd0cf7262545f9297317b84874a49b66fb6b31 | resources/prosody-plugins/mod_limits_exception.lua | resources/prosody-plugins/mod_limits_exception.lua | -- we use async to detect Prosody 0.10 and earlier
local have_async = pcall(require, 'util.async');
if not have_async then
return;
end
local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {});
-- rises the limit of the stanza size for the unlimited jids, default is 10MB
local unlimited_stanza_si... | -- we use async to detect Prosody 0.10 and earlier
local have_async = pcall(require, 'util.async');
if not have_async then
return;
end
local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {});
-- rises the limit of the stanza size for the unlimited jids, default is 10MB
local unlimited_stanza_si... | fix: Adds a null check in mod_limits_exceptions. | fix: Adds a null check in mod_limits_exceptions.
It is failing on prosody 0.11.4 with mod_limits_exception.lua:29: attempt to call method 'set_stanza_size_limit' (a nil value). That prosody misses set_stanza_size_limit.
| Lua | apache-2.0 | gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet |
0ae03260bab355d34feabeadae2c2677b9d16ca2 | src/debugger.lua | src/debugger.lua | local List = require 'list'
local window = require 'window'
local fonts = require 'fonts'
local gamestate = require 'vendor/gamestate'
local window = require 'window'
local camera = require 'camera'
local Debugger = { on=false, bbox=false }
Debugger.__index = Debugger
Debugger.sampleRate = 0.05
Debugger.lastSample = ... | local List = require 'list'
local window = require 'window'
local fonts = require 'fonts'
local gamestate = require 'vendor/gamestate'
local window = require 'window'
local camera = require 'camera'
local Debugger = { on=false, bbox=false }
Debugger.__index = Debugger
Debugger.sampleRate = 0.05
Debugger.lastSample = ... | Fixes debugger crash when mousing over polygons. | Fixes debugger crash when mousing over polygons.
| Lua | mit | hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
9c45de9aa9e72601057f50f82b7e1ed8e8cdbd1a | feedback/fkdkaggle.lua | feedback/fkdkaggle.lua | ------------------------------------------------------------------------
--[[ FKDKaggle ]]--
-- Feedback
-- Prepares a kaggle submission
-- Requires csvigo
------------------------------------------------------------------------
local FKDKaggle, parent = torch.class("dp.FKDKaggle", "dp.Feedback")
FKDKaggle.isFKDKaggle ... | ------------------------------------------------------------------------
--[[ FKDKaggle ]]--
-- Feedback
-- Prepares a kaggle submission
-- Requires csvigo
------------------------------------------------------------------------
local FKDKaggle, parent = torch.class("dp.FKDKaggle", "dp.Feedback")
FKDKaggle.isFKDKaggle ... | FKDKaggle fixes | FKDKaggle fixes
| Lua | bsd-3-clause | fiskio/dp,nicholas-leonard/dp,rickyHong/dptorchLib,eulerreich/dp,sagarwaghmare69/dp,jnhwkim/dp,kracwarlock/dp |
91dc0004aa7c089558f3bf6bb788f94cc976cc85 | plugins/database.lua | plugins/database.lua | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | fix database | fix database
| Lua | agpl-3.0 | xsolinsx/AISasha |
a4868c1653ef6c2509e2c8723c0a853f99527620 | src/premake4.lua | src/premake4.lua | os_properties =
{
windows = { dir = 'win32', pythondir = 'windows' },
macosx = { dir = 'osx', pythondir = 'osx' },
linux = { dir = 'linux', pythondir = 'linux' },
}
props = {}
if _OPTIONS.os == nil then
error('Please specify your target os!')
elseif os_properties[_OPTIONS.os] == nil then
error('Unsupported os... | os_properties =
{
windows = { dir = 'win32', pythondir = 'windows' },
macosx = { dir = 'osx', pythondir = 'osx' },
linux = { dir = 'linux', pythondir = 'linux' },
}
props = {}
if _OPTIONS.os == nil then
error('Please specify your target os!')
elseif os_properties[_OPTIONS.os] == nil then
error('Unsupported os... | Fixed some linker issues with textureconverter. | Fixed some linker issues with textureconverter.
| Lua | mit | kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools |
b4239a68c57cc1794161a649f7f791164809b073 | cfg/mpi/config/scripts/image_statusbar.lua | cfg/mpi/config/scripts/image_statusbar.lua | local on = mp.get_opt('images-statusbar') == 'yes'
-- lua-filesize, generate a human readable string describing the file size
-- Copyright (c) 2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local si = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}
local function isNan(num)
-- http://lua-users... | local on = mp.get_opt('images-statusbar') == 'yes'
-- lua-filesize, generate a human readable string describing the file size
-- Copyright (c) 2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local si = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}
local function isNan(num)
-- http://lua-users... | cfg/mpi: fix dimensions not shown for JPEG files | cfg/mpi: fix dimensions not shown for JPEG files
| Lua | mit | rr-/dotfiles,rr-/dotfiles,rr-/dotfiles |
797b75213c4d1133012aff568b2bf75b4270068e | luapress/util.lua | luapress/util.lua | -- Luapress
-- File: luapress/util.lua
-- Desc: internal Luapress utilities!
local os = os
local io = io
local print = print
local pairs = pairs
local error = error
local table = table
local string = string
local lfs = require('lfs')
local markdown = require('luapress.lib.markdown')
local template = require('luapres... | -- Luapress
-- File: luapress/util.lua
-- Desc: internal Luapress utilities!
local os = os
local io = io
local print = print
local pairs = pairs
local error = error
local table = table
local string = string
local lfs = require('lfs')
local markdown = require('luapress.lib.markdown')
local template = require('luapres... | Fix handling of --MORE-- (escape those -!) | Fix handling of --MORE-- (escape those -!)
| Lua | mit | Fizzadar/Luapress,Fizzadar/Luapress,w-oertl/Luapress,w-oertl/Luapress |
07426fe3f2f6a7bd8168226d762932cabe0543bb | src/lib/timers/ingress_drop_monitor.lua | src/lib/timers/ingress_drop_monitor.lua | module(...,package.seeall)
-- Ingress packet drop monitor timer.
local S = require("syscall")
local counter = require("core.counter")
local ffi = require("ffi")
local shm = require("core.shm")
-- Every 100 milliseconds.
local default_interval = 1e8
local now = core.app.now
local IngressDropMonitor = {}
function n... | module(...,package.seeall)
-- Ingress packet drop monitor timer.
local S = require("syscall")
local counter = require("core.counter")
local ffi = require("ffi")
local shm = require("core.shm")
-- Every 100 milliseconds.
local default_interval = 1e8
local now = core.app.now
local IngressDropMonitor = {}
function n... | Append .counter suffix if necessary | Append .counter suffix if necessary
| Lua | apache-2.0 | mixflowtech/logsensor,Igalia/snabbswitch,kbara/snabb,mixflowtech/logsensor,eugeneia/snabb,heryii/snabb,dpino/snabb,kbara/snabb,dpino/snabb,heryii/snabb,SnabbCo/snabbswitch,eugeneia/snabb,dpino/snabbswitch,kbara/snabb,dpino/snabb,Igalia/snabb,snabbco/snabb,eugeneia/snabb,eugeneia/snabbswitch,dpino/snabb,dpino/snabb,Snab... |
bcbb86cfda0a2dd1af9a225a2707962013d0e4a0 | pud/view/GameCam.lua | pud/view/GameCam.lua | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local _zoomLevels = {1, 0.5, 0.25}
local GameCam = Class{name='GameCam',
function(self, v, zoom)
v = v or vector(0,0)
self._zoom = math.m... | require 'pud.util'
local Class = require 'lib.hump.class'
local Camera = require 'lib.hump.camera'
local vector = require 'lib.hump.vector'
local Rect = require 'pud.kit.Rect'
local _zoomLevels = {1, 0.5, 0.25}
local _isVector = function(...)
local n = select('#',...)
for i=1,n do
local v = select(i,...)
assert... | fix GameCam to work with vectors, animate, and check if animating | fix GameCam to work with vectors, animate, and check if animating
| Lua | mit | scottcs/wyx |
441cc332cb04d65c69216d7ff972c0e61adc7604 | src/common/http.lua | src/common/http.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fixed pattern matching on zip | Fixed pattern matching on zip
| Lua | mit | Zefiros-Software/ZPM |
da58b3d8025d6f7d9145e3cbc1fd1908eca0bc86 | src/program/lwaftr/quickcheck/quickcheck.lua | src/program/lwaftr/quickcheck/quickcheck.lua | module(...,package.seeall)
local lib = require("core.lib")
local utils = require("program.lwaftr.quickcheck.utils")
local function show_usage(code)
print(require("program.lwaftr.quickcheck.README_inc"))
main.exit(code)
end
local function parse_args (args)
local handlers = {}
local opts = {
iteratio... | module(...,package.seeall)
local lib = require("core.lib")
local utils = require("program.lwaftr.quickcheck.utils")
local function show_usage(code)
print(require("program.lwaftr.quickcheck.README_inc"))
main.exit(code)
end
local function parse_args (args)
local handlers = {}
local opts = {
iteratio... | Fix failure message for lwaftr quickcheck | Fix failure message for lwaftr quickcheck
| Lua | apache-2.0 | alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,dpino/snabb,Igalia/snabb,dpino/snabbswitch,heryii/snabb,dpino/snabb,Igalia/snabb,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,alexandergall/snabbswitch,Igalia/snabb,snabbco/snabb,Igalia/snabbswitch,dpino/snabb,SnabbCo/snabbswitch,Igalia/snabbswitch,alexandergall/snabb... |
d59f1f50d181608046f74c896c5e56a22a63a9a6 | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | applications/luci-statistics: fix controller (#7344) | applications/luci-statistics: fix controller (#7344)
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8082 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
f4ed73818775701fac4e179107fbac36db279ee7 | mods/serverguide/init.lua | mods/serverguide/init.lua | local serverguide_Book_title="The server guide"
local serverguide_Tab_Text_1=[[
Server info
MinetestForFun Server (hardcore)
Base server (classic) of the MinetestForFun Team
]]
local serverguide_Tab_Text_2= [[
1) No intentional try to disturb the server's stability will be tolerated.
2) Cheating (hack, m... | local serverguide_Book_title="The server guide"
local serverguide_Tab_Text_1=[[
Server info
MinetestForFun Server (hardcore)
Base server (classic) of the MinetestForFun Team
]]
local serverguide_Tab_Text_2= [[
1) No intentional try to disturb the server's stability will be tolerated.
2) Cheating (hack, m... | fix use node.on_punch when node have pointed_thing (bug book guide and warps cristal) | fix use node.on_punch when node have pointed_thing (bug book guide and warps cristal)
| Lua | unlicense | MinetestForFun/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,MinetestForFun/server-minetestforfun,crabman77/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfu... |
5e2c3602d7b7371e30ac2dd1acf9753a7d0d0150 | otouto/plugins/filterer.lua | otouto/plugins/filterer.lua | local bindings = require('otouto.bindings')
local autils = require('otouto.administration')
local rot13 = require('otouto.rot13')
local P = {}
function P:init()
P.triggers = {''}
P.internal = true
end
function P:action(msg, group, user)
if user.rank > 1 then return true end
if msg.forward_from and (
... | local bindings = require('otouto.bindings')
local autils = require('otouto.administration')
local utilities = require('otouto.utilities')
local rot13 = require('otouto.rot13')
local P = {}
function P:init()
P.triggers = {''}
P.internal = true
end
function P:action(msg, group, user)
if user.rank > 1 then ... | bugfix filterer | bugfix filterer
| Lua | agpl-3.0 | topkecleon/otouto |
28f0e82160fc97e105dbba608948d5dbc89c2545 | core/usermanager.lua | core/usermanager.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local datamanager = require "util.datamanager";
local log = require "util.logger".init("usermanager");
loc... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local datamanager = require "util.datamanager";
local log = require "util.logger".init("usermanager");
loc... | usermanager: Fix for is_admin to work with the new auth provider architecture | usermanager: Fix for is_admin to work with the new auth provider architecture
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
a226e4101d002e3f1ecbb6eb56699b5b60e86b0c | src/GR2XML.lua | src/GR2XML.lua | #!/usr/bin/env lua
dataFile = "/Applications/World of Warcraft/WTF/Account/OPUSSF/SavedVariables/GoldRate.lua"
function FileExists( name )
local f = io.open( name, "r" )
if f then io.close( f ) return true else return false end
end
function DoFile( filename )
local f = assert( loadfile( filename ) )
return f(... | #!/usr/bin/env lua
dataFile = "/Applications/World of Warcraft/WTF/Account/OPUSSF/SavedVariables/GoldRate.lua"
function FileExists( name )
local f = io.open( name, "r" )
if f then io.close( f ) return true else return false end
end
function DoFile( filename )
local f = assert( loadfile( filename ) )
return f(... | Bug fix for XML geneartion | Bug fix for XML geneartion
| Lua | mit | opussf/GoldRate,opussf/GoldRate |
702e6051ef1b8a8a638a785df1879f50e0b8c157 | triggerfield/base/donation.lua | triggerfield/base/donation.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... | style fixes | style fixes
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content |
c59d84aadc45f4fd93860f2fb1b483936dc9f1bc | AceLocale-3.0/AceLocale-3.0.lua | AceLocale-3.0/AceLocale-3.0.lua | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
-- @class file
-- @name AceLocale-3.0
-- @release $Id$
local MAJOR,MINOR = "AceLocale-3.0", 2
local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if n... | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
-- @class file
-- @name AceLocale-3.0
-- @release $Id$
local MAJOR,MINOR = "AceLocale-3.0", 3
local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if n... | - Fix erronous assumption that the default locale is always the first to be registered for the :NewLocale() "silent" flag. The flag must now be set on the FIRST locale to be registered. - The :NewLocale() "silent" flag may now be set to the string "raw", meaning nils are returned for unknown translations. | - Fix erronous assumption that the default locale is always the first to be registered for the :NewLocale() "silent" flag. The flag must now be set on the FIRST locale to be registered.
- The :NewLocale() "silent" flag may now be set to the string "raw", meaning nils are returned for unknown translations.
git-svn-id: ... | Lua | bsd-3-clause | sarahgerweck/Ace3 |
bbad1720c3e309a5fe85c5eca451b3182a5ca950 | hammerspoon/hammerspoon.symlink/init.lua | hammerspoon/hammerspoon.symlink/init.lua | -- Load Extensions
require("luarocks.loader")
local application = require "hs.application"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local keycodes = require "hs.keycodes"
local fnutils = require "hs.fnutils"
local alert = require "hs.alert"
local screen = require "hs.screen"
local grid = re... | -- Load Extensions
require("luarocks.loader")
local application = require "hs.application"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local keycodes = require "hs.keycodes"
local fnutils = require "hs.fnutils"
local alert = require "hs.alert"
local screen = require "hs.screen"
local grid = re... | fix tss scrolling | fix tss scrolling
| Lua | mit | trishume/dotfiles,trishume/dotfiles,trishume/dotfiles,trishume/dotfiles |
36a48f283a68c3f95cab2e4250fb09155a64d406 | 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.e... | -- 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("$(xmake) install -o /tmp -a --verbose --backtrace")
os.exec("$(xmake) uninstall --installdir=/tmp --verbose --backtrace")
e... | fix tests | fix tests
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake |
eaa204eae962a881213db3837b7ee0c3c960e39d | kong/cmd/config.lua | kong/cmd/config.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | fix(cmd) create globals before config subcommands (#5230) | fix(cmd) create globals before config subcommands (#5230)
Initialize the kong global and database before running any config
subcommand. Remove an existing, now superfluous initialization specific
to db_export.
db_import and parse invoke parse_file, which runs entity checks. Entity
checks can require database acc... | Lua | apache-2.0 | Mashape/kong,Kong/kong,Kong/kong,Kong/kong |
136eb28fad5c4fa843ca5e832e4e08d81469beaa | tasks/dm1.lua | tasks/dm1.lua | local M = {}
local toribio = require 'toribio'
local sched = require 'lumen.sched'
local log = require 'lumen.log'
local selector = require 'lumen.tasks.selector'
local encoder_lib = require ('lumen.lib.dkjson')
local encode_f = encoder_lib.encode
local decode_f = encoder_lib.decode
local assert, tonumber, io_open, t... | local M = {}
local toribio = require 'toribio'
local sched = require 'lumen.sched'
local log = require 'lumen.log'
local selector = require 'lumen.tasks.selector'
local encoder_lib = require ('lumen.lib.dkjson')
local encode_f = encoder_lib.encode
local decode_f = encoder_lib.decode
local assert, tonumber, io_open, t... | fix angle passing | fix angle passing
| Lua | mit | xopxe/Toribio,xopxe/Toribio,xopxe/Toribio |
22bccd94000e9caae0c295544fbc88a1ed052891 | src/base/detoken.lua | src/base/detoken.lua | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | --
-- detoken.lua
--
-- Expands tokens.
--
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
premake.detoken = {}
local p = premake
local detoken = p.detoken
--
-- Expand tokens in a value.
--
-- @param value
-- The value containing the tokens to be expanded.
-- @param environ
-- An execu... | fix error reporting in detoken.lua | fix error reporting in detoken.lua
| Lua | bsd-3-clause | aleksijuvani/premake-core,xriss/premake-core,TurkeyMan/premake-core,Zefiros-Software/premake-core,jstewart-amd/premake-core,soundsrc/premake-core,tvandijck/premake-core,LORgames/premake-core,bravnsgaard/premake-core,Zefiros-Software/premake-core,noresources/premake-core,martin-traverse/premake-core,premake/premake-core... |
d985b5b2b000368bf656a78a5f3a008322ceeade | deployer/deployer_oodl.lua | deployer/deployer_oodl.lua | package.path = package.path .. ';./include/?.lua'
require "rttlib"
--require "rfsm_rtt"
require "rttros"
--require "kdlpp"
--require "kdlutils"
--require "complete"
--require "readline"
require 'inifile'
require "definitions"
-- Lua deployer
if deployer_type == LUA_DEPLOYER then
tc = rtt.getTC()
depl = tc:getPeer("... | package.path = package.path .. ';./include/?.lua'
package.path = package.path .. ';./procedures/?.lua'
require "rttlib"
--require "rfsm_rtt"
require "rttros"
--require "kdlpp"
--require "kdlutils"
--require "complete"
--require "readline"
require 'inifile'
require "definitions"
-- Lua deployer
if deployer_type == LUA_... | fix issue #9 | fix issue #9
| Lua | mit | hjeldin/HILAS,hjeldin/HILAS,hjeldin/HILAS,hjeldin/HILAS |
cf8dfd819d60fb1b5e938a76a6253a02e20db124 | lua/ui.lua | lua/ui.lua | -- ui
ui = {}
function ui.choose(options, title, selected, hook, titlecolor, selectedoptcolor, optioncolor, font_custom)
local font_to_use = font_custom or font or vita2d.load_font()
local selectedoptcolor = selectedcolor or colors.red
local optioncolor = optioncolor or colors.white
local titlecolor = titlecolo... | -- ui
ui = {}
function ui.choose(options, title, selected, hook, titlecolor, selectedoptcolor, optioncolor, font_custom)
local font_to_use = font_custom or font or vita2d.load_font()
local selectedoptcolor = selectedcolor or colors.red
local optioncolor = optioncolor or colors.white
local titlecolor = titlecolo... | Fixed scrolling. | Fixed scrolling.
| Lua | mit | Stary2001/vita-lua,Stary2001/vita-lua |
d8462e874c909d2812c7ce7f3aee5669601552d5 | lib/pkg/glib.lua | lib/pkg/glib.lua | return {
source = {
type = 'dist',
location = 'http://ftp.gnome.org/pub/GNOME/sources/glib/2.48/glib-2.48.2.tar.xz',
sha256sum = 'f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4'
},
build = {
type = 'GNU',
options = {
'--disable-mem-... | return {
source = {
type = 'dist',
location = 'http://ftp.gnome.org/pub/GNOME/sources/glib/2.48/glib-2.48.2.tar.xz',
sha256sum = 'f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4'
},
build = {
type = 'GNU',
options = {
'--disable-main... | Explicitly set more options to fix glib build on target | Explicitly set more options to fix glib build on target
| Lua | mit | bazurbat/jagen |
aedd84881b18e3044a4606edb5df2c2d82616ea4 | test/vinyl/large.lua | test/vinyl/large.lua | fiber = require('fiber')
digest = require('digest')
local function prepare()
local s1 = box.schema.space.create('large_s1', { engine = 'vinyl', if_not_exists = true })
s1:create_index('pk', {if_not_exists = true})
end
local function large_test(iter_limit, time_limit)
iter_limit = iter_limit or 500
tim... | fiber = require('fiber')
digest = require('digest')
local function prepare()
local s1 = box.schema.space.create('large_s1', { engine = 'vinyl', if_not_exists = true })
s1:create_index('pk', {if_not_exists = true})
end
local function large_test(iter_limit, time_limit)
iter_limit = iter_limit or 500
tim... | vinyl: fix vinyl/large.test.lua | vinyl: fix vinyl/large.test.lua
Add periodic collectgarbage() to loops.
| Lua | bsd-2-clause | mejedi/tarantool,rtsisyk/tarantool,rtsisyk/tarantool,mejedi/tarantool,mejedi/tarantool,rtsisyk/tarantool,rtsisyk/tarantool,mejedi/tarantool |
426f30d459331554c6d1f99c9544ddbce4a6ec52 | MMOCoreORB/bin/scripts/mobile/naboo/motley_kaadu.lua | MMOCoreORB/bin/scripts/mobile/naboo/motley_kaadu.lua | motley_kaadu = Creature:new {
objectName = "@mob/creature_names:kaadu_motley",
socialGroup = "kaadu",
pvpFaction = "",
faction = "",
level = 8,
chanceHit = 0.27,
damageMin = 70,
damageMax = 75,
baseXp = 187,
baseHAM = 405,
baseHAMmax = 495,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_avia... | motley_kaadu = Creature:new {
objectName = "@mob/creature_names:kaadu_motley",
socialGroup = "kaadu",
pvpFaction = "",
faction = "",
level = 8,
chanceHit = 0.27,
damageMin = 70,
damageMax = 75,
baseXp = 187,
baseHAM = 405,
baseHAMmax = 495,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "meat_avia... | [Fixed] motley kaadu to be tamable | [Fixed] motley kaadu to be tamable
Change-Id: Ie17e391e6ca5aa0549e38b0250de11606aa2893c
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/... |
679de0aa41c0660db3ce1535b26fb101b037c09f | build/Tests.lua | build/Tests.lua | -- Tests/examples helpers
function SetupExampleProject()
kind "ConsoleApp"
language "C#"
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupManagedProject()
SetupParser()
end
function SetupTestProject(name, extraFiles)
SetupTestGeneratorProject(name)
... | -- Tests/examples helpers
function SetupExampleProject()
kind "ConsoleApp"
language "C#"
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupManagedProject()
SetupParser()
end
function SetupTestProject(name, extraFiles)
SetupTestGeneratorProject(name)
... | Fixed tests generation in build using Xamarin Studio. | Fixed tests generation in build using Xamarin Studio.
| Lua | mit | ddobrev/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,u255436/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,ktopouzi/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,u255436/CppSharp,ddobrev/CppSharp,inordertotest/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,inord... |
dfa14c1255d5cab24715e00514c23e8c2473562a | lib/utils/opt.lua | lib/utils/opt.lua | local function is_set(opt, name)
return opt[name]:len() > 0
end
--[[ Check that option `name` is set in `opt`. Throw an error if not set. ]]
local function require_option(opt, name)
if not is_set(opt, name) then
error("option -" .. name .. " is required")
end
end
--[[ Make sure all options in `names` are se... | local function is_set(opt, name)
return opt[name]:len() > 0
end
--[[ Check that option `name` is set in `opt`. Throw an error if not set. ]]
local function require_option(opt, name)
if not is_set(opt, name) then
error("option -" .. name .. " is required")
end
end
--[[ Make sure all options in `names` are se... | fix config file loading | fix config file loading
Convert values to their original type: boolean, number or string.
| Lua | mit | monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,srush/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,cser... |
9c352f2b6a26d077212f0a8d3cc951a2fc888ee8 | bin/core/app.lua | bin/core/app.lua | -- app.lua
local shotcuts = puss.import('core.shotcuts')
local pages = puss.import('core.pages')
local docs = puss.import('core.docs')
local demos = puss.import('core.demos')
local filebrowser = puss.import('core.filebrowser')
local console = puss.import('core.console')
local diskfs = puss.import('core.diskfs')
fileb... | -- app.lua
local shotcuts = puss.import('core.shotcuts')
local pages = puss.import('core.pages')
local docs = puss.import('core.docs')
local demos = puss.import('core.demos')
local filebrowser = puss.import('core.filebrowser')
local console = puss.import('core.console')
local diskfs = puss.import('core.diskfs')
fileb... | fix code | fix code
| Lua | mit | louisliangjun/puss,louisliangjun/puss,louisliangjun/puss,louisliangjun/puss |
a0fd9ce046928e1b4635b9a1f26bf218dcc5ca24 | share/lua/website/sevenload.lua | share/lua/website/sevenload.lua |
-- libquvi-scripts
-- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... |
-- libquvi-scripts
-- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | FIX: website/sevenload.lua: all patterns | FIX: website/sevenload.lua: all patterns
* `ident': Use `handles' function of 'quvi/util'
* `parse': Update media {title,id,url} patterns
* `parse': Parse thumb url
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
| Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts |
377c2283e62ed936df6d6bd800cd67cf8c691bcf | premake5.lua | premake5.lua |
-- A solution contains projects, and defines the available configurations
solution "graphicsByExample"
configurations { "Debug", "Release"}
flags { "Unicode" , "NoPCH"}
srcDirs = os.matchdirs("src/*")
for i, projectName in ipairs(srcDirs) do
-- A project defines one build target
... |
-- A solution contains projects, and defines the available configurations
solution "graphicsByExample"
configurations { "Debug", "Release"}
flags { "Unicode" , "NoPCH"}
srcDirs = os.matchdirs("src/*")
for i, projectName in ipairs(srcDirs) do
-- A project defines one build target
... | fix windows search path issue | fix windows search path issue
| Lua | mit | shearer12345/graphicsByExample |
599c27799c1b52b7f3732a915f65f8f9fe249b57 | tundra.lua | tundra.lua | require "tundra.native"
local native = require('tundra.native')
local macosx = {
Env = {
QT5 = native.getenv("QT5"),
CCOPTS = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything",
"-Wno-c++98-compat-pedantic",
"-Wno-documentation", "-Wno-mis... | require "tundra.native"
local native = require('tundra.native')
local macosx = {
Env = {
QT5 = native.getenv("QT5"),
CCOPTS = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything",
"-Wno-c++98-compat-pedantic",
"-Wno-documentation", "-Wno-mis... | More warning fixes | More warning fixes
| Lua | mit | kondrak/ProDBG,RobertoMalatesta/ProDBG,v3n/ProDBG,v3n/ProDBG,emoon/ProDBG,ashemedai/ProDBG,RobertoMalatesta/ProDBG,emoon/ProDBG,SlNPacifist/ProDBG,emoon/ProDBG,kondrak/ProDBG,v3n/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/ProDBG,ashemedai/ProDBG,ashemedai/ProDBG,kondrak/ProDBG,SlNPacifist/ProDBG,ashemedai/ProDBG,kondra... |
8765bf7d5deddfac2f83530f8e8e6c50f2fc2c73 | BtEvaluatorLoader.lua | BtEvaluatorLoader.lua | function widget:GetInfo()
return {
name = "BtEvaluator loader",
desc = "BtEvaluator loader and message test to this AI.",
author = "JakubStasta",
date = "Sep 20, 2016",
license = "BY-NC-SA",
layer = 0,
enabled = true, -- loaded by default?
version = version,
}
end
local Ut... | function widget:GetInfo()
return {
name = "BtEvaluator loader",
desc = "BtEvaluator loader and message test to this AI.",
author = "JakubStasta",
date = "Sep 20, 2016",
license = "BY-NC-SA",
layer = 0,
enabled = true, -- loaded by default?
version = version,
}
end
local Ut... | initialization order fix | initialization order fix
| Lua | mit | MartinFrancu/BETS |
4b90807003ae345e2976d4b726a518fa8d70560d | lexers/bash.lua | lexers/bash.lua | -- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-- Shell LPeg lexer.
local l = lexer
local token, style, color, word_match = l.token, l.style, l.color, l.word_match
local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S
module(...)
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.... | -- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-- Shell LPeg lexer.
local l = lexer
local token, style, color, word_match = l.token, l.style, l.color, l.word_match
local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S
module(...)
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.... | Fixed highlighting of variables in bash; lexers/bash.lua | Fixed highlighting of variables in bash; lexers/bash.lua
| Lua | mit | rgieseke/scintillua |
4f0e25f8ec3e429bd59cc9132f70fa0f54d19871 | script/c80600016.lua | script/c80600016.lua | --ゴーストリック・ランタン
function c80600016.initial_effect(c)
--sumlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c80600016.sumcon)
c:RegisterEffect(e1)
--turn set
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_POSITION)
e2:SetType(EFFECT_T... | --ゴーストリック・ランタン
function c80600016.initial_effect(c)
--sumlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c80600016.sumcon)
c:RegisterEffect(e1)
--turn set
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_POSITION)
e2:SetType(EFFECT_T... | fix | fix
no longer targets | Lua | mit | SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher |
3648198b088b80aafeefad7e5b519fcf2caaaee3 | Hammerspoon/setup.lua | Hammerspoon/setup.lua | local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ...
os.exit = hs._exit
local function runstring(s)
local fn, err = load("return " .. s)
if not fn then fn, err = load(s) end
if not fn then return tostring(err) end
local str = ""
local results = table.pack(p... | local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ...
os.exit = hs._exit
local function runstring(s)
local fn, err = load("return " .. s)
if not fn then fn, err = load(s) end
if not fn then return tostring(err) end
local str = ""
local results = table.pack(p... | Fix up merge | Fix up merge
| Lua | mit | knu/hammerspoon,nkgm/hammerspoon,latenitefilms/hammerspoon,cmsj/hammerspoon,lowne/hammerspoon,lowne/hammerspoon,asmagill/hammerspoon,hypebeast/hammerspoon,emoses/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,hypebeast/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,tmandry/hammerspoon,trishume... |
3dd0e6dfa3e8d717718e1357f86cfa75edf2e719 | MMOCoreORB/bin/scripts/quest/tasks/task.lua | MMOCoreORB/bin/scripts/quest/tasks/task.lua | -- Base module for all tasks.
local ObjectManager = require("managers.object.object_manager")
local Logger = require("utils.logger")
Task = Object:new {
taskName = "",
taskStart = nil,
taskFinish = nil,
onLoggedIn = nil,
onLoggedOut = nil,
}
local TASK_STARTED = 0xABCD
-- Check if the task has been started for ... | -- Base module for all tasks.
local ObjectManager = require("managers.object.object_manager")
local Logger = require("utils.logger")
Task = Object:new {
taskName = "",
taskStart = nil,
taskFinish = nil,
onLoggedIn = nil,
onLoggedOut = nil,
}
local TASK_STARTED = 0xABCD
-- Check if the task has been started for ... | [fixed] Stability issue | [fixed] Stability issue
Change-Id: I6e0cf81f627104c9790cb588343ee0be7773157c
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo |
bba6613f860fede6520ce9cc93ea3498668ff58e | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | * luci/app-olsr: further fixes in olsr plugins config | * luci/app-olsr: further fixes in olsr plugins config
| Lua | apache-2.0 | 8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
6713bb355734516b3eeba35459a4a234dcc08c8f | tests/test-tls-remote.lua | tests/test-tls-remote.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 agre... | --[[
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 agre... | tests: test-tls-remote: fixup to match node | tests: test-tls-remote: fixup to match node
fixup the logic in this test to match node's. In particular don't try to
read the address after we have already destroyed.
| Lua | apache-2.0 | DBarney/luvit,bsn069/luvit,sousoux/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,sousoux/luvit,luvit/luvit,boundary/luvit,kaustavha/luvit,bsn069/luvit,boundary/luvit,DBarney/luvit,sousoux/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,kausta... |
75f3fd2c61e5630992de93bc10fa300a796365d3 | cookbooks/neovim/files/nvim/lua/plugins.lua | cookbooks/neovim/files/nvim/lua/plugins.lua | -- Packer.nvim bootstrapping
-- see https://github.com/wbthomason/packer.nvim#bootstrapping
-- TODO: Move to ~/.config/nvim/lua/init.lua
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
... | -- Packer.nvim bootstrapping
-- see https://github.com/wbthomason/packer.nvim#bootstrapping
-- TODO: Move to ~/.config/nvim/lua/init.lua
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
... | Fix broken settings in latest lualine.nvim and github-nvim-theme | Fix broken settings in latest lualine.nvim and github-nvim-theme
| Lua | mit | tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles |
58ddaa4b1db34aa652514c2f0ef4a180f5aec846 | scripts/genie.lua | scripts/genie.lua | --
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
newoption {
trigger = "with-tools",
description = "Enable building tools.",
}
newoption {
trigger = "with-shared-lib",
description = "Enable building shared library.",
}
newoption {
t... | --
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
newoption {
trigger = "with-tools",
description = "Enable building tools.",
}
newoption {
trigger = "with-shared-lib",
description = "Enable building shared library.",
}
newoption {
t... | Setting output directories for WinPhone builds to fix build errors. | Setting output directories for WinPhone builds to fix build errors.
| Lua | bsd-2-clause | fluffyfreak/bgfx,darkimage/bgfx,bkaradzic/bgfx,ming4883/bgfx,Extrawurst/bgfx,0-wiz-0/bgfx,cuavas/bgfx,darkimage/bgfx,cyndis/bgfx,bkaradzic/bgfx,Synxis/bgfx,mmicko/bgfx,ocornut/bgfx,LSBOSS/bgfx,v3n/bgfx,elmindreda/bgfx,janstk/bgfx,fluffyfreak/bgfx,attilaz/bgfx,aonorin/bgfx,Vertexwahn/bgfx,Vertexwahn/bgfx,mendsley/bgfx,m... |
41fbdf44659385171f813576373be36556023a73 | core/debug-output.lua | core/debug-output.lua | if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local lastFont
local outfile
local writeline = function (...)
local args = table.pack(...)
for i = 1, #args do
outfile:write(args[i])
if i < #args then outfile:write("\t") end
end
outfile:write("\n")
end
local _deprec... | if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local lastFont
local outfile
local writeline = function (...)
local args = table.pack(...)
for i = 1, #args do
outfile:write(args[i])
if i < #args then outfile:write("\t") end
end
outfile:write("\n")
end
local _deprec... | fix(outputter): Non-RGB colors shall work with the debug outputter (#1469) | fix(outputter): Non-RGB colors shall work with the debug outputter (#1469)
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
7f72f06cf4d6f29afe15509041b055cceff1f813 | test/testrsa.lua | test/testrsa.lua | local skynet = require "skynet"
local crypt = require "skynet.crypt"
local src = "hello world !"
local privpem = [[-----BEGIN PRIVATE KEY-----
MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBANMfFz1aPEuvl/AN
0lVNXoMGoRrUPfmHtKtUfpaM7vxPXtYzHsBzu6KLOBDeOjXO9YD43vLIRpZwO0r4
kWLMYGSZMxSQba7itQ5H6kDc2dm7UQqsJ34wupejGADd... | local skynet = require "skynet"
local crypt = require "skynet.crypt"
local src = "hello world !"
local privpem_pkcs8 = [[-----BEGIN PRIVATE KEY-----
MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBANMfFz1aPEuvl/AN
0lVNXoMGoRrUPfmHtKtUfpaM7vxPXtYzHsBzu6KLOBDeOjXO9YD43vLIRpZwO0r4
kWLMYGSZMxSQba7itQ5H6kDc2dm7UQqsJ34wup... | fix example testrsa.lua | fix example testrsa.lua
| Lua | mit | korialuo/skynet,korialuo/skynet,korialuo/skynet |
9115c3d51a44e35368dfec430fb292c70c2a3a53 | base/townTreasure.lua | base/townTreasure.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... | [Hotfix] Added check for valid value from script variables | [Hotfix] Added check for valid value from script variables
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content |
af372fcb9310b58e38c548006d9829dfc3eec43f | lua/MainGlue.lua | lua/MainGlue.lua | local html_escape={["<"]="<",[">"]=">",["&"]="&"}
local uri_escape=function(a)
return ("%%%02x"):format(a:byte())
end
local uri_unescape=function(a)
return string.char(tonumber(a,16))
end
escape={
html=function(str)
return (str:gsub("[<>&]",html_escape))
end,
url=function(str)
return (str:gsub("[^... | local html_escape={["<"]="<",[">"]=">",["&"]="&"}
local uri_escape=function(a)
return ("%%%02x"):format(a:byte())
end
local uri_unescape=function(a)
return string.char(tonumber(a,16))
end
escape={
html=function(str)
return (str:gsub("[<>&]",html_escape))
end,
url=function(str)
return (str:gsub("[^... | Fixes. | Fixes.
| Lua | mit | vifino/carbon,vifino/carbon,carbonsrv/carbon,carbonsrv/carbon,carbonsrv/carbon,vifino/carbon |
dadd485e6fda8c85bb4c5301653dad7a98886a53 | util/datamanager.lua | util/datamanager.lua | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs = pairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
module "datamanager"
---- utils -----
local encode, decode;
local log = function (type, msg... | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs = pairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
local tostring = tostring;
module "datamanager"
---- utils -----
local encode, decode;
loca... | Minor fix | Minor fix
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
0cb7c978aec8d2d485dae96518fb8ff42b4eb303 | cgi-bin/highscore.lua | cgi-bin/highscore.lua | #!/usr/bin/env lua
local json = require("dkjson")
local config = require("config")
function template(body, title)
local template = [===[Content-type: text/html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | #!/usr/bin/env lua
local json = require("dkjson")
local config = require("config")
function template(body, title)
local template = [===[Content-type: text/html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | Fixed missing urldecoding for getting highscore | Fixed missing urldecoding for getting highscore
| Lua | mit | max1220/balloons,max1220/balloons,max1220/balloons |
fd0af8274f2a868e959c6c62a41347ecea005b1a | src/tools/msc.lua | src/tools/msc.lua | --
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
premake.tools.msc = {}
local msc = premake.tools.msc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
functi... | --
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
premake.tools.msc = {}
local msc = premake.tools.msc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
functi... | Fix broken MSC exception handling flag | Fix broken MSC exception handling flag
--HG--
extra : rebase_source : d03ec2013c90802ac61d85cbdbefaf3e126059df
| Lua | bsd-3-clause | annulen/premake,Lusito/premake,Lusito/premake,annulen/premake,Lusito/premake,Lusito/premake,warrenseine/premake,warrenseine/premake,annulen/premake,warrenseine/premake,annulen/premake |
5cf4a0cbb153a8ff1c69acea9d7bd9d5f5b6969e | ssbase/gamemode/sv_profiles.lua | ssbase/gamemode/sv_profiles.lua | ---------------------------
-- Bunny Hop --
-- Created by xAaron113x --
---------------------------
local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"}
local update_filter = {"id", "steamI... | ---------------------------
-- Bunny Hop --
-- Created by xAaron113x --
---------------------------
local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"}
local update_filter = {"id", "steamI... | Last fix, hopefully. | Last fix, hopefully. | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
2ff9a83addedbda01ef7f8ec055d8bf56c5cab80 | LuaRecipe_to_JL.lua | LuaRecipe_to_JL.lua |
recipfns = {
"C:\\Users\\mwheath\\Documents\\Factorio\\prototypes\\recipe\\ammo.lua",
"C:\\Users\\mwheath\\Documents\\Factorio\\prototypes\\recipe\\capsule.lua",
"C:\\Users\\mwheath\\Documents\\Factorio\\prototypes\\recipe\\equipment.lua",
"C:\\Users\\mwheath\\Documents\\Factorio\\prototypes\\recipe\\fluid-r... | #!/usr/bin/lua5.3
recipfns = {
"/home/matt/factorio/data/base/prototypes/recipe/ammo.lua",
"/home/matt/factorio/data/base/prototypes/recipe/capsule.lua",
"/home/matt/factorio/data/base/prototypes/recipe/equipment.lua",
"/home/matt/factorio/data/base/prototypes/recipe/fluid-recipe.lua",
"/home/matt/factorio... | fixed for 0.15 & 0.16 | fixed for 0.15 & 0.16
| Lua | mit | lawless-m/factorio-utils |
de6cbd7c4afacb9178ab35cf78b7964c7ddd3d68 | battery-widget/battery.lua | battery-widget/battery.lua | local wibox = require("wibox")
local awful = require("awful")
local naughty = require("naughty")
local watch = require("awful.widget.watch")
-- acpi sample outputs
-- Battery 0: Discharging, 75%, 01:51:38 remaining
-- Battery 0: Charging, 53%, 00:57:43 until charged
battery_widget = wibox.widget {
{
id =... | local wibox = require("wibox")
local awful = require("awful")
local naughty = require("naughty")
local watch = require("awful.widget.watch")
-- acpi sample outputs
-- Battery 0: Discharging, 75%, 01:51:38 remaining
-- Battery 0: Charging, 53%, 00:57:43 until charged
local path_to_icons = "/usr/share/icons/Arc/status/... | battery: fix icons naming for charing status | battery: fix icons naming for charing status
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets,streetturtle/AwesomeWM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.