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
60a49d6486090eb1972efa89cf7e171e87fc7c49
blocks.lua
blocks.lua
local M = {} local io=require"io" local table=require"table" local crypto=require"crypto" local lfs=require"lfs" local dir=require"pl.dir" local plpath=require"pl.path" local class=require"pl.class" M.BLOCKSIZE=8192 function M.bintohex(s) return (s:gsub('(.)', function(c) return string.format('%02x', string...
local M = {} local io=require"io" local table=require"table" local crypto=require"crypto" local lfs=require"lfs" local dir=require"pl.dir" local plpath=require"pl.path" local class=require"pl.class" M.BLOCKSIZE=8192 function M.bintohex(s) return (s:gsub('(.)', function(c) return string.format('%02x', string...
Fixed bugs in directory indexing. Using real penlight objects.
Fixed bugs in directory indexing. Using real penlight objects.
Lua
mit
cmars/replican-sync,daququ/replican-sync
675410bf611e6cd5472cb953a2984d127baf01f5
ffi/rtc.lua
ffi/rtc.lua
--[[-- Module for interfacing with the RTC (real time clock). This module provides the ability to schedule wakeups through RTC. See <http://man7.org/linux/man-pages/man4/rtc.4.html> for technical details. @module ffi.rtc ]] local ffi = require("ffi") local bor = bit.bor local C = ffi.C -- Load header definitions f...
--[[-- Module for interfacing with the RTC (real time clock). This module provides the ability to schedule wakeups through RTC. See <http://man7.org/linux/man-pages/man4/rtc.4.html> for technical details. @module ffi.rtc ]] local ffi = require("ffi") local bor = bit.bor local C = ffi.C -- Load header definitions f...
[fix] RTC: Compare time values in the right timezone (#977)
[fix] RTC: Compare time values in the right timezone (#977) Fixes <https://github.com/koreader/koreader/issues/5376>.
Lua
agpl-3.0
Frenzie/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,koreader/koreader-base,Frenzie/koreader-base
e1728fada330ce65d565aa80ed51cccfcc0fe6cd
openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua
openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua
module("luci.controller.linkmeter.lm", package.seeall) function index() local root = node() root.target = call("rootredirect") local page = node("lm") page.target = template("linkmeter/index") page.order = 10 page.sysauth = { "anon", "root" } page.sysauth_authenticator = require "luci.controller.linkme...
module("luci.controller.linkmeter.lm", package.seeall) function index() local root = node() root.target = call("rootredirect") local page = node("lm") page.target = template("linkmeter/index") page.order = 10 page.sysauth = { "anon", "root" } page.sysauth_authenticator = require "luci.controller.linkme...
[lm] Allow rawset to be prefixed with /set? because I know someone's gonna try that
[lm] Allow rawset to be prefixed with /set? because I know someone's gonna try that
Lua
mit
CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBr...
eb9a0d9965f961539b644562ebbd5053e4264d7b
testserver/item/id_321_depot.lua
testserver/item/id_321_depot.lua
-- Depots -- UPDATE common SET com_script='item.id_321_depot' WHERE com_itemid=321; module("item.id_321_depot", package.seeall) function LookAtItem(User,Item) local lang = User:getPlayerLanguage(); local LookAtStr = world:getItemName(321,lang).." ("; --NewIllarion if (Item.data==101) then L...
-- Depots -- UPDATE common SET com_script='item.id_321_depot' WHERE com_itemid=321; require("base.common") require("base.lookat") module("item.id_321_depot", package.seeall) function LookAtItem(User, Item) local lookAt = base.lookat.GenerateLookAt(User, Item) local depotId = tonumber(Item.getData("depot")) ...
Fix depot lookat
Fix depot lookat
Lua
agpl-3.0
vilarion/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content
c9fa92101add6fadf3e62042da9dd21594cbbd65
kong/dao/schemas/upstreams.lua
kong/dao/schemas/upstreams.lua
local Errors = require "kong.dao.errors" local utils = require "kong.tools.utils" local match = string.match local sub = string.sub local DEFAULT_SLOTS = 100 local SLOTS_MIN, SLOTS_MAX = 10, 2^16 local SLOTS_MSG = "number of slots must be between " .. SLOTS_MIN .. " and " .. SLOTS_MAX local function check_nonnegativ...
local Errors = require "kong.dao.errors" local utils = require "kong.tools.utils" local match = string.match local sub = string.sub local DEFAULT_SLOTS = 100 local SLOTS_MIN, SLOTS_MAX = 10, 2^16 local SLOTS_MSG = "number of slots must be between " .. SLOTS_MIN .. " and " .. SLOTS_MAX local function check_nonnegativ...
hotfix(healthchecks) disable circuit-breaker functionality by default
hotfix(healthchecks) disable circuit-breaker functionality by default To avoid unexpected behaviors for users, this makes all health counter thresholds to be zero by default, effectively making the circuit-breaker functionality of passive healthchecks to be disabled by default. Users need to opt-in by supplying thresh...
Lua
apache-2.0
jebenexer/kong,Kong/kong,Kong/kong,Mashape/kong,Kong/kong
f6857db44b262013a119918632a281000c8cf34a
src_trunk/resources/lves-system/s_lves_system.lua
src_trunk/resources/lves-system/s_lves_system.lua
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
text fix
text fix git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1297 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
b0e365f9c5557e5f4d3a627e29d988131b25931a
orange/plugins/dynamic_upstream/handler.lua
orange/plugins/dynamic_upstream/handler.lua
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
fix&refactor: modify the orange/plugins code copied from rewrite plugiins to achieve the dynamic upstream feature
fix&refactor: modify the orange/plugins code copied from rewrite plugiins to achieve the dynamic upstream feature
Lua
mit
sumory/orange,sumory/orange,sumory/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange,thisverygoodhhhh/orange
bcd513525963391fbafa73bfe66099ed9e47eafe
applications/luci-wol/luasrc/model/cbi/wol.lua
applications/luci-wol/luasrc/model/cbi/wol.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: olsrd.lua...
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local sy...
applications/luci-wol: fix copyright
applications/luci-wol: fix copyright git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6092 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
eugenesan/openwrt-luci,projectbismark/luci-bismark,ch3n2k/luci,ThingMesh/openwrt-luci,eugenesan/openwrt-luci,Canaan-Creative/luci,Flexibity/luci,ch3n2k/luci,Flexibity/luci,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,projectbismark/luci-bismark,vhpham80/luci,jschmidlapp/luci,freifunk-gluon/luci,projectbismark/luc...
222415b12ecd545ed8adfb86afc16a6e21c36f6a
src/ui/Timeline.lua
src/ui/Timeline.lua
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
Fix issue with timeline label being drawn multiple times each frame
Fix issue with timeline label being drawn multiple times each frame The code for drawing was accidentally placed in the for loop which draws the single time line steps, therefore causing it to be drawn multiple times.
Lua
mit
rm-code/logivi
2c6140ba58ab3cddba59a3640bc5539869fdb246
mod_register_web/mod_register_web.lua
mod_register_web/mod_register_web.lua
local captcha_options = module:get_option("captcha_options", {}); local nodeprep = require "util.encodings".stringprep.nodeprep; local usermanager = require "core.usermanager"; local http = require "util.http"; function template(data) -- Like util.template, but deals with plain text return { apply = function(values)...
local captcha_options = module:get_option("captcha_options", {}); local nodeprep = require "util.encodings".stringprep.nodeprep; local usermanager = require "core.usermanager"; local http = require "util.http"; function template(data) -- Like util.template, but deals with plain text return { apply = function(values)...
mod_register_web: Indentation fix
mod_register_web: Indentation fix
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
9bbf0621e01c33661c13fb99d7f634f51e56637d
src/System.lua
src/System.lua
local P = {} local Log = require 'Log' function P.quote(...) local function quote(arg) return string.format('%q', tostring(arg)) end return table.concat(table.imap({...}, quote), ' ') end function P.expand(...) return P.pread('*a', 'printf "%s" '..P.quote(...), '%s') end function P.mkpath(.....
local P = {} local Log = require 'Log' function P.quote(...) local function quote(arg) return string.format('%q', tostring(arg)) end return table.concat(table.imap({...}, quote), ' ') end function P.expand(...) return P.pread('*a', 'printf "%s" '..P.quote(...), '%s') end function P.mkpath(.....
Fix for os.execute return value change in Lua 5.2
Fix for os.execute return value change in Lua 5.2
Lua
mit
bazurbat/jagen
3ab3815449b9da26e5fc1e3758fe2b95de364fd9
scripts/shaderc.lua
scripts/shaderc.lua
-- -- Copyright 2010-2017 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" local GLSLANG = path.join(BGFX_DIR, "3rdparty/glslang") configuration { "vs2012" } defines { "atoll=_atoi64", "strtoll=_strtoi64", "...
-- -- Copyright 2010-2017 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" local GLSLANG = path.join(BGFX_DIR, "3rdparty/glslang") configuration { "vs2012" } defines { "atoll=_atoi64", "strtoll=_strtoi64", "...
FIxed VS build.
FIxed VS build.
Lua
bsd-2-clause
emoon/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,MikePopoloski/bgfx,fluffyfreak/bgfx,Synxis/bgfx,bkaradzic/bgfx,Synxis/bgfx,fluffyfreak/bgfx,attilaz/bgfx,jpcy/bgfx,Synxis/bgfx,jdryg/bgfx,bkaradzic/bgfx,jpcy/bgfx,fluffyfreak/bgfx,emoon/bgfx,mendsley/bgfx,fluffyfreak/bgfx,septag/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,attilaz/bgfx,septag...
cf9b9faa433f230a63cf9a8c1a56cbd256b1c5dd
core/packagemanager.lua
core/packagemanager.lua
local lfs = require("lfs") local catalogueURL = "https://raw.githubusercontent.com/sile-typesetter/sile-packages/master/packages.lua" local packageHome = tostring(SYSTEM_SILE_PATH) .. "/packagemanager/" local catalogueHome = packageHome .. "catalogue.lua" local installedCatalogue = packageHome .. "installed.lua" loca...
local lfs = require("lfs") local catalogueURL = "https://raw.githubusercontent.com/sile-typesetter/sile-packages/master/packages.lua" local packageHome = tostring(SYSTEM_SILE_PATH) .. "/packagemanager/" local catalogueHome = packageHome .. "catalogue.lua" local installedCatalogue = packageHome .. "installed.lua" loca...
fix(packages): Stop legacy package manager from adding empty paths
fix(packages): Stop legacy package manager from adding empty paths
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
c231e6bc25b1ccb55adb105fc5487ef35f0eea0c
examples/Lua-cURL/browser.lua
examples/Lua-cURL/browser.lua
----------------------------------------------------------------------------- -- A Browser Class for easy Web Automation with Lua-cURL -- Author: Kai Uwe Jesussek -- RCS ID: $Id: browser.lua,v 0.1 2011/03/11 23:55:20 kai Exp $ ----------------------------------------------------------------------------- local cURL =...
----------------------------------------------------------------------------- -- A Browser Class for easy Web Automation with Lua-cURL -- Author: Kai Uwe Jesussek -- RCS ID: $Id: browser.lua,v 0.1 2011/03/11 23:55:20 kai Exp $ ----------------------------------------------------------------------------- local cURL =...
Fix. Lua-cURL/browser.lua example compatibility with `lcurl.cURL`
Fix. Lua-cURL/browser.lua example compatibility with `lcurl.cURL`
Lua
mit
Lua-cURL/Lua-cURLv3,moteus/lua-lcurl,Lua-cURL/Lua-cURLv3,Lua-cURL/Lua-cURLv3,moteus/lua-lcurl
04621b505622a0690330e393b69ffd5626c46f54
src/lua-factory/sources/grl-radiofrance.lua
src/lua-factory/sources/grl-radiofrance.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
radiofrance: Fix "France Info" URL
radiofrance: Fix "France Info" URL Another special case...
Lua
lgpl-2.1
MathieuDuponchelle/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,GNOME/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,gr...
27f73b38a4ceccbd30001ad9f6e2bf77ae3fcb7e
config/nvim/lua/plugins/nvimtree.lua
config/nvim/lua/plugins/nvimtree.lua
local nnoremap = require("utils").nnoremap local view = require("nvim-tree.view") _G.NvimTreeConfig = {} vim.g.nvim_tree_follow = 1 vim.g.nvim_tree_icons = { default = "", symlink = "", git = { unstaged = "●", staged = "✓", unmerged = "", renamed = "➜", untracked = "★", deleted = ""...
local nvimtree = require("nvim-tree") local nnoremap = require("utils").nnoremap local view = require("nvim-tree.view") _G.NvimTreeConfig = {} vim.g.nvim_tree_icons = { default = "", symlink = "", git = { unstaged = "●", staged = "✓", unmerged = "", renamed = "➜", untracked = "★", del...
fix(vim): fix nvim-tree config issues
fix(vim): fix nvim-tree config issues
Lua
mit
nicknisi/dotfiles,nicknisi/dotfiles,nicknisi/dotfiles
a99508fe9857d9f5c096973d9ca0c2c545eed606
core/inputs-texlike.lua
core/inputs-texlike.lua
SILE.inputs.TeXlike = {} local epnf = require( "epnf" ) local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 ) SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1 SILE.inputs.TeXlike.parser = function (_ENV) local _ = WS^0 local sep = lpeg.S(",;") * _ loca...
SILE.inputs.TeXlike = {} local epnf = require( "epnf" ) local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 ) SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1 SILE.inputs.TeXlike.parser = function (_ENV) local _ = WS^0 local sep = lpeg.S(",;") * _ loca...
This seems to allow comments before the \begin{document}, fixes #99
This seems to allow comments before the \begin{document}, fixes #99
Lua
mit
alerque/sile,alerque/sile,simoncozens/sile,WAKAMAZU/sile_fe,neofob/sile,anthrotype/sile,anthrotype/sile,WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,alerque/sile,neofob/sile,alerque/sile,WAKAMAZU/sile_fe,anthrotype/sile,simoncozens/sile,anthrotype/sile,simoncozens/sile,neofob/sile,neofob/sile
d6b008dbcdc925d4bce0d2629304e92ef8771a09
sveta.lua
sveta.lua
-- sveta.lua -- -- -- space[4].enabled = 1 -- space[4].index[0].type = "HASH" -- space[4].index[0].unique = 1 -- space[4].index[0].key_field[0].fieldno = 0 -- space[4].index[0].key_field[0].type = "NUM" -- space[4].index[0].key_field[1].fieldno = 1 -- space[4].index[0].key_field[1].type = "STR" -- space[4].index[1].typ...
-- sveta.lua -- implements aggregation of abstract data by update date and number of updates -- grouping by id and data -- allows desc sorting by date or by (2_week_count + total_count), -- where 2_week_count is number of updates for last two weeks, -- this updates automatically by fiber every 24 hours -- -- -- space[4...
sveta.lua: fix + small optimization
sveta.lua: fix + small optimization
Lua
bsd-2-clause
BHYCHIK/tntlua,spectrec/tntlua,grechkin-pogrebnyakov/tntlua,mailru/tntlua
71eb855b21394219b8ccfcf292b3c9cf3bcd9636
src/extensions/cp/battery.lua
src/extensions/cp/battery.lua
--- === cp.battery === --- --- Provides access to various properties of the battery. Each of these properties --- is a `cp.prop`, so it can be watched for changes. For example: --- --- ```lua --- local battery = require("cp.battery") --- battery.powerSupply:watch(function(value) --- print("Now using "..value) --- e...
--- === cp.battery === --- --- Provides access to various properties of the battery. Each of these properties --- is a `cp.prop`, so it can be watched for changes. For example: --- --- ```lua --- local battery = require("cp.battery") --- battery.powerSupply:watch(function(value) --- print("Now using "..value) --- e...
Fixed a bug that was breaking Disk Auto-mount Plugin
Fixed a bug that was breaking Disk Auto-mount Plugin - Hammerspoon recently changed `hs.battery` so its more strict in terms of valid arguments - so if you pass in arguments to a function that's expecting none, you'll now get a Lua error. `cp.prop` was passing in two arguments, which was breaking `cp.battery`. This fi...
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost
38fd48cbe6ca13b6dea9c1cc374a0875d5058ae0
UCDchecking/checking.lua
UCDchecking/checking.lua
local actions = { ["Chat"] = { {"s", "NoMuted"}, }, ["RobHouse"] = { {"a", "RobHouse", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["EnterHouse"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["Jetpack"] = { {"a", "AFK"}, ...
local actions = { ["Chat"] = { {"s", "NoMuted"}, }, ["RobHouse"] = { {"a", "RobHouse", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["EnterHouse"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["Jetpack"] = { {"a", "AFK"}, ...
UCDchecking
UCDchecking - Added custody check - Added jailed check - Fixed the wanted level check
Lua
mit
nokizorque/ucd,nokizorque/ucd
9d4ee7e9e1cd76cb7cc14beef2b1c792db36ce90
libs/sys/luasrc/sys/mtdow.lua
libs/sys/luasrc/sys/mtdow.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
More mtdow fixes
More mtdow fixes
Lua
apache-2.0
deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci
bc1fc28e5ca0354b17612d6d3d8fdf63f434ab3e
core/harfbuzz-shaper.lua
core/harfbuzz-shaper.lua
if not SILE.shapers then SILE.shapers = { } end local hb = require("justenoughharfbuzz") local bit32 = require("bit32-compat") SILE.settings.declare({ name = "harfbuzz.subshapers", type = "string or nil", default = "", help = "Comma-separated shaper list to pass to Harfbuzz" }) SILE.require("core/base-shaper"...
if not SILE.shapers then SILE.shapers = { } end local hb = require("justenoughharfbuzz") local bit32 = require("bit32-compat") SILE.settings.declare({ name = "harfbuzz.subshapers", type = "string or nil", default = "", help = "Comma-separated shaper list to pass to Harfbuzz" }) SILE.require("core/base-shaper"...
improvement(shaper): Add warning where vertical metrics may differ
improvement(shaper): Add warning where vertical metrics may differ See #639 - if we fall back to Freetype to process CFF fonts, we may get subtly different metrics. We just warn the user and tell them how to fix it, because it's not usually a big deal (unless you're running tests).
Lua
mit
alerque/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile
bd6b5b50062264d79cad67626896f4d8c899f28f
mods/fishing/crafting.lua
mods/fishing/crafting.lua
----------------------------------------------------------------------------------------------- -- Fishing - Mossmanikin's version - Recipes 0.0.8 ----------------------------------------------------------------------------------------------- -- License (code & textures): WTFPL -- Contains code from: animal_clownfis...
----------------------------------------------------------------------------------------------- -- Fishing - Mossmanikin's version - Recipes 0.0.8 ----------------------------------------------------------------------------------------------- -- License (code & textures): WTFPL -- Contains code from: animal_clownfis...
Fix perfect fishing pole recipe
Fix perfect fishing pole recipe
Lua
unlicense
MinetestForFun/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-serve...
b984513ca7aea8f0e83337a5807dfc953058b5ff
xmake/rules/utils/inherit_links/inherit_links.lua
xmake/rules/utils/inherit_links/inherit_links.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 inherit links for static target
fix inherit links for static target
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
5a9629f72966b300be2f4dad1b5042e7b7c572f4
test/test_rotate.lua
test/test_rotate.lua
require 'image' torch.setdefaulttensortype('torch.FloatTensor') torch.setnumthreads(16) local function test_rotate(src, mode) torch.manualSeed(11) local mean_dist = 0.0 for i = 1, 10 do local theta = torch.uniform(0, 2 * math.pi) local d1, d2, d3, d4 -- rotate if mode then d1...
require 'image' torch.setdefaulttensortype('torch.FloatTensor') torch.setnumthreads(16) local function test_rotate(src, mode) torch.manualSeed(11) local mean_dist = 0.0 for i = 1, 10 do local theta = torch.uniform(0, 2 * math.pi) local d1, d2, d3, d4 -- rotate if mode then ...
Indentation fixes
Indentation fixes
Lua
bsd-3-clause
torch/image,Moodstocks/image
fd614e60aaf27f467972c16734e5203bd78e36e4
src/framework/basic.lua
src/framework/basic.lua
--[[ Description: Internal objects extensions Author: M.Wan Date: 04/26/2014 ]] -- mark as deprecated function Deprecate(className) assert(false, "Deprecated class: " .. className) end -- return type string of the instance function GetType(instance) if type(instance) == "table" then if instance.__className == ...
--[[ Description: Internal objects extensions Author: M.Wan Date: 04/26/2014 ]] -- mark as deprecated function Deprecate(className) assert(false, "Deprecated class: " .. className) end -- return type string of the instance function GetType(instance) if type(instance) == "table" then if instance.__className == ...
bug fixing
bug fixing
Lua
apache-2.0
wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua
56a0c48580f231aa73b0a4a577fe048afcbcafac
Server/Plugins/APIDump/Hooks/OnBlockSpread.lua
Server/Plugins/APIDump/Hooks/OnBlockSpread.lua
return { HOOK_BLOCK_SPREAD = { CalledWhen = "Called when a block spreads based on world conditions", DefaultFnName = "OnBlockSpread", -- also used as pagename Desc = [[ This hook is called when a block spreads.</p> <p> The spread carries with it the type of its source - whether it's a block spreads. ...
return { HOOK_BLOCK_SPREAD = { CalledWhen = "Called when a block spreads based on world conditions", DefaultFnName = "OnBlockSpread", -- also used as pagename Desc = [[ This hook is called when a block spreads.</p> <p> The spread carries with it the type of its source - whether it's a block spreads. ...
Added additional examples to the documentation for HOOK_BLOCK_SPREAD. (#3277)
Added additional examples to the documentation for HOOK_BLOCK_SPREAD. (#3277) Fixes issue #3274
Lua
apache-2.0
mc-server/MCServer,mc-server/MCServer,nounoursheureux/MCServer,nounoursheureux/MCServer,Frownigami1/cuberite,Altenius/cuberite,kevinr/cuberite,johnsoch/cuberite,nounoursheureux/MCServer,nounoursheureux/MCServer,Altenius/cuberite,kevinr/cuberite,Frownigami1/cuberite,Frownigami1/cuberite,kevinr/cuberite,kevinr/cuberite,m...
ec95b893d61cf481bb7214342a245085b21c0947
extension/client/proxy.lua
extension/client/proxy.lua
local serverFactory = require 'serverFactory' local debuggerFactory = require 'debugerFactory' local fs = require 'bee.filesystem' local inject = require 'inject' local server local client local seq = 0 local initReq local m = {} local function getVersion(dir) local json = require 'json' local package = json.d...
local serverFactory = require 'serverFactory' local debuggerFactory = require 'debugerFactory' local fs = require 'bee.filesystem' local inject = require 'inject' local server local client local seq = 0 local initReq local m = {} local function getVersion(dir) local json = require 'json' local package = json.d...
Fixes #44
Fixes #44
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
d4eca1df6fd8111dae69289c6fa11d195da2f70b
lua/autorun/client/sbep_dupe_fix.lua
lua/autorun/client/sbep_dupe_fix.lua
SBEP = SBEP or {} --fill table from file --not run on execution as you don't always need to fix dupes --is a console command in case you made changes and want to try it real-time function SBEP_LoadReplaceTable() print("Loading Filename Changes") local repTab = {} local tableString = file.Read("SBEP/Smallb...
SBEP = SBEP or {} --fill table from file --not run on execution as you don't always need to fix dupes --is a console command in case you made changes and want to try it real-time function SBEP_LoadReplaceTable() print("Loading Filename Changes") local repTab = {} local tableString = file.Read("Smallbridge...
Fixed the adv.dupe model fixer
Fixed the adv.dupe model fixer
Lua
apache-2.0
SnakeSVx/sbep
5349fca7a5f7f60846ee7bd33f2866d78a719df9
quiz/hello.lua
quiz/hello.lua
local math = require("math") math.randomseed(os.time()) local f = function(...) local t = string.format(...) return t:gsub(' *>>>', '>>>') end local hello = {} local _ = function(text, req) if req then return req:_(text) else return text end end local task = function(req) re...
local math = require("math") math.randomseed(os.time()) local f = function(...) local t = string.format(...) return t:gsub(' *>>>', '>>>') end local hello = {} local _ = function(text, req) if req then return req:_(text) else return text end end local task = function(req) re...
fix function shortrand() (quiz hello)
fix function shortrand() (quiz hello)
Lua
mit
starius/kodomoquiz
0e30fb16f829b85c28c5254e2af312742670ae9b
SVUI_!Core/system/_reports/artifact.lua
SVUI_!Core/system/_reports/artifact.lua
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS #################################################...
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## ########################################################## LOCALIZED LUA FUNCTIONS #################################################...
#121 - Fixed large numbers.
#121 - Fixed large numbers.
Lua
mit
finalsliver/supervillain-ui,FailcoderAddons/supervillain-ui
5e3135d458d1a884fd55598280c75af868d9fe8e
vanilla/v/router.lua
vanilla/v/router.lua
-- perf local error = error local tconcat = table.concat local function tappend(t, v) t[#t+1] = v end local simple_route = require 'vanilla.v.routes.simple' -- init Router and set routes local Router = {} function Router:new(request) local instance = { routes = {simple_route:new(request)} } setmetatable(inst...
-- perf local error = error local tconcat = table.concat local function tappend(t, v) t[#t+1] = v end local simple_route = require 'vanilla.v.routes.simple' -- init Router and set routes local Router = {} function Router:new(request) local instance = { routes = {simple_route:new(request)} } setmetatable(inst...
fix a route bug when restful router return a nil value
fix a route bug when restful router return a nil value
Lua
mit
idevz/vanilla,idevz/vanilla
19021504983bc64b5e56fe35d3b280b95bb50fac
net/xmppcomponent_listener.lua
net/xmppcomponent_listener.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local hosts = _G.hosts; local t_concat = table.concat; local lxp = require "lxp"; local logger = requi...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local hosts = _G.hosts; local t_concat = table.concat; local lxp = require "lxp"; local logger = requi...
net.xmppcomponent_listener: Fix to correctly handle stream errors from components
net.xmppcomponent_listener: Fix to correctly handle stream errors from components
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
f47cfbd8695e62f082c94c5c1c758a0472abfd0c
libremap-agent/luasrc/libremap/plugins/olsr.lua
libremap-agent/luasrc/libremap/plugins/olsr.lua
--[[ Copyright 2013 Patrick Grimm <patrick@lunatiki.de> Copyright 2013-2014 André Gaul <gaul@web-yard.de> 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...
--[[ Copyright 2013 Patrick Grimm <patrick@lunatiki.de> Copyright 2013-2014 André Gaul <gaul@web-yard.de> 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...
fix jsoninfo in olsr plugin
fix jsoninfo in olsr plugin
Lua
apache-2.0
libremap/libremap-agent-openwrt,rogerpueyo/libremap-agent-openwrt,libre-mesh/libremap-agent
1de1820baaa69dd0fa34cf743518ca6d5c96da99
examples/modularize.lua
examples/modularize.lua
#! /usr/bin/env lua -- -- nanovg-demo.lua -- Copyright (C) 2015 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the MIT license. -- local eol = require("eol") local eol_load = eol.load local eol_type = eol.type local _setmetatable = setmetatable local _rawget = rawget local ...
#! /usr/bin/env lua -- -- modularize.lua -- Copyright (C) 2015 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the MIT license. -- local eol = require("eol") local eol_load = eol.load local eol_type = eol.type local _setmetatable = setmetatable local _rawget = rawget local _...
examples: Fix header of modularize.lua script
examples: Fix header of modularize.lua script The script still included the old header, from when the code was extracted out of nanovg-demo.lua; this patch fixes that.
Lua
mit
aperezdc/eris,aperezdc/lua-eol,aperezdc/lua-eol,aperezdc/eris
2bac44f26a9b6edb1662dc97f0d555fba79bca93
gfx.lua
gfx.lua
local ffi = require 'ffi' local uuid = require 'uuid' local base64 = require 'base64' require 'pl.text'.format_operator() require 'image' local itorch = require 'itorch._env' require 'itorch.bokeh' local util = require 'itorch.util' -- Example: require 'image';itorch.image(image.scale(image.lena(),16,16)) function ito...
local ffi = require 'ffi' local uuid = require 'uuid' local base64 = require 'base64' require 'pl.text'.format_operator() require 'image' local itorch = require 'itorch._env' require 'itorch.bokeh' local util = require 'itorch.util' -- Example: require 'image';itorch.image(image.scale(image.lena(),16,16)) function ito...
Fix JS escaping in itorch.html()
Fix JS escaping in itorch.html() We need to escape backslash first. Otherwise, other special chars are handled incorrectly – backslash that is a result of escaping is escaped as well and that's not what we want.
Lua
bsd-3-clause
facebook/iTorch,facebook/iTorch
3484d7d8458276c5bb5fd63de0b7aa733acff43c
xmake/modules/package/tools/cmake.lua
xmake/modules/package/tools/cmake.lua
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
fix get configs for cmake
fix get configs for cmake
Lua
apache-2.0
waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
de253ecbd45a583021d25fb87fb88a96ba1d04c1
core/portmanager.lua
core/portmanager.lua
local config = require "core.configmanager"; local certmanager = require "core.certmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local table = table; local setmetatable, rawset, rawget...
local config = require "core.configmanager"; local certmanager = require "core.certmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local table = table; local setmetatable, rawset, rawget...
portmanager: Show a friendly error message when initializing SSL fails (thanks MattJ for the entire patch that I fixed one line in)
portmanager: Show a friendly error message when initializing SSL fails (thanks MattJ for the entire patch that I fixed one line in)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
70dfaab45895ebb5db74522a44b1e375d0f7065f
share/lua/website/theonion.lua
share/lua/website/theonion.lua
-- libquvi-scripts -- Copyright (C) 2010-2012 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundatio...
-- libquvi-scripts -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free So...
FIX: theonion.lua
FIX: theonion.lua
Lua
lgpl-2.1
DangerCove/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts
8f66de12c190952e23e6d7c41a52b2868c203beb
modules/luci-base/luasrc/http.lua
modules/luci-base/luasrc/http.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local ltn12 = require "luci.ltn12" local protocol = require "luci.http.protocol" local util = require "luci.util" local string = require "string" local coroutine = require "coroutine" local table = require "tab...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local ltn12 = require "luci.ltn12" local protocol = require "luci.http.protocol" local util = require "luci.util" local string = require "string" local coroutine = require "coroutine" local table = require "tab...
luci-base: refactor luci.http
luci-base: refactor luci.http - Rewrite getcookie() to use liblucihttp header value parsing - Rewrite setfilehandler() to use local variables and have cleaner code - Fix build_querystring() to actually *en*code the given params Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
Lua
apache-2.0
kuoruan/lede-luci,nmav/luci,rogerpueyo/luci,openwrt/luci,Noltari/luci,openwrt/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,hnyman/luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,remakeelectric/luci,nmav/luci,981213/luci-1,wongsyrone/luci-1,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,hnyman/luci,Noltari/luci,wong...
3e0dcbda6c0913c0e8915f7b296175db25a54414
nyagos.d/brace.lua
nyagos.d/brace.lua
share.org_brace_filter = nyagos.filter nyagos.filter = function(cmdline) if share.org_brace_filter then local cmdline_ = share.org_brace_filter(cmdline) if cmdline_ then cmdline = cmdline_ end end local save={} cmdline = cmdline:gsub("((['\"])[^%2]*%2)", func...
share.org_brace_filter = nyagos.filter nyagos.filter = function(cmdline) if share.org_brace_filter then local cmdline_ = share.org_brace_filter(cmdline) if cmdline_ then cmdline = cmdline_ end end local save={} cmdline = cmdline:gsub('"[^"]*"', function(s) ...
Fix: brace expansion "{a,b,c}" worked even in quotated strings
Fix: brace expansion "{a,b,c}" worked even in quotated strings
Lua
bsd-3-clause
tyochiai/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos,nocd5/nyagos
0c4c013e63da9965d97eee07125e9087b20da070
util/timer.lua
util/timer.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local event...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local event...
util.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash)
util.timer: Use luaevent's built-in method of repeating an event (fixes a weird crash)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
a6d697335788e7e90313bc726e84b5b017773860
lib/rules.hisilicon.lua
lib/rules.hisilicon.lua
package { name = 'ast-files' } package { name = 'make', { 'build', 'host' }, { 'install', 'host' } } package { name = 'android-cmake' } package { name = 'libuv', { 'build', 'target' }, { 'install', 'target', { 'firmware', 'unpack' } } } package { name = 'ffmpeg', ...
package { name = 'ast-files' } package { name = 'make', { 'build', 'host' }, { 'install', 'host' } } package { name = 'android-cmake' } package { name = 'libuv', { 'build', 'target' }, { 'install', 'target', { 'firmware', 'unpack' } } } package { name = 'ffmpeg', ...
Fix android-cmake karaoke-player dependency in hisilicon rules
Fix android-cmake karaoke-player dependency in hisilicon rules
Lua
mit
bazurbat/jagen
59781aa8cf797e384be96f53867f0df58d301009
plugins/lyrics.lua
plugins/lyrics.lua
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]]-- local lyrics = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') function lyrics:init(configuration...
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]]-- local lyrics = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') local configuration = require('conf...
[v8] Fixed missing dependency in lyrics.lua
[v8] Fixed missing dependency in lyrics.lua
Lua
mit
barreeeiroo/BarrePolice
ba4c80644ec43df3fa2092a5a45678bdedf95422
mods/default/player.lua
mods/default/player.lua
-- Minetest 0.4 mod: player -- See README.txt for licensing and other information. --[[ API --- default.player_register_model(name, def) ^ Register a new model to be used by players. ^ <name> is the model filename such as "character.x", "foo.b3d", etc. ^ See Model Definition below for format of <def>. default.regis...
-- Minetest 0.4 mod: player -- See README.txt for licensing and other information. --[[ API --- default.player_register_model(name, def) ^ Register a new model to be used by players. ^ <name> is the model filename such as "character.x", "foo.b3d", etc. ^ See Model Definition below for format of <def>. default.regis...
Fix player skin changing code.
Fix player skin changing code.
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
0bcdd82e94e19e6ac9da4732f25f1bfd2f39d139
nyagos.d/catalog/git.lua
nyagos.d/catalog/git.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end -- hub exists, replace git command local hubpath=nyagos.which("hub.exe") if hubpath then nyagos.alias.git = "hub.exe" end share.git = {} -- setup local branch listup local branchlist = function(args) if strin...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end -- hub exists, replace git command local hubpath=nyagos.which("hub.exe") if hubpath then nyagos.alias.git = "hub.exe" end share.git = {} -- setup local branch listup local branchlist = function(args) if strin...
Completion for git add: fix: only one arg was completed
Completion for git add: fix: only one arg was completed
Lua
bsd-3-clause
tsuyoshicho/nyagos,zetamatta/nyagos
8429bbb464ec37752922aacc2eee79d448d3ef5c
hammerspoon/init.lua
hammerspoon/init.lua
-- API Doc : http://www.hammerspoon.org/docs/ -- KeyCodes : http://www.hammerspoon.org/docs/hs.keycodes.html#map -- Force launch or focus an app by name (fix issues with Finder) -- @see https://github.com/cmsj/hammerspoon-config/blob/master/init.lua#L156 -- @see http://liuhao.im/english/2017/06/02/macos-automation-and...
-- API Doc : http://www.hammerspoon.org/docs/ -- KeyCodes : http://www.hammerspoon.org/docs/hs.keycodes.html#map -- Force launch or focus an app by name (fix issues with Finder) -- @see https://github.com/cmsj/hammerspoon-config/blob/master/init.lua#L156 -- @see http://liuhao.im/english/2017/06/02/macos-automation-and...
Fix Hammerspoon config
Fix Hammerspoon config
Lua
mit
Benoth/dotfiles,Benoth/dotfiles
98bebf55cf4f04e4231577f037c7769b6231f647
RNN-train-sample/train.lua
RNN-train-sample/train.lua
-- Eugenio Culurciello -- September 2016 -- RNN training test: ABBA / 1221 sequence detector -- based on: https://raw.githubusercontent.com/karpathy/char-rnn/master/model/RNN.lua require 'nn' require 'nngraph' require 'optim' dofile('RNN.lua') local model_utils = require 'model_utils' torch.setdefaulttensortype('torc...
-- Eugenio Culurciello -- September 2016 -- RNN training test: ABBA / 1221 sequence detector -- based on: https://raw.githubusercontent.com/karpathy/char-rnn/master/model/RNN.lua require 'nn' require 'nngraph' require 'optim' dofile('RNN.lua') local model_utils = require 'model_utils' torch.setdefaulttensortype('torc...
fixed training
fixed training the problem was clone_many times functions, which I did not use, and tried to clone myself
Lua
bsd-3-clause
e-lab/torch7-demos,e-lab/torch7-demos
85289600427eabee3a0e0ca3865839a247f84e12
src/plugins/finalcutpro/touchbar/widgets/height.lua
src/plugins/finalcutpro/touchbar/widgets/height.lua
--- === plugins.finalcutpro.touchbar.widgets.height === --- --- Final Cut Pro Browser Height Control Widget for Touch Bar. local require = require --local log = require("hs.logger").new("heightWidget") local canvas = require("hs.canvas") local fcp = require("cp.apple...
--- === plugins.finalcutpro.touchbar.widgets.height === --- --- Final Cut Pro Browser Height Control Widget for Touch Bar. local require = require --local log = require("hs.logger").new("heightWidget") local canvas = require("hs.canvas") local fcp = require("cp.apple...
#1648
#1648 - Fixed dodgy maths
Lua
mit
CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
f25ab30106ad4951cd5c0999a41ad747b6bde6cb
hammerspoon/.hammerspoon/init.lua
hammerspoon/.hammerspoon/init.lua
-- A global variable for the Hyper Mode k = hs.hotkey.modal.new({}, "F17") log = hs.logger.new('WM','debug') -- Tools ------------------------------------------------------------------------------- -- Inspect Focused Window k:bind({"shift"}, 'i', nil, function() local win = hs.window.focusedWindow() log.d("Size", ...
-- A global variable for the Hyper Mode k = hs.hotkey.modal.new({}, "F17") log = hs.logger.new('WM','debug') -- Tools ------------------------------------------------------------------------------- -- Inspect Focused Window k:bind({"shift"}, 'i', nil, function() local win = hs.window.focusedWindow() log.d("Size", ...
fix hammerspoon, use google chrome
fix hammerspoon, use google chrome
Lua
mit
francoiscote/dotfiles,francoiscote/dotfiles
f0c302cd12a2e4fcdb1609a20eed6509349deeac
webui/src/WebUIManager.lua
webui/src/WebUIManager.lua
-- **************************************************************************** -- * -- * PROJECT: MTA:SA CEF utilities (https://github.com/Jusonex/mtasa_cef_tools) -- * FILE: webui/src/WebUIManager.lua -- * PURPOSE: WebUIManager class definition -- * -- ***********************************************...
-- **************************************************************************** -- * -- * PROJECT: MTA:SA CEF utilities (https://github.com/Jusonex/mtasa_cef_tools) -- * FILE: webui/src/WebUIManager.lua -- * PURPOSE: WebUIManager class definition -- * -- ***********************************************...
Fixed FrameWebWindow not moving to the front when moving
Fixed FrameWebWindow not moving to the front when moving
Lua
unlicense
FL1K3R/mtasa_cef_tools,FL1K3R/mtasa_cef_tools,Jusonex/mtasa_cef_tools,Jusonex/mtasa_cef_tools
1f127ed2d0c7145bdd70eb439dfc4e4ea3442e75
Interface/AddOns/RayUI/modules/misc/bubbles.lua
Interface/AddOns/RayUI/modules/misc/bubbles.lua
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local M = R:GetModule("Misc") local mod = M:NewModule("BubbleSkin", "AceTimer-3.0") --Cache global variables --Lua functions local select, unpack, type = select, unpack, type local strfind, strlower = string.find, string.lower --...
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local M = R:GetModule("Misc") local mod = M:NewModule("BubbleSkin", "AceTimer-3.0") --Cache global variables --Lua functions local select, unpack, type = select, unpack, type local strfind, strlower = string.find, string.lower --...
fix bubble skin error
fix bubble skin error
Lua
mit
fgprodigal/RayUI
e9d13a545137da45daade20d2a4e4fa89183bf43
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 GameCam = require 'pud.view.GameCam' local vector = require 'lib.hump.vector' -- map builder local MapDirector = req...
--[[-- PLAY STATE ---- Play the game. --]]-- local st = GameState.new() local math_floor, math_max, math_min = math.floor, math.max, math.min -- Camera local GameCam = require 'pud.view.GameCam' local vector = require 'lib.hump.vector' -- map builder local MapDirector = req...
fix zoomIn viewport being set too early
fix zoomIn viewport being set too early
Lua
mit
scottcs/wyx
b5ce56fd0b0899a427c1053e6599cc2857c10e57
lua/nginx/lua/router.lua
lua/nginx/lua/router.lua
-- -- Copyright 2019 The FATE Authors. All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless require...
-- -- Copyright 2019 The FATE Authors. All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless require...
fix proxy router lua
fix proxy router lua Signed-off-by: zengjice <1dc3faab9c1c669484e2786b29f3d13319949610@gmail.com>
Lua
apache-2.0
FederatedAI/FATE,FederatedAI/FATE,FederatedAI/FATE
b04a85f6c58a8162fc9ee77c4293fa4712de8488
html.lua
html.lua
local Html = cmark.Renderer.new() local gsub, find, format, byte = string.gsub, string.find, string.format, string.byte Html.escape = function(s) if find(s, '[<>&"]') then return gsub(s, '[<>&"]', function(c) if c == '<' then return "&lt...
local Html = cmark.Renderer.new() local gsub, find, format, byte = string.gsub, string.find, string.format, string.byte Html.escape = function(s) if find(s, '[<>&"]') then return gsub(s, '[<>&"]', function(c) if c == '<' then return "&lt...
Preliminary fixes for urlencoding.
Preliminary fixes for urlencoding. Really we need slnunicode to do this properly.
Lua
bsd-2-clause
jgm/cmark-lua,jgm/cmark-lua
7cd81f13dbc9f14b09fb1bf154dc30765efbf8b6
Quadtastic/exporters/xml.lua
Quadtastic/exporters/xml.lua
local exporter = {} local libquadtastic = require("Quadtastic.libquadtastic") -- This is the name under which the exporter will be listed in the menu exporter.name = "XML" -- This is the default file extension that will be used when the user does not -- specify one. exporter.ext = "xml" local function indent(write, i...
local libquadtastic = require("Quadtastic.libquadtastic") local utf8 = require("utf8") local exporter = {} -- This is the name under which the exporter will be listed in the menu exporter.name = "XML" -- This is the default file extension that will be used when the user does not -- specify one. exporter.ext = "xml" ...
Fix encoding and escaping in xml exporter
Fix encoding and escaping in xml exporter
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
112e8f17ad5010ecdc43b48cd816c224eaae3b35
pud/ui/Text.lua
pud/ui/Text.lua
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local pushRenderTarget, popRenderTarget = pushRenderTarget, popRenderTarget local setColor = love.graphics.setColor local setFont = love.graphics.setFont local gprint = love.graphics.print local math_floor = math.floor local string_sub = str...
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local pushRenderTarget, popRenderTarget = pushRenderTarget, popRenderTarget local setColor = love.graphics.setColor local setFont = love.graphics.setFont local gprint = love.graphics.print local math_floor = math.floor local string_sub = str...
fix justify to draw after being set
fix justify to draw after being set
Lua
mit
scottcs/wyx
501ccb77defb3881807fef7542fc002b3be3c6a2
src/pegasus/request.lua
src/pegasus/request.lua
local Request = {} function Request:new(client) local newObj = {} self.__index = self newObj.client = client newObj.firstLine = nil newObj._method = nil newObj._path = nil newObj._params = {} newObj._headers_parsed = false newObj._headers = {} newObj._form = {} newObj._is_valid = false newObj._...
local Request = {} function Request:new(client) local newObj = {} self.__index = self newObj.client = client newObj.ip = client:getpeername() newObj.firstLine = nil newObj._method = nil newObj._path = nil newObj._params = {} newObj._headers_parsed = false newObj._headers = {} newObj._form = {} ...
add `req.ip`
add `req.ip` Fix #63
Lua
mit
EvandroLG/pegasus.lua
ad42ef432091f2ca9ebbb57ba04227b637eeca15
OpenSteamClient.lua
OpenSteamClient.lua
solution "OpenSteamClient" language "C++" location "Projects" targetdir "Binaries" includedirs { "Include" } configurations { "Debug", "Release", "DebugShared", "ReleaseShared" } configuration "Debug or DebugShared" flags { "Symbols" } configuration "Release or ReleaseShared" flags { "Optimize" } project ...
solution "OpenSteamClient" language "C++" location "Projects" targetdir "Binaries" includedirs { "Include" } configurations { "Debug", "Release", "DebugShared", "ReleaseShared" } configuration "Debug or DebugShared" flags { "Symbols" } configuration "Release or ReleaseShared" flags { "Optimize" } project ...
Fixed linking on Unix.
Fixed linking on Unix.
Lua
mit
dajoh/OpenSteamClient,dajoh/OpenSteamClient,dajoh/OpenSteamClient
c1568bca408b9592e0b45045f6d3070206c8ab71
Boilerplate_Resource/src/Boilerplate_Resource.lua
Boilerplate_Resource/src/Boilerplate_Resource.lua
-------------------------------------------------------- -- This file is part of the JX3 Plugin Project. -- @desc : Դ -- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd. -------------------------------------------------------- ----------------------------------------------------------------------------------------...
-------------------------------------------------------- -- This file is part of the JX3 Plugin Project. -- @desc : Դ -- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd. -------------------------------------------------------- ----------------------------------------------------------------------------------------...
fix: 修复按钮资源获取名字失败的问题
fix: 修复按钮资源获取名字失败的问题
Lua
bsd-3-clause
tinymins/MY
47e17357c8caf4b6d902f88b2bc26deaf01e44ab
tests/trees/04_closure-insert.lua
tests/trees/04_closure-insert.lua
--[[! - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form - or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. - - In jurisdictions ...
--[[! - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form - or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. - - In jurisdictions ...
Fixed Tree Closure Table data preparation.
Fixed Tree Closure Table data preparation.
Lua
unlicense
Ravenlord/ddp-testing
c3bedfa3cca1b0527d251c7076c8a88247534045
penguingui/TextField.lua
penguingui/TextField.lua
-- Editable text field TextField = class(Component) TextField.vPadding = 3 TextField.hPadding = 4 TextField.borderColor = "#545454" TextField.backgroundColor = "black" TextField.textColor = "white" TextField.textHoverColor = "#777777" TextField.defaultTextColor = "#333333" TextField.defaultTextHoverColor = "#777777" Te...
-- Editable text field TextField = class(Component) TextField.vPadding = 3 TextField.hPadding = 4 TextField.borderColor = "#545454" TextField.backgroundColor = "black" TextField.textColor = "white" TextField.textHoverColor = "#999999" TextField.defaultTextColor = "#333333" TextField.defaultTextHoverColor = "#777777" Te...
Fixed mouse clicking and text clipping to actually work.
Fixed mouse clicking and text clipping to actually work. - There is a bug where drawing a string will trim the string of whitespace first.
Lua
apache-2.0
PenguinToast/PenguinGUI
c905a6a3300d0c8a00cdc6eac6bf345d7cfbf1ce
src/lua/luatexts/lua.lua
src/lua/luatexts/lua.lua
-------------------------------------------------------------------------------- -- luatexts/lua.lua: plain Lua implementation of luatexts -------------------------------------------------------------------------------- -- Copyright (c) 2011, luatexts authors -- See license in the file named COPYRIGHT -----------------...
-------------------------------------------------------------------------------- -- luatexts/lua.lua: plain Lua implementation of luatexts -------------------------------------------------------------------------------- -- Copyright (c) 2011, luatexts authors -- See license in the file named COPYRIGHT -----------------...
luatexts.lua: fixed error handling
luatexts.lua: fixed error handling
Lua
mit
agladysh/luatexts,agladysh/luatexts,agladysh/luatexts,agladysh/luatexts,agladysh/luatexts
b9a5a8596bcd91595e726addb176d1bcbbf5424f
lua/entities/gmod_wire_expression2/core/functions.lua
lua/entities/gmod_wire_expression2/core/functions.lua
--[[============================================================ E2 Function System By Rusketh General Operators ============================================================]]-- __e2setcost(20) registerOperator("function", "", "", function(self, args) local Stmt, args = args[2], args[3] local Sig, Return, Ar...
--[[============================================================ E2 Function System By Rusketh General Operators ============================================================]]-- __e2setcost(20) registerOperator("function", "", "", function(self, args) local Stmt, args = args[2], args[3] local Sig, ReturnType...
Throw error when an E2 UDF doesn't return a value
Throw error when an E2 UDF doesn't return a value Fixes #519.
Lua
apache-2.0
sammyt291/wire,Grocel/wire,thegrb93/wire,garrysmodlua/wire,wiremod/wire,dvdvideo1234/wire,bigdogmat/wire,NezzKryptic/Wire
ddb2f7e81d268f36f1b213b506b27ef59bf3e3ca
tests/largetransfer.lua
tests/largetransfer.lua
-- tests large transmissions, sending and receiving -- uses `receive` and `receivePartial` -- Does send the same string twice simultaneously -- -- Test should; -- * show timer output, once per second, and actual time should be 1 second increments -- * both transmissions should take appr. equal time, then they we're...
-- tests large transmissions, sending and receiving -- uses `receive` and `receivePartial` -- Does send the same string twice simultaneously -- -- Test should; -- * show timer output, once per second, and actual time should be 1 second increments -- * both transmissions should take appr. equal time, then they we're...
Fix location of certs in tests so that `make test` doesn't fail.
Fix location of certs in tests so that `make test` doesn't fail.
Lua
mit
keplerproject/copas
39132638dd64e58d627124b36f7734563e1d1241
site/api/lib/elastic.lua
site/api/lib/elastic.lua
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
elastic.lua checkReturn() does not properly check return code
elastic.lua checkReturn() does not properly check return code This fixes #236
Lua
apache-2.0
Humbedooh/ponymail,quenda/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,quenda/ponymail,jimjag/ponymail,jimjag/ponymail,quenda/ponymail,jimjag/ponymail,jimjag/ponymail
ac79a571c591a590bb79497d7a7dc6935ba133f1
Interface/AddOns/RayUI/modules/actionbar/vehicleexit.lua
Interface/AddOns/RayUI/modules/actionbar/vehicleexit.lua
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local AB = R:GetModule("ActionBar") local S = R:GetModule("Skins") --Cache global variables --Lua functions local _G = _G --WoW API / Variables local CreateFrame = CreateFrame local MainMenuBarVehicleLeaveButton_OnEnter = MainMe...
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local AB = R:GetModule("ActionBar") local S = R:GetModule("Skins") --Cache global variables --Lua functions local _G = _G --WoW API / Variables local CreateFrame = CreateFrame local MainMenuBarVehicleLeaveButton_OnEnter = MainMe...
fix bug
fix bug
Lua
mit
fgprodigal/RayUI
e4b83a9e154e30e4388a1bf63786d1cd689cfd21
lift/init/config.lua
lift/init/config.lua
------------------------------------------------------------------------------ -- Default Lift Configuration ------------------------------------------------------------------------------ local config = ... local path = require 'lift.path' -- Default app_id and app_version if not config.app_version then config.app_...
------------------------------------------------------------------------------ -- Default Lift Configuration ------------------------------------------------------------------------------ local config = ... local path = require 'lift.path' -- Default app_id and app_version if not config.app_version then config.app_...
Fix tests on Windows
Fix tests on Windows
Lua
mit
tbastos/lift
a89e2f5584415c1550e630e27b164c9ca369486c
modules/kibana_asf/files/frombrowser.lua
modules/kibana_asf/files/frombrowser.lua
#!/usr/bin/env lua package.path = package.path .. ";/usr/local/etc/logproxy/?.lua" local JSON = require "JSON" -- function for injecting strings into each 'query' element in the JSON function inject(tbl, what) for k, v in pairs(tbl) do if type(v) == "table" then inject(v, what) elseif k...
#!/usr/bin/env lua package.path = package.path .. ";/usr/local/etc/logproxy/?.lua" local JSON = require "JSON" -- function for injecting strings into each 'query' element in the JSON function inject(tbl, what) for k, v in pairs(tbl) do if type(v) == "table" then inject(v, what) elseif k...
fixup ACL
fixup ACL
Lua
apache-2.0
chtyim/infrastructure-puppet,sebbASF/infrastructure-puppet,apache/infrastructure-puppet,apache/infrastructure-puppet,stumped2/infrastructure-puppet,apache/infrastructure-puppet,chtyim/infrastructure-puppet,chtyim/infrastructure-puppet,sebbASF/infrastructure-puppet,sebbASF/infrastructure-puppet,bdube/infrastructure-pupp...
7913f0da9e0238971780c72d22322c21ada5b70d
luasrc/multivariateGaussian.lua
luasrc/multivariateGaussian.lua
function randomkit.multivariateGaussianLogPDF(x, mu, sigma) x = torch.Tensor(x) mu = torch.Tensor(mu) -- If any input is vectorised, we return a vector. Otherwise remember that we should return scalar. local scalarResult = (x:dim() == 1) and (mu:dim() == 1) -- Now make our inputs all vectors, for ...
function randomkit.multivariateGaussianLogPDF(x, mu, sigma) x = torch.Tensor(x) mu = torch.Tensor(mu) -- If any input is vectorised, we return a vector. Otherwise remember that we should return scalar. local scalarResult = (x:dim() == 1) and (mu:dim() == 1) -- Now make our inputs all vectors, for ...
Fix for inferring dimensionality
Fix for inferring dimensionality
Lua
bsd-3-clause
fastturtle/torch-randomkit,fastturtle/torch-randomkit,deepmind/torch-randomkit,deepmind/torch-randomkit
42034f35e7dba6d680ad82ab326b9dc95f3e41ba
xmake/modules/detect/tools/nvcc/has_flags.lua
xmake/modules/detect/tools/nvcc/has_flags.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 has_flags
fix has_flags
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
568d668519324ab3a060f01f9f6c4b876d90ee5e
nvim/lua/plugins.lua
nvim/lua/plugins.lua
return require('packer').startup(function() use('wbthomason/packer.nvim') use('folke/tokyonight.nvim') -- -- nvim dependencies -- use('nvim-lua/plenary.nvim') use('kyazdani42/nvim-web-devicons') use('tami5/sqlite.lua') -- -- nvim plugins -- use({ 'nvim-treesitter/nvim-treesitter', ru...
return require('packer').startup(function() use('wbthomason/packer.nvim') use('folke/tokyonight.nvim') -- -- nvim dependencies -- use('nvim-lua/plenary.nvim') use('kyazdani42/nvim-web-devicons') use('tami5/sqlite.lua') -- -- nvim plugins -- use({ 'nvim-treesitter/nvim-treesitter', ru...
fixed emmet
fixed emmet
Lua
mit
rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles
165e0583ff475005b18084b03c9cfec424e2fba1
lua/entities/gmod_wire_expression2/core/cl_console.lua
lua/entities/gmod_wire_expression2/core/cl_console.lua
local convars = { wire_expression2_concmd = 0, wire_expression2_concmd_whitelist = "", } local function CreateCVars() for name,default in pairs(convars) do current_cvar = CreateClientConVar(name, default, true, true) local value = current_cvar:GetString() or default RunConsoleCommand(name, value) end end if...
local convars = { wire_expression2_concmd = 0, wire_expression2_concmd_whitelist = "", } local function CreateCVars() for name,default in pairs(convars) do local current_cvar = CreateClientConVar(name, default, true, true) local value = current_cvar:GetString() or default RunConsoleCommand(name, value) end e...
Switch cl_console's convars to start on Initialize instead of OnEntityCreated May improve compatibility with addons that for some reason fiddle with OnEntityCreate for LocalPlayer() Fixes #1470
Switch cl_console's convars to start on Initialize instead of OnEntityCreated May improve compatibility with addons that for some reason fiddle with OnEntityCreate for LocalPlayer() Fixes #1470
Lua
apache-2.0
sammyt291/wire,Grocel/wire,dvdvideo1234/wire,bigdogmat/wire,wiremod/wire,garrysmodlua/wire,thegrb93/wire,NezzKryptic/Wire
78313dbb4b85d42e08cfff9a8494c6c764a64c56
packages/verbatim.lua
packages/verbatim.lua
SILE.registerCommand("verbatim:font", function(options, content) SILE.settings.set("font.family", "Consolas") SILE.settings.set("font.size", SILE.settings.get("font.size") - 3) end, "The font chosen for the verbatim environment") SILE.registerCommand("verbatim", function(options, content) SILE.typesetter:pus...
SILE.registerCommand("verbatim:font", function(options, content) SILE.settings.set("font.family", "Consolas") SILE.settings.set("font.size", SILE.settings.get("font.size") - 3) end, "The font chosen for the verbatim environment") SILE.registerCommand("verbatim", function(options, content) SILE.typesetter:pus...
Ensure end-of-line after verbatim environment. Fixes #317
Ensure end-of-line after verbatim environment. Fixes #317
Lua
mit
alerque/sile,simoncozens/sile,neofob/sile,alerque/sile,neofob/sile,neofob/sile,simoncozens/sile,neofob/sile,simoncozens/sile,alerque/sile,simoncozens/sile,alerque/sile
1593a21033a70ddbd3a5dfb8ee0cdc18d4d0e4b5
inkblazers.lua
inkblazers.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 illu_name = os.getenv('illu_name') local illu_number = os.getenv('illu_number') local downloaded = {} local addedtolist = {} read_file = functio...
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 illu_name = os.getenv('illu_name') local illu_number = os.getenv('illu_number') local downloaded = {} local addedtolist = {} read_file = functio...
inkblazers.lua: fix the error
inkblazers.lua: fix the error
Lua
unlicense
ArchiveTeam/inkblazers-grab,ArchiveTeam/inkblazers-grab
9679c6bf3c2038e0fe56c75667e97e30333ae309
lua/starfall2/libs_sh/builtins.lua
lua/starfall2/libs_sh/builtins.lua
------------------------------------------------------------------------------- -- Builtins.lua -- Functions built-in to the default environment ------------------------------------------------------------------------------- local function createRefMtbl(target) local tbl = {} tbl.__index = function(self,k) if...
------------------------------------------------------------------------------- -- Builtins.lua -- Functions built-in to the default environment ------------------------------------------------------------------------------- local dgetmeta = debug.getmetatable --- Built in values. These don't need to be loaded...
Fixed builtins using the old Typedef
Fixed builtins using the old Typedef
Lua
bsd-3-clause
Xandaros/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall
3b1799c5036ac64046127135f3524e83ecf2cea9
test_scripts/Polices/Policy_Table_Update/020_ATF_P_TC_PoliciesManager_changes_status_UPDATING.lua
test_scripts/Polices/Policy_Table_Update/020_ATF_P_TC_PoliciesManager_changes_status_UPDATING.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UPDATING” -- [HMI API] OnStatusUpdate -- -- Description: -- PoliciesManager must change the status to “UPDATING” and notify HMI with -- OnStatu...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager changes status to “UPDATING” -- [HMI API] OnStatusUpdate -- -- Description: -- PoliciesManager must change the status to “UPDATING” and notify HMI with -- OnStatu...
Fix issues in script
Fix issues in script
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
bf7c36f3b54347a888f9036f1cad51cea4224d16
script/c80400029.lua
script/c80400029.lua
--サイバー・ネットワーク function c80400029.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c80400029.ncon) e1:SetTarget(c80400029.ntg) c:RegisterEffect(e1) --Activate2 local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_ACTIVA...
--サイバー・ネットワーク function c80400029.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c80400029.ncon) e1:SetTarget(c80400029.ntg) c:RegisterEffect(e1) --Activate2 local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_ACTIVA...
Cyber Network fix
Cyber Network fix
Lua
mit
sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher
2011596de04ebc9a67a861420d16a9f027339847
service/clusterd.lua
service/clusterd.lua
local skynet = require "skynet" require "skynet.manager" local sc = require "skynet.socketchannel" local socket = require "skynet.socket" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local node_sender = {} local command = {} l...
local skynet = require "skynet" require "skynet.manager" local sc = require "skynet.socketchannel" local socket = require "skynet.socket" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local node_sender = {} local command = {} l...
fix #979
fix #979
Lua
mit
JiessieDawn/skynet,bigrpg/skynet,xcjmine/skynet,icetoggle/skynet,ag6ag/skynet,hongling0/skynet,korialuo/skynet,pigparadise/skynet,JiessieDawn/skynet,bigrpg/skynet,cloudwu/skynet,hongling0/skynet,wangyi0226/skynet,cloudwu/skynet,wangyi0226/skynet,icetoggle/skynet,ag6ag/skynet,wangyi0226/skynet,jxlczjp77/skynet,xcjmine/s...
69acc8e8df10ed945392a31182d074b593d09386
extension/client/serverFactory.lua
extension/client/serverFactory.lua
local proto = require 'protocol' local select = require 'select' local function create(t) local m = {} local session local srvfd local write = '' local stat = {} function t.event(_, fd) session = fd select.send(session, write) write = '' if not t.client then ...
local proto = require 'protocol' local select = require 'select' local function create(t) local m = {} local session local srvfd local write = '' local stat = {} function t.event(status, fd) if status == 'failed' then assert(t.client) select.close(srvfd) ...
Fixes #42
Fixes #42
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
52a9ff6f726b42bc35d165e2639ed76446fe3c2d
lua/packer.lua
lua/packer.lua
--The packerryption function is someway useless, however you may feel better by comparing to plain text :) local string=string local packer={} local function rechar(str,offset) local byte=string.byte(str) return string.char(byte+offset<128 and byte+offset or byte) end function packer.pack(func) local...
--The packerryption function is someway useless, however you may feel better by comparing to plain text :) local string=string local packer={} local function rechar(str,offset) local byte=string.byte(str) return string.char(byte+offset<128 and byte+offset or byte) end function packer.pack(func) local...
fix sqlplus unavailable in some cases
fix sqlplus unavailable in some cases
Lua
mit
hyee/dbcli,hyee/dbcli,hyee/dbcli,hyee/dbcli
271eebb79585b1f20d0243f392e0c59d067df1e0
twokeys.lua
twokeys.lua
local key_tmr=3 local key_int=50 local key1_len=0 local key2_len=0 status.mode=0 status.uptime_ms=0 gpio.mode(key1_pin,gpio.INPUT,gpio.PULLUP) gpio.mode(key2_pin,gpio.INPUT,gpio.PULLDOWN) local wifi_max_outage=10000 local wifi_check_int=1000 local wifi_outage=0 local owtemp_int = 5000 ldr_pin=5 -- GPIO14 local ldr...
local key_tmr=3 local key_int=50 local key1_len=0 local key2_len=0 status.mode=0 status.uptime_ms=0 gpio.mode(key1_pin,gpio.INPUT,gpio.PULLUP) gpio.mode(key2_pin,gpio.INPUT,gpio.PULLDOWN) local wifi_max_outage=10000 local wifi_check_int=1000 local wifi_outage=0 local owtemp_int = 5000 ldr_pin=5 -- GPIO14 local ldr...
Fixed LDR max value
Fixed LDR max value
Lua
mit
matgoebl/nodemcu-wifimusicledclock,matgoebl/nodemcu-wifimusicledclock
28896329dd53c27aaf6fb1f76fa7bc49b4d5408b
roles/dotfiles/files/.hammerspoon/eventtap.lua
roles/dotfiles/files/.hammerspoon/eventtap.lua
-- -- Trying to limp along without Karabiner in Sierra. -- local deepEquals = require 'deepEquals' local log = require 'log' -- Forward function declarations. local cancelTimers = nil local modifierHandler = nil local keyHandler = nil local keyDown = hs.eventtap.event.types.keyDown local keyUp = hs.eventtap.event.ty...
-- -- Trying to limp along without Karabiner in Sierra. -- local deepEquals = require 'deepEquals' local log = require 'log' -- Forward function declarations. local cancelTimers = nil local modifierHandler = nil local keyHandler = nil local keyDown = hs.eventtap.event.types.keyDown local keyUp = hs.eventtap.event.ty...
hammerspoon: attempt to fix broken chording
hammerspoon: attempt to fix broken chording I think I had this wrong; I've had a couple of occasions now where one of Caps Lock or Enter stops working properly (only the tap functionality works, not the chord functionality).
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
81e72fc7c5cd49216b2c088e3779083b22672700
projects/premake/thirdparty_build_scripts/glfw.lua
projects/premake/thirdparty_build_scripts/glfw.lua
#!lua -- -- @file glfw.lua -- @author PJ O Halloran -- @date 25/09/2017 -- -- For building the glfw library. -- local lib_name = "glfw" local target_lib_name = lib_name .. "3" local lib_src_dir = path.join(ember_thirdparty_src, lib_name) local function build() do_pre_build(lib_name) os.execute("...
#!lua -- -- @file glfw.lua -- @author PJ O Halloran -- @date 25/09/2017 -- -- For building the glfw library. -- local lib_name = "glfw" local target_lib_name = lib_name .. "3" local lib_src_dir = path.join(ember_thirdparty_src, lib_name) local function build() do_pre_build(lib_name) os.execute("...
Fixing how osx frameworks are added/linked against.
Fixing how osx frameworks are added/linked against.
Lua
mit
pjohalloran/ember,pjohalloran/ember,pjohalloran/ember
815c258684749cba413e55b00e3c587404d54a17
src/program/lwaftr/tests/propbased/genyang.lua
src/program/lwaftr/tests/propbased/genyang.lua
module(..., package.seeall) --local S = require("syscall") --local snabb_cmd = ("/proc/%d/exe"):format(S.getpid()) local schema = require("lib.yang.schema") local capabilities = {['ietf-softwire']={feature={'binding', 'br'}}} require('lib.yang.schema').set_default_capabilities(capabilities) local schemas = { "ietf-...
module(..., package.seeall) --local S = require("syscall") --local snabb_cmd = ("/proc/%d/exe"):format(S.getpid()) local schema = require("lib.yang.schema") local capabilities = {['ietf-softwire']={feature={'binding', 'br'}}} require('lib.yang.schema').set_default_capabilities(capabilities) local schemas = { "ietf-...
Traverse 'list' nodes for random generation better
Traverse 'list' nodes for random generation better Also generate values for ipv6 addresses/prefixes and unions to better explore the schema
Lua
apache-2.0
alexandergall/snabbswitch,eugeneia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,SnabbCo/snabbswitch,dpino/snabb,snabbco/snabb,dpino/snabb,SnabbCo/snabbswitch,snabbco/snabb,dpino/snabb,alexandergall/snabbswitch,eugeneia/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,Igalia/snabb,Igalia/snabb,Igalia/snabb,eu...
3753998f66458a7c5a545c0ef64d3b7b1a232fa2
src/plugins/finalcutpro/midi/controls/timeline.lua
src/plugins/finalcutpro/midi/controls/timeline.lua
--- === plugins.finalcutpro.midi.controls.timeline === --- --- Final Cut Pro MIDI Timeline Controls. local require = require --local log = require "hs.logger".new "timeline" local eventtap = require "hs.eventtap" local fcp = require "cp.apple.finalcutpro" local i18n ...
--- === plugins.finalcutpro.midi.controls.timeline === --- --- Final Cut Pro MIDI Timeline Controls. local require = require --local log = require "hs.logger".new "timeline" local eventtap = require "hs.eventtap" local fcp = require "cp.apple.finalcutpro" local i18n ...
Fixed @stickler-ci Bug
Fixed @stickler-ci Bug
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks
8433caad2703d56fb0efb7a01abf6dbd95222aee
examples/udf/records.lua
examples/udf/records.lua
local function _join(r,delim,...) local out = '' local len = select('#',...) for i=1, len do if i > 1 then out = out .. (delim or ',') end out = out .. r[select(i,...)] end return out end function join(r,delim,...) return _join(r,delim,...) end function cat...
local function _join(r,delim,...) local out = '' local len = select('#',...) for i=1, len do if i > 1 then out = out .. (delim or ',') end out = out .. r[select(i,...)] end return out end function join(r,delim,...) return _join(r,delim,...) end function cat...
Fix delete_record.
Fix delete_record.
Lua
apache-2.0
wgpshashank/aerospike-client-java,alexandrnikitin/aerospike-client-java,pradeepsrinivasan/aerospike-client-java,pradeepsrinivasan/aerospike-client-java,Stratio/aerospike-client-java,Stratio/aerospike-client-java,wgpshashank/aerospike-client-java,alexandrnikitin/aerospike-client-java
8422bb56b650da5595b4070a5e3988fc5162c7a7
src/npge/alignment/goodSlices.lua
src/npge/alignment/goodSlices.lua
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. -- Arguments: -- 1. list of column statuses (true is good column) -- 2. min_length (integer) -- 3. min_end (integer) -- number of begin and end good columns -- 4. min_identity (from...
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. -- Arguments: -- 1. list of column statuses (true is good column) -- 2. min_length (integer) -- 3. min_end (integer) -- number of begin and end good columns -- 4. min_identity (from...
rewrite goodSlices with table of good columns sum
rewrite goodSlices with table of good columns sum The algorithm was not changed. Array good_sum is used to cache number of good columns in each prefix. It can be used to get number of good columns in each slice. This code is clearer than frame chaining.
Lua
mit
starius/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge
fec95a8ace000b2d805bd20c24d28f24b705256b
src/base/os.lua
src/base/os.lua
-- -- os.lua -- Additions to the OS namespace. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- -- -- Same as os.execute(), but accepts string formatting arguments. -- function os.executef(cmd, ...) cmd = string.format(cmd, unpack(arg)) return os.execute(cmd) end -- -- Sc...
-- -- os.lua -- Additions to the OS namespace. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- -- -- Same as os.execute(), but accepts string formatting arguments. -- function os.executef(cmd, ...) cmd = string.format(cmd, unpack(arg)) return os.execute(cmd) end -- -- Sc...
Fix Issue #242: Recursive deletion in os.rmdir() goes up to root level on Windows 7 (Ben Henning)
Fix Issue #242: Recursive deletion in os.rmdir() goes up to root level on Windows 7 (Ben Henning)
Lua
bsd-3-clause
lizh06/premake-4.x,ryanjmulder/premake-4.x,lizh06/premake-4.x,premake/premake-4.x,ryanjmulder/premake-4.x,ryanjmulder/premake-4.x,lizh06/premake-4.x,premake/premake-4.x,ryanjmulder/premake-4.x,premake/premake-4.x,lizh06/premake-4.x,premake/premake-4.x
8cba23531ee302b85e4ac66329074b89e7dc47d9
mods/pipeworks/signal_tubes.lua
mods/pipeworks/signal_tubes.lua
if pipeworks.enable_detector_tube then local detector_tube_step = 2 * tonumber(minetest.setting_get("dedicated_server_step")) pipeworks.register_tube("pipeworks:detector_tube_on", { description = "Detecting Pneumatic Tube Segment on (you hacker you)", inventory_image = "pipeworks_detector_tube_inv.png", plai...
if pipeworks.enable_detector_tube then local detector_tube_step = 1 --MFF crabman(2/1/2016 bug,step too short) 2 * tonumber(minetest.setting_get("dedicated_server_step")) pipeworks.register_tube("pipeworks:detector_tube_on", { description = "Detecting Pneumatic Tube Segment on (you hacker you)", inventory_image...
fix issue https://github.com/MinetestForFun/server-minetestforfun/issues/355
fix issue https://github.com/MinetestForFun/server-minetestforfun/issues/355
Lua
unlicense
MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative
e0f59d309a3aadcfd6a577e9f44dc981af3cd4b5
BIOS/setup.lua
BIOS/setup.lua
--BIOS Setup Screen local Handled = ... --Handled is passed by BIOS POST, love is available too. local BIOS = Handled.BIOS local GPU = Handled.GPU local CPU = Handled.CPU local fs = Handled.HDD local KB = Handled.Keyboard local coreg = require("Engine.coreg") local stopWhile = false local wipingMode = false GPU.clear...
--BIOS Setup Screen local Handled = ... --Handled is passed by BIOS POST local BIOS = Handled.BIOS local GPU = Handled.GPU local CPU = Handled.CPU local fs = Handled.HDD local KB = Handled.Keyboard local coreg = require("Engine.coreg") local stopWhile = false local wipingMode = false GPU.clear(0) GPU.color(7) KB.tex...
Fix crash & add view save folder option in setup
Fix crash & add view save folder option in setup Former-commit-id: 8bca1a3f3ac9e7d3ad27aee15ddce7b27964d9a5
Lua
mit
RamiLego4Game/LIKO-12
fd61c350299a4d888bb3e81594077224e5fb4252
xmake/modules/private/action/trybuild/ndkbuild.lua
xmake/modules/private/action/trybuild/ndkbuild.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 ndkbuild for windows
fix ndkbuild for windows
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
84c8c8a6dcfbb2b25a70fdd4463e1798033cd7c4
core/componentmanager.lua
core/componentmanager.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local prosody = prosody; local log = require "util.logger".init("componentmanager"); local configmanager ...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local prosody = prosody; local log = require "util.logger".init("componentmanager"); local configmanager ...
ComponentManager: Fixed a bit of logging.
ComponentManager: Fixed a bit of logging.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
59cd41e49745cbd0538dfb7ca39d12a92d8cc917
core/portmanager.lua
core/portmanager.lua
local multitable = require "util.multitable"; local fire_event = prosody.events.fire_event; --- Config local default_interfaces = { "*" }; local default_local_interfaces = { "127.0.0.1" }; if config.get("*", "use_ipv6") then table.insert(default_interfaces, "::"); table.insert(default_local_interfaces, "::1"); end...
local multitable = require "util.multitable"; local fire_event = prosody.events.fire_event; --- Config local default_interfaces = { "*" }; local default_local_interfaces = { "127.0.0.1" }; if config.get("*", "use_ipv6") then table.insert(default_interfaces, "::"); table.insert(default_local_interfaces, "::1"); end...
portmanager: Fix selecting bind_interfaces from pre-0.9 config options.
portmanager: Fix selecting bind_interfaces from pre-0.9 config options.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
740b91533dadee1cfa4f69a16d5a2528ac5c4375
lualib/http/internal.lua
lualib/http/internal.lua
local table = table local type = type local sockethelper = require "http.sockethelper" local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pe...
local table = table local type = type local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pervent the attacker send very long stream without ...
Fix #1452
Fix #1452
Lua
mit
sanikoyes/skynet,korialuo/skynet,wangyi0226/skynet,cloudwu/skynet,xjdrew/skynet,xjdrew/skynet,cloudwu/skynet,wangyi0226/skynet,sanikoyes/skynet,wangyi0226/skynet,korialuo/skynet,xjdrew/skynet,korialuo/skynet,sanikoyes/skynet,cloudwu/skynet
94576ab5b56810bbeb025efc7091f60467e639f2
tests/lua/test.lua
tests/lua/test.lua
-- -- Created by IntelliJ IDEA. -- User: alex -- Date: 21/09/2015 -- Time: 16:22 -- To change this template use File | Settings | File Templates. -- local handle, msg if (not python) then -- LUA -> PYTHON - LUA handle, msg = loadlib(getenv("LIBRARY_PATH")) if (not handle or handle == -1) then error(msg) end ...
-- -- Created by IntelliJ IDEA. -- User: alex -- Date: 21/09/2015 -- Time: 16:22 -- To change this template use File | Settings | File Templates. -- local handle, msg if (not python) then -- LUA -> PYTHON - LUA handle, msg = loadlib(getenv("LIBRARY_PATH")) if (not handle or handle == -1) then error(msg) end ...
Fix assert messages.
Fix assert messages.
Lua
lgpl-2.1
alexsilva/lunatic-python,alexsilva/lunatic-python,alexsilva/lunatic-python
25abfb9476cac32d8db59b73f8bdfc60ba85ff79
MCServer/Plugins/MagicCarpet/plugin.lua
MCServer/Plugins/MagicCarpet/plugin.lua
local PLUGIN = {} local Carpets = {} function Initialize( Plugin ) PLUGIN = Plugin Plugin:SetName( "MagicCarpet" ) Plugin:SetVersion( 1 ) PluginManager = cRoot:Get():GetPluginManager() PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING) PluginManager:AddHook(Plugin, cPluginManager.HOOK_DISCONNECT)...
local PLUGIN = {} local Carpets = {} function Initialize( Plugin ) PLUGIN = Plugin Plugin:SetName( "MagicCarpet" ) Plugin:SetVersion( 1 ) PluginManager = cRoot:Get():GetPluginManager() PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING) PluginManager:AddHook(Plugin, cPluginManager.HOOK_DISCONNECT)...
Updated MagicCarpet to use new API [SEE DESC]
Updated MagicCarpet to use new API [SEE DESC] Fixed non-teleportation upon falling through carpet due to use of deprecated function. Fixed spam of console upon falling through carpet. Added descriptive upon-enable message.
Lua
apache-2.0
birkett/cuberite,tonibm19/cuberite,mc-server/MCServer,mjssw/cuberite,nicodinh/cuberite,zackp30/cuberite,nicodinh/cuberite,QUSpilPrgm/cuberite,bendl/cuberite,nevercast/cuberite,guijun/MCServer,Altenius/cuberite,jammet/MCServer,ionux/MCServer,zackp30/cuberite,SamOatesPlugins/cuberite,nevercast/cuberite,mmdk95/cuberite,el...
88e841d86941bbdcc8203eae01998fd0dbc951fd
Interface/AddOns/RayUI/modules/misc/durability.lua
Interface/AddOns/RayUI/modules/misc/durability.lua
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local M = R:GetModule("Misc") local mod = M:NewModule("Durability", "AceEvent-3.0") --Cache global variables --Lua functions local _G = _G local pairs, math, string, rawget, select = pairs, math, string, rawget, select --WoW API ...
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local M = R:GetModule("Misc") local mod = M:NewModule("Durability", "AceEvent-3.0") --Cache global variables --Lua functions local _G = _G local pairs, math, string, rawget, select = pairs, math, string, rawget, select --WoW API ...
fix an issue that cause durability text not shown
fix an issue that cause durability text not shown
Lua
mit
fgprodigal/RayUI
2dd6dcaf403c0f17a850c7bc2e84e5e4f576d303
packages/frametricks.lua
packages/frametricks.lua
local breakFrameVertical = function(after) local cFrame = SILE.typesetter.frame if after then totalHeight = after else totalHeight = 0 SILE.typesetter:leaveHmode(1) local q = SILE.typesetter.state.outputQueue for i=1,#q do totalHeight = totalHeight + q[i].height + q[i].depth end ...
local breakFrameVertical = function(after) local cFrame = SILE.typesetter.frame if after then totalHeight = after else totalHeight = 0 SILE.typesetter:leaveHmode(1) local q = SILE.typesetter.state.outputQueue for i=1,#q do totalHeight = totalHeight + q[i].height + q[i].depth end ...
Fix up documentation.
Fix up documentation.
Lua
mit
Nathan22Miles/sile,Nathan22Miles/sile,shirat74/sile,alerque/sile,neofob/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,neofob/sile,shirat74/sile,anthrotype/sile,Nathan22Miles/sile,simoncozens/sile,simoncozens/sile,alerque/sile,simoncozens/sile,simoncozens/sile,WAKAMAZU/sile_fe,neofob/sile,anthrotype/sile,alerque/sile,WAKAMAZ...
886d2609c713c882b242e56f57a8a9fdf232c446
Engine/coreg.lua
Engine/coreg.lua
--Corouting Registry: this file is responsible for providing LIKO12 it's api-- local coreg = {reg={}} local basexx = require("Engine.basexx") local bit = require("bit") --Returns the current active coroutine if exists function coreg:getCoroutine() return self.co, self.coglob end --Sets the current active coroutine...
--Corouting Registry: this file is responsible for providing LIKO12 it's api-- local coreg = {reg={}} local basexx = require("Engine.basexx") local bit = require("bit") --Returns the current active coroutine if exists function coreg:getCoroutine() return self.co, self.coglob end --Sets the current active coroutine...
Fixed a serios stupid bug (stack overflow)
Fixed a serios stupid bug (stack overflow)
Lua
mit
RamiLego4Game/LIKO-12