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
328e6748f78ea9f58884bd3429e2c4eb6012912a
lua/entities/gmod_wire_expression2/core/selfaware.lua
lua/entities/gmod_wire_expression2/core/selfaware.lua
/******************************************************************************\ Selfaware support \******************************************************************************/ __e2setcost(1) -- temporary e2function entity entity() return self.entity end e2function entity owner() return self.player end __e2s...
/******************************************************************************\ Selfaware support \******************************************************************************/ __e2setcost(1) -- temporary e2function entity entity() return self.entity end e2function entity owner() return self.player end __e2s...
fixed reference to missing locals
fixed reference to missing locals
Lua
apache-2.0
sammyt291/wire,NezzKryptic/Wire,wiremod/wire,Grocel/wire,dvdvideo1234/wire
685c381ec5309c80be0e2d35fbfbfdeb825f99b5
samples/testfiledlg.wlua
samples/testfiledlg.wlua
--[==[ luawinapi - winapi wrapper for Lua Copyright (C) 2011-2016 Klaus Oberhofer. See copyright notice in LICENSE file Test file dialog --]==] local winapi = require("luawinapi") local bit = require("bit32") local bor = bit.bor -- control IDs ID_EDIT = 1 ID_BUTTON = 2 -- commands CMD_OPENFILE = 100...
--[==[ luawinapi - winapi wrapper for Lua Copyright (C) 2011-2016 Klaus Oberhofer. See copyright notice in LICENSE file Test file dialog --]==] local winapi = require("luawinapi") local bit = require("bit32") local bor = bit.bor -- control IDs ID_EDIT = 1 ID_BUTTON = 2 -- commands CMD_OPENFILE = 100...
fixed filedialog example
fixed filedialog example
Lua
mit
oberhofer/luawinapi,oberhofer/luawinapi
723e6eacdfd72c3453d18fa5678c604a45ce4419
examples/alexnet.lua
examples/alexnet.lua
require 'dp' --[[command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('Training ImageNet (large-scale image classification) using an Alex Krizhevsky Convolution Neural Network') cmd:text('Ref.: A. http://www.cs.toronto.edu/~fritz/absps/imagenet.pdf') cmd:text('B. https://github.com/facebook/fbcunn/blob...
require 'dp' --[[command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('Training ImageNet (large-scale image classification) using an Alex Krizhevsky Convolution Neural Network') cmd:text('Ref.: A. http://www.cs.toronto.edu/~fritz/absps/imagenet.pdf') cmd:text('B. https://github.com/facebook/fbcunn/blob...
temporary SpatialMaxPooling fix
temporary SpatialMaxPooling fix
Lua
bsd-3-clause
rickyHong/dptorchLib,eulerreich/dp,jnhwkim/dp,sagarwaghmare69/dp,kracwarlock/dp,nicholas-leonard/dp,fiskio/dp
fb134b5114b42ae29731d01e739d9b916756fdbf
gamemode/cl_zm_options.lua
gamemode/cl_zm_options.lua
CreateClientConVar("zm_preference", "0", true, true, "What is your Zombie Master preference? (0 = Survivor, 1 = Zombie Master)") CreateClientConVar("zm_nopreferredmenu", "0", true, false, "Toggles the preference menu to appear or not.") GAMEMODE:MakePreferredMenu() local function ZM_Open_Preferred Menu(ply) if not I...
CreateClientConVar("zm_preference", "0", true, true, "What is your Zombie Master preference? (0 = Survivor, 1 = Zombie Master)") CreateClientConVar("zm_nopreferredmenu", "0", true, false, "Toggles the preference menu to appear or not.") local function ZM_Open_Preferred_Menu(ply) if not IsValid(ply) then return end G...
Fixed a error
Fixed a error
Lua
apache-2.0
ForrestMarkX/glua-ZombieMaster
87b860b3ecfad3d8d140e2eda8ed6247299283ee
spec/2.2.7_spec.lua
spec/2.2.7_spec.lua
local Helper = require('spec.spec_helper') local Promise = require('promise') local dummy = { dummy = 'dummy' } -- we fulfill or reject with this when we don't intend to test against it local sentinel = { sentinel = 'sentinel' } -- a sentinel fulfillment value to test for with strict equality local other = { other = '...
local Helper = require('spec.spec_helper') local Promise = require('promise') local dummy = { dummy = 'dummy' } -- we fulfill or reject with this when we don't intend to test against it local sentinel = { sentinel = 'sentinel' } -- a sentinel fulfillment value to test for with strict equality local other = { other = '...
Fix missing async() causing sporadic test failure.
Fix missing async() causing sporadic test failure.
Lua
mit
takaaptech/promise.lua,Billiam/promise.lua
30f1fae25ce6086ec2e7dce26bb6d91cbb1f7e1d
libs/sys/luasrc/sys/mtdow.lua
libs/sys/luasrc/sys/mtdow.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
More mtdow fixes
More mtdow fixes git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3360 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ReclaimYourPrivacy/cloak-luci,jschmidlapp/luci,8devices/carambola2-luci,ch3n2k/luci,Canaan-Creative/luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,ThingMesh/openwrt-luci,Flexibity/luci,dtaht/cerowrt-luci-3.3,ReclaimYourPrivacy/cloak-luci,alxhh/piratenluci,vhpham80/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,Th...
ca8fbd771a10ee3ef9f902ccfacd2d065778b951
test_scripts/Polices/build_options/020_ATF_P_TC_PTU_Validation_Failure_HTTP.lua
test_scripts/Polices/build_options/020_ATF_P_TC_PTU_Validation_Failure_HTTP.lua
--------------------------------------------------------------------------------------------- -- HTTP flow -- Requirements summary: -- [PolicyTableUpdate] PTU validation failure -- -- Description: -- In case PTU validation fails, SDL must log the error locally and discard the policy table update -- with No notification...
--------------------------------------------------------------------------------------------- -- HTTP flow -- Requirements summary: -- [PolicyTableUpdate] PTU validation failure -- -- Description: -- In case PTU validation fails, SDL must log the error locally and discard the policy table update -- with No notification...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
b04ff7c985870e360fa267fc4fbc6de036c6d379
src/core/packet.lua
src/core/packet.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local debug = _G.developer_debug local ffi = require("ffi") local C = ffi.C local freelist = require("core.freelist") local lib = require("core.lib") local memory = require("core.memory") local counter ...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local debug = _G.developer_debug local ffi = require("ffi") local C = ffi.C local freelist = require("core.freelist") local lib = require("core.lib") local memory = require("core.memory") local counter ...
core.packet: Extend max packets from 100K to 1M
core.packet: Extend max packets from 100K to 1M Packets are allocated dynamically on demand and this is only an artifical limit of "more than anybody should ever need" for catching unbounded allocations (leaks). (The limit also serves to make the freelist simple i.e. a fixed-size array.) The previous value of 100,000...
Lua
apache-2.0
Igalia/snabbswitch,eugeneia/snabb,kbara/snabb,snabbco/snabb,dpino/snabbswitch,Igalia/snabb,SnabbCo/snabbswitch,eugeneia/snabb,eugeneia/snabb,alexandergall/snabbswitch,Igalia/snabbswitch,Igalia/snabbswitch,Igalia/snabb,eugeneia/snabb,wingo/snabbswitch,eugeneia/snabbswitch,snabbco/snabb,mixflowtech/logsensor,dpino/snabbs...
bf32e622fd361a205a5b1278c64f6ced5613114b
item/vase.lua
item/vase.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
fix indent
fix indent
Lua
agpl-3.0
Baylamon/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content
1fc1a21e187453b1efbd430c6df793e3ac0566f0
Modules/Input/BindableAction.lua
Modules/Input/BindableAction.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage") local ContextActionService = game:GetService("ContextActionService") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local Signal = LoadCusto...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local ContextActionService = game:GetService("ContextActionService") local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine")) local LoadCustomLibrary = NevermoreEngine.LoadLibrary local Signal = LoadCusto...
Bug assertion
Bug assertion
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
8973cdb063ff644b475c75dc35cc63743f97b754
core/modulemanager.lua
core/modulemanager.lua
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
Small fixes
Small fixes
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
92fe2d12d682a664856bbf9a1374f07db5a9c8d0
libs/web/luasrc/config.lua
libs/web/luasrc/config.lua
--[[ LuCI - Configuration Description: Some LuCI configuration values read from uci file "luci" FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a co...
--[[ LuCI - Configuration Description: Some LuCI configuration values read from uci file "luci" FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a co...
Fixed luci.config
Fixed luci.config git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3127 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
Canaan-Creative/luci,8devices/carambola2-luci,dtaht/cerowrt-luci-3.3,saraedum/luci-packages-old,ReclaimYourPrivacy/cloak-luci,alxhh/piratenluci,Flexibity/luci,freifunk-gluon/luci,dtaht/cerowrt-luci-3.3,Flexibity/luci,8devices/carambola2-luci,8devices/carambola2-luci,stephank/luci,eugenesan/openwrt-luci,projectbismark/l...
f5ebb194dd950a045b7f2438c714a05601b7491b
mod/mpi/config/scripts/slideshow.lua
mod/mpi/config/scripts/slideshow.lua
local on = false local expected_playlist_pos = 0 local timer = nil local slideshow_sleep = mp.get_opt('slideshow-duration') if slideshow_sleep == nil then slideshow_sleep = 0.3 end function get_playlist_pos() return mp.get_property_number('playlist-pos') + 1 end function get_playlist_count() return mp.g...
local on = false local timer = nil local slideshow_sleep = mp.get_opt('slideshow-duration') local jump_from_slideshow = false if slideshow_sleep == nil then slideshow_sleep = 0.3 end function get_playlist_pos() return mp.get_property_number('playlist-pos') + 1 end function get_playlist_count() return mp....
mod/mpi: improve slideshow stopping
mod/mpi: improve slideshow stopping The prior approach to stopping the slideshow was unreliable (e.g. manually jumping to another file didn't always stop the slideshow.) While this commit doesn't fix the problem completely, it significantly reduces race chances. Additionally, it removes the delay between slideshow s...
Lua
mit
rr-/dotfiles,rr-/dotfiles,rr-/dotfiles
b00e080e976499171c0e7423efd0efb995e07526
editor/lib/lua/editor/edit/EditorCanvasScene.lua
editor/lib/lua/editor/edit/EditorCanvasScene.lua
local Scene = require("scenes.Scene") local InputDevice = require("input.InputDevice") local JUI = require("ui.JUI") local UIScreen = require("ui.UIScreen") local UICanvas = require("ui.UICanvas") local UIPanel = require("ui.UIPanel") --------------------------------------------------------------------------------- ...
local Scene = require("scenes.Scene") local InputDevice = require("input.InputDevice") local JUI = require("ui.JUI") local UIScreen = require("ui.UIScreen") --------------------------------------------------------------------------------- -- -- @type EditorCanvasScene -- ----------------------------------------------...
fix editor scene
fix editor scene
Lua
mit
RazielSun/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor
c0294da8f398f606db2d03bd72e3bc619a86bd2c
scripts/lua/policies/backendRouting.lua
scripts/lua/policies/backendRouting.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 ...
-- -- 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 ...
Fix multiple query parameter issue for dynamic backends (#270)
Fix multiple query parameter issue for dynamic backends (#270)
Lua
unknown
alexsong93/openwhisk-apigateway,openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway
364c271a84210a841762beeb2dd0715cd7c2e240
modules/luci-mod-rpc/luasrc/controller/rpc.lua
modules/luci-mod-rpc/luasrc/controller/rpc.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.rpc", package.seeall) function session_retrieve(sid, allowed_users) local util = require "luci.util" local sdat = util.ubus("sessio...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.rpc", package.seeall) function session_retrieve(sid, allowed_users) local util = require "luci.util" local sdat = util.ubus("sessio...
luci-mod-rpc: fix unresolved controller reference in rpc_auth()
luci-mod-rpc: fix unresolved controller reference in rpc_auth() Fixes the following error: .../rpc.lua:85: attempt to index global 'ctrl' (a nil value) Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
Lua
apache-2.0
kuoruan/luci,artynet/luci,chris5560/openwrt-luci,hnyman/luci,tobiaswaldvogel/luci,rogerpueyo/luci,openwrt/luci,wongsyrone/luci-1,artynet/luci,openwrt-es/openwrt-luci,artynet/luci,lbthomsen/openwrt-luci,kuoruan/luci,Noltari/luci,lbthomsen/openwrt-luci,rogerpueyo/luci,tobiaswaldvogel/luci,rogerpueyo/luci,kuoruan/lede-luc...
a0b4f7e3b749e99ef3b3f8b86608f5e4fd131b4d
units.misc.lua
units.misc.lua
require "tundra.syntax.glob" require "tundra.path" require "tundra.util" ----------------------------------------------------------------------------------------------------------------------- -- Example 6502 emulator Program { Name = "fake6502", Env = { CPPPATH = { "api/include" }, CCOPTS = ...
require "tundra.syntax.glob" require "tundra.path" require "tundra.util" ----------------------------------------------------------------------------------------------------------------------- -- Example 6502 emulator Program { Name = "fake6502", Env = { CPPPATH = { "api/include" }, CCOPTS = ...
link fixes on win64
link fixes on win64
Lua
mit
SlNPacifist/ProDBG,SlNPacifist/ProDBG,kondrak/ProDBG,ashemedai/ProDBG,kondrak/ProDBG,v3n/ProDBG,v3n/ProDBG,v3n/ProDBG,emoon/ProDBG,kondrak/ProDBG,emoon/ProDBG,ashemedai/ProDBG,v3n/ProDBG,kondrak/ProDBG,v3n/ProDBG,emoon/ProDBG,ashemedai/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/ProDBG,ashemedai/ProDBG,SlNPacifist/ProDB...
e636a0b23178e15959abb2477e6abc790d0efcd9
frontend/version.lua
frontend/version.lua
--[[-- This module helps with retrieving version information. ]] local Version = {} --- Returns current KOReader git-rev. -- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238` function Version:getCurrentRevision() if not self.rev then local rev_file = io.open("git-rev", "r") if...
--[[-- This module helps with retrieving version information. ]] local Version = {} --- Returns current KOReader git-rev. -- @treturn string full KOReader git-rev such as `v2015.11-982-g704d4238` function Version:getCurrentRevision() if not self.rev then local rev_file = io.open("git-rev", "r") if...
[hotfix] tonumber makes an empty string nil
[hotfix] tonumber makes an empty string nil
Lua
agpl-3.0
koreader/koreader,Hzj-jie/koreader,NiLuJe/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader,mwoz123/koreader,Frenzie/koreader,houqp/koreader,Frenzie/koreader,Markismus/koreader,mihailim/koreader,pazos/koreader,poire-z/koreader
1b72a3e9975948ebc26dfbee12c2d1a4ea9e97d4
nonsence/epoll_ffi.lua
nonsence/epoll_ffi.lua
--[[ Epoll bindings through the LuaJIT FFI Library Author: John Abrahamsen < JhnAbrhmsn@gmail.com > This module "epoll_ffi" is a part of the Nonsence Web server. < https://github.com/JohnAbrahamsen/nonsence-ng/ > Nonsence is licensed under the MIT license < http://www.opensource.org/licenses/mit-license.php ...
--[[ Epoll bindings through the LuaJIT FFI Library Author: John Abrahamsen < JhnAbrhmsn@gmail.com > This module "epoll_ffi" is a part of the Nonsence Web server. < https://github.com/JohnAbrahamsen/nonsence-ng/ > Nonsence is licensed under the MIT license < http://www.opensource.org/licenses/mit-license.php ...
Fixed some broken things, error handling amongst others
Fixed some broken things, error handling amongst others
Lua
apache-2.0
luastoned/turbo,luastoned/turbo,zcsteele/turbo,zcsteele/turbo,ddysher/turbo,ddysher/turbo,YuanPeir-Chen/turbo-support-mipsel,mniestroj/turbo,kernelsauce/turbo,YuanPeir-Chen/turbo-support-mipsel
f041da51e43dee21c89e7e08ef3d67217fb8d458
npl_mod/nwf/loader.lua
npl_mod/nwf/loader.lua
--[[ title: NPL web framework loader author: zenghui date: 2017/2/27 desc: this file will load NPL web framework basic module and init components. ]] print('npl web framework is loading...'); NPL.load("(gl)script/ide/Files.lua"); lfs = commonlib.Files.GetLuaFileSystem(); PROJECT_BASE_DIR = lfs.currentdir(); print("pr...
--[[ title: NPL web framework loader author: zenghui date: 2017/2/27 desc: this file will load NPL web framework basic module and init components. ]] print('npl web framework is loading...'); NPL.load("(gl)script/ide/Files.lua"); lfs = commonlib.Files.GetLuaFileSystem(); PROJECT_BASE_DIR = lfs.currentdir(); print("pr...
fix bug about project module loading
fix bug about project module loading
Lua
mit
elvinzeng/nwf,Links7094/nwf,Links7094/nwf,elvinzeng/nwf
b71b63d5b5971706079bd04c50de36689e90ba6a
src/romdisk/framework/org/xboot/core/Asset.lua
src/romdisk/framework/org/xboot/core/Asset.lua
--- -- The 'Asset' class provides facilities to load and cache different -- type of resources. -- -- @module Asset local M = Class() --- -- Creates a new 'Asset' for cache different type of resources. -- -- @function [parent=#Asset] new -- @return New 'Asset' object. function M:init() self.textures = {} self.fonts =...
--- -- The 'Asset' class provides facilities to load and cache different -- type of resources. -- -- @module Asset local M = Class() --- -- Creates a new 'Asset' for cache different type of resources. -- -- @function [parent=#Asset] new -- @return New 'Asset' object. function M:init() self.textures = {} self.fonts =...
fix Asset.lua
fix Asset.lua
Lua
mit
xboot/xboot,xboot/xboot
31b84c18dc38d9a23c001985127d404d2ac386d5
src/jet/daemon/radix.lua
src/jet/daemon/radix.lua
-- Implements a radix tree for the jet-daemon local pairs = pairs local next = next local tinsert = table.insert local tremove = table.remove local new = function() local j = {} -- the table that holds the radix_tree j.radix_tree = {} -- elments that can be filled by several functions -- and be return...
-- Implements a radix tree for the jet-daemon local pairs = pairs local next = next local tinsert = table.insert local tremove = table.remove local new = function() local j = {} -- the table that holds the radix_tree j.radix_tree = {} -- elments that can be filled by several functions -- and be return...
fixed memory leak
fixed memory leak
Lua
mit
lipp/lua-jet
a7d7f82043942ef25e12d92ec5be7e4b842bd1ea
src/bosh_registry_nginx/registry.lua
src/bosh_registry_nginx/registry.lua
-- -*- coding: utf-8 -*- local JSON = require "JSON" local registry_base_uri = "/metadata/" local request_base_uri = "/registry/" -- functions local function bad_request(msg) local logmsg = string.format("Sending BAD_REQUEST to client (status=%d): %s", ngx.HTTP_BAD_REQUEST, msg) ngx.log(ngx.NOTICE, logmsg) ...
-- -*- coding: utf-8 -*- local JSON = require "JSON" JSON.strictTypes = true JSON.decodeNumbersAsObjects = true JSON.noKeyConversion = true local registry_base_uri = "/metadata/" local request_base_uri = "/registry/" -- functions local function bad_request(msg) local logmsg = string.format("Sending BAD_REQUEST t...
fix post/put, null and dict issues
fix post/put, null and dict issues
Lua
apache-2.0
jriguera/bosh-ironic-cpi-release,jriguera/bosh-ironic-cpi-release,jriguera/bosh-ironic-cpi-release
d655427c34c5b8fd7cbe414650ef57690a2a4a06
ssbase/gamemode/sv_profiles.lua
ssbase/gamemode/sv_profiles.lua
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"} local update_filter = {"id", "steamI...
--------------------------- -- Bunny Hop -- -- Created by xAaron113x -- --------------------------- local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"} local update_filter = {"id", "steamI...
Profile fixed this time... I TESTED IT!
Profile fixed this time... I TESTED IT!
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
a774322bb4bf1d84fce1d6d86083ca8232d66d00
linux/.config/nvim/lua/nvimtree.lua
linux/.config/nvim/lua/nvimtree.lua
require'nvim-tree'.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, -- auto_close = false, open_on_tab = false, hijack_cursor = false, update_cwd = false, update_to_buf_dir = { enable = true, ...
require'nvim-tree'.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = {}, -- auto_close = false, open_on_tab = false, hijack_cursor = false, update_cwd = false, hijack_directories = { enable = true, ...
Fix nvimtree deprecated config values
Fix nvimtree deprecated config values
Lua
mit
joserc87/config-files,joserc87/config-files,joserc87/config-files
d4defe253efb83cce09fd7cc7693cbf896e0fd6e
lua/weapons/disguiser/cl_fxfake.lua
lua/weapons/disguiser/cl_fxfake.lua
/** * Disguiser SWEP - Lets you disguise as any prop on a map. * * File: * cl_fxfake.lua * * Purpose: * Fake shoot effect on client-side via a trigger from server-side, as * for some reason on multiplayer servers the effect is not rendered on * client-side automatically. * * Copyright (C) 2013 Carl K...
/** * Disguiser SWEP - Lets you disguise as any prop on a map. * * File: * cl_fxfake.lua * * Purpose: * Fake shoot effect on client-side via a trigger from server-side, as * for some reason on multiplayer servers the effect is not rendered on * client-side automatically. * * Copyright (C) 2013 Carl K...
Sorry, I was too lazy. Fixed '=' syntax error.
Sorry, I was too lazy. Fixed '=' syntax error.
Lua
agpl-3.0
icedream/gmod-disguiser
ee586d82113a2018d36f6fd1ff75387b4ea6d11d
testserver/base/keys.lua
testserver/base/keys.lua
require("base.doors") module("base.keys", package.seeall) --[[ LockDoor Lock a door. This function checks if that item is a closed on that can be locked. It does not check if the player has a fitting key. @param ItemStruct - the item that is the closed door that shall be locked @return boolean...
require("base.doors") module("base.keys", package.seeall) --[[ LockDoor Lock a door. This function checks if that item is a closed on that can be locked. It does not check if the player has a fitting key. @param ItemStruct - the item that is the closed door that shall be locked @return boolean...
fixed unlocking of doors
fixed unlocking of doors
Lua
agpl-3.0
Baylamon/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content
bbd0ff39ad2134907759daa1aee3a26d1d2a7f12
lib/image_loader.lua
lib/image_loader.lua
local gm = require 'graphicsmagick' local ffi = require 'ffi' require 'pl' local image_loader = {} function image_loader.decode_float(blob) local im, alpha = image_loader.decode_byte(blob) if im then im = im:float():div(255) end return im, alpha end function image_loader.encode_png(rgb, alpha) if...
local gm = require 'graphicsmagick' local ffi = require 'ffi' require 'pl' local image_loader = {} function image_loader.decode_float(blob) local im, alpha = image_loader.decode_byte(blob) if im then im = im:float():div(255) end return im, alpha end function image_loader.encode_png(rgb, alpha) if...
Fix handling for CMYK JPEG
Fix handling for CMYK JPEG
Lua
mit
zyhkz/waifu2x,vitaliylag/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,higankanshi/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,Spitfire1900/upscaler,nagadomi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x
0297f26b657b4aec2fb1e8d3f987f98d1c4c9c07
lib/resty/auto-ssl/utils/shell_execute.lua
lib/resty/auto-ssl/utils/shell_execute.lua
local shell = require "resty.auto-ssl.vendor.shell" local start_sockproc = require "resty.auto-ssl.utils.start_sockproc" return function(command) -- Make sure the sockproc has started before trying to execute any commands -- (since it's started by only a single worker in init_worker, it's possible -- other worke...
local shell = require "resty.auto-ssl.vendor.shell" local start_sockproc = require "resty.auto-ssl.utils.start_sockproc" return function(command) -- Make sure the sockproc has started before trying to execute any commands -- (since it's started by only a single worker in init_worker, it's possible -- other worke...
Fix default shell timeout not actually being increased.
Fix default shell timeout not actually being increased. We had intended to increase the timeout we allow the dehydrated shell script to run beyond the default 15 seconds back in 1f395c66 (see https://github.com/GUI/lua-resty-auto-ssl/issues/11). However, that timeout increase wasn't actually being applied correctly. I...
Lua
mit
GUI/lua-resty-auto-ssl,UseFedora/lua-resty-auto-ssl,UseFedora/lua-resty-auto-ssl
9615be6e0324bfb711e56b1bd7bebd5eed5f4ed3
popups.lua
popups.lua
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") local function EPGP_CONFIRM_GP_CREDIT_UpdateButtons(self) local link = self.itemFrame.link local gp = tonumber(self.editBox:GetText()) if EPGP:CanIncGPBy(link, gp) th...
local mod = EPGP:NewModule("EPGP_Popups") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GPTooltip = EPGP:GetModule("EPGP_GPTooltip") local function EPGP_CONFIRM_GP_CREDIT_UpdateButtons(self) local link = self.itemFrame.link local gp = tonumber(self.editBox:GetText()) if EPGP:CanIncGPBy(link, gp) th...
Remove debug code. Refactor the code to be more readbale, more generic, and shorter. Also fix a bug: There are multiple popup frames. We save references to UIObjects so in the OnHide function when we restore the anchors we always restore the anchors of the first frame that popped up and got backed up, even if we are in...
Remove debug code. Refactor the code to be more readbale, more generic, and shorter. Also fix a bug: There are multiple popup frames. We save references to UIObjects so in the OnHide function when we restore the anchors we always restore the anchors of the first frame that popped up and got backed up, even if we are in...
Lua
bsd-3-clause
protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,hayword/tfatf_epgp,sheldon/epgp,sheldon/epgp
fe1bbe8ce7190d874069e3f9605bf4892e6b2bdf
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
modules/admin-mini: Fixed wifi client mode again
modules/admin-mini: Fixed wifi client mode again
Lua
apache-2.0
ff94315/luci-1,ff94315/luci-1,david-xiao/luci,palmettos/test,Wedmer/luci,Noltari/luci,ReclaimYourPrivacy/cloak-luci,kuoruan/luci,cshore/luci,opentechinstitute/luci,deepak78/new-luci,LazyZhu/openwrt-luci-trunk-mod,RedSnake64/openwrt-luci-packages,oyido/luci,dismantl/luci-0.12,palmettos/cnLuCI,florian-shellfire/luci,Lutt...
4c4e6921f05719c63eba64500cfef4a030fe2411
tools/ejabberd2prosody.lua
tools/ejabberd2prosody.lua
#!/usr/bin/env lua -- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- package.path = package.path ..";../?.lua"; if arg[0]:match("^./") then package.pat...
#!/usr/bin/env lua -- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- package.path = package.path ..";../?.lua"; if arg[0]:match("^./") then package.pat...
ejabberd2prosody: Fixed a problem with null roster groups.
ejabberd2prosody: Fixed a problem with null roster groups.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
afbd5c31b117ca2e2e04824077cbd01666826d28
core/libtexpdf-output.lua
core/libtexpdf-output.lua
local pdf = require("justenoughlibtexpdf"); if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local font = 0 SILE.outputters.libtexpdf = { init = function() pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2]) pdf.beginpage() ...
local pdf = require("justenoughlibtexpdf"); if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local font = 0 local started = false SILE.outputters.libtexpdf = { init = function() pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])...
Don’t try closing a PDF we didn’t actually open. Fixes #109
Don’t try closing a PDF we didn’t actually open. Fixes #109
Lua
mit
WAKAMAZU/sile_fe,anthrotype/sile,neofob/sile,simoncozens/sile,neofob/sile,anthrotype/sile,anthrotype/sile,alerque/sile,alerque/sile,WAKAMAZU/sile_fe,neofob/sile,neofob/sile,alerque/sile,anthrotype/sile,WAKAMAZU/sile_fe,alerque/sile,WAKAMAZU/sile_fe,simoncozens/sile,simoncozens/sile,simoncozens/sile
edc115fbb234a0ef6bb67eb1c1bf2b1b3e0eb2b9
core/sessionmanager.lua
core/sessionmanager.lua
-- Prosody IM v0.1 -- Copyright (C) 2008 Matthew Wild -- Copyright (C) 2008 Waqas Hussain -- -- 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 o...
-- Prosody IM v0.1 -- Copyright (C) 2008 Matthew Wild -- Copyright (C) 2008 Waqas Hussain -- -- 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 o...
Quick fix for an issue that needs more looking into
Quick fix for an issue that needs more looking into
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
75da80e6392162414b424c651b39e9d7c6e6898a
levent/socket_util.lua
levent/socket_util.lua
local socket = require "levent.socket" local dns = require "levent.dns" local util = {} function util.create_connection(host, port, timeout) local ret, err = dns.resolve(host) if not ret then return nil, err end local ip = ret[1] local sock, err = socket.socket(socket.AF_INET, socket.SO...
local socket = require "levent.socket" local dns = require "levent.dns" local util = {} function util.create_connection(host, port, timeout) local ret, err = dns.resolve(host) if not ret then return nil, err end local ip = ret[1] local sock, err = socket.socket(socket.AF_INET, socket.SO...
fix util.read_full dont return when cannot read data anymore
fix util.read_full dont return when cannot read data anymore
Lua
mit
xjdrew/levent
48283de92c16db2b544c77b6d84c2133acd9c17b
data/scripts/abe.lua
data/scripts/abe.lua
-- Composite helpers function InputSameAsDirection(s) return (s:InputLeft() and s:FacingLeft()) or (s:InputRight() and s:FacingRight()) end local function InputNotSameAsDirection(s) return (s:InputLeft() and s:FacingRight()) or (s:InputRight() and s:FacingLeft()) end function init(self) self.states = {} ...
-- Composite helpers function InputSameAsDirection(s) return (s:InputLeft() and s:FacingLeft()) or (s:InputRight() and s:FacingRight()) end local function InputNotSameAsDirection(s) return (s:InputLeft() and s:FacingRight()) or (s:InputRight() and s:FacingLeft()) end function init(self) self.states = {} ...
fix ToRolling/CrouchingTurn
fix ToRolling/CrouchingTurn
Lua
mit
mlgthatsme/alive,paulsapps/alive,paulsapps/alive,mlgthatsme/alive,paulsapps/alive,mlgthatsme/alive
419b4ea694cdabada1e19c70e152a1b6e6943a37
lua/include/packet.lua
lua/include/packet.lua
local ffi = require "ffi" require "utils" require "headers" require "dpdkc" local ntoh, hton = ntoh, hton local ntoh16, hton16 = ntoh16, hton16 local bswap = bswap local bswap16 = bwswap16 local bor, band, bnot, rshift, lshift= bit.bor, bit.band, bit.bnot, bit.rshift, bit.lshift local pkt = {} pkt.__index = pkt ---...
local ffi = require "ffi" require "utils" require "headers" require "dpdkc" local ntoh, hton = ntoh, hton local ntoh16, hton16 = ntoh16, hton16 local bswap = bswap local bswap16 = bwswap16 local bor, band, bnot, rshift, lshift= bit.bor, bit.band, bit.bnot, bit.rshift, bit.lshift local pkt = {} pkt.__index = pkt ---...
short fix
short fix
Lua
mit
kidaa/MoonGen,scholzd/MoonGen,slyon/MoonGen,gallenmu/MoonGen,wenhuizhang/MoonGen,werpat/MoonGen,slyon/MoonGen,atheurer/MoonGen,scholzd/MoonGen,NetronomeMoongen/MoonGen,slyon/MoonGen,schoenb/MoonGen,bmichalo/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,werpat/MoonGen,schoenb/MoonGen,werpat/MoonGen,emmericp...
baf5987b0bd9223f239faec5b1614fb792520aee
service/clusterd.lua
service/clusterd.lua
local skynet = require "skynet" require "skynet.manager" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_sender = {} local command = {} local config = {} local nodename = cluster.nodename() local connecting = {} local function open_channel(...
local skynet = require "skynet" require "skynet.manager" local cluster = require "skynet.cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_sender = {} local command = {} local config = {} local nodename = cluster.nodename() local connecting = {} local function open_channel(...
fix #1062
fix #1062
Lua
mit
bigrpg/skynet,sanikoyes/skynet,sanikoyes/skynet,cloudwu/skynet,pigparadise/skynet,hongling0/skynet,wangyi0226/skynet,hongling0/skynet,cloudwu/skynet,icetoggle/skynet,wangyi0226/skynet,wangyi0226/skynet,korialuo/skynet,korialuo/skynet,ag6ag/skynet,xjdrew/skynet,cloudwu/skynet,jxlczjp77/skynet,xjdrew/skynet,xjdrew/skynet...
0983fc30d532afcf59d7dcc9d9b1b289320721b8
telnet.lua
telnet.lua
-- -- setup a telnet server that hooks the sockets input -- local client local server local function sendout(str) if client then client:send(str) end end local function onReceive(sock, input) node.input(input) end local function onDisconnect(sock) node.output(nil) client = nil end local...
-- -- setup a telnet server that hooks the sockets input -- local client local server local function sendout(str) if client then client:send(str) end end local function onReceive(sock, input) node.input(input) end local function onDisconnect(sock) node.output(nil) client = nil end local...
screwed up telnet. fixed.
screwed up telnet. fixed.
Lua
mit
realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs
d2379fc6e6680fb316a1bdc937a10ccab4176b1c
frontend/device/remarkable/device.lua
frontend/device/remarkable/device.lua
local Generic = require("device/generic/device") -- <= look at this file! local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function no() return false end local EV_ABS = 3 local ABS_X = 00 local ABS_Y = 01 local ABS_MT_POSITION_X = 53 local ABS_MT_POSITI...
local Generic = require("device/generic/device") -- <= look at this file! local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function no() return false end local EV_ABS = 3 local ABS_X = 00 local ABS_Y = 01 local ABS_MT_POSITION_X = 53 local ABS_MT_POSITI...
remarkable: poweroff.png ghosting fix (#7051)
remarkable: poweroff.png ghosting fix (#7051)
Lua
agpl-3.0
NiLuJe/koreader,Markismus/koreader,mwoz123/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader,koreader/koreader,koreader/koreader,Hzj-jie/koreader,NiLuJe/koreader,Frenzie/koreader,pazos/koreader
023e96c95c9c4fdbe6e0e7ef6e52f8062279b01d
hostinfo/init.lua
hostinfo/init.lua
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(debug timer): use uv.hrtime since os.clock doesnt work properly on centos, divide by 10k to make numbers easy to grok
fix(debug timer): use uv.hrtime since os.clock doesnt work properly on centos, divide by 10k to make numbers easy to grok
Lua
apache-2.0
AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent
5244090ac7e4a5126a8a20b1b41baa2cf3944a9c
MMOCoreORB/bin/scripts/screenplays/tasks/hero_of_tatooine/conversations/heroOfTatRanchersWifeConvoHandler.lua
MMOCoreORB/bin/scripts/screenplays/tasks/hero_of_tatooine/conversations/heroOfTatRanchersWifeConvoHandler.lua
local ObjectManager = require("managers.object.object_manager") heroOfTatRanchersWifeConvoHandler = { } function heroOfTatRanchersWifeConvoHandler:getNextConversationScreen(pConversationTemplate, pPlayer, selectedOption, pConversingNpc) return ObjectManager.withCreatureObject(pPlayer, function(player) local pConv...
local ObjectManager = require("managers.object.object_manager") heroOfTatRanchersWifeConvoHandler = { } function heroOfTatRanchersWifeConvoHandler:getNextConversationScreen(pConversationTemplate, pPlayer, selectedOption, pConversingNpc) return ObjectManager.withCreatureObject(pPlayer, function(player) local pConv...
[fixed] Hero of Tat Rancher's Wife quest issue when multiple people converse at once - mantis 6407
[fixed] Hero of Tat Rancher's Wife quest issue when multiple people converse at once - mantis 6407 Change-Id: If03ccc456d539d50930d45a9a39bcfc771f0335e
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo
0e26605f9d5f3534f8a7d4efcf553c1f92c8f82e
examples/class/another.lua
examples/class/another.lua
package.path = package.path .. ";./lib/?.lua" local example = require 'lux.oo.class' :package 'example' function example:Another(the_x, the_y) local x, y = the_x, the_y print "new" function self:move (dx, dy) x = self:getX(33)+dx y = y+dy print('moved!', x, y) end function self:getX(tmp) re...
package.path = package.path .. ";./lib/?.lua" local example = require 'lux.oo.class' .package 'example' -- This is a class definition function example:Another(the_x, the_y) local x, y = the_x, the_y print "new" function self:move (dx, dy) x = self:getX(33)+dx y = y+dy print('moved!', x, y) end ...
Small fixes in the class example
Small fixes in the class example
Lua
mit
Kazuo256/luxproject
187d55ab8cffb1267677c620eeb216a53493e56a
release/lua/http-server.lua
release/lua/http-server.lua
--- Turbo.lua Hello world using HTTPServer -- -- Using the HTTPServer offers more control for the user, but less convenience. -- In almost all cases you want to use turbo.web.RequestHandler. -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
--- Turbo.lua Hello world using HTTPServer -- -- Using the HTTPServer offers more control for the user, but less convenience. -- In almost all cases you want to use turbo.web.RequestHandler. -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
Path fixes
Path fixes Fixed up path problems between Linux and Windows.
Lua
mit
dlannan/webdruino,dlannan/webdruino
2710ed977f3b6677273ddbee2567a17227325a3a
luasrc/search.lua
luasrc/search.lua
local path = require 'pl.path' local file = require 'pl.file' local http = require 'socket.http' function dokx._getVirtualEnvPath() return path.join(dokx._getDokxDir(), "dokx-search", "virtualenv") end local function inVirtualEnv(...) local virtualEnvPath = dokx._getVirtualEnvPath() if not path.isdir(virt...
local path = require 'pl.path' local file = require 'pl.file' local http = require 'socket.http' function dokx._getVirtualEnvPath() return path.join(dokx._getDokxDir(), "dokx-search", "virtualenv") end local function inVirtualEnv(...) local virtualEnvPath = dokx._getVirtualEnvPath() if not path.isdir(virt...
Fix log message when running search service
Fix log message when running search service
Lua
bsd-3-clause
deepmind/torch-dokx,Gueust/torch-dokx,yozw/torch-dokx,Gueust/torch-dokx,yozw/torch-dokx,deepmind/torch-dokx,Gueust/torch-dokx,yozw/torch-dokx,deepmind/torch-dokx
1b0a9c8d5bb2065f56250b9e83a5196ba50e5b67
app/modules/require.lua
app/modules/require.lua
local uv = require('uv') local luvi = require('luvi') local bundle = luvi.bundle local pathJoin = luvi.path.join local realRequire = require -- Requires are relative local function requireSystem(options) local loader, fixedLoader, finder, generator -- All options are optional options = options or {} -- The ...
local uv = require('uv') local luvi = require('luvi') local bundle = luvi.bundle local pathJoin = luvi.path.join local realRequire = require -- Requires are relative local function requireSystem(options) local loader, fixedLoader, finder, generator -- All options are optional options = options or {} -- The ...
Fix require on non-windows
Fix require on non-windows
Lua
apache-2.0
rjeli/luvit,DBarney/luvit,DBarney/luvit,DBarney/luvit,bsn069/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,zhaozg/luvit,rjeli/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,kaustavha/luvit,luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,bsn069/luvit,GabrielNicol...
9e11c4eacbc7faa31725355e9017c5fad33fc3cc
src/cosy/loader/js.lua
src/cosy/loader/js.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
Fix scheduler in js loader.
Fix scheduler in js loader.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
ea42ac760e28e0b3ff3942562f0b5b36975d7cfa
lib/zip.lua
lib/zip.lua
local Fs = require('meta-fs') local Path = require('path') local Zlib = require('../zlib') local band = require('bit').band -- -- walk over entries of a zipball read from `stream` -- local function walk(stream, options, callback) -- defaults if not options then options = {} end -- data buffer and current posit...
local Fs = require('meta-fs') local Path = require('path') local Zlib = require('../zlib') local band = require('bit').band -- -- walk over entries of a zipball read from `stream` -- local function walk(stream, options, callback) -- defaults if not options then options = {} end -- data buffer and current posit...
fixed options.strip logic
fixed options.strip logic
Lua
mit
dvv/luvit-balls,dvv/luvit-balls
80538babd0e12435c3f4218542d299fea29ff015
codes/test.lua
codes/test.lua
function round(num, idp) local mult = 10^(idp or 3) return math.floor(num * mult + 0.5) / mult end function average(nums) local sum = 0 for i = 1, #nums do sum = sum + nums[i] end return sum / #nums end function runtest(func, times) local begin = os.clock() for i = 1, times do func() ...
function round(num, idp) local mult = 10^(idp or 3) return math.floor(num * mult + 0.5) / mult end function average(nums) local sum = 0 for i = 1, #nums do sum = sum + nums[i] end return sum / #nums end function runtest(func, times) local begin = os.clock() for i = 1, times do func() ...
Fix bug in linux show dots for every case.
Fix bug in linux show dots for every case.
Lua
bsd-2-clause
flily/lua-performance
fee4eb981c8ef4eb52f843391d740c4d34fbdd01
config/nvim/lua/opt/plugins/lsp/null-ls/ruby.lua
config/nvim/lua/opt/plugins/lsp/null-ls/ruby.lua
local lspnull = require("null-ls") local lspnull_h = require("null-ls.helpers") local fs = require("fs") local path = require("path") local M = {} local function use_rubocop() local current = vim.api.nvim_buf_get_name(0) if current == "" then current = path.cwd() end return fs.find_closest(current, { "....
local lspnull = require("null-ls") local lspnull_h = require("null-ls.helpers") local fs = require("fs") local path = require("path") local M = {} local function use_rubocop() local current = vim.api.nvim_buf_get_name(0) if current == "" then current = path.cwd() end return fs.find_closest(current, { "....
Fix formatter
Fix formatter
Lua
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
c1bff6211e9e1203cfeef1f726067147596b12f5
prototypes/entities.lua
prototypes/entities.lua
data:extend({ { type = "accumulator", name = "accelerator_charger", icon = "__base__/graphics/entity/basic-accumulator/basic-accumulator.png", flags = {"placeable-neutral", "player-creation"}, minable = {hardness = 0.1, mining_time = 0.1, result="accelerator_charger"}, indestructible = true, ...
data:extend({ { type = "accumulator", name = "accelerator_charger", icon = "__base__/graphics/entity/accumulator/accumulator.png", flags = {"placeable-neutral", "player-creation"}, minable = {hardness = 0.1, mining_time = 0.1, result="accelerator_charger"}, indestructible = true, max_healt...
fix filename paths
fix filename paths
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
1264a68749fb9a17262d11c53c9ff7bd884b1160
xmake/actions/clean/main.lua
xmake/actions/clean/main.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 clean for phony target
fix clean for phony target
Lua
apache-2.0
tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake
8892dfc7e99526d8b4b834475166eb4f4e346a32
lib/debug_session.lua
lib/debug_session.lua
require 're' -- copied from https://en.wikipedia.org/wiki/Escape_sequences_in_C local escaped_char_map = { a = 0x07, b = 0x08, f = 0x0C, n = 0x0A, r = 0x0D, t = 0x09, v = 0x0B, ["'"] = 0x27, ['"'] = 0x22 } local reverse_escaped_char_map = {} for key, value in pairs(escaped_char_map) do reverse_escaped_char_...
require 're' -- copied from https://en.wikipedia.org/wiki/Escape_sequences_in_C local escaped_char_map = { a = 0x07, b = 0x08, f = 0x0C, n = 0x0A, r = 0x0D, t = 0x09, v = 0x0B, ["'"] = 0x27, ['"'] = 0x22 } local reverse_escaped_char_map = {} for key, value in pairs(escaped_char_map) do reverse_escaped_char_...
remove "literal" prefix
remove "literal" prefix
Lua
mit
Moligaloo/EmperorC
a631351f403697d3d38f5ed1a22e1ca852ab3aae
src/core.lua
src/core.lua
-- return truthy if we're in a coroutine local function in_coroutine() local current_routine, main = coroutine.running() -- need check to the main variable for 5.2, it's nil for 5.1 return current_routine and (main == nil or main == false) end local busted = { root_context = { type = "describe", description = ...
-- return truthy if we're in a coroutine local function in_coroutine() local current_routine, main = coroutine.running() -- need check to the main variable for 5.2, it's nil for 5.1 return current_routine and (main == nil or main == false) end local busted = { root_context = { type = "describe", description = ...
Write to output footer - fixes issue #55
Write to output footer - fixes issue #55
Lua
mit
leafo/busted,o-lim/busted,sobrinho/busted,istr/busted,Olivine-Labs/busted,xyliuke/busted,nehz/busted,DorianGray/busted,azukiapp/busted,mpeterv/busted,ryanplusplus/busted
afbe771fc4aa3ebc6a062431149b915760bca504
tests/test-process.lua
tests/test-process.lua
local spawn = require('childprocess').spawn local los = require('los') local net = require('net') local uv = require('uv') require('tap')(function(test) test('process getpid', function() p('process pid', process.pid) assert(process.pid) end) test('process argv', function() p('process argv', process...
local spawn = require('childprocess').spawn local los = require('los') local net = require('net') local uv = require('uv') require('tap')(function(test) test('process getpid', function() p('process pid', process.pid) assert(process.pid) end) test('process argv', function() p('process argv', process...
fix test-process, make sure signal handled
fix test-process, make sure signal handled
Lua
apache-2.0
luvit/luvit,zhaozg/luvit,luvit/luvit,zhaozg/luvit
70f0b1baffc4f69a49523346a9df7463a1b768af
src/nn-robot-lua/dqn/GameEnvironment.lua
src/nn-robot-lua/dqn/GameEnvironment.lua
-- The GameEnvironment class. local gameEnv = torch.class('dqn.GameEnvironment') local py = require('fb.python') function readAll(file) local f = io.open(file, "rb") local content = f:read("*all") f:close() return content end function gameEnv:__init(_opt) print(_opt.game_path) local py_src = r...
-- The GameEnvironment class. local gameEnv = torch.class('dqn.GameEnvironment') local py = require('fb.python') function readAll(file) local f = io.open(file, "rb") local content = f:read("*all") f:close() return content end function gameEnv:__init(_opt) print(_opt.game_path) local py_src = r...
Fix bug
Fix bug
Lua
mit
matthiasplappert/pibot
5f1c12a1cf241919ae2b157f91d5a730646745f4
tests/actions/make/cpp/test_make_pch.lua
tests/actions/make/cpp/test_make_pch.lua
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
Fix makefile unit tests broken by previous commits
Fix makefile unit tests broken by previous commits
Lua
bsd-3-clause
soundsrc/premake-core,saberhawk/premake-core,starkos/premake-core,prapin/premake-core,bravnsgaard/premake-core,aleksijuvani/premake-core,felipeprov/premake-core,dcourtois/premake-core,saberhawk/premake-core,Blizzard/premake-core,TurkeyMan/premake-core,Zefiros-Software/premake-core,jstewart-amd/premake-core,starkos/prem...
18d48c1802833ac653e8d5a4401fbf9891f4b825
etc/cavr/config/example.lua
etc/cavr/config/example.lua
sim_window = { view = { simulator_view = true; }; fullscreen = true; }; sim_window = { view = { simulator_view = true; }; fullscreen = true; }; perspective_window = { view = { eyes = { eye = cavr.sixdof("emulated"); --left_eye = cavr.sixdof("emulated3"); --right_eye = cavr.sixd...
sim_window = { view = { simulator_view = true; }; fullscreen = true; }; sim_window = { view = { simulator_view = true; }; fullscreen = true; }; perspective_window = { view = { eyes = { eye = cavr.sixdof("emulated"); --left_eye = cavr.sixdof("emulated3"); --right_eye = cavr.sixd...
Fixing example.lua not to be based on local changes.
Fixing example.lua not to be based on local changes.
Lua
bsd-3-clause
BrainComputationLab/cavr,BrainComputationLab/cavr,BrainComputationLab/cavr,BrainComputationLab/cavr
ab7670b76491771c4de52b6b668dd1140b0cc92b
console/nwconsole.lua
console/nwconsole.lua
#!/usr/local/bin/luajit --[[ Nonsence Web console Copyright 2013 John Abrahamsen Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
#!/usr/local/bin/luajit --[[ Nonsence Web console Copyright 2013 John Abrahamsen Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
Some fixes for debug console.
Some fixes for debug console.
Lua
apache-2.0
zcsteele/turbo,zcsteele/turbo,ddysher/turbo,mniestroj/turbo,kernelsauce/turbo,luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel,ddysher/turbo,luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel
475f4d1ab463b50432aaf774b75d94a682bb6e98
libs/term.lua
libs/term.lua
local prev, pl, luv, dir, T, stdin, exit_seq = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green...
local prev, pl, luv, dir, T, stdin, exit_seq = ... local _colors = { [1] = "white"; [2] = "orange"; [4] = "magenta"; [8] = "lightBlue"; [16] = "yellow"; [32] = "lime"; [64] = "pink"; [128] = "gray"; [256] = "lightGray"; [512] = "cyan"; [1024] = "purple"; [2048] = "blue"; [4096] = "brown"; [8192] = "green...
Term stuff
Term stuff Fix rendering when the cursor is off screen Implement `setCursorBlink`
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
b91f1c88627cc00bb561ae6f4656daf7de97dc52
src/cosy/server/cli.lua
src/cosy/server/cli.lua
local function printerr (...) local t = { ... } for i = 1, #t do t [i] = tostring (t [i]) end io.stderr:write (table.concat (t, "\t") .. "\n") end local arguments do local loader = require "cosy.loader.lua" { logto = false, } local Configuration = loader.load "cosy.configuration" local I...
local function printerr (...) local t = { ... } for i = 1, #t do t [i] = tostring (t [i]) end io.stderr:write (table.concat (t, "\t") .. "\n") end local arguments do local loader = require "cosy.loader.lua" { logto = false, } local Configuration = loader.load "cosy.configuration" local I...
Fix #173
Fix #173
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
0ad468bef2b7e4514844cbfe3df7385dab52469b
Pooling.lua
Pooling.lua
local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module') local ffi = require 'ffi' local errcheck = cudnn.errcheck function Pooling:__init(kW, kH, dW, dH, padW, padH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or kW self.dH = dH or kW self.padW = padW or 0 self.padH = pad...
local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module') local ffi = require 'ffi' local errcheck = cudnn.errcheck function Pooling:__init(kW, kH, dW, dH, padW, padH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or kW self.dH = dH or kW self.padW = padW or 0 self.padH = pad...
fixes segfault in Pooling (no padW and padH in v1)
fixes segfault in Pooling (no padW and padH in v1)
Lua
bsd-3-clause
phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch
a0b8b710f6b502071d80b1626d344981b70f0ba2
xmake/modules/private/tools/cl/parse_deps_json.lua
xmake/modules/private/tools/cl/parse_deps_json.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
fix parse_deps_json
fix parse_deps_json
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
fd822574f9bbf40e2cc38b9042299d5e595d8463
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Copyright 2013 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Copyright 2013 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
[for-0.12] luci-app-ddns: fix OpenWrt Ticket #18018 in BB release
[for-0.12] luci-app-ddns: fix OpenWrt Ticket #18018 in BB release fix for OpenWrt Ticket #18018 in BB 14.07 release. Without fix the application writes a config without event interface which causes ddns-scripts to NEVER start. Signed-off-by: Christian Schoenebeck <d822c7113ab996fe31b32ff7a3fef3bf550c6d42@gmail.com>
Lua
apache-2.0
keyidadi/luci,keyidadi/luci,opentechinstitute/luci,dismantl/luci-0.12,keyidadi/luci,opentechinstitute/luci,opentechinstitute/luci,dismantl/luci-0.12,opentechinstitute/luci,dismantl/luci-0.12,dismantl/luci-0.12,keyidadi/luci,keyidadi/luci,opentechinstitute/luci,opentechinstitute/luci,opentechinstitute/luci,keyidadi/luci...
23de2b6e05f53dc61ff7ad2101f0cf851f365369
nvim/init.lua
nvim/init.lua
local options = { number = true, relativenumber = true, hidden = true, inccommand = 'nosplit', hlsearch = false, ignorecase = true, mouse = 'a', breakindent = true, wrap = false, updatetime = 250, ttimeout = true, ttimeoutlen = ...
local options = { number = true, relativenumber = true, hidden = true, inccommand = 'nosplit', hlsearch = false, ignorecase = true, mouse = 'a', breakindent = true, wrap = false, updatetime = 250, ttimeout = true, ttimeoutlen = ...
Add terminal toggle function and maps
Add terminal toggle function and maps Thanks: https://www.reddit.com/r/vim/comments/8n5bzs/using_neovim_is_there_a_way_to_display_a_terminal/dzt3fix/?utm_source=reddit&utm_medium=web2x&context=3
Lua
mit
aasare/aaku
2bd9035b8bb1e37abc2875acd062cb822fe2da14
hid-discoveryd-enum.nse
hid-discoveryd-enum.nse
local comm = require "comm" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Attempts to identify HID Door Controllers. ]] author = "Mike Kelly (@lixmk)" license = "Same as Nmap--See https:/...
local comm = require "comm" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Used the discoveryd service on upd port 4070 to enumerate information from HID Door Controllers. ]] author = "Mik...
Fixed output error for non-HID systems
Fixed output error for non-HID systems
Lua
mit
lixmk/Concierge
0e1d31ad6f5663d4f56bd02ecb01b58fe6f162e1
mpris-widget/init.lua
mpris-widget/init.lua
------------------------------------------------- -- mpris based Arc Widget for Awesome Window Manager -- Modelled after Pavel Makhov's work -- @author Mohammed Gaber -- requires - playerctl -- @copyright 2020 ------------------------------------------------- local awful = require("awful") local beautiful = require("b...
------------------------------------------------- -- mpris based Arc Widget for Awesome Window Manager -- Modelled after Pavel Makhov's work -- @author Mohammed Gaber -- requires - playerctl -- @copyright 2020 ------------------------------------------------- local awful = require("awful") local beautiful = require("b...
Fixed notify status - mpris widget
Fixed notify status - mpris widget
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
02772caf01fd5c055edf64c7f26b2c06b379e9e3
src/loader/src/StaticLegacyLoader.lua
src/loader/src/StaticLegacyLoader.lua
--[=[ @private @class StaticLegacyLoader ]=] local loader = script.Parent local ScriptInfoUtils = require(script.Parent.ScriptInfoUtils) local LoaderUtils = require(script.Parent.LoaderUtils) local BounceTemplateUtils = require(script.Parent.BounceTemplateUtils) local StaticLegacyLoader = {} StaticLegacyLoader.Clas...
--[=[ @private @class StaticLegacyLoader ]=] local loader = script.Parent local ScriptInfoUtils = require(script.Parent.ScriptInfoUtils) local LoaderUtils = require(script.Parent.LoaderUtils) local BounceTemplateUtils = require(script.Parent.BounceTemplateUtils) local StaticLegacyLoader = {} StaticLegacyLoader.Clas...
fix: Fix hoarcekat stories not loading correctly when installed in a flat version of the repository (for example, via normal npm install @quenty/blend)
fix: Fix hoarcekat stories not loading correctly when installed in a flat version of the repository (for example, via normal npm install @quenty/blend)
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
c4702223a1ee3ccb59ef348fc4f7efeb8befa1c9
src/lua/sancus/template/generator.lua
src/lua/sancus/template/generator.lua
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local lpeg = assert(require"lpeg") local P,R,S,V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local C,Cc,Cg,Ct,Cp = lpeg.C, lpeg.Cc, lpeg.Cg, lpeg.Ct, lpeg.Cp local a...
-- This file is part of sancus-lua-template -- <https://github.com/sancus-project/sancus-lua-template> -- -- Copyright (c) 2012, Alejandro Mery <amery@geeks.cl> -- local lpeg = assert(require"lpeg") local P,R,S,V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local C,Cc,Cg,Ct,Cp = lpeg.C, lpeg.Cc, lpeg.Cg, lpeg.Ct, lpeg.Cp local a...
template.generator: fix missing `error`
template.generator: fix missing `error`
Lua
bsd-2-clause
sancus-project/sancus-lua-template
6bc83a14294e8a30881c1be1ee3588adbc221c6a
control.lua
control.lua
require 'util' require 'defines' function setup() global.hoverboard = global.hoverboard or {} global.charge = global.charge or 0 global.tick = 0 if global.hoverboard.status == nil then global.hoverboard.status = false end end script.on_init(setup) script.on_load(setup) function getTile() return game...
require 'util' require 'defines' function setup() global.hoverboard = global.hoverboard or {} global.charge = global.charge or 0 global.tick = 0 if global.hoverboard.status == nil then global.hoverboard.status = false end global.dead = false end script.on_init(setup) script.on_load(setup) function g...
fix bug with dead players crashing the game
fix bug with dead players crashing the game
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
5909a4ad12eca667131a762454d699b687a7c8e0
epgp_recurring.lua
epgp_recurring.lua
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GS = LibStub("LibGuildStorage-1.0") local Debug = LibStub("LibDebug-1.0") local callbacks = EPGP.callbacks local frame = CreateFrame("Frame", "EPGP_RecurringAwardFrame") local timeout = 0 local function RecurringTicker(self, elapsed) local vars = EPGP.db.pr...
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GS = LibStub("LibGuildStorage-1.0") local Debug = LibStub("LibDebug-1.0") local callbacks = EPGP.callbacks local frame = CreateFrame("Frame", "EPGP_RecurringAwardFrame") local timeout = 0 local function RecurringTicker(self, elapsed) -- EPGP's db is availab...
Fix error on zoning in while having recurring awards on. This fixes issue 389.
Fix error on zoning in while having recurring awards on. This fixes issue 389.
Lua
bsd-3-clause
hayword/tfatf_epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp,sheldon/epgp
4e25caae86d75428180b11e3ee99b5d9b1bd9dc6
epgp_recurring.lua
epgp_recurring.lua
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GS = LibStub("LibGuildStorage-1.0") local Debug = LibStub("LibDebug-1.0") local callbacks = EPGP.callbacks local frame = CreateFrame("Frame", "EPGP_RecurringAwardFrame") local timeout = 0 local function RecurringTicker(self, elapsed) -- EPGP's db is availab...
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local GS = LibStub("LibGuildStorage-1.0") local Debug = LibStub("LibDebug-1.0") local callbacks = EPGP.callbacks local frame = CreateFrame("Frame", "EPGP_RecurringAwardFrame") local timeout = 0 local function RecurringTicker(self, elapsed) -- EPGP's db is availab...
Fix recurring EP resume after a reloadUI. This fixes issue 289.
Fix recurring EP resume after a reloadUI. This fixes issue 289.
Lua
bsd-3-clause
hayword/tfatf_epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp
53d5ed802ff3948dac15e099626ef16f65ed26f7
verizon.lua
verizon.lua
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.download_ch...
local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.download_ch...
verizon.lua: fix little mistake
verizon.lua: fix little mistake
Lua
unlicense
ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab,ArchiveTeam/verizon-grab
ee5088ef9ae92a0e4bcf1cfc77a6380d20ad1b79
lua/plugins/snippets/sh.lua
lua/plugins/snippets/sh.lua
local load_module = require('utils.helpers').load_module local ls = load_module 'luasnip' if not ls then return false end local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node -- local isn = ls.indent_snippet_node local i = ls.insert_node -- local f = ls.function_node -- local c = ls.choice_node l...
local load_module = require('utils.helpers').load_module local ls = load_module 'luasnip' if not ls then return false end local s = ls.snippet local sn = ls.snippet_node local t = ls.text_node -- local isn = ls.indent_snippet_node local i = ls.insert_node -- local f = ls.function_node -- local c = ls.choice_node l...
fix: Start migrating snippets to fmt syntax
fix: Start migrating snippets to fmt syntax fmt string is more readable so start migrate snippets to use it
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
46e055a6103e10213704154bd22cb7f12bc0b72a
control.lua
control.lua
require 'util' require 'gui' require "test" require "stdlib/log/logger" LOG = Logger.new("MagneticFloor") function print(stuff) game.players[1].print(stuff) end function printBool(stuff) game.players[1].print(tostring(stuff)) end function setup() global.hoverboard = global.hoverboard or {} end function activ...
require 'util' require 'gui' require "test" require "stdlib/log/logger" LOG = Logger.new("MagneticFloor") function print(stuff) game.players[1].print(stuff) end function printBool(stuff) game.players[1].print(tostring(stuff)) end function setup() global.hoverboard = global.hoverboard or {} end function activ...
fix the charging formula
fix the charging formula
Lua
mit
kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor
e93778d4e0ec16e3358cff35ab79a497d52e8609
src/luarocks/fun.lua
src/luarocks/fun.lua
--- A set of basic functional utilities local fun = {} local unpack = table.unpack or unpack function fun.concat(xs, ys) local rs = {} local n = #xs for i = 1, n do rs[i] = xs[i] end for i = 1, #ys do rs[i + n] = ys[i] end return rs end function fun.contains(xs, v) for _, x in ip...
--- A set of basic functional utilities local fun = {} local unpack = table.unpack or unpack function fun.concat(xs, ys) local rs = {} local n = #xs for i = 1, n do rs[i] = xs[i] end for i = 1, #ys do rs[i + n] = ys[i] end return rs end function fun.contains(xs, v) for _, x in ip...
Fix duplicated unpack compat
Fix duplicated unpack compat
Lua
mit
luarocks/luarocks,keplerproject/luarocks,luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,keplerproject/luarocks,luarocks/luarocks
a0ee948ffd7edb78b63e4cd7b4ea8efca4a06ae8
search-script.lua
search-script.lua
#!/usr/bin/env lua local config = require "config" local filePath = config.filePath function printArgs() for k,v in pairs(arg) do print(k,v) end end function countArgs() count = 0 for _ in pairs(arg) do count = count + 1 end return count - 2 end function helpMenu() print "#========================...
#!/usr/bin/env lua local config = require "config" local filePath = config.filePath function printArgs() for k,v in pairs(arg) do print(k,v) end end function countArgs() count = 0 for _ in pairs(arg) do count = count + 1 end return count - 2 end function helpMenu() print "#========================...
Fixing search by name
Fixing search by name Signed-off-by: Jacobo Tibaquira <d8d2a0ed36dd5f2e41c721fffbe8af2e7e4fe993@gmail.com>
Lua
apache-2.0
JKO/nsearch,JKO/nsearch
912f487e4b15c083e8c9e456f6ed0c940a47a6f2
profiles/stepless.lua
profiles/stepless.lua
-- Foot profile api_version = 1 local find_access_tag = require("lib/access").find_access_tag local Set = require('lib/set') local Sequence = require('lib/sequence') local Handlers = require("lib/handlers") local next = next -- bind to local for speed properties.max_speed_for_map_matching = 40/3.6 -- kmph -...
-- Foot profile api_version = 1 local find_access_tag = require("lib/access").find_access_tag local Set = require('lib/set') local Sequence = require('lib/sequence') local Handlers = require("lib/handlers") local next = next -- bind to local for speed properties.max_speed_for_map_matching = 40/3.6 -- kmph -...
fix: update stepless profile
fix: update stepless profile
Lua
mit
urbica/galton,urbica/galton
475af843f1b08a305e5f1e1fca7946fa7a457560
lunamark/util.lua
lunamark/util.lua
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Utility functions for lunamark. local M = {} local cosmo = require("cosmo") local rep = string.rep local insert = table.insert local lpeg = require("lpeg") local Cs, P, S, lpegmatch = lpeg.Cs, lpeg.P...
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Utility functions for lunamark. local M = {} local cosmo = require("cosmo") local rep = string.rep local lpeg = require("lpeg") local Cs, P, S, lpegmatch = lpeg.Cs, lpeg.P, lpeg.S, lpeg.match local a...
lunamark.util: fix luacheck warnings
lunamark.util: fix luacheck warnings
Lua
mit
jgm/lunamark,simoncozens/lunamark,jgm/lunamark,simoncozens/lunamark,jgm/lunamark,simoncozens/lunamark
f729aa71a7a73fbb7116bb5eb195f35412c98c78
plugins/mod_private.lua
plugins/mod_private.lua
local st = require "util.stanza" local send = require "core.sessionmanager".send_to_session local jid_split = require "util.jid".split; local datamanager = require "util.datamanager" add_iq_handler("c2s", "jabber:iq:private", function (session, stanza) local type = stanza.attr.type; local query = stanza.tags[1]...
local st = require "util.stanza" local jid_split = require "util.jid".split; local datamanager = require "util.datamanager" add_iq_handler("c2s", "jabber:iq:private", function (session, stanza) local type = stanza.attr.type; local query = stanza.tags[1]; if (type == "get" or type == "set") and query.name == "...
Fixed mod_private to use session.send for sending stanzas
Fixed mod_private to use session.send for sending stanzas
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
7c3cab36c18a9f35afa905a24f63ec84b7846c62
lib/lux/class.lua
lib/lux/class.lua
--[[ -- -- Copyright (c) 2013-2016 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
--[[ -- -- Copyright (c) 2013-2016 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, ...
Fix documentation regarding class:instance
Fix documentation regarding class:instance Update to new parameter semantics
Lua
mit
Kazuo256/luxproject
0b821de90868cd2c421fd74fe58cf2d64cf4ee49
serializer.lua
serializer.lua
local function serialize(obj, indent, asArray) local s = "" indent = indent or '' for k,v in pairs(obj) do local t = type(v) if t == "table" then -- what kind of table, one like a list or a like a map? if v[1] == nil then -- map if asArray then s = s .. indent .. t ....
local function serialize(obj, indent, asArray) local s = "" indent = indent or '' if asArray then for _,v in ipairs(obj) do local t = type(v) if t == "table" then -- what kind of table, one like a list or a like a map? if v[1] == nil then -- map s = s .. indent...
fixes all kinds of problems deserializing lists, adds fromFile and clone
fixes all kinds of problems deserializing lists, adds fromFile and clone
Lua
apache-2.0
InfinitiesLoop/oclib
7e9a481871a1e332898f91e38387fc25016d076b
agents/monitoring/tests/fixtures/protocol/server.lua
agents/monitoring/tests/fixtures/protocol/server.lua
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
monitoring: fixtures: server: lineEmitter per connection
monitoring: fixtures: server: lineEmitter per connection make the lineEmitter per connection so that we don't end up sending responses to all three connections.
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,kaustavha/rackspace-monitorin...
3bad08b4b23f12275d6d3ece798a76278f2824bc
CTCCriterion.lua
CTCCriterion.lua
-- Criterion based on the warp-ctc library -- by Baidu: https://github.com/baidu-research/warp-ctc -- Formatting of the input can be seen here: -- https://github.com/baidu-research/warp-ctc/blob/master/torch_binding/TUTORIAL.md require 'warp_ctc' local CTCCriterion, parent = torch.class('nn.CTCCriterion', 'nn.Criterio...
-- Criterion based on the warp-ctc library -- by Baidu: https://github.com/baidu-research/warp-ctc -- Formatting of the input can be seen here: -- https://github.com/baidu-research/warp-ctc/blob/master/torch_binding/TUTORIAL.md require 'warp_ctc' local CTCCriterion, parent = torch.class('nn.CTCCriterion', 'nn.Criterio...
fixed type issues
fixed type issues
Lua
mit
SeanNaren/CTCSpeechRecognition,zhirongw/Speech
986dd6a652a5da23b07f131160ed6b972a5c9341
mod_watchuntrusted/mod_watchuntrusted.lua
mod_watchuntrusted/mod_watchuntrusted.lua
local jid_prep = require "util.jid".prep; local secure_auth = module:get_option_boolean("s2s_secure_auth", false); local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local untrusted_fail_watchers = module:get_opti...
local jid_prep = require "util.jid".prep; local secure_auth = module:get_option_boolean("s2s_secure_auth", false); local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local untrusted_fail_watchers = module:get_opti...
mod_watchuntrusted: Skip connections to/from unknown hosts (fixes possible traceback)
mod_watchuntrusted: Skip connections to/from unknown hosts (fixes possible traceback)
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
48b314ddbc2aabdaad292bb0323f9dcac4f879b3
scripts/tcp-connect.lua
scripts/tcp-connect.lua
local syn_table = {} print(string.format("\n Time IP:Port Retries Conenct Cost(s)")) print(string.format("-------------------------- ---------------------------------------------- -------------- ---------------------")) function process(packet) ...
local syn_table = {} print(string.format("\n Time IP:Port Retries Conenct Cost(s)")) print(string.format("-------------------------- ---------------------------------------------- -------------- ---------------------")) function process(packet) ...
FIX: tcp connect script
FIX: tcp connect script
Lua
mit
git-hulk/tcpkit,git-hulk/tcpkit
122c8401ca88ebca3cc75340c51e2764f608bc1f
src/gtkpad.lua
src/gtkpad.lua
#! /usr/bin/env lua --[[-------------------------------------------------------------------------- Sample GTK Application program, simple notepad implementation. Copyright (c) 2010 Pavel Holejsovsky Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]----------------------...
#! /usr/bin/env lua --[[-------------------------------------------------------------------------- Sample GTK Application program, simple notepad implementation. Copyright (c) 2010 Pavel Holejsovsky Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]----------------------...
Fix gtkpad application.
Fix gtkpad application.
Lua
mit
psychon/lgi,zevv/lgi,pavouk/lgi
1551ce26fdc51165ecb80cadbb72d4b052116b3f
src/OAuth/helpers.lua
src/OAuth/helpers.lua
local pairs, table, tostring, select = pairs, table, tostring, select local type, assert, error = type, assert, error local string = require "string" local math = require "math" local Url, Qs local isLuaNode if process then Url = require "luanode.url" Qs = require "luanode.querystring" isLuaNode = true e...
local pairs, table, tostring, select = pairs, table, tostring, select local type, assert, error = type, assert, error local string = require "string" local math = require "math" local Url, Qs local isLuaNode if process then Url = require "luanode.url" Qs = require "luanode.querystring" isLuaNode = true e...
Check types for multipart keys and values (#11)
Check types for multipart keys and values (#11) Tables to be encoded as multipart/form-data must comply with: - keys must be either strings, booleans or numbers - values must not be neither function nor userdata fixes #11
Lua
mit
ignacio/LuaOAuth
f3212c2cba762d7f52fff6e6c083cde9a2416cce
lua/path/findfile.lua
lua/path/findfile.lua
--- -- Implementation of afx.findfile local string = require "string" local table = require "table" local coroutine = require "coroutine" local PATH = require "path.module" local lfs = require "lfs" local function fs_foreach(path, match, cb, recursive) for name in lfs.dir(path) do if nam...
--- -- Implementation of afx.findfile local string = require "string" local table = require "table" local coroutine = require "coroutine" local PATH = require "path.module" local lfs = require "lfs" local function fs_foreach(path, match, cb, recursive) for name in lfs.dir(path) do if nam...
Fix. In path.each the mask was used for the full path, instead of for a base name. Fix. break path.each.
Fix. In path.each the mask was used for the full path, instead of for a base name. Fix. break path.each.
Lua
mit
mpeterv/lua-path,kidaa/lua-path
427aab8e60059241d4892f50ec1b08eb798a0d28
lua/framework/graphics/transformation.lua
lua/framework/graphics/transformation.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local kazmath = require( "kazmath" ) local ffi = require( "ffi" ) local GL = require( "opengl" ) local ipairs = ipairs local f...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local kazmath = require( "kazmath" ) local ffi = require( "ffi" ) local GL = require( "opengl" ) local ipairs = ipairs local f...
Remove erroneous `translate` fix
Remove erroneous `translate` fix
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
53a0f9867af86c6732ff39b466fa2e653b29afe9
libs/core/luasrc/fs.lua
libs/core/luasrc/fs.lua
--[[ LuCI - Filesystem tools Description: A module offering often needed filesystem manipulation functions FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
--[[ LuCI - Filesystem tools Description: A module offering often needed filesystem manipulation functions FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
libs/core: Fixed luci.fs.isfile
libs/core: Fixed luci.fs.isfile
Lua
apache-2.0
rogerpueyo/luci,cshore/luci,Kyklas/luci-proto-hso,lbthomsen/openwrt-luci,cappiewu/luci,palmettos/cnLuCI,aircross/OpenWrt-Firefly-LuCI,cappiewu/luci,nwf/openwrt-luci,thess/OpenWrt-luci,bittorf/luci,opentechinstitute/luci,LazyZhu/openwrt-luci-trunk-mod,shangjiyu/luci-with-extra,Hostle/openwrt-luci-multi-user,jchuang1977/...
4d9ce9c196050cd54194819b5ccd1e39fe62ad16
src_trunk/resources/item-system/s_drug_system.lua
src_trunk/resources/item-system/s_drug_system.lua
function mixDrugs(drug1, drug2, drug1name, drug2name) exports.global:sendLocalMeAction(source, "mixes some chemicals together.") -- 30 = Cannabis Sativa -- 31 = Cocaine Alkaloid -- 32 = Lysergic Acid -- 33 = Unprocessed PCP -- 34 = Cocaine -- 35 = Drug 2 -- 36 = Drug 3 -- 37 = Drug 4 -- 38 = Mari...
function mixDrugs(drug1, drug2, drug1name, drug2name) -- 30 = Cannabis Sativa -- 31 = Cocaine Alkaloid -- 32 = Lysergic Acid -- 33 = Unprocessed PCP -- 34 = Cocaine -- 35 = Drug 2 -- 36 = Drug 3 -- 37 = Drug 4 -- 38 = Marijuana -- 39 = Drug 6 -- 40 = Drug 7 -- 41 = LSD -- 42 = Drug 9 -- 4...
Bug fixes for drugs
Bug fixes for drugs git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@239 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
9bdb537e67bc0eb8f80b7649ed0cf283a52f50eb
fusion/Modules/Lua/test_cryptomatte_utilities.lua
fusion/Modules/Lua/test_cryptomatte_utilities.lua
--[[ Requires : Fusion 9.0.2+ Optional : cjson Created by : Cédric Duriau [duriau.cedric@live.be] Kristof Indeherberge [xmnr0x23@gmail.com] Andrew Hazelden [andrew@andrewhazelden.com] Version : 1.2.8 --]] local cryptoutils = require("cryptomatte_utilities") -- utils fun...
--[[ Requires : Fusion 9.0.2+ Optional : cjson Created by : Cédric Duriau [duriau.cedric@live.be] Kristof Indeherberge [xmnr0x23@gmail.com] Andrew Hazelden [andrew@andrewhazelden.com] Version : 1.2.8 --]] local cryptoutils = require("cryptomatte_utilities") -- utils fun...
fix log levels; remove _log; add _format_log test
fix log levels; remove _log; add _format_log test
Lua
bsd-3-clause
Psyop/Cryptomatte
40249240001c7c58bd19e205fe597fe9d5b523dc
configure.lua
configure.lua
require "package" require "debug" local deps = require "configure.dependency" local cxx = require "configure.lang.cxx" local c = require "configure.lang.c" local version = '0.0.1' function configure(build) build:status("Building on", build:host():os_string()) local with_coverage = build:bool_option( "coverage"...
require "package" require "debug" local deps = require "configure.dependency" local cxx = require "configure.lang.cxx" local c = require "configure.lang.c" local version = '0.0.1' function configure(build) build:status("Building on", build:host():os_string()) local with_coverage = build:bool_option( "coverage"...
Remove custom env prefix from boost find invocations.
Remove custom env prefix from boost find invocations.
Lua
bsd-3-clause
hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure
b3828420c14bc13c96eb9257ac935f4dcf5dc488
tests/test-fs-readfile-zero-byte-liar.lua
tests/test-fs-readfile-zero-byte-liar.lua
--[[ Copyright 2012-2015 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...
--[[ Copyright 2012-2015 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...
fix bug in test-fs-readfile-zero-byte-liar.lua
fix bug in test-fs-readfile-zero-byte-liar.lua
Lua
apache-2.0
kaustavha/luvit,zhaozg/luvit,bsn069/luvit,luvit/luvit,luvit/luvit,zhaozg/luvit,kaustavha/luvit,bsn069/luvit,bsn069/luvit,kaustavha/luvit
eab730cb61154ecd4e67276bcda005eca2325cfa
extensions/tabs/init.lua
extensions/tabs/init.lua
--- === hs.tabs === --- --- Place the windows of an application into tabs drawn on its titlebar local tabs = {} local drawing = require "hs.drawing" local uielement = require "hs.uielement" local watcher = uielement.watcher local fnutils = require "hs.fnutils" local timer = require "hs.timer" local application = requi...
--- === hs.tabs === --- --- Place the windows of an application into tabs drawn on its titlebar local tabs = {} local drawing = require "hs.drawing" local uielement = require "hs.uielement" local watcher = uielement.watcher local fnutils = require "hs.fnutils" local application = require "hs.application" local appwatc...
Cleanup hs.tabs
Cleanup hs.tabs - Fixed @stickler-ci bugs
Lua
mit
Hammerspoon/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,cmsj/hammerspoon,latenitefilms/hammerspoon,cmsj/hammerspoon,Hammerspoon/hammerspoon,cmsj/hammerspoon,latenitefilms/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,latenitefilms/h...
9f9d5bc3dec0d08df7dbb27dabb809d355f17cb3
love2d/world.lua
love2d/world.lua
require "tileset" require "map" require "pawn" require "mapGenerator" function love.game.newWorld() local o = {} o.mapG = nil o.map = nil o.mapWidth = 32 o.mapHeight = 24 o.tileset = nil o.offsetX = 0 o.offsetY = 0 o.zoom = 1 o.offsetX = 0 o.offsetY = 0 o.goalX = 7 o.goalY =7 o.init = function() o.m...
require "tileset" require "map" require "pawn" require "mapGenerator" function love.game.newWorld() local o = {} o.mapG = nil o.map = nil o.mapWidth = 32 o.mapHeight = 24 o.tileset = nil o.offsetX = 0 o.offsetY = 0 o.zoom = 1 o.offsetX = 0 o.offsetY = 0 o.goalX = 7 o.goalY =7 o.init = function() o.m...
fix cursor zoom.
fix cursor zoom.
Lua
mit
nczempin/lizard-journey
5c697556e7d23930544c071222a7dcc4da3a9fbe
plugins/2017.3081/android/metadata.lua
plugins/2017.3081/android/metadata.lua
local metadata = { plugin = { format = 'jar', manifest = { permissions = {}, usesPermissions = { "android.permission.WAKE_LOCK", "android.permission.ACCESS_NETWORK_STATE", "android.permission.RECEIVE_BOO...
local metadata = { plugin = { format = 'jar', manifest = { permissions = {}, usesPermissions = { "android.permission.WAKE_LOCK", "android.permission.ACCESS_NETWORK_STATE", "android.permission.RECEIVE_BOO...
Fix manifest
Fix manifest
Lua
mit
Vungle/coronaplugin,Vungle/coronaplugin,Vungle/coronaplugin
e690dd9740835fd0173c7c26beae9cfdbabcd984
src/rspamadm/fuzzy_stat.lua
src/rspamadm/fuzzy_stat.lua
local util = require "rspamd_util" local opts = {} local function add_data(target, src) for k,v in pairs(src) do if k ~= 'ips' then if target[k] then target[k] = target[k] + v else target[k] = v end else if not target['ips'] then target['ips'] = {} end -- Iterate...
local util = require "rspamd_util" local opts = {} local function add_data(target, src) for k,v in pairs(src) do if k ~= 'ips' then if target[k] then target[k] = target[k] + v else target[k] = v end else if not target['ips'] then target['ips'] = {} end -- Iterate...
Fix sorting and output of errors_ips
Fix sorting and output of errors_ips
Lua
bsd-2-clause
AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,an...
edba7655494b83fe4c8428a751db5f26392e5bf9
base/repair.lua
base/repair.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
#11095: Fix problem with repair dialog
#11095: Fix problem with repair dialog
Lua
agpl-3.0
Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content