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
e1ad94566cad1f276d88db9f55fc79777ba402f2
editor/lib/lua/editor/edit/EditorCanvasScene.lua
editor/lib/lua/editor/edit/EditorCanvasScene.lua
local Scene = require("scenes.Scene") local InputDevice = require("input.InputDevice") --------------------------------------------------------------------------------- -- -- @type EditorCanvasScene -- --------------------------------------------------------------------------------- local EditorCanvasScene = Class( S...
local Scene = require("scenes.Scene") local InputDevice = require("input.InputDevice") --------------------------------------------------------------------------------- -- -- @type EditorCanvasScene -- --------------------------------------------------------------------------------- local EditorCanvasScene = Class( S...
canvas fix
canvas fix
Lua
mit
RazielSun/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,cloudteampro/juma-editor,cloudteampro/juma-editor
4b19c625027033d009884c63112fe2e58143ee42
spec/plugins/logging_spec.lua
spec/plugins/logging_spec.lua
local IO = require "kong.tools.io" local uuid = require "uuid" local cjson = require "cjson" local stringy = require "stringy" local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" -- This is important to seed the UUID generator uuid.seed() local STUB_GET_URL = spec_help...
local IO = require "kong.tools.io" local uuid = require "uuid" local cjson = require "cjson" local stringy = require "stringy" local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" -- This is important to seed the UUID generator uuid.seed() local STUB_GET_URL = spec_help...
Fixing tests
Fixing tests
Lua
mit
paritoshmmmec/kong,vmercierfr/kong,wakermahmud/kong,bbalu/kong,chourobin/kong,AnsonSmith/kong,peterayeni/kong,skynet/kong,sbuettner/kong,Skyscanner/kong,ChristopherBiscardi/kong
4836018fda5aea2d4b54bb5cff58d191b2c602c0
agents/monitoring/default/protocol/request.lua
agents/monitoring/default/protocol/request.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
Fix request.lua to handle trying to open a stupid file
Fix request.lua to handle trying to open a stupid file
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
b7b4a1558418d5999b9149f3e4dfdff27a6fa773
utils.lua
utils.lua
nn.utils = {} function nn.utils.recursiveType(param, type_str) if torch.type(param) == 'table' then for k, v in pairs(param) do param[k] = nn.utils.recursiveType(v, type_str) end elseif torch.isTypeOf(param, 'nn.Module') or torch.isTypeOf(param, 'nn.Criterion') then param:typ...
nn.utils = {} function nn.utils.recursiveType(param, type_str) if torch.type(param) == 'table' then for k, v in pairs(param) do param[k] = nn.utils.recursiveType(v, type_str) end elseif torch.isTypeOf(param, 'nn.Module') or torch.isTypeOf(param, 'nn.Criterion') then param:typ...
fixing corner-case of last dimension in addSingletonDimension
fixing corner-case of last dimension in addSingletonDimension
Lua
bsd-3-clause
andreaskoepf/nn,sbodenstein/nn,lukasc-ch/nn,rotmanmi/nn,forty-2/nn,LinusU/nn,witgo/nn,GregSatre/nn,adamlerer/nn,PierrotLC/nn,colesbury/nn,Aysegul/nn,kmul00/nn,jzbontar/nn,mlosch/nn,xianjiec/nn,jonathantompson/nn,Djabbz/nn,nicholas-leonard/nn,eulerreich/nn,noa/nn,Jeffyrao/nn,diz-vara/nn,PraveerSINGH/nn,apaszke/nn,clemen...
1e491924ccad666ad42e30d30e2031662bc1d3d0
xmake/rules/utils/inherit_links/inherit_links.lua
xmake/rules/utils/inherit_links/inherit_links.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
fix inherit_links rule
fix inherit_links rule
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
79e24ca71bef1f3d5b2f9e978bbef1bb8a5a5b03
packages/pdf.lua
packages/pdf.lua
if SILE.outputter ~= SILE.outputters.libtexpdf then SU.error("pdf package requires libtexpdf backend") end local pdf = require("justenoughlibtexpdf") SILE.registerCommand("pdf:destination", function (options, _) local name = SU.required(options, "name", "pdf:bookmark") SILE.typesetter:pushHbox({ outputYourse...
if SILE.outputter ~= SILE.outputters.libtexpdf then SU.error("pdf package requires libtexpdf backend") end local pdf = require("justenoughlibtexpdf") SILE.registerCommand("pdf:destination", function (options, _) local name = SU.required(options, "name", "pdf:bookmark") SILE.typesetter:pushHbox({ outputYourse...
fix(packages): Update PDF package to use correct measurement types
fix(packages): Update PDF package to use correct measurement types
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
a2321b06efb7a8755893d5417a924a827c72258a
naca-airfoil/structured-trapezoid-naca-airfoil.lua
naca-airfoil/structured-trapezoid-naca-airfoil.lua
--[[ The MIT License (MIT) Copyright (c) 2020 Loïc Fejoz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
--[[ The MIT License (MIT) Copyright (c) 2020 Loïc Fejoz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
fix(naca-airfoil): more adjusted holes
fix(naca-airfoil): more adjusted holes
Lua
mit
loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments,loic-fejoz/loic-fejoz-fabmoments
0355cefa2456658ccb7008798197ba4e5499ae5f
scripts/genie.lua
scripts/genie.lua
solution "UtilsCollection" location (path.join("../.project/", _ACTION)) language "C++" configurations { "Debug", "Release" } platforms { "x32", "x64" } objdir ("../.build/".._ACTION) defines { "_CRT_SECURE_NO_WARNINGS" } project "ResourceEmbedder" uuid "fecff87e-9cc0-4134-a2b5-6ef0e73...
function SetupPrefix() configuration { "x32", "Debug" } targetsuffix "_d" configuration { "x32", "Release" } targetsuffix "" configuration { "x64", "Debug" } targetsuffix "_x64_d" configuration { "x64", "Release" } targetsuffix "_x64" configuration() end solution "UtilsCollection" location ...
Fix previous commit (prefix for filenames in 64 bits)
Fix previous commit (prefix for filenames in 64 bits)
Lua
mit
thennequin/UtilsCollection,thennequin/UtilsCollection
8274dfe069762b150e83ef843eca231f4b647f12
kong/resolver/access.lua
kong/resolver/access.lua
local url = require "socket.url" local cache = require "kong.tools.database_cache" local constants = require "kong.constants" local responses = require "kong.tools.responses" local _M = {} local function get_backend_url(api) local result = api.target_url -- Checking if the target url ends with a final slash lo...
local url = require "socket.url" local cache = require "kong.tools.database_cache" local constants = require "kong.constants" local responses = require "kong.tools.responses" local _M = {} local function get_backend_url(api) local result = api.target_url -- Checking if the target url ends with a final slash lo...
fix(resolver) handling edgecase resulting in wrong URI
fix(resolver) handling edgecase resulting in wrong URI - If querying `/path/foo` with `strip_path=true`, then the resolver would replace the URI with `//foo`. Former-commit-id: 3c766fc0ad270ee23fd52e3350b2ae3bd4d195e8
Lua
apache-2.0
salazar/kong,ejoncas/kong,ajayk/kong,Kong/kong,shiprabehera/kong,ind9/kong,jerizm/kong,streamdataio/kong,vzaramel/kong,beauli/kong,kyroskoh/kong,li-wl/kong,streamdataio/kong,rafael/kong,isdom/kong,Vermeille/kong,xvaara/kong,jebenexer/kong,Kong/kong,ind9/kong,rafael/kong,Mashape/kong,akh00/kong,icyxp/kong,isdom/kong,kyr...
fa9a4480e619c3d0b969225bbdc2a88e3c6072b6
resources/prosody-plugins/util.lib.lua
resources/prosody-plugins/util.lib.lua
local jid = require "util.jid"; local runner, waiter = require "util.async".runner, require "util.async".waiter; local muc_domain_prefix = module:get_option_string("muc_mapper_domain_prefix", "conference"); -- defaults to module.host, the module that uses the utility local muc_domain_base = module:get_option_...
local jid = require "util.jid"; local runner, waiter = require "util.async".runner, require "util.async".waiter; local muc_domain_prefix = module:get_option_string("muc_mapper_domain_prefix", "conference"); -- defaults to module.host, the module that uses the utility local muc_domain_base = module:get_option_...
Fixing an issue with asnyc http request handlers.
Fixing an issue with asnyc http request handlers. The current poltergeist http api immediately returns and does not wait for async work in the handler to finish. This mostly occurs when a public asap key needs to be fetched due to a cache miss. The fix implements the strategy described at https://prosody.im/doc/develo...
Lua
apache-2.0
gpolitis/jitsi-meet,bgrozev/jitsi-meet,bgrozev/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,...
5d3c6ca14abbd8d5a54bbb5752d84252ae4aee42
nyagos.d/catalog/subcomplete.lua
nyagos.d/catalog/subcomplete.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") if githelp then local gitcmds={} for line in githelp:lines() do if string.match(line,"^ %S") then for word in s...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") if githelp then local gitcmds={} for line in githelp:lines() do local word = string.match(line,"^ +(%S+)") if nil ~=...
fix git completion
fix git completion
Lua
bsd-3-clause
zetamatta/nyagos,nocd5/nyagos,tsuyoshicho/nyagos
b8c0c3cde9db4baff3d8483af08fc5569e58b1cb
lib/response.lua
lib/response.lua
local user_meta = require('utils').user_meta local tcp_meta = require('tcp').meta local os_date = require('os').date local table_concat = require('table').concat local string_format = require('string').format local Response = {} local status_codes_table = { [100] = 'Continue', [101] = 'Switching Protocols', [102...
local user_meta = require('utils').user_meta local tcp_meta = require('tcp').meta local os_date = require('os').date local table_concat = require('table').concat local string_format = require('string').format local Response = {} local status_codes_table = { [100] = 'Continue', [101] = 'Switching Protocols', [102...
Fix a couple response bugs and add auto content-type
Fix a couple response bugs and add auto content-type Change-Id: I0b283f10610387c53f31b4188d5ac02f54fe37a9
Lua
mit
brimworks/luvit,boundary/luvit,zhaozg/luvit,sousoux/luvit,connectFree/lev,sousoux/luvit,DBarney/luvit,AndrewTsao/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,AndrewTsao/luvit,connectFree/lev,boundary/luvit,kaustavha/luvit,DBarney/luvit,boundary/luvit,kaustavha/luvit,sousoux/luvit,DBarney/luv...
34e875b3d35fa1d4dde0a3ec662868213b710c55
applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua
applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network" local fw = require "luci.model.firewall" local ds = require "luci.dispatcher" local ut = require "luci.util" loca...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network" local fw = require "luci.model.firewall" local ds = require "luci.dispatcher" local ut = require "luci.util" loca...
firewall: validate max length of zone name
firewall: validate max length of zone name fw3 sets the maximum length of the zone name to 14 and ignores zone definitions with too long names. http://nbd.name/gitweb.cgi?p=firewall3.git;a=blob;f=zones.h;hb=HEAD#l25 http://nbd.name/gitweb.cgi?p=firewall3.git;a=blob;f=zones.c;hb=HEAD#l195 Add a simple validation to en...
Lua
apache-2.0
tobiaswaldvogel/luci,dwmw2/luci,artynet/luci,artynet/luci,marcel-sch/luci,daofeng2015/luci,wongsyrone/luci-1,obsy/luci,schidler/ionic-luci,aa65535/luci,kuoruan/luci,schidler/ionic-luci,MinFu/luci,tobiaswaldvogel/luci,bright-things/ionic-luci,LuttyYang/luci,wongsyrone/luci-1,cappiewu/luci,openwrt/luci,cappiewu/luci,mumu...
746934c72018b53216f6b394c6da47b8c9532f15
modulefiles/Core/SitePackage.lua
modulefiles/Core/SitePackage.lua
require("strict") local hook = require("Hook") local http = require("socket.http") http.TIMEOUT = 30 function url_quote(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end) str = stri...
require("strict") local hook = require("Hook") local http = require("socket.http") http.TIMEOUT = 30 function url_quote(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end) str = stri...
Fix loading classads when not in a condor job environment
Fix loading classads when not in a condor job environment
Lua
apache-2.0
OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles
48f4bd22f68b11f5c77c6a4f8510893d8859a4d4
src/python.lua
src/python.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
Fix directories
Fix directories
Lua
mit
Zefiros-Software/ZPM
bd8370a70eb3ed7e299416b160430df3de30f043
test/luatest.lua
test/luatest.lua
-- See Copyright Notice in the file LICENSE module (..., package.seeall) -- arrays: deep comparison function eq (t1, t2, lut) if t1 == t2 then return true end if type(t1) ~= "table" or type(t2) ~= "table" or #t1 ~= #t2 then return false end lut = lut or {} -- look-up table: are these 2 arrays already com...
-- See Copyright Notice in the file LICENSE local P = {} -- arrays: deep comparison function P.eq (t1, t2, lut) if t1 == t2 then return true end if type(t1) ~= "table" or type(t2) ~= "table" or #t1 ~= #t2 then return false end lut = lut or {} -- look-up table: are these 2 arrays already compared? lut[t...
luatest.lua: 1) bugfix; 2) don't use `module' function;
luatest.lua: 1) bugfix; 2) don't use `module' function;
Lua
mit
LuaDist/lrexlib-pcre,LuaDist/lrexlib-gnu,LuaDist/lrexlib-posix,StoneDot/lrexlib,LuaDist/lrexlib-oniguruma,LuaDist/lrexlib-oniguruma,LuaDist/lrexlib-gnu,LuaDist/lrexlib-posix,LuaDist/lrexlib-pcre,LuaDist/lrexlib-tre,LuaDist/lrexlib-tre,StoneDot/lrexlib
4e04e353fe91107d27046f93d63aa9aa92418ce8
modules/admin-full/luasrc/model/cbi/admin_network/hosts.lua
modules/admin-full/luasrc/model/cbi/admin_network/hosts.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
admin-full/network/hosts: Fix problem when arptable is empty, #482
admin-full/network/hosts: Fix problem when arptable is empty, #482
Lua
apache-2.0
teslamint/luci,openwrt/luci,tobiaswaldvogel/luci,bright-things/ionic-luci,mumuqz/luci,cshore/luci,oneru/luci,sujeet14108/luci,Hostle/luci,obsy/luci,LazyZhu/openwrt-luci-trunk-mod,RedSnake64/openwrt-luci-packages,kuoruan/luci,bittorf/luci,taiha/luci,Kyklas/luci-proto-hso,joaofvieira/luci,daofeng2015/luci,fkooman/luci,98...
f213f02b85405e770f22c36ed72ced7e8b58fb35
agents/monitoring/tests/fixtures/protocol/server.lua
agents/monitoring/tests/fixtures/protocol/server.lua
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
monitoring: tests: fixtures: server re-add print
monitoring: tests: fixtures: server re-add print re-add the print that Ryan removed accidently with a comment.
Lua
apache-2.0
cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-a...
f7a657b41522de421b2ba84546188ecb390e57f5
util/timer.lua
util/timer.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local get_...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local event...
util.timer: Fix libevent timers (event.base doesn't exist...)
util.timer: Fix libevent timers (event.base doesn't exist...)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2536e8024ce4939c2aa36ded2381415182f1fb76
util/timer.lua
util/timer.lua
-- Prosody IM v0.3 -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local get_time = os.time; local t_insert = table...
-- Prosody IM v0.3 -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ns_addtimer = require "net.server".addtimer; local get_time = os.time; local t_insert = table...
util.timer: More small fixes I forgot to commit
util.timer: More small fixes I forgot to commit
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2f4a33a19bfb6119cd0f896ac764bd078c5d43c8
vi_views.lua
vi_views.lua
-- Functions for manipulating views local M = {} local function unsplit_other(ts) if ts.vertical == nil then -- Ensure this view is focused (so we don't delete the focused view) for k,v in ipairs(_G._VIEWS) do if ts == v then ui.goto_view(k) break ...
-- Functions for manipulating views local M = {} local function unsplit_other(ts) if ts.vertical == nil then -- Ensure this view is focused (so we don't delete the focused view) for k,v in ipairs(_G._VIEWS) do if ts == v then ui.goto_view(k) break ...
Fix an error when adjusting the size of a non-split view.
Fix an error when adjusting the size of a non-split view.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
ebbfaf1c13c4867e65d34b3a7ef581cc344d4dc6
build/premake4.lua
build/premake4.lua
function setTargetObjDir(outDir) for _, cfg in ipairs(configurations()) do for _, plat in ipairs(platforms()) do local action = _ACTION or "" local prj = project() --"_debug_win32_vs2008" local suffix = "_" .. cfg .. "_" .. plat .. "_" .. action targetPath = outDir suffi...
function setTargetObjDir(outDir) for _, cfg in ipairs(configurations()) do for _, plat in ipairs(platforms()) do local action = _ACTION or "" local prj = project() --"_debug_win32_vs2008" local suffix = "_" .. cfg .. "_" .. plat .. "_" .. action targetPath = outDir suffi...
Fixes premake4 script for VS
Fixes premake4 script for VS
Lua
mit
zhengxle/rapidjson,zhengxle/rapidjson,zhengxle/rapidjson
a31c9b64d816ac3a694fbc397ccf491292fc7f23
pyf.lua
pyf.lua
-- Issue: Mapping Chinese Pinyin First Letter Implementation -- Copyright (C)2017 ms2008 <ms2008vip@gmail.com> local bit = require "bit" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local bit_band = bit.band local bit_bor = bit.bor local bit_lshift = bit.lshift local string_format = str...
-- Issue: Mapping Chinese Pinyin First Letter Implementation -- Copyright (C)2017 ms2008 <ms2008vip@gmail.com> local bit = require "bit" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local bit_band = bit.band local bit_bor = bit.bor local bit_lshift = bit.lshift local string_format = str...
minor fixes
minor fixes
Lua
mit
ms2008/lua-resty-pyf
9ad7646259d0b157c0da2c7e0c53e6997cc1826f
src/nodes/wall.lua
src/nodes/wall.lua
local Wall = {} Wall.__index = Wall function Wall.new(node, collider) local wall = {} setmetatable(wall, Wall) wall.bb = collider:addRectangle(node.x, node.y, node.width, node.height) wall.bb.node = wall collider:setPassive(wall.bb) return wall end function Wall:collide(player, dt, mtv_x, mtv...
local Wall = {} Wall.__index = Wall function Wall.new(node, collider) local wall = {} setmetatable(wall, Wall) wall.bb = collider:addRectangle(node.x, node.y, node.width, node.height) wall.bb.node = wall wall.node = node collider:setPassive(wall.bb) return wall end function Wall:collide(p...
Bug fix so you can stand on a wall
Bug fix so you can stand on a wall
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
86e3f50ff9364fee13315bba0dd834ff4dea7715
lib/utils/cuda.lua
lib/utils/cuda.lua
require 'torch' require 'nn' require 'nngraph' local Cuda = { nn = nn, activated = false } function Cuda.init(opt, gpuIdx) Cuda.activated = opt.gpuid > 0 if Cuda.activated then local _, err = pcall(function() require 'cutorch' require 'cunn' if opt.cudnn then require 'cudnn' ...
require 'torch' require 'nn' require 'nngraph' local Cuda = { nn = nn, activated = false } function Cuda.init(opt, gpuIdx) Cuda.activated = opt.gpuid > 0 if Cuda.activated then local _, err = pcall(function() require 'cutorch' require 'cunn' if opt.cudnn then require 'cudnn' ...
fix cuda conversion
fix cuda conversion
Lua
mit
jsenellart-systran/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,srush/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,cservan/OpenNMT_scores_0.2.0,jsenellart/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,...
d1af3049263b724db00b52c7a66146519411c4db
nyagos.lua
nyagos.lua
print("Nihongo Yet Another GOing Shell") print(string.format("Build at %s with commit %s",nyagos.stamp,nyagos.commit)) print("Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG") -- This is system-lua files which will be updated. -- When you want to customize, please edit ~\.nyagos -- Please do not edit this. loca...
print("Nihongo Yet Another GOing Shell") print(string.format("Build at %s with commit %s",nyagos.stamp,nyagos.commit)) print("Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG") -- This is system-lua files which will be updated. -- When you want to customize, please edit ~\.nyagos -- Please do not edit this. loca...
suffix 関数実行時の諸不具合を修正
suffix 関数実行時の諸不具合を修正 * PATHEXT に拡張子を二重追加してしまう。 → os.getenv ではなく、nyagos.getenv を使うようにした。
Lua
bsd-3-clause
hattya/nyagos,hattya/nyagos,zetamatta/nyagos,kissthink/nyagos,nocd5/nyagos,tsuyoshicho/nyagos,hattya/nyagos,kissthink/nyagos,kissthink/nyagos,tyochiai/nyagos
64abaf9c2511ea1241efc04722daf9f0ed7589b1
packages/boustrophedon/init.lua
packages/boustrophedon/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "boustrophedon" local _swap function package:_init (class) base._init(self, class) SILE.hyphenator.languages.grc = { patterns={} } SILE.nodeMakers.grc = pl.class(SILE.nodeMakers.unicode) function SILE.nodeMakers.grc.iterator...
local base = require("packages.base") local package = pl.class(base) package._name = "boustrophedon" function package:_init (class) base._init(self, class) SILE.hyphenator.languages.grc = { patterns={} } SILE.nodeMakers.grc = pl.class(SILE.nodeMakers.unicode) function SILE.nodeMakers.grc.iterator (node, items...
fix(packages): Ensure a page switch does not break boustrophedon (#1615)
fix(packages): Ensure a page switch does not break boustrophedon (#1615)
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
2ce409bbe610d4bb4a744d63db1d3fbca5f69e74
tcpdns.lua
tcpdns.lua
local socket = require("socket") local struct = require("struct") ----------------------------------------- -- LRU cache function ----------------------------------------- local function LRU(size) local keys, dict = {}, {} local function get(key) local value = dict[key] if value and keys[1] ~= key then ...
local socket = require("socket") local struct = require("struct") ----------------------------------------- -- LRU cache function ----------------------------------------- local function LRU(size) local keys, dict = {}, {} local function get(key) local value = dict[key] if value and keys[1] ~= key then ...
fix functions go and step
fix functions go and step
Lua
mit
uleelx/dnsforwarder
7172ac0afb8f2cec5af058975ca2bb887da7e4cc
init.lua
init.lua
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
local textadept = require("textadept") local events = require("events") local constants = require("textadept-nim.constants") local icons = require("textadept-nim.icons") local nimsuggest = require("textadept-nim.nimsuggest") local check_executable = require("textadept-nim.utils").check_executable local sessions = requi...
Fixed broken run and compile commands
Fixed broken run and compile commands
Lua
mit
xomachine/textadept-nim
1802727ae22e590badc102057c044c98b736462e
autotest/main.lua
autotest/main.lua
local skynet = require "skynet" local test = require "xunit" local snax = require "snax" require "skynet.manager" local max_client = 64 local function start_watchdog() local watchdog = skynet.newservice("watchdog") skynet.call(watchdog, "lua", "start", { port = 8888, maxclient = max_client, ...
local skynet = require "skynet" local test = require "xunit" local snax = require "snax" require "skynet.manager" local max_client = 64 local function start_watchdog() local watchdog = skynet.newservice("watchdog") skynet.call(watchdog, "lua", "start", { port = 8888, maxclient = max_client, ...
fix auto test
fix auto test
Lua
mit
firedtoad/skynet-mingw,firedtoad/skynet-mingw,firedtoad/skynet-mingw,dpull/skynet-mingw,dpull/skynet-mingw
521bdd85de5c9873660c2e11c5f06314dc00de5b
videolist/node.lua
videolist/node.lua
gl.setup(1920, 1080) local playlist local current_video_idx util.file_watch("playlist.txt", function(content) playlist = {} for filename in string.gmatch(content, "[^\r\n]+") do playlist[#playlist+1] = filename end current_video_idx = 0 print("new playlist") pp(playlist) end) functio...
gl.setup(1920, 1080) local playlist, video, current_video_idx util.file_watch("playlist.txt", function(content) playlist = {} for filename in string.gmatch(content, "[^\r\n]+") do playlist[#playlist+1] = filename end current_video_idx = 0 print("new playlist") pp(playlist) end) funct...
fixed for gc changes
fixed for gc changes
Lua
bsd-2-clause
dividuum/info-beamer-nodes,dividuum/info-beamer-nodes
c73ae598bc87b47ac78edc0b402bd5d8971421e2
LookupTable.lua
LookupTable.lua
local THNN = require 'nn.THNN' local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput, paddingValue, maxNorm, normType) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex,...
local THNN = require 'nn.THNN' local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput, paddingValue, maxNorm, normType) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex,...
fix for cutorch index* changes
fix for cutorch index* changes
Lua
bsd-3-clause
sagarwaghmare69/nn,colesbury/nn,kmul00/nn,apaszke/nn,eriche2016/nn,joeyhng/nn,nicholas-leonard/nn
c503fb873bb48454f44c10eea3642fe7a1c2ae79
LookupTable.lua
LookupTable.lua
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex, nOutput):zero() self:reset() end function LookupTable:back...
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex, nOutput):zero() self:reset() end function LookupTable:back...
fixing small bug in :type() of lookup table
fixing small bug in :type() of lookup table
Lua
bsd-3-clause
jzbontar/nn,Djabbz/nn,colesbury/nn,nicholas-leonard/nn,forty-2/nn,PraveerSINGH/nn,mlosch/nn,diz-vara/nn,jhjin/nn,clementfarabet/nn,xianjiec/nn,eulerreich/nn,zhangxiangxiao/nn,abeschneider/nn,kmul00/nn,apaszke/nn,hughperkins/nn,Jeffyrao/nn,PierrotLC/nn,sagarwaghmare69/nn,sbodenstein/nn,caldweln/nn,jonathantompson/nn,vgi...
60160151087bf904b5e0771c1b66677fdb881eec
lib/gettext.lua
lib/gettext.lua
#!/usr/bin/env lua ----------------------------------------------------------- -- load an mo file and return a lua table -- @param mo_file name of the file to load -- @return table on success -- @return nil,string on failure -- @copyright J.Jorgen von Bargen -- @licence I provide this as public domain -- @see http://ww...
#!/usr/bin/env lua ----------------------------------------------------------- -- load an mo file and return a lua table -- @param mo_file name of the file to load -- @return table on success -- @return nil,string on failure -- @copyright J.Jorgen von Bargen -- @licence I provide this as public domain -- @see http://ww...
[FIX] Clean up lib/gettext.lua file from useless explanations
[FIX] Clean up lib/gettext.lua file from useless explanations
Lua
agpl-3.0
blankoworld/makefly,blankoworld/makefly,blankoworld/makefly
1852e1858f3a112e7d68ab84e9302a47ae6ab0d1
scripts/format.lua
scripts/format.lua
-- Get the Gerrit base URL from the given change URL. local function get_gerrit_base_url(change_url) return string.sub(change_url, 1, #change_url - string.find(string.reverse(change_url), "/")) end -- Get a URL for a Gerrit query. local function get_query_url(base_url, query, ...) return string.format("%s/q/%s...
-- Get the Gerrit base URL from the given change URL. local function get_gerrit_base_url(change_url) return string.sub(change_url, 1, #change_url - string.find(string.reverse(change_url), "/")) end -- Get a URL for a Gerrit query. local function get_query_url(base_url, query, ...) return string.format("%s/q/%s...
improve approvals formatting
improve approvals formatting * fix handling old values * don't show labels that didn't change * sort labels by type
Lua
apache-2.0
boxdot/gerritbot-rs,boxdot/gerritbot-rs,boxdot/gerritbot-rs
ec2381c621f6f96da18172e34207d64c4330d871
script/gift.lua
script/gift.lua
local GiftPower = { [1001] = 10, [1003] = 80, [1009] = 800, [1010] = 2500, [1012] = 1100, [1013] = 10, [1014] = 80, [1015] = 80, } local SN = 0 GiftMgr = {} GiftMgr.orderid2req = {} function GiftMgr:new(sid, presenters) self.__index = self local ins = setmetatable({}, self) ...
local GiftPower = { [1001] = 10, [1003] = 80, [1009] = 800, [1010] = 2500, [1012] = 1100, [1013] = 10, [1014] = 80, [1015] = 80, } local SN = 0 GiftMgr = {} GiftMgr.orderid2req = {} function GiftMgr:new(sid, presenters) self.__index = self local ins = setmetatable({}, self) ...
fix getPollResult bug
fix getPollResult bug
Lua
apache-2.0
lsaint/act,lsaint/act,lsaint/act
7efaa10e079bbf11492c4f3cd6fb0988267808cb
rbm.lua
rbm.lua
require('nn') require('pl') require('torch') require('rbm-util') require('rbm-regularization') require('rbm-grads') require ('socket') -- for timing function rbmtrain(rbm,x_train,y_train,x_val,y_val,x_semisup) -- train RBM -- Reset gradient accums -- Print rbm --print(x_train) --print(y_train) --print(x_val) --pri...
require('nn') require('pl') require('torch') require('rbm-util') require('rbm-regularization') require('rbm-grads') require ('socket') -- for timing function rbmtrain(rbm,x_train,y_train,x_val,y_val,x_semisup) -- train RBM -- Reset gradient accums -- Print rbm --print(x_train) --print(y_train) --print(x_val) --pri...
fix extend training error
fix extend training error
Lua
bsd-3-clause
skaae/rbm_toolbox_lua,elezar/rbm_toolbox_lua
fde6d616428e01e61f4a5ae58bb70021d029606e
control.lua
control.lua
require 'util' require 'gui' require 'test' function print(stuff) game.players[1].print(stuff) end function setup() global.hoverboard = global.hoverboard or {} for _, player in pairs(game.players) do createPlayerMag(player.index) end end function activateEquipment(index) global.hoverboard[index].insert...
require 'util' require 'gui' require 'test' function print(stuff) game.players[1].print(stuff) end function setup() global.hoverboard = global.hoverboard or {} for _, player in pairs(game.players) do createPlayerMag(player.index) end end function activateEquipment(index) global.hoverboard[index].insert...
fix switching
fix switching
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
50d3420705f4d1bb6253a92a8e8df061fc9f6579
dotfiles/config/nvim/lua/colorscheme.lua
dotfiles/config/nvim/lua/colorscheme.lua
local function highlight(hi) vim.cmd("autocmd ColorScheme * highlight " .. hi) end vim.g["nightflyUnderlineMatchParen"] = 1 vim.cmd("colorscheme nightfly") highlight("CustomModifiedFlag guibg=Red guifg=White") highlight("Pmenu ctermfg=0 ctermbg=13 guifg=fg guibg=#1d3b53") -- For focused windows, use the 'default'...
vim.g["nightflyUnderlineMatchParen"] = 1 vim.cmd("colorscheme nightfly") vim.api.nvim_set_hl(0, "CustomModifiedFlag", {bg="Red", fg="White"}) vim.api.nvim_set_hl(0, "Pmenu", {fg=0, bg=13, fg="fg", bg="#1d3b53"}) -- For focused windows, use the 'default' background color (from tmux). This -- means the current Vim win...
Fix custom neovim colorscheme overrides
Fix custom neovim colorscheme overrides
Lua
mit
davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles
3bb2ed5bffc96f709c666897eb17931c17a633f1
tweak/scripts/EXAMPLE.lua
tweak/scripts/EXAMPLE.lua
--actual documentation is at the bottom of the file --i thought i'd start with a heavily commented example first --declare your own constants and functions here function abs(x) --> absolute value convenience function if x < 0 then return -x else return x end end --this is the function tha...
--actual documentation is at the bottom of the file --i thought i'd start with a heavily commented example first --declare your own constants and functions here function abs(x) --> absolute value convenience function if x < 0 then return -x else return x end end --this is the function tha...
fix example
fix example
Lua
mit
rweichler/cylinder,rweichler/cylinder,rweichler/cylinder
40cc14d83f868ab80f80984f71e4dddff25a57a2
stdlib/game.lua
stdlib/game.lua
--- Game module -- @module Game Game = {} Game.VALID_FILTER = function(v) return v.valid end --- Messages all players currently connected to the game -- @param msg message to send to players -- @param condition (optional) optional condition to be true for the player to be messaged -- @return the number of players...
--- Game module -- @module Game Game = {} Game.VALID_FILTER = function(v) return v.valid end --- Messages all players currently connected to the game -- @param msg message to send to players -- @param condition (optional) optional condition to be true for the player to be messaged -- @return the number of players...
Fix mixed tabs/spaces
Fix mixed tabs/spaces
Lua
isc
Afforess/Factorio-Stdlib
df675ff6a7b95e0b948b02f72a51e394201ea33b
src/kong/plugins/authentication/schema.lua
src/kong/plugins/authentication/schema.lua
local constants = require "kong.constants" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) print "HERE" if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then return false, "This field is not available for \""..BASIC.."\" authentication...
local constants = require "kong.constants" local utils = require "kong.tools.utils" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then return false, "This field is not available for \""..B...
fixing import and removing debug info
fixing import and removing debug info
Lua
apache-2.0
ChristopherBiscardi/kong,paritoshmmmec/kong,skynet/kong,Skyscanner/kong,sbuettner/kong,puug/kong,vmercierfr/kong,bbalu/kong,AnsonSmith/kong,chourobin/kong,peterayeni/kong,wakermahmud/kong,ropik/kong
bd2675be62d3cc192119a3c3c16b70b665020ceb
src/app/scenes/RectBoyScene.lua
src/app/scenes/RectBoyScene.lua
-- Author: Hua Liang[Stupid ET] <et@everet.org> local RectBoyScene = class("RectBoyScene", function() local scene = cc.Scene:createWithPhysics() scene.name = "RectBoyScene" scene:getPhysicsWorld():setGravity(cc.p(0, 0)) scene:getPhysicsWorld():setDebugDrawMask(config.debug a...
-- Author: Hua Liang[Stupid ET] <et@everet.org> local RectBoyScene = class("RectBoyScene", function() local scene = cc.Scene:createWithPhysics() scene.name = "RectBoyScene" scene:getPhysicsWorld():setGravity(cc.p(0, 0)) scene:getPhysicsWorld():setDebugDrawMask(config.debug a...
fix ground postion, just move obstacle
fix ground postion, just move obstacle
Lua
apache-2.0
cedricporter/everlost,cedricporter/everlost,cedricporter/everlost,cedricporter/everlost,cedricporter/everlost,cedricporter/everlost
f0d43b1e0b11c0e543274607b897c38e1350c4e2
mod_host_guard/mod_host_guard.lua
mod_host_guard/mod_host_guard.lua
-- (C) 2011, Marco Cirillo (LW.Org) -- Block or restrict by blacklist remote access to local components or hosts. module:set_global() local guard_blockall = module:get_option_set("host_guard_blockall", {}) local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {}) local guard_protect = module:g...
-- (C) 2011, Marco Cirillo (LW.Org) -- Block or restrict by blacklist remote access to local components or hosts. module:set_global() local guard_blockall = module:get_option_set("host_guard_blockall", {}) local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {}) local guard_protect = module:g...
mod_host_guard: fixed plugin, minor code refactor.
mod_host_guard: fixed plugin, minor code refactor.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
aa0450ab5da1e8525abbaa66aeb48649e4520336
frontend/device/generic/device.lua
frontend/device/generic/device.lua
local Event = require("ui/event") local util = require("ffi/util") local DEBUG = require("dbg") local function yes() return true end local function no() return false end local Device = { screen_saver_mode = false, charging_mode = false, survive_screen_saver = false, model = nil, powerd = nil, ...
local Event = require("ui/event") local util = require("ffi/util") local DEBUG = require("dbg") local function yes() return true end local function no() return false end local Device = { screen_saver_mode = false, charging_mode = false, survive_screen_saver = false, model = nil, powerd = nil, ...
Fix volumd's USBMS splash screen on FW 5.7.x
Fix volumd's USBMS splash screen on FW 5.7.x That clears up my previous queries abour the dual checks ;p.
Lua
agpl-3.0
houqp/koreader,robert00s/koreader,Frenzie/koreader,lgeek/koreader,apletnev/koreader,Markismus/koreader,mwoz123/koreader,Frenzie/koreader,poire-z/koreader,koreader/koreader,pazos/koreader,chihyang/koreader,koreader/koreader,NiLuJe/koreader,NickSavage/koreader,Hzj-jie/koreader,mihailim/koreader,NiLuJe/koreader,poire-z/ko...
cd2dfc0226a264ae418d667cf17c43c9b2e8bcad
Examples/ubuntu-setup.cfg.lua
Examples/ubuntu-setup.cfg.lua
defaults.chrootdir=loader.path.combine(loader.workdir,"ubuntu_chroot") defaults.user="root" defaults.uid=0 defaults.gid=0 defaults.recalculate() sandbox = { setup = { static_executor=true, commands = { {'rm -f "etc/resolv.conf"', 'cp "/etc/resolv.conf" "etc/resolv.conf"'}, }, env_blacklist = { ...
defaults.chrootdir=loader.path.combine(loader.workdir,"ubuntu_chroot") defaults.user="root" defaults.uid=0 defaults.gid=0 defaults.recalculate() sandbox = { features = { "rootfixups", }, setup = { static_executor=true, commands = { {'rm -f "etc/resolv.conf"', 'cp "/etc/resolv.conf" "etc/resolv.conf...
ubuntu-setup.cfg.lua: use rootfixups feature
ubuntu-setup.cfg.lua: use rootfixups feature
Lua
mit
DarkCaster/Sandboxer,DarkCaster/Sandboxer
ec936934934127eb26e342835a1be6ab67887a9d
hostinfo/base.lua
hostinfo/base.lua
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(hostinfo/base): Prevent erronously added undefined error messeages from being added to our response
fix(hostinfo/base): Prevent erronously added undefined error messeages from being added to our response
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent
d600f2ef73fba8a7b8380108499cdc15be6836d4
wyx/event/EventManager.lua
wyx/event/EventManager.lua
local Class = require 'lib.hump.class' -- EventManager -- Provides a class that registers objects with itself, then notifies -- those object when events occur. local Event = getClass 'wyx.event.Event' local eventsMT = {__mode = 'k'} local format = string.format -- EventManager class local EventManager = Class{name='...
local Class = require 'lib.hump.class' -- EventManager -- Provides a class that registers objects with itself, then notifies -- those object when events occur. local Event = getClass 'wyx.event.Event' local eventsMT = {__mode = 'k'} local format = string.format -- EventManager class local EventManager = Class{name='...
fix EventManager to queue register/unregister requests
fix EventManager to queue register/unregister requests These requests are fulfilled after the notify step is finished. This avoids the situation where objects are inappropriately notified after being registered in the middle of a notify cycle. It also avoids the situation where the notify cycle can crash because an ob...
Lua
mit
scottcs/wyx
2104895f9c75bc2b5c5c8a8da52f9116e368285c
lualib/sys/tls.lua
lualib/sys/tls.lua
local core = require "sys.core" local type = type local concat = table.concat local assert = assert local socket_pool = {} local M = {} local EVENT = {} local ctx local tls local client_ctx local function new_socket(fd, ctx) local s = { nil, fd = fd, delim = false, co = false, ssl = tls...
local core = require "sys.core" local type = type local concat = table.concat local assert = assert local socket_pool = {} local M = {} local EVENT = {} local ctx local tls local client_ctx local function new_socket(fd, ctx) local s = { nil, fd = fd, delim = false, co = false, ssl = tls...
bugfix tls gc of listen socket
bugfix tls gc of listen socket
Lua
mit
findstr/silly
7bf0113c4fede35ec93fbdc0c46b26ad5c8dd42d
lualibs/mapdef.lua
lualibs/mapdef.lua
-- fce pro definici mapy local push = table.insert local mapdef = { rules = {}, ANY = {} } _G.ANY = mapdef.ANY function _G.line(def) def._type = 'line' def.color = def.color or error 'Missing color!' def.feat = def.feat or error 'Missing feat!' push(mapdef.rules, def) end function _G.area(def) def._type ...
-- fce pro definici mapy local push = table.insert local mapdef = { rules = {}, ANY = {} } _G.ANY = mapdef.ANY function _G.stylesheet(name) mapdef.name = name end function _G.by(author) mapdef.author = author end function _G.background(color) mapdef.background = color end function _G.line(def) def._type =...
fix mapdef
fix mapdef
Lua
mit
severak/mapstyles,severak/mapstyles
2ad29e9e57b0538a4e5710af7c3cbebe397b99cc
modules/sorter.lua
modules/sorter.lua
local A, L = unpack(select(2, ...)) local M = A:NewModule("sorter", "AceEvent-3.0", "AceTimer-3.0") A.sorter = M M.private = { sortMode = false, lastSortMode = false, resumeAfterCombat = false, startTime = false, stepCount = false, timeoutTimer = false, timeoutCount = false, } local R = M.private local M...
local A, L = unpack(select(2, ...)) local M = A:NewModule("sorter", "AceEvent-3.0", "AceTimer-3.0") A.sorter = M M.private = { sortMode = false, lastSortMode = false, announced = false, resumeAfterCombat = false, startTime = false, stepCount = false, timeoutTimer = false, timeoutCount = false, } local R...
fix issue where announcing the raid sort wasn't happening if the raid was already sorted initially
fix issue where announcing the raid sort wasn't happening if the raid was already sorted initially
Lua
mit
bencvt/FixGroups
55889c55383c90e80948d1a22ce59740662ef822
modules/alarm.lua
modules/alarm.lua
local ev = require'ev' if(not ivar2.timers) then ivar2.timers = {} end local alarm = function(self, source, destination, time, message) local hour = time:match'(%d+)[ht]' local min = time:match'(%d+)m' local sec = time:match'(%d+)s' local duration = 0 if(hour) then duration = duration + (hour * 60 * 60) end if...
local ev = require'ev' if(not ivar2.timers) then ivar2.timers = {} end local alarm = function(self, source, destination, time, message) local weeks = time:match'(%d+)[w]' local days = time:match'(%d+)[d]' local hour = time:match'(%d+)[ht]' local min = time:match'(%d+)m' local sec = time:match'(%d+)s' local dur...
alarm: Support timers lasting for n weeks/days.
alarm: Support timers lasting for n weeks/days. This fixes #27.
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
b5de36f034b0e9e357fca20cdcf2856c4f83f8b2
bin/toc2breaks.lua
bin/toc2breaks.lua
#!/bin/env lua local project = os.getenv("PROJECT") local basename = arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(doc))() local yaml = require("yaml") local meta = yaml.loadpath(arg[3]) local share = "ht...
#!/bin/env lua local project = os.getenv("PROJECT") local basename = arg[1] local tocfile = io.open(arg[2], "r") if not tocfile then return false end local doc = tocfile:read("*a") tocfile:close() local toc = assert(loadstring(doc))() local yaml = require("yaml") local meta = yaml.loadpath(arg[3]) local share = "ht...
Fix variable scoping bug introduced by single chapter support if loop
Fix variable scoping bug introduced by single chapter support if loop
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
d3f3abb3369efc9b98ca6e7a6295fab6aa58eb56
src/lluv/websocket/handshake.lua
src/lluv/websocket/handshake.lua
-- Code based on https://github.com/lipp/lua-websockets local sha1 = require'websocket.tools'.sha1 local base64 = require'websocket.tools'.base64 local tinsert = table.insert local guid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" local sec_websocket_accept = function(sec_websocket_key) local a = sec_websocket_key..gu...
-- Code based on https://github.com/lipp/lua-websockets local tools = require'lluv.websocket.tools' local sha1, base64 = tools.sha1, tools.base64 local guid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" local sec_websocket_accept = function(sec_websocket_key) local a = sec_websocket_key..guid local sha1 = sha1(a) a...
Fix. link to lua-websocket module.
Fix. link to lua-websocket module.
Lua
mit
moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket
ac5a0e47f4d48ff1bd04259fdbb4670e09a5f010
lua/entities/gmod_wire_expression2/core/http.lua
lua/entities/gmod_wire_expression2/core/http.lua
/* Simple HTTP Extension (McLovin) */ E2Lib.RegisterExtension( "http", true ) local cvar_delay = CreateConVar( "wire_expression2_http_delay", "3", FCVAR_ARCHIVE ) local cvar_timeout = CreateConVar( "wire_expression2_http_timeout", "15", FCVAR_ARCHIVE ) local requests = {} local run_on = { clk = 0...
/* Simple HTTP Extension (McLovin) */ E2Lib.RegisterExtension( "http", true ) local cvar_delay = CreateConVar( "wire_expression2_http_delay", "3", FCVAR_ARCHIVE ) local cvar_timeout = CreateConVar( "wire_expression2_http_timeout", "15", FCVAR_ARCHIVE ) local requests = {} local run_on = { clk = 0...
Fixed httpRequest()
Fixed httpRequest()
Lua
apache-2.0
wiremod/wire,mitterdoo/wire,CaptainPRICE/wire,garrysmodlua/wire,sammyt291/wire,plinkopenguin/wiremod,rafradek/wire,notcake/wire,mms92/wire,NezzKryptic/Wire,thegrb93/wire,bigdogmat/wire,immibis/wiremod,dvdvideo1234/wire,Grocel/wire,Python1320/wire
e8244099175650a48f53669d41843996c7989902
pud/ui/Tooltip.lua
pud/ui/Tooltip.lua
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local Text = getClass 'pud.ui.Text' local Bar = getClass 'pud.ui.Bar' -- Tooltip -- local Tooltip = Class{name='Tooltip', inherits=Frame, function(self, ...) Frame.construct(self, ...) self._margin = 0 end } -- destructor function Too...
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local Text = getClass 'pud.ui.Text' local Bar = getClass 'pud.ui.Bar' -- Tooltip -- local Tooltip = Class{name='Tooltip', inherits=Frame, function(self, ...) Frame.construct(self, ...) self._margin = 0 end } -- destructor function Too...
Revert "fix tooltip drawing relative to position"
Revert "fix tooltip drawing relative to position" This reverts commit e0e5cad0caf3c9dcdbb429c9d0cbc58457b66f33.
Lua
mit
scottcs/wyx
956a77911badbe2e7836fdb0b56d5cf8379b0a11
server/lua/duplicateMsgFilter.lua
server/lua/duplicateMsgFilter.lua
-- -- Copyright 2015 Ilkka Oksanen <iao@iki.fi> -- -- 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 app...
-- -- Copyright 2015 Ilkka Oksanen <iao@iki.fi> -- -- 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 app...
Fix the duplicate detection of multi-line IRC messages
Fix the duplicate detection of multi-line IRC messages
Lua
apache-2.0
ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas
253215b1ed0d84153c2e7277025596c376c615a0
openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarm.lua
openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarm.lua
require "lmclient" local json = require("luci.json") local lmcf = json.decode(LmClient():query("$LMCF")) local m, s, v m = Map("linkmeter", "Alarm Settings", [[ Select the types of notifications to receive when the alarm is trigged. Enable an alarm by setting its threshold to a positive value, or using the ...
require "lmclient" local json = require("luci.json") local lmcf = json.decode(LmClient():query("$LMCF")) local m, s, v m = Map("linkmeter", "Alarm Settings", [[ Select the types of notifications to receive when the alarm is trigged. Enable an alarm by setting its threshold to a positive value, or using the ...
[lm] Fix provider not saving properly and add Other provider
[lm] Fix provider not saving properly and add Other provider
Lua
mit
kdakers80/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/H...
6880b634eea062e042555c2baa7883cc79e50444
UCDsql/mysql.lua
UCDsql/mysql.lua
-- Have to make this a normal person with ability to do everything but delete, truncate, drop, empty etc local dbname = "mta" local host = "ucdmta.com" local usr = "root" local passwd = "Network.114" db = Connection("mysql", "dbname="..dbname..";host="..host..";port=3306", usr, passwd) forum = Connection("mysql", "dbn...
-- Have to make this a normal person with ability to do everything but delete, truncate, drop, empty etc local dbname = "mta" local host = "ucdmta.com" local usr = "root" local passwd = "Network.114" db = Connection("mysql", "dbname="..dbname..";host="..host..";port=3306", usr, passwd) forum = Connection("mysql", "dbn...
UCDsql
UCDsql - Fixed it again lol
Lua
mit
nokizorque/ucd,nokizorque/ucd
7ba3a1695fb6bdad14ad445fcc25e060b4f4fa35
entities/mouse_action.lua
entities/mouse_action.lua
local MouseAction = Class('MouseAction') function MouseAction:initialize(game) self.hoverX = 0 self.hoverY = 0 self.canvasX = 0 self.canvasY = 0 self.game = game end function MouseAction:mousemoved(mx, my, dx, dy, istouch) local game = self.game mx, my = game.camera:worldCoords(mx, my, 0,...
local MouseAction = Class('MouseAction') function MouseAction:initialize(game) self.hoverX = 0 self.hoverY = 0 self.canvasX = 0 self.canvasY = 0 self.game = game end function MouseAction:mousemoved(mx, my, dx, dy, istouch) local game = self.game mx, my = game.camera:worldCoords(mx, my, 0,...
fixed gibs positioning
fixed gibs positioning
Lua
mit
Nuthen/ludum-dare-39
734c5489da65b15cae2c9a25184af0ab67703f2c
src/tbox/micro.lua
src/tbox/micro.lua
-- add target target("tbox") -- make as a static library set_kind("static") -- add defines add_defines("__tb_prefix__=\"tbox\"") -- set the auto-generated config.h set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)") add_configfiles("tbox.config.h.in") -- add include directories a...
-- add target target("tbox") -- make as a static library set_kind("static") -- add defines add_defines("__tb_prefix__=\"tbox\"") -- set the auto-generated config.h set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)") add_configfiles("tbox.config.h.in") -- add include directories a...
fix xmake.lua for micro mode
fix xmake.lua for micro mode
Lua
apache-2.0
waruqi/tbox,tboox/tbox,waruqi/tbox,tboox/tbox
6c0c4ada9d447cd3e1cc344e14ca02bac2578266
stdlib/gui/gui.lua
stdlib/gui/gui.lua
--- Gui module -- @module Gui require 'stdlib/event/event' Gui = {} -- Factorio's gui events are so monolithic we need a special event system for it. Gui.Event = { _registry = {} } --- Registers a function for a given event and matching gui element pattern -- @param event Valid values are defines.event.on_gui_* ...
--- Gui module -- @module Gui require 'stdlib/event/event' Gui = {} -- Factorio's gui events are so monolithic we need a special event system for it. Gui.Event = { _registry = {} } --- Registers a function for a given event and matching gui element pattern -- @param event Valid values are defines.event.on_gui_* ...
Fixed incorrect behavior in Gui.Event.remove
Fixed incorrect behavior in Gui.Event.remove
Lua
isc
Afforess/Factorio-Stdlib
dcc3a22759f59aa70d79f29978824241f0129ef4
stdlib/gui/gui.lua
stdlib/gui/gui.lua
--- Gui module -- @module Gui require 'stdlib/event/event' Gui = {} -- Factorio's gui events are so monolithic we need a special event system for it. Gui.Event = { _registry = {} } --- Registers a function for a given event and matching gui element pattern -- @param event Valid values are defines.event.on_gui_* ...
--- Gui module -- @module Gui require 'stdlib/event/event' Gui = {} -- Factorio's gui events are so monolithic we need a special event system for it. Gui.Event = { _registry = {} } --- Registers a function for a given event and matching gui element pattern -- @param event Valid values are defines.event.on_gui_* ...
Fixed error if GUI element is destroyed by any of it's handlers during the event dispatch loop.
Fixed error if GUI element is destroyed by any of it's handlers during the event dispatch loop.
Lua
isc
Afforess/Factorio-Stdlib
e0f51dd5e9e67f52e32d585f966853ab562554a4
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} access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["designated"] = true } access_tag_blackli...
Fixes issue #366
Fixes issue #366
Lua
bsd-2-clause
chaupow/osrm-backend,bjtaylor1/osrm-backend,Project-OSRM/osrm-backend,yuryleb/osrm-backend,keesklopt/matrix,raymond0/osrm-backend,atsuyim/osrm-backend,agruss/osrm-backend,stevevance/Project-OSRM,arnekaiser/osrm-backend,stevevance/Project-OSRM,arnekaiser/osrm-backend,ammeurer/osrm-backend,keesklopt/matrix,prembasumatary...
098b5c1560a8d5ce0a81abd5c149d996203852f1
interface/options/uid.lua
interface/options/uid.lua
local option = {} option.description = "Overwrite uid used for this flow. Useful to receive flows" .. " sent by another instance." option.configHelp = "Will also accept number values. Same restrictions as explained above." function option.getHelp() return { { "<number>", "Set the uid of this flow to <number>. Nee...
local option = {} option.description = "Overwrite uid used for this flow. Useful to receive flows" .. " sent by another instance." option.configHelp = "Will also accept number values. Same restrictions as explained above." function option.getHelp() return { { "<number>", "Set the uid of this flow to <number>. Nee...
Fix uid passing.
Fix uid passing.
Lua
mit
emmericp/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,scholzd/MoonGen
7654fc639a14d75f5e260e51933811f4e0904b78
deps/coro-split.lua
deps/coro-split.lua
--[[lit-meta name = "creationix/coro-split" version = "2.0.1" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-split.lua" description = "An coro style helper for running tasks concurrently." tags = {"coro", "split"} license = "MIT" author = { name = "Tim Caswell" } ]] -- Split takes several...
--[[lit-meta name = "creationix/coro-split" version = "2.0.1" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-split.lua" description = "An coro style helper for running tasks concurrently." tags = {"coro", "split"} license = "MIT" author = { name = "Tim Caswell" } ]] -- Split takes several...
coro-split: fixing resume before yielding
coro-split: fixing resume before yielding
Lua
apache-2.0
luvit/lit,zhaozg/lit
5e8bd7f6cf5da28867d4902003a1d29751b1a028
hostinfo/login.lua
hostinfo/login.lua
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(Hostinfo): login.defs checks for os.type()
fix(Hostinfo): login.defs checks for os.type()
Lua
apache-2.0
kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-m...
aaa46718b4243c364320b4ccf277533dba68bbc2
src/grpc_lua/impl/ServiceStub.lua
src/grpc_lua/impl/ServiceStub.lua
--- Service stub. -- Wraps C `ServiceStub` class. -- @classmod grpc_lua.impl.ServiceStub local ServiceStub = {} local c = require("grpc_lua.c") -- from grpc_lua.so local pb = require("luapbintf") local MethodInfo = require("grpc_lua.impl.MethodInfo") -----------------------------------------------------------------...
--- Service stub. -- Wraps C `ServiceStub` class. -- @classmod grpc_lua.impl.ServiceStub local ServiceStub = {} local c = require("grpc_lua.c") -- from grpc_lua.so local pb = require("luapbintf") local MethodInfo = require("grpc_lua.impl.MethodInfo") -----------------------------------------------------------------...
Fix on_response_str().
Fix on_response_str().
Lua
bsd-3-clause
jinq0123/grpc-lua,jinq0123/grpc-lua,jinq0123/grpc-lua
d9cad3292ed9fa48bbb9f948d3e7db5efe743479
tests/test-tcp.lua
tests/test-tcp.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix copyright and make host var
fix copyright and make host var
Lua
apache-2.0
GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,rjeli/luvit,zhaozg/luvit,kaustavha/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,rjeli/luvit,bsn069/luvit,DBarney/luvit,DBarney/luvit,bsn069/luvit,rjeli/luvit,rjeli/luvit,DBarney/luvit,kaustavha/luvit,kaustavha/luvit,DBarney/luvit,bsn069/luvit...
ad623bcfee4d12c029204cff8fe8f20198dd98b3
server/lualib/gameserver/gameserver.lua
server/lualib/gameserver/gameserver.lua
local skynet = require "skynet" local gateserver = require "gameserver.gateserver" local logger = require "logger" local protoloader = require "protoloader" local gameserver = {} local handshake = {} function gameserver.forward (fd, agent) gateserver.forward (fd, agent) end function gameserver.kick (fd) gateserv...
local skynet = require "skynet" local socketdriver = require "socketdriver" local gateserver = require "gameserver.gateserver" local logger = require "logger" local protoloader = require "protoloader" local gameserver = {} local handshake = {} function gameserver.forward (fd, agent) gateserver.forward (fd, agent) ...
fix login response
fix login response
Lua
mit
hsw625728/some-mmorpg,zj831007/some-mmorpg,catinred2/some-mmorpg,jintiao/some-mmorpg,thinkry/some-mmorpg,jintiao/some-mmorpg,catinred2/some-mmorpg,zj831007/some-mmorpg,jintiao/some-mmorpg,hsw625728/some-mmorpg,jintiao/some-mmorpg,catinred2/some-mmorpg,zj831007/some-mmorpg,thinkry/some-mmorpg,zj831007/some-mmorpg,catinr...
f1218aea10604b751206a0584522fd212074918e
luagcrypt_test.lua
luagcrypt_test.lua
-- -- Test suite for luagcrypt. -- -- Copyright (C) 2016 Peter Wu <peter@lekensteyn.nl> -- Licensed under the MIT license. See the LICENSE file for details. -- -- Convert a string of hexadecimal numbers to a bytes string function fromhex(hex) if string.match(hex, "[^0-9a-fA-F]") then error("Invalid chars i...
-- -- Test suite for luagcrypt. -- -- Copyright (C) 2016 Peter Wu <peter@lekensteyn.nl> -- Licensed under the MIT license. See the LICENSE file for details. -- -- Convert a string of hexadecimal numbers to a bytes string function fromhex(hex) if string.match(hex, "[^0-9a-fA-F]") then error("Invalid chars i...
test: fix for libgcrypt 1.7.0
test: fix for libgcrypt 1.7.0 Tested with libgcrypt-1.6.0-356-gd328095
Lua
mit
Lekensteyn/luagcrypt
2e0b05bb3a706aeb555dcdc3a97ee93928e8675d
lib/px/block/pxtemplate.lua
lib/px/block/pxtemplate.lua
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin ---------------------------------------------- local M = {} function M.load(config_file) local _M = {} local px_config = require(config_file) local lustache = require "lustache" local px_constants = require "...
--------------------------------------------- -- PerimeterX(www.perimeterx.com) Nginx plugin ---------------------------------------------- local M = {} function M.load(config_file) local _M = {} local px_config = require(config_file) local lustache = require "lustache" local px_constants = require "...
fixed mobile using first party paths (#118)
fixed mobile using first party paths (#118) * fixed mobile using first party paths * changed condition
Lua
mit
PerimeterX/perimeterx-nginx-plugin
bf62203c1d735e6c22924d05a7e40b2ed940a4d2
mod_carbons/mod_carbons.lua
mod_carbons/mod_carbons.lua
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:2"; local xmlns_carbons_old = "urn:xmpp:carbons:1"; local xmlns_carbons_real...
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:2"; local xmlns_carbons_old = "urn:xmpp:carbons:1"; local xmlns_carbons_real...
mod_carbons: Fix <private/> handling
mod_carbons: Fix <private/> handling
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
e3b567b2b136e3b8fb3da062d2cea26e4e5c5cf0
frontend/ui/rendertext.lua
frontend/ui/rendertext.lua
require "cache" --[[ TODO: all these functions should probably be methods on Face objects ]]-- function getGlyph(face, charcode) local hash = "glyph|"..face.hash.."|"..charcode local glyph = Cache:check(hash) if glyph then -- cache hit return glyph[1] end local rendered_glyph = face.ftface:renderGlyph(charco...
require "cache" --[[ TODO: all these functions should probably be methods on Face objects ]]-- function getGlyph(face, charcode) local hash = "glyph|"..face.hash.."|"..charcode local glyph = Cache:check(hash) if glyph then -- cache hit return glyph[1] end local rendered_glyph = face.ftface:renderGlyph(charco...
fix kerning for Utf8Text family methods from tigran123
fix kerning for Utf8Text family methods from tigran123 refer to master pullrequest #386 and #383, related commits are (all in master(kpv) tree): cb25029dddc42693cc7aaefbe47e9bd3b7e1a750 c7b4cf71f808a40d2461bac4e02bf8d2d4127327 379cba7b68cac6b00cc0ef74a7de6f18a174d838
Lua
agpl-3.0
mihailim/koreader,NiLuJe/koreader-base,apletnev/koreader-base,koreader/koreader-base,koreader/koreader,Hzj-jie/koreader-base,houqp/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,frankyifei/koreader-base,houqp/koreader-base,noname007/koreader,mwoz123/koreader,koreader/koreader-base,poire-z/koreader,NiLuJe...
7d8c1359ab494ab17c75a791231197ef139f6b94
BtUtils/Vector3.lua
BtUtils/Vector3.lua
-- A 3D Vector Library. -- By Gordon MacPherson with the assistance of google and sir divran! :L -- changes by: Michal Mojzk -- - adapted to be compatible BtUtils by -- - fixed methods to belong into the __index lookup table rather than the metatable itself -- - added LengthSqr -- - changed Normalize to alter ...
-- A 3D Vector Library. -- By Gordon MacPherson with the assistance of google and sir divran! :L -- changes by: Michal Mojzk -- - adapted to be compatible BtUtils by -- - fixed methods to belong into the __index lookup table rather than the metatable itself -- - added LengthSqr -- - changed Normalize to alter ...
fixing Rotate2D method to work with radians instead of degrees + using clockwise rotation interpretation instead of the opposite one
fixing Rotate2D method to work with radians instead of degrees + using clockwise rotation interpretation instead of the opposite one
Lua
mit
MartinFrancu/BETS
06d14c94e02f2568dc5f0e21604bebfcf13080fa
GameOfLife/main.lua
GameOfLife/main.lua
require("turtle") require("wx") require("dvdlualib/common") local life = require("dvdlualib/lifelib") io.stdout:setvbuf("no") function TurtleDraw(F,Arg) local sx = 0 local sy = 15 local fx = F:getW() local fy = F:getH() local dx = (Arg[1]-sx)/fx local dy = (Arg[2]-sy)/fy local x,y = 1,1 local i = 1 ...
require("turtle") require("wx") require("dvdlualib/common") local life = require("dvdlualib/lifelib") io.stdout:setvbuf("no") function TurtleDraw(F,Arg) local sx = 0 local sy = 18 local fx = F:getW() local fy = F:getH() local dx = (Arg[1]-sx)/fx local dy = (Arg[2]-sy)/fy local x,y = 0,0 local i = 1 ...
Fixed Turtle life draw having wrong y end
Fixed Turtle life draw having wrong y end
Lua
apache-2.0
dvdvideo1234/ZeroBraineProjects
28f329f314029d6381fac184c7e764195f9835ff
src/extensions/cp/ui/Menu.lua
src/extensions/cp/ui/Menu.lua
--- === cp.ui.Menu === --- --- UI for AXMenus. local require = require local Element = require("cp.ui.Element") local go = require "cp.rx.go" local If, WaitUntil = go.If, go.WaitUntil local find = string.find -- TIMEOUT_AFTER -> number -- Cons...
--- === cp.ui.Menu === --- --- UI for AXMenus. local require = require local Element = require "cp.ui.Element" local go = require "cp.rx.go" local find = string.find local If = go.If local WaitUntil = go.WaitUntil -- TIME...
Fixed a bug in cp.ui.Menu that broke "Show Horizon" action
Fixed a bug in cp.ui.Menu that broke "Show Horizon" action - Closes #2561
Lua
mit
CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost
5059a52d1ea15a6228f11d92c3b48b74cadc5cb4
item/id_220_barrel.lua
item/id_220_barrel.lua
-- white dye (2683) + gray cloth (176) --> white cloth (178) -- color dye + (white cloth (178) or grey cloth (176) --> colored cloth (see below for details) -- additional tool: dyeing rod (2781) -- UPDATE common SET com_script='item.id_220_barrel' WHERE com_itemid IN (220); require("base.common") require("content.ga...
-- white dye (2683) + gray cloth (176) --> white cloth (178) -- color dye + (white cloth (178) or grey cloth (176) --> colored cloth (see below for details) -- additional tool: dyeing rod (2781) -- UPDATE common SET com_script='item.id_220_barrel' WHERE com_itemid IN (220); require("base.common") require("content.ga...
fix bucket return
fix bucket return * drop bucket to the ground, if space left for cloth but not for bucket (Mantis 0009447) * drop only 1 bucket, if no space left for cloth+bucket
Lua
agpl-3.0
Baylamon/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content
186099ba954e31e49e330abb1b621ec2e4aa75a2
solver/selfgrav.lua
solver/selfgrav.lua
local class = require 'ext.class' local Poisson = require 'solver.poisson' local SelfGrav = class(Poisson) SelfGrav.gravityConstant = 1 ---- 6.67384e-11 m^3 / (kg s^2) -- params for solver/poisson.cl function SelfGrav:getCodeParams() return { args = 'const global cons_t* UBuf', calcRho = '#define gravitational...
local class = require 'ext.class' local Poisson = require 'solver.poisson' local SelfGrav = class(Poisson) SelfGrav.gravityConstant = 1 ---- 6.67384e-11 m^3 / (kg s^2) -- params for solver/poisson.cl function SelfGrav:getCodeParams() return { args = 'const global '..self.solver.eqn.cons_t..'* UBuf', calcRho = ...
and the last of the fixed types
and the last of the fixed types
Lua
mit
thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua,thenumbernine/hydro-cl-lua
3e88201e15960bac22e0f5ac10b570c7e9469220
lib/luvit/utils.lua
lib/luvit/utils.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
Fix memory leak in utils.bind
Fix memory leak in utils.bind
Lua
apache-2.0
bsn069/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,DBarney/luvit,AndrewTsao/luvit,sousoux/luvit,sousoux/luvit,boundary/luvit,kaustavha/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,AndrewTsao/luvit,b...
abe1926d7501b6f8d510db754157969e5cde186f
[resources]/GTWgui/s_refresh.lua
[resources]/GTWgui/s_refresh.lua
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: https://forum.404rq.com/bug-reports/ Suggestions: https://forum.404rq.com/mta-...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: https://forum.404rq.com/bug-reports/ Suggestions: https://forum.404rq.com/mta-...
Again a small fix
Again a small fix
Lua
bsd-2-clause
404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG
9369c58ee1032042e1350323ac76c435bef52a12
src/cosy/email.lua
src/cosy/email.lua
local Configuration = require "cosy.configuration" local CSocket = require "cosy.socket" local I18n = require "cosy.i18n" local Logger = require "cosy.logger" local Scheduler = require "cosy.scheduler" local Socket = require "socket" local Smtp = require "socket.smtp" local Ssl...
local Configuration = require "cosy.configuration" local CSocket = require "cosy.socket" local I18n = require "cosy.i18n" local Logger = require "cosy.logger" local Scheduler = require "cosy.scheduler" local Socket = require "socket" local Smtp = require "socket.smtp" local Ssl...
Fix email sending with i18n.
Fix email sending with i18n.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
cb33507a67d9b5e9b9f1caf0a87c29ee6842455b
OS/DiskOS/Libraries/map.lua
OS/DiskOS/Libraries/map.lua
local path = select(1,...) return function(w,h,sheet) local Map = {} Map.w, Map.h = w or 24, h or 9 --Initialize the map table Map.m = {} for x=1, Map.w do Map.m[x] = {} for y=1, Map.h do Map.m[x][y] = 0 end end Map.sheet = sheet --If called with a function, it will be called on ev...
local path = select(1,...) return function(w,h,sheet) local Map = {} Map.w, Map.h = w or 24, h or 9 --Initialize the map table Map.m = {} for x=1, Map.w do Map.m[x] = {} for y=1, Map.h do Map.m[x][y] = 0 end end Map.sheet = sheet --If called with a function, it will be called on ev...
Bugfix the error when loading a cart
Bugfix the error when loading a cart
Lua
mit
RamiLego4Game/LIKO-12
2282d76e32a0f76e64e358c0c89a93c7c3eabd31
lua/entities/gmod_wire_addressbus.lua
lua/entities/gmod_wire_addressbus.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Address Bus" ENT.WireDebugName = "AddressBus" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPL...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Address Bus" ENT.WireDebugName = "AddressBus" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPL...
Fixed address buses not being duped
Fixed address buses not being duped
Lua
apache-2.0
sammyt291/wire,plinkopenguin/wiremod,rafradek/wire,mitterdoo/wire,NezzKryptic/Wire,garrysmodlua/wire,mms92/wire,dvdvideo1234/wire,bigdogmat/wire,Grocel/wire,wiremod/wire,notcake/wire,thegrb93/wire,Python1320/wire,CaptainPRICE/wire
03d1b1168c7d55251fb631286394ade8c46104ae
packages/unichar/init.lua
packages/unichar/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "unichar" function package:registerCommands () self:registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typese...
local base = require("packages.base") local package = pl.class(base) package._name = "unichar" function package:registerCommands () self:registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typese...
Revert "docs(packages): Fixup unichar documentation, work around known bug (#1549)"
Revert "docs(packages): Fixup unichar documentation, work around known bug (#1549)" This reverts commit 02ddce7ab28ac5d7c91b05a5695c611e0c4e1c03.
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
fccd715e0b7448135827e1ef270eb662afd4ae97
mod_register_url/mod_register_url.lua
mod_register_url/mod_register_url.lua
-- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page to complete the registration. local st = require "util.stanza"; function reg_redirect(event) local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" }; local url = module:get_option("regis...
-- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page to complete the registration. local st = require "util.stanza"; function reg_redirect(event) local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" }; local url = module:get_option("regis...
mod_register_url: minor fix.
mod_register_url: minor fix.
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
bfbe7535fea0f817419593fd07c60d3a96bacd2e
nvim/.config/nvim/lua/plugin_conf.lua
nvim/.config/nvim/lua/plugin_conf.lua
--setup needed functions local setkm = vim.api.nvim_set_keymap --Treesitter require('orgmode').setup_ts_grammar() -- Tree-sitter configuration require 'nvim-treesitter.configs'.setup { highlight = { enable = true, additional_vim_regex_highlighting = { 'org' }, }, ensure_installed = { 'org'...
--setup needed functions local setkm = vim.api.nvim_set_keymap --Treesitter require('orgmode').setup_ts_grammar() require 'nvim-treesitter.configs'.setup { highlight = { enable = true, additional_vim_regex_highlighting = { 'org' }, }, ensure_installed = { 'org' }, } --Telescope require("te...
[nvim] quickfix file formatting
[nvim] quickfix file formatting
Lua
mit
voltux/dotfiles,voltux/dotfiles,voltux/dotfiles
ccea8cb0f0ca67dc8b9207663a86eff6004d666d
LogSoftMax.lua
LogSoftMax.lua
function torch.ClTensor.nn.LogSoftMax_updateOutput(self, input) if input:dim() == 1 then if self.maxbuffer == nil then self.maxbuffer, self.resind = input:max(1) self.vec_size = input:size(1) end self.output:resize(input:size()) self.maxbuffer:max(self.resind, input, ...
require 'nn' nn.LogSoftMax.baseUpdateOutput = nn.LogSoftMax.updateOutput nn.LogSoftMax.baseUpdateGradInput = nn.LogSoftMax.updateGradInput function nn.LogSoftMax:updateOutput(input) if torch.type(input) ~= 'torch.ClTensor' then return self:baseUpdateOutput(input) end if input:dim() == 1 then if ...
fix logsoftmax following https://github.com/torch/nn/pull/549
fix logsoftmax following https://github.com/torch/nn/pull/549
Lua
bsd-2-clause
hughperkins/clnn,hughperkins/clnn,hughperkins/clnn,hughperkins/clnn
ad8389a758714af7e866e1db0ab830c8a9da31ee
WeightNorm.lua
WeightNorm.lua
-- Weight Normalization -- https://arxiv.org/pdf/1602.07868v3.pdf local WeightNorm, parent = torch.class("nn.WeightNorm", "nn.Container") function WeightNorm:__init(module, outputDim) -- this container will apply Weight Normalization to any module it wraps -- it accepts parameter ``outputDim`` that represents ...
-- Weight Normalization -- https://arxiv.org/pdf/1602.07868v3.pdf local WeightNorm, parent = torch.class("nn.WeightNorm", "nn.Container") function WeightNorm:__init(module, outputDim) -- this container will apply Weight Normalization to any module it wraps -- it accepts parameter ``outputDim`` that represents ...
Fix WeightNorm serialization for permutated weight matrices
Fix WeightNorm serialization for permutated weight matrices For layers where the first weight dimension does not correspond to the output dimension, self.viewOut will *not* correspond to self.weight:size(). This is fixed by introducing another member variable that simply holds the original size of the weight matrix.
Lua
bsd-3-clause
nicholas-leonard/nn
ce8531220f97bd171f58f6523d8ccb56be9bfda1
lua/wire/flir.lua
lua/wire/flir.lua
--[[ Simulation of FLIR (forward-looking infrared) vision. Possible future ideas: * Different materials have different emissivities: aluminium is about 20%, wherease asphalt is 95%. maybe we could use the physical properties to simulate this? * the luminance of a texture contributes *negatively* to its emissivi...
--[[ Simulation of FLIR (forward-looking infrared) vision. Possible future ideas: * Different materials have different emissivities: aluminium is about 20%, wherease asphalt is 95%. maybe we could use the physical properties to simulate this? * the luminance of a texture contributes *negatively* to its emissivi...
Better(er) FLIR rendering (#2308)
Better(er) FLIR rendering (#2308) * Fixed FLIR behavior and improved performance * Reverted stencil->material to fix fog, setlightingmode(1)->mat_fullbright 1 * Moved Color() outside of hook, added colormod and suppressenginelighting * added sun to TODO * revert all prop_ entities to just prop_physics, ren...
Lua
apache-2.0
wiremod/wire,Grocel/wire,dvdvideo1234/wire
96ce71d67a2d27adaf58bca878c566110183bd1d
mod_websocket/mod_websocket.lua
mod_websocket/mod_websocket.lua
-- Prosody IM -- Copyright (C) 2012 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:set_global(); local add_filter = require "util.filters".add_filter; local sha1 = require "util.hashes".sha1; local base64 = require "util.encod...
-- Prosody IM -- Copyright (C) 2012 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:set_global(); local add_filter = require "util.filters".add_filter; local sha1 = require "util.hashes".sha1; local base64 = require "util.encod...
mod_websocket: Fix require to work with lua-bitop (Thanks István and Zash)
mod_websocket: Fix require to work with lua-bitop (Thanks István and Zash)
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
2568da78b65fbaff91a27c1eb31264aa4a100fb6
lib/upstream.lua
lib/upstream.lua
local digest = require('openssl').digest.digest local git = require('creationix/git') local deframe = git.deframe local decodeTag = git.decoders.tag local decodeTree = git.decoders.tree local connect = require('creationix/coro-tcp').connect local makeRemote = require('./codec').makeRemote return function (storage, hos...
local digest = require('openssl').digest.digest local git = require('creationix/git') local deframe = git.deframe local decodeTag = git.decoders.tag local decodeTree = git.decoders.tree local connect = require('creationix/coro-tcp').connect local makeRemote = require('./codec').makeRemote return function (storage, hos...
Fix upstream.pull to not fetch objects already cached locally
Fix upstream.pull to not fetch objects already cached locally
Lua
apache-2.0
zhaozg/lit,squeek502/lit,lduboeuf/lit,james2doyle/lit,DBarney/lit,kidaa/lit,luvit/lit,1yvT0s/lit,kaustavha/lit
33a29cebe37af33a03c7172c2ce4ee82ab342d91
spec/integration/cli/restart_spec.lua
spec/integration/cli/restart_spec.lua
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" describe("CLI", function() setup(function() pcall(spec_helper.stop_kong) end) teardown(function() pcall(spec_helper.stop_kong) end) it("sh...
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" describe("CLI", function() setup(function() pcall(spec_helper.stop_kong) end) teardown(function() pcall(spec_helper.stop_kong) end) it("sh...
Fixing tests
Fixing tests
Lua
apache-2.0
Mashape/kong,ejoncas/kong,ejoncas/kong,Kong/kong,xvaara/kong,Kong/kong,salazar/kong,akh00/kong,ajayk/kong,ind9/kong,isdom/kong,beauli/kong,ind9/kong,jebenexer/kong,rafael/kong,smanolache/kong,Kong/kong,vzaramel/kong,li-wl/kong,ccyphers/kong,vzaramel/kong,Vermeille/kong,streamdataio/kong,jerizm/kong,streamdataio/kong,is...
591abadf8a4874d83fbdad28317b7d9679a04ed9
src/cosy/loader/js.lua
src/cosy/loader/js.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
Fix sleep/wakeup in JS loader.
Fix sleep/wakeup in JS loader.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
0912522eb9217cb3bf3ee0a9c2eb3af181acddce
game/scripts/vscripts/data/abilities.lua
game/scripts/vscripts/data/abilities.lua
LINKED_ABILITIES = { shredder_chakram_2 = {"shredder_return_chakram_2"}, shredder_chakram = {"shredder_return_chakram"}, kunkka_x_marks_the_spot = {"kunkka_return"}, life_stealer_infest = {"life_stealer_control", "life_stealer_consume"}, rubick_telekinesis = {"rubick_telekinesis_land"}, bane_nightmare = {"bane_ni...
LINKED_ABILITIES = { shredder_chakram_2 = {"shredder_return_chakram_2"}, shredder_chakram = {"shredder_return_chakram"}, kunkka_x_marks_the_spot = {"kunkka_return"}, life_stealer_infest = {"life_stealer_control", "life_stealer_consume"}, rubick_telekinesis = {"rubick_telekinesis_land"}, bane_nightmare = {"bane_ni...
balance(ogre_magi): disable multicast on some abilities
balance(ogre_magi): disable multicast on some abilities Refs #458, fixes #465, fixes #467.
Lua
mit
ark120202/aabs
46039b963e7801131747706e83c999960776402f
vrp/modules/map.lua
vrp/modules/map.lua
local client_areas = {} -- free client areas when leaving AddEventHandler("vRP:playerLeave",function(user_id,source) -- leave areas local areas = client_areas[source] if areas then for k,area in pairs(areas) do if area.inside then area.leave(source,k) end end end client_areas[so...
local client_areas = {} -- free client areas when leaving AddEventHandler("vRP:playerLeave",function(user_id,source) -- leave areas local areas = client_areas[source] if areas then for k,area in pairs(areas) do if area.inside and area.leave then area.leave(source,k) end end end ...
Fix more area issues with nil callbacks.
Fix more area issues with nil callbacks.
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
6925ff13d0ea593eda5883650421286eae9384fe
core/Matrix4.lua
core/Matrix4.lua
local class = require 'middleclass' local Matrix4 = class('core/Matrix4') function Matrix4:initialize( handle ) if handle then self.handle = handle else self.handle = NATIVE.CreateMatrix4() end end function Matrix4:copy() return Matrix4.new(NATIVE.CopyMatrix4(self.handle)) end funct...
local class = require 'middleclass' local Matrix4 = class('core/Matrix4') function Matrix4:initialize( handle ) self.handle = handle or NATIVE.CreateMatrix4() end function Matrix4:copy() return Matrix4:new(NATIVE.CopyMatrix4(self.handle)) end function Matrix4:__add( other ) return Matrix4:new(NATIVE.Ad...
Fixed Matrix4 class.
Fixed Matrix4 class.
Lua
mit
henry4k/konstrukt,henry4k/apoapsis,henry4k/apoapsis,henry4k/konstrukt,henry4k/apoapsis,henry4k/konstrukt
20c453e43c6abd8ebc9412389723875c90810daa
commands/assets.lua
commands/assets.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including w...
--[[ @cond ___LICENSE___ -- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including w...
Fix asset path
Fix asset path
Lua
mit
Zefiros-Software/ZPM
33057ea86c8c5e0126dda480c2c2aadca6a35b3d
scripts/bgfx.lua
scripts/bgfx.lua
-- -- Copyright 2010-2016 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED...
-- -- Copyright 2010-2016 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED...
Fixed amalgamated build.
Fixed amalgamated build.
Lua
bsd-2-clause
attilaz/bgfx,bkaradzic/bgfx,jdryg/bgfx,jpcy/bgfx,bkaradzic/bgfx,Synxis/bgfx,septag/bgfx,fluffyfreak/bgfx,Synxis/bgfx,MikePopoloski/bgfx,jdryg/bgfx,mmicko/bgfx,bkaradzic/bgfx,mendsley/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,mmicko/bgfx,fluffyfreak/bgfx,mendsley/bgfx,mendsley/bgfx,Synxis/bgfx,jpcy/bgfx,septag/bgfx,LWJGL-CI/bgfx...
c758d294edf922ada25fcb73e967b978b90852dd
scripts/bgfx.lua
scripts/bgfx.lua
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED_LIB_BU...
-- -- Copyright 2010-2015 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- function bgfxProject(_name, _kind, _defines) project ("bgfx" .. _name) uuid (os.uuid("bgfx" .. _name)) kind (_kind) if _kind == "SharedLib" then defines { "BGFX_SHARED_LIB_BU...
Linux: fixed building of shared libraries
Linux: fixed building of shared libraries
Lua
bsd-2-clause
emoon/bgfx,janstk/bgfx,mmicko/bgfx,mcanthony/bgfx,marco-we/bgfx,fluffyfreak/bgfx,BlueCrystalLabs/bgfx,0-wiz-0/bgfx,janstk/bgfx,v3n/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,bkaradzic/bgfx,BlueCrystalLabs/bgfx,elmindreda/bgfx,ming4883/bgfx,mcanthony/bgfx,attilaz/bgfx,ocornut/bgfx,ktotheoz/bgfx,fluffyfreak/bgfx,emoon/bgfx,sergeS...