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
10c4815964c8903f8e2e1f44ec154f6790a5ac29
util/datetime.lua
util/datetime.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- XEP-0082: XMPP Date and Time Profiles local os_date = os.date; local os_time = os.time; local os_dif...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- XEP-0082: XMPP Date and Time Profiles local os_date = os.date; local os_time = os.time; local os_dif...
util.datetime: Fixes for more liberal timezone parsing - colon and minutes are both (independantly) optional (thanks Zash)
util.datetime: Fixes for more liberal timezone parsing - colon and minutes are both (independantly) optional (thanks Zash)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
9af59d903455acaf68a44951b1478601f9a093ad
code/scripts/genie.lua
code/scripts/genie.lua
-- Solution definition solution "IntroToGraphicsCPP" location "../build" -- Only Debug and Release configurations configurations { "Debug", "Release", } -- Support for X86, X64 and 'native' (for other OSes) platforms { "x32", "x64", "Native", } -- C++ language "C++" -- Folder f...
-- Solution definition solution "IntroToGraphicsCPP" location "../build" -- Only Debug and Release configurations configurations { "Debug", "Release", } -- Support for X86, X64 and 'native' (for other OSes) platforms { "x32", "x64", "Native", } -- C++ language "C++" -- Folder f...
hack-fix for genie linker issues
hack-fix for genie linker issues
Lua
mit
Nuclearfossil/IntroToCPPGraphics,Nuclearfossil/IntroToCPPGraphics
b2a64a7b4d2e44ba8fdd4055d2b11eefceae92f9
src/lua/bcc/ld.lua
src/lua/bcc/ld.lua
--[[ Copyright 2016 GitHub, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
--[[ Copyright 2016 GitHub, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
ld.lua: fix parsing of base16 addresses
ld.lua: fix parsing of base16 addresses
Lua
apache-2.0
mkacik/bcc,zaafar/bcc,iovisor/bcc,zaafar/bcc,mcaleavya/bcc,iovisor/bcc,romain-intel/bcc,zaafar/bcc,mkacik/bcc,iovisor/bcc,shodoco/bcc,zaafar/bcc,zaafar/bcc,brendangregg/bcc,brendangregg/bcc,tuxology/bcc,brendangregg/bcc,tuxology/bcc,shodoco/bcc,romain-intel/bcc,tuxology/bcc,mcaleavya/bcc,romain-intel/bcc,mcaleavya/bcc,...
32366612085688061eeb3d0e59a40c30bb77cbc0
commands/init.lua
commands/init.lua
return function () local core = require("core")() local prompt = require("prompt")(require("pretty-print")) local fs = require("coro-fs") local env = require("env") local log = require("log").log local pathJoin = require("luvi").path.join local cwd = require('uv').cwd() local sprintf = require("string")...
return function () local core = require("core")() local prompt = require("prompt")(require("pretty-print")) local fs = require("coro-fs") local env = require("env") local log = require("log").log local pathJoin = require("luvi").path.join local cwd = require('uv').cwd() local sprintf = require("string")...
fix error where not having a username would cause lit init to crash. closes #156
fix error where not having a username would cause lit init to crash. closes #156
Lua
apache-2.0
zhaozg/lit,squeek502/lit,james2doyle/lit,luvit/lit
48ab75719c351496ccf5f05358c9f83cebc313d7
TemporalConvolution.lua
TemporalConvolution.lua
local TemporalConvolution, parent = torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution') --use cudnn to perform temporal convolutions --note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution --however, instead of separately padding data, as is required no...
local TemporalConvolution, parent = torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution') --use cudnn to perform temporal convolutions --note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution --however, instead of separately padding data, as is required no...
Update TemporalConvolution.lua
Update TemporalConvolution.lua Cleaner way of what fbesse was doing (thans fbesse!) and typo fix
Lua
bsd-3-clause
phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch
5feacc9bf8b95e0b13ec0a0e40bd9cea8f16eb2d
src_trunk/resources/anticheat-system/c_anticheat.lua
src_trunk/resources/anticheat-system/c_anticheat.lua
local cooldown = false local localPlayer = getLocalPlayer() function checkSpeedHacks() local vehicle = getPedOccupiedVehicle(localPlayer) if (vehicle) and not (cooldown) then local speedx, speedy, speedz = getElementVelocity(vehicle) local actualspeed = math.ceil(((speedx^2 + speedy^2 + speedz^2)^(0....
local cooldown = false local localPlayer = getLocalPlayer() function checkSpeedHacks() local vehicle = getPedOccupiedVehicle(localPlayer) if (vehicle) and not (cooldown) then local speedx, speedy, speedz = getElementVelocity(vehicle) local actualspeed = math.ceil(((speedx^2 + speedy^2 + speedz^2)^(0....
ac fix
ac fix git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1227 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
fa21096392b3f6ce5a60330cb1c3d5c65858d262
content/elementDrop.lua
content/elementDrop.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
fix last commit
fix last commit
Lua
agpl-3.0
Illarion-eV/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content
833b46de6a4d82f8b724f0c83dd55065c67739a6
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
Lua
apache-2.0
8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci
dbcf05997630f6cbe4250c167da96520239a0667
demo/SVM.lua
demo/SVM.lua
--[[ A translated demo from here: http://docs.opencv.org/3.0.0/d1/d73/tutorial_introduction_to_svm.html Original version by @szagoruyko --]] require 'cv.imgproc' require 'cv.imgcodecs' require 'cv.highgui' require 'cv.ml' -- Data for visual representation local width, height = 512, 512 local im = torch.ByteTensor(he...
--[[ A translated demo from here: http://docs.opencv.org/3.0.0/d1/d73/tutorial_introduction_to_svm.html When running the above example in C++ (OpenCV 3.0.0), for some reason .getSupportVectors() outputs [-0.008130081, 0.008163265]. That's why here I've set kernel type to quadratic. Original version by @szagoruyko --]...
Modify SVM demo to hide (probably) OpenCV bug
Modify SVM demo to hide (probably) OpenCV bug
Lua
mit
VisionLabs/torch-opencv
ee025a47479d4401b21325663a42ca78a8554052
lua/entities/gmod_wire_freezer.lua
lua/entities/gmod_wire_freezer.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Freezer" ENT.WireDebugName = "Freezer" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.State = false se...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Freezer" ENT.WireDebugName = "Freezer" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.State = false se...
Fix freezer causing error when unfreezing without owner (#2479)
Fix freezer causing error when unfreezing without owner (#2479) * Update gmod_wire_freezer.lua * change check to be at beginning and localize ply
Lua
apache-2.0
wiremod/wire
8a49bb4fceaa2532bcaaa94f0282a4a2dc7f1b40
src/luarocks/cmd/config.lua
src/luarocks/cmd/config.lua
--- Module implementing the LuaRocks "config" command. -- Queries information about the LuaRocks configuration. local config_cmd = {} local cfg = require("luarocks.core.cfg") local util = require("luarocks.util") local dir = require("luarocks.dir") local fun = require("luarocks.fun") config_cmd.help_summary = "Query ...
--- Module implementing the LuaRocks "config" command. -- Queries information about the LuaRocks configuration. local config_cmd = {} local cfg = require("luarocks.core.cfg") local util = require("luarocks.util") local dir = require("luarocks.dir") local fun = require("luarocks.fun") config_cmd.help_summary = "Query ...
config: Lua 5.1/5.2 compatibility fix
config: Lua 5.1/5.2 compatibility fix
Lua
mit
keplerproject/luarocks,keplerproject/luarocks,tarantool/luarocks,luarocks/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks,keplerproject/luarocks,tarantool/luarocks,luarocks/luarocks
375f06fa84ee8664ca4c898e032241f6f928b6cb
interface/configenv/range.lua
interface/configenv/range.lua
return function(env) function env.range(start, limit, step) step = step or 1 if not limit then return function() local v = start start = start + step return v end end local val = start return function() local v = val val = val + step if val > limit then val = start end ...
return function(env) function env.range(start, limit, step) step = step or 1 local v = start if not limit then return function() start = start + step return v end end return function() v = v + step if v > limit then v = start end return v end end function env.list(tbl) ...
Fix range.
Fix range.
Lua
mit
scholzd/MoonGen,dschoeffm/MoonGen,emmericp/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen
5fcf835794e618a23bdacdaf349423f7688fd9ff
lw-replay.lua
lw-replay.lua
package.path = package.path..";./?.lua;./?/init.lua;" require 'config' require 'irc' cjson = require 'cjson' require 'quotes' local sleep = require 'socket'.sleep local s = irc.new{nick = config.nick, username = config.username, realname = config.realname} s:hook('OnChat', function(user, channel, message) if me...
package.path = package.path..";./?.lua;./?/init.lua;" require 'config' require 'irc' cjson = require 'cjson' require 'quotes' local sleep = require 'socket'.sleep local s = irc.new{nick = config.nick, username = config.username, realname = config.realname} s:hook('OnChat', function(user, channel, message) if me...
bug fixes
bug fixes
Lua
mit
Houshalter/lw-replay,Houshalter/lw-replay,Houshalter/lw-replay
50e6530ceffdfc83ef6433c24f9a52850afa84fc
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
applications/luci-ddns: fix selection of custom update_url
applications/luci-ddns: fix selection of custom update_url git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6588 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
projectbismark/luci-bismark,jschmidlapp/luci,ThingMesh/openwrt-luci,8devices/carambola2-luci,saraedum/luci-packages-old,jschmidlapp/luci,stephank/luci,8devices/carambola2-luci,freifunk-gluon/luci,yeewang/openwrt-luci,ThingMesh/openwrt-luci,ch3n2k/luci,stephank/luci,eugenesan/openwrt-luci,ch3n2k/luci,ch3n2k/luci,Flexibi...
6832197e797dda3801e8fff801b9048db0d77d0e
settings/Category.lua
settings/Category.lua
-- -- A category of game settings. -- This inherits from Expander so that it can be included directly in the -- settings edit tree. -- local Category = ui.Expander:subclass { per_game = false; -- If true, will be included in the save file save = true; -- If false, will not be saved to disk at all hidden = false; ...
-- -- A category of game settings. -- This inherits from Expander so that it can be included directly in the -- settings edit tree. -- local Category = ui.Expander:subclass { per_game = false; -- If true, will be included in the save file save = true; -- If false, will not be saved to disk at all hidden = false; ...
Fix issue with settings getting double stored
Fix issue with settings getting double stored
Lua
mit
ToxicFrog/ttymor
12f588a6368ed26f8f274f4950a1c586f469e812
zmq.nobj.lua
zmq.nobj.lua
-- make generated variable nicer. set_variable_format "%s" c_module "zmq" { -- module settings. use_globals = false, hide_meta_info = true, luajit_ffi = true, sys_include "string.h", include "zmq.h", ffi_load "zmq", c_source[[ #define OBJ_UDATA_CTX_SHOULD_FREE (OBJ_UDATA_LAST_FLAG << 1) ]], ffi_source[[ local OBJ_...
-- make generated variable nicer. set_variable_format "%s" c_module "zmq" { -- module settings. use_globals = false, hide_meta_info = true, luajit_ffi = true, sys_include "string.h", include "zmq.h", ffi_load "zmq", c_source[[ #define OBJ_UDATA_CTX_SHOULD_FREE (OBJ_UDATA_LAST_FLAG << 1) ]], ffi_source[[ local OBJ_...
Fixed context initialization from FFI cdata value.
Fixed context initialization from FFI cdata value.
Lua
mit
azukiapp/lua-zmq,Neopallium/lua-zmq
03530b4afa571e82d0b55945ef58cfdd82f9283a
src/plugins/colorfinale/tangent.lua
src/plugins/colorfinale/tangent.lua
--- === plugins.colorfinale.tangent === --- --- This plugin basically just disables CP's Tangent Manager when ColorFinale is running. local require = require --local log = require "hs.logger".new "ColorFinale" local application = require "hs.application" local fcp = requi...
--- === plugins.colorfinale.tangent === --- --- This plugin basically just disables CP's Tangent Manager when ColorFinale is running. local require = require --local log = require "hs.logger".new "ColorFinale" local application = require "hs.application" local fcp = requi...
#2169 Fixed detection of CF1 being active.
#2169 Fixed detection of CF1 being active.
Lua
mit
CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost
21a46b39e30596cc3b49c843b3d6522adbe743d8
tests/config/test_links.lua
tests/config/test_links.lua
-- -- tests/config/test_links.lua -- Test the list of linked objects retrieval function. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.config_links = { } local suite = T.config_links local project = premake5.project local config = premake5.config -- -- Setup and teardown -- local sln, prj, c...
-- -- tests/config/test_links.lua -- Test the list of linked objects retrieval function. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.config_links = { } local suite = T.config_links local project = premake5.project local config = premake5.config -- -- Setup and teardown -- local sln, prj, c...
Added test for libdirs fix
Added test for libdirs fix
Lua
bsd-3-clause
annulen/premake-dev-rgeary,annulen/premake-dev-rgeary,annulen/premake-dev-rgeary
4e91e0d220f0f4ea42cc5d7db6f3a73f72eea60d
src/tools/msc.lua
src/tools/msc.lua
-- -- msc.lua -- Interface for the MS C/C++ compiler. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- premake.tools.msc = {} local msc = premake.tools.msc local project = premake.project local config = premake.config -- -- Returns list of C preprocessor flags for a configuration. -- functi...
-- -- msc.lua -- Interface for the MS C/C++ compiler. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- premake.tools.msc = {} local msc = premake.tools.msc local project = premake.project local config = premake.config -- -- Returns list of C preprocessor flags for a configuration. -- functi...
Fix broken MSC exception handling flag
Fix broken MSC exception handling flag
Lua
bsd-3-clause
dimitarcl/premake-dev,dimitarcl/premake-dev,dimitarcl/premake-dev
31df5d9604681af8c75afa82b572e56ac6590a26
modules/self-test/test_runner.lua
modules/self-test/test_runner.lua
--- -- self-test/test_runner.lua -- -- Execute unit tests and test suites. -- -- Author Jason Perkins -- Copyright (c) 2008-2016 Jason Perkins and the Premake project. --- local p = premake local m = p.modules.self_test local _ = {} function m.runTest(test) local scopedTestCall if test.testFunction then ...
--- -- self-test/test_runner.lua -- -- Execute unit tests and test suites. -- -- Author Jason Perkins -- Copyright (c) 2008-2016 Jason Perkins and the Premake project. --- local p = premake local m = p.modules.self_test local _ = {} function m.runTest(test) local scopedTestCall if test.testFunction then ...
fix bug in testing framework leaving tests in random working folders.
fix bug in testing framework leaving tests in random working folders.
Lua
bsd-3-clause
sleepingwit/premake-core,TurkeyMan/premake-core,mendsley/premake-core,Blizzard/premake-core,Blizzard/premake-core,Blizzard/premake-core,tvandijck/premake-core,Zefiros-Software/premake-core,Blizzard/premake-core,tvandijck/premake-core,mandersan/premake-core,TurkeyMan/premake-core,premake/premake-core,sleepingwit/premake...
208e6b083392672f7c2b47bb62ccebe975f90bf4
mod_blocking/mod_blocking.lua
mod_blocking/mod_blocking.lua
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
mod_blocking: Fix handling of unblocking command. Send out un-/block pushes to all resources.
mod_blocking: Fix handling of unblocking command. Send out un-/block pushes to all resources.
Lua
mit
obelisk21/prosody-modules,apung/prosody-modules,prosody-modules/import,BurmistrovJ/prosody-modules,mmusial/prosody-modules,prosody-modules/import,Craige/prosody-modules,vince06fr/prosody-modules,stephen322/prosody-modules,stephen322/prosody-modules,jkprg/prosody-modules,asdofindia/prosody-modules,LanceJenkinZA/prosody-...
fdaf61c1989acdaac7b91c983e04c4198fa8273b
packages/lime-system/files/usr/lib/lua/lime/proto/ieee80211s.lua
packages/lime-system/files/usr/lib/lua/lime/proto/ieee80211s.lua
#!/usr/bin/lua local ieee80211s_mode = require("lime.mode.ieee80211s") local ieee80211s = {} ieee80211s.configured = false function ieee80211s.configure(args) ieee80211s.configured = true end function ieee80211s.setup_interface(ifname, args) if ifname:match("^wlan%d+_"..ieee80211s_mode.wifi_mode) then local li...
#!/usr/bin/lua local ieee80211s_mode = require("lime.mode.ieee80211s") local ieee80211s = {} ieee80211s.configured = false function ieee80211s.configure(args) ieee80211s.configured = true end function ieee80211s.setup_interface(ifname, args) if ifname:match("^wlan%d+."..ieee80211s_mode.wifi_mode) then local li...
lime-system: fix ieee80211s proto, correctly construct ifnames
lime-system: fix ieee80211s proto, correctly construct ifnames This is essentially the same as 42749618f37d7f17cfd8879dd78e96525be73e02 "lime-system: construct ifnames using '_' as protoVlanSeparator and '-' as wifiModeSeparator" in that commit, i forgot to update ieee80211s.lua in addition to adhoc.lua
Lua
agpl-3.0
p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages
8886ff37c9d612f318a95a98ea61cbce4898de0d
extensions/caffeinate/init.lua
extensions/caffeinate/init.lua
--- === hs.caffeinate === --- --- Control system power states (sleeping, preventing sleep, screen locking, etc) --- --- **NOTE**: Any sleep preventions will be removed when hs.reload() is called. A future version of the module will save/restore state across reloads. local caffeinate = require "hs.caffeinate.internal" ...
--- === hs.caffeinate === --- --- Control system power states (sleeping, preventing sleep, screen locking, etc) --- --- **NOTE**: Any sleep preventions will be removed when hs.reload() is called. A future version of the module will save/restore state across reloads. local caffeinate = require "hs.caffeinate.internal" ...
Fix caffeinate.startScreensaver() to work under High Sierra
Fix caffeinate.startScreensaver() to work under High Sierra The path in High Sierra has changed, so this no longer works. Calling the ScreenSaverEngine application seems to be a more stable and correct way to trigger the screensaver that works across versions.
Lua
mit
CommandPost/CommandPost-App,CommandPost/CommandPost-App,latenitefilms/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,cmsj/...
5fd0e619d1d41623caba259a4f11e2750493a363
lua/spam.lua
lua/spam.lua
spam_cooldown = {} function spam_callback(event, origin, params) if spam_cooldown[origin] ~= nil and spam_cooldown[origin] > os.time() - 120 then irc_msg(params[1], "Don't get too excited, " .. origin) return end if event == "!spam" then spam(params[2], origin, params[1]) elseif event == "!rainbow" then ...
spam_cooldown = {} function spam_callback(event, origin, params) if spam_cooldown[origin] ~= nil and spam_cooldown[origin] > os.time() - 120 then irc_msg(params[1], "Don't get too excited, " .. origin) return end if event == "!spam" then spam(params[2], origin, params[1]) elseif event == "!rainbow" then ...
fix !spam sometimes dropping first character if it is an integer (it was being considered as part of the color code)
fix !spam sometimes dropping first character if it is an integer (it was being considered as part of the color code)
Lua
mit
wetfish/denice
02fa4572494b8b317db6dc06183e1e8ea4a5235c
.hammerspoon/init.lua
.hammerspoon/init.lua
local mash = {"cmd", "alt", "ctrl"} local smash = {"cmd", "alt", "ctrl", "shift"} function current_app() return hs.application.frontmostApplication() end -- Application shortcuts -- local safari_esc = hs.hotkey.new({}, "escape", function() end, function() -- if current_app():name() == "Safari" then -- hs.eve...
local mash = {"cmd", "alt", "ctrl"} local smash = {"cmd", "alt", "ctrl", "shift"} function current_app() return hs.application.frontmostApplication() end -- Application shortcuts -- local safari_esc = hs.hotkey.new({}, "escape", function() end, function() -- if current_app():name() == "Safari" then -- hs.eve...
[hammerspoon] disable attempt at fixing esc in fullscreen safari
[hammerspoon] disable attempt at fixing esc in fullscreen safari
Lua
mit
kejadlen/dotfiles,kejadlen/dotfiles
bd79b5e8c4ff4e0b29f2b0be73d1bacdc2dac416
.hammerspoon/init.lua
.hammerspoon/init.lua
local logger = hs.logger.new('init', 'info') local eventTypes = hs.eventtap.event.types local eventProps = hs.eventtap.event.properties -- Fix deadkey 'n' on my internal keyboard hs.eventtap.new({eventTypes.keyDown}, function(event) local keyCode = event:getProperty(eventProps.keyboardEventKeycode) local ...
local logger = hs.logger.new('init', 'info') function focus_prev() local windows = hs.window.filter.default:getWindows( hs.window.filter.sortByLastFocused ) windows[2]:focus() end hs.hotkey.bind({"option"}, "j", function() hs.hints.windowHints() -- expose:show() end) hs.hotkey.bind({"option...
I get my keyboard fixed, yay! :)
I get my keyboard fixed, yay! :)
Lua
bsd-3-clause
tungd/dotfiles-lean,tungd/dotfiles-lean,tungd/dotfiles-lean
0a572ae94016d206066036fb34380a1c16634a92
aspects/nvim/files/.config/nvim/lua/wincent/lsp.lua
aspects/nvim/files/.config/nvim/lua/wincent/lsp.lua
local nnoremap = wincent.vim.nnoremap local lsp = {} local on_attach = function () nnoremap('<Leader>ld', "<cmd>lua require'lspsaga.diagnostic'.show_line_diagnostics()<CR>", {silent = true}) nnoremap('<c-]>', '<cmd>lua vim.lsp.buf.definition()<CR>', {silent = true}) nnoremap('K', "<cmd>lua require'lspsaga.hover...
local nnoremap = wincent.vim.nnoremap local lsp = {} local on_attach = function () nnoremap('<Leader>ld', "<cmd>lua require'lspsaga.diagnostic'.show_line_diagnostics()<CR>", {buffer = true, silent = true}) nnoremap('<c-]>', '<cmd>lua vim.lsp.buf.definition()<CR>', {buffer = true, silent = true}) nnoremap('K', "...
fix(nvim): make LSP mappings buffer-local
fix(nvim): make LSP mappings buffer-local I only noticed this was broken a few days ago, but I feel like it probably was broken for a while. We don't want to bind `<C-]>` to `vim.lsp.buf.definition()` in some filetypes (eg. `help`) because that will break tag-based navigation.
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
541bd632e17fa91605afda3bd2942c4fbebd0b5a
onmt/train/Checkpoint.lua
onmt/train/Checkpoint.lua
-- Class for saving and loading models during training. local Checkpoint = torch.class('Checkpoint') local options = { { '-train_from', '', [[Path to a checkpoint.]], { valid = onmt.utils.ExtendedCmdLine.fileNullOrExists } }, { '-continue', false, [[If set, continue the training whe...
-- Class for saving and loading models during training. local Checkpoint = torch.class('Checkpoint') local options = { { '-train_from', '', [[Path to a checkpoint.]], { valid = onmt.utils.ExtendedCmdLine.fileNullOrExists } }, { '-continue', false, [[If set, continue the training whe...
Fix options restoring that could fail with boolean flags
Fix options restoring that could fail with boolean flags
Lua
mit
jungikim/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,...
7626b3bb6a09d99234c44129ab0b90319fe52f31
src/lfs/variables_build.lua
src/lfs/variables_build.lua
local module = ... local function build_list(objects) local out = {} for key, value in pairs(objects) do if type(value) == 'table' then if type(key) == 'string' then table.insert(out, key .. "=") end table.insert(out, "{") table.insert(out, build_list(value)) table.insert...
local module = ... local function build_list(objects) local out = {} for key, value in pairs(objects) do if type(value) == 'table' then if type(key) == 'string' then table.insert(out, key .. "=") end table.insert(out, "{") table.insert(out, build_list(value)) table.insert...
Fix panic when settings value is null.
Fix panic when settings value is null. This fixes a panic that is triggered when a null value provided in a the settings sent. In 3.0 if the value in the table is null (without quotes) it returns a "lightfunction" instead of "nil". This adds a check for this to prevent corrupting the settings table.
Lua
apache-2.0
konnected-io/konnected-security,konnected-io/konnected-security
59845a6b3ba162e65b5f118abc4acb7b552e520c
src/npge/util/configGenerator.lua
src/npge/util/configGenerator.lua
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. local function serialize(value) local format if type(value) == "number" then format = "%d" elseif type(value) == "boolean" then value = tostring(value) ...
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. local function serialize(value) local format if type(value) == "number" or type(value) == "boolean"then value = tostring(value) format = "%s" elseif type...
configGenerator: fix float serialization (Lua 5.3)
configGenerator: fix float serialization (Lua 5.3) See https://travis-ci.org/npge/lua-npge/jobs/61230776#L1644 See https://ci.appveyor.com/project/starius/lua-npge/build/0.0.1.23-test/job/ta4fsqv17o9ewre0#L1238
Lua
mit
starius/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge
7ad2f448ae03cc108dad90159da7559b0805465f
packages/lime-system/files/usr/lib/lua/lime/config.lua
packages/lime-system/files/usr/lib/lua/lime/config.lua
#!/usr/bin/lua --! LibreMesh is modular but this doesn't mean parallel, modules are executed --! sequencially, so we don't need to worry about transactionality and all other --! stuff that affects parrallels database, at moment we don't need parallelism --! as this is just some configuration stuff and is not performan...
#!/usr/bin/lua --! LibreMesh is modular but this doesn't mean parallel, modules are executed --! sequencially, so we don't need to worry about transactionality and all other --! stuff that affects parrallels database, at moment we don't need parallelism --! as this is just some configuration stuff and is not performan...
Fix config.get_bool in case default is passed
Fix config.get_bool in case default is passed
Lua
agpl-3.0
libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages
c486936898887aab61e79d090f8eeedbbc0a6935
net/http.lua
net/http.lua
local socket = require "socket" local mime = require "mime" local url = require "socket.url" local server = require "net.server" local connlisteners_get = require "net.connlisteners".get; local listener = connlisteners_get("httpclient") or error("No httpclient listener!"); local t_insert, t_concat = table.insert, t...
local socket = require "socket" local mime = require "mime" local url = require "socket.url" local server = require "net.server" local connlisteners_get = require "net.connlisteners".get; local listener = connlisteners_get("httpclient") or error("No httpclient listener!"); local t_insert, t_concat = table.insert, t...
net.http: Fix for callbacks being triggered multiple times for the same request
net.http: Fix for callbacks being triggered multiple times for the same request
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
b5204f0887b60a8a794f2c709f07861bfc9947a6
libs/httpd/luasrc/httpd.lua
libs/httpd/luasrc/httpd.lua
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the...
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the...
* libs/httpd: Fixed last commit
* libs/httpd: Fixed last commit
Lua
apache-2.0
male-puppies/luci,teslamint/luci,palmettos/test,palmettos/test,oyido/luci,thesabbir/luci,rogerpueyo/luci,chris5560/openwrt-luci,nwf/openwrt-luci,aircross/OpenWrt-Firefly-LuCI,sujeet14108/luci,marcel-sch/luci,wongsyrone/luci-1,remakeelectric/luci,dwmw2/luci,teslamint/luci,teslamint/luci,thess/OpenWrt-luci,bittorf/luci,d...
56214f1955767f0db1aad5d2f3b786a31470a475
kong/plugins/http-log/migrations/001_280_to_300.lua
kong/plugins/http-log/migrations/001_280_to_300.lua
local operations = require "kong.db.migrations.operations.280_to_300" local function ws_migration_teardown(ops) return function(connector) return ops:fixup_plugin_config(connector, "http-log", function(config) local updated = false if type(config) == "table" then -- not required, but let's be defens...
local operations = require "kong.db.migrations.operations.280_to_300" local function ws_migration_teardown(ops) return function(connector) return ops:fixup_plugin_config(connector, "http-log", function(config) local updated = false if type(config) == "table" then -- not required, but let's be defens...
fix(http-log) properly migrate headers when multiple values are provided
fix(http-log) properly migrate headers when multiple values are provided In Kong <=2.8, the `http-log` plugin supports providing multiple header values in the array, and will automatically concatenate them (delimited by `, `) when sent over the wire to the defined HTTP log endpoint. Prior to these code changes, if so...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
bba762a27a6985c51e2240d4f6e3ca4c20f826fb
kong/plugins/datadog/schema.lua
kong/plugins/datadog/schema.lua
local typedefs = require "kong.db.schema.typedefs" local STAT_NAMES = { "kong_latency", "latency", "request_count", "request_size", "response_size", "upstream_latency", } local STAT_TYPES = { "counter", "gauge", "histogram", "meter", "set", "timer", "distribution", } local CONSUMER_IDENTIFI...
local typedefs = require "kong.db.schema.typedefs" local STAT_NAMES = { "kong_latency", "latency", "request_count", "request_size", "response_size", "upstream_latency", } local STAT_TYPES = { "counter", "gauge", "histogram", "meter", "set", "timer", "distribution", } local CONSUMER_IDENTIFI...
fix(datadog) default value for metrics specified twice (#8315)
fix(datadog) default value for metrics specified twice (#8315)
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
dff5065fcb90ad8310d298c26bd1a4fb98f4e929
lua/entities/gmod_wire_latch.lua
lua/entities/gmod_wire_latch.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Constraint Latch" ENT.Purpose = "Controllable weld and nocollide between two selected entities" ENT.WireDebugName = "Latch" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) se...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Constraint Latch" ENT.Purpose = "Controllable weld and nocollide between two selected entities" ENT.WireDebugName = "Latch" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) se...
Revert "Merge pull request #1826 from thegrb93/fix-latch-running-too-soon"
Revert "Merge pull request #1826 from thegrb93/fix-latch-running-too-soon" This reverts commit eb4194e52c3b3aaafbeafdd1a42fac9de6529870, reversing changes made to 121f0ff3f1ccc1579d311a79d3878d21861edfe3.
Lua
apache-2.0
NezzKryptic/Wire,garrysmodlua/wire,wiremod/wire,dvdvideo1234/wire,sammyt291/wire,Grocel/wire
9697aee2b99cdc95e35c87d9ae561f669dda0633
kong/plugins/oauth2/migrations/001_14_to_15.lua
kong/plugins/oauth2/migrations/001_14_to_15.lua
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "oauth2_credentials" ADD "redirect_uris" TEXT[]; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END$$; DO $$ BEGIN UPDATE "oauth2_credentials" SET...
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "oauth2_credentials" ADD "redirect_uris" TEXT[]; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END$$; DO $$ BEGIN UPDATE "oauth2_credentials" SET...
fix(migrations) fix migration of not-expiring ttls in oauth2 tokens (#4588)
fix(migrations) fix migration of not-expiring ttls in oauth2 tokens (#4588) Fixes an issue reported at #4572, where migrations could set a 0 ttl for oauth2_tokens that have never expiring 0 tokens, leading to deletion of such tokens. Fixes #4572.
Lua
apache-2.0
Kong/kong,Mashape/kong,Kong/kong,Kong/kong
08c4139c65b9d297c022619fdda37482bc107886
test/autobahn_server_test.lua
test/autobahn_server_test.lua
local uv = require "lluv" local websocket = require "lluv.websocket" local Autobahn = require "./autobahn" websocket.deflate = require "lluv.websocket.extensions.permessage-deflate" local ctx do local ok, ssl = pcall(require, "lluv.ssl") if ok then ctx = assert(ssl.context{ protocol = "t...
local uv = require "lluv" local websocket = require "lluv.websocket" local Autobahn = require "./autobahn" deflate = require "websocket.extensions.permessage-deflate" local ctx do local ok, ssl = pcall(require, "lluv.ssl") if ok then ctx = assert(ssl.context{ protocol = "tlsv1"...
Fix. server test test use correct deflate module
Fix. server test test use correct deflate module
Lua
mit
moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket
aa64f58e1c533582385e33c3055e0626f7bc244a
example.lua
example.lua
package.cpath = "./?.so" local gumbo = require "gumbo" local filename = ... assert(filename, "A filename argument is required") local document = assert(gumbo.parse_file(filename)) local depth = 1 local function write(text, depth, quoted) local indent = string.rep(" ", depth*4) local text = text:match("^%s*(.*...
package.cpath = "./?.so" local gumbo = require "gumbo" local filename = ... assert(filename, "A filename argument is required") local document = assert(gumbo.parse_file(filename)) local depth = 1 local function write(text, depth, quoted) local indent = string.rep(" ", depth*4) local text = text:match("^%s*(.*...
Fix example.lua
Fix example.lua
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
1085049310cce11728f74dd7d46571bc579d7afb
core/inputs-common.lua
core/inputs-common.lua
SILE.inputs.common = { init = function (_, tree) local dclass = tree.options.class or "plain" tree.options.papersize = tree.options.papersize or "a4" SILE.documentState.documentClass = SILE.require(dclass, "classes") for k, v in pairs(tree.options) do if SILE.documentState.documentClass.options[...
SILE.inputs.common = { init = function (_, tree) local dclass = tree.options.class or "plain" tree.options.papersize = tree.options.papersize or "a4" SILE.documentState.documentClass = SILE.require(dclass, "classes") for k, v in pairs(tree.options) do if SILE.documentState.documentClass.options[...
fix(core): Gracefully do nothing when SILE.process() passed nothing
fix(core): Gracefully do nothing when SILE.process() passed nothing
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
1d4c213b32b69e20c462618b8edc893772b8edfd
scheduled/factionLeader.lua
scheduled/factionLeader.lua
--Checks if the playable faction leaders is logged in and thus the NPC needs to be out of player sight require("base.common") module("scheduled.factionLeader", package.seeall) function checkFactionLeader() informationTable = {["Rosaline Edwards"] = {usualPosition=position(122, 521, 0), newPosition=position(237, 10...
--Checks if the playable faction leaders is logged in and thus the NPC needs to be out of player sight require("base.common") module("scheduled.factionLeader", package.seeall) local informationTable = { ["Rosaline Edwards"] = {usualPosition=position(122, 521, 0), newPosition=position(237, 104, 0)}, ["Valerio Guili...
moved table outside of function and fixed a mistake in if statement
moved table outside of function and fixed a mistake in if statement
Lua
agpl-3.0
vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content
fd06a47d569becd8d1be7e935a7cea1a75dc5e71
lib/srcnn.lua
lib/srcnn.lua
require 'w2nn' -- ref: http://arxiv.org/abs/1502.01852 -- ref: http://arxiv.org/abs/1501.00092 local srcnn = {} function nn.SpatialConvolutionMM:reset(stdv) stdv = math.sqrt(2 / ((1.0 + 0.1 * 0.1) * self.kW * self.kH * self.nOutputPlane)) self.weight:normal(0, stdv) self.bias:zero() end if cudnn and cudnn.Sp...
require 'w2nn' -- ref: http://arxiv.org/abs/1502.01852 -- ref: http://arxiv.org/abs/1501.00092 local srcnn = {} function nn.SpatialConvolutionMM:reset(stdv) stdv = math.sqrt(2 / ((1.0 + 0.1 * 0.1) * self.kW * self.kH * self.nOutputPlane)) self.weight:normal(0, stdv) self.bias:zero() end if cudnn and cudnn.Sp...
Fix clearState
Fix clearState
Lua
mit
nagadomi/waifu2x,nagadomi/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x
cf1884c357462cba0aaa9dc15ce07f4a480d1c72
src/bot.lua
src/bot.lua
local bot = {} local api = require("api") local utils = require("utils") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.video then return "Video" elsei...
local bot = {} local api = require("api") local utils = require("utils") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.video then return "Video" elsei...
fix: move bot.downloadFile into bot.run
fix: move bot.downloadFile into bot.run
Lua
apache-2.0
SJoshua/Project-Small-R
03c5655779fd3c8d232be92246fc69dfaa64b84c
t/iolua.lua
t/iolua.lua
-- This script runs on both lua.exe and nyagos' lua_f local tmpfn = os.getenv("TEMP") .. "\\tmp.txt" local fd = assert(io.open(tmpfn,"w")) assert(fd:write('HOGEHOGE\n')) assert(fd:flush()) fd:close() local ok=false for line in io.lines(tmpfn) do if line == 'HOGEHOGE' then ok = true end ...
-- This script runs on both lua.exe and nyagos' lua_f local tmpfn = os.tmpname() local fd = assert(io.open(tmpfn,"w")) assert(fd:write('HOGEHOGE\n')) assert(fd:flush()) fd:close() local ok=false for line in io.lines(tmpfn) do if line == 'HOGEHOGE' then ok = true end end if ok then ...
Fix: t/iolua.lua could not run on Linux
Fix: t/iolua.lua could not run on Linux
Lua
bsd-3-clause
tsuyoshicho/nyagos,nocd5/nyagos,zetamatta/nyagos
34a43d0aa8c8d3a6fef5b634f2d3cb010e1b9020
scen_edit/display_util.lua
scen_edit/display_util.lua
DisplayUtil = LCS.class{} local fontSize = 12 function DisplayUtil:init(isWidget) self.isWidget = isWidget self.texts = {} self.unitSays = {} end function DisplayUtil:AddText(text, coords, color, time) table.insert(self.texts, { text = text, coords = coords, color = color, ...
DisplayUtil = LCS.class{} local fontSize = 12 function DisplayUtil:init(isWidget) self.isWidget = isWidget self.texts = {} self.unitSays = {} end function DisplayUtil:AddText(text, coords, color, time) table.insert(self.texts, { text = text, coords = coords, color = color, ...
always select followable unit FIXME
always select followable unit FIXME
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
b35dba590d3c1e2369ac734870d54c94cc641008
src/plugins/core/quit/quit.lua
src/plugins/core/quit/quit.lua
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Q U I T -- -----------------------------------------------------------------------------...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Q U I T -- -----------------------------------------------------------------------------...
Fixed Quit Plugin
Fixed Quit Plugin
Lua
mit
cailyoung/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks
bcb1f4361736bdac551079c8a9ea279e1f014e2d
plugins/reddit.lua
plugins/reddit.lua
local command = 'reddit [r/subreddit | query]' local doc = [[``` /reddit [r/subreddit | query] Returns the four (if group) or eight (if private message) top posts for the given subreddit or query, or from the frontpage. Aliases: /r, /r/[subreddit] ```]] local triggers = { '^/reddit[@'..bot.username..']*', '^/r[@'..b...
local command = 'reddit [r/subreddit | query]' local doc = [[``` /reddit [r/subreddit | query] Returns the four (if group) or eight (if private message) top posts for the given subreddit or query, or from the frontpage. Aliases: /r, /r/[subreddit] ```]] local triggers = { '^/reddit[@'..bot.username..']*', '^/r[@'..b...
Fixed reddit.lua bug.
Fixed reddit.lua bug.
Lua
agpl-3.0
bb010g/otouto,Brawl345/Brawlbot-v2,TiagoDanin/SiD,topkecleon/otouto,barreeeiroo/BarrePolice
aee4fcd6be2d961a6d0427948f168b7127cb0741
mod_lastlog/mod_lastlog.lua
mod_lastlog/mod_lastlog.lua
local datamanager = require "util.datamanager"; local jid = require "util.jid"; local time = os.time; local log_ip = module:get_option_boolean("lastlog_ip_address", false); local host = module.host; module:hook("authentication-success", function(event) local session = event.session; if session.username then datama...
local datamanager = require "util.datamanager"; local jid = require "util.jid"; local time = os.time; local log_ip = module:get_option_boolean("lastlog_ip_address", false); local host = module.host; module:hook("authentication-success", function(event) local session = event.session; if session.username then datama...
mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik)
mod_lastlog: Fix traceback if no session included with event (eg from mod_register_web) (thanks biszkopcik)
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
347457032df45bf4b4bf5ac6970d72bd34eca4c7
lua/starfall/libs_sh/net.lua
lua/starfall/libs_sh/net.lua
------------------------------------------------------------------------------- -- Networking library. ------------------------------------------------------------------------------- local net = net --- Net message library. Used for sending data from the server to the client and back local net_library, _ = SF.Librari...
------------------------------------------------------------------------------- -- Networking library. ------------------------------------------------------------------------------- local net = net --- Net message library. Used for sending data from the server to the client and back local net_library, _ = SF.Librari...
[Fixed] client->server net messages not telling you which player sent it
[Fixed] client->server net messages not telling you which player sent it
Lua
bsd-3-clause
Xandaros/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,INPStarfall/Starfall,Xandaros/Starfall
10dc776d2019ac9eb373a134fba3ae3ab10b0d2e
src_trunk/resources/chat-system/c_chat_icon.lua
src_trunk/resources/chat-system/c_chat_icon.lua
function checkForChat() local chatting = getElementData(getLocalPlayer(), "chatting") if (isChatBoxInputActive() and chatting==0) then setElementData(getLocalPlayer(), "chatting", true, 1) elseif (not isChatBoxInputActive() and chatting==1) then setElementData(getLocalPlayer(), "chatting", true, 0) end...
function checkForChat() local chatting = getElementData(getLocalPlayer(), "chatting") if (isChatBoxInputActive() and chatting==0) then setElementData(getLocalPlayer(), "chatting", true, 1) elseif (not isChatBoxInputActive() and chatting==1) then setElementData(getLocalPlayer(), "chatting", true, 0) end...
Fixed a bug with the chat image when the element is not on screen
Fixed a bug with the chat image when the element is not on screen git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@332 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
833feff04e2f5d132d032138ca6d967bd005f24f
nyagos.d/brace.lua
nyagos.d/brace.lua
local orgfilter = nyagos.filter nyagos.filter = function(cmdline) if orgfilter then local cmdline_ = orgfilter(cmdline) if cmdline_ then cmdline = cmdline_ end end repeat local last = true cmdline = cmdline:gsub("(%S*)(%b{})(%S*)", function(left,...
local orgfilter = nyagos.filter nyagos.filter = function(cmdline) if orgfilter then local cmdline_ = orgfilter(cmdline) if cmdline_ then cmdline = cmdline_ end end local save={} cmdline = cmdline:gsub("((['\"])[^%2]*%2)", function(s,_) local i=#save+...
Fixed #77: echo "{a,b}" -> "a b" is printed.
Fixed #77: echo "{a,b}" -> "a b" is printed.
Lua
bsd-3-clause
tyochiai/nyagos,hattya/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos,hattya/nyagos,kissthink/nyagos,kissthink/nyagos,hattya/nyagos,nocd5/nyagos
c790172736b60b32d62356013c9837cadba783b6
src/lua/sancus/template/init.lua
src/lua/sancus/template/init.lua
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local utils = assert(require"sancus.utils") local Class = assert(require"sancus.object").Class local generator = assert(require"sancus.template.generator")...
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local utils = assert(require"sancus.utils") local Class = assert(require"sancus.object").Class local generator = assert(require"sancus.template.generator")...
template:yield: fix to be sure to be passing strings along
template:yield: fix to be sure to be passing strings along
Lua
bsd-2-clause
sancus-project/sancus-lua-template
11051ce01b2e3ba21b79d517875d3b8c90d389be
pud/level/TileLevelView.lua
pud/level/TileLevelView.lua
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local TileLevelView = Class{name='TileLevelV...
local Class = require 'lib.hump.class' local LevelView = require 'pud.level.LevelView' local Map = require 'pud.level.Map' local MapUpdateFinishedEvent = require 'pud.event.MapUpdateFinishedEvent' -- TileLevelView -- draws tiles for each node in the level map to a framebuffer, which is then -- drawn to screen local Ti...
fix map sometimes not having size when drawn
fix map sometimes not having size when drawn
Lua
mit
scottcs/wyx
d5075d8a3f560928762307613fd2c0b5f15e035e
tests/test-http-stream-finish.lua
tests/test-http-stream-finish.lua
local http = require("http") require('tap')(function(test) test('http stream end', function(expect) local server server = http.createServer(function (req, res) local body = "Hello world\n" res:on("finish", expect(function() p('sending resp finished') server:close() end)) ...
local http = require("http") require('tap')(function(test) test('http stream end', function(expect) local server server = http.createServer(function (req, res) local body = "Hello world\n" res:writeHead(200, { ["Content-Type"] = "text/plain", ["Content-Length"] = #body }) ...
fix stream finish
fix stream finish
Lua
apache-2.0
bsn069/luvit,bsn069/luvit,kaustavha/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,zhaozg/luvit,kaustavha/luvit,luvit/luvit,luvit/luvit
0b354cb9fdbb8ef6784d3c4ce63e052e47cddb25
tests/podcast/main3.lua
tests/podcast/main3.lua
require "sprite" require "theme" require "timer" local W, H = theme.scr.w(), theme.scr.h() local tiles = {} local WX, HY = 64, 64 local WW, HH = math.floor(W / WX), math.floor(H / HY) local pad = 2 local book_spr = sprite.new "book.png" local wh1_spr = sprite.new "wheel1.png" local wh2_spr = sprite.new "wheel2.png...
require "sprite" require "theme" require "timer" local W, H = theme.scr.w(), theme.scr.h() local tiles = {} local WX, HY = 64, 64 local WW, HH = math.floor(W / WX), math.floor(H / HY) local pad = 2 local book_spr = sprite.new "book.png" local wh1_spr = sprite.new "wheel1.png" local wh2_spr = sprite.new "wheel2.png...
fixes in podcast demo
fixes in podcast demo
Lua
mit
gl00my/stead3
64051b0ab47f71efdeb723aee145553496b17b38
script/c80800067.lua
script/c80800067.lua
--オノマト連攜 function c80800067.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c80800067.cost) e1:SetTarget(c80800067.target) e1:SetOperation(c80800067.activate) c:RegisterEffect(e...
--オノマト連攜 function c80800067.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c80800067.cost) e1:SetTarget(c80800067.target) e1:SetOperation(c80800067.activate) c:RegisterEffect(e...
fix add cost
fix add cost
Lua
mit
Tic-Tac-Toc/DevProLauncher,sidschingis/DevProLauncher,SuperAndroid17/DevProLauncher
e2b2312333675cea0de7c5abcad2686321338b89
Roster.lua
Roster.lua
------------------------------------------------------------------------------- -- Roster handling code ------------------------------------------------------------------------------- function EPGP:GetRoster() if (not self.roster) then self.roster = { } end return self.roster end function EPGP:GetAlts() i...
------------------------------------------------------------------------------- -- Roster handling code ------------------------------------------------------------------------------- function EPGP:GetRoster() if (not self.roster) then self.roster = { } end return self.roster end function EPGP:GetAlts() i...
Fix immediate refresh of roster when a change in EP or GP happens.
Fix immediate refresh of roster when a change in EP or GP happens.
Lua
bsd-3-clause
hayword/tfatf_epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp
63d1eedade9a4a393d681bacd91610c4ec70cbf8
lua/sendScan.lua
lua/sendScan.lua
local geolyzer = require('component').geolyzer; dofile 'tcp.lua'; -- todo: properly package this stuff dofile 'trackPosition.lua'; function weightedAverage(n1, w1, n2, w2) return (n1*w1 + n2*w2)/(w1 + w2); end function scanVolume(x, z, y, w, d, h, times) -- default to 0 (which is true in lua) times = (times - 1...
local geolyzer = require('component').geolyzer; dofile 'tcp.lua'; -- todo: properly package this stuff dofile 'trackPosition.lua'; function weightedAverage(n1, w1, n2, w2) return (n1*w1 + n2*w2)/(w1 + w2); end function scanVolume(x, z, y, w, d, h, times) -- default to 0 (which is true in lua) if times then ...
fixed the default value times parameter, scanPlane now scans one additional row it was missing before
fixed the default value times parameter, scanPlane now scans one additional row it was missing before
Lua
mit
dunstad/roboserver,dunstad/roboserver
79d8f8026c3e6fcd9c9e78f58d7cc5e6d7a9997c
premake.lua
premake.lua
project.name = "Premake4" -- Project options addoption("no-tests", "Build without automated tests") -- Output directories project.config["Debug"].bindir = "bin/debug" project.config["Release"].bindir = "bin/release" -- Packages dopackage("src") -- Cleanup code function doclean(cmd,...
project.name = "Premake4" -- Project options addoption("no-tests", "Build without automated tests") -- Output directories project.config["Debug"].bindir = "bin/debug" project.config["Release"].bindir = "bin/release" -- Packages dopackage("src") -- Cleanup code function doclean(cmd,...
Another fix to my fix
Another fix to my fix
Lua
bsd-3-clause
soundsrc/premake-stable,grbd/premake-core,sleepingwit/premake-core,tvandijck/premake-core,dcourtois/premake-core,tvandijck/premake-core,starkos/premake-core,prapin/premake-core,prapin/premake-core,bravnsgaard/premake-core,alarouche/premake-core,noresources/premake-core,starkos/premake-core,dcourtois/premake-core,sleepi...
3fd27251225acaaac9cb2e4a2accf7fdb139844e
profile.lua
profile.lua
-- Begin of globals bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true} access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["designated"] = true } access_tag_blackli...
-- Begin of globals bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true, ["sally_port"] = true, ["gate"] = true} access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["d...
Fixes issue #400
Fixes issue #400
Lua
bsd-2-clause
deniskoronchik/osrm-backend,hydrays/osrm-backend,ramyaragupathy/osrm-backend,bjtaylor1/osrm-backend,ibikecph/osrm-backend,Project-OSRM/osrm-backend,antoinegiret/osrm-backend,bjtaylor1/osrm-backend,raymond0/osrm-backend,duizendnegen/osrm-backend,nagyistoce/osrm-backend,frodrigo/osrm-backend,bitsteller/osrm-backend,keesk...
440f90f42a636a3f1cf17393e7d3360050aa7d41
kong/plugins/jwt/handler.lua
kong/plugins/jwt/handler.lua
local singletons = require "kong.singletons" local BasePlugin = require "kong.plugins.base_plugin" local cache = require "kong.tools.database_cache" local responses = require "kong.tools.responses" local constants = require "kong.constants" local jwt_decoder = require "kong.plugins.jwt.jwt_parser" local string_format =...
local singletons = require "kong.singletons" local BasePlugin = require "kong.plugins.base_plugin" local cache = require "kong.tools.database_cache" local responses = require "kong.tools.responses" local constants = require "kong.constants" local jwt_decoder = require "kong.plugins.jwt.jwt_parser" local string_format =...
fix(jwt) default algorithm to 'HS256'
fix(jwt) default algorithm to 'HS256' When migrating from an older version of Kong, the 'algorithm' field is left empty. Better to include it in the code rather than in the migration to resolve the issue for users who already migrated. Fix #1233
Lua
apache-2.0
beauli/kong,ccyphers/kong,salazar/kong,Kong/kong,Kong/kong,Mashape/kong,shiprabehera/kong,Kong/kong,icyxp/kong,akh00/kong,Vermeille/kong,jebenexer/kong,li-wl/kong,jerizm/kong,smanolache/kong
ce8ac69aa22088b6894ec49e3a9d9990c1a8a884
Peripherals/GPU/modules/window.lua
Peripherals/GPU/modules/window.lua
--GPU: Window and canvas creation. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local events = require("Engine.events") local RenderVars = GPUVars.Render local WindowVars = GPUVars.Window --==Localized Lua Library==-- local mathFloor = math.floor --==Local Variables==...
--GPU: Window and canvas creation. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local events = require("Engine.events") local RenderVars = GPUVars.Render local WindowVars = GPUVars.Window --==Localized Lua Library==-- local mathFloor = math.floor --==Local Variables==...
Fix #253
Fix #253
Lua
mit
RamiLego4Game/LIKO-12
3fcd60fc2be0381d958f7a7909658d6f5404af4d
BN-absorber/BN-absorber.lua
BN-absorber/BN-absorber.lua
require('nn') local absorb_bn_conv = function (w, b, mean, invstd, affine, gamma, beta) w:cmul(invstd:view(w:size(1),1):repeatTensor(1,w:nElement()/w:size(1))) b:add(-mean):cmul(invstd) if affine then w:cmul(gamma:view(w:size(1),1):repeatTensor(1,w:nElement()/w:size(1))) b:cmul(gamma):add(beta) ...
require('nn') local absorb_bn_conv = function (w, b, mean, invstd, affine, gamma, beta) w:cmul(invstd:view(w:size(1),1):repeatTensor(1,w:nElement()/w:size(1))) b:add(-mean):cmul(invstd) if affine then w:cmul(gamma:view(w:size(1),1):repeatTensor(1,w:nElement()/w:size(1))) b:cmul(gamma):add(beta) ...
Fix broken BN-absorber due to nn package update
Fix broken BN-absorber due to nn package update the latest BN implementation uses running_var to calculate running average while the old implementation has running_std
Lua
bsd-3-clause
e-lab/torch-toolbox,e-lab/torch-toolbox,e-lab/torch-toolbox
a793f7c02b541bc6e60cb78197351ae16e36c3fc
gateway/src/resty/http_ng/headers.lua
gateway/src/resty/http_ng/headers.lua
local insert = table.insert local concat = table.concat local assert = assert local pairs = pairs local rawset = rawset local rawget = rawget local setmetatable = setmetatable local getmetatable = getmetatable local type = type local lower = string.lower local upper = string.upper local ngx_re = ngx.re local re_gsub = ...
local insert = table.insert local concat = table.concat local assert = assert local pairs = pairs local rawset = rawset local rawget = rawget local setmetatable = setmetatable local getmetatable = getmetatable local type = type local lower = string.lower local upper = string.upper local ngx_re = ngx.re local re_gsub = ...
Openresty Update: Fix headers ordering issues
Openresty Update: Fix headers ordering issues When setting headers, the order is important in case of duplication, using tablex that keep the order as it was set. Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@acalustra.com>
Lua
mit
3scale/docker-gateway,3scale/docker-gateway
7430260d600bdf8a9a5c3f28d4f9364d172dee03
lib/switchboard_modules/lua_script_debugger/premade_scripts/benchmarking_tests/low_level_speed_test-dio.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/benchmarking_tests/low_level_speed_test-dio.lua
print("Benchmarking Test: Low-Level toggle of FIO3/DIO3 (FIO5/DIO5 on T4) as fast as possible.") --This example will output a digital waveform at at 20-25kHz on FIO3 --Note: Most commonly users should throttle their code execution using the functions: --"LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0) then" .....
--[[ Name: low_level_speed_test-dio.lua Desc: This example will output a digital waveform at at 20-25kHz on outdio Note: In most cases, users should throttle their code execution using the functions: "interval_config(0, 1000)", and "if check_interval(0)" --]] -- Assign functions locally for faste...
Fixed up formatting of the low level dio speed test
Fixed up formatting of the low level dio speed test
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
0d95765fe508ae08a68753241988706e9cfc5c75
Quadtastic/AppLogic.lua
Quadtastic/AppLogic.lua
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function") local co = coroutine.create(f) local ret = {coroutine.resume(co, self._state.data, ...)} -- Print errors if there are any assert(ret[1], ret[2]) ...
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function") local co = coroutine.create(f) local ret = {coroutine.resume(co, self._state.data, ...)} -- Print errors if there are any assert(ret[1], ret[2]) ...
Fix how calls on inactive states are queued
Fix how calls on inactive states are queued
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
2c17b0e213f134d84e3d4b825ee831eccd335bc3
OS/DiskOS/Programs/apis.lua
OS/DiskOS/Programs/apis.lua
if select(1,...) == "-?" then printUsage( "apis","Prints the available peripherals functions", "apis <peripheral>","Prints the functions of a specific peripheral" ) return end --Print the list of functions for a peripheral, or all peripherals local _,perlist = coroutine.yield("BIOS:listPeripherals") pal...
if select(1,...) == "-?" then printUsage( "apis","Prints the available peripherals functions", "apis <peripheral>","Prints the functions of a specific peripheral" ) return end --Print the list of functions for a peripheral, or all peripherals local perlist = BIOS.HandledAPIS() palt(0,false) --Make black...
Fix #140
Fix #140 Former-commit-id: 682d30b4abc8296c002380885eb936f20d8d677f
Lua
mit
RamiLego4Game/LIKO-12
7f7a390ad8d060d3eac41fb91de5631084901996
NLBL/src/main/resources/vnstead/modules/paginator.lua
NLBL/src/main/resources/vnstead/modules/paginator.lua
-- paginator module require "kbd" require "click" require "theme" require "modules/dice" require "modules/vn" hook_keys('space', 'right ctrl', 'left ctrl') iface.cmd = stead.hook(iface.cmd, function(f, s, cmd, ...) if vn:add_all_missing_children() then vn:invalidate_all(); vn:start(); else ...
-- paginator module require "kbd" require "click" require "theme" require "modules/dice" require "modules/vn" iface.cmd = stead.hook(iface.cmd, function(f, s, cmd, ...) if vn:add_all_missing_children() then vn:invalidate_all(); vn:start(); else vn:invalidate_all(); end return pa...
dev::NLB-186::Bugfixing & Improvement
dev::NLB-186::Bugfixing & Improvement
Lua
agpl-3.0
Antokolos/NLB,Antokolos/NLB,Antokolos/NLB,Antokolos/NLB
46a4edf0c7cacc04b9ed84498f4ec66daeeb3b58
OS/DiskOS/Programs/save.lua
OS/DiskOS/Programs/save.lua
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "lz4" local clvl = tonumber(select(4,...) or "-1") local term = require("terminal") local eapi = require("Editors") if destination and destination ~= "@clip" and destination ~= "-?" then destination = term.resolve(des...
local destination = select(1,...) local flag = select(2,...) or "" local ctype = select(3,...) or "glib" local clvl = tonumber(select(4,...) or "9") local term = require("terminal") local eapi = require("Editors") if destination and destination ~= "@clip" and destination ~= "-?" then destination = term.resolve(des...
Bugfix #113
Bugfix #113
Lua
mit
RamiLego4Game/LIKO-12
97a742133c41e33c6d0fe0a20024b98d00f2274e
torch7/benchmark.lua
torch7/benchmark.lua
require 'nn' require 'xlua' require 'pl' opt = lapp[[ -t,--threads (default 6) number of threads -p,--type (default float) float or cuda -i,--devid (default 1) device ID (if using CUDA) ]] p = xlua.Profiler() torch.setnumthreads(opt.threads)...
require 'nn' require 'xlua' require 'pl' opt = lapp[[ -t,--threads (default 6) number of threads -p,--type (default float) float or cuda -i,--devid (default 1) device ID (if using CUDA) ]] p = xlua.Profiler() torch.setnumthreads(opt.threads)...
float fix
float fix
Lua
mit
soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks
b613fc71ffcf2bbcdbc119dec1ef1251ce1cb801
frontend/ui/reader/readerdogear.lua
frontend/ui/reader/readerdogear.lua
local InputContainer = require("ui/widget/container/inputcontainer") local RightContainer = require("ui/widget/container/rightcontainer") local ImageWidget = require("ui/widget/imagewidget") local GestureRange = require("ui/gesturerange") local UIManager = require("ui/uimanager") local Device = require("ui/device") loc...
local InputContainer = require("ui/widget/container/inputcontainer") local RightContainer = require("ui/widget/container/rightcontainer") local ImageWidget = require("ui/widget/imagewidget") local GestureRange = require("ui/gesturerange") local UIManager = require("ui/uimanager") local Device = require("ui/device") loc...
fix won't get full refresh in EPUB document Since each position update will set dogear visibility
fix won't get full refresh in EPUB document Since each position update will set dogear visibility
Lua
agpl-3.0
koreader/koreader,chihyang/koreader,ashhher3/koreader,apletnev/koreader,mwoz123/koreader,poire-z/koreader,chrox/koreader,Frenzie/koreader,mihailim/koreader,frankyifei/koreader,robert00s/koreader,NiLuJe/koreader,lgeek/koreader,poire-z/koreader,Markismus/koreader,Frenzie/koreader,Hzj-jie/koreader,noname007/koreader,NickS...
609da63b0fb0290d62aa1423c4ad706f3ac37f63
src/core/App.lua
src/core/App.lua
-------------------------------------------------------------------------------- -- -- -- -------------------------------------------------------------------------------- local App = {} local DEFAULT_WINDOW = { screenWidth = MOAIEnvironment.horizontalResolution or 640, screenHeight = MOAIEnvironment.verticalR...
-------------------------------------------------------------------------------- -- -- -- -------------------------------------------------------------------------------- local App = {} local DEFAULT_WINDOW = { screenWidth = MOAIEnvironment.horizontalResolution or 640, screenHeight = MOAIEnvironment.verticalR...
fix android resolutions
fix android resolutions
Lua
mit
Vavius/moai-framework,Vavius/moai-framework
f11dcce83f32b7d39acea66b692eaf90844fb5db
game/scripts/vscripts/heroes/hero_sara/fragment_of_logic.lua
game/scripts/vscripts/heroes/hero_sara/fragment_of_logic.lua
LinkLuaModifier("modifier_sara_fragment_of_logic", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_sara_fragment_of_logic_debuff", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE) sara_fragment_of_logic = class({ GetIntrinsicModifierName = function() re...
LinkLuaModifier("modifier_sara_fragment_of_logic", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_sara_fragment_of_logic_debuff", "heroes/hero_sara/fragment_of_logic.lua", LUA_MODIFIER_MOTION_NONE) sara_fragment_of_logic = class({ GetIntrinsicModifierName = function() re...
Fixed Sara's immortal illusions
Fixed Sara's immortal illusions
Lua
mit
ark120202/aabs
56aee3da470d00628700f8df415a8f488471d8c3
test_scripts/Polices/build_options/012_ATF_P_TC_HMI_sends_GetURLs_no_app_registered_HTTP.lua
test_scripts/Polices/build_options/012_ATF_P_TC_HMI_sends_GetURLs_no_app_registered_HTTP.lua
--------------------------------------------------------------------------------------------- -- Requirements summary: -- In case HMI sends GetURLs and no apps registered SDL must return only default url -- -- Description: -- In case HMI sends GetURLs (<serviceType>) AND NO mobile apps registered -- SDL must:check "end...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- In case HMI sends GetURLs and no apps registered SDL must return only default url -- -- Description: -- In case HMI sends GetURLs (<serviceType>) AND NO mobile apps registered -- SDL must:check "end...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
8ed9bc49f8aa96e74bbfa812999417a10f55ca9a
face-detector-elab/run.lua
face-detector-elab/run.lua
#!/usr/bin/env torch ------------------------------------------------------------ -- -- CNN face detector, based on convolutional network nets -- -- original: Clement Farabet -- E. Culurciello, A. Dundar, A. Canziani -- Tue Mar 11 10:52:58 EDT 2014 -- ------------------------------------------------------------ requir...
#!/usr/bin/env torch ------------------------------------------------------------ -- -- CNN face detector, based on convolutional network nets -- -- original: Clement Farabet -- E. Culurciello, A. Dundar, A. Canziani -- Tue Mar 11 10:52:58 EDT 2014 -- ------------------------------------------------------------ requir...
FFI function needs contiguous memory - fixed
FFI function needs contiguous memory - fixed
Lua
bsd-3-clause
e-lab/torch7-demos,e-lab/torch7-demos
52364bef5f3e1e8ff88d3134adbcc3f610ec72ee
init.lua
init.lua
-- We are using paths.require to appease mkl -- Make this work with LuaJIT in Lua 5.2 compatibility mode, which -- renames string.gfind (already deprecated in 5.1) if not string.gfind then string.gfind = string.gmatch end if not table.unpack then table.unpack = unpack end require "paths" paths.require "libto...
-- We are using paths.require to appease mkl -- Make this work with LuaJIT in Lua 5.2 compatibility mode, which -- renames string.gfind (already deprecated in 5.1) if not string.gfind then string.gfind = string.gmatch end if not table.unpack then table.unpack = unpack end require "paths" paths.require "libto...
Fix torch.isTypeOf(<string>, ...)
Fix torch.isTypeOf(<string>, ...) Fix the following cases (they raise error now): torch.isTypeOf("string", "nn.Module") require 'nn'; m = nn.Module() m.name = "module" nn.utils.recursiveType(m, "torch.FloatTensor")
Lua
bsd-3-clause
eulerreich/torch7,colesbury/torch7,Atcold/torch7,xindaya/torch7,bartvm/torch7,hmandal/torch7,eulerreich/torch7,wangg12/torch7,kirangonella/torch7,chenfsjz/torch7,Atcold/torch7,ninjin/torch7,PierrotLC/torch7,clementfarabet/torch7,hmandal/torch7,waitwaitforget/torch7,ninjin/torch7,dariosena/torch7,alexbw/torch7,Moodstock...
b1b4201a14b2ae38df7af83658c2c4544522cfc0
src/nodes/platform.lua
src/nodes/platform.lua
local Timer = require 'vendor/timer' local controls = require 'controls' local Platform = {} Platform.__index = Platform function Platform.new(node, collider) local platform = {} setmetatable(platform, Platform) --If the node is a polyline, we need to draw a polygon rather than rectangle if node.poly...
local Timer = require 'vendor/timer' local controls = require 'controls' local Platform = {} Platform.__index = Platform function Platform.new(node, collider) local platform = {} setmetatable(platform, Platform) --If the node is a polyline, we need to draw a polygon rather than rectangle if node.poly...
Fix #244
Fix #244
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua
ca49466f69aff566e4592cca1c81ced903b3fa07
Quadtastic/Text.lua
Quadtastic/Text.lua
local Text = {} local unpack = unpack or table.unpack Text.min_width = function(state, text) return state.style.font and state.style.font:getWidth(text) end -- Returns a table of lines, none of which exceed the given width. -- Returns a table with the original text if width is 0 or nil. function Text.break_at(stat...
local Text = {} local unpack = unpack or table.unpack Text.min_width = function(state, text) return state.style.font and state.style.font:getWidth(text) end -- Returns a table of lines, none of which exceed the given width. -- Returns a table with the original text if width is 0 or nil. function Text.break_at(stat...
Fix multi-line text not breaking at newline
Fix multi-line text not breaking at newline
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
cab0c3e399e8a958344f0460c4f2478c577fd079
kong/plugins/session/schema.lua
kong/plugins/session/schema.lua
local typedefs = require "kong.db.schema.typedefs" local Schema = require "kong.db.schema" local utils = require("kong.tools.utils") local char = string.char local rand = math.random local encode_base64 = ngx.encode_base64 local samesite = Schema.define { type = "string", default = "Strict", one_of = { "Str...
local typedefs = require "kong.db.schema.typedefs" local Schema = require "kong.db.schema" local utils = require("kong.tools.utils") local char = string.char local rand = math.random local encode_base64 = ngx.encode_base64 local samesite = Schema.define { type = "string", default = "Strict", one_of = { "Str...
fix(session) add no_consumer to fields
fix(session) add no_consumer to fields
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
b677817d47a8c7c96f37896dfdde6906f288feb5
examples/pcap/replay-pcap.lua
examples/pcap/replay-pcap.lua
--- Replay a pcap file. local mg = require "moongen" local device = require "device" local memory = require "memory" local stats = require "stats" local log = require "log" local pcap = require "pcap" local limiter = require "software-ratecontrol" function configure(parser) parser:argument("edev", "D...
--- Replay a pcap file. local mg = require "moongen" local device = require "device" local memory = require "memory" local stats = require "stats" local log = require "log" local pcap = require "pcap" local limiter = require "software-ratecontrol" function configure(parser) parser:argument("edev", "D...
add fixed packet rate feature to replay-pcap
add fixed packet rate feature to replay-pcap
Lua
mit
gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen
4bde88cd8146f0df3f4c9880e5265dab5702cfa4
lua_modules/ds18b20/ds18b20.lua
lua_modules/ds18b20/ds18b20.lua
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -------------------------------------------------------------------------------- -- Set module name as ...
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -------------------------------------------------------------------------------- -- Set module name as ...
Fixed DS18B20 handling because of new floating point handling
Fixed DS18B20 handling because of new floating point handling Hi, because of the new floating point API, the old ds18b20 code returns strange values like "19.8250.8250". This change fixes that. Best regards, Tobias
Lua
mit
natetrue/nodemcu-firmware,dan-cleinmark/nodemcu-firmware,fetchbot/nodemcu-firmware,petrkr/nodemcu-firmware,borromeotlhs/nodemcu-firmware,bhrt/nodeMCU,comitservice/nodmcu,anusornc/nodemcu-firmware,Dejvino/nodemcu-firmware,jmattsson/nodemcu-firmware,GeorgeHahn/nodemcu-firmware,shangwudong/MyNodeMcu,cal101/nodemcu-firmwar...
49ccd1b6efc7b274fd9d0c7f9e009deb1524d678
nvim/nvim/lua/_/treesitter.lua
nvim/nvim/lua/_/treesitter.lua
local has_config, ts_configs = pcall(require, 'nvim-treesitter.configs') local has_context, ts_context = pcall(require, 'treesitter-context') local M = {} local function setup_ts_config() ts_configs.setup { ensure_installed={ 'bash', 'c', 'cmake', 'comment', 'commonlisp', 'cp...
local has_config, ts_configs = pcall(require, 'nvim-treesitter.configs') local has_context, ts_context = pcall(require, 'treesitter-context') local M = {} local function setup_ts_config() ts_configs.setup { ensure_installed={ 'bash', 'c', 'cmake', 'comment', 'commonlisp', 'cp...
fix(nvim): fold and highlight_current_scope
fix(nvim): fold and highlight_current_scope
Lua
mit
skyuplam/dotfiles,skyuplam/dotfiles
8114c5b7f8ebaa7492f087555dd1f0476e10da63
asyncoperations.lua
asyncoperations.lua
local table = table module "irc" local meta = _META function meta:send(fmt, ...) local bytes, err = self.socket:send(fmt:format(...) .. "\r\n") if bytes then return end if err ~= "timeout" and err ~= "wantwrite" then self:invoke("OnDisconnect", err, true) self:shutdown() error(err, errlevel) end end ...
local table = table module "irc" local meta = _META function meta:send(fmt, ...) local bytes, err = self.socket:send(fmt:format(...) .. "\r\n") if bytes then return end if err ~= "timeout" and err ~= "wantwrite" then self:invoke("OnDisconnect", err, true) self:shutdown() error(err, errlevel) end end ...
Fixing regressions in sendChat and sendNotice.
Fixing regressions in sendChat and sendNotice. Fixing: Incorrect handling of newlines in message. Fixing: Cleaning ':' from message.
Lua
mit
JakobOvrum/LuaIRC,wolfy1339/LuaIRC
edfa13f29a5005343f6a625937ecf2ef35e57719
Mjolnir/setup.lua
Mjolnir/setup.lua
os.exit = core.exit function core.runstring(s) local fn, err = load("return " .. s) if not fn then fn, err = load(s) end if not fn then return tostring(err) end local str = "" local results = table.pack(pcall(fn)) for i = 2,results.n do if i > 2 then str = str .. "\t" end str = str .. tostring(res...
os.exit = core.exit function core.runstring(s) local fn, err = load("return " .. s) if not fn then fn, err = load(s) end if not fn then return tostring(err) end local str = "" local results = table.pack(pcall(fn)) for i = 2,results.n do if i > 2 then str = str .. "\t" end str = str .. tostring(res...
Prints something when the config is successfully reloaded; fixes #430.
Prints something when the config is successfully reloaded; fixes #430.
Lua
mit
kkamdooong/hammerspoon,kkamdooong/hammerspoon,ocurr/hammerspoon,Stimim/hammerspoon,bradparks/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,hypebeast/hammerspoon,peterhajas/hammerspoon,kkamdooong/hammerspoon,asmagill/hammerspoon,knu/hammerspoon,bradparks/hammerspoon,wsmith323/hammerspoon,wsmith323/hammerspoon...
33334153f5139ab4325d29282ae54ecc6ef091bb
OS/DiskOS/api.lua
OS/DiskOS/api.lua
--Build DiskOS APIs-- _DiskVer = 2 --It's a global function input() local t = "" local fw, fh = fontSize() local blink = false local blinktimer = 0 local blinktime = 0.5 local function drawblink() local cx,cy,c = printCursor() rect(cx*(fw+1)+1,blink and cy*(fh+2)+1 or cy*(fh+2),fw+1,blink and fh...
--Build DiskOS APIs-- _DiskVer = 2 --It's a global function input() local t = "" local fw, fh = fontSize() local blink = false local blinktimer = 0 local blinktime = 0.5 local function drawblink() local cx,cy,c = printCursor() rect(cx*(fw+1)+1,blink and cy*(fh+2)+1 or cy*(fh+2),fw+1,blink and fh...
Bugfix for android
Bugfix for android
Lua
mit
RamiLego4Game/LIKO-12
321ae1059b3dc4e121cca1a1f5881ac7bed827aa
UCDaviator/server.lua
UCDaviator/server.lua
--[[ -- Distances LS --> LV = 4000 LS --> VM = 5000 LS --> SF = 3500 LV --> SF = 3300 LV --> VM = 1500 SF --> VM = 3000 --]] local sml = {[511] = true, [593] = true, [513] = true} -- Beagle, Dodo, Stuntplane local lrg = {[592] = true, [577] = true, [553] = true} -- Nevada, AT-400, Andromada local mid = {[519] = true...
--[[ -- Distances LS --> LV = 4000 LS --> VM = 5000 LS --> SF = 3500 LV --> SF = 3300 LV --> VM = 1500 SF --> VM = 3000 --]] local sml = {[511] = true, [593] = true, [513] = true} -- Beagle, Dodo, Stuntplane local lrg = {[592] = true, [577] = true, [553] = true} -- Nevada, AT-400, Andromada local mid = {[519] = true...
UCDaviator
UCDaviator - Fixed distance
Lua
mit
nokizorque/ucd,nokizorque/ucd
a96bcc2ed49f63db00de9acf69b54de2e354ccbe
localization/localization.enUS.lua
localization/localization.enUS.lua
local L = LibStub("AceLocale-3.0"):NewLocale("EPGP", "enUS", true) if not L then return end L["%+d EP (%s) to %s"] = true L["%+d GP (%s) to %s"] = true L["%d or %d"] = true L["%s is added to the award list"] = true L["%s is already in the award list"] = true L["%s is dead. Award EP?"] = true L["%s is not eligible for ...
local L = LibStub("AceLocale-3.0"):NewLocale("EPGP", "enUS", true) if not L then return end L["%+d EP (%s) to %s"] = true L["%+d GP (%s) to %s"] = true L["%d or %d"] = true L["%s is added to the award list"] = true L["%s is already in the award list"] = true L["%s is dead. Award EP?"] = true L["%s is not eligible for ...
Add localizations for new string as part of fix of issue 356.
Add localizations for new string as part of fix of issue 356.
Lua
bsd-3-clause
sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf
e10bfde2327dbed9b1217cc425748505b5216583
mod_blocking/mod_blocking.lua
mod_blocking/mod_blocking.lua
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
mod_blocking: Fix handling of unblocking command. Send out un-/block pushes to all resources.
mod_blocking: Fix handling of unblocking command. Send out un-/block pushes to all resources.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
72c5a569f69b472dbd343146e201d7193cbb2bf8
.vim/lua/pluginconfig/telescope.lua
.vim/lua/pluginconfig/telescope.lua
local actions = require('telescope.actions') local config = require('telescope.config') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local previewers = require('telescope.previewers') local utils = require('telescope.utils')...
local actions = require('telescope.actions') local config = require('telescope.config') local pickers = require('telescope.pickers') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local previewers = require('telescope.previewers') local utils = require('telescope.utils')...
vim: Fix to store duplicated paths
vim: Fix to store duplicated paths
Lua
mit
yutakatay/dotfiles,yutakatay/dotfiles
4f2922745fd42ddc8e20248b171a8886cb1aaa12
MMOCoreORB/bin/scripts/managers/mission_manager.lua
MMOCoreORB/bin/scripts/managers/mission_manager.lua
dofile("scripts/managers/mission_npc_spawn_points.lua"); crafting_mission_items = { "object/draft_schematic/item/quest_item/attunement_grid.iff", "object/draft_schematic/item/quest_item/current_alternator.iff", "object/draft_schematic/item/quest_item/feedback_controller.iff", "object/draft_schematic/item/quest_ite...
dofile("scripts/managers/mission_npc_spawn_points.lua"); crafting_mission_items = { "object/draft_schematic/item/quest_item/attunement_grid.iff", "object/draft_schematic/item/quest_item/current_alternator.iff", "object/draft_schematic/item/quest_item/feedback_controller.iff", "object/draft_schematic/item/quest_ite...
(unstable) [fixed] BH missions now gets tougher targets for each level.
(unstable) [fixed] BH missions now gets tougher targets for each level. git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5769 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
aaa0b9206c4e625133f98520d2cd25fb366b6f3e
.config/nvim/lua/config/toggleterm.lua
.config/nvim/lua/config/toggleterm.lua
local status_ok, p = pcall(require, "toggleterm") if not status_ok then return end p.setup({ open_mapping = [[<c-\>]], direction = "float", float_opts = { border = "curved", }, close_on_exit = true, }) local keymap = vim.keymap.set function _G.set_terminal_keymaps() local opts = { buffer = 0 } keymap("t", "...
local status_ok, p = pcall(require, "toggleterm") if not status_ok then return end p.setup({ open_mapping = [[<c-\>]], direction = "float", float_opts = { border = "curved", }, close_on_exit = true, }) local keymap = vim.keymap.set function _G.set_terminal_keymaps() local opts = { buffer = 0 } keymap("t", "...
[nvim] Fix ToggleTerm key bindings
[nvim] Fix ToggleTerm key bindings
Lua
mit
masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles
d2abcc78ca5b929adc1394a6fa897fc13d8baea6
busted/core.lua
busted/core.lua
local getfenv = require 'busted.compatibility'.getfenv local setfenv = require 'busted.compatibility'.setfenv local unpack = require 'busted.compatibility'.unpack local pretty = require 'pl.pretty' local throw = error local failureMt = { __index = {}, __tostring = function(e) return tostring(e.message) end, __ty...
local getfenv = require 'busted.compatibility'.getfenv local setfenv = require 'busted.compatibility'.setfenv local unpack = require 'busted.compatibility'.unpack local path = require 'pl.path' local pretty = require 'pl.pretty' local throw = error local failureMt = { __index = {}, __tostring = function(e) return ...
Fix getTrace() to search based on busted dirname
Fix getTrace() to search based on busted dirname
Lua
mit
Olivine-Labs/busted,ryanplusplus/busted,nehz/busted,mpeterv/busted,sobrinho/busted,o-lim/busted,DorianGray/busted,xyliuke/busted,istr/busted,leafo/busted
593eecb29f50db2f02ec7a92396187bb7ef61cb2
deps/coro-channel.lua
deps/coro-channel.lua
exports.name = "creationix/coro-channel" exports.version = "1.2.0" exports.homepage = "https://github.com/luvit/lit/blob/master/deps/coro-channel.lua" exports.description = "An adapter for wrapping uv streams as coro-streams and chaining filters." exports.tags = {"coro", "adapter"} exports.license = "MIT" exports.autho...
exports.name = "creationix/coro-channel" exports.version = "1.2.1" exports.homepage = "https://github.com/luvit/lit/blob/master/deps/coro-channel.lua" exports.description = "An adapter for wrapping uv streams as coro-streams and chaining filters." exports.tags = {"coro", "adapter"} exports.license = "MIT" exports.autho...
Optimize and fix bug in coro-channel read queues
Optimize and fix bug in coro-channel read queues
Lua
apache-2.0
zhaozg/lit,luvit/lit,james2doyle/lit,squeek502/lit
cbea73ce70ea374a93478e4c4580a8a723051f00
quest/pasinn_539_wilderness.lua
quest/pasinn_539_wilderness.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
fix quest log error
fix quest log error
Lua
agpl-3.0
Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content
ec1347e86944f47ed9cd246407c9f7fe8ac91e46
lua/entities/gmod_wire_expression2/core/sound.lua
lua/entities/gmod_wire_expression2/core/sound.lua
/******************************************************************************\ Built-in Sound support v1.18 \******************************************************************************/ E2Lib.RegisterExtension("sound", true) local wire_expression2_maxsounds = CreateConVar( "wire_expression2_maxsounds", 16 ) lo...
/******************************************************************************\ Built-in Sound support v1.18 \******************************************************************************/ E2Lib.RegisterExtension("sound", true) local wire_expression2_maxsounds = CreateConVar( "wire_expression2_maxsounds", 16 ) lo...
Fixed sounds not stopping correctly after the specified time
Fixed sounds not stopping correctly after the specified time The stopping would leak over into new sounds with the same index
Lua
apache-2.0
sammyt291/wire,immibis/wiremod,wiremod/wire,mitterdoo/wire,thegrb93/wire,Grocel/wire,notcake/wire,Python1320/wire,mms92/wire,plinkopenguin/wiremod,rafradek/wire,NezzKryptic/Wire,garrysmodlua/wire,dvdvideo1234/wire,bigdogmat/wire,CaptainPRICE/wire
4b2aeceb5d11d31ca758a80cf079cb2e6aa17977
lua/plugins/lsp.lua
lua/plugins/lsp.lua
local nvim = require('nvim') local plugs = require('nvim').plugs local executable = require('nvim').fn.executable local nvim_set_autocmd = require('nvim').nvim_set_autocmd local nvim_set_command = require('nvim').nvim_set_command local ok, lsp = pcall(require, 'nvim_lsp') if not ok then return nil end local serv...
local nvim = require('nvim') local plugs = require('nvim').plugs local executable = require('nvim').fn.executable local nvim_set_autocmd = require('nvim').nvim_set_autocmd local nvim_set_command = require('nvim').nvim_set_command local ok, lsp = pcall(require, 'nvim_lsp') if not ok then return nil end local serv...
fix: small changes for lsp settings
fix: small changes for lsp settings Fix executable check for language server executables Add new CursorHold event
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
6958bd0dafd24ae5b6cd703ffe6579e1884a52bc
core/length.lua
core/length.lua
local _length _length = std.object { length = 0, stretch = 0, shrink = 0, _type = "Length", fromLengthOrNumber = function (self, x) if type(x) == "table" then self.length = x.length self.stretch = x.stretch self.shrink = x.shrink else self.length = x end return self ...
local _length _length = std.object { length = 0, stretch = 0, shrink = 0, _type = "Length", fromLengthOrNumber = function (self, x) if type(x) == "table" then self.length = x.length self.stretch = x.stretch self.shrink = x.shrink else self.length = x end return self ...
I thought I needed this. Don’t. Keeping it for later. Commented out now because multiplying a length is currently a bug.
I thought I needed this. Don’t. Keeping it for later. Commented out now because multiplying a length is currently a bug.
Lua
mit
WAKAMAZU/sile_fe,neofob/sile,WAKAMAZU/sile_fe,alerque/sile,Nathan22Miles/sile,anthrotype/sile,shirat74/sile,neofob/sile,anthrotype/sile,alerque/sile,Nathan22Miles/sile,alerque/sile,neofob/sile,anthrotype/sile,simoncozens/sile,WAKAMAZU/sile_fe,shirat74/sile,Nathan22Miles/sile,simoncozens/sile,shirat74/sile,Nathan22Miles...
616d5a51c18cf3f0d2d7f52fc395e485aaeab91f
libs/term.lua
libs/term.lua
local prev, pl, luv, dir, T, stdin, exit_seq = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green...
local prev, pl, luv, dir, T, stdin, exit_seq = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green...
Fix rendering of '\128'
Fix rendering of '\128'
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
36d9fb2ca507a440c2fe988e669db9907905bfdc
core/ext/mime_types.lua
core/ext/mime_types.lua
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Handles file-specific settings. module('textadept.mime_types', package.seeall) -- Markdown: -- ## Overview -- -- Files can be recognized and associated with programming language lex...
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Handles file-specific settings. module('textadept.mime_types', package.seeall) -- Markdown: -- ## Overview -- -- Files can be recognized and associated with programming language lex...
Fixed bugs in core/ext/mime_types.lua related to set_lexer().
Fixed bugs in core/ext/mime_types.lua related to set_lexer().
Lua
mit
rgieseke/textadept,rgieseke/textadept
1eb4a4f8e6061e3d7fe5b385314ca64d4852063b
premake5.lua
premake5.lua
solution "rtr" configurations {"debug", "release"} defines {"GLM_FORCE_RADIANS","GLM_SWIZZLE", "GLEW_STATIC"} flags {"FatalWarnings"} vectorextensions "SSE2" includedirs {"include", "lib/**/include", "lib"} libdirs{"lib/glew/build", "lib/log/build", "lib/glcw/build"} configuration "windows" defines {"WINDOWS"...
solution "rtr" configurations {"debug", "release"} defines {"GLM_FORCE_RADIANS","GLM_SWIZZLE", "GLEW_STATIC"} flags {"FatalWarnings"} vectorextensions "SSE2" includedirs {"include", "lib/**/include", "lib"} libdirs{"lib/glew/build", "lib/log/build", "lib/glcw/build"} configuration "windows" defines {"WINDOWS"...
fix some stuff in premake file for windows
fix some stuff in premake file for windows
Lua
mit
Berling/deferred_shading,Berling/deferred_shading,Berling/deferred_shading