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
d65a90312b7188a0a2e35a2ff070e6d26d3d40d7
ceryx/nginx/lualib/router.lua
ceryx/nginx/lualib/router.lua
local host = ngx.var.host local is_not_https = (ngx.var.scheme ~= "https") local cache = ngx.shared.ceryx local settings_key = prefix .. ":settings:" .. host local enforce_https, flags = cache:get(host .. ":enforce_https") if enforce_https == nil then local res, flags = red:hget(settings_key, "enforce_https") ...
local host = ngx.var.host local is_not_https = (ngx.var.scheme ~= "https") local cache = ngx.shared.ceryx local prefix = os.getenv("CERYX_REDIS_PREFIX") if not prefix then prefix = "ceryx" end local settings_key = prefix .. ":settings:" .. host local enforce_https, flags = cache:get(host .. ":enforce_https") if enfo...
Move `prefix` declaration higher
Move `prefix` declaration higher
Lua
mit
sourcelair/ceryx,huayl/ceryx,sourcelair/ceryx,huayl/ceryx,sourcelair/ceryx,huayl/ceryx
61651c213e6ddb2b4389cddfa867022ca56e3f26
ceryx/nginx/lualib/https.lua
ceryx/nginx/lualib/https.lua
auto_ssl = (require "resty.auto-ssl").new() local redis = require "ceryx.redis" local routes = require "ceryx.routes" -- Define a function to determine which SNI domains to automatically handle -- and register new certificates for. Defaults to not allowing any domains, -- so this must be configured. auto_ssl:set( ...
auto_ssl = (require "resty.auto-ssl").new() local redis = require "ceryx.redis" local routes = require "ceryx.routes" -- Define a function to determine which SNI domains to automatically handle -- and register new certificates for. Defaults to not allowing any domains, -- so this must be configured. auto_ssl:set( ...
Fix empty Redis client in auto HTTPS certificates
Fix empty Redis client in auto HTTPS certificates
Lua
mit
huayl/ceryx,huayl/ceryx,sourcelair/ceryx,sourcelair/ceryx,sourcelair/ceryx,huayl/ceryx
b22406e7747b276137fbd3ffd299b71a8ec2d03e
npc/base/trade.lua
npc/base/trade.lua
--- Base NPC script for trader NPCs -- -- This script offers the functions that are required to turn a NPC into a trader -- -- Author: Martin Karing require("base.class") require("base.common") require("base.messages") require("base.money") require("npc.base.basic") module("npc.base.trade", package.seeall) tradeNPC ...
--- Base NPC script for trader NPCs -- -- This script offers the functions that are required to turn a NPC into a trader -- -- Author: Martin Karing require("base.class") require("base.common") require("base.messages") require("base.money") require("npc.base.basic") module("npc.base.trade", package.seeall) tradeNPC ...
Bugfix for the trading NPCs
Bugfix for the trading NPCs
Lua
agpl-3.0
vilarion/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content
82e42547b4a5710e0b8175c94b9f9e9a4aea5558
src/extensions/cp/apple/finalcutpro/main/TimelineToolbar.lua
src/extensions/cp/apple/finalcutpro/main/TimelineToolbar.lua
--- === cp.apple.finalcutpro.main.TimelineToolbar === --- --- Timeline Toolbar -------------------------------------------------------------------------------- -- -- EXTENSIONS: -- -------------------------------------------------------------------------------- local require = require --------------------------------...
--- === cp.apple.finalcutpro.main.TimelineToolbar === --- --- Timeline Toolbar -------------------------------------------------------------------------------- -- -- EXTENSIONS: -- -------------------------------------------------------------------------------- local require = require --------------------------------...
#1509
#1509 - Fixed @stickler-ci errors
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
3e83230c445f43bede23e679d8777b5e9225eb1b
src/extensions/cp/apple/finalcutpro/main/SecondaryWindow.lua
src/extensions/cp/apple/finalcutpro/main/SecondaryWindow.lua
--- === cp.apple.finalcutpro.main.SecondaryWindow === --- --- Secondary Window Module. -------------------------------------------------------------------------------- -- -- EXTENSIONS: -- -------------------------------------------------------------------------------- local require = require ------------------------...
--- === cp.apple.finalcutpro.main.SecondaryWindow === --- --- Secondary Window Module. -------------------------------------------------------------------------------- -- -- EXTENSIONS: -- -------------------------------------------------------------------------------- local require = require ------------------------...
* Fixed bug with duplicate `SecondaryWindow:window()` method
* Fixed bug with duplicate `SecondaryWindow:window()` method
Lua
mit
CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost
df8334c8069aba6cffb4d090f7c854607aa4aa2b
data.lua
data.lua
-- -- Manages encoder/decoder data matrices. -- local data = torch.class("data") function data:__init(opt, data_file) local f = hdf5.open(data_file, 'r') self.source = f:read('source'):all() self.target = f:read('target'):all() self.target_output = f:read('target_output'):all() self.target_l =...
-- -- Manages encoder/decoder data matrices. -- local data = torch.class("data") function data:__init(opt, data_file) local f = hdf5.open(data_file, 'r') self.source = f:read('source'):all() self.target = f:read('target'):all() self.target_output = f:read('target_output'):all() self.target_l =...
fix start symbol and chars
fix start symbol and chars
Lua
mit
jungikim/OpenNMT,da03/OpenNMT,harvardnlp/seq2seq-attn,jsenellart-systran/OpenNMT,srush/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,jeffreyling/seq2seq-hard,jeffreyling/seq2seq-hard,monsieurzhang/OpenNMT,jeffreyling/seq2seq-hard,da03/OpenNMT,jsenellart/OpenNMT,dabbler0/seq2seq-comparison,jungikim/OpenNMT,OpenNMT/OpenNMT,mo...
0476e3b19ebddd598d309d738696dbb048f1c4bf
MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua
MMOCoreORB/bin/scripts/managers/jedi/village/village_jedi_manager_township.lua
local ObjectManager = require("managers.object.object_manager") local ScreenPlay = require("screenplays.screenplay") -- Utils. local Logger = require("utils.logger") require("utils.helpers") VillageJediManagerTownship = ScreenPlay:new { screenplayName = "VillageJediManagerTownship" } VILLAGE_PHASE_ONE = 1 VILLAGE_P...
local ObjectManager = require("managers.object.object_manager") local ScreenPlay = require("screenplays.screenplay") -- Utils. local Logger = require("utils.logger") require("utils.helpers") VillageJediManagerTownship = ScreenPlay:new { screenplayName = "VillageJediManagerTownship" } VILLAGE_PHASE_ONE = 1 VILLAGE_P...
[Fixed] village phase changing [Changed] frequency of village phase change [Changed] static village mobs no longer despawn and respawn during village phase change
[Fixed] village phase changing [Changed] frequency of village phase change [Changed] static village mobs no longer despawn and respawn during village phase change Change-Id: I843114baf53fbef363fe212975bb0e70996f3f39
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/...
0aaf386b39c3f199542e3d5eae4263b55d4b68ca
mod_webpresence/mod_webpresence.lua
mod_webpresence/mod_webpresence.lua
module:depends("http"); local jid_split = require "util.jid".prepped_split; local b64 = require "util.encodings".base64.encode; local sha1 = require "util.hashes".sha1; local stanza = require "util.stanza".stanza; local json = require "util.json".encode_ordered; local function require_resource(name) local icon_pa...
module:depends("http"); local jid_split = require "util.jid".prepped_split; local b64 = require "util.encodings".base64.encode; local sha1 = require "util.hashes".sha1; local stanza = require "util.stanza".stanza; local json = require "util.json".encode_ordered; local function require_resource(name) local icon_pa...
mod_webpresence: fixed render-type handling (thanks to biszkopcik and Zash)
mod_webpresence: fixed render-type handling (thanks to biszkopcik and Zash)
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
f4cf7efaa69c6a08fe469741c1f4f1c7334727cd
mod_register_url/mod_register_url.lua
mod_register_url/mod_register_url.lua
-- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page to complete the registration. local st = require "util.stanza"; function reg_redirect(event) local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" }; local url = module:get_option("regis...
-- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page to complete the registration. local st = require "util.stanza"; function reg_redirect(event) local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" }; local url = module:get_option("regis...
mod_register_url: minor fix.
mod_register_url: minor fix.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
62e0a6b927b2bc88412ada235d9e09654495bf9e
MMOCoreORB/bin/scripts/object/tangible/wearables/apron/apron_porcellus.lua
MMOCoreORB/bin/scripts/object/tangible/wearables/apron/apron_porcellus.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
[fixed] Crafting Apron quest reward now able to be worn by Ithorians & Wookiees, Mantis 6238
[fixed] Crafting Apron quest reward now able to be worn by Ithorians & Wookiees, Mantis 6238 Change-Id: I0d972ec5a434ccd2c21385bdd6b8a4afb1fbc7d2
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
7750c760ecc8e4bbd1f16aca94b0e5628cfead3b
lua/starfall/libs_sh/hook.lua
lua/starfall/libs_sh/hook.lua
------------------------------------------------------------------------------- -- Hook library ------------------------------------------------------------------------------- --- Deals with hooks -- @shared local hook_library, _ = SF.Libraries.Register("hook") local registered_instances = {} --- Sets a hook function...
------------------------------------------------------------------------------- -- Hook library ------------------------------------------------------------------------------- --- Deals with hooks -- @shared local hook_library, _ = SF.Libraries.Register("hook") local registered_instances = {} --- Sets a hook function...
fixed hooks that could return something always returning something
fixed hooks that could return something always returning something which was preventing other hooks of the same type from being called
Lua
bsd-3-clause
Ingenious-Gaming/Starfall,Xandaros/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall
68832dc6f28cbc10d9861d8202382689984e06ef
src/builtin/macros.lua
src/builtin/macros.lua
-- Extra macros for automating proof construction using Lua. -- This macro creates the syntax-sugar -- name bindings ',' expr -- For a function f with signature -- f : ... (A : Type) ... (Pi x : A, ...) -- -- farity is the arity of f -- typepos is the position of (A : Type) argument -- lambdapos is the position...
-- Extra macros for automating proof construction using Lua. -- This macro creates the syntax-sugar -- name bindings ',' expr -- For a function f with signature -- f : ... (A : Type) ... (Pi x : A, ...) -- -- farity is the arity of f -- typepos is the position of (A : Type) argument -- lambdapos is the position...
fix(builtin/macros): comments
fix(builtin/macros): comments Signed-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>
Lua
apache-2.0
dselsam/lean,soonhokong/lean-osx,javra/lean,rlewis1988/lean,fpvandoorn/lean,soonhokong/travis_test,htzh/lean,leanprover/lean,fgdorais/lean,fgdorais/lean,soonhokong/lean-windows,leodemoura/lean,digama0/lean,johoelzl/lean,levnach/lean,leodemoura/lean,leanprover-community/lean,rlewis1988/lean,fpvandoorn/lean,codyroux/lean...
067f791794d7a430eba1c597bee0d4d8ed743815
app/spacer/run.lua
app/spacer/run.lua
local json = require "cjson" local routes = require "routes" local env = os.getenv('SPACER_ENV') ngx.req.read_body() local path = ngx.var.uri local method = ngx.var.request_method local module = nil for i, route in ipairs(routes) do if route[1] == method and route[2] == path then module = route[3] ...
local json = require "cjson" local routes = require "routes" local env = os.getenv('SPACER_ENV') ngx.req.read_body() local path = ngx.var.uri local method = ngx.var.request_method local module = nil for i, route in ipairs(routes) do if route[1] == method and route[2] == path then module = route[3] ...
fix status code
fix status code
Lua
mit
poga/spacer,poga/spacer,poga/spacer
5911e4e9d5523c705a9291e731d673a3d6750b01
gumbo/dom/Document.lua
gumbo/dom/Document.lua
local Element = require "gumbo.dom.Element" local Text = require "gumbo.dom.Text" local Comment = require "gumbo.dom.Comment" local util = require "gumbo.dom.util" local Document = util.merge("Node", "NonElementParentNode", { type = "document", nodeName = "#document", nodeType = 9, contentType = "text/...
local Element = require "gumbo.dom.Element" local Text = require "gumbo.dom.Text" local Comment = require "gumbo.dom.Comment" local util = require "gumbo.dom.util" local Document = util.merge("Node", "NonElementParentNode", { type = "document", nodeName = "#document", nodeType = 9, contentType = "text/...
Fix Document.create* methods
Fix Document.create* methods
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
8c1d109555a32453174ace1d328fd6fe32c735c3
src/pasta/app.lua
src/pasta/app.lua
local mnemonic = require("mnemonic") local arc4random = require("arc4random") local crypto = require("crypto") local lapis = require("lapis") local model = require("pasta.models") local config = require("lapis.config").get() local app = lapis.Application() local function makeToken(nwords) local words = mnemonic.ra...
local mnemonic = require("mnemonic") local arc4random = require("arc4random") local crypto = require("crypto") local lapis = require("lapis") local model = require("pasta.models") local config = require("lapis.config").get() local app = lapis.Application() local function makeToken(nwords) local words = mnemonic.ra...
implement prefix, suffix added to hashed string
implement prefix, suffix added to hashed string
Lua
mit
starius/pasta,starius/pasta,starius/pasta
9aa795bf6d89b664b417765ef53dbd6f5a3c480b
npc/base/condition/state.lua
npc/base/condition/state.lua
-- $Id$ require("base.class") require("npc.base.condition.condition") module("npc.base.condition.state", package.seeall) state = base.class.class(npc.base.condition.condition.condition, function(self, comp, value) npc.base.condition.condition.condition:init(self); self["value"], self["valuetype"] = npc.base.t...
-- $Id$ require("base.class") require("npc.base.condition.condition") module("npc.base.condition.state", package.seeall) state = base.class.class(npc.base.condition.condition.condition, function(self, comp, value) npc.base.condition.condition.condition:init(self); self["value"], self["valuetype"] = npc.base.t...
Removed bug with state in easyNPC
Removed bug with state in easyNPC
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content
83e7ac63002d19bb1348b581716a8b96fdbac70b
applications/luci-polipo/luasrc/model/cbi/polipo.lua
applications/luci-polipo/luasrc/model/cbi/polipo.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
applications/luci-polipo: fix polipo page
applications/luci-polipo: fix polipo page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6613 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI
468d2c7767081c3a011911b44249267aaf977b89
mod_statistics/prosodytop.lua
mod_statistics/prosodytop.lua
local curses = require "curses"; local server = require "net.server_select"; local timer = require "util.timer"; assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'"); local top = require "top"; function main() local stdscr = curses.stdscr() -- it's a userdatum --stds...
local curses = require "curses"; local server = require "net.server_select"; local timer = require "util.timer"; assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'"); local top = require "top"; function main() local stdscr = curses.stdscr() -- it's a userdatum --stds...
mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG)
mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG)
Lua
mit
asdofindia/prosody-modules,softer/prosody-modules,either1/prosody-modules,olax/prosody-modules,mardraze/prosody-modules,asdofindia/prosody-modules,mardraze/prosody-modules,olax/prosody-modules,cryptotoad/prosody-modules,NSAKEY/prosody-modules,iamliqiang/prosody-modules,amenophis1er/prosody-modules,brahmi2/prosody-modul...
0c10fda8439759353f394fb719bc6d1e2c8e5ec4
MMOCoreORB/bin/scripts/screenplays/tasks/nitra_vendallan.lua
MMOCoreORB/bin/scripts/screenplays/tasks/nitra_vendallan.lua
nitra_vendallan_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "nitra_vendallan_imp", planetName = "tatooine", npcName = "Dienn Biktor (a Imperial Non-Comm defector)" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "faction", faction = "reb...
nitra_vendallan_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "nitra_vendallan_imp", planetName = "tatooine", npcName = "Drenn Biktor (an Imperial Non-Comm defector)" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "faction", faction = "re...
[Fixed] waypoint names and escort target names for Nitra Vendallan task - mantis 4893
[Fixed] waypoint names and escort target names for Nitra Vendallan task - mantis 4893 Change-Id: I93d9c3036cf1e6b7323e52882f8c3fd426231a94
Lua
agpl-3.0
lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/...
d770a0cab9393ed17bf0c48e08af293db164a424
lua/tchildren.lua
lua/tchildren.lua
local getChildren = function (id, level, result) local list = cmsgpack.unpack(redis.call('get', prefix .. id)) return list -- for i, v in ipairs(list) do -- local cid = v[1] -- local childCount = v[2] -- local item = { cid, childCount } -- if childCount > 0 and level ~= 0 then -- getChild...
local getChildren = function (id, level, result) local list = cmsgpack.unpack(redis.call('get', prefix .. id)) for i, v in ipairs(list) do local cid = v[1] local childCount = v[2] local item = { cid, childCount } if childCount > 0 and level ~= 0 then getChildren(cid, level - 1, item) en...
Fix tchildren
Fix tchildren
Lua
mit
shimohq/ioredis-tree
6fb48f8c57b0ed6f0fb4aef8a8e0d35a8d4bc826
src/program/config/data_format/data_format.lua
src/program/config/data_format/data_format.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local schema = require("lib.yang.schema") local yang_data = require("lib.yang.data") -- Number of spaces a tab should consist of when indenting config. local tab_spaces = 2 local...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local schema = require("lib.yang.schema") local yang_data = require("lib.yang.data") -- Number of spaces a tab should consist of when indenting config. local tab_spaces = 2 local...
Fix some small code cosmeic issues
Fix some small code cosmeic issues
Lua
apache-2.0
alexandergall/snabbswitch,alexandergall/snabbswitch,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,snabbco/snabb,Igalia/snabb,eugeneia/snabbswitch,eugeneia/snabbswitch,snabbco/snabb,Igalia/snabb,alexandergall/snabbswitch,SnabbCo/snabbswitch,heryii/snabb,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabb,eugeneia/snabb,...
2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2
xmake/modules/package/tools/xmake.lua
xmake/modules/package/tools/xmake.lua
--!A cross-platform build utility based on Lua -- -- 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...
--!A cross-platform build utility based on Lua -- -- 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...
fix tools/xmake
fix tools/xmake
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
61c7157a66b4bbce7d110cc0de8164bd2bd57798
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
kuoruan/lede-luci,shangjiyu/luci-with-extra,artynet/luci,nmav/luci,openwrt-es/openwrt-luci,remakeelectric/luci,Noltari/luci,nmav/luci,oneru/luci,chris5560/openwrt-luci,chris5560/openwrt-luci,kuoruan/luci,hnyman/luci,openwrt/luci,kuoruan/luci,wongsyrone/luci-1,aa65535/luci,chris5560/openwrt-luci,rogerpueyo/luci,chris556...
5a36e5427f2eb9c7d0d91f0b2c69ae3292b34bc9
frontend/document/picdocument.lua
frontend/document/picdocument.lua
local Document = require("document/document") local DrawContext = require("ffi/drawcontext") local pic = nil local PicDocument = Document:new{ _document = false, dc_null = DrawContext.new() } function PicDocument:init() if not pic then pic = require("ffi/pic") end ok, self._document = pcall(pic.openDo...
local Document = require("document/document") local DrawContext = require("ffi/drawcontext") local pic = nil local PicDocument = Document:new{ _document = false, dc_null = DrawContext.new() } function PicDocument:init() if not pic then pic = require("ffi/pic") end ok, self._document = pcall(pic.openDo...
fixes for picdocument
fixes for picdocument picdocument didn't use the document API correctly
Lua
agpl-3.0
houqp/koreader,Frenzie/koreader,ashhher3/koreader,pazos/koreader,NickSavage/koreader,lgeek/koreader,poire-z/koreader,koreader/koreader,ashang/koreader,poire-z/koreader,chrox/koreader,NiLuJe/koreader,Hzj-jie/koreader,Frenzie/koreader,apletnev/koreader,noname007/koreader,chihyang/koreader,mwoz123/koreader,frankyifei/kore...
f8082bc7c17d2e1db595823f63c3a6c57cdb75dd
BIOS/migrate080.lua
BIOS/migrate080.lua
--Migrating script from LIKO-12 0.8.0 and earlier. local HandledAPIS = ... --Peripherals local GPU = HandledAPIS.GPU local CPU = HandledAPIS.CPU local fs = HandledAPIS.HDD --Filesystem identity local nIdentity = love.filesystem.getIdentity() local oIdentity = "liko12" --Helper functions local function msg(...) GPU...
--Migrating script from LIKO-12 0.8.0 and earlier. local HandledAPIS = ... --Peripherals local GPU = HandledAPIS.GPU local CPU = HandledAPIS.CPU local fs = HandledAPIS.HDD --Filesystem identity local nIdentity = love.filesystem.getIdentity() local oIdentity = "liko12" --Helper functions local function msg(...) GPU...
Tiny fix in the migrating script.
Tiny fix in the migrating script. Former-commit-id: 0fa1f32098f9d2776d8686064a16cd4a5ede7995
Lua
mit
RamiLego4Game/LIKO-12
e97dc6d38007d8b93cf138328963f2789a642527
test/lua/unit/url.lua
test/lua/unit/url.lua
-- URL parser tests context("URL check functions", function() local mpool = require("rspamd_mempool") local url = require("rspamd_url") local logger = require("rspamd_logger") local ffi = require("ffi") ffi.cdef[[ void rspamd_url_init (const char *tld_file); unsigned ottery_rand_range(unsigned top); ]]...
-- URL parser tests context("URL check functions", function() local mpool = require("rspamd_mempool") local url = require("rspamd_url") local logger = require("rspamd_logger") local ffi = require("ffi") ffi.cdef[[ void rspamd_url_init (const char *tld_file); unsigned ottery_rand_range(unsigned top); ]]...
Fix closure lifetime in tests.
Fix closure lifetime in tests.
Lua
apache-2.0
minaevmike/rspamd,dark-al/rspamd,andrejzverev/rspamd,dark-al/rspamd,awhitesong/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,dark-al/rspamd,andrejzverev/rspamd,amohanta/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,awhitesong/...
d1c1639b754efe2d63c38165e708f340a35c9289
aspects/nvim/files/.config/nvim/lua/wincent/mappings/leader.lua
aspects/nvim/files/.config/nvim/lua/wincent/mappings/leader.lua
local leader = {} local number_flag = 'wincent_number' local cycle_numbering = function() local relativenumber = vim.wo.relativenumber local number = vim.wo.number -- Cycle through: -- - relativenumber + number -- - number (only) -- - no numbering if (vim.deep_equal({relativenumber, number}, {true, tru...
local leader = {} local number_flag = 'wincent_number' local cycle_numbering = function() local relativenumber = vim.wo.relativenumber local number = vim.wo.number -- Cycle through: -- - relativenumber + number -- - number (only) -- - no numbering if (vim.deep_equal({relativenumber, number}, {true, tru...
fix(nvim): make jump list step function to overcome feedkeys latency
fix(nvim): make jump list step function to overcome feedkeys latency As mentioned in the parent commit, we have to wait a bit to actually see the effects of the feedkeys call. But as noted in the "BUG:" comment, this is still edge-casey enough that I probably have to resort to parsing the `:jumps` output in order to ...
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
1fa82a793721a8cd1696e6053a0351188b706f31
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- loc...
protocols/core: fix peerdns option for dhcp proto
protocols/core: fix peerdns option for dhcp proto
Lua
apache-2.0
jorgifumi/luci,shangjiyu/luci-with-extra,slayerrensky/luci,palmettos/cnLuCI,chris5560/openwrt-luci,obsy/luci,aa65535/luci,mumuqz/luci,981213/luci-1,kuoruan/lede-luci,tcatm/luci,lcf258/openwrtcn,daofeng2015/luci,Noltari/luci,deepak78/new-luci,jorgifumi/luci,schidler/ionic-luci,obsy/luci,thess/OpenWrt-luci,dwmw2/luci,art...
6ba5a6a824a9501430bbd4163824b75f5f12f797
src/cancellabledelay/src/Shared/cancellableDelay.lua
src/cancellabledelay/src/Shared/cancellableDelay.lua
--[=[ A version of task.delay that can be cancelled. Soon to be useless. @class cancellableDelay ]=] --[=[ @function cancellableDelay @param timeoutInSeconds number @param func function @param ... any -- Args to pass into the function @return function? -- Can be used to cancel @within cancellableDelay ]=] loca...
--[=[ A version of task.delay that can be cancelled. Soon to be useless. @class cancellableDelay ]=] --[=[ @function cancellableDelay @param timeoutInSeconds number @param func function @param ... any -- Args to pass into the function @return function? -- Can be used to cancel @within cancellableDelay ]=] loca...
style: Fix linter
style: Fix linter
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
f953eb8650073a3da5b551239c87e8d9391bc858
src/maid/src/Shared/Maid.lua
src/maid/src/Shared/Maid.lua
--[=[ Manages the cleaning of events and other things. Useful for encapsulating state and make deconstructors easy. See the [Five Powerful Code Patterns talk](https://developer.roblox.com/en-us/videos/5-powerful-code-patterns-behind-top-roblox-games) for a more in-depth look at Maids in top games. ```lua local ...
--[=[ Manages the cleaning of events and other things. Useful for encapsulating state and make deconstructors easy. See the [Five Powerful Code Patterns talk](https://developer.roblox.com/en-us/videos/5-powerful-code-patterns-behind-top-roblox-games) for a more in-depth look at Maids in top games. ```lua local ...
fix: Maid tasks cancel old threads upon rewrite
fix: Maid tasks cancel old threads upon rewrite
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
20473407b1494e89ff991a4d1b620c77fd9c4d22
kernel/turtle/ttl2flr.lua
kernel/turtle/ttl2flr.lua
-- convert turtle ontologies to F-Logic/Flora-2 local ttl2flr = {} local turtleparse = require("turtleparse") local __dump = require("pl.pretty").dump -- no default prefix support in Flora-2, so we save it here and -- substitute it upon encountering it local __DEFAULT_PREFIX_URI local function __printPrefix(p) i...
-- convert turtle ontologies to F-Logic/Flora-2 local ttl2flr = {} local turtleparse = require("turtleparse") local __dump = require("pl.pretty").dump -- no default prefix support in Flora-2, so we save it here and -- substitute it upon encountering it local __DEFAULT_PREFIX_URI -- prefix index necessary to expand ...
add expansion of prefix-only qnames to turtle to flora script
add expansion of prefix-only qnames to turtle to flora script
Lua
mit
jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico,jbalint/banshee-sympatico
89ad7bb65176dfd25c2780844e415f924fd1255d
nvim/.config/nvim/lua/configs.lua
nvim/.config/nvim/lua/configs.lua
-- nvim-treesitter require "nvim-treesitter.configs".setup { ensure_installed = "all", highlight = {enable = true}, refactor = { highlight_definitions = {enable = false}, highlight_current_scope = {enable = false} }, textobjects = { select = { enable = true, keymaps = { ["af"] ...
-- nvim-treesitter require "nvim-treesitter.configs".setup { ensure_installed = "all", highlight = {enable = true}, refactor = { highlight_definitions = {enable = false}, highlight_current_scope = {enable = false} }, textobjects = { select = { enable = true, keymaps = { ["af"] ...
[nvim] fix lua diagnostics
[nvim] fix lua diagnostics
Lua
mit
meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles
f70bae058083f2dd46106fd5e405b5f1ca57b42f
otouto/plugins/tagesschau_eil.lua
otouto/plugins/tagesschau_eil.lua
local tagesschau_eil = {} tagesschau_eil.command = 'eil <sub/del>' function tagesschau_eil:init(config) tagesschau_eil.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('eil', true).table tagesschau_eil.doc = [[* ]]..config.cmd_pat..[[eil* _sub_: Eilmeldungen abonnieren *]]..config.cmd_pat..[[eil*...
local tagesschau_eil = {} tagesschau_eil.command = 'eil <sub/del>' function tagesschau_eil:init(config) tagesschau_eil.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('eil', true).table tagesschau_eil.doc = [[* ]]..config.cmd_pat..[[eil* _sub_: Eilmeldungen abonnieren *]]..config.cmd_pat..[[eil*...
Tagesschau-EIL: Richtiger Fix
Tagesschau-EIL: Richtiger Fix
Lua
agpl-3.0
Brawl345/Brawlbot-v2
0e3136f424075c8b5c97151f493e04f4235d8b62
modules/corelib/table.lua
modules/corelib/table.lua
-- @docclass table function table.dump(t, depth) if not depth then depth = 0 end for k,v in pairs(t) do str = (' '):rep(depth * 2) .. k .. ': ' if type(v) ~= "table" then print(str .. tostring(v)) else print(str) table.dump(v, depth+1) end end end function table.copy(t) local...
-- @docclass table function table.dump(t, depth) if not depth then depth = 0 end for k,v in pairs(t) do str = (' '):rep(depth * 2) .. k .. ': ' if type(v) ~= "table" then print(str .. tostring(v)) else print(str) table.dump(v, depth+1) end end end function table.copy(t) local...
Fix stackoverflow caused by new table.copy
Fix stackoverflow caused by new table.copy
Lua
mit
Cavitt/otclient_mapgen,kwketh/otclient,dreamsxin/otclient,gpedro/otclient,EvilHero90/otclient,dreamsxin/otclient,gpedro/otclient,dreamsxin/otclient,Radseq/otclient,kwketh/otclient,Radseq/otclient,gpedro/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient
c8f56589f724fa42b06d07b29c2d79822705e4d6
game/scripts/vscripts/heroes/structures/healer_bottle_filling.lua
game/scripts/vscripts/heroes/structures/healer_bottle_filling.lua
LinkLuaModifier("modifier_healer_bottle_filling", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_healer_bottle_filling_effect", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_healer_bottle_filling_delay", "heroes/str...
LinkLuaModifier("modifier_healer_bottle_filling", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_healer_bottle_filling_delay", "heroes/structures/healer_bottle_filling.lua", LUA_MODIFIER_MOTION_NONE) healer_bottle_filling = class({ GetIntrinsicModifierName = functio...
fix(abilities): shrine bottle filling ability worked incorrectly
fix(abilities): shrine bottle filling ability worked incorrectly
Lua
mit
ark120202/aabs
85ac740f488cb343fb337ee0eedb9ab9bc520ad9
kong/dao/error.lua
kong/dao/error.lua
-- DAOs need more specific error objects, specifying if the error is due -- to the schema, the database connection, a constraint violation etc, so the -- caller can take actions based on the error type. -- -- We will test this object and might create a KongError class too -- if successful and needed. -- -- Ideally, tho...
-- DAOs need more specific error objects, specifying if the error is due -- to the schema, the database connection, a constraint violation etc, so the -- caller can take actions based on the error type. -- -- We will test this object and might create a KongError class too -- if successful and needed. -- -- Ideally, tho...
Revert "fix: comply to resty-cassandra's new errors"
Revert "fix: comply to resty-cassandra's new errors" This reverts commit 7692c244e300feb5d686f71caf025a909951afc9.
Lua
apache-2.0
isdom/kong,Kong/kong,vzaramel/kong,Kong/kong,jebenexer/kong,beauli/kong,kyroskoh/kong,vzaramel/kong,xvaara/kong,ccyphers/kong,ind9/kong,rafael/kong,jerizm/kong,Kong/kong,ejoncas/kong,li-wl/kong,ejoncas/kong,streamdataio/kong,ind9/kong,akh00/kong,Vermeille/kong,smanolache/kong,ajayk/kong,icyxp/kong,streamdataio/kong,Mas...
4bfb08c7aa73695e1126caaf79d824abc26c6111
[resources]/GTWpolice/data.lua
[resources]/GTWpolice/data.lua
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
[Misc] Fixed indentation in data
[Misc] Fixed indentation in data
Lua
bsd-2-clause
GTWCode/GTW-RPG,SpRoXx/GTW-RPG,SpRoXx/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG
28ceebd001ce3e368adc3a4a773f2fa9473088ba
lib/acid/redis.lua
lib/acid/redis.lua
local resty_redis = require("resty.redis") local strutil = require("acid.strutil") local rpc_logging = require("acid.rpc_logging") local to_str = strutil.to_str local _M = {} local mt = { __index = _M } local function get_redis_cli(self) local redis_cli, err_msg = resty_redis:new() if redis_cli == nil then ...
local resty_redis = require("resty.redis") local strutil = require("acid.strutil") local rpc_logging = require("acid.rpc_logging") local to_str = strutil.to_str local _M = { _VERSION = "0.1" } local mt = { __index = _M } local function get_redis_cli(self) local redis_cli, err_msg = resty_redis:new() if redis...
fix redis.lua
fix redis.lua
Lua
mit
baishancloud/lua-acid,baishancloud/lua-acid,baishancloud/lua-acid
a1efc24d20691810b7f82108cbee79f584332f80
otouto/plugins/gdrive.lua
otouto/plugins/gdrive.lua
local gdrive = {} local utilities = require('otouto.utilities') local https = require('ssl.https') local ltn12 = require('ltn12') local json = require('dkjson') local bindings = require('otouto.bindings') function gdrive:init(config) if not cred_data.google_apikey then print('Missing config value: google_apikey.')...
local gdrive = {} local utilities = require('otouto.utilities') local https = require('ssl.https') local ltn12 = require('ltn12') local json = require('dkjson') local bindings = require('otouto.bindings') function gdrive:init(config) if not cred_data.google_apikey then print('Missing config value: google_apikey.')...
- GDrive: Migriere zu API Version 3, Fix #7
- GDrive: Migriere zu API Version 3, Fix #7
Lua
agpl-3.0
Brawl345/Brawlbot-v2
8b333c82f19d3d436eb24d3a41d05935e0d4c96a
Modules/Utility/os.lua
Modules/Utility/os.lua
-- to use: local os = require(this_script) -- Adds an os.date() function back to the Roblox os table! -- @author Narrev -- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3) -- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600) -- timeZoneDiff = os.date("*t...
-- to use: local os = require(this_script) -- Adds an os.date() function back to the Roblox os table! -- @author Narrev -- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3) -- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600) -- timeZoneDiff = os.date("*t...
Added "%s" to be day suffix
Added "%s" to be day suffix
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
b89ca8c01458cae36ab4ce5c7ccb19cf69e14777
mods/mobs/init.lua
mods/mobs/init.lua
-- Mob Api dofile(minetest.get_modpath("mobs").."/api.lua") -- Animals dofile(minetest.get_modpath("mobs").."/chicken.lua") -- JKmurray dofile(minetest.get_modpath("mobs").."/cow.lua") -- KrupnoPavel dofile(minetest.get_modpath("mobs").."/rat.lua") -- PilzAdam dofile(minetest.get_modpath("mobs").."/sheep.lua") -- Pi...
-- Mob Api dofile(minetest.get_modpath("mobs").."/api.lua") -- Animals dofile(minetest.get_modpath("mobs").."/chicken.lua") -- JKmurray dofile(minetest.get_modpath("mobs").."/cow.lua") -- KrupnoPavel dofile(minetest.get_modpath("mobs").."/rat.lua") -- PilzAdam dofile(minetest.get_modpath("mobs").."/sheep.lua") -- Pi...
Fix minotaur problem dofile on init.lua
Fix minotaur problem dofile on init.lua
Lua
unlicense
MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,paly2/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,LeMagnes...
f45f4120ab5e8bf8df0034fb1aae63d1a1c8877a
lib/hump/class.lua
lib/hump/class.lua
--[[ Copyright (c) 2010-2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
--[[ Copyright (c) 2010-2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
fix class members not callable from constructor
fix class members not callable from constructor
Lua
mit
scottcs/wyx
35a1a9069de09d1bb94c272cc2860c9096344f29
Engine/coreg.lua
Engine/coreg.lua
--Corouting Registry: this file is responsible for providing LIKO12 it's api-- local coreg = {reg={},stack={}} local sandbox = require("Engine.sandbox") --Returns the current active coroutine if exists function coreg:getCoroutine() return self.co, self.coglob end --Sets the current active coroutine function coreg:...
--Corouting Registry: this file is responsible for providing LIKO12 it's api-- local coreg = {reg={},stack={}} local sandbox = require("Engine.sandbox") --Returns the current active coroutine if exists function coreg:getCoroutine() return self.co, self.coglob end --Sets the current active coroutine function coreg:...
Bugfix & Optimization
Bugfix & Optimization
Lua
mit
RamiLego4Game/LIKO-12
9fcfe12143916a5c6b1ad209311c5b67679ad41f
LookupTable.lua
LookupTable.lua
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex, nOutput):zero() self._count = torch.IntTensor() self._inp...
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex, nOutput):zero() self._count = torch.IntTensor() self._inp...
Fix CUDA LookupTable with 2D inputs.
Fix CUDA LookupTable with 2D inputs. The CUDA version of LookupTable was incorrect for 2D inputs. This fixes it by viewing 2D inputs as a 1D tensor.
Lua
bsd-3-clause
hery/nn,sbodenstein/nn,forty-2/nn,douwekiela/nn,davidBelanger/nn,caldweln/nn,jhjin/nn,andreaskoepf/nn,xianjiec/nn,eriche2016/nn,hughperkins/nn,PierrotLC/nn,GregSatre/nn,apaszke/nn,elbamos/nn,EnjoyHacking/nn,nicholas-leonard/nn,fmassa/nn,rotmanmi/nn,abeschneider/nn,jzbontar/nn,ominux/nn,mys007/nn,noa/nn,lvdmaaten/nn,kmu...
33514ed2ca7711253a27820c4a7717e74be16630
lua/effects/warpcore_breach/init.lua
lua/effects/warpcore_breach/init.lua
local matRefraction = Material( "refract_ring" ) local tMats = {} tMats.Glow1 = Material("sprites/light_glow02") --tMats.Glow1 = Material("models/roller/rollermine_glow") tMats.Glow2 = Material("sprites/yellowflare") tMats.Glow3 = Material("sprites/redglow2") for _,mat in pairs(tMats) do mat:SetInt("$spriterenderm...
local matRefraction = Material( "refract_ring" ) local tMats = {} tMats.Glow1 = Material("sprites/light_glow02") --tMats.Glow1 = Material("models/roller/rollermine_glow") tMats.Glow2 = Material("sprites/yellowflare") tMats.Glow3 = Material("sprites/redglow2") for _,mat in pairs(tMats) do mat:SetInt("$spriterenderm...
Fix warpcore_breach race condition
Fix warpcore_breach race condition
Lua
apache-2.0
N3X15/spacebuild
8443b091a930ea84338a764f16747b2b3c3b6898
packages/tate.lua
packages/tate.lua
local pdf = require("justenoughlibtexpdf") SILE.tateFramePrototype = SILE.framePrototype { direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter pdf.setdirmode(1) SILE.typesetter.leadingFor = function(self, v) v.height = SILE.toPoints("1zw") return SILE....
local pdf = require("justenoughlibtexpdf") SILE.tateFramePrototype = SILE.framePrototype { direction = "TTB-RTL", enterHooks = { function (self) self.oldtypesetter = SILE.typesetter SILE.typesetter.leadingFor = function(self, v) v.height = SILE.toPoints("1zw") return SILE.settings.get("document...
This package is still somewhat broken, but these fixes are probably correct.
This package is still somewhat broken, but these fixes are probably correct.
Lua
mit
anthrotype/sile,anthrotype/sile,anthrotype/sile,simoncozens/sile,alerque/sile,alerque/sile,neofob/sile,anthrotype/sile,simoncozens/sile,alerque/sile,neofob/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,neofob/sile
5f0a102a906c213d1094438ebbaf82c9d4324a82
test_scripts/Policies/build_options/103_ATF_Timeout_wait_response_PTU_PROPRIETARY.lua
test_scripts/Policies/build_options/103_ATF_Timeout_wait_response_PTU_PROPRIETARY.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Timeout to wait a response on PTU -- -- Description: -- SDL should request PTU in app is registered and getting device consent -- 1. Used preconditions -- SDL is built with "-DEX...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] Timeout to wait a response on PTU -- -- Description: -- SDL should request PTU in app is registered and getting device consent -- 1. Used preconditions -- SDL is built with "-DEX...
Fix script
Fix script
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
16d3c4c1d665f732c36a1b4d23ee745b6dd12a79
source/game/map.lua
source/game/map.lua
-------------------------------------------------------------------------------- -- map.lua - Defines a map which manages the construction of the hex grid and the path within -------------------------------------------------------------------------------- require "source/pathfinder" require "source/utilities/vector" ...
-------------------------------------------------------------------------------- -- map.lua - Defines a map which manages the construction of the hex grid and the path within -------------------------------------------------------------------------------- require "source/pathfinder" require "source/utilities/vector" ...
Fixed placing towers in multiplayer.
Fixed placing towers in multiplayer.
Lua
mit
BryceMehring/Hexel
b18a98b3740896bec6e7e55b4a2bd4430aced0fb
spec/resty/openssl/bio_spec.lua
spec/resty/openssl/bio_spec.lua
local _M = require('resty.openssl.bio') describe('OpenSSL BIO', function() describe('.new', function() it('returns cdata', function() assert.equal('cdata', type(_M.new())) end) end) describe(':write', function() it('writes data to bio', function() local bio = _M.new() local str = '...
local _M = require('resty.openssl.bio') describe('OpenSSL BIO', function() describe('.new', function() it('returns cdata', function() assert.equal('cdata', type(_M.new())) end) end) describe(':write', function() it('writes data to bio', function() local bio = _M.new() local str = '...
[test] Fix ssl test due library change
[test] Fix ssl test due library change Due to the update on the image the ssl library return 0 instead of error. Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@gmail.com>
Lua
mit
3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway
21d78cc8910699791fda1828f1dffa8514364099
src/copas/copas.lua
src/copas/copas.lua
------------------------------------------------------------------------------- -- Copas - Coroutine Oriented Portable Asynchronous Services -- -- Offers a dispatcher and socket operations based on coroutines. -- Usage: -- copas.addserver(server, handler) -- copas.loop() -- copas.flush - flushes the writing b...
------------------------------------------------------------------------------- -- Copas - Coroutine Oriented Portable Asynchronous Services -- -- Offers a dispatcher and socket operations based on coroutines. -- Usage: -- copas.addserver(server, handler) -- copas.loop() -- copas.flush - flushes the writing b...
fixed function naming
fixed function naming
Lua
mit
keplerproject/copas
b59b4ade064b796c0798ab968b73bb8b207ddd7c
Interface/AddOns/RayUI/libs/cargBags/mixins-add/rayui.scaffold.lua
Interface/AddOns/RayUI/libs/cargBags/mixins-add/rayui.scaffold.lua
local addon, ns = ... local cargBags = ns.cargBags local function noop() end local function ItemButton_Scaffold(self) self:SetSize(RayUI[1].db.Bags.bagSize, RayUI[1].db.Bags.bagSize) local name = self:GetName() self.Icon = _G[name.."IconTexture"] self.Count = _G[name.."Count"] self.Cooldown = _G[name.."Cooldown...
local addon, ns = ... local cargBags = ns.cargBags local function noop() end local function ItemButton_Scaffold(self) self:SetSize(RayUI[1].db.Bags.bagSize, RayUI[1].db.Bags.bagSize) local name = self:GetName() self.Icon = _G[name.."IconTexture"] self.Count = _G[name.."Count"] self.Cooldown = _G[name.."Cooldown...
fix #8
fix #8
Lua
mit
fgprodigal/RayUI
d8ad70581787c01857bde16180689d3f9e29767a
src/base/detoken.lua
src/base/detoken.lua
-- -- detoken.lua -- -- Expands tokens. -- -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- premake.detoken = {} local p = premake local detoken = p.detoken -- -- Expand tokens in a value. -- -- @param value -- The value containing the tokens to be expanded. -- @param environ -- An execu...
-- -- detoken.lua -- -- Expands tokens. -- -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- premake.detoken = {} local p = premake local detoken = p.detoken -- -- Expand tokens in a value. -- -- @param value -- The value containing the tokens to be expanded. -- @param environ -- An execu...
fix detoken.
fix detoken.
Lua
bsd-3-clause
CodeAnxiety/premake-core,soundsrc/premake-core,Zefiros-Software/premake-core,noresources/premake-core,noresources/premake-core,noresources/premake-core,aleksijuvani/premake-core,Zefiros-Software/premake-core,starkos/premake-core,mandersan/premake-core,noresources/premake-core,Blizzard/premake-core,tvandijck/premake-cor...
9ba69b8674d756940b85156ff80e09169a44002b
MMOCoreORB/bin/scripts/mobile/spawn/tatooine_starter_small_town.lua
MMOCoreORB/bin/scripts/mobile/spawn/tatooine_starter_small_town.lua
tatooine_starter_creatures = { wanderRadius = 10, commandLevel = 0, type = LAIR, maxSpawnLimit = 256, lairSpawns = { { lairTemplateName = "tatooine_kreetle_lair_neutral_small", spawnLimit = -1, minDifficulty = 2, maxDifficulty = 4, numberToSpawn = 0, weighting = 15, size = 25 }, { l...
tatooine_starter_small_town = { wanderRadius = 10, commandLevel = 0, type = LAIR, maxSpawnLimit = 256, lairSpawns = { { lairTemplateName = "tatooine_kreetle_lair_neutral_small", spawnLimit = -1, minDifficulty = 2, maxDifficulty = 4, numberToSpawn = 0, weighting = 15, size = 25 }, { ...
[Fixed] SpawnGroup error
[Fixed] SpawnGroup error Change-Id: I36f9e22819fa36944d7226d0a683addc19f8788a
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/...
e60d5106c7ba8b66fcb34656f36f222776363fd3
src/httpd_req.lua
src/httpd_req.lua
local module = ... local httpdRequestHandler = { method = nil, query = { }, path = nil, contentType = nil, body = nil } local function httpdRequest(data) local _, _, method, path, query = string.find(data, '([A-Z]+) (.+)?(.+) HTTP') if method == nil then _, _, method, path = string.find(data, '([A-Z...
local module = ... local httpdRequestHandler = { method = nil, query = { }, path = nil, contentType = nil, body = nil } local function httpdRequest(data) local _, _, method, path, query = string.find(data, '([A-Z]+) (.+)?(.+) HTTP') if method == nil then _, _, method, path = string.find(data, '([A-Z...
Fix to handle nil payload in request data
Fix to handle nil payload in request data Error below occurs when a rouge request is received from an unknown origin on my network. Heap: 28320 UPnP: Sent SSDP NOTIFY PANIC: unprotected error in call to Lua API (/opt/nodemcu-firmware/local/fs/httpd_req.lua:26: bad argument #2 to 'sub' (number expected, got ni...
Lua
apache-2.0
konnected-io/konnected-security,konnected-io/konnected-security
a393c4e1652dcbe23107a907c0d1927832f8b2c1
src/basset_db_predict.lua
src/basset_db_predict.lua
#!/usr/bin/env th require 'hdf5' require 'convnet_io' require 'postprocess' ---------------------------------------------------------------- -- parse arguments ---------------------------------------------------------------- cmd = torch.CmdLine() cmd:text() cmd:text('DNA ConvNet response to DB motifs') cmd:text() cm...
#!/usr/bin/env th require 'hdf5' require 'convnet_io' require 'postprocess' ---------------------------------------------------------------- -- parse arguments ---------------------------------------------------------------- cmd = torch.CmdLine() cmd:text() cmd:text('DNA ConvNet response to DB motifs') cmd:text() cm...
random 1.0 bug
random 1.0 bug
Lua
mit
davek44/Basset,davek44/Basset
7cf18e3bce0cea8ec8abf7f03b64ba5b11770039
illarionserver/npc/base/guards_static.lua
illarionserver/npc/base/guards_static.lua
require("base.factions") require("base.common") require("content.guards") require("content.areas") module("npc.base.guards_static", package.seeall) -- modes to define how players are handled. Monsters are always attacked (TO DO, for now: warp only) ACTION_NONE = 0; -- do nothing at all ACTION_PASSIVE = 1; -- if in a...
require("base.factions") require("base.common") require("content.guards") require("content.areas") module("npc.base.guards_static", package.seeall) -- modes to define how players are handled. Monsters are always attacked (TO DO, for now: warp only) ACTION_NONE = 0; -- do nothing at all ACTION_PASSIVE = 1; -- if in a...
Hotfix for static guards
Hotfix for static guards
Lua
agpl-3.0
LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content
be38a3af16cda0c7db8022aeb080f208696bd0ad
src/npge/util/threads.lua
src/npge/util/threads.lua
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. -- see https://github.com/moteus/lua-llthreads2 -- WARNING target executable must be linked against pthread -- Otherwise memory errors occur -- LD_PRELOAD=/lib/x86_64-linux-gnu/libp...
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. -- see https://github.com/moteus/lua-llthreads2 -- WARNING target executable must be linked against pthread -- Otherwise memory errors occur -- LD_PRELOAD=/lib/x86_64-linux-gnu/libp...
threads: don't assert that generator produces smth
threads: don't assert that generator produces smth fix #4
Lua
mit
starius/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge
1e416eefc71f64c0529cdc86a7a60374b5efcc9b
specs/subsets_and_batches_spec.lua
specs/subsets_and_batches_spec.lua
require 'lfs' require 'torch' -- Make sure that directory structure is always the same if (string.match(lfs.currentdir(), "/specs$")) then lfs.chdir("..") end -- Include Dataframe lib paths.dofile('init.lua') -- Go into specs so that the loading of CSV:s is the same as always lfs.chdir("specs") describe("Loading ...
require 'lfs' require 'torch' -- Make sure that directory structure is always the same if (string.match(lfs.currentdir(), "/specs$")) then lfs.chdir("..") end -- Include Dataframe lib paths.dofile('init.lua') -- Go into specs so that the loading of CSV:s is the same as always lfs.chdir("specs") describe("Loading ...
Cleaned and fixed specs so that they now all pass
Cleaned and fixed specs so that they now all pass
Lua
mit
AlexMili/torch-dataframe
c2b85d65f7ac9edadddc3bf64bd38d8609ab30d8
lib/pkg/gdb.lua
lib/pkg/gdb.lua
return { source = { type = 'dist', location = 'http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.xz', sha256sum = '9b315651a16528f7af8c7d8284699fb0c965df316cc7339bb0b7bae335848392' }, build = { type = 'GNU', options = { '--target=$pkg_build_system', ...
return { source = { type = 'dist', location = 'http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.xz', sha256sum = '9b315651a16528f7af8c7d8284699fb0c965df316cc7339bb0b7bae335848392' }, build = { type = 'GNU', unset_cflags = true, options = { '--build=x8...
Fix gdb pkg
Fix gdb pkg
Lua
mit
bazurbat/jagen
5ed89427ef25a503cbb6cb40d4c545ef0007e28b
src/hs/finalcutpro/main/Viewer.lua
src/hs/finalcutpro/main/Viewer.lua
local log = require("hs.logger").new("timline") local inspect = require("hs.inspect") local just = require("hs.just") local axutils = require("hs.finalcutpro.axutils") local PrimaryWindow = require("hs.finalcutpro.main.PrimaryWindow") local SecondaryWindow = require("hs.finalcutpro....
local log = require("hs.logger").new("timline") local inspect = require("hs.inspect") local just = require("hs.just") local axutils = require("hs.finalcutpro.axutils") local PrimaryWindow = require("hs.finalcutpro.main.PrimaryWindow") local SecondaryWindow = require("hs.finalcutpro....
#197 * Fixed bug with Viewer discovery in certain circumstances.
#197 * Fixed bug with Viewer discovery in certain circumstances.
Lua
mit
CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost,CommandPost/CommandPost
22971961d47e5c7be5882af8f3d3271588495772
src/lua/medium.lua
src/lua/medium.lua
-- medium.lua -- Network access medium. -- Copyright 2012 Snabb GmbH. See the file COPYING for license details. module(...,package.seeall) -- Shared memory medium. SHM = {} function SHM:new (filename) local new = { first = true, shm = fabric.open_shm(shmfilename) } setmetatable(new, {__index = self}) return...
-- medium.lua -- Network access medium. -- Copyright 2012 Snabb GmbH. See the file COPYING for license details. module(...,package.seeall) local ffi = require("ffi") local fabric = ffi.load("fabric") -- Shared memory medium. SHM = {} function SHM:new (filename) local new = { first = true, shm = fabric.open_sh...
medium.lua: Fix small bugs in the SHM medium.
medium.lua: Fix small bugs in the SHM medium.
Lua
apache-2.0
snabbnfv-goodies/snabbswitch,kbara/snabb,javierguerragiraldez/snabbswitch,plajjan/snabbswitch,wingo/snabbswitch,andywingo/snabbswitch,alexandergall/snabbswitch,dpino/snabb,SnabbCo/snabbswitch,mixflowtech/logsensor,snabbco/snabb,wingo/snabb,plajjan/snabbswitch,alexandergall/snabbswitch,lukego/snabbswitch,dwdm/snabbswitc...
be457ce8aef5dba38ab61f46e9d1f5e46d4dfdbd
src/nodes/door.lua
src/nodes/door.lua
local Gamestate = require 'vendor/gamestate' local Tween = require 'vendor/tween' local anim8 = require 'vendor/anim8' local sound = require 'vendor/TEsound' local Door = {} Door.__index = Door function Door.new(node, collider) local door = {} setmetatable(door, Door) door.level = node.properties.lev...
local Gamestate = require 'vendor/gamestate' local Tween = require 'vendor/tween' local anim8 = require 'vendor/anim8' local sound = require 'vendor/TEsound' local Door = {} Door.__index = Door function Door.new(node, collider) local door = {} setmetatable(door, Door) door.level = node.properties.lev...
fixed pot holding bug
fixed pot holding bug
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua
1469877b1eefc7fabfe32a36070330e62bbef892
tools/biosnoop.lua
tools/biosnoop.lua
#!/usr/bin/env bcc-lua --[[ Copyright 2016 GitHub, Inc 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 ...
#!/usr/bin/env bcc-lua --[[ Copyright 2016 GitHub, Inc 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 ...
Port fix of biosnoop to the Lua version
Port fix of biosnoop to the Lua version
Lua
apache-2.0
mcaleavya/bcc,mcaleavya/bcc,iovisor/bcc,brendangregg/bcc,iovisor/bcc,brendangregg/bcc,tuxology/bcc,brendangregg/bcc,mcaleavya/bcc,tuxology/bcc,iovisor/bcc,brendangregg/bcc,mcaleavya/bcc,iovisor/bcc,iovisor/bcc,tuxology/bcc,tuxology/bcc,tuxology/bcc,mcaleavya/bcc,brendangregg/bcc
59aef367cd8942299d0d96205cb778280135bb06
mods/forceload/init.lua
mods/forceload/init.lua
local _pts = minetest.pos_to_string function minetest.pos_to_string(pos) if not pos then return "(-,-,-)" end return _pts(pos) end -- Makes sure that force load areas are handled correctly function ForceloadManager(filetoopen, hide_file_errors) local blocks = {} if filetoopen ~= nil then local file = io.open(...
local _pts = minetest.pos_to_string function minetest.pos_to_string(pos) if not pos then return "(-,-,-)" end return _pts(pos) end local elapsed_time = 0 -- Makes sure that force load areas are handled correctly function ForceloadManager(filetoopen, hide_file_errors) local blocks = {} if filetoopen ~= nil then...
fix global var in forceload
fix global var in forceload
Lua
unlicense
MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Ombridride/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-...
192e57cc758640c64d011c90fe625700240672f8
plugins/set.lua
plugins/set.lua
local function get_variables_hash(msg) if msg.to.type == 'channel' then return 'channel:' .. msg.to.id .. ':variables' end if msg.to.type == 'chat' then return 'chat:' .. msg.to.id .. ':variables' end if msg.to.type == 'user' then return 'user:' .. msg.from.id .. ':v...
local function get_variables_hash(msg) if msg.to.type == 'channel' then return 'channel:' .. msg.to.id .. ':variables' end if msg.to.type == 'chat' then return 'chat:' .. msg.to.id .. ':variables' end if msg.to.type == 'user' then return 'user:' .. msg.from.id .. ':v...
fix setmedia
fix setmedia
Lua
agpl-3.0
xsolinsx/AISasha
2521e2e8f5eea7e4351830b316e19b2f24cc2f7f
config/micro/plugins/fzf/fzf.lua
config/micro/plugins/fzf/fzf.lua
VERSION = "1.0.5" function fzf() if TermEmuSupported then local err = RunTermEmulator("fzf", false, true, "fzf.fzfOutput") if err ~= nil then messenger:Error(err) end else local output, err = RunInteractiveShell("fzf", false, true) if err ~= nil then ...
VERSION = "1.0.5" function fzf() if TermEmuSupported then local err = RunTermEmulator("fzf", false, true, "fzf.fzfOutput") if err ~= nil then messenger:Error(err) end else local output, err = RunInteractiveShell("fzf", false, true) if err ~= nil then ...
Fixed issue where aborting fzf would unload the currently loaded file
Fixed issue where aborting fzf would unload the currently loaded file
Lua
mit
scottbilas/dotfiles,scottbilas/dotfiles,scottbilas/dotfiles,scottbilas/dotfiles
64305139aeee8f47e675fa2e310d5a4244751d68
core/sile.lua
core/sile.lua
SILE = {} SILE.version = "0.9.5-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {} SILE.debugFlags = {} SILE.nodeMakers = {} SILE.tokenizers = {} loadstring = loadstring or load -- 5.3 compatibility if not unpack then unpack = table.unpack end -- 5.3 compatib...
SILE = {} SILE.version = "0.9.5-unreleased" SILE.utilities = require("core/utilities") SU = SILE.utilities SILE.inputs = {} SILE.Commands = {} SILE.debugFlags = {} SILE.nodeMakers = {} SILE.tokenizers = {} loadstring = loadstring or load -- 5.3 compatibility if not unpack then unpack = table.unpack end -- 5.3 compatib...
Fix requires path by protecting the one that might fail
Fix requires path by protecting the one that might fail
Lua
mit
simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile
99e0da52b65e7549a660616b111e294c313315e3
frontend/ui/reader/readerdictionary.lua
frontend/ui/reader/readerdictionary.lua
require "ui/device" require "ui/widget/dict" ReaderDictionary = EventListener:new{} function ReaderDictionary:init() JSON = require("JSON") end function ReaderDictionary:onLookupWord(word) self:stardictLookup(word) end function ReaderDictionary:stardictLookup(word) DEBUG("lookup word:", word) if word then -- ...
require "ui/device" require "ui/widget/dict" ReaderDictionary = EventListener:new{} function ReaderDictionary:init() JSON = require("JSON") end function ReaderDictionary:onLookupWord(word) self:stardictLookup(word) end function ReaderDictionary:stardictLookup(word) DEBUG("lookup word:", word) if word then -- ...
check json output before decoding This should fix #332.
check json output before decoding This should fix #332.
Lua
agpl-3.0
apletnev/koreader,robert00s/koreader,poire-z/koreader,koreader/koreader,chrox/koreader,noname007/koreader,pazos/koreader,mihailim/koreader,lgeek/koreader,mwoz123/koreader,frankyifei/koreader,Hzj-jie/koreader,NiLuJe/koreader,ashhher3/koreader,NiLuJe/koreader,houqp/koreader,NickSavage/koreader,ashang/koreader,Markismus/k...
b944e2fb58b130a01ec70dd7314ed540e970f58a
samples/bin2png.lua
samples/bin2png.lua
require 'cutorch' require 'image' d = 70 h = 370 w = 1226 print('Writing left.png') left = torch.FloatTensor(torch.FloatStorage('left.bin')):view(1, d, h, w):cuda() _, left_ = left:min(2) image.save('left.png', left_[1]:float():div(d)) print('Writing right.png') right = torch.FloatTensor(torch.FloatStorage('right.bi...
require 'cutorch' require 'image' d = 70 h = 370 w= 1226 function fromfile(fname) local size = io.open(fname):seek('end') local x = torch.FloatTensor(torch.FloatStorage(fname, false, size / 4)) local nan_mask = x:ne(x) x[nan_mask] = 1e38 return x end print('Writing left.png') left = fromfile('left.bin...
Fix bin2png to work with new torch
Fix bin2png to work with new torch
Lua
bsd-2-clause
jzbontar/mc-cnn,jzbontar/mc-cnn,jzbontar/mc-cnn
d2e2bdca71ce15a7b7cc86304a6c32d6a034aa9d
state/play.lua
state/play.lua
--[[-- PLAY STATE ---- Play the game. --]]-- local st = GameState.new() local math_floor, math_max, math_min = math.floor, math.max, math.min -- Camera local Camera = require 'lib.hump.camera' local vector = require 'lib.hump.vector' -- Time Manager local TimeManager = requ...
--[[-- PLAY STATE ---- Play the game. --]]-- local st = GameState.new() local math_floor, math_max, math_min = math.floor, math.max, math.min -- Camera local Camera = require 'lib.hump.camera' local vector = require 'lib.hump.vector' -- Time Manager local TimeManager = requ...
add keydelay and fix startX and startY
add keydelay and fix startX and startY
Lua
mit
scottcs/wyx
672d29fbcc3ff31b7459ef4486da7f2f42037a24
frontend/device/wakeupmgr.lua
frontend/device/wakeupmgr.lua
--[[-- RTC wakeup interface. Many devices can schedule hardware wakeups with a real time clock alarm. On embedded devices this can typically be easily manipulated by the user through `/sys/class/rtc/rtc0/wakealarm`. Some, like the Kobo Aura H2O, can only schedule wakeups through ioctl. See @{ffi.rtc} for implementati...
--[[-- RTC wakeup interface. Many devices can schedule hardware wakeups with a real time clock alarm. On embedded devices this can typically be easily manipulated by the user through `/sys/class/rtc/rtc0/wakealarm`. Some, like the Kobo Aura H2O, can only schedule wakeups through ioctl. See @{ffi.rtc} for implementati...
[fix] WakeupMgr: pass through task epoch for proximity check
[fix] WakeupMgr: pass through task epoch for proximity check
Lua
agpl-3.0
koreader/koreader,pazos/koreader,Frenzie/koreader,poire-z/koreader,poire-z/koreader,mwoz123/koreader,NiLuJe/koreader,mihailim/koreader,koreader/koreader,NiLuJe/koreader,Hzj-jie/koreader,Frenzie/koreader,Markismus/koreader
f43a9d826b6e979bbfd38d31a6edf6f46160a9c2
bin/toc2breaks.lua
bin/toc2breaks.lua
#!/usr/bin/env lua local project = os.getenv("PROJECT") local basename = arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(doc))() local yaml = require("yaml") local meta = yaml.loadpath(arg[3]) local share =...
#!/usr/bin/env lua local project = os.getenv("PROJECT") local basename = arg[1] .. "/app/" .. arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(doc))() local yaml = require("yaml") local meta = yaml.loadpath(a...
Fix Nextcloud share link in app meta data output
Fix Nextcloud share link in app meta data output
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
c0cafb51b39669f72783eecbebb574f9f23e7668
src/gui/Button.lua
src/gui/Button.lua
-------------------------------------------------------------------------------- -- -- -- -------------------------------------------------------------------------------- local Group = require("core.Group") local Event = require("core.Event") local UIEvent = require("gui.UIEvent") local UIObjectBase = require("gui.UIO...
-------------------------------------------------------------------------------- -- -- -- -------------------------------------------------------------------------------- local Group = require("core.Group") local Event = require("core.Event") local UIEvent = require("gui.UIEvent") local UIObjectBase = require("gui.UIO...
fix button onTouchDown to take into account normal sprite size
fix button onTouchDown to take into account normal sprite size
Lua
mit
Vavius/moai-framework,Vavius/moai-framework
61efd0371ed4d524dd751a569d6f271b60eb9b6f
lua/framework/graphics/model.lua
lua/framework/graphics/model.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- require( "class" ) local assimp = require( "assimp" ) local ffi = require( "ffi" ) local bit = require( "bit" ) local GL = requir...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- require( "class" ) local assimp = require( "assimp" ) local ffi = require( "ffi" ) local bit = require( "bit" ) local GL = requir...
Fix PHYSFSOpenProc error handling
Fix PHYSFSOpenProc error handling
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
57b8ecd44c38bd975a5cdaad5bf9937bc23b9275
toshiba.lua
toshiba.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
toshiba.lua: fix
toshiba.lua: fix
Lua
unlicense
ArchiveTeam/toshiba-grab,ArchiveTeam/toshiba-grab
a72591806e100e65bea6c985dc7d43c9e1da97e3
openLuup/hag.lua
openLuup/hag.lua
#!/usr/bin/env wsapi.cgi --module(..., package.seeall) local ABOUT = { NAME = "upnp.control.hag", VERSION = "2016.06.09", DESCRIPTION = "a handler for redirected port_49451 /upnp/control/hag requests", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2016 AKBooer", DOCUMENTATION = "h...
#!/usr/bin/env wsapi.cgi module(..., package.seeall) local ABOUT = { NAME = "upnp.control.hag", VERSION = "2016.06.09", DESCRIPTION = "a handler for redirected port_49451 /upnp/control/hag requests", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2016 AKBooer", DOCUMENTATION = "htt...
hot-fix-hag-run-entry-point
hot-fix-hag-run-entry-point - undo previous change (incompatible with WSAPI connector)
Lua
apache-2.0
akbooer/openLuup
734e4feede4f2c61209ebd197c51939062a6ca57
main.lua
main.lua
#!/usr/bin/env lua --[[ Main entry to launch test cases. --]] function round(num, idp) local mult = 10^(idp or 3) return math.floor(num * mult + 0.5) / mult end function average(nums) local sum = 0 for i = 1, #nums do sum = sum + nums[i] end return sum / #nums end function runtest(func, times...
#!/usr/bin/env lua --[[ Main entry to launch test cases. --]] function round(num, idp) local mult = 10^(idp or 3) return math.floor(num * mult + 0.5) / mult end function average(nums) local sum = 0 for i = 1, #nums do sum = sum + nums[i] end return sum / #nums end function runtest(func, times...
Fix bug on lua 5.1
Fix bug on lua 5.1
Lua
bsd-2-clause
flily/lua-performance
3cd3b2381ac629ef8eb1c65a888b7ba099c8579b
profile17.lua
profile17.lua
box.cfg{listen = 3301} box.once('init', function() profile_space = box.schema.space.create('profile', {id = 1}) profile_space:create_index('primary', { type = 'hash', parts = {1, 'unsigned'} }) box.schema.user.grant('guest', 'read,write,execute', 'universe') end) log = require('log') local function store_pr...
-- Tuple of profile has always 2 fields. -- Field 1 -- user-id -- Field 2 -- key/value dict. Key is always a number. box.cfg{listen = 3301} box.once('init', function() profile_space = box.schema.space.create('profile', {id = 1}) profile_space:create_index('primary', { type = 'tree', parts = {1, 'unsigned'}, un...
Fixes and new features
Fixes and new features
Lua
bsd-2-clause
BHYCHIK/tntlua
de3b918ae5e9a8a1a8405dd8f9e39ccbea69701e
whisper.lua
whisper.lua
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if not msg:match("epgp standby") then return end local member = msg:match("epgp sta...
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end -- We're going to capitalize the name of the player if it's needed anyway. msg = ms...
Make whisper commands case insensitive.
Make whisper commands case insensitive. This fixes issue 453. Thanks Trond!
Lua
bsd-3-clause
hayword/tfatf_epgp,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf
e35c2b10da1609fc86e065bb5ea136fb1de576ea
util/prosodyctl.lua
util/prosodyctl.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local config = require "core.configmanager"; local encodings = require "util.encodings"; local stringpre...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local config = require "core.configmanager"; local encodings = require "util.encodings"; local stringpre...
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
98c2dacec249a312bae93ca0d14e21bf734a3ddd
scripts/root.lua
scripts/root.lua
include("srv_data\scripts\spawns\cities\JDT01.lua"); include("srv_data\scripts\warps\cities\JDT01.lua"); include("srv_data\scripts\npcs\cities\JDT01.lua"); include("srv_data\scripts\mobs\cities\JDT01.lua"); include("srv_data\scripts\spawns\cities\JPT01.lua"); include("srv_data\scripts\warps\cities\JPT01.lua"); include(...
include("spawns/cities/JDT01.lua"); include("warps/cities/JDT01.lua"); include("npcs/cities/JDT01.lua"); include("mobs/cities/JDT01.lua"); include("spawns/cities/JPT01.lua"); include("warps/cities/JPT01.lua"); include("npcs/cities/JPT01.lua"); include("mobs/cities/JPT01.lua"); include("spawns/fields/JG06.lua"); include...
Fixed paths in root.lua
Fixed paths in root.lua
Lua
apache-2.0
dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new
d6a409c0c6a448134758d443144e36474db3c7be
luapak/luarocks/cfg_extra.lua
luapak/luarocks/cfg_extra.lua
local cfg = require 'luarocks.cfg' local fs = require 'luapak.fs' local site_config = require 'luapak.luarocks.site_config' local utils = require 'luapak.utils' local basename = fs.basename local fmt = string.format local getenv = os.getenv local starts_with = utils.starts_with local MSVC = cfg.is_platform('win32') ...
local cfg = require 'luarocks.cfg' local fs = require 'luapak.fs' local site_config = require 'luapak.luarocks.site_config' local utils = require 'luapak.utils' local basename = fs.basename local fmt = string.format local getenv = os.getenv local starts_with = utils.starts_with local MSVC = cfg.is_platform('win32') ...
Remove mingw32- prefix from gcc/make, MSYS2/MinGW does not use it
Remove mingw32- prefix from gcc/make, MSYS2/MinGW does not use it
Lua
mit
jirutka/luapak,jirutka/luapak
4c6c238792e27297ec9c2626a237d1f76d9df8b2
src/FileManager.lua
src/FileManager.lua
local FileManager = {}; -- ------------------------------------------------ -- Local Variables -- ------------------------------------------------ local extensions = {}; local sortedList = {}; local totalFiles = 0; local colors; -- ------------------------------------------------ -- Local Functions -- --------------...
local FileManager = {}; -- ------------------------------------------------ -- Local Variables -- ------------------------------------------------ local extensions = {}; local sortedList = {}; local totalFiles = 0; local colors; -- ------------------------------------------------ -- Local Functions -- --------------...
Fix faulty creation of new custom colors
Fix faulty creation of new custom colors Custom colors are now also stored in the colors table of the FileManager. We only create a new color table if an extension doesn't have one assigned yet. Fixes #70.
Lua
mit
rm-code/logivi
96a985abd51726e01aeb7f8944d44892dd31b8c0
SparseLinear.lua
SparseLinear.lua
local THNN = require 'nn.THNN' local SparseLinear, parent = torch.class('nn.SparseLinear', 'nn.Module') function SparseLinear:__init(inputSize, outputSize) parent.__init(self) self.weightDecay = 0 self.weight = torch.Tensor(outputSize, inputSize):zero() self.bias = torch.Tensor(outputSize):zero() self....
local THNN = require 'nn.THNN' local SparseLinear, parent = torch.class('nn.SparseLinear', 'nn.Module') function SparseLinear:__init(inputSize, outputSize) parent.__init(self) self.weightDecay = 0 self.weight = torch.Tensor(outputSize, inputSize):zero() self.bias = torch.Tensor(outputSize):zero() self....
sparse linear back-compatibility fix
sparse linear back-compatibility fix
Lua
bsd-3-clause
colesbury/nn,caldweln/nn,jonathantompson/nn,PraveerSINGH/nn,elbamos/nn,nicholas-leonard/nn,jhjin/nn,joeyhng/nn,eriche2016/nn,sagarwaghmare69/nn,apaszke/nn,diz-vara/nn,kmul00/nn,xianjiec/nn
1c854a6bc488bb77b9d9d9afc3e499fd39dd85ab
GameServer/Content/Data/LeagueSandbox-Default/Champions/Ezreal/Q.lua
GameServer/Content/Data/LeagueSandbox-Default/Champions/Ezreal/Q.lua
Vector2 = require 'Vector2' -- include 2d vector lib function finishCasting() local current = Vector2:new(getOwnerX(), getOwnerY()) local to = (Vector2:new(getSpellToX(), getSpellToY()) - current):normalize() local range = to * 1150 local trueCoords = current + range addProjectile("EzrealMysticSh...
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 * 1150 local trueCoords = current + range addProjectile("Ezre...
Now works!
Now works! Now this skill works. But it has a bug: Depending in which direction you shoot it sometimes the shot appears from the "space" or "nothing"
Lua
agpl-3.0
LeagueSandbox/GameServer
98f6f91fcf3fd497478e6e989725e67707f36c3e
src/premake4.lua
src/premake4.lua
if _OPTIONS.os == nil then error('Please specify your target os!') end apps = {'scml'} for k, app in pairs(apps) do solution(app) configurations { "debug", "release" } location "../gen/proj" configuration("windows") targetdir( "../win32/compilers" ) configuration("macosx") targetdir...
if _OPTIONS.os == nil then error('Please specify your target os!') end apps = {'scml'} for k, app in pairs(apps) do solution(app) configurations { "debug", "release" } location "../gen/proj" configuration("windows") targetdir( "../win32/Don't Starve Mod Tools/compilers" ) configuration("ma...
Fixed premake script to point to new output directory.
Fixed premake script to point to new output directory.
Lua
mit
kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools,kleientertainment/ds_mod_tools
fd5357e311989ce1c3849931571e5a26565420d2
base/parser.lua
base/parser.lua
require("base.symbols") require("base.token") require("base.node") require("base.util") if not Flang then Flang = {} end Parser = {} Flang.Parser = Parser Parser.__index = Parser function Parser:new(o) if not o then error("nil constructor!") end o = { lexer = o.lexer } o.current_token = lexer:get(...
require("base.symbols") require("base.token") require("base.node") require("base.util") if not Flang then Flang = {} end Parser = {} Flang.Parser = Parser Parser.__index = Parser function Parser:new(o) if not o then error("nil constructor!") end o = { lexer = o.lexer } o.current_token = lexer:get(...
fixed variables lol
fixed variables lol
Lua
mit
radixdev/flang
9bf809f99a84db896e2a3312711c1d45c212e691
asyncoperations.lua
asyncoperations.lua
local table = table module "irc" local meta = _META function meta:send(fmt, ...) local bytes, err = self.socket:send(fmt:format(...) .. "\r\n") if bytes then return end if err ~= "timeout" and err ~= "wantwrite" then self:invoke("OnDisconnect", err, true) self:shutdown() error(err, errlevel) end end ...
local table = table module "irc" local meta = _META function meta:send(fmt, ...) local bytes, err = self.socket:send(fmt:format(...) .. "\r\n") if bytes then return end if err ~= "timeout" and err ~= "wantwrite" then self:invoke("OnDisconnect", err, true) self:shutdown() error(err, errlevel) end end ...
Fixing regressions in sendChat and sendNotice.
Fixing regressions in sendChat and sendNotice. Fixing: Incorrect handling of newlines in message. Fixing: Cleaning ':' from message.
Lua
mit
JakobOvrum/LuaIRC,wolfy1339/LuaIRC
85c1ed546384ce99d5ebb09f661cafb7421e47ee
Shilke2D/Core/Timer.lua
Shilke2D/Core/Timer.lua
--[[--- Timer class is the equivalent of as3 Timer. Each timer can be scheduled to run multiple times, even infinite. It's possible to register as listener for timer events. A Timer can be started, stopped and paused --]] Timer = class(EventDispatcher,IAnimatable) --[[--- Timer initialization. @param delay the dur...
--[[--- Timer class is the equivalent of as3 Timer. Each timer can be scheduled to run multiple times, even infinite. It's possible to register as listener for timer events. A Timer can be started, stopped and paused --]] Timer = class(EventDispatcher,IAnimatable) --[[--- Timer initialization. @param delay the dur...
Timer fixes and event optimization
Timer fixes and event optimization - fixed wrong timer event definition - remove_from_juggler and timer events are now pooled
Lua
mit
Shrike78/Shilke2D
46b578f2e0545098620e675796bf2066e8b51c48
test/testlib.lua
test/testlib.lua
-- Testlib.lua Library -- Provides a set of master functions for the test framework. -- Requires a valid config.lua to work. -- Requires luaunit to deliver correct test results. -- Some slaves need to return a boolean value for correct test results. -- Available functions: -- - testlib.setRuntime() -- -- Set the run...
-- Testlib.lua Library -- Provides a set of master functions for the test framework. -- Requires a valid config.lua to work. -- Requires luaunit to deliver correct test results. -- Some slaves need to return a boolean value for correct test results. -- Available functions: -- - testlib.setRuntime() -- -- Set the run...
Bugfix
Bugfix
Lua
mit
gallenmu/MoonGen,emmericp/MoonGen,NetronomeMoongen/MoonGen,atheurer/MoonGen,bmichalo/MoonGen,bmichalo/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,duk3luk3/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,bmichalo/MoonGen,duk3luk3/MoonGen,atheurer/MoonGen,gallen...
30dbcb53dc7eca477a512a9b680cc6595754210e
agents/monitoring/tests/net/init.lua
agents/monitoring/tests/net/init.lua
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
fix merge on counterTrigger
fix merge on counterTrigger
Lua
apache-2.0
kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/vir...
5e0c49345a8a0701c84f8d220bbdd3b9d28ba580
mods/boats/init.lua
mods/boats/init.lua
-- -- Helper functions -- local function is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end local function get_sign(i) if i == 0 then return 0 else return i/math.abs(i) end end local function get_velocity(v, yaw, y) local x = -math.sin(yaw)*v local z...
-- -- Helper functions -- local function is_water(pos) local nn = minetest.get_node(pos).name return minetest.get_item_group(nn, "water") ~= 0 end local function get_sign(i) if i == 0 then return 0 else return i/math.abs(i) end end local function get_velocity(v, yaw, y) local x = -math.sin(yaw)*v local z...
Fix boats again
Fix boats again
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
509947c28e742e1c47931a455f9fe4da7bb5a967
plugins/lastfm.lua
plugins/lastfm.lua
if not config.lastfm_api_key then print('Missing config value: lastfm_api_key.') print('lastfm.lua will not be enabled.') return end local command = 'lastfm' local doc = [[``` /np [username] Returns what you are or were last listening to. If you specify a username, info will be returned for that username. /fmset <...
if not config.lastfm_api_key then print('Missing config value: lastfm_api_key.') print('lastfm.lua will not be enabled.') return end local command = 'lastfm' local doc = [[``` /np [username] Returns what you are or were last listening to. If you specify a username, info will be returned for that username. /fmset <...
lastfm bugfix
lastfm bugfix
Lua
agpl-3.0
topkecleon/otouto,Brawl345/Brawlbot-v2,barreeeiroo/BarrePolice,bb010g/otouto,TiagoDanin/SiD
c697df1762d7f374160fb2d789e2f64bd241a986
plugins/fortune.lua
plugins/fortune.lua
-- Requires that the "fortune" program is installed on your computer. local s = io.popen('fortune'):read('*all') if s:match('fortune: command not found') or ('fortune: not found') then print('fortune is not installed on this computer.') print('fortune.lua will not be enabled.') return end local command = 'fortune...
-- Requires that the "fortune" program is installed on your computer. local s = io.popen('fortune'):read('*all') if s:match('not found$') then print('fortune is not installed on this computer.') print('fortune.lua will not be enabled.') return end local command = 'fortune' local doc = '`Returns a UNIX fortune.`' ...
better fix to fortune.lua
better fix to fortune.lua
Lua
agpl-3.0
topkecleon/otouto,TiagoDanin/SiD,Brawl345/Brawlbot-v2,barreeeiroo/BarrePolice,bb010g/otouto
d34301e6d471c1c7e35f9772fac5b8a4187c8e58
net/http/parser.lua
net/http/parser.lua
local tonumber = tonumber; local assert = assert; local url_parse = require "socket.url".parse; local urldecode = require "util.http".urldecode; local function preprocess_path(path) path = urldecode((path:gsub("//+", "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end local level = 0; for component in pa...
local tonumber = tonumber; local assert = assert; local url_parse = require "socket.url".parse; local urldecode = require "util.http".urldecode; local function preprocess_path(path) path = urldecode((path:gsub("//+", "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end local level = 0; for component in pa...
net.http.parser: Fix off-by-one error in chunked encoding parser
net.http.parser: Fix off-by-one error in chunked encoding parser
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
702a42a1acbce5f014d5cec0e20b994a7bd5d3f4
util/stanza.lua
util/stanza.lua
local t_insert = table.insert; local t_remove = table.remove; local s_format = string.format; local tostring = tostring; local setmetatable = setmetatable; local pairs = pairs; local ipairs = ipairs; local type = type; local next = ...
local t_insert = table.insert; local t_remove = table.remove; local s_format = string.format; local tostring = tostring; local setmetatable = setmetatable; local pairs = pairs; local ipairs = ipairs; local type = type; local next = ...
Fixed stanza deserialization
Fixed stanza deserialization
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
957a45add382519442ce6171109c92d94978021b
src/lib/yang/stream.lua
src/lib/yang/stream.lua
module(..., package.seeall) local ffi = require("ffi") local S = require("syscall") local lib = require("core.lib") local function round_up(x, y) return y*math.ceil(x/y) end function open_output_byte_stream(filename) local fd, err = S.open(filename, "creat, wronly, trunc", "rusr, wusr, rgrp, roth") if no...
module(..., package.seeall) local ffi = require("ffi") local S = require("syscall") local lib = require("core.lib") local function round_up(x, y) return y*math.ceil(x/y) end function open_output_byte_stream(filename) local fd, err = S.open(filename, "creat, wronly, trunc", "rusr, wusr, rgrp, roth") if no...
Fix yang source parser bug for file streams
Fix yang source parser bug for file streams
Lua
apache-2.0
Igalia/snabbswitch,SnabbCo/snabbswitch,dpino/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,dpino/snabbswitch,SnabbCo/snabbswitch,snabbco/snabb,Igalia/snabb,heryii/snabb,snabbco/snabb,dpino/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,eugeneia/snabb,eugeneia/snabbswitch,SnabbCo/snabbswitch,heryii/snabb,alexan...
73b06a777daf394da901133d7695258cdb4c2973
[resources]/GTWcore/misc/s_data.lua
[resources]/GTWcore/misc/s_data.lua
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
[Patch] Fixed random switching to RPG
[Patch] Fixed random switching to RPG Weapon slots wasn't reset properly after saving weapons, the code pretty much explains itself.
Lua
bsd-2-clause
404rq/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG
99600c057b98a53e079639aa89215a4921aced36
MMOCoreORB/bin/scripts/mobile/creatures.lua
MMOCoreORB/bin/scripts/mobile/creatures.lua
Creature = { objectName = "", socialGroup = "", pvpFaction = "", faction = "", level = 0, chanceHit = 0.000000, damageMin = 0, damageMax = 0, range = 0, baseXp = 0, baseHAM = 0, armor = 0, resists = {0,0,0,0,0,0,0,0,0}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", bone...
Creature = { objectName = "", socialGroup = "", pvpFaction = "", faction = "", level = 0, chanceHit = 0.000000, damageMin = 0, damageMax = 0, range = 0, baseXp = 0, baseHAM = 0, armor = 0, resists = {0,0,0,0,0,0,0,0,0}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", bone...
[fixed] deepcopy of attacks
[fixed] deepcopy of attacks git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4982 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
635299359c5ed0e78f397d113477a4fab0707827
lib/px/utils/pxtimer.lua
lib/px/utils/pxtimer.lua
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin ---------------------------------------------- local M = {} function M.application(px_configutraion_table) local config_builder = require("px.utils.config_builder"); local px_config = config_builder.load(px_configutr...
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin ---------------------------------------------- local M = {} function M.application(px_configutraion_table) local config_builder = require("px.utils.config_builder"); local px_config = config_builder.load(px_configutraion_t...
fixed line indents pxtimer.lua
fixed line indents pxtimer.lua
Lua
mit
PerimeterX/perimeterx-nginx-plugin