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
b3b27bf5b482b1be3a0d7777a817cb87f6b1a38e
spec/integration/api/api_spec.lua
spec/integration/api/api_spec.lua
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local env = spec_helper.get_env() local created_ids = {} local kWebURL = spec_helper.API_URL local ENDPOINTS = { { collection = "apis", total = table.getn(env.faker.FIXTURES.api...
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local env = spec_helper.get_env() local created_ids = {} local kWebURL = spec_helper.API_URL local ENDPOINTS = { { collection = "apis", total = table.getn(env.faker.FIXTURES.api...
fix: api tests. Escaping was erroring.
fix: api tests. Escaping was erroring.
Lua
apache-2.0
AnsonSmith/kong,bbalu/kong,wakermahmud/kong,puug/kong,ropik/kong,ChristopherBiscardi/kong,skynet/kong,paritoshmmmec/kong,Skyscanner/kong,vmercierfr/kong,chourobin/kong,sbuettner/kong,peterayeni/kong
ec3350f9c78a87208b03ba30139f54deb978a724
lua_scripts/display_hitboxes.lua
lua_scripts/display_hitboxes.lua
-- Renders all currently active hitboxes, with the color depending on the type of hitbox. game_id = memory.readdword(0x023FFE0C) if game_id == 0x45564341 then -- ACVE, US DoS entity_list_start = 0x020CA3F0 entity_list_end = 0x020F6DEF entity_size = 0x2A0 hitbox_list_start = 0x0210AF18 screen_x_ptr = 0x0...
-- Renders all currently active hitboxes, with the color depending on the type of hitbox. identifier = memory.readword(0x0200000E) if identifier == 0xFDE3 then -- US DoS entity_list_start = 0x020CA3F0 entity_list_end = 0x020F6DEF entity_size = 0x2A0 hitbox_list_start = 0x0210AF18 screen_x_ptr = 0x020F70...
Fix some bugs with display hitboxes lua script
Fix some bugs with display hitboxes lua script
Lua
mit
LagoLunatic/DSVEdit
53efac47d2e04a3961c4f7d089d4c4f44bb20fb8
Mjolnir/setup.lua
Mjolnir/setup.lua
os.exit = mj._exit local function pack(...) return {n = select("#", ...), ...} end function mj.runstring(s) local fn, err = loadstring("return " .. s) if not fn then fn, err = loadstring(s) end if not fn then return tostring(err) end local str = "" local results = pack(pcall(fn)) for i = 2,results.n do...
os.exit = mj._exit local function pack(...) return {n = select("#", ...), ...} end function mj.runstring(s) local fn, err = loadstring("return " .. s) if not fn then fn, err = loadstring(s) end if not fn then return tostring(err) end local str = "" local results = pack(pcall(fn)) for i = 2,results.n do...
Fixing wording.
Fixing wording.
Lua
mit
knl/hammerspoon,asmagill/hammerspoon,emoses/hammerspoon,zzamboni/hammerspoon,kkamdooong/hammerspoon,lowne/hammerspoon,hypebeast/hammerspoon,zzamboni/hammerspoon,CommandPost/CommandPost-App,peterhajas/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,hypebeast/hammerspoon,Hammerspoon/hammerspoon,TimVonsee/hammerspoon,ch...
b1bb1b3f9f20d274fe089e4d8529716f1fa6d039
Tester.lua
Tester.lua
local Tester = torch.class('torch.Tester') function Tester:__init() self.errors = {} self.tests = {} self.testnames = {} self.curtestname = '' end function Tester:assert_sub (condition, message) self.countasserts = self.countasserts + 1 if not condition then local ss = debug.traceback('tester...
local Tester = torch.class('torch.Tester') function Tester:__init() self.errors = {} self.tests = {} self.testnames = {} self.curtestname = '' end function Tester:assert_sub (condition, message) self.countasserts = self.countasserts + 1 if not condition then local ss = debug.traceback('tester...
Extend assertError and fix global
Extend assertError and fix global Two new asserts: assertErrorMsg and assertErroObj, to compare the actual error message or object returned.
Lua
bsd-3-clause
syhw/torch7,jlegendary/torch7,WangHong-yang/torch7,dhruvparamhans/torch7,akhti/torch7,voidException/torch7,Moodstocks/torch7,massimobernava/torch7,ujjwalkarn/torch7,wickedfoo/torch7,ominux/torch7,bnk-iitb/torch7,kidaa/torch7,stein2013/torch7,Peilong/torch7,szagoruyko/torch7,ominux/torch7,iamtrask/torch7,hughperkins/tor...
26080c2f04e967071fa19a4e9fd3dd1fe87cbfe0
test.lua
test.lua
-- -- Copyright (C) 2012-2014 Arseny Vakhrushev <arseny.vakhrushev at gmail dot com> -- Please read the LICENSE file for license details -- math.randomseed(os.time()) local amf3 = require 'amf3' local amf3_encode = amf3.encode local amf3_decode = amf3.decode local error = error local pairs = pairs local print = pri...
-- -- Copyright (C) 2012-2014 Arseny Vakhrushev <arseny.vakhrushev at gmail dot com> -- Please read the LICENSE file for license details -- math.randomseed(os.time()) local amf3 = require 'amf3' local amf3_encode = amf3.encode local amf3_decode = amf3.decode local error = error local pairs = pairs local print = pri...
+ Fixes to the test
+ Fixes to the test
Lua
mit
neoxic/lua-amf3
168dffc6bd6aa21ef8ac32ea6987c9dd64a98101
packages/svg.lua
packages/svg.lua
local svg = require("svg") local pdf = require("justenoughlibtexpdf") local parser = require("core/opentype-parser") local pushSVG = function (string, desiredHeight, em, drop) local figure, width, height = svg.svg_to_ps(string,em) local scalefactor = 1 if desiredHeight then scalefactor = desiredHeight / heig...
local svg = require("svg") local pdf = require("justenoughlibtexpdf") local parser = require("core/opentype-parser") local pushSVG = function (string, desiredHeight, em, drop) local figure, width, height = svg.svg_to_ps(string,em) local scalefactor = 1 if desiredHeight then scalefactor = desiredHeight / heig...
fix(packages): Fix measurement-to-number issue in SVG
fix(packages): Fix measurement-to-number issue in SVG
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
92d9d9195418706e4abdd0eb7f36b79d93da1a11
lua/entities/gmod_wire_egp/lib/egplib/queuesystem.lua
lua/entities/gmod_wire_egp/lib/egplib/queuesystem.lua
-------------------------------------------------------- -- EGP Queue System -------------------------------------------------------- local EGP = EGP EGP.Queue = {} function EGP:AddQueueObject( Ent, ply, Function, Object ) if (!self.Queue[ply]) then self.Queue[ply] = {} end local n = #self.Queue[ply] if ...
-------------------------------------------------------- -- EGP Queue System -------------------------------------------------------- local EGP = EGP EGP.Queue = {} function EGP:AddQueueObject( Ent, ply, Function, Object ) if (!self.Queue[ply]) then self.Queue[ply] = {} end local n = #self.Queue[ply] if ...
[EGP] Fixed an error with appeared if you removed and created an object too fast.
[EGP] Fixed an error with appeared if you removed and created an object too fast.
Lua
apache-2.0
plinkopenguin/wiremod,notcake/wire,bigdogmat/wire,Grocel/wire,dvdvideo1234/wire,mitterdoo/wire,wiremod/wire,mms92/wire,sammyt291/wire,rafradek/wire,immibis/wiremod,thegrb93/wire,CaptainPRICE/wire,Python1320/wire,garrysmodlua/wire,NezzKryptic/Wire
e92f12a6b7aa720133e73a0d2f20cb3afb21434e
MMOCoreORB/bin/scripts/loot/items/nightsister_bicep_r.lua
MMOCoreORB/bin/scripts/loot/items/nightsister_bicep_r.lua
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. nightsister_bicep_r = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/armor/nightsister/armor_nightsister_bicep_r_s01.iff", craftingValues = { }, customizationStringNames = {}, cust...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. nightsister_bicep_r = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Nightsister Melee Armguard", directObjectTemplate = "object/tangible/wearables/armor/nightsister/armor_nightsister_bicep_r_s01.iff", craftingValues = { {"a...
[fixed] NS Bracer displayname and stats
[fixed] NS Bracer displayname and stats Change-Id: I3fce4fef6f4146ba98ba484bdd9667507b68fedc
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/...
6c18897b20cd409bbf1599c2e57f50b2f8720987
examples/moonsniff/traffic-gen.lua
examples/moonsniff/traffic-gen.lua
--- Generates MoonSniff traffic, i.e. packets contain an identifier and a fixed bit pattern --- Live mode and MSCAP mode require this type of traffic local lm = require "libmoon" local device = require "device" local memory = require "memory" local ts = require "timestamping" local hist = require "histogram"...
--- Generates MoonSniff traffic, i.e. packets contain an identifier and a fixed bit pattern --- Live mode and MSCAP mode require this type of traffic local lm = require "libmoon" local device = require "device" local memory = require "memory" local ts = require "timestamping" local hist = require "histogram"...
fix mac address setting in moonsniff gen
fix mac address setting in moonsniff gen
Lua
mit
gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen
35cf4de6bede3204c62485f764c0449c8047f235
mod_mam/rsm.lib.lua
mod_mam/rsm.lib.lua
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
mod_mam/rsm.lib: Remove log statement (fixes usage in verse)
mod_mam/rsm.lib: Remove log statement (fixes usage in verse)
Lua
mit
stephen322/prosody-modules,1st8/prosody-modules,BurmistrovJ/prosody-modules,iamliqiang/prosody-modules,dhotson/prosody-modules,guilhem/prosody-modules,softer/prosody-modules,vince06fr/prosody-modules,obelisk21/prosody-modules,softer/prosody-modules,BurmistrovJ/prosody-modules,brahmi2/prosody-modules,vfedoroff/prosody-m...
fc50621f0bcc4e1bfda47f00126bced78132151e
share/lua/playlist/dailymotion.lua
share/lua/playlist/dailymotion.lua
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007-2011 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either versio...
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007-2011 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either versio...
dailymotion.lua: fix page parsing
dailymotion.lua: fix page parsing (cherry picked from commit 2fe62d4008bef9698641a5453dea70db80a8803f) Signed-off-by: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>
Lua
lgpl-2.1
vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1
611a5311b69b0633ed6dfc7202244f42f93a7d33
frontend/device/android/powerd.lua
frontend/device/android/powerd.lua
local BasePowerD = require("device/generic/powerd") local _, android = pcall(require, "android") local AndroidPowerD = BasePowerD:new{ fl_min = 0, fl_max = 100, } -- Let the footer know of the change local function broadcastLightChanges() if package.loaded["ui/uimanager"] ~= nil then local Event =...
local BasePowerD = require("device/generic/powerd") local _, android = pcall(require, "android") local AndroidPowerD = BasePowerD:new{ fl_min = 0, fl_max = 100, } -- Let the footer know of the change local function broadcastLightChanges() if package.loaded["ui/uimanager"] ~= nil then local Event =...
Fix warmth settings on some android devices (#8104)
Fix warmth settings on some android devices (#8104)
Lua
agpl-3.0
Frenzie/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,NiLuJe/koreader,koreader/koreader,poire-z/koreader,koreader/koreader
69b6ca0bf6a188e4905542ed933afb4ba9ecb9e1
spec/alignment/goodSlices_spec.lua
spec/alignment/goodSlices_spec.lua
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. describe("npge.alignment.goodSlices", function() it("finds good slices", function() local goodSlices = require 'npge.alignment.goodSlices' assert.same(goodSlices...
-- lua-npge, Nucleotide PanGenome explorer (Lua module) -- Copyright (C) 2014-2015 Boris Nagaev -- See the LICENSE file for terms of use. describe("npge.alignment.goodSlices", function() it("finds good slices", function() local goodSlices = require 'npge.alignment.goodSlices' assert.same(goodSlices...
add shorter example of bug in goodSlices
add shorter example of bug in goodSlices
Lua
mit
npge/lua-npge,starius/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge
06f083be701c4aea3c9b8a09c07a635767730e8b
mod_mam/rsm.lib.lua
mod_mam/rsm.lib.lua
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers; do local function xs_int(st) return tonumber((st:get_text())); end local function xs_string(st) return s...
mod_mam/rsm.lib: Fix parsing of empty before tag
mod_mam/rsm.lib: Fix parsing of empty before tag
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
3ee63626139ddc42a9954687db3bbcd3b6e9a540
devel/emotion-table.lua
devel/emotion-table.lua
-- Generate a wikitext table of emotions VERSION = '1.0' utils = require 'utils' args = utils.processArgs({...}, utils.invert{'file', 'overwrite'}) f = nil if args.file ~= nil then if dfhack.filesystem.exists(args.file) and not args.overwrite then qerror('File exists, -overwrite not specified') end ...
-- Generate a wikitext table of emotions VERSION = '1.1' utils = require 'utils' args = utils.processArgs({...}, utils.invert{'file', 'overwrite'}) f = nil if args.file ~= nil then if dfhack.filesystem.exists(args.file) and not args.overwrite then qerror('File exists, -overwrite not specified') end ...
Update devel/emotion-table
Update devel/emotion-table * divider -> strength * Fix table markup * Add spaces to multiple-word emotions
Lua
unlicense
lethosor/dfhack-scripts,PeridexisErrant/lethosor-scripts,DFHack/lethosor-scripts
e172926af5338435d14c722d56a48c5ecdd9e837
frontend/ui/widget/logindialog.lua
frontend/ui/widget/logindialog.lua
--[[-- This widget displays a login dialog with a username and password. ]] local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/geometry") local InputDialog = re...
--[[-- This widget displays a login dialog with a username and password. ]] local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/geometry") local InputDialog = re...
LoginDialog: fix crash on focus switch (#5749)
LoginDialog: fix crash on focus switch (#5749)
Lua
agpl-3.0
koreader/koreader,NiLuJe/koreader,mwoz123/koreader,koreader/koreader,poire-z/koreader,Markismus/koreader,Frenzie/koreader,pazos/koreader,Frenzie/koreader,NiLuJe/koreader,mihailim/koreader,poire-z/koreader,Hzj-jie/koreader
0cad8af1d9c527e8b6c12f5d9571d86d8af98908
src/analytics/uvedelete.lua
src/analytics/uvedelete.lua
-- -- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. -- local function sub_del(_values) local lres = redis.call('hgetall',_values) local iter = 1 while iter <= #lres do local attr = lres[iter] local val = lres[iter+1] if string.byte(val,1) ~= 60 then loca...
-- -- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. -- local function sub_del(_values) local lres = redis.call('hgetall',_values) local iter = 1 while iter <= #lres do local attr = lres[iter] local val = lres[iter+1] if string.byte(val,1) ~= 60 then loca...
When deleting a UVE, check if the VALUES hashset exists before enqueing it for post-processing
When deleting a UVE, check if the VALUES hashset exists before enqueing it for post-processing Change-Id: I7ae54fa707f820ee11cf6facaf38b445c69151f2 Closes-Bug: 1434670
Lua
apache-2.0
DreamLab/contrail-controller,reiaaoyama/contrail-controller,codilime/contrail-controller,eonpatapon/contrail-controller,hthompson6/contrail-controller,facetothefate/contrail-controller,tcpcloud/contrail-controller,eonpatapon/contrail-controller,reiaaoyama/contrail-controller,nischalsheth/contrail-controller,rombie/cont...
1ba552c92e431aac5cb4de329ab9bccc170469f6
spec/async_spec.lua
spec/async_spec.lua
describe('testing the done callback with tokens', function() it('Tests done call back ordered', function() async() stub(done, 'done_cb') -- create a stub to prevent actually calling 'done' done:wait_ordered('1', '2', '3') assert.has_no_error(function() done('1') end) assert.has_error(function() ...
describe('testing the done callback with tokens', function() it('Tests done call back ordered', function() async() stub(done, 'done_cb') -- create a stub to prevent actually calling 'done' done:wait_ordered('1', '2', '3') assert.has_no_error(function() done('1') end) assert.has_error(function() ...
fix async spec
fix async spec
Lua
mit
o-lim/busted,Olivine-Labs/busted,nehz/busted,xyliuke/busted,DorianGray/busted,leafo/busted,mpeterv/busted,ryanplusplus/busted,istr/busted,sobrinho/busted
dc8e1807f04afcd8100d44b50ced1eda1cae782d
kong/plugins/request-transformer/schema.lua
kong/plugins/request-transformer/schema.lua
local pl_template = require "pl.template" local tx = require "pl.tablex" local typedefs = require "kong.db.schema.typedefs" local validate_header_name = require("kong.tools.utils").validate_header_name -- entries must have colons to set the key and value apart local function check_for_value(entry) local name, value ...
local pl_template = require "pl.template" local tx = require "pl.tablex" local typedefs = require "kong.db.schema.typedefs" local validate_header_name = require("kong.tools.utils").validate_header_name -- entries must have colons to set the key and value apart local function check_for_value(entry) local name, value ...
fix: change log level from notice to debug for a leftover line
fix: change log level from notice to debug for a leftover line
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
7266c074c37996a5dffc1368db0c737c575ac0e3
scripts/genie.lua
scripts/genie.lua
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- newoption { trigger = "with-tools", description = "Enable building tools.", } newoption { trigger = "with-shared-lib", description = "Enable building shared library.", } newoption { t...
-- -- Copyright 2010-2014 Branimir Karadzic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- newoption { trigger = "with-tools", description = "Enable building tools.", } newoption { trigger = "with-shared-lib", description = "Enable building shared library.", } newoption { t...
Fixed mingw-clang.
Fixed mingw-clang.
Lua
bsd-2-clause
LSBOSS/bgfx,ming4883/bgfx,elmindreda/bgfx,cyndis/bgfx,ming4883/bgfx,attilaz/bgfx,LSBOSS/bgfx,bkaradzic/bgfx,fluffyfreak/bgfx,jpcy/bgfx,mmicko/bgfx,marco-we/bgfx,Extrawurst/bgfx,jdryg/bgfx,mendsley/bgfx,kondrak/bgfx,mcanthony/bgfx,sergeScherbakov/bgfx,elmindreda/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,mendsley/bgfx,fluffyfre...
f39e8eebe273075ebcd297801a58c365298c64c5
net/http/parser.lua
net/http/parser.lua
local tonumber = tonumber; local assert = assert; local url_parse = require "socket.url".parse; local urldecode = require "net.http".urldecode; local function preprocess_path(path) path = urldecode((path:gsub("//+", "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end local level = 0; for component in pa...
local tonumber = tonumber; local assert = assert; local url_parse = require "socket.url".parse; local urldecode = require "net.http".urldecode; local function preprocess_path(path) path = urldecode((path:gsub("//+", "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end local level = 0; for component in pa...
net.http.parser: Skip url.parse when we don't have a full URL (also fixes traceback on paths starting with '//').
net.http.parser: Skip url.parse when we don't have a full URL (also fixes traceback on paths starting with '//').
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5fc7de3fed5fa17ffad85392e53be65982ad4bed
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...
Reworked FLIR visual behaviour (#2216)
Reworked FLIR visual behaviour (#2216) * Reworked FLIR visual behaviour * added hook removals, fixed 3d skybox color * adjusted color modifies, streamlined hooks, removed old material system * client ragdoll hook -> flir.Start() to fix no heat on bodies * removed print(test) from function * removed flir...
Lua
apache-2.0
wiremod/wire,dvdvideo1234/wire,Grocel/wire
4b4b549697b339619e48bb1132197f2a52465bcf
src/cosy/webclient/main.lua
src/cosy/webclient/main.lua
local js = _G.js local location = js.global.location local loader = require (location.origin .. "/lua/cosy.loader") _G.client = {} local function screen () local result,err = _G.client.server.filter({ iterator = "return function (yield, store)\ for k in pairs (store.user) do\ yield {lat = store.user [k].po...
return function (loader) local Value = loader.load "cosy.value" local Main = {} local function show_users () local result, err = loader.client.server.filter { iterator = [[ return function (coroutine, store) for user in store / "data" * ".*" do if user.position then ...
Fix HTML main lua code.
Fix HTML main lua code.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
2db20944f3122323bcfc40963d84bea7f53ea372
link/config/nvim/plug-config/nvim-cmp.lua
link/config/nvim/plug-config/nvim-cmp.lua
-- nvim-cmp is a super flexible and powerful completion plugin for Neovim. -- It even completes in the command entry area. local cmp = require "cmp" -- Use VSCode-like pictograms local lspkind = require "lspkind" cmp.setup( { -- This plugin is currently broken. Wait for fix. --[[ formatting = { -- Us...
-- nvim-cmp is a super flexible and powerful completion plugin for Neovim. -- It even completes in the command entry area. local cmp = require "cmp" -- Use VSCode-like pictograms local lspkind = require "lspkind" cmp.setup( { formatting = { -- Use VSCode-like pictograms in completions format = lspk...
Re-added lspkind after fix was submitted
Re-added lspkind after fix was submitted
Lua
mit
tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles
c934f12eb75ad7593b31232ce9dc24d8c9b2d640
mod_admin_web/admin_web/mod_admin_web.lua
mod_admin_web/admin_web/mod_admin_web.lua
-- Copyright (C) 2010 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- <session xmlns="http://prosody.im/streams/c2s" jid="alice@example.com/brussels"> -- <encrypted/> -- <compressed/> -- </session> -- <session xmlns="http://prosod...
-- Copyright (C) 2010 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- <session xmlns="http://prosody.im/streams/c2s" jid="alice@example.com/brussels"> -- <encrypted/> -- <compressed/> -- </session> -- <session xmlns="http://prosod...
mod_admin_web: Fix initialisation code, undeclared variable and wrong event scope
mod_admin_web: Fix initialisation code, undeclared variable and wrong event scope
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
6b077afbcbce2e700fae01f5a1d7f4135c34ba51
src/cosy/server.lua
src/cosy/server.lua
local loader = require "cosy.loader" local hotswap = loader.hotswap hotswap "cosy.string" local Server = {} function Server.get (http) if http.request.method == "POST" and http.request.headers.user_agent:match "GitHub-Hookshot/" and http.request.headers.x_github_event == "push" and loader.configuration.debu...
local loader = require "cosy.loader" local hotswap = loader.hotswap hotswap "cosy.string" local Server = {} function Server.get (http) if http.request.method == "POST" and http.request.headers.user_agent:match "GitHub%-Hookshot/" and http.request.headers.x_github_event == "push" and loader.configuration.deb...
Fix github hook.
Fix github hook.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
c48cd9380b80fe5491391e83a76ccedf58ac6b9c
minionmaster/minion.lua
minionmaster/minion.lua
local Unit = require "shared.unit" local Entity = require "shared.entity" local state = require "minionmaster.state" local content = require "minionmaster.content" local state = require "minionmaster.state" local Minion = Unit:subclass("Minion") local function findNearestEnemy(position, range) local nearest ...
local Unit = require "shared.unit" local Entity = require "shared.entity" local state = require "minionmaster.state" local content = require "minionmaster.content" local state = require "minionmaster.state" local Minion = Unit:subclass("Minion") local function findNearestEnemy(position, range) local nearest ...
fixed attack animation
fixed attack animation
Lua
mit
ExcelF/project-navel
dda4fc1a50b95c51110830a7c9d1823421f4d300
kong/concurrency.lua
kong/concurrency.lua
local resty_lock = require "resty.lock" local ngx_semaphore = require "ngx.semaphore" local get_phase = ngx.get_phase local concurrency = {} -- these must remain for the lifetime of the process local semaphores = {} function concurrency.with_worker_mutex(opts, fn) if type(opts) ~= "table" then error("opts...
local resty_lock = require "resty.lock" local ngx_semaphore = require "ngx.semaphore" local get_phase = ngx.get_phase local concurrency = {} -- these must remain for the lifetime of the process local semaphores = {} function concurrency.with_worker_mutex(opts, fn) if type(opts) ~= "table" then error("opts...
fix(concurrency) return error on failure to instantiate semaphore
fix(concurrency) return error on failure to instantiate semaphore Callers of this module should be given the choice as to how to handle the error. They should also have visibility into what the error was. As of this patch, the only user of this function is already logging failures with the appropriate logging level, ...
Lua
apache-2.0
Kong/kong,Kong/kong,Mashape/kong,Kong/kong
c11cce2d3b32198618bc74957beaaa8ef34a0373
src/xenia/ui/vulkan/premake5.lua
src/xenia/ui/vulkan/premake5.lua
project_root = "../../../.." include(project_root.."/tools/build") group("src") project("xenia-ui-vulkan") uuid("4933d81e-1c2c-4d5d-b104-3c0eb9dc2f00") kind("StaticLib") language("C++") links({ "xenia-base", "xenia-ui", "xenia-ui-spirv", }) defines({ }) includedirs({ project_root.."/thi...
project_root = "../../../.." include(project_root.."/tools/build") group("src") project("xenia-ui-vulkan") uuid("4933d81e-1c2c-4d5d-b104-3c0eb9dc2f00") kind("StaticLib") language("C++") links({ "xenia-base", "xenia-ui", "xenia-ui-spirv", }) defines({ }) includedirs({ project_root.."/thi...
Oops. Fix premake for xenia-ui-window-vulkan-demo.
Oops. Fix premake for xenia-ui-window-vulkan-demo.
Lua
bsd-3-clause
sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia
a7c30b41afb796492db5861fe0bca0e4799b64d6
lib/acid/cluster.lua
lib/acid/cluster.lua
local acid_paxos = require( "acid.paxos" ) local paxoshelper = require( "acid.paxoshelper" ) local paxosserver = require( "acid.paxosserver" ) local _M = { _VERSION="0.1", dead_wait = 60*20, dead_timeout = 86400, admin_lease = 60*2, max_dead = 4, _dead = {}, } local _mt = { __index = _M } l...
local acid_paxos = require( "acid.paxos" ) local paxoshelper = require( "acid.paxoshelper" ) local paxosserver = require( "acid.paxosserver" ) local _M = { _VERSION="0.1", dead_wait = 60*20, dead_timeout = 86400, admin_lease = 60*2, max_dead = 4, _dead = {}, } local _mt = { __index = _M } f...
fixup
fixup
Lua
mit
baishancloud/lua-acid,baishancloud/lua-acid,baishancloud/lua-acid
92f1645146c22699f4e2b567451f87fb0dbf2fc6
xmake/modules/detect/tools/find_vswhere.lua
xmake/modules/detect/tools/find_vswhere.lua
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
fix `vswhere` detection in find_vswhere
fix `vswhere` detection in find_vswhere
Lua
apache-2.0
waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake
2199da1713e658126d0611f72b146ef9eed263ff
frontend/ui/widget/filechooser.lua
frontend/ui/widget/filechooser.lua
local lfs = require("libs/libkoreader-lfs") local Menu = require("ui/widget/menu") local Screen = require("ui/screen") local UIManager = require("ui/uimanager") local DEBUG = require("dbg") local util = require("ffi/util") local ffi = require("ffi") ffi.cdef[[ int strcoll (char *str1, char *str2); ]] -- string sort fu...
local lfs = require("libs/libkoreader-lfs") local UIManager = require("ui/uimanager") local Menu = require("ui/widget/menu") local Screen = require("ui/screen") local Device = require("ui/device") local util = require("ffi/util") local DEBUG = require("dbg") local ffi = require("ffi") ffi.cdef[[ int strcoll (char *str1...
disable string collating in Kobo devices This should fix #686.
disable string collating in Kobo devices This should fix #686.
Lua
agpl-3.0
NickSavage/koreader,mwoz123/koreader,Frenzie/koreader,NiLuJe/koreader,koreader/koreader,noname007/koreader,Hzj-jie/koreader,lgeek/koreader,ashang/koreader,NiLuJe/koreader,chrox/koreader,poire-z/koreader,apletnev/koreader,houqp/koreader,mihailim/koreader,frankyifei/koreader,poire-z/koreader,chihyang/koreader,Markismus/k...
8c8a9c0cf8180ba8b766f06b5937c45a824c511a
shared/cm/config.lua
shared/cm/config.lua
-- This is a partly implemented next step in the channel manager to -- make an object which can load and save a configuration file so that -- we don't need to edit the source code of the channel manager to show -- the configuration directory. -- We're using some fancy parts of Lua called metatables which give us -- th...
-- This is a partly implemented next step in the channel manager to -- make an object which can load and save a configuration file so that -- we don't need to edit the source code of the channel manager to show -- the configuration directory. -- We're using some fancy parts of Lua called metatables which give us -- th...
Fixed up readng old config file.
Fixed up readng old config file.
Lua
mit
interfaceware/iguana-web-apps,interfaceware/iguana-web-apps
eb93614df762f4650ad6677d05d6552a401c4a68
site/api/compose.lua
site/api/compose.lua
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
compuser body should be unicode
compuser body should be unicode This addresses #445 (though not a complete fix yet)
Lua
apache-2.0
quenda/ponymail,quenda/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,quenda/ponymail,Humbedooh/ponymail,jimjag/ponymail,jimjag/ponymail,jimjag/ponymail,jimjag/ponymail
7a74cb0b7624143ef5cd81659185cedb6bb1c0bc
build/Tests.lua
build/Tests.lua
-- Tests/examples helpers function SetupTestProject(name, extraFiles) SetupTestGeneratorProject(name) SetupTestNativeProject(name) SetupTestProjectsCSharp(name, nil, extraFiles) end function SetupManagedTestProject() kind "SharedLib" language "C#" flags { "Unsafe" } SetupManagedProject() end...
-- Tests/examples helpers function SetupTestProject(name, extraFiles) SetupTestGeneratorProject(name) SetupTestNativeProject(name) SetupTestProjectsCSharp(name, nil, extraFiles) end function SetupManagedTestProject() kind "SharedLib" language "C#" flags { "Unsafe" } SetupManagedProject() end...
Fixed Mono build dirs lookup in OSX.
Fixed Mono build dirs lookup in OSX.
Lua
mit
tritao/MonoManagedToNative,tritao/MonoManagedToNative,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono/Embeddinator-4000,jonathanpeppers/Embeddinator-4000,mono...
38b447466c19adbece629507acf6100d90520bbd
PausableLinear.lua
PausableLinear.lua
local PausableLinear, Parent = torch.class('nn.PausableLinear', 'nn.Linear') function PausableLinear:__init(inputSize, outputSize) Parent.__init(self, inputSize, outputSize) self.pause = 0 -- pos value to prevent accGradParameters/updateParameters end function PausableLinear:pause() self.pause = 1 end funct...
local PausableLinear, Parent = torch.class('nn.PausableLinear', 'nn.Linear') function PausableLinear:__init(inputSize, outputSize) Parent.__init(self, inputSize, outputSize) self.pause = 0 -- pos value to prevent accGradParameters/updateParameters end function PausableLinear:accGradParameters(input, gradOutput...
fix: pass self to Parent call
fix: pass self to Parent call
Lua
bsd-3-clause
caldweln/nn
571e04d7c0c9a94c666f5b8994ff7f7384720210
premake4.lua
premake4.lua
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'luazmq' configurations {'Debug', 'Release'} --flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32', 'x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } configuration 'Re...
-- -- Premake4 build script (http://industriousone.com/premake/download) -- solution 'luazmq' configurations {'Debug', 'Release'} --flags {'ExtraWarnings'} targetdir 'bin' platforms {'x32', 'x64'} configuration 'Debug' defines { 'DEBUG' } flags { 'Symbols' } configuration 'Re...
fix gcc compiling error
fix gcc compiling error
Lua
apache-2.0
ichenq/lua-zmq
60c5b6a34e70daf7dde6d96f35203bb14bd57ea1
CTCCriterion.lua
CTCCriterion.lua
------------------------------------------------------------------------ --[[ CTCCriterion ]]-- -- CTC Alignment for sequence data where input and labels do not align. -- Useful for speech recognition on a phoneme/character level basis. -- Inputs assumed are in the form of batch x time x inputdim. -- Targets assumed in...
------------------------------------------------------------------------ --[[ CTCCriterion ]]-- -- CTC Alignment for sequence data where input and labels do not align. -- Useful for speech recognition on a phoneme/character level basis. -- Inputs assumed are in the form of batch x time x inputdim. -- Targets assumed in...
Fixed CPU gradInputs float error
Fixed CPU gradInputs float error
Lua
mit
clementfarabet/lua---nnx
9d2c922444ad6874d34ef5bfed40f4cee9d02115
xmake.lua
xmake.lua
set_xmakever("2.1.3") set_languages("gnu++14") if is_mode("debug") then set_symbols("debug") set_optimize("none") set_warnings("all", "error") add_defines("DEBUG") add_undefines("NDEBUG") end if is_mode("release") then set_symbols("hidden") set_optimize("fastest") set_strip("all") set_warnings("none") add_d...
set_xmakever("2.1.3") set_languages("gnu++14") if is_mode("debug") then set_symbols("debug") set_optimize("none") set_warnings("all", "error") add_defines("DEBUG") add_undefines("NDEBUG") end if is_mode("release") then set_optimize("fastest") set_strip("all") set_warnings("none") add_defines("NDEBUG") add_u...
fix caused by set_symbols
fix caused by set_symbols
Lua
agpl-3.0
745275633/Factorio-Mod-info
feaea1737788d0836cf000de411f93f4dd692959
spec/cap_spec.lua
spec/cap_spec.lua
describe("lpjit", function() it("captures parts of pattern", function() local lpeg = require 'lpeg' local lpjit = require 'lpjit' local pattern = lpeg.P 'a' * lpeg.C('b') * lpeg.P('c') local pattern2 = lpjit.compile(pattern) assert.equal('b', pattern2:match('abc')) ...
describe("lpjit", function() it("captures parts of pattern", function() local lpeg = require 'lpeg' local lpjit = require 'lpjit' local pattern = lpeg.P 'a' * lpeg.C('b') * lpeg.P('c') local pattern2 = lpjit.compile(pattern) assert.equal('b', pattern2:match('abc')) ...
fix error in test
fix error in test see https://travis-ci.org/starius/lpjit/jobs/65168418#L652
Lua
mit
starius/lpjit,starius/lpjit
e9629367a6ab816603e35e56bb65b0d18dc66196
kong/cmd/quit.lua
kong/cmd/quit.lua
local nginx_signals = require "kong.cmd.utils.nginx_signals" local conf_loader = require "kong.conf_loader" local pl_path = require "pl.path" local kill = require "kong.cmd.utils.kill" local log = require "kong.cmd.utils.log" local function execute(args) log.disable() -- retrieve default prefix or use given one ...
local nginx_signals = require "kong.cmd.utils.nginx_signals" local conf_loader = require "kong.conf_loader" local pl_path = require "pl.path" local kill = require "kong.cmd.utils.kill" local log = require "kong.cmd.utils.log" local function execute(args) log.disable() -- retrieve default prefix or use given one ...
fix(cli) log forceful shutdown message upon SIGQUIT timeout
fix(cli) log forceful shutdown message upon SIGQUIT timeout The CLI `quit` command would even on a forceful exit still print a 'graceful shutdown' message. From #3061
Lua
apache-2.0
Kong/kong,Mashape/kong,Kong/kong,Kong/kong,jebenexer/kong
1fcddf12cd592b11255495ff739cb9ec5f255867
kong/constants.lua
kong/constants.lua
local plugins = { "jwt", "acl", "correlation-id", "cors", "oauth2", "tcp-log", "udp-log", "file-log", "http-log", "key-auth", "hmac-auth", "basic-auth", "ip-restriction", "request-transformer", "response-transformer", "request-size-limiting", "rate-limiting", "response-ratelimiting",...
local plugins = { "jwt", "acl", "correlation-id", "cors", "oauth2", "tcp-log", "udp-log", "file-log", "http-log", "key-auth", "hmac-auth", "basic-auth", "ip-restriction", "request-transformer", "response-transformer", "request-size-limiting", "rate-limiting", "response-ratelimiting",...
fix(plugins) enable grpc-web and grpc-gateway plugins by default
fix(plugins) enable grpc-web and grpc-gateway plugins by default
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
a6e6f1c7830a4dbe43e2292fe71c52d5c47a8de3
core/baseclass.lua
core/baseclass.lua
SILE.Commands = {} function SILE.registerCommand (name, f) SILE.Commands[name] = f end SILE.baseClass = { registerCommands = (function() local commandStack = {}; SILE.registerCommand("define", function (options, content) SILE.registerCommand(options["command"], function(o,c) local prevState = S...
SILE.Commands = {} function SILE.registerCommand (name, f) SILE.Commands[name] = f end SILE.baseClass = { registerCommands = (function() local commandStack = {}; SILE.registerCommand("define", function (options, content) SILE.registerCommand(options["command"], function(o,c) local prevState = S...
Various fixes.
Various fixes.
Lua
mit
anthrotype/sile,simoncozens/sile,shirat74/sile,shirat74/sile,neofob/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,alerque/sile,alerque/sile,alerque/sile,Nathan22Miles/sile,neofob/sile,alerque/sile,WAKAMAZU/sile_fe,simoncozens/sile,simoncozens/sile,anthrotype/sile,shirat74/sile,simoncozens/sile,Nathan22Miles/sile,anthrotype/...
00a14b1b2367dc112aee3e512c2632d54678faf2
src/logging/logging.lua
src/logging/logging.lua
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
fix #1 bug relative to logging.file
fix #1 bug relative to logging.file
Lua
mit
mwchase/log4l,Neopallium/lualogging,StoneDot/lualogging
46538722da861a22b69abe7229ee410c6ee5639f
Boilerplate_Resource/src/Boilerplate_Resource.lua
Boilerplate_Resource/src/Boilerplate_Resource.lua
-------------------------------------------------------- -- This file is part of the JX3 Plugin Project. -- @desc : Դ -- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd. -------------------------------------------------------- ----------------------------------------------------------------------------------------...
-------------------------------------------------------- -- This file is part of the JX3 Plugin Project. -- @desc : Դ -- @copyright: Copyright (c) 2009 Kingsoft Co., Ltd. -------------------------------------------------------- ----------------------------------------------------------------------------------------...
fix: 按钮样式附加资源地址问题
fix: 按钮样式附加资源地址问题
Lua
bsd-3-clause
tinymins/MY
cde4cc5f4b610d18a923ef61d6708da6dbc7c35c
api-gateway-config/scripts/lua/routing.lua
api-gateway-config/scripts/lua/routing.lua
-- Copyright (c) 2016 IBM. All rights reserved. -- -- 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, mod...
-- Copyright (c) 2016 IBM. All rights reserved. -- -- 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, mod...
Fix upstream ignoring port for backendUrl
Fix upstream ignoring port for backendUrl
Lua
apache-2.0
LukeFarrell/incubator-openwhisk-apigateway,alexsong93/openwhisk-apigateway,taylorking/apigateway,openwhisk/apigateway,LukeFarrell/incubator-openwhisk-apigateway,alexsong93/openwhisk-apigateway,taylorking/apigateway,openwhisk/openwhisk-apigateway,openwhisk/openwhisk-apigateway,openwhisk/apigateway,openwhisk/apigateway,a...
fe410459ac5c03b95435224a88d9289cfa5829e8
lua/wire/wire_paths.lua
lua/wire/wire_paths.lua
-- wire_paths.lua -- -- This file implements syncing of wire paths, which are the visual -- component of wires. -- -- Conceptually, a wire path has a material, a color, and a non-zero width, as -- well as as a non-empty polyline along the wire. (Each point in the line -- has both a parent entity, and a local offset fro...
-- wire_paths.lua -- -- This file implements syncing of wire paths, which are the visual -- component of wires. -- -- Conceptually, a wire path has a material, a color, and a non-zero width, as -- well as as a non-empty polyline along the wire. (Each point in the line -- has both a parent entity, and a local offset fro...
Fix net spam caused by setting WirePaths to nil
Fix net spam caused by setting WirePaths to nil
Lua
apache-2.0
dvdvideo1234/wire,wiremod/wire,sammyt291/wire,NezzKryptic/Wire,Grocel/wire
8e7c5dbb18dff0c0ef4fe1e07103b20944d8466a
Phoenix/phoenix_init.lua
Phoenix/phoenix_init.lua
-- print(__api) -- print(__api.app_running_apps) -- for k, v in pairs(__api.app_running_apps()) do -- print(k, __api.app_title(v)) -- end for k, pid in pairs(__api.app_running_apps()) do local x = __api.app_get_windows(pid) print(__api.app_title(pid)) for k, v in pairs(x) do print(k, v) end end ...
-- print(__api) -- print(__api.app_running_apps) -- for k, v in pairs(__api.app_running_apps()) do -- print(k, __api.app_title(v)) -- end if false then -- TODO: fix this! for k, pid in pairs(__api.app_running_apps()) do local x = __api.app_get_windows(pid) print(__api.app_title(pid)) f...
Adding TODO to fix boring code
Adding TODO to fix boring code
Lua
mit
emoses/hammerspoon,Hammerspoon/hammerspoon,wsmith323/hammerspoon,dopcn/hammerspoon,dopcn/hammerspoon,joehanchoi/hammerspoon,knu/hammerspoon,CommandPost/CommandPost-App,wsmith323/hammerspoon,Stimim/hammerspoon,junkblocker/hammerspoon,emoses/hammerspoon,tmandry/hammerspoon,TimVonsee/hammerspoon,chrisjbray/hammerspoon,pet...
049bf07063b18ea1c61bcd92cf707a0e7bdc5eae
app/modules/repl.lua
app/modules/repl.lua
--[[ 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...
--[[ 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 error handling in repl
Fix error handling in repl
Lua
apache-2.0
bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,luvit/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,kaustavha/luvit,bsn069/luvit,zhaozg/luvit,DBarney/luvit,rjeli/luvi...
e711a5069b9579bdc977b76489e35650a5fa2826
redis/change_track_order.lua
redis/change_track_order.lua
local room_id = ARGV[1] local track_id = ARGV[2] local destination_track_num = tonumber(ARGV[3]) local raw_track_order = redis.call('hgetall', 'room:' .. room_id .. ':track-order') local current_track_num = tonumber(redis.call('get', 'room:' .. room_id .. ':current-track')) local function index_of(arr, item) for i=...
local room_id = ARGV[1] local track_id = ARGV[2] local destination_track_num = tonumber(ARGV[3]) local raw_track_order = redis.call('hgetall', 'room:' .. room_id .. ':track-order') local current_track_num = tonumber(redis.call('get', 'room:' .. room_id .. ':current-track')) local function index_of(arr, item) for i=...
fixed #75
fixed #75
Lua
agpl-3.0
vheuken/moomoo
0231e27f6b11f811c989a1daa0c4ef2ae19cfbe4
onmt/utils/Parallel.lua
onmt/utils/Parallel.lua
--[[ This file provides generic parallel class - allowing to run functions in different threads and on different GPU ]]-- local Parallel = { _pool = nil, count = 1, gradBuffer = torch.Tensor() } -- Synchronizes the current stream on dst device with src device. This is only -- necessary if we are not on the ...
--[[ This file provides generic parallel class - allowing to run functions in different threads and on different GPU ]]-- local Parallel = { _pool = nil, count = 1, gradBuffer = torch.Tensor() } -- Synchronizes the current stream on dst device with src device. This is only -- necessary if we are not on the ...
Fix crash when using multiple GPU
Fix crash when using multiple GPU
Lua
mit
jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,...
90cca4b79f17de44a131106d6dae14dfcfed8e88
binding/lua/util.lua
binding/lua/util.lua
#!/usr/bin/env lua util = {} ffi = require('ffi') util.tensor_type = { ['unsigned char'] = 'torch.ByteTensor', ['char'] = 'torch.CharTensor', ['short'] = 'torch.ShortTensor', ['int'] = 'torch.IntTensor', ['long'] = 'torch.LongTensor', ['float'] ='torch.FloatTensor', ['double'] = 'torch.Do...
#!/usr/bin/env lua util = {} ffi = require('ffi') util.tensor_type = { ['unsigned char'] = 'torch.ByteTensor', ['char'] = 'torch.CharTensor', ['short'] = 'torch.ShortTensor', ['int'] = 'torch.IntTensor', ['long'] = 'torch.LongTensor', ['float'] ='torch.FloatTensor', ['double'] = 'torch.Do...
Bug fix for lua binding util.
Bug fix for lua binding util.
Lua
mit
Microsoft/multiverso,Microsoft/multiverso,zhengsx/multiverso,you-n-g/multiverso,liming-vie/multiverso,you-n-g/multiverso,liming-vie/multiverso,you-n-g/multiverso,zhengsx/multiverso,zhengsx/multiverso,Microsoft/multiverso,Microsoft/multiverso,liming-vie/multiverso,liming-vie/multiverso,zhengsx/multiverso,you-n-g/multive...
5a629e429752c5f99d1233cb133bdf614fb7d7c0
lua_modules/ds18b20/ds18b20.lua
lua_modules/ds18b20/ds18b20.lua
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -------------------------------------------------------------------------------- -- Set module name as ...
-------------------------------------------------------------------------------- -- DS18B20 one wire module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> -- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values ---------------------------------------...
Fix for negative values
Fix for negative values
Lua
mit
zhujunsan/nodemcu-firmware,iotcafe/nodemcu-firmware,vowstar/nodemcu-firmware,remspoor/nodemcu-firmware,funshine/nodemcu-firmware,HEYAHONG/nodemcu-firmware,cal101/nodemcu-firmware,karrots/nodemcu-firmware,HEYAHONG/nodemcu-firmware,marcelstoer/nodemcu-firmware,bogvak/nodemcu-firmware,luizfeliperj/nodemcu-firmware,raburto...
e1f0688b5ff0a4aaaca7ba681c8e94039a45d9bf
search-engine_0.0.1/v2/main.lua
search-engine_0.0.1/v2/main.lua
local events = require("__flib__.event") local gui = require("__flib__.gui-beta") local gui_generic = require("v2/gui/gui_generic") local gui_step1 = require("v2/gui/step_1_search_spec") local search_results = require("v2/gui/search_results") local search = require("v2/search/searcher") local filters = require("v2/plu...
local events = require("__flib__.event") local gui = require("__flib__.gui-beta") local gui_generic = require("v2/gui/gui_generic") local gui_step1 = require("v2/gui/step_1_search_spec") local search_results = require("v2/gui/search_results") local search = require("v2/search/searcher") local filters = require("v2/plu...
Search Engine: Fix indentation inconsistency
Search Engine: Fix indentation inconsistency
Lua
mit
Zomis/FactorioMods
a86e122b15e915f73523c14fb4e93023088a8112
scripts/kettle_full.lua
scripts/kettle_full.lua
-- kettle_full v1.1 by Bardoth. Revised by Tallow -- -- Automatically runs many kettles, stoking as necessary. -- dofile("common.inc"); askText = singleLine([[ Kettles v1.1 (by Bardoth, revised by Tallow) -- Automatically runs many kettles, stoking as necessary. Make sure the VT window is in the TOP-RIGHT corne...
-- kettle_full v1.1 by Bardoth. Revised by Tallow -- -- Automatically runs many kettles, stoking as necessary. -- dofile("common.inc"); askText = singleLine([[ Kettles v1.1 (by Bardoth, revised by Tallow) -- Automatically runs many kettles, stoking as necessary. Make sure the VT window is in the TOP-RIGHT corne...
kettle_full.lua -- Reduce y by 10, Update wmText
kettle_full.lua -- Reduce y by 10, Update wmText Undo the y update from https://github.com/DashingStrike/Automato-ATITD/commit/61c9332e17b8a5a9fcee1c361ea48971da51c9cf commit . This didn't fix the issue with kettle, instead https://github.com/DashingStrike/Automato-ATITD/commit/092b3c15130d39077a817329062b4e2023df057b...
Lua
mit
wzydhek/Automato-ATITD,DashingStrike/Automato-ATITD,wzydhek/Automato-ATITD,DashingStrike/Automato-ATITD
fe66d43370869ee24fda825988184ad7834d712b
modules/exchange.lua
modules/exchange.lua
local simplehttp = require'simplehttp' local html2unicode = require'html' local cc = { ["AED"] = "United Arab Emirates Dirham (AED)", ["ANG"] = "Netherlands Antillean Guilder (ANG)", ["ARS"] = "Argentine Peso (ARS)", ["AUD"] = "Australian Dollar (AUD)", ["BDT"] = "Bangladeshi Taka (BDT)", ["BGN"] = "Bulgarian Le...
local simplehttp = require'simplehttp' local html2unicode = require'html' local cc = { ["AED"] = "United Arab Emirates Dirham (AED)", ["ANG"] = "Netherlands Antillean Guilder (ANG)", ["ARS"] = "Argentine Peso (ARS)", ["AUD"] = "Australian Dollar (AUD)", ["BDT"] = "Bangladeshi Taka (BDT)", ["BGN"] = "Bulgarian Le...
fix syntax error
fix syntax error Former-commit-id: 7a7f478280aa8faccfafd4c75152a55c9294340d [formerly 2624985e452d7ba55cd30f762ca62c4d82f50178] Former-commit-id: db52d54ff7c9fac2b96060cf4ac4e379946c31e2
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
94b601cbbaf3ac89a92aff3b72e273f1f9ee72f2
src/api-umbrella/utils/interval_lock.lua
src/api-umbrella/utils/interval_lock.lua
local lock = require "resty.lock" local _M = {} --- Only one thread can execute fn through its execution duration -- A lock (mutex) is held while the function executes and released at the end. -- Logs errors; no return value -- @param name - a unique identifier for this lock (automatically namespaced) -- @param fn - ...
local lock = require "resty.lock" local _M = {} --- Only one thread can execute fn through its execution duration -- A lock (mutex) is held while the function executes and released at the end. -- Logs errors; no return value -- @param name - a unique identifier for this lock (automatically namespaced) -- @param fn - ...
Fix the health check never getting to green with the new interval locks.
Fix the health check never getting to green with the new interval locks. The elasticsearch setup was never completing successfully since the HTTP calls it was making on the initial pass were done directly in the init_worker_by_lua context. Since HTTP APIs are disabled in this context, things were failing. To fix, we'l...
Lua
mit
apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella
8761976b54769e381b79e8268b9abbdc47c1518d
script/c80600054.lua
script/c80600054.lua
--零鳥姫リオート・ハルピュイア function c80600054.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),5),2) c:EnableReviveLimit() --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(80600054,0)) e1:SetCategory(CATEGORY_SPECIA...
--零鳥姫リオート・ハルピュイア function c80600054.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),5),2) c:EnableReviveLimit() --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(80600054,0)) e1:SetCategory(CATEGORY_SPECIA...
fix
fix fixed being able to attack after using 1. effect. fixed not reviving when destroyed by card effect changed special Summon to next standby phase
Lua
mit
SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher
18479cd4bd40a264e00e666faa267b4da8374403
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: Fixes for rdate config
modules/admin-full: Fixes for rdate config git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6884 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
zwhfly/openwrt-luci,zwhfly/openwrt-luci,dtaht/cerowrt-luci-3.3,phi-psi/luci,8devices/carambola2-luci,freifunk-gluon/luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,Flexibity/luci,phi-psi/luci,phi-psi/luci,vhpham80/luci,Canaan-Creative/luci,ReclaimYourPrivacy/cloak-luci,ReclaimYourPrivacy/cloak-luci,eugenesan/openwrt-luc...
4ea06b1debf344a7933329b6d23940c1f5ec9b85
esp/OTAUpdater.lua
esp/OTAUpdater.lua
ota_updater = {} ota_updater.write_base64_to_file = function(base64_string, filename) update = encoder.fromBase64(base64_string) file.open(filename, 'w+') then file.write(update) file.close() end end ota_updater.verify_checksum = function(file_name, encrypted_checksum) file.open(...
ota_updater = {} ota_updater.write_base64_to_file = function(base64_string, filename) update = encoder.fromBase64(base64_string) if file.open(filename, 'w+') then file.write(update) file.close() end end ota_updater.verify_checksum = function(file_name, encrypted_checksum) if file...
changed OTAUpdater to fix syntax
changed OTAUpdater to fix syntax
Lua
mit
jaspervandenberg/roselabs_project1,jaspervandenberg/roselabs_project1,jaspervandenberg/roselabs_project1
a1329f11771ac0182a9ce7f2ce4098dfb38875d7
game_view.lua
game_view.lua
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' watcher = require 'watcher' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_...
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' watcher = require 'watcher' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_...
bug in placing glider corrected and rotate by user done
bug in placing glider corrected and rotate by user done
Lua
mit
NamefulTeam/PortoGameJam2015
e107d4225ebbc520abbe6412b2573335f2032194
script/c81907872.lua
script/c81907872.lua
--ゴーストリック・スペクター function c81907872.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c81907872.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(81907872,0)) e2:S...
--ゴーストリック・スペクター function c81907872.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c81907872.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(81907872,0)) e2:S...
fix condition
fix condition
Lua
mit
Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher
6b7e154d3ba8fa7912a801b3cc087a4b1e73853f
src/lua-factory/sources/grl-euronews.lua
src/lua-factory/sources/grl-euronews.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
Revert "lua-factory: port grl-euronews.lua to the new lua system"
Revert "lua-factory: port grl-euronews.lua to the new lua system" This reverts commit 592bb1c7a5315e4f2582dad415e03e42f5a43cad. But keeps grl.fetch callback as function instead of string https://bugzilla.gnome.org/show_bug.cgi?id=763046
Lua
lgpl-2.1
jasuarez/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins
31d48808fc1e4f1517d570a3a0dfe33d4c8de4a5
scripts/tundra/tools/dotnet.lua
scripts/tundra/tools/dotnet.lua
module(..., package.seeall) local frameworkDir = "c:\\Windows\\Microsoft.NET\\Framework" local defaultFrameworkVersion = "v3.5" function apply(env, options) tundra.unitgen.load_toolset("generic-dotnet", env) local version = options and assert(options.Version) or defaultFrameworkVersion env:set_external_env_var...
module(..., package.seeall) local frameworkDir = "c:\\Windows\\Microsoft.NET\\Framework" local defaultFrameworkVersion = "v3.5" function apply(env, options) tundra.unitgen.load_toolset("generic-dotnet", env) local version = options and assert(options.Version) or defaultFrameworkVersion env:set_external_env_var...
Added DOTNET_SUFFIXES(_RESOURCE) to dotnet.lua
Added DOTNET_SUFFIXES(_RESOURCE) to dotnet.lua
Lua
mit
bmharper/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra
2dc8b0a2537c4ae66d3ddd8de66867e7fd930ac8
premake5.lua
premake5.lua
solution "SuperMatch5DX" configurations { "Debug", "Release" } flags { "FatalWarnings", "NoRTTI", "Unicode" } warnings "Extra" floatingpoint "Fast" vectorextensions "SSE2" targetdir "bin" configuration "Debug" defines { "DEBUG" } flags { "Symbols" } optimize "Off" configuration "Release" defines { "...
solution "SuperMatch5DX" configurations { "Debug", "Release" } flags { "FatalWarnings", "NoRTTI", "Unicode" } warnings "Extra" floatingpoint "Fast" vectorextensions "SSE2" targetdir "bin" configuration "Debug" defines { "DEBUG" } flags { "Symbols" } optimize "Off" configuration "Release" defines { "...
Fix compilation in Release mode
Fix compilation in Release mode
Lua
apache-2.0
yuriks/super-match-5-dx,yuriks/super-match-5-dx
c907334f9ad14f786b3716b4b37925ac0090f549
packages/footnotes.lua
packages/footnotes.lua
-- Footnotes class -- Exports: The \footnote command -- outputInsertions (call this in endPage) SILE.require("packages/counters") SILE.require("packages/raiselower") local insertions = SILE.require("packages/insertions") SILE.scratch.counters.footnote = { value= 1, display= "arabic" }; SILE.registerCommand(...
-- Footnotes class -- Exports: The \footnote command -- outputInsertions (call this in endPage) SILE.require("packages/counters") SILE.require("packages/raiselower") local insertions = SILE.require("packages/insertions") SILE.scratch.counters.footnote = { value= 1, display= "arabic" }; SILE.registerCommand(...
Add push/pop state back to footnote typesetter
Add push/pop state back to footnote typesetter Fixes issue #231 See commit b3072fa for where this issue was introduced.
Lua
mit
alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,alerque/sile,neofob/sile,alerque/sile,simoncozens/sile,neofob/sile,simoncozens/sile,neofob/sile,neofob/sile
8c826f3940e2af2001bd666febe69173792ee065
share/lua/playlist/koreus.lua
share/lua/playlist/koreus.lua
--[[ Copyright 2009 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
--[[ Copyright 2009 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
lua: fix koreus parsing.
lua: fix koreus parsing.
Lua
lgpl-2.1
krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,xkfz007/vlc,xkfz007/vlc,jomanmuk/vlc-2.1,krichter722/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,krichte...
7e1ef7bd21eee0dc60a3acaac377387c7f963d72
libs/util.lua
libs/util.lua
-- ivar2 IRC utilities and more -- vim: set noexpandtab: local reset = function(s) return '\015' end local bold = function(s) return string.format("\002%s\002", s) end local underline = function(s) return string.format("\031%s\031", s) end local italic = function(s) return string.format("\029%s\029", s) end local ...
-- ivar2 IRC utilities and more -- vim: set noexpandtab: local reset = function(s) return '\015' end local bold = function(s) return string.format("\002%s\002", s) end local underline = function(s) return string.format("\031%s\031", s) end local italic = function(s) return string.format("\029%s\029", s) end local ...
util: Fix mixed indent.
util: Fix mixed indent.
Lua
mit
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2
e9d1602eebd66ed250250461ac4c115a7ba31f65
lib/log_player.lua
lib/log_player.lua
package.cpath = "/usr/local/openresty/lualib/?.so;" .. package.cpath local logFilePath = arg[1] local MON={Jan=1,Feb=2,Mar=3,Apr=4,May=5,Jun=6,Jul=7,Aug=8,Sep=9,Oct=10,Nov=11,Dec=12} local geoip = require "geoip"; local geoip_country = require "geoip.country" local geoip_file = "/usr/share/GeoIP/GeoIP.dat" local geoip_...
package.cpath = "/usr/local/openresty/lualib/?.so;" .. package.cpath local logFilePath = arg[1] local MON={Jan=1,Feb=2,Mar=3,Apr=4,May=5,Jun=6,Jul=7,Aug=8,Sep=9,Oct=10,Nov=11,Dec=12} local geoip = require "geoip"; local geoip_country = require "geoip.country" local geoip_file = "/usr/share/GeoIP/GeoIP.dat" local geoip_...
fixed bug in log player
fixed bug in log player
Lua
mit
FTBpro/count-von-count,FTBpro/count-von-count
6b4acf85575025375f414371c749d9bab1dc6cf8
snippets.lua
snippets.lua
-- Snippets --- # Global Snippets usersnippets = { ['file'] = '%<buffer.filename>', ['beh'] = 'Behindertenpädagogik', ['FAB']= 'Fachkraft zur Arbeits- und Berufsförderung', ['FABs'] = 'Fachkräfte zur Arbeits- und Berufsförderung', ['FFK'] = 'Fähigkeiten, Fertigkeiten, Kenntnisse', ['SQ'] = 'Sch...
-- Snippets --- # Global Snippets usersnippets = { ['file'] = '%<buffer.filename>', -- Specific stuff I frequently use in my German academic texts ['beh'] = 'Behindertenpädagogik', ['FAB'] = 'Fachkraft zur Arbeits- und Berufsförderung', ['FABs'] = 'Fachkräfte zur Arbeits- und Berufsförd...
Bugfixes
Bugfixes
Lua
mit
sthesing/.textadept,sthesing/.textadept,sthesing/.textadept
9ef9cc7698ee63fc0a61207da3a77433b71daaef
scripts/lmkbuild.lua
scripts/lmkbuild.lua
require "lmk" require "lmkutil" require "lmkbase" local assert = assert local error = error local io = io local ipairs = ipairs local lmk = lmk local lmkbase = lmkbase local lmkutil = lmkutil local os = os local print = print local tostring = tostring local type = type module (...) add_files = lmk.add_files_local ap...
require "lmk" require "lmkutil" require "lmkbase" local assert = assert local error = error local io = io local ipairs = ipairs local lmk = lmk local lmkbase = lmkbase local lmkutil = lmkutil local os = os local print = print local tostring = tostring local type = type module (...) add_files = lmk.add_files_local ap...
Bugfix: missing header files were not being evaluated correctly in depend.
Bugfix: missing header files were not being evaluated correctly in depend.
Lua
mit
shillcock/lmk,dmzgroup/lmk
623d8182eb93c2cb0cb1ea81ecec926da2ce9849
service/launcher.lua
service/launcher.lua
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local launch_session = {} -- for command.QUERY,...
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local launch_session = {} -- for command.QUERY,...
fix #1246
fix #1246
Lua
mit
JiessieDawn/skynet,sanikoyes/skynet,sanikoyes/skynet,wangyi0226/skynet,hongling0/skynet,xjdrew/skynet,pigparadise/skynet,xcjmine/skynet,xcjmine/skynet,korialuo/skynet,pigparadise/skynet,icetoggle/skynet,icetoggle/skynet,wangyi0226/skynet,hongling0/skynet,sanikoyes/skynet,xjdrew/skynet,pigparadise/skynet,korialuo/skynet...
53e0c654af685b46a38548cca6d5df7bad30a7dc
src/luarocks/command_line.lua
src/luarocks/command_line.lua
--- Functions for command-line scripts. --module("luarocks.command_line", package.seeall) local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = requ...
--- Functions for command-line scripts. --module("luarocks.command_line", package.seeall) local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = requ...
Direct users to the bug tracker
Direct users to the bug tracker
Lua
mit
keplerproject/luarocks,aryajur/luarocks,rrthomas/luarocks,keplerproject/luarocks,tst2005/luarocks,usstwxy/luarocks,tarantool/luarocks,xpol/luarocks,rrthomas/luarocks,lxbgit/luarocks,tst2005/luarocks,lxbgit/luarocks,starius/luarocks,lxbgit/luarocks,xpol/luavm,starius/luarocks,xpol/luainstaller,xpol/luainstaller,xpol/lua...
dcdd3e1229a4ed53fe85fcf77ba2bcfb834a913e
MMOCoreORB/bin/scripts/commands/rally.lua
MMOCoreORB/bin/scripts/commands/rally.lua
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
[Fixed] SL Rally combatspam.
[Fixed] SL Rally combatspam. Change-Id: I1652d9c040493d7fdaca8ae1503a920c9c8ac316
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege...
57dcc86db6761cc3bcf64ef372b914465037b5ff
scripts/lib/getopt.lua
scripts/lib/getopt.lua
local api = {} api.noArgument = 0 api.requiredArgument = 1 api.optionalArgument = 2 api.notOpt = {} --[[ longOpts format: { name = { hasArg = 0|1|2, val = <something> }... } ]] function api.getopt(argTbl, optString, longOpts, noErrors) local printerrors = not noErrors longOpts = longOpts or {} loc...
local api = {} api.noArgument = 0 api.requiredArgument = 1 api.optionalArgument = 2 api.notOpt = {} --[[ longOpts format: { name = { hasArg = 0|1|2, val = <something> argumentLabel = "label" -- Required for printHelp when hasArg ~= 0 description = "text", -- Optional, used for printHelp s...
Fix getopt parsemode
Fix getopt parsemode
Lua
mit
incinirate/Riko4,incinirate/Riko4,incinirate/Riko4
23ebe39031eff118b9748f096ea7d464d316731d
frontend/apps/cloudstorage/webdavapi.lua
frontend/apps/cloudstorage/webdavapi.lua
local DocumentRegistry = require("document/documentregistry") local FFIUtil = require("ffi/util") local http = require('socket.http') local https = require('ssl.https') local ltn12 = require('ltn12') local mime = require('mime') local socket = require('socket') local url = require('socket.url') local util = require("ut...
local DocumentRegistry = require("document/documentregistry") local FFIUtil = require("ffi/util") local http = require('socket.http') local https = require('ssl.https') local ltn12 = require('ltn12') local mime = require('mime') local socket = require('socket') local url = require('socket.url') local util = require("ut...
Support for Apache WebDAV module (#6510)
Support for Apache WebDAV module (#6510) This change to the parser in `cloudstorage.lua` adds support for the [Apache WebDAV module][1] It was manually tested using the [bytemark/webdav][2] docker container. I developed this in Windows, with a docker container that hosted an extracted AppImage and a VNC server t...
Lua
agpl-3.0
NiLuJe/koreader,Frenzie/koreader,Hzj-jie/koreader,poire-z/koreader,koreader/koreader,mwoz123/koreader,pazos/koreader,Markismus/koreader,NiLuJe/koreader,Frenzie/koreader,poire-z/koreader,koreader/koreader
bba336f827152b4499872ade61b335ba45ac3c63
feedback/topcrop.lua
feedback/topcrop.lua
------------------------------------------------------------------------ --[[ TopCrop ]]-- -- Feedback for use with ImageNet-like dataset. ------------------------------------------------------------------------ local TopCrop, parent = torch.class("dp.TopCrop", "dp.Feedback") function TopCrop:__init(config) conf...
------------------------------------------------------------------------ --[[ TopCrop ]]-- -- Feedback for use with ImageNet-like dataset. ------------------------------------------------------------------------ local TopCrop, parent = torch.class("dp.TopCrop", "dp.Feedback") function TopCrop:__init(config) conf...
topcrop n_sample fix
topcrop n_sample fix
Lua
bsd-3-clause
fiskio/dp,jnhwkim/dp,rickyHong/dptorchLib,kracwarlock/dp,sagarwaghmare69/dp,nicholas-leonard/dp,eulerreich/dp
da3d385b6835ef75f774a47aee972e22dd653f98
src/cosy/email.lua
src/cosy/email.lua
local loader = require "cosy.loader" local ssl = require "ssl" local smtp = loader.hotswap "socket.smtp" if _G.js then error "Not available" end local Email = {} -- First case: detection, using blocking sockets -- Second case: email sending, using non-blocking sockets local make_socket = {} function make_so...
local loader = require "cosy.loader" local ssl = require "ssl" local smtp = loader.hotswap "socket.smtp" if _G.js then error "Not available" end local Email = {} -- First case: detection, using blocking sockets -- Second case: email sending, using non-blocking sockets local make_socket = {} function make_so...
Fix things in email sending, but still buggy...
Fix things in email sending, but still buggy...
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
3a99429aa32eab7e3335873c664e02e57c8380b3
agents/monitoring/tests/schedule/init.lua
agents/monitoring/tests/schedule/init.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 race condition in test, improve general test stability
fix race condition in test, improve general test stability
Lua
apache-2.0
cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-mo...
7630e9cd9d74d9969e0138b8ba11ec6ca78648eb
app/lua/main.lua
app/lua/main.lua
--local rx = require('rx') --local u = require('tableutil') --editor bootstrap local windowWidth = MOAIEnvironment.horizontalResolution or 300 local windowHeight = MOAIEnvironment.verticalResolution or 300 MOAISim.openWindow ( "test", windowWidth, windowHeight ) --needed but doesn't do anything now local ...
--local rx = require('rx') --local u = require('tableutil') --editor bootstrap local windowWidth = MOAIEnvironment.horizontalResolution or 300 local windowHeight = MOAIEnvironment.verticalResolution or 300 MOAISim.openWindow ( "test", windowWidth, windowHeight ) --needed but doesn't do anything now local ...
fix some resize issues, prop still clips
fix some resize issues, prop still clips
Lua
mit
halfnelson/moaiscene,halfnelson/moaiscene,halfnelson/moaiscene
f078bcbe32243691eb2de74591fe7b31e4f08f95
src/lib/yang/state.lua
src/lib/yang/state.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local shm = require("core.shm") local xpath = require("lib.yang.path") local yang = require("lib.yang.yang") local yang_data = require("lib.yang.data") local counter = require("cor...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local shm = require("core.shm") local xpath = require("lib.yang.path") local yang = require("lib.yang.yang") local yang_data = require("lib.yang.data") local counter = require("cor...
Fix problem in get-state causing number formatting issues
Fix problem in get-state causing number formatting issues There was a problem where the numbers where formatted with commas in to denote groups of three numbers. This was caused by the counters being wrapped in the core.counters_h struct. This fixe ensures they're unwrapped uint64 values.
Lua
apache-2.0
Igalia/snabbswitch,dpino/snabb,alexandergall/snabbswitch,dpino/snabb,eugeneia/snabb,Igalia/snabb,snabbco/snabb,snabbco/snabb,heryii/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,SnabbCo/snabbswitch,eugeneia/snabb,snabbco/snabb,alexandergall/snabbswitch,dpino/snabb,heryii/snabb,eugeneia/snabb,snabbco/...
7849eaf80f2c99bba3f69f952baf9713bade28d6
build/scripts/actions/package.lua
build/scripts/actions/package.lua
newoption({ trigger = "pack-libdir", description = "Specifiy the subdirectory in lib/ to be used when packaging the project" }) ACTION.Name = "Package" ACTION.Description = "Pack Nazara binaries/include/lib together" ACTION.Function = function () local libDir = _OPTIONS["pack-libdir"] if (not libDir or #libDi...
newoption({ trigger = "pack-libdir", description = "Specifiy the subdirectory in lib/ to be used when packaging the project" }) ACTION.Name = "Package" ACTION.Description = "Pack Nazara binaries/include/lib together" ACTION.Function = function () local libDir = _OPTIONS["pack-libdir"] if (not libDir or #libDi...
Build: Fix package on Linux/OS X
Build: Fix package on Linux/OS X Former-commit-id: af859279daff0a3277885a129dbe0a3b64b670ee [formerly 9b5c746de0092b15a3a6b22e7b62c0d786511f74] [formerly c0deb3f2282e65eced2a847bfe96fade40000e0d [formerly 778655003cf7af0d129e08cf1241c0e7062cbc02]] Former-commit-id: 1c43974f748ac73fb001ed826e33e6d65fa6be5a [formerly 86...
Lua
mit
DigitalPulseSoftware/NazaraEngine
bb9e5788c94b4fbd2a413d07286080d3b24b1433
Spr.lua
Spr.lua
-- Modulo per il Template Spr local s = {} local mw = require('mw') local tab = require('Wikilib-tables') local w = require('Wikilib') local gens = require('Wikilib-gens') --[[ Table che mantiene le associazioni tra il secondo parametro in lowercase e le sigle dei giochi negli sprite --]] local gamesAbbr = { ver...
-- Modulo per il Template Spr local s = {} local mw = require('mw') local tab = require('Wikilib-tables') local w = require('Wikilib') local gens = require('Wikilib-gens') --[[ Table che mantiene le associazioni tra il secondo parametro in lowercase e le sigle dei giochi negli sprite --]] local gamesAbbr = { ver...
Sor: Early management of current game, since it avoids lots of bugs and computation.
Sor: Early management of current game, since it avoids lots of bugs and computation.
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
6957dd91a31a9e51873abbcc601b449c31050877
example/gatedNegationRanking.lua
example/gatedNegationRanking.lua
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local optim = require "optim" -- set gated network hyperparameters local opt = {} opt.embedSize = 300 opt.gateSize = 300 opt.hiddenSize = 600 opt.jackknifeSize = 10 opt.numEpochs = 1 opt.batchSize = ...
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local optim = require "optim" -- set gated network hyperparameters local opt = {} opt.embedSize = 300 opt.gateSize = 300 opt.hiddenSize = 600 opt.jackknifeSize = 10 opt.numEpochs = 1 opt.batchSize = ...
Fix Paralleltable input for ranking criterion.
Fix Paralleltable input for ranking criterion.
Lua
mit
douwekiela/nncg-negation
b47d76b93bee333fc62f982075d84c73d7aa282a
pud/ui/TextEntry.lua
pud/ui/TextEntry.lua
local Class = require 'lib.hump.class' local Text = getClass 'pud.ui.Text' local KeyboardEvent = getClass 'pud.event.KeyboardEvent' local string_len = string.len local string_sub = string.sub local format = string.format -- TextEntry -- A text frame that gathers keyboard input. local TextEntry = Class{name='TextEntry...
local Class = require 'lib.hump.class' local Text = getClass 'pud.ui.Text' local KeyboardEvent = getClass 'pud.event.KeyboardEvent' local string_len = string.len local string_sub = string.sub local format = string.format -- TextEntry -- A text frame that gathers keyboard input. local TextEntry = Class{name='TextEntry...
fix backspace to delete to prev line and return to add line
fix backspace to delete to prev line and return to add line
Lua
mit
scottcs/wyx
e536eaf2f9e647a845781366598c79a3c4d683ee
packages/nn/Copy.lua
packages/nn/Copy.lua
local Copy, parent = torch.class('nn.Copy', 'nn.Module') function Copy:__init(intype, outtype) intype = intype or torch.getmetatable(torch.Tensor.__typename) outtype = outtype or torch.getmetatable(torch.Tensor.__typename) parent.__init(self) self.gradInput = torch.getmetatable(intype).new() self.outpu...
local Copy, parent = torch.class('nn.Copy', 'nn.Module') function Copy:__init(intype, outtype) intype = intype or torch.getmetatable(torch.Tensor.__typename) outtype = outtype or torch.getmetatable(torch.Tensor.__typename) parent.__init(self) self.gradInput = torch.getmetatable(intype).new() self.outpu...
oops, corrected bug just introduced in Copy
oops, corrected bug just introduced in Copy
Lua
bsd-3-clause
soumith/TH,soumith/TH,soumith/TH,soumith/TH
0ce42f55750179aef5ed6b60cf0e7387346cb603
test/test_jacobian.lua
test/test_jacobian.lua
require 'inn' local mytester = torch.Tester() local jac local precision = 1e-3 local inntest = torch.TestSuite() -- disabled test because of stochastic nature -- to do it properly testJacobian needs to reset seed before every forward --[[ function inntest.SpatialStochasticPooling() local from = math.random(1,5)...
require 'inn' local mytester = torch.Tester() local jac local precision = 1e-3 local inntest = torch.TestSuite() function inntest.SpatialStochasticPooling() local from = math.random(1,5) local ki = math.random(1,4) local kj = math.random(1,4) local si = math.random(1,3) local sj = math.random(1,3) ...
fix stochastic pooling test
fix stochastic pooling test
Lua
bsd-3-clause
szagoruyko/imagine-nn
3c1b12820d9e15af28f4888c2bfe7852ce8d6a76
spec/config_spec.lua
spec/config_spec.lua
local config = require "luacheck.config" local fs = require "luacheck.fs" local cur_dir = fs.has_lfs and fs.lfs.currentdir() local function nest(dir, func) if fs.has_lfs then local backed = false local function back() if not backed then fs.lfs.chdir(cur_dir) backed = tr...
local config = require "luacheck.config" local fs = require "luacheck.fs" local P = fs.normalize local cur_dir = fs.has_lfs and fs.lfs.currentdir() local function nest(dir, func) if not fs.has_lfs then pending("uses lfs") end local backed = false local function back() if not backed then ...
Windows compat fixes for config tests
Windows compat fixes for config tests
Lua
mit
linuxmaniac/luacheck,xpol/luacheck,linuxmaniac/luacheck,xpol/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,mpeterv/luacheck
e1eb96b01846674645cc882fb71cb9fd8b7b88b7
init.lua
init.lua
-- Alias various helper variables. local opt = vim.opt -- Options. local cmd = vim.cmd -- Vim commands. -- Enable relative line numbers. opt.number = true opt.relativenumber = true opt.scrolloff = 3 -- Highlight current line. opt.cursorline = true -- Ignore case in searches. opt.ignorecase = true -- Show the filena...
-- Alias various helper variables. local opt = vim.opt -- Options. local cmd = vim.cmd -- Vim commands. -- Enable relative line numbers. opt.number = true opt.relativenumber = true opt.scrolloff = 3 -- Highlight current line. opt.cursorline = true -- Ignore case in searches. opt.ignorecase = true -- Show the filena...
Fix neovim background color
Fix neovim background color
Lua
mit
HiDeoo/dotfiles
edbdbdfc5bacd861f51ad80e7e44a93d850267d5
vrp/client/admin.lua
vrp/client/admin.lua
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.admin then return end local Admin = class("Admin", vRP.Extension) -- METHODS function Admin:__construct() vRP.Extension.__construct(self) self.noclip = false self.noclip_speed = 1.0 -- noclip task ...
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.admin then return end local Admin = class("Admin", vRP.Extension) -- METHODS function Admin:__construct() vRP.Extension.__construct(self) self.noclip = false self.noclip_speed = 1.0 -- noclip task ...
Update admin.lua
Update admin.lua Fix TpTopMarker socorrectly find ground
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
8db5579f84e06b0f4eb278a72e58d052d807d768
Core.lua
Core.lua
local L = EPGPGlobalStrings EPGP = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceDB-2.0", "AceDebug-2.0", "AceEvent-2.0", "AceModuleCore-2.0") ------------------------------------------------------------------------------- -- DB defaults -------------------------------------------------------------------------...
local L = EPGPGlobalStrings EPGP = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceDB-2.0", "AceDebug-2.0", "AceEvent-2.0", "AceModuleCore-2.0") ------------------------------------------------------------------------------- -- DB defaults -------------------------------------------------------------------------...
Fix indentation.
Fix indentation.
Lua
bsd-3-clause
sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,ceason/epgp-tfatf
5510c0e87d5fbef5512b42473ecb6ce255737424
script/c80600029.lua
script/c80600029.lua
--ヴァンパイア・ソーサラー function c80600029.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c80600029.condit...
--ヴァンパイア・ソーサラー function c80600029.initial_effect(c) --to grave local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c80600029.condit...
fix
fix fixed lava golem interaction
Lua
mit
sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher
49e8863450ff5fc23333ae23a8c25bc93954ecbd
src/sounds/src/Shared/SoundUtils.lua
src/sounds/src/Shared/SoundUtils.lua
--[=[ Helps plays back sounds in the Roblox engine. ```lua SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound ``` @class SoundUtils ]=] local require = require(script.Parent.loader).load(script) local SoundService = game:GetService("SoundService") local RunService = game:GetService("Run...
--[=[ Helps plays back sounds in the Roblox engine. ```lua SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound ``` @class SoundUtils ]=] local require = require(script.Parent.loader).load(script) local SoundService = game:GetService("SoundService") local RunService = game:GetService("Run...
fix: Sounds can be played back from parents, and we can create sounds without playing them
fix: Sounds can be played back from parents, and we can create sounds without playing them
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
884b3a4b0bf719d7ad1756860e02e84a7c10cd2d
tests/test-timer.lua
tests/test-timer.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...
Add a test which demonstrates the problem and fails before my fix (4a6e25394fc53f572f49300b02bc9335eeeba126).
Add a test which demonstrates the problem and fails before my fix (4a6e25394fc53f572f49300b02bc9335eeeba126).
Lua
apache-2.0
GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,kaustavha/luvit,rjeli/luvit,kaustavha/luvit,rjeli/luvit,boundary/luvit,DBarney/luvit,zhaozg/luvit,bsn069/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,rjeli/luvit,zhaozg/luvit,boundary/l...
b37f05d837a1b57cae56955dabd21088e8817c88
tests/test_vflip.lua
tests/test_vflip.lua
require 'totem' require 'image' myTests = {} local tester = totem.Tester() -- List of all possible tests local all_tests = {} function all_tests.test_transformation_largeByteImage(flip) local x_real = image.fabio():double():mul(255) local x_byte = x_real:clone():byte() assert(x_byte:size(1) > 256 and x_...
require 'totem' require 'image' myTests = {} local tester = totem.Tester() -- List of all possible tests local all_tests = {} function all_tests.test_transformation_largeByteImage(flip) local x_real = image.fabio():double():mul(255) local x_byte = x_real:clone():byte() assert(x_byte:size(1) > 256 and x_...
Add failing test case for in-place vflip
Add failing test case for in-place vflip Thanks to @jonathantompson for spotting the bug, see issue #27
Lua
bsd-3-clause
jagapiou/image,torch/image,colesbury/image,Moodstocks/image,jonathantompson/image
8191a0a8e3a4e00beccace52ed241a6e142d2352
modules/more.lua
modules/more.lua
return { PRIVMSG = { ['^%pmore$'] = function(self, source, destination, module) local more = self.more[destination] if more then self:Msg('privmsg', destination, source, more) end end, ['^%pmore%?$'] = function(self, source, destination, module) local more = self.more[destination] if more then...
return { PRIVMSG = { ['^%pmore$'] = function(self, source, destination, module) if(destination == self.config.nick) then destination = source.nick end local more = self.more[destination] if more then self:Msg('privmsg', destination, source, more) end end, ['^%pmore%?$'] = function(self, so...
more: fix module to not only work on channels
more: fix module to not only work on channels Former-commit-id: 462720e4c1ed43262b2dc48373de80cd08fe6e8e [formerly d82319b781e06d69ff0bbfa17239adfe0e31e3d5] Former-commit-id: e7aef2ec2e0e7fd3ac2380a756fa117945e1a9cd
Lua
mit
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2
631cdde959180a933a75f73317768009d4348381
KSFramework/Product/Lua/UI/UILogin/UILogin.lua
KSFramework/Product/Lua/UI/UILogin/UILogin.lua
---@type UILogin local UILogin = {} extends(UILogin, UIBase) -- Maybe you have many `UILogin` instance? create a new function! -- Always write a New function is best practices function UILogin.New(controller) local newUILogin = new(UILogin) newUILogin.Controller = controller return newUILogin end ---测试场景数...
---@type UILogin local UILogin = {} extends(UILogin, UIBase) -- Maybe you have many `UILogin` instance? create a new function! -- Always write a New function is best practices function UILogin.New(controller) local newUILogin = new(UILogin) newUILogin.Controller = controller return newUILogin end ---测试场景数...
fixed lua log
fixed lua log
Lua
apache-2.0
mr-kelly/KSFramework,mr-kelly/KSFramework,mr-kelly/KSFramework,mr-kelly/KSFramework
8cb5229c14374e35a394e2637e972b21484c6e8a
commands/serve.lua
commands/serve.lua
local args = {...} return function () local createServer = require('coro-net').createServer local uv = require('uv') local httpCodec = require('http-codec') local websocketCodec = require('websocket-codec') local wrapIo = require('coro-websocket').wrapIo local log = require('log').log local makeRemote = ...
local args = {...} return function () local createServer = require('coro-net').createServer local uv = require('uv') local httpCodec = require('http-codec') local websocketCodec = require('websocket-codec') local wrapIo = require('coro-websocket').wrapIo local log = require('log').log local makeRemote = ...
Fix resource leak in lit server
Fix resource leak in lit server
Lua
apache-2.0
luvit/lit,zhaozg/lit,squeek502/lit,james2doyle/lit
254e62cfdb8dc453bd2bfb7c6f560a9bdc4a405a
packages/ubus-tmate/files/usr/lib/lua/tmate.lua
packages/ubus-tmate/files/usr/lib/lua/tmate.lua
#!/usr/bin/env lua --[[ Copyright (C) 2013-2020 LibreMesh.org This is free software, licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 ]]-- local TMATE_SOCK = "/tmp/tmate.sock" local TMATE_CONFIG = "/etc/tmate/tmate.conf" local tmate = {} function tmate.cmd_as_str(cmd) final_cmd = "tmate -f "..TM...
#!/usr/bin/env lua --[[ Copyright (C) 2013-2020 LibreMesh.org This is free software, licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 ]]-- local utils = require 'lime.utils' local TMATE_SOCK = "/tmp/tmate.sock" local TMATE_CONFIG = "/etc/tmate/tmate.conf" local tmate = {} function tmate.cmd_as_str...
ubus-tmate: fix missing import
ubus-tmate: fix missing import
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
569c48f40ede4a9729aaa7abe78e995acb20f8d9
src_trunk/resources/global/zone_globals.lua
src_trunk/resources/global/zone_globals.lua
gezn = getElementZoneName -- custom areas local hospitalcol = createColCuboid( 1520, 1750, 2070, 100, 80, 30 ) setElementInterior( hospitalcol, 4 ) local custommaps = { [ hospitalcol ] = { 'All Saints General Hospital', 'Los Santos' } } -- caching to improve efficiency local cache = { [true] = {}, [fal...
gezn = getElementZoneName -- custom areas local hospitalcol = createColCuboid( 1520, 1750, 2070, 100, 80, 30 ) setElementInterior( hospitalcol, 4 ) local custommaps = { [ hospitalcol ] = { 'All Saints General Hospital', 'Los Santos' } } -- caching to improve efficiency local cache = { [true] = {}, [fal...
fixed /district
fixed /district git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1929 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno