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
d1191601ff9b4243c228ddddcbdf23b1c2f92e02
nvim/.config/nvim/lua/gb/finder.lua
nvim/.config/nvim/lua/gb/finder.lua
local actions = require("telescope.actions") local trouble = require("trouble.providers.telescope") require("telescope").setup { defaults = { prompt_prefix = "  ", selection_caret = " ", entry_prefix = " ", scroll_strategy = "cycle", file_ignore_patterns = {"%.git", "node%_modules"}, init...
local actions = require("telescope.actions") local trouble = require("trouble.providers.telescope") require("telescope").setup { defaults = { prompt_prefix = "  ", selection_caret = " ", entry_prefix = " ", scroll_strategy = "cycle", file_ignore_patterns = {"%.git", "node%_modules"}, init...
Fixup telescope paths for lsp_references
Fixup telescope paths for lsp_references
Lua
mit
gblock0/dotfiles
8bf3b3532f49b37afc729a70c1ad903f353875f6
mod_auth_dovecot/mod_auth_dovecot.lua
mod_auth_dovecot/mod_auth_dovecot.lua
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local log = require "util.logger".init("auth_dovecot"); loc...
-- Dovecot authentication backend for Prosody -- -- Copyright (C) 2010 Javier Torres -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- local socket_unix = require "socket.unix"; local datamanager = require "util.datamanager"; local log = require "util.logger".init("auth_dovecot"); loc...
mod_auth_dovecot: Use sequential (instead of fixed) id for messages
mod_auth_dovecot: Use sequential (instead of fixed) id for messages
Lua
mit
asdofindia/prosody-modules,vince06fr/prosody-modules,vfedoroff/prosody-modules,stephen322/prosody-modules,joewalker/prosody-modules,drdownload/prosody-modules,vince06fr/prosody-modules,iamliqiang/prosody-modules,guilhem/prosody-modules,either1/prosody-modules,vfedoroff/prosody-modules,mardraze/prosody-modules,amenophis...
bef5be991c0d39ba24adbb732278e72c3aa01ff2
config/nvim/lua/init/telescope.lua
config/nvim/lua/init/telescope.lua
local telescope = require('telescope') local actions = require('telescope.actions') local builtin = require('telescope.builtin') telescope.setup({defaults = {mappings = {i = {["<esc>"] = actions.close}}}}) local options = {noremap = true} vim.api.nvim_set_keymap('n', '<leader>b', [[<cmd>lua r...
local telescope = require('telescope') local actions = require('telescope.actions') local builtin = require('telescope.builtin') telescope.setup({defaults = {mappings = {i = {["<esc>"] = actions.close}}}}) local options = {noremap = true} vim.api.nvim_set_keymap('n', '<leader>b', [[<cmd>lua r...
Fix <leader>f command
Fix <leader>f command
Lua
unlicense
raviqqe/dotfiles
b182796b875387668636d859c9f0fb6251eb124f
tag/tag.lua
tag/tag.lua
local mp = require 'MessagePack' local module = {} local log = ngx.log local ERR = ngx.ERR local format = string.format module._VERSION = '0.0.1' local function explode(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while ...
local mp = require 'MessagePack' local module = {} local log = ngx.log local ERR = ngx.ERR local format = string.format module._VERSION = '0.0.1' local function explode(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while ...
Fix new tag implementation
Fix new tag implementation
Lua
mit
kapouer/cache-protocols,kapouer/upcache
55d5bdd32520a50731e918de42c4b4b2ca2ae788
src/tbox/micro.lua
src/tbox/micro.lua
-- add target target("tbox") -- make as a static library set_kind("static") -- add defines add_defines("__tb_prefix__=\"tbox\"") -- set the auto-generated config.h set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)") add_configfiles("tbox.config.h.in") -- add include directories a...
-- add target target("tbox") -- make as a static library set_kind("static") -- add defines add_defines("__tb_prefix__=\"tbox\"") -- set the auto-generated config.h set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)") add_configfiles("tbox.config.h.in") -- add include directories a...
fix compile errors
fix compile errors
Lua
apache-2.0
waruqi/tbox,tboox/tbox,tboox/tbox,waruqi/tbox
b3bf9880d4479f68aa07cf89df1301c804848143
premake4.lua
premake4.lua
solution "litehtml" configurations { "Release", "Debug" } defines { "LITEHTML_UTF8" } targetname "litehtml" language "C++" kind "StaticLib" files { "src/**.c", "src/**.cpp", "src/**.h" } configuration "Debug" defines { "_DEBUG" } flags { "Symbols"...
solution "litehtml" configurations { "Release", "Debug" } defines { "LITEHTML_UTF8" } targetname "litehtml" language "C++" kind "StaticLib" files { "src/**.c", "src/**.cpp", "src/**.h" } configuration "Debug" defines { "_DEBUG" } flags { "Symbols"...
fixed debug compilation of litehtml
fixed debug compilation of litehtml
Lua
bsd-3-clause
FishingCactus/litehtml,FishingCactus/litehtml
860f4dfa209b47795adcf5a16c3ac02979647041
controller/utils.lua
controller/utils.lua
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end -- translate a raw value through a lookup table of { {rawval, translation} } -- interpolating between closest values function translate(rawval, lookup_ta...
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end -- translate a raw value through a lookup table of { {rawval, translation} } -- interpolating between closest values function translate(rawval, lookup_ta...
Fix bug w/ lookup table exact matches & zero interpolation bugs
Fix bug w/ lookup table exact matches & zero interpolation bugs
Lua
mit
makehackvoid/MHV-Space-Probe
d3a6b8d80bb9ac98154bd582d7dbcdc1ceef5d74
lualib/skynet/multicast.lua
lualib/skynet/multicast.lua
local skynet = require "skynet" local mc = require "skynet.multicast.core" local multicastd local multicast = {} local dispatch = {} local chan = {} local chan_meta = { __index = chan, __gc = function(self) self:unsubscribe() end, __tostring = function (self) return string.format("[Multicast:%x]",self.channel...
local skynet = require "skynet" local mc = require "skynet.multicast.core" local multicastd local multicast = {} local dispatch = {} local chan = {} local chan_meta = { __index = chan, __gc = function(self) self:unsubscribe() end, __tostring = function (self) return string.format("[Multicast:%x]",self.channel...
fix #1141
fix #1141
Lua
mit
cloudwu/skynet,pigparadise/skynet,icetoggle/skynet,xcjmine/skynet,sanikoyes/skynet,hongling0/skynet,xjdrew/skynet,ag6ag/skynet,JiessieDawn/skynet,icetoggle/skynet,hongling0/skynet,xcjmine/skynet,hongling0/skynet,cloudwu/skynet,korialuo/skynet,bigrpg/skynet,wangyi0226/skynet,xjdrew/skynet,JiessieDawn/skynet,JiessieDawn/...
2f51dd606dc72095814fb53cf2ba625957791ed5
src/networkownerservice/src/Server/NetworkOwnerService.lua
src/networkownerservice/src/Server/NetworkOwnerService.lua
--- Tracks a stack of owners so ownership isn't reverted or overwritten in delayed network owner set -- @module NetworkOwnerService local NetworkOwnerService = {} local WEAK_METATABLE = { __mode = "kv" } local SERVER_FLAG = "server" function NetworkOwnerService:Init() assert(not self._partOwnerData, "Already initi...
--- Tracks a stack of owners so ownership isn't reverted or overwritten in delayed network owner set -- @module NetworkOwnerService local NetworkOwnerService = {} local WEAK_METATABLE = { __mode = "kv" } local SERVER_FLAG = "server" function NetworkOwnerService:Init() assert(not self._partOwnerData, "Already initi...
fix: NetworkOwnerService provides good errors
fix: NetworkOwnerService provides good errors
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
8caa6f045d2104b92fb376827e20bf1d7a0d41b1
xmake/platforms/mingw/load.lua
xmake/platforms/mingw/load.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 mingw link issue for *.lib
fix mingw link issue for *.lib
Lua
apache-2.0
waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake
5e1410627b0f6e12c89a32b6ffb89980cb4ac6da
src/main.lua
src/main.lua
local Gamestate = require 'vendor/gamestate' local Level = require 'level' local camera = require 'camera' local menu = require 'menu' local scale = 2 function love.load() -- costume loading love.filesystem.mkdir('costumes') love.filesystem.mkdir('costumes/troy') love.filesystem.mkdir('costumes/abed')...
local Gamestate = require 'vendor/gamestate' local Level = require 'level' local camera = require 'camera' local menu = require 'menu' local scale = 2 local paused = false function love.load() -- costume loading love.filesystem.mkdir('costumes') love.filesystem.mkdir('costumes/troy') love.filesystem.m...
Add a minimum framerate. Pause the game when not in use
Add a minimum framerate. Pause the game when not in use Many people complained of falling through the floor at odd times. A minimum framerate fixes these things. However, the game might now feel 'slow' for some users on lower-end computers. There isn't a better way to fix this, so apologies in advance. The game will ...
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua
028abb6eb0a895bb05d687420825f9bb94f88fa2
modules/data/tabread.lua
modules/data/tabread.lua
sptbl["tabread"] = { files = { module = "tabread.c", header = "tabread.h", example = "ex_tabread.c", }, func = { create = "sp_tabread_create", destroy = "sp_tabread_destroy", init = "sp_tabread_init", compute = "sp_tabread_compute", }, params...
sptbl["tabread"] = { files = { module = "tabread.c", header = "tabread.h", example = "ex_tabread.c", }, func = { create = "sp_tabread_create", destroy = "sp_tabread_destroy", init = "sp_tabread_init", compute = "sp_tabread_compute", }, params...
tabread: fixed documentation issue
tabread: fixed documentation issue
Lua
mit
aure/Soundpipe,aure/Soundpipe,aure/Soundpipe,narner/Soundpipe,narner/Soundpipe,narner/Soundpipe,narner/Soundpipe,aure/Soundpipe
e19d2e1e843bd139b6c1583e4b5d40466e8279b3
otouto/plugins/patterns.lua
otouto/plugins/patterns.lua
local patterns = {} local utilities = require('otouto.utilities') patterns.triggers = { '^/?s/.-/.-$' } function patterns:action(msg) if not msg.reply_to_message then return true end local output = msg.reply_to_message.text if msg.reply_to_message.from.id == self.info.id then output = output:gsub('Did you mean...
local patterns = {} local utilities = require('otouto.utilities') patterns.triggers = { '^/?s/.-/.-$' } function patterns:action(msg) if not msg.reply_to_message then return true end local output = msg.reply_to_message.text if msg.reply_to_message.from.id == self.info.id then output = output:gsub('Did you mean...
patterns.lua Trim whitespace off the ends of strings (partial fix for https://github.com/topkecleon/otouto/issues/74). Make output style consistent with translate.lua.
patterns.lua Trim whitespace off the ends of strings (partial fix for https://github.com/topkecleon/otouto/issues/74). Make output style consistent with translate.lua.
Lua
agpl-3.0
bb010g/otouto,Brawl345/Brawlbot-v2,topkecleon/otouto,barreeeiroo/BarrePolice
dd83ca82f7441389cb742b136e19cad1cb2eaddf
src/grammar.lua
src/grammar.lua
--[[ grammar.lua A simple LPeg grammar for scheme. In order to be as flexible as possible, this grammar only parses tokens from input. All interpretation and evaluation tasks are handled by the interpreter which is provided as an argument to the main function returned by this module. Copyright (c) 2014, ...
--[[ grammar.lua A simple LPeg grammar for scheme. In order to be as flexible as possible, this grammar only parses tokens from input. All interpretation and evaluation tasks are handled by the interpreter which is provided as an argument to the main function returned by this module. Copyright (c) 2014, ...
Reorg suffix rule moving names into suffix
Reorg suffix rule moving names into suffix
Lua
bsd-2-clause
jballanc/aydede
b66f1b78bf8c1ecb67813eb40c30591934cf0ea1
src/conf/RepositoryHandler.lua
src/conf/RepositoryHandler.lua
local FILE_NAME = 'repositories.cfg'; -- ------------------------------------------------ -- Module -- ------------------------------------------------ local RepositoryHandler = {}; -- ------------------------------------------------ -- Local Variables -- ------------------------------------------------ local repos...
local FILE_NAME = 'repositories.cfg'; -- ------------------------------------------------ -- Module -- ------------------------------------------------ local RepositoryHandler = {}; -- ------------------------------------------------ -- Local Variables -- ------------------------------------------------ local repos...
Fix pattern to allow whitespace in folder names
Fix pattern to allow whitespace in folder names Thanks to @s-ol for providing the fix!
Lua
mit
rm-code/logivi
80e33bc4f25fd1f6c117527393db9afd5ed20c20
regress/71-empty-cqueue.lua
regress/71-empty-cqueue.lua
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" -- -- Issue #71A -- After the addition of alerts, cqueue:loop waited indefinitely -- on an empty queue when the original, more desirable behavior was that it -- should immediately return. -- -- Issue #71B -- cqueue:step did n...
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" -- -- Issue #71A -- After the addition of alerts, cqueue:loop waited indefinitely -- on an empty queue when the original, more desirable behavior was that it -- should immediately return. -- -- Issue #71B -- cqueue:step did n...
fix #71 regression test on BSD
fix #71 regression test on BSD
Lua
mit
daurnimator/cqueues,wahern/cqueues,wahern/cqueues,daurnimator/cqueues
f04acc4b948a45bcfbd22f219df001f96064edf7
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: Fixes for rdate config
modules/admin-full: Fixes for rdate config
Lua
apache-2.0
joaofvieira/luci,lbthomsen/openwrt-luci,keyidadi/luci,ollie27/openwrt_luci,oyido/luci,bright-things/ionic-luci,keyidadi/luci,dwmw2/luci,dismantl/luci-0.12,jlopenwrtluci/luci,joaofvieira/luci,dismantl/luci-0.12,cshore/luci,teslamint/luci,remakeelectric/luci,taiha/luci,schidler/ionic-luci,Hostle/luci,david-xiao/luci,roge...
a87392761994df8c22c5e5aed3b2f2f5e753e47b
assets/services/1-load-font.lua
assets/services/1-load-font.lua
local charcodes = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .,:;!?()&/-' font = MOAIFont.new() --font:load('assets/static/Casper.ttf') font:load('assets/static/arial-rounded.TTF') font:preloadGlyphs(charcodes, 8) font:preloadGlyphs(charcodes, 12) font:preloadGlyphs(charcodes, 16) font:preloadGlyp...
local charcodes = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .,:;!?()&/-' font = MOAIFont.new() --font:load('assets/static/Casper.ttf') font:load('assets/static/arial-rounded.TTF') font:preloadGlyphs(charcodes, 8) font:preloadGlyphs(charcodes, 12) font:preloadGlyphs(charcodes, 14) font:preloadGlyp...
Fixed a performance bug in the cached glyphs
Fixed a performance bug in the cached glyphs The default font didn't have preloaded glyphs in the default size for labels - this meant every label shown would allocate a new set of glyphs ~1MB in size
Lua
mit
isovector/adventure,isovector/adventure
eb5380d4985af02d30d1b5bd1c4e7bc02d050e23
classes/book.lua
classes/book.lua
local plain = SILE.require("classes/plain"); local book = plain { id = "book" }; book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "8.3%", right = "86%", top = "11.6%", bottom = "top(footnotes)" }, folio = {left = "left(content)", right = "righ...
local plain = SILE.require("classes/plain"); local book = plain { id = "book" }; book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "8.3%", right = "86%", top = "11.6%", bottom = "top(footnotes)" }, folio = {left = "left(content)", right = "righ...
Ensure paragraph is ended while parskipglue is zero, fixes #39.
Ensure paragraph is ended while parskipglue is zero, fixes #39.
Lua
mit
alerque/sile,Nathan22Miles/sile,anthrotype/sile,neofob/sile,simoncozens/sile,alerque/sile,anthrotype/sile,simoncozens/sile,neofob/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,Nathan22Miles/sile,anthrotype/sile,Nathan22Miles/sile,alerque/sile,simoncozens/sile,neofob/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,shirat74/sile,neofo...
d3ae2b5e9e84a07bd4465978a8575c93868c6415
projects/shared/scripts/cam_ctrl.lua
projects/shared/scripts/cam_ctrl.lua
local bzutils = require("bzutils") local rx = require("rx") local runtimeController = bzutils.runtime.runtimeController local easing = require("easing") local easeOutBackV = easing.easeOutBackV local local2Global = bzutils.utils.local2Global local global2Local = bzutils.utils.global2Local local interpolate...
local bzutils = require("bzutils") local rx = require("rx") local runtimeController = bzutils.runtime.runtimeController local easing = require("easing") local easeOutBackV = easing.easeOutBackV local local2Global = bzutils.utils.local2Global local global2Local = bzutils.utils.global2Local local interpolate...
Fixed issue with offset not being set correctly
Fixed issue with offset not being set correctly
Lua
apache-2.0
Heracles-Brigade/bz-community
3a50c9bead1b564b471e5f81ddb315b784775230
src_trunk/resources/saveplayer-system/s_saveplayer_system.lua
src_trunk/resources/saveplayer-system/s_saveplayer_system.lua
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
Fixed 0000984: Business Profit
Fixed 0000984: Business Profit git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1260 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
ad467af5f6e4d10b14c13ee8a76ddb0bd84e7103
fusion/stdlib/iterable.lua
fusion/stdlib/iterable.lua
local fnl = require("fusion.stdlib.functional") local table = require("fusion.stdlib.table") local unpack = unpack or table.unpack -- luacheck: ignore 113 local function iter(input, iterator) if not iterator then return iter(input, pairs) end if type(input) == "function" then return input else return iterat...
local fnl = require("fusion.stdlib.functional") local table = require("fusion.stdlib.table") local unpack = unpack or table.unpack -- luacheck: ignore 113 local function iter(input, iterator) if not iterator then return iter(input, pairs) end if type(input) == "function" then return input else return iterat...
iterable: fix; use fnl better
iterable: fix; use fnl better
Lua
mit
RyanSquared/FusionScript
df2be8d374699b86c213abb13b6759f931dca7f0
lua_modules/luvit-rackspace-monitoring-client/lib/client.lua
lua_modules/luvit-rackspace-monitoring-client/lib/client.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
rackspace-monitoring-client: bump client for parse fix
rackspace-monitoring-client: bump client for parse fix
Lua
apache-2.0
kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monito...
9b717c36054a3463c50a2ffc38cc4a5f3e2dde13
lgi/override/Gdk.lua
lgi/override/Gdk.lua
------------------------------------------------------------------------------ -- -- LGI Gdk3 override module. -- -- Copyright (c) 2011, 2014 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ----------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI Gdk3 override module. -- -- Copyright (c) 2011, 2014 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ----------------------------------------------------------------...
Fix Gdk.Rectangle override
Fix Gdk.Rectangle override Because newer GOI/GDK includes actual definition of Gdk.Rectangle, stop defining our own aliased version of it, which actually broke things (namely pixbuf demo in gtk-demo).
Lua
mit
pavouk/lgi,psychon/lgi
b58c8610d3e725dbf3d538f2e3ce8958207c410d
classes/jbook.lua
classes/jbook.lua
local book = SILE.require("book", "classes") local jbook = book { id = "jbook", base = book } SILE.call("bidi-off") jbook:declareOption("layout", "yoko") jbook:loadPackage("masters") jbook:loadPackage("twoside", { oddPageMaster = "right", evenPageMaster = "left" }) jbook:mirrorMaster("right", "left") jbook:loadPack...
local book = SILE.require("book", "classes") local jbook = book { id = "jbook", base = book } SILE.call("bidi-off") jbook:declareOption("layout", "yoko") jbook:loadPackage("masters") function jbook:init() jbook:loadPackage("twoside", { oddPageMaster = "right", evenPageMaster = "left" }) jbook:mirrorMaster("right...
fix(classes): Don't try to load layout modules until init()
fix(classes): Don't try to load layout modules until init()
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
638c5e1ae92fe735560f1e78b3b6ab5c2d6c0ad9
otouto/plugins/afk.lua
otouto/plugins/afk.lua
-- original plugin by Akamaru [https://ponywave.de] -- I added Redis and automatic online switching back in 2015 local afk = {} function afk:init(config) afk.triggers = { "^/([A|a][F|f][K|k])$", "^/([A|a][F|f][K|k]) (.*)$" } afk.doc = [[* ]]..config.cmd_pat..[[afk* _[Text]_: Setzt Status auf AFK mit optio...
-- original plugin by Akamaru [https://ponywave.de] -- I added Redis and automatic online switching back in 2015 local afk = {} function afk:init(config) afk.triggers = { "^/([A|a][F|f][K|k]) (.*)$", "^/([A|a][F|f][K|k])$" } afk.doc = [[* ]]..config.cmd_pat..[[afk* _[Text]_: Setzt Status auf AFK mit optio...
Bugfix für AFK-Patterns
Bugfix für AFK-Patterns
Lua
agpl-3.0
Brawl345/Brawlbot-v2
3f1f0d68eb14a86a88f73ac1acfaff02100f4a43
MMOCoreORB/bin/scripts/managers/jedi/village/intro/old_man_conv_handler.lua
MMOCoreORB/bin/scripts/managers/jedi/village/intro/old_man_conv_handler.lua
local VillageJediManagerCommon = require("managers.jedi.village.village_jedi_manager_common") local OldManIntroEncounter = require("managers.jedi.village.intro.old_man_intro_encounter") local QuestManager = require("managers.quest.quest_manager") local MellichaeOutroTheater = require("managers.jedi.village.outro.mellic...
local VillageJediManagerCommon = require("managers.jedi.village.village_jedi_manager_common") local OldManIntroEncounter = require("managers.jedi.village.intro.old_man_intro_encounter") local OldManOutroEncounter = require("managers.jedi.village.outro.old_man_outro_encounter") local QuestManager = require("managers.que...
[fixed] Old man not having anything to discuss with players for outro part
[fixed] Old man not having anything to discuss with players for outro part Change-Id: Ic07ce49714cf195b06ee793e75c311e8a9c8a384
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
2103199fdfddeb3326fe713a05a558e2296cd48a
.vim/lua/pluginconfig/telescope.lua
.vim/lua/pluginconfig/telescope.lua
local actions = require('telescope.actions') local config = require('telescope.config') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local previewers = require('telescope.previewers') local utils = require('telescope.utils')...
local actions = require('telescope.actions') local config = require('telescope.config') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local previewers = require('telescope.previewers') local utils = require('telescope.utils')...
vim: Fix my_mru for telescope
vim: Fix my_mru for telescope
Lua
mit
yutakatay/dotfiles,yutakatay/dotfiles
9df94c7ee64f34ff9621316b5ef25d94200c6e32
lua_modules/dht_lib/dht_lib.lua
lua_modules/dht_lib/dht_lib.lua
-- *************************************************************************** -- DHTxx(11,21,22) module for ESP8266 with nodeMCU -- -- Written by Javier Yanez mod by Martin -- but based on a script of Pigs Fly from ESP8266.com forum -- -- MIT license, http://opensource.org/licenses/MIT -- *****************************...
-- *************************************************************************** -- DHTxx(11,21,22) module for ESP8266 with nodeMCU -- -- Written by Javier Yanez mod by Martin -- but based on a script of Pigs Fly from ESP8266.com forum -- -- MIT license, http://opensource.org/licenses/MIT -- *****************************...
Really Fix the BUGs, add come comment
Really Fix the BUGs, add come comment Sorry for the mistake, I forgot to save the file when gitting...
Lua
mit
cs8425/nodemcu-firmware,eku/nodemcu-firmware,Alkorin/nodemcu-firmware,fetchbot/nodemcu-firmware,vowstar/nodemcu-firmware,romanchyla/nodemcu-firmware,FrankX0/nodemcu-firmware,zhujunsan/nodemcu-firmware,devsaurus/nodemcu-firmware,fetchbot/nodemcu-firmware,christakahashi/nodemcu-firmware,xatanais/nodemcu-firmware,digitall...
ed8c555dc623874cf71fd9f725fd06b7141d81e7
deps/coro-tls.lua
deps/coro-tls.lua
exports.name = "creationix/coro-tls" exports.version = "1.1.2" local openssl = require('openssl') local bit = require('bit') -- Given a read/write pair, return a new read/write pair for plaintext exports.wrap = function (read, write, options) if not options then options = {} end local ctx = openssl.ssl.ctx...
exports.name = "creationix/coro-tls" exports.version = "1.1.3" local openssl = require('openssl') local bit = require('bit') -- Given a read/write pair, return a new read/write pair for plaintext exports.wrap = function (read, write, options) if not options then options = {} end local ctx = openssl.ssl.ctx...
coro-tls: Fix server side
coro-tls: Fix server side
Lua
apache-2.0
DBarney/lit,squeek502/lit,zhaozg/lit,kidaa/lit,james2doyle/lit,1yvT0s/lit,lduboeuf/lit,kaustavha/lit,luvit/lit
f6f57ec2fc5903de33a4453b3af24372852576ee
Modules/Utility/os.lua
Modules/Utility/os.lua
-- @author Narrev local function date(formatString, unix) --- Allows you to use os.date in RobloxLua! -- date ([format [, time]]) -- This doesn't include the explanations for the math. If you want to see how the numbers work, see the following: -- http://howardhinnant.github.io/date_algorithms.html#weekday_from_d...
-- @author Narrev local function date(formatString, unix) --- Allows you to use os.date in RobloxLua! -- date ([format [, time]]) -- This doesn't include the explanations for the math. If you want to see how the numbers work, see the following: -- http://howardhinnant.github.io/date_algorithms.html#weekday_from_d...
Small upgrade and annotation fix
Small upgrade and annotation fix
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
6f2255071cf0d1979a12d8372ba0e6d5dd654ff6
modules/game_questlog/questlog.lua
modules/game_questlog/questlog.lua
questLogButton = nil questLineWindow = nil function init() g_ui.importStyle('questlogwindow.otui') g_ui.importStyle('questlinewindow.otui') questLogButton = TopMenu.addLeftGameButton('questLogButton', tr('Quest Log'), 'questlog.png', function() g_game.requestQuestLog() end) connect(g_game, { onQuestLog = onG...
questLogButton = nil questLineWindow = nil function init() g_ui.importStyle('questlogwindow.otui') g_ui.importStyle('questlinewindow.otui') questLogButton = TopMenu.addLeftGameButton('questLogButton', tr('Quest Log'), 'questlog.png', function() g_game.requestQuestLog() end) connect(g_game, { onQuestLog = onG...
Fix issue #86
Fix issue #86
Lua
mit
dreamsxin/otclient,Cavitt/otclient_mapgen,gpedro/otclient,Radseq/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient,EvilHero90/otclient,gpedro/otclient,dreamsxin/otclient,gpedro/otclient,kwketh/otclient,kwketh/otclient,Radseq/otclient,dreamsxin/otclient
a55cdea9a43aed54330aae4f47e6644bb18c8d63
plugins/giphy.lua
plugins/giphy.lua
local giphy = {} local HTTPS = require('ssl.https') local JSON = require('dkjson') function giphy:init(configuration) giphy.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('gif', true).table giphy.inline_triggers = giphy.triggers end function giphy:inline_callback(inline_query, confi...
local giphy = {} local HTTPS = require('ssl.https') local JSON = require('dkjson') function giphy:init(configuration) giphy.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('gif', true).table giphy.inline_triggers = giphy.triggers end function giphy:inline_callback(inline_query...
Minor bug fix
Minor bug fix The inline command '@mattatabot /gif <query>' now works as expected
Lua
mit
barreeeiroo/BarrePolice
cd9b1c1bf5bc60a5eeda86e96fa3f8671a1c5d15
lua/decoders/opentsdb_raw.lua
lua/decoders/opentsdb_raw.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Parses an OpenTSDB (or TCollector) formatted message into Heka message Fields. Should work with various inputs, ...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Parses an OpenTSDB (or TCollector) formatted message into Heka message Fields. Should work with various inputs, ...
Make some fields/configs more consistent
Make some fields/configs more consistent Other plugins in this repo use 'Metric', 'Value' and 'tag_prefix'.
Lua
mpl-2.0
timurb/heka-tsutils-plugins,hynd/heka-tsutils-plugins
193fded67edb7d33f65e3ebeb7b571285da5a8cd
packages/tate.lua
packages/tate.lua
-- Japaneese language support defines units which are useful here SILE.call("language", { main = "ja" }, {}) SILE.tateFramePrototype = pl.class({ _base = SILE.framePrototype, direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter SILE.typesetter.lea...
-- Japaneese language support defines units which are useful here SILE.languageSupport.loadLanguage("ja") SILE.tateFramePrototype = pl.class({ _base = SILE.framePrototype, direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter SILE.typesetter.leadin...
fix(packages): Tate should not affect document language (#932)
fix(packages): Tate should not affect document language (#932)
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
6587769e23532a721dcc214a2db86a3ffc431d9d
GameServer/Content/Data/LeagueSandbox-Default/Champions/Lucian/E.lua
GameServer/Content/Data/LeagueSandbox-Default/Champions/Lucian/E.lua
Vector2 = require 'Vector2' -- include 2d vector lib function onFinishCasting() local current = Vector2:new(getOwnerX(), getOwnerY()) local to = (Vector2:new(getSpellToX(), getSpellToY()) - current):normalize() local range = to * 445 local trueCoords = current + range printChat("You used E"); addP...
Vector2 = require 'Vector2' -- include 2d vector lib function onFinishCasting() local current = Vector2:new(getOwnerX(), getOwnerY()) local to = (Vector2:new(getSpellToX(), getSpellToY()) - current):normalize() local range = to * 445 local trueCoords = current + range printChat("You used EV3") ...
E works perfect with "dash-fix"
E works perfect with "dash-fix" E works perfect with "dash-fix" except the effects (which never worked)
Lua
agpl-3.0
LeagueSandbox/GameServer
27423ca7bc65ff95b51c21bfc1fe709d151c963e
projects/premake4.lua
projects/premake4.lua
solution "ElTrazadoDeRayos" language "C++" location("./" .. _ACTION) -- Where to put the project files. includedirs {"../include", "../include/glm", "../src/**"} libdirs {"../lib"} flags {"StaticRuntime"} -- Add the c++ 11 standard if we use gmake. if (_ACTION == "gmake") then buildoptions {"-std=c++0x -std=gnu++0...
solution "ElTrazadoDeRayos" language "C++" location("./" .. _ACTION) -- Where to put the project files. includedirs {"../include", "../include/glm", "../src/**"} libdirs {"../lib"} flags {"StaticRuntime"} -- Add the c++ 11 standard if we use gmake. if (_ACTION == "gmake") then buildoptions {"-std=c++0x -std=gnu++0...
fixed some linux only commands in debug and profile configuration
fixed some linux only commands in debug and profile configuration
Lua
mit
CantTouchDis/ElTrazadoDeRayos,CantTouchDis/ElTrazadoDeRayos,CantTouchDis/ElTrazadoDeRayos,CantTouchDis/ElTrazadoDeRayos,CantTouchDis/ElTrazadoDeRayos
1fd25814aaa4149c0b12ba64f60d09f2c9069aad
plugins/shell.lua
plugins/shell.lua
local triggers = { '^/run[@'..bot.username..']*' } local action = function(msg) if msg.from.id ~= config.admin then return end local input = msg.text:input() if not input then sendReply(msg, 'Please specify a command to run.') return end local output = io.popen(input):read('*all') if output:len() == 0...
local triggers = { '^/run[@'..bot.username..']*' } local action = function(msg) if msg.from.id ~= config.admin then return end local input = msg.text:input() input = input:gsub('—', '--') if not input then sendReply(msg, 'Please specify a command to run.') return end local output = io.popen(input):r...
FIX Shell
FIX Shell
Lua
mit
barreeeiroo/BarrePolice,TiagoDanin/SiD,Brawl345/Brawlbot-v2,topkecleon/otouto,bb010g/otouto
f252439e4a85da2acd58fa5edbcce6db28de664c
lib/datatypes.lua
lib/datatypes.lua
local LXSC = require 'lib/lxsc' LXSC.OrderedSet = {_kind='OrderedSet'}; LXSC.OrderedSet.__meta = {__index=LXSC.OrderedSet} setmetatable(LXSC.OrderedSet,{__call=function(o) return setmetatable({},o.__meta) end}) function LXSC.OrderedSet:add(e) if not self[e] then local idx = #self+1 self[idx] = e self[e] = idx...
local LXSC = require 'lib/lxsc' LXSC.OrderedSet = {_kind='OrderedSet'}; LXSC.OrderedSet.__meta = {__index=LXSC.OrderedSet} setmetatable(LXSC.OrderedSet,{__call=function(o) return setmetatable({},o.__meta) end}) function LXSC.OrderedSet:add(e) if not self[e] then local idx = #self+1 self[idx] = e self[e] = idx...
Fix serious bug in OrderedSet:hasIntersection()
Fix serious bug in OrderedSet:hasIntersection()
Lua
mit
Phrogz/LXSC
30fbac75ac7f48cf50dcf9c628c020b59d26c764
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Manuel Munz <freifunk at somakoma de> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() local profiles = "/etc/config/profile_*" m = ...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Manuel Munz <freifunk at somakoma de> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() local profiles = "/etc/config/profile_*" m = ...
luci-mod-freifunk: fix lookup of community-name
luci-mod-freifunk: fix lookup of community-name restore the lookup of the freifunk community-name stored in uci "freifunk.community.name". In https://github.com/openwrt/luci/commit/9780ee382e72f8a5fb69e337a3fcc51fc0914883 the value changed to the complete path of the community-profile, e.g. "/etc/config/profile_berlin...
Lua
apache-2.0
db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,RuiChen1113/luci,RuiChen1113/luci,RuiChen1113/luci,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luc...
f44e086e70cb219e15ecfcab1005e2ec94c9007c
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/13_pid_example.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/advanced_scripts/13_pid_example.lua
print("This is a PID example script that sets a DAC0 output using AIN2 for feedback.") print("Write a non-zero value to USER_RAM0_F32 to change the set point.") --Requires FW 1.0166 or greater on the T7 --Gets a setpoint from a host computer. Host computer writes new setpoint to modbus address 46000 local timeStep = ...
--[[ Name: 13_pid_example.lua Desc: This is a PID example script that sets a DAC0 output using AIN2 for feedback Note: Gets a setpoint from a host computer. Host computer writes the new setpoint to modbus address 46000 (USER_RAM0_F32) Requires FW 1.0282 or greater on the T7 -...
Fixed formatting of the PID example
Fixed formatting of the PID example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
398dd163dd55ee165c23e420b39ce1beac6bf29d
src/core/main.lua
src/core/main.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- Default to not using any Lua code on the filesystem. -- (Can be overridden with -P argument: see below.) package.path = '' local STP = require("lib.lua.StackTracePlus") local ffi = require("ffi") local zone =...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- Default to not using any Lua code on the filesystem. -- (Can be overridden with -P argument: see below.) package.path = '' local STP = require("lib.lua.StackTracePlus") local ffi = require("ffi") local zone =...
core.main: Fix bug in SNABB_DEBUG env var handling
core.main: Fix bug in SNABB_DEBUG env var handling Bug was to set _G.developer_debug to nil when debugging is disabled. In Lua you cannot use nil as a table value and should use false instead. Further discussion at: https://github.com/snabbco/snabb/pull/956#issuecomment-229893468
Lua
apache-2.0
Igalia/snabbswitch,Igalia/snabbswitch,wingo/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,wingo/snabbswitch,SnabbCo/snabbswitch,snabbco/snabb,heryii/snabb,eugeneia/snabb,heryii/snabb,eugeneia/snabb,Igalia/snabb,kbara/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,Igalia/snabbswitch,dpino/snabbswitch,I...
f491bf288fad0944e32fa910fcfcbe0819b181db
modules/game_textwindow/textwindow.lua
modules/game_textwindow/textwindow.lua
function init() g_ui.importStyle('textwindow.otui') connect(g_game, { onEditText = onGameEditText, onEditList = onGameEditList, onGameEnd = destroy }) end function terminate() disconnect(g_game, { onEditText = onGameEditText, onEditList = onGameEdit...
function init() g_ui.importStyle('textwindow.otui') connect(g_game, { onEditText = onGameEditText, onEditList = onGameEditList, onGameEnd = destroy }) end function terminate() disconnect(g_game, { onEditText = onGameEditText, onEditList = onGameEdit...
Fix some issues in text window
Fix some issues in text window
Lua
mit
kwketh/otclient,dreamsxin/otclient,kwketh/otclient,EvilHero90/otclient,Radseq/otclient,Cavitt/otclient_mapgen,gpedro/otclient,gpedro/otclient,EvilHero90/otclient,Radseq/otclient,dreamsxin/otclient,gpedro/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen
73f561495a7533a9699451e6d80a2d7728a8595a
HexChat/mymsg.lua
HexChat/mymsg.lua
hexchat.register('MyMessage', '2', 'Properly show your own messages in ZNC playback') hexchat.hook_print('Capability List', function (args) if args[2]:find('znc.in/self%-message') then hexchat.command('CAP REQ znc.in/self-message') local ctx = hexchat.props.context hexchat.hook_timer(1, function () -- Emit ...
hexchat.register('MyMessage', '2', 'Properly show your own messages in ZNC playback') local function get_server_ctx() local id = hexchat.prefs['id'] for chan in hexchat.iterate('channels') do if chan.type == 1 and chan.id == id then return chan.context end end return hexchat.props.context end hexchat.hook_...
mymsg.lua: Fix cap request printing in wrong tab
mymsg.lua: Fix cap request printing in wrong tab
Lua
mit
TingPing/plugins,TingPing/plugins
0fb7330a09985834cf89f932b8d7ada9fdfb8598
server/logout.lua
server/logout.lua
require("base.keys") require("base.common") module("server.logout", package.seeall) function onLogout( theChar ) if false then return true; end world:gfx(31,theChar.pos); --A nice GFX that announces clearly: A player logged out. -- begin newbie island if (theChar:getQuestProgress(2) == 320) the...
require("base.keys") require("base.common") module("server.logout", package.seeall) function onLogout( theChar ) if false then return true; end world:gfx(31,theChar.pos); --A nice GFX that announces clearly: A player logged out. -- begin newbie island if (theChar:getQuestProgress(2) == 320) the...
fixed if statement
fixed if statement
Lua
agpl-3.0
KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content
0739253c0ea1d49142cd5d61922e83a33080ac22
game_view.lua
game_view.lua
background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse variables mouse_x = 0; mouse_y = 0; mouseClicked = false; -- glider variables rectanglesToDraw = {} numberOfGliders = 0 function draw_line(g...
-- imports grid_state = require 'grid_state' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse variables mouse_x = 0; mouse_y = 0; mouseClicked = false; -- glider variables rectanglesToDraw...
bug in placing glider corrected
bug in placing glider corrected
Lua
mit
NamefulTeam/PortoGameJam2015
5bc4c8b4f04fe7b1dce95d750051454c2d723fb8
src/lpeg.lua
src/lpeg.lua
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't support __len for tables local obj2 =...
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't support __len for tables local obj2 =...
fix lpeg wrapper, function match
fix lpeg wrapper, function match Fix error when called with non-pattern Example: lpeg.match(3, 'aaa')
Lua
mit
starius/lpjit,starius/lpjit
2455d23dc18f075cf8a8140f3f98b6bc7cbd86e7
libs/term.lua
libs/term.lua
local prev, luv, T, stdin = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green"; [16384] = "red"...
local prev, luv, T, stdin = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green"; [16384] = "red"...
Fix term.clearLine
Fix term.clearLine
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
e467771ed39da800bbd40312adc5a1bc608efb09
test_scripts/Polices/build_options/P_ATF_Register_NewApp_not_exist_inLocalPT_FinishPTU_PROPRIETARY.lua
test_scripts/Polices/build_options/P_ATF_Register_NewApp_not_exist_inLocalPT_FinishPTU_PROPRIETARY.lua
-- Requirement summary: -- [PolicyTableUpdate] New application has registered and doesn't yet exist in Local PT during PTU in progress -- -- Note: Copy attached ptu.json on this way: /tmp/fs/mp/images/ivsu_cache/, for line 111 and for line 121 -- -- Description: -- PoliciesManager must add the appID of the newly regist...
-- Requirement summary: -- [PolicyTableUpdate] New application has registered and doesn't yet exist in Local PT during PTU in progress -- -- Note: Copy attached ptu.json on this way: /tmp/fs/mp/images/ivsu_cache/, for line 111 and for line 121 -- -- Description: -- PoliciesManager must add the appID of the newly regist...
Fix accessing to policy db Use common function for check value in table
Fix accessing to policy db Use common function for check value in table
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
c4c09413502cd4402d53a22d4718544cb9a6c203
src/lua/sdini.lua
src/lua/sdini.lua
-- -- sdini.lua -- speedata publisher -- -- Copyright 2010-2011 Patrick Gundlach. -- See file COPYING in the root directory for license info. -- -- BUG on windows: http://lua-users.org/lists/lua-l/2012-08/msg00052.html -- ! in LUA_PATH gets replaced by $PWD package.path=os.getenv("LUA_PATH") texio.write_nl("Loadi...
-- -- sdini.lua -- speedata publisher -- -- Copyright 2010-2011 Patrick Gundlach. -- See file COPYING in the root directory for license info. -- -- BUG on windows: http://lua-users.org/lists/lua-l/2012-08/msg00052.html -- ! in LUA_PATH gets replaced by $PWD package.path=os.getenv("LUA_PATH") texio.write_nl("Loadi...
Tiny bugfix for 'sp list-fonts' and jobname
Tiny bugfix for 'sp list-fonts' and jobname When running 'list-fonts', the environment variable SP_JOBNAME is not set und thus nil which can't be used to construct a string value.
Lua
agpl-3.0
speedata/publisher,speedata/publisher,speedata/publisher,speedata/publisher
0a913d9177d72e35325eb10ef601ccbfc75bfd76
src/nodes/pot.lua
src/nodes/pot.lua
local anim8 = require 'vendor/anim8' local Helper = require 'helper' local Pot = {} Pot.__index = Pot local potImage = love.graphics.newImage('images/pot.png') local potExplode= love.graphics.newImage('images/pot_asplode.png') local g = anim8.newGrid(41, 30, potExplode:getWidth(), potExplode:getHeight()) function P...
local anim8 = require 'vendor/anim8' local Helper = require 'helper' local Pot = {} Pot.__index = Pot local potImage = love.graphics.newImage('images/pot.png') local potExplode= love.graphics.newImage('images/pot_asplode.png') local g = anim8.newGrid(41, 30, potExplode:getWidth(), potExplode:getHeight()) function P...
Fixes #231. Pot issues
Fixes #231. Pot issues
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua
12d207d4b0247363c3b5d07b339bcc35d743495e
sample.lua
sample.lua
require 'torch' require 'image' require 'paths' require 'pl' require 'layers.cudnnSpatialConvolutionUpsample' NN_UTILS = require 'utils.nn_utils' OPT = lapp[[ --save_base (default "logs") directory in which the networks are saved --save_c2f32 (default "logs") --G_base (default...
require 'torch' require 'image' require 'paths' require 'pl' require 'layers.cudnnSpatialConvolutionUpsample' NN_UTILS = require 'utils.nn_utils' OPT = lapp[[ --save_base (default "logs") directory in which the networks are saved --save_c2f32 (default "logs") --G_base (default...
Fix blur function
Fix blur function
Lua
mit
aleju/face-generator
4630c27bc3cc46b382d93b7d4917f856cddfe025
lib/hpcpf.lua
lib/hpcpf.lua
--- for detection platform (return "Windows", "Darwin" or "Linux") function getPlatform() --- command capture function captureRedirectErr(cmd) local f = assert(io.popen(cmd .. ' 2>&1' , 'r')) local s = assert(f:read('*a')) f:close() s = string.gsub(s, '^%s+', '') s = s...
--- for detection platform (return "Windows", "Darwin" or "Linux") function getPlatform() --- command capture function captureRedirectErr(cmd) local f = assert(io.popen(cmd .. ' 2>&1' , 'r')) local s = assert(f:read('*a')) f:close() s = string.gsub(s, '^%s+', '') s = s...
fix windows platform detection
fix windows platform detection
Lua
bsd-2-clause
avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI
c06edde57b047f96897eb54b7bea801a1d09703c
rbxmk/testdata/path/rel.lua
rbxmk/testdata/path/rel.lua
-- https://github.com/golang/go/blob/9cd1818a7d019c02fa4898b3e45a323e35033290/src/path/filepath/path_test.go#L1188-L1240 local tests = { -- base , target , result { "a/b" , "a/b" , "." }, { "a/b/." , "a/b" , "." }, { "a/b" , "a/b/." ...
-- https://github.com/golang/go/blob/9cd1818a7d019c02fa4898b3e45a323e35033290/src/path/filepath/path_test.go#L1188-L1240 local tests = { -- base , target , result { "a/b" , "a/b" , "." }, { "a/b/." , "a/b" , "." }, { "a/b" , "a/b/." ...
Fix windows tests.
Fix windows tests.
Lua
mit
Anaminus/rbxmk,Anaminus/rbxmk
4aedb356781d2c0f238621bf0d5d71efb2d898ef
lexers/markdown.lua
lexers/markdown.lua
-- Copyright 2006-2015 Mitchell mitchell.att.foicica.com. See LICENSE. -- Markdown LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'markdown'} -- Whitespace. local ws = token(l.WHITESPACE, S(' \t\v')^1) local newline = t...
-- Copyright 2006-2015 Mitchell mitchell.att.foicica.com. See LICENSE. -- Markdown LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'markdown'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Block elements. ...
Fixed Markdown lexer corner-cases; lexers/markdown.lua Thanks to Giovanni Salmeri.
Fixed Markdown lexer corner-cases; lexers/markdown.lua Thanks to Giovanni Salmeri.
Lua
mit
rgieseke/scintillua
f4efdb3607a2fef4d7f126cd04f31530e2a969a2
lib/MySQL.lua
lib/MySQL.lua
MySQL = { Async = {}, Sync = {}, } local function safeParameters(params) if nil == params then return {[''] = ''} end assert(type(params) == "table", "A table is expected") assert(params[1] == nil, "Parameters should not be an array, but a map (key / value pair) instead") if next(...
MySQL = { Async = {}, Sync = {}, } local function safeParameters(params) if nil == params then return {[''] = ''} end assert(type(params) == "table", "A table is expected") if next(params) == nil then return {[''] = ''} end return params end --- -- Execute a query wi...
fix: store
fix: store
Lua
mit
brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async,brouznouf/fivem-mysql-async
36ab992a3c80081cee7cf2120f2c0a2e4b9d3a4c
scen_edit/view/trigger/areas_window.lua
scen_edit/view/trigger/areas_window.lua
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) AreasWindow = Editor:extends{} Editor.Register({ name = "areasWindow", editor = AreasWindow, tab = "Logic", caption = "Area", tooltip = "Edit areas", image = SB_IMG_DIR .. "bolivia.png", order = 0, }) function AreasWindow:init() self:su...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) AreasWindow = Editor:extends{} Editor.Register({ name = "areasWindow", editor = AreasWindow, tab = "Logic", caption = "Area", tooltip = "Edit areas", image = SB_IMG_DIR .. "bolivia.png", order = 0, }) function AreasWindow:init() self:su...
Fixed area removal
Fixed area removal
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
9fb780197455f8b7c53aedae1c75cef00a413a67
frontend/ui/data/optionsutil.lua
frontend/ui/data/optionsutil.lua
--[[-- This module contains miscellaneous helper functions for the creoptions and koptoptions. ]] local Device = require("device") local InfoMessage = require("ui/widget/infomessage") local UIManager = require("ui/uimanager") local _ = require("gettext") local Screen = Device.screen local T = require("ffi/util").templ...
--[[-- This module contains miscellaneous helper functions for the creoptions and koptoptions. ]] local Device = require("device") local InfoMessage = require("ui/widget/infomessage") local UIManager = require("ui/uimanager") local _ = require("gettext") local Screen = Device.screen local T = require("ffi/util").templ...
[fix] ConfigMenu cre margins hold action (#4702)
[fix] ConfigMenu cre margins hold action (#4702) See https://github.com/koreader/koreader/pull/4691#issuecomment-468905263
Lua
agpl-3.0
pazos/koreader,Hzj-jie/koreader,koreader/koreader,Frenzie/koreader,Markismus/koreader,NiLuJe/koreader,houqp/koreader,koreader/koreader,poire-z/koreader,mwoz123/koreader,mihailim/koreader,poire-z/koreader,NiLuJe/koreader,Frenzie/koreader
2de3e4abebae290b24b229a4c40cf408e57e820f
packages/folio.lua
packages/folio.lua
-- Folios class SILE.require("packages/counters"); SILE.scratch.counters.folio = { value= 1, display= "arabic" }; SILE.registerCommand("folios", function () SILE.scratch.counters.folio.off = false end) SILE.registerCommand("nofolios", function () SILE.scratch.counters.folio.off = true end) SILE.registerCommand("nofoli...
-- Folios class SILE.require("packages/counters"); SILE.scratch.counters.folio = { value= 1, display= "arabic" }; SILE.registerCommand("folios", function () SILE.scratch.counters.folio.off = false end) SILE.registerCommand("nofolios", function () SILE.scratch.counters.folio.off = true end) SILE.registerCommand("nofoli...
Use \center{} command for folios. Fixes #113.
Use \center{} command for folios. Fixes #113.
Lua
mit
alerque/sile,simoncozens/sile,anthrotype/sile,anthrotype/sile,alerque/sile,anthrotype/sile,WAKAMAZU/sile_fe,anthrotype/sile,neofob/sile,simoncozens/sile,neofob/sile,WAKAMAZU/sile_fe,alerque/sile,WAKAMAZU/sile_fe,neofob/sile,neofob/sile,simoncozens/sile,WAKAMAZU/sile_fe,simoncozens/sile,alerque/sile
a938ae74c9abb89bf8c7e351c03a02fc3c72e1f2
hammerspoon/modules/homebrew.lua
hammerspoon/modules/homebrew.lua
-- Homebrew menubar local Homebrew = { menubar = hs.menubar.new(), items = {}, disabled = false, notified = false, } function Homebrew:loadOutdated() self.items = {} local pipe = io.popen('/usr/local/bin/brew outdated -v | grep -v pinned | cut -f 1 -d " "', 'r') for item in pipe:lines()...
-- Homebrew menubar local Homebrew = { menubar = hs.menubar.new(), items = {}, disabled = false, notified = false, } function Homebrew:showMenu() self.menubar:returnToMenuBar() self.menubar:setIcon('./assets/cask.pdf') self.menubar:setTooltip(string.format("%d updated formula%s availabl...
Fix disappearing menubar icon in homebrew/hammerspoon
Fix disappearing menubar icon in homebrew/hammerspoon
Lua
mit
sebastianmarkow/dotfiles
f0ccb4ae9515f0a44d122905c72993df01350c43
heka/sandbox/encoders/es_fields.lua
heka/sandbox/encoders/es_fields.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Elasticsearch encoder to index only specific fields. Config: - index (string, optional, default "heka-%{%Y.%m....
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Elasticsearch encoder to index only specific fields. Config: - index (string, optional, default "heka-%{%Y.%m....
Error early and fix es_index_from_timestamp semantics
Error early and fix es_index_from_timestamp semantics
Lua
mpl-2.0
sapohl/data-pipeline,acmiyaguchi/data-pipeline,kparlante/data-pipeline,sapohl/data-pipeline,acmiyaguchi/data-pipeline,nathwill/data-pipeline,mozilla-services/data-pipeline,whd/data-pipeline,mozilla-services/data-pipeline,nathwill/data-pipeline,kparlante/data-pipeline,acmiyaguchi/data-pipeline,nathwill/data-pipeline,whd...
5cd74a5fa1b3ced56b9b004a838077bb02409b4b
pud/kit/Rect.lua
pud/kit/Rect.lua
require 'pud.util' local Class = require 'lib.hump.class' -- Rect -- provides position and size of a rectangle -- Note: coordinates are not floored or rounded and may be floats local Rect = Class{name='Rect', function(self, x, y, w, h) x = x or 0 y = y or 0 w = w or 0 h = h or 0 self:setPosition(x, y) se...
require 'pud.util' local Class = require 'lib.hump.class' local round = function(x) return math.floor(x + 0.5) end -- Rect -- provides position and size of a rectangle -- Note: coordinates are not floored or rounded and may be floats local Rect = Class{name='Rect', function(self, x, y, w, h) x = x or 0 y = y or 0...
fix center calculation and add flag for rounding
fix center calculation and add flag for rounding
Lua
mit
scottcs/wyx
b7b351d5337b64600fb5a792726adf6875306742
nvim/init.lua
nvim/init.lua
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options if not g.vscode then require('plugins') end require('options') require('mappings') require('config.tr...
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options if not g.vscode then require('plugins') end require('options') require('mappings') if not g.vscode th...
fix: nvim vscode fix for highlighting
fix: nvim vscode fix for highlighting
Lua
mit
drmohundro/dotfiles
4c67419d3c789d953dc99863ce5199a1a56a175d
AceSerializer-3.0/AceSerializer-3.0.lua
AceSerializer-3.0/AceSerializer-3.0.lua
local MAJOR,MINOR = "AceSerializer-3.0", 1 local AceSerializer, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceSerializer then return end local strbyte=string.byte local strchar=string.char local tconcat=table.concat local gsub=string.gsub local gmatch=string.gmatch local pcall=pcall ------------------------...
local MAJOR,MINOR = "AceSerializer-3.0", 1 local AceSerializer, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceSerializer then return end local strbyte=string.byte local strchar=string.char local tconcat=table.concat local gsub=string.gsub local gmatch=string.gmatch local pcall=pcall ------------------------...
Ace3 - AceSerializer: - Fix an error message for something that can never happen, so a bit pointless but ohwell :)
Ace3 - AceSerializer: - Fix an error message for something that can never happen, so a bit pointless but ohwell :) git-svn-id: d324031ee001e5fbb202928c503a4bc65708d41c@450 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
8a05fba439e96f1992b59ee99f5b22439f19aa8b
net/http.lua
net/http.lua
local socket = require "socket" local mime = require "mime" local url = require "socket.url" local server = require "net.server" local connlisteners_get = require "net.connlisteners".get; local listener = connlisteners_get("httpclient") or error("No httpclient listener!"); local t_insert, t_concat = table.insert, t...
local socket = require "socket" local mime = require "mime" local url = require "socket.url" local server = require "net.server" local connlisteners_get = require "net.connlisteners".get; local listener = connlisteners_get("httpclient") or error("No httpclient listener!"); local t_insert, t_concat = table.insert, t...
Fix to prevent calling HTTP request callback twice with the same data
Fix to prevent calling HTTP request callback twice with the same data
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
8e96bf411d003a20cefb4de3f877fe7e3067d992
tests/gio.lua
tests/gio.lua
--[[-------------------------------------------------------------------------- LGI testsuite, GIo test suite. Copyright (c) 2016 Uli Schlachter Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]-------------------------------------------------------------------------- lo...
--[[-------------------------------------------------------------------------- LGI testsuite, GIo test suite. Copyright (c) 2016 Uli Schlachter Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]-------------------------------------------------------------------------- lo...
Disable crashing test until underlying issue is fixed
Disable crashing test until underlying issue is fixed
Lua
mit
pavouk/lgi,psychon/lgi
2dd5ab923cf2c22c98acded25a58f7c459af472e
packages/lime-system/files/usr/lib/lua/lime/network.lua
packages/lime-system/files/usr/lib/lua/lime/network.lua
#!/usr/bin/lua network = {} local bit = require "nixio".bit local ip = require "luci.ip" local function hex(x) return string.format("%02x", x) end local function split(string, sep) local ret = {} for token in string.gmatch(string, "[^"..sep.."]+") do table.insert(ret, token) end return ret end func...
#!/usr/bin/lua network = {} local bit = require "nixio".bit local ip = require "luci.ip" local function hex(x) return string.format("%02x", x) end local function split(string, sep) local ret = {} for token in string.gmatch(string, "[^"..sep.."]+") do table.insert(ret, token) end return ret end func...
Disable ipv6 ula_prefix
Disable ipv6 ula_prefix
Lua
agpl-3.0
p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages
d6d95156bf61b43c6e4d8041811cc1fbfcbacb45
src/apps/intel/intel_app.lua
src/apps/intel/intel_app.lua
module(...,package.seeall) local app = require("core.app") local buffer = require("core.buffer") local packet = require("core.packet") local lib = require("core.lib") local register = require("lib.hardware.register") local intel10g = require("apps.intel.intel10g") Intel82599 = {} -- Create an Intel8259...
module(...,package.seeall) local app = require("core.app") local basic_apps = require("apps.basic.basic_apps") local buffer = require("core.buffer") local packet = require("core.packet") local lib = require("core.lib") local register = require("lib.hardware.register") local intel10g = require("apps.intel...
intel_app: Fixed selftest() function.
intel_app: Fixed selftest() function. Needed to be updated after changes to the app module interface.
Lua
apache-2.0
wingo/snabb,dpino/snabb,wingo/snabbswitch,Igalia/snabb,virtualopensystems/snabbswitch,kbara/snabb,fhanik/snabbswitch,wingo/snabbswitch,pirate/snabbswitch,heryii/snabb,heryii/snabb,justincormack/snabbswitch,hb9cwp/snabbswitch,kellabyte/snabbswitch,hb9cwp/snabbswitch,snabbco/snabb,eugeneia/snabbswitch,wingo/snabbswitch,s...
2e077d8eda6f12cc818134c2a2125411d9b2ae37
SVUI_UnitFrames/libs/Plugins/oUF_WarlockShards/oUF_WarlockShards.lua
SVUI_UnitFrames/libs/Plugins/oUF_WarlockShards/oUF_WarlockShards.lua
--GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; --MATH local math = _G.math; local floor = math.floor --BLIZZARD API local UnitPower = _G.UnitPower; local UnitPowerMax = _G.UnitPowerMax; local UnitHasVehic...
--GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select = _G.select; local assert = _G.assert; --MATH local math = _G.math; local floor = math.floor --BLIZZARD API local UnitPower = _G.UnitPower; local UnitPowerMax = _G.UnitPowerMax; local UnitHasVehic...
Warlock shards fix
Warlock shards fix
Lua
mit
FailcoderAddons/supervillain-ui,finalsliver/supervillain-ui
2cfdcfbdfdcebd2078e746daa7b9974f93cb20f4
src/apenode/plugins/ratelimiting/access.lua
src/apenode/plugins/ratelimiting/access.lua
-- Copyright (C) Mashape, Inc. local _M = {} function _M.execute(conf) local authenticated_entity_id = nil if ngx.ctx.authenticated_entity then authenticated_entity_id = ngx.ctx.authenticated_entity.id else authenticated_entity_id = ngx.var.remote_addr -- Use the IP if there is not authenticated entity ...
-- Copyright (C) Mashape, Inc. local _M = {} local function set_header_limit_remaining(usage) ngx.header["X-RateLimit-Remaining"] = usage end function _M.execute(conf) local authenticated_entity_id = nil if ngx.ctx.authenticated_entity then authenticated_entity_id = ngx.ctx.authenticated_entity.id else ...
fixing ratelimiting
fixing ratelimiting
Lua
apache-2.0
Kong/kong,AnsonSmith/kong,vzaramel/kong,ind9/kong,rafael/kong,ropik/kong,isdom/kong,streamdataio/kong,ccyphers/kong,jerizm/kong,ind9/kong,akh00/kong,Vermeille/kong,ejoncas/kong,Skyscanner/kong,ejoncas/kong,paritoshmmmec/kong,jebenexer/kong,kyroskoh/kong,kyroskoh/kong,li-wl/kong,xvaara/kong,smanolache/kong,Kong/kong,wak...
383ef230d0fb3f0057a26cc2987d0e7c04c226df
vbulletin.lua
vbulletin.lua
--[[ Download script for vbulletin forums. 2012.09.14 This script walks the forum pages: forum to threads to posts. It will also download the member pages. You need Wget+Lua to run this script. Run Wget with seed URLs that point to the forum you want to download. Give the URL to the forumdisplay.php for the forum yo...
--[[ Download script for vbulletin forums. 2012.09.14 This script walks the forum pages: forum to threads to posts. It will also download the member pages. You need Wget+Lua to run this script. Run Wget with seed URLs that point to the forum you want to download. Give the URL to the forumdisplay.php for the forum yo...
Fixed vbulletin.lua
Fixed vbulletin.lua
Lua
unlicense
ArchiveTeam/spuf-grab,ArchiveTeam/spuf-grab
926516c3c4d5acba9c72b25d412200b3c75cbe08
src/lua/export.lua
src/lua/export.lua
-- © 2008 David Given. -- WordGrinder is licensed under the BSD open source license. See the COPYING -- file in this distribution for the full text. -- -- $Id$ -- $URL$ local ITALIC = wg.ITALIC local UNDERLINE = wg.UNDERLINE local ParseWord = wg.parseword local bitand = wg.bitand local bitor = wg.bitor local bitxor = ...
-- © 2008 David Given. -- WordGrinder is licensed under the BSD open source license. See the COPYING -- file in this distribution for the full text. -- -- $Id$ -- $URL$ local ITALIC = wg.ITALIC local UNDERLINE = wg.UNDERLINE local ParseWord = wg.parseword local bitand = wg.bitand local bitor = wg.bitor local bitxor = ...
Fixed to emit the right number of spaces if you put multiple spaces at the beginning of a paragraph.
Fixed to emit the right number of spaces if you put multiple spaces at the beginning of a paragraph.
Lua
mit
rodoviario/wordgrinder,NRauh/wordgrinder,rodoviario/wordgrinder,NRauh/wordgrinder,Munchotaur/wordgrinder,Munchotaur/wordgrinder
b2607802abb7d640d9fe816a7e577aecc460ac13
loot.lua
loot.lua
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
local mod = EPGP:NewModule("loot", "AceEvent-3.0", "AceTimer-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local LLN = LibStub("LibLootNotify-1.0") local ignored_items = { [20725] = true, -- Nexus Crystal [22450] = true, -- Void Crystal [34057] = true, -- Abyss Crystal [29434] = true, -- Badge of...
Ignore emblems of conquest from auto-loot. This fixes issue 398.
Ignore emblems of conquest from auto-loot. This fixes issue 398.
Lua
bsd-3-clause
protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded
1e030da5dc9e32c35d8ffc2f91095ad987616156
otouto/plugins/steam.lua
otouto/plugins/steam.lua
local steam = {} steam.triggers = { "store.steampowered.com/app/([0-9]+)", "steamcommunity.com/app/([0-9]+)" } local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 400 function steam:get_steam_data(appid) local url = BASE_URL url = url..'?appids='..appid url = url..'&l=german...
local steam = {} steam.triggers = { "store.steampowered.com/app/([0-9]+)", "steamcommunity.com/app/([0-9]+)" } local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 400 function steam:get_steam_data(appid) local url = BASE_URL url = url..'?appids='..appid url = url..'&l=german...
Steam: Fix
Steam: Fix
Lua
agpl-3.0
Brawl345/Brawlbot-v2
4b1c248a59e98df61fe36eb8ff0e7483c5f27389
src/pause.lua
src/pause.lua
local Gamestate = require 'vendor/gamestate' local window = require 'window' local camera = require 'camera' local fonts = require 'fonts' local sound = require 'vendor/TEsound' local controls = require 'controls' local state = Gamestate.new() local VerticalParticles = require "verticalparticles" local Timer = require ...
local Gamestate = require 'vendor/gamestate' local window = require 'window' local camera = require 'camera' local fonts = require 'fonts' local sound = require 'vendor/TEsound' local controls = require 'controls' local state = Gamestate.new() local VerticalParticles = require "verticalparticles" local Timer = require ...
Fixes konami code
Fixes konami code
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
3d2468cf34207d2104a51833b8dafd05f872dfc8
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: fix System -> Administration menu if dropbear is not installed
modules/admin-full: fix System -> Administration menu if dropbear is not installed
Lua
apache-2.0
aircross/OpenWrt-Firefly-LuCI,male-puppies/luci,lcf258/openwrtcn,RuiChen1113/luci,urueedi/luci,palmettos/test,urueedi/luci,LazyZhu/openwrt-luci-trunk-mod,teslamint/luci,Sakura-Winkey/LuCI,florian-shellfire/luci,tobiaswaldvogel/luci,oyido/luci,chris5560/openwrt-luci,jlopenwrtluci/luci,daofeng2015/luci,LazyZhu/openwrt-lu...
e9e22aca73d27410572871ae2870c41b96b11a8a
modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
modules/admin-full/luasrc/model/cbi/admin_system/fstab.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$ ]]-- requ...
--[[ 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$ ]]-- requ...
Fix: Mountpoints cannot be disabled
Fix: Mountpoints cannot be disabled
Lua
apache-2.0
aa65535/luci,zhaoxx063/luci,NeoRaider/luci,remakeelectric/luci,RedSnake64/openwrt-luci-packages,oyido/luci,openwrt/luci,oneru/luci,artynet/luci,harveyhu2012/luci,remakeelectric/luci,ReclaimYourPrivacy/cloak-luci,palmettos/cnLuCI,jorgifumi/luci,Noltari/luci,LazyZhu/openwrt-luci-trunk-mod,taiha/luci,ollie27/openwrt_luci,...
237ee90bce3b6f65db57f94132f9902795b832e8
plugins/stats.lua
plugins/stats.lua
-- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = { } local uhash = 'user:' .. user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:' .. user_id .. ':' .. chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) u...
-- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = { } local uhash = 'user:' .. user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:' .. user_id .. ':' .. chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) u...
patterns fix
patterns fix
Lua
agpl-3.0
xsolinsx/AISasha
1c46f36afe7f57e029f3d92bb6e7a7fafe937b70
lua/entities/gmod_wire_detonator.lua
lua/entities/gmod_wire_detonator.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Detonator" ENT.WireDebugName = "Detonator" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Detonator" ENT.WireDebugName = "Detonator" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs = Wire...
Fix bootleg detonator damaging method (#2371)
Fix bootleg detonator damaging method (#2371) * fix bootleg detonator damage method * DMG_GENERIC for detonator * shorter damage call
Lua
apache-2.0
wiremod/wire,dvdvideo1234/wire,Grocel/wire
64f237db0f4c05d80d0fb6d3fd8471014c035fad
build/Helpers.lua
build/Helpers.lua
-- This module checks for the all the project dependencies. require('vstudio') require('premake/premake.fixes') require('premake/premake.extensions') newoption { trigger = "arch", description = "Choose a particular architecture / bitness", default = "x64", allowed = { { "x86", "x86 32-bits" }, ...
-- This module checks for the all the project dependencies. require('vstudio') require('premake/premake.fixes') require('premake/premake.extensions') newoption { trigger = "arch", description = "Choose a particular architecture / bitness", default = "x64", allowed = { { "x86", "x86 32-bits" }, ...
Fix GCC version detection
Fix GCC version detection
Lua
mit
mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp
fa787dbae4078158ea6eb8379ccd953df90d867f
src/sailor/access.lua
src/sailor/access.lua
-------------------------------------------------------------------------------- -- access.lua, v0.2.5: controls access of sailor apps -- This file is a part of Sailor project -- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org --------------------------------------------...
-------------------------------------------------------------------------------- -- access.lua, v0.2.5: controls access of sailor apps -- This file is a part of Sailor project -- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org --------------------------------------------...
fixing some session bugs
fixing some session bugs
Lua
mit
mpeterv/sailor,mpeterv/sailor,hallison/sailor,noname007/sailor,Etiene/sailor,felipedaragon/sailor,sailorproject/sailor,ignacio/sailor,ignacio/sailor,felipedaragon/sailor,Etiene/sailor,jeary/sailor
53d2c5a56f3507f178cddfe329994da84a029b76
extensions/uielement/test_uielement.lua
extensions/uielement/test_uielement.lua
hs.uielement = require("hs.uielement") hs.window = require("hs.window") hs.timer = require("hs.timer") hs.eventtap = require("hs.eventtap") hs.application = require("hs.application") elem = nil elemEvent = nil function getPrefs() hs.openPreferences() return hs.uielement.focusedElement() end function getConsole()...
hs.uielement = require("hs.uielement") hs.window = require("hs.window") hs.timer = require("hs.timer") hs.eventtap = require("hs.eventtap") hs.application = require("hs.application") elem = nil elemEvent = nil watcher = nil function getPrefs() hs.openPreferences() return hs.uielement.focusedElement() end functio...
Attempt to fix up hs.uielement:newWatcher() test
Attempt to fix up hs.uielement:newWatcher() test Add more debugging to uielement:newWatcher() failures
Lua
mit
Habbie/hammerspoon,asmagill/hammerspoon,asmagill/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,Hammerspoon/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,latenitefilms/hammerspoon,latenitef...
263e0974a7342be66818b042dfb8995ab730a053
lib/px/utils/config_loader.lua
lib/px/utils/config_loader.lua
local _M = {} function _M.get_configuration(config_file) local http = require "resty.http" local px_constants = require "px.utils.pxconstants" local config = require(config_file) local px_logger = require("px.utils.pxlogger").load(config_file) px_logger.debug("Fetching configuration") local cjs...
local _M = {} function _M.get_configuration(config_file) local http = require "resty.http" local px_constants = require "px.utils.pxconstants" local config = require(config_file) local px_logger = require("px.utils.pxlogger").load(config_file) px_logger.debug("Fetching configuration") local cjs...
fixed remote_config
fixed remote_config
Lua
mit
PerimeterX/perimeterx-nginx-plugin
09d0df2a7a7cb2b58d934b0759f0e287d21e4135
libs/fs.lua
libs/fs.lua
local prev, pl, dirname, dir = ... local glob = prev.require 'posix.glob'.glob local romPath = pl.path.normpath(pl.path.join(dirname, 'cc')) local function findRomFile(path) return pl.path.normpath(pl.path.join(romPath, path)) end local function betterifyPath(path) local oldPath while oldPath ~= path do oldPath...
local prev, pl, dirname, dir = ... local glob = prev.require 'posix.glob'.glob local romPath = pl.path.normpath(pl.path.join(dirname, 'cc')) local function findRomFile(path) return pl.path.normpath(pl.path.join(romPath, path)) end local function betterifyPath(path) local oldPath while oldPath ~= path do oldPath...
Ensure file.readAll always returns a string
Ensure file.readAll always returns a string could fix #3
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
562e34122f302e30fe8362ee99e8b2e4acff4d3f
src/spring/src/Shared/Spring.lua
src/spring/src/Shared/Spring.lua
--[[ class Spring Description: A physical model of a spring, useful in many applications. Properties only evaluate upon index making this model good for lazy applications API: Spring = Spring.new(number position) Creates a new spring in 1D Spring = Spring.new(Vector3 position) Creates a new spring in 3D Spr...
--[[ class Spring Description: A physical model of a spring, useful in many applications. Properties only evaluate upon index making this model good for lazy applications API: Spring = Spring.new(number position) Creates a new spring in 1D Spring = Spring.new(Vector3 position) Creates a new spring in 3D Spr...
fix: Spring does not have clamped damper
fix: Spring does not have clamped damper
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
3f1ae577c544c6c86ca2dd9f96fc9eff926cf921
lib/lua/utils.lua
lib/lua/utils.lua
-------------------- --- Module with utility functions -- --- @module utils -- --- Submodules: -- --- * `file`: Operations on files --- * `math`: Contains a few math functions --- * `string`: Operations on strings --- * `table`: Operations on tables util = {} --- IO Functions util.file = {} --- Opens the file at pa...
-------------------- --- Module with utility functions -- --- @module utils -- --- Submodules: -- --- * `file`: Operations on files --- * `math`: Contains a few math functions --- * `string`: Operations on strings --- * `table`: Operations on tables util = {} --- IO Functions util.file = {} --- Opens the file at pa...
Renamed spawn_once to spawn, + spawn_once wrapper
Renamed spawn_once to spawn, + spawn_once wrapper Fixes #255
Lua
mit
way-cooler/way-cooler,way-cooler/way-cooler,Immington-Industries/way-cooler,Immington-Industries/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler
ed94b6da3b8a20bbbd850a988c055af4f37062be
libs/get-installed.lua
libs/get-installed.lua
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
Fix local dependencies being ignored on file systems that don't support ftype in fs_scandir_next - See #184
Fix local dependencies being ignored on file systems that don't support ftype in fs_scandir_next - See #184
Lua
apache-2.0
luvit/lit,zhaozg/lit,james2doyle/lit
ad721d342cf95017532190257563f21349d2a51b
luasrc/mch_content.lua
luasrc/mch_content.lua
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
bugfix: inited flag
bugfix: inited flag
Lua
apache-2.0
lilien1010/moochine,lilien1010/moochine,lilien1010/moochine,appwilldev/moochine,appwilldev/moochine
d68b9e7da306cf9310c6e5b24a09441ed5df4b63
mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua
mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua
local modulemanager = require "core.modulemanager"; local config = require "core.configmanager"; module.host = "*"; local function reload_components() module:log ("debug", "reload_components"); local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do modu...
local modulemanager = require "core.modulemanager"; local config = require "core.configmanager"; module.host = "*"; local function reload_components() local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do if (not hosts[host] and host ~= "*") then ...
mod_s2s_reload_newcomponent: fix debug logs
mod_s2s_reload_newcomponent: fix debug logs
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
5583c9a513a67a07baf72b8274e99c95055ce23b
spec/demos/auth_spec.lua
spec/demos/auth_spec.lua
local request = require 'http.functional.request' local writer = require 'http.functional.response' local describe, it, assert = describe, it, assert local function signin(app) local w, req = writer.new(), request.new {path = '/signin'} app(w, req) local c = w.headers['Set-Cookie'] assert(c) c = c:...
local request = require 'http.functional.request' local writer = require 'http.functional.response' local describe, it, assert = describe, it, assert local function signin(app) local w, req = writer.new(), request.new {path = '/signin'} app(w, req) local c = w.headers['Set-Cookie'] assert(c) c = c:...
Fixed luacheck warnings.
Fixed luacheck warnings.
Lua
mit
akornatskyy/lucid
c9fc9496aa347631d2c68fc51979cb8ab1d51dcb
plugins/bookshortcuts.koplugin/main.lua
plugins/bookshortcuts.koplugin/main.lua
local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local Dispatcher = require("dispatcher") local FFIUtil = require("ffi/util") local LuaSettings = require("luasettings") local PathChooser = require("ui/widget/pathchooser") local ReadHistory = require("readhistory") local UIMa...
local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local Dispatcher = require("dispatcher") local FFIUtil = require("ffi/util") local LuaSettings = require("luasettings") local PathChooser = require("ui/widget/pathchooser") local ReadHistory = require("readhistory") local UIMa...
BookShortcuts: fix folders handling (#8795)
BookShortcuts: fix folders handling (#8795)
Lua
agpl-3.0
NiLuJe/koreader,koreader/koreader,NiLuJe/koreader,Frenzie/koreader,poire-z/koreader,Frenzie/koreader,koreader/koreader,poire-z/koreader
ad1c8044847b016e5214078ce7350d88d50e3128
AceGUI-3.0/widgets/AceGUIWidget-ScrollFrame.lua
AceGUI-3.0/widgets/AceGUIWidget-ScrollFrame.lua
local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local pairs, assert, type = pairs, assert, type local min, max, floor = math.min, math.max, math.floor -- WoW APIs local CreateFrame, UIParent = CreateFrame, UIParent ------------- -- Widgets -- ------------- --[[ Widgets must provide the following functions Acqui...
local AceGUI = LibStub("AceGUI-3.0") -- Lua APIs local pairs, assert, type = pairs, assert, type local min, max, floor = math.min, math.max, math.floor -- WoW APIs local CreateFrame, UIParent = CreateFrame, UIParent ------------- -- Widgets -- ------------- --[[ Widgets must provide the following functions Acqui...
AceGUI-3.0: ScrollFrame: Potentially fix an issue that caused the scrollframe to reset to top in certain resolution/UIScale combinations.
AceGUI-3.0: ScrollFrame: Potentially fix an issue that caused the scrollframe to reset to top in certain resolution/UIScale combinations. git-svn-id: e768786be8df873dac9515156656ebbdc6d77160@887 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
3a71e8a41eb4b7e9e9ad1109e6fbc1f22eb5ca82
src/docs/main.lua
src/docs/main.lua
local api = require 'love-api.love_api' local bodies = {} local enums = {} local maxWidth = 78 local contentWidth = 46 local index = '0.' local docName = 'love-' local function increment() index = index:gsub( '(.-)(%d+)%.$', function( a, b ) return a .. ( b + 1 ) .. '.' end ) end local function makeRef( str ) retur...
local api = require 'love-api.love_api' local bodies = {} local enums = {} local maxWidth = 78 local contentWidth = 46 local index = '0.' local docName = 'love-' local function increment() index = index:gsub( '(.-)(%d+)%.$', function( a, b ) return a .. ( b + 1 ) .. '.' end ) end local function makeRef( str ) retur...
Fixed spacing
Fixed spacing
Lua
mit
davisdude/vim-love-docs
df0f729c86fd74a997fb9a3f153bc739de1d675f
testserver/item/id_359_firefield.lua
testserver/item/id_359_firefield.lua
-- UPDATE common SET com_script='item.id_359_firefield' where com_itemid=359; -- How it works: AffectedRaces holds a list of all races that have non-standard effect (thus, consuming more than or less than 100% of damage from a field). -- AffectedStren holds a list of damage-percentages, 100 (which would be default any...
-- UPDATE common SET com_script='item.id_359_firefield' where com_itemid=359; -- How it works: AffectedRaces holds a list of all races that have non-standard effect (thus, consuming more than or less than 100% of damage from a field). -- AffectedStren holds a list of damage-percentages, 100 (which would be default any...
fix for random
fix for random
Lua
agpl-3.0
vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content
aa62d0d00f30f3fb3290d626f7f1b8b11b6ba356
openwrt/package/linkmeter/luasrc/luci/controller/linkmeter/lmdata.lua
openwrt/package/linkmeter/luasrc/luci/controller/linkmeter/lmdata.lua
module("luci.controller.linkmeter.lmdata", package.seeall) function index() entry({"lm", "hist"}, call("action_hist")).notemplate = true entry({"lm", "hmstatus"}, call("action_hmstatus")).notemplate = true entry({"lm", "rfstatus"}, call("action_rfstatus")).notemplate = true entry({"lm", "stream"}, call("action...
module("luci.controller.linkmeter.lmdata", package.seeall) function index() entry({"lm", "hist"}, call("action_hist")).notemplate = true entry({"lm", "hmstatus"}, call("action_hmstatus")).notemplate = true entry({"lm", "rfstatus"}, call("action_rfstatus")).notemplate = true entry({"lm", "stream"}, call("action...
[lm] Enable CORS on /lm/stream and /lm/hist if allowcors is set. Fixes #53
[lm] Enable CORS on /lm/stream and /lm/hist if allowcors is set. Fixes #53
Lua
mit
CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter
4bfff3f7d3e6f317e0afe6306766071aa53e5ad8
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- req...
modules/admin-full: fix udata vs. string in system.lua model
modules/admin-full: fix udata vs. string in system.lua model git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5148 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
a69667b67ff5f3009ecf18e08b3403b9f6b3ac09
etc/ioncorelib.lua
etc/ioncorelib.lua
-- -- Ioncore Lua library -- -- {{{Constants TRUE = true FALSE = false -- }}} -- {{{Functions to help construct bindmaps function submap2(kcb_, list) return {action = "kpress", kcb = kcb_, submap = list} end function submap(kcb_) local function submap_helper(list) return submap2(kcb_, list) end ...
-- -- Ioncore Lua library -- -- {{{Constants TRUE = true FALSE = false -- }}} -- {{{Functions to help construct bindmaps function submap2(kcb_, list) return {action = "kpress", kcb = kcb_, submap = list} end function submap(kcb_) local function submap_helper(list) return submap2(kcb_, list) end ...
trunk: changeset 453
trunk: changeset 453 minor fixes darcs-hash:20030419201148-e481e-2ee1f282ff3b1af04b964e827baff87e81ddd1cf.gz
Lua
lgpl-2.1
p5n/notion,neg-serg/notion,raboof/notion,raboof/notion,knixeur/notion,anoduck/notion,knixeur/notion,p5n/notion,p5n/notion,knixeur/notion,dkogan/notion.xfttest,anoduck/notion,anoduck/notion,knixeur/notion,neg-serg/notion,dkogan/notion,dkogan/notion.xfttest,knixeur/notion,p5n/notion,dkogan/notion.xfttest,dkogan/notion,ne...
0be2443e92619e930dae2324e4216f1c161de3f1
src/program/snabbnfv/traffic/traffic.lua
src/program/snabbnfv/traffic/traffic.lua
module(..., package.seeall) local lib = require("core.lib") local nfvconfig = require("program.snabbnfv.nfvconfig") local usage = require("program.snabbnfv.traffic.README_inc") local ffi = require("ffi") local C = ffi.C local timer = require("core.timer") local pci = require("lib.hardware.pci") local long_opts = { ...
module(..., package.seeall) local lib = require("core.lib") local nfvconfig = require("program.snabbnfv.nfvconfig") local usage = require("program.snabbnfv.traffic.README_inc") local ffi = require("ffi") local C = ffi.C local timer = require("core.timer") local pci = require("lib.hardware.pci") local counter = require...
[snabbnfv traffic] Fix bug where in benchmark mode, engine.breaths was attempted to be accessed directly.
[snabbnfv traffic] Fix bug where in benchmark mode, engine.breaths was attempted to be accessed directly.
Lua
apache-2.0
eugeneia/snabb,Igalia/snabb,heryii/snabb,plajjan/snabbswitch,justincormack/snabbswitch,eugeneia/snabb,dpino/snabbswitch,alexandergall/snabbswitch,wingo/snabbswitch,dpino/snabb,justincormack/snabbswitch,mixflowtech/logsensor,Igalia/snabbswitch,dpino/snabbswitch,snabbnfv-goodies/snabbswitch,Igalia/snabb,snabbco/snabb,kel...
d962c289947f12000b3b6aa5c88280427bd04d4e
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
require "luci.sys" require "luci.tools.webadmin" local bit = require "bit" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- Syste...
require "luci.sys" require "luci.tools.webadmin" local bit = require "bit" local uci = luci.model.uci.cursor_state() local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk") local ffznet = ffzone and uci:get("firewall", ffzone, "network") local ffwifs = ffznet and luci.util.split(ffznet, " ") or {} -- Syste...
modules/freifunk: fix same problem
modules/freifunk: fix same problem git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5150 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
phi-psi/luci,jschmidlapp/luci,eugenesan/openwrt-luci,Canaan-Creative/luci,ReclaimYourPrivacy/cloak-luci,phi-psi/luci,eugenesan/openwrt-luci,phi-psi/luci,ReclaimYourPrivacy/cloak-luci,yeewang/openwrt-luci,eugenesan/openwrt-luci,jschmidlapp/luci,projectbismark/luci-bismark,Canaan-Creative/luci,ThingMesh/openwrt-luci,zwhf...
1b4117b6e101463c8b381decfe4f54c5e7bd3500
kong/cmd/start.lua
kong/cmd/start.lua
local dnsmasq_signals = require "kong.cmd.utils.dnsmasq_signals" local prefix_handler = require "kong.cmd.utils.prefix_handler" local nginx_signals = require "kong.cmd.utils.nginx_signals" local serf_signals = require "kong.cmd.utils.serf_signals" local conf_loader = require "kong.conf_loader" local DAOFactory = requir...
local dnsmasq_signals = require "kong.cmd.utils.dnsmasq_signals" local prefix_handler = require "kong.cmd.utils.prefix_handler" local nginx_signals = require "kong.cmd.utils.nginx_signals" local serf_signals = require "kong.cmd.utils.serf_signals" local conf_loader = require "kong.conf_loader" local DAOFactory = requir...
hotfix(cli) fix recursive calls to the startup errorhandler
hotfix(cli) fix recursive calls to the startup errorhandler The `pcall`s used to stop the services seem to inherit the errorhandler from the `xpcall` up on the stack. This causes a recursive call if stopping the services errors for some reason.
Lua
apache-2.0
jebenexer/kong,Kong/kong,Kong/kong,Vermeille/kong,salazar/kong,Kong/kong,ccyphers/kong,akh00/kong,shiprabehera/kong,li-wl/kong,icyxp/kong,beauli/kong,Mashape/kong