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
0d92ddb53dd22f9b0497c32466b5fb7b4a194896
lua/entities/gmod_wire_egp/lib/objects/boxoutline.lua
lua/entities/gmod_wire_egp/lib/objects/boxoutline.lua
local Obj = EGP:NewObject( "BoxOutline" ) Obj.size = 1 Obj.angle = 0 Obj.Draw = function( self ) if (self.a>0 and self.w > 0 and self.h > 0) then surface.SetDrawColor( self.r, self.g, self.b, self.a ) local s = self.size/2 if (self.angle == 0) then -- this is less demanding, so I'm using angle = 0 as a sp...
local Obj = EGP:NewObject( "BoxOutline" ) Obj.size = 1 Obj.angle = 0 local function rotate( v, a ) local a = a * math.pi / 180 local x = math.cos(a) * v[1] - math.sin(a) * v[2] local y = math.sin(a) * v[1] + math.cos(a) * v[2] return { x, y } end Obj.Draw = function( self ) if (self.a>0 and self.w > ...
[EGP] Made the box outline drawing code half as big, twice as fast, and fixed both the bug where it'd sometimes be larger than a regular box of the same size, and where its corners would, at certain line widths, not be aligned.
[EGP] Made the box outline drawing code half as big, twice as fast, and fixed both the bug where it'd sometimes be larger than a regular box of the same size, and where its corners would, at certain line widths, not be aligned.
Lua
apache-2.0
mms92/wire,bigdogmat/wire,rafradek/wire,sammyt291/wire,thegrb93/wire,Grocel/wire,garrysmodlua/wire,NezzKryptic/Wire,immibis/wiremod,mitterdoo/wire,dvdvideo1234/wire,Python1320/wire,plinkopenguin/wiremod,notcake/wire,CaptainPRICE/wire,wiremod/wire
048ebc4c0b8cd3bd90b09bc28e3f20c9b3ca7a9d
util/datamanager.lua
util/datamanager.lua
local format = string.format; local setmetatable, type = setmetatable, type; local pairs = pairs; local char = string.char; local loadfile, setfenv, pcall = loadfile, setfenv, pcall; local log = log; local io_open = io.open; local tostring = tostring; module "datamanager" ---- utils ----- local encode, decode; loca...
local format = string.format; local setmetatable, type = setmetatable, type; local pairs = pairs; local char = string.char; local loadfile, setfenv, pcall = loadfile, setfenv, pcall; local log = log; local io_open = io.open; local tostring = tostring; module "datamanager" ---- utils ----- local encode, decode; loca...
Fixed: datamanager.store and datamanager.load could crash when username or host arguments were nil. (useful for server specific and global data).
Fixed: datamanager.store and datamanager.load could crash when username or host arguments were nil. (useful for server specific and global data).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5b008aa1dc4f27090794806d4c9cc5da2ba29971
lua/engine/viewport.lua
lua/engine/viewport.lua
local Viewport = {} -- GLFW shared library is libglfw.so on Linux, libglfw.dylib OSX but it's named glfw3.dll on Windows local name = (jit.os == 'Windows') and 'glfw' or 'glfw.3' local glfw = require 'engine.glfw'(name) local scene_tree = {} local window = nil function Viewport.init() -- Initialize GLFW if g...
local Viewport = {} -- GLFW shared library is libglfw.so on Linux, libglfw.dylib OSX but it's named glfw3.dll on Windows local name = (jit.os == 'Windows') and 'glfw' or 'glfw.3' local glfw = require 'engine.glfw'(name) local jit = require 'jit' local scene_tree = {} local window = nil function Viewport.init() ...
Fix ImGui requirements
Fix ImGui requirements
Lua
mit
lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot
cc21c6f44dbc199f8ce2c2d9d421437f4842235c
core/init.lua
core/init.lua
-- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE. _RELEASE = "Textadept 7.0 beta 3" package.path = _HOME..'/core/?.lua;'..package.path _SCINTILLA = require('iface') _L = require('locale') events = require('events') args = require('args') require('file_io') require('lfs_ext') require('ui') keys =...
-- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE. _RELEASE = "Textadept 7.0 beta 3" package.path = _HOME..'/core/?.lua;'..package.path _SCINTILLA = require('iface') events = require('events') args = require('args') _L = require('locale') require('file_io') require('lfs_ext') require('ui') keys =...
Fixed bug with previous commit.
Fixed bug with previous commit.
Lua
mit
jozadaquebatista/textadept,jozadaquebatista/textadept
057d0e341a91e803a6dfb4a60799feda4a846ac0
src/lua/lzmq/poller.lua
src/lua/lzmq/poller.lua
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to u...
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to u...
Fix spaces [ci skip]
Fix spaces [ci skip]
Lua
mit
moteus/lzmq,zeromq/lzmq,zeromq/lzmq,zeromq/lzmq,moteus/lzmq,moteus/lzmq
d5192ab58e6452176058393cf73cae57657c19f4
lua/table/tablecopy.lua
lua/table/tablecopy.lua
local next,type,rawset,pcall = next,type,rawset,pcall local gmt = debug and debug.getmetatable or getmetatable local function trycopy(obj) local mt = gmt(obj) -- do we have a metatable? does it have a __copy method? if type(mt) == "table" and mt.__copy then -- try to call it (this supports __call-ables too...
local next,type,rawset,pcall = next,type,rawset,pcall local gmt = debug and debug.getmetatable or getmetatable local function trycopy(obj) local mt = gmt(obj) -- do we have a metatable? does it have a __copy method? if type(mt) == "table" and mt.__copy then -- try to call it (this supports __call-ables too...
Fix derp... again
Fix derp... again
Lua
mit
SoniEx2/Stuff,SoniEx2/Stuff
c66eaccb89873efd5b5a572ecb5b1f3a070777c3
lib/out.lua
lib/out.lua
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
Fixed printf() for userdata and nil
Fixed printf() for userdata and nil
Lua
mit
Quit/jelly
4f4443f44f31f1ca1a0b62f6a238a72ad5ca4a7d
lib/cxjob.lua
lib/cxjob.lua
local cxjob = {} local function getJobInfo(server) local info = { 'k.aics.riken.jp' = { submitCmd = 'pjsub', delCmd = 'pjdel', statCmd = 'pjstat' statStateColumn = 0, statStateRow = 0, jobEndFunc = function(t) -- TODO...
--[[ USAGE: local cxjob = require('cxjob') local jobmgr = cxjob.new( 'username', 'to_sshkey_path', 'server_address') or local jobmgr = cxjob.new( {username = 'username', sshkey = 'to_sshkey_path', server = 'server_address'}) --]] local cxjob = {} local functi...
fixed cxjob
fixed cxjob
Lua
bsd-2-clause
avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI,digirea/hpcpfGUI,avr-aics-riken/hpcpfGUI,avr-aics-riken/hpcpfGUI,digirea/hpcpfGUI
0da055bea818ec2ee56e0d2902d884691dda66cc
src_trunk/resources/spike-system/s_spikes.lua
src_trunk/resources/spike-system/s_spikes.lua
TotalSpikes=nil Spike = {} SpikeLimit=5 Shape= {} function PlacingSpikes(sourcePlayer, command) local theTeam = getPlayerTeam(sourcePlayer) local teamType = getElementData(theTeam, "type") if (teamType==2) then local x1,y1,z1 = getElementPosition(sourcePlayer) local rotz = getPedRotation(sourcePlay...
TotalSpikes=nil Spike = {} SpikeLimit=5 Shape= {} function PlacingSpikes(sourcePlayer, command) local theTeam = getPlayerTeam(sourcePlayer) local teamType = getElementData(theTeam, "type") if (teamType==2) then local x1,y1,z1 = getElementPosition(sourcePlayer) local rotz = getPedRotation(sourcePlay...
Fixed spike-system
Fixed spike-system git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1209 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
10fc567541163a13c59d7ed2bdb0551a279dd58b
examples.lua
examples.lua
-- This file is a working script that demonstrates the basic syntax of the Lua scripting language. -- This is a one-line comment. You can put these at the ends of lines too. --[[ This is a multiline comment. Everything between the two surrounding symbols will be ignorned by Lua. ]]-- -- variables can be de...
-- This file is a working script that demonstrates the basic syntax of the Lua scripting language. -- This is a one-line comment. You can put these at the ends of lines too. --[[ This is a multiline comment. Everything between the two surrounding symbols will be ignorned by Lua. ]]-- -- variables can be de...
Fixes minor readability issues.
Fixes minor readability issues.
Lua
unlicense
jmarshallstewart/LuaExamples
55e6dd78c3e713e0c5b19c5dfd72da5ca7db98c8
src/program/packetblaster/packetblaster.lua
src/program/packetblaster/packetblaster.lua
module(..., package.seeall) local engine = require("core.app") local config = require("core.config") local timer = require("core.timer") local pci = require("lib.hardware.pci") local intel_app = require("apps.intel.intel_app") local basic_apps = require("apps.basic.basic_apps") local main = requir...
module(..., package.seeall) local engine = require("core.app") local config = require("core.config") local timer = require("core.timer") local pci = require("lib.hardware.pci") local intel10g = require("apps.intel.intel10g") local intel_app = require("apps.intel.intel_app") local basic_apps = require(...
packetblaster: Fix to avoid starvation
packetblaster: Fix to avoid starvation This commit introduces two changes to avoid the NIC becoming idle: - Use maximum descriptor ring size for 82599 (32K descriptors) - Busywait instead of sleeping between transmissions This makes packetblaster now run at 100% CPU as seen in top. Testing on Interlaken this booste...
Lua
apache-2.0
aperezdc/snabbswitch,kellabyte/snabbswitch,pirate/snabbswitch,heryii/snabb,kbara/snabb,lukego/snabbswitch,hb9cwp/snabbswitch,eugeneia/snabb,dpino/snabbswitch,kbara/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,lukego/snabb,plajjan/snabbswitch,eugeneia/snabb,dpino/snabb,heryii/snabb,lukego/snabbswitch,pirate/snabbswitch,...
ad299cacc51d1a517f8e5eb58e5aa1888d4f0955
worldedit_gui/init.lua
worldedit_gui/init.lua
worldedit = worldedit or {} --[[ Example: worldedit.register_gui_function("worldedit_gui_hollow_cylinder", { name = "Make Hollow Cylinder", privs = {worldedit=true}, get_formspec = function(name) return "some formspec here" end, on_select = function(name) print(name .. " clicked the button!") ...
worldedit = worldedit or {} --[[ Example: worldedit.register_gui_function("worldedit_gui_hollow_cylinder", { name = "Make Hollow Cylinder", privs = {worldedit=true}, get_formspec = function(name) return "some formspec here" end, on_select = function(name) print(name .. " clicked the button!") ...
Fix crashes in GUI button.
Fix crashes in GUI button.
Lua
agpl-3.0
Uberi/Minetest-WorldEdit
bb3258ab5d2ea12a9c711a93edf1aa316899b8ea
src/flyin.lua
src/flyin.lua
local Gamestate = require 'vendor/gamestate' local window = require 'window' local fonts = require 'fonts' local TunnelParticles = require "tunnelparticles" local flyin = Gamestate.new() local sound = require 'vendor/TEsound' local Timer = require 'vendor/timer' local Character = require 'character' function flyin:ini...
local Gamestate = require 'vendor/gamestate' local window = require 'window' local fonts = require 'fonts' local TunnelParticles = require "tunnelparticles" local flyin = Gamestate.new() local sound = require 'vendor/TEsound' local Timer = require 'vendor/timer' local Character = require 'character' function flyin:ini...
Minor fix for flyin
Minor fix for flyin
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
3debb1f02b7bdc41898eb2ec5bb00de65283f09e
hammerspoon/init.lua
hammerspoon/init.lua
--- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") local v60hyper = {} local globalHyper = {"ctrl", "alt"} local primaryScreen = hs.screen.primaryScreen() local primaryScreenMenuBarOffset = primaryScreen:frame().y local screenDimensionFigurer = ...
--- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") local v60hyper = {} local globalHyper = {"ctrl", "alt"} local primaryScreen = hs.screen.primaryScreen() local primaryScreenMenuBarOffset = primaryScreen:frame().y local screenDimensionFigurer = ...
fix previous
fix previous
Lua
mit
paul-krohn/configs
afd430366a6cdb38b23ec5bfddacd4e99e17d65e
examples/lua/memleak.lua
examples/lua/memleak.lua
--[[ Copyright 2016 GitHub, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
--[[ Copyright 2016 GitHub, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
memleak.lua: Fix indentation
memleak.lua: Fix indentation
Lua
apache-2.0
shodoco/bcc,tuxology/bcc,iovisor/bcc,shodoco/bcc,brendangregg/bcc,mcaleavya/bcc,mkacik/bcc,shodoco/bcc,tuxology/bcc,zaafar/bcc,zaafar/bcc,zaafar/bcc,romain-intel/bcc,zaafar/bcc,shodoco/bcc,mkacik/bcc,romain-intel/bcc,brendangregg/bcc,tuxology/bcc,iovisor/bcc,romain-intel/bcc,mkacik/bcc,mcaleavya/bcc,iovisor/bcc,shodoco...
e65a0815dc4411dc777f5cfc930c9c28b89a2022
ffi/framebuffer_SDL.lua
ffi/framebuffer_SDL.lua
local ffi = require("ffi") local bit = require("bit") -- load common SDL input/video library local SDL = require("ffi/SDL") local BB = require("ffi/blitbuffer") local fb = {} function fb.open() SDL.open() -- we present this buffer to the outside fb.bb = BB.new(SDL.screen.w, SDL.screen.h) fb.real_bb = BB.new(SD...
local ffi = require("ffi") local bit = require("bit") -- load common SDL input/video library local SDL = require("ffi/SDL") local BB = require("ffi/blitbuffer") local fb = {} function fb.open() SDL.open() -- we present this buffer to the outside fb.bb = BB.new(SDL.screen.w, SDL.screen.h) fb.real_bb = BB.new(SD...
Adaptions and bugfixes for SDL framebuffer emulation
Adaptions and bugfixes for SDL framebuffer emulation Now properly does rotation.
Lua
agpl-3.0
houqp/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,Hzj-jie/koreader-base,koreader/koreader-base,koreader/koreader-base,koreader/koreader-base,koreader/korea...
a0508e145ebe78745e892b8b4fb43c787435c11c
games/starDash/unit.lua
games/starDash/unit.lua
-- Unit: A unit in the game. May be a corvette, missleboat, martyr, transport, miner. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.util...
-- Unit: A unit in the game. May be a corvette, missleboat, martyr, transport, miner. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.util...
Added additional functions that tell the user if it is possible to move or dash to coordinates. Fixed typo.
Added additional functions that tell the user if it is possible to move or dash to coordinates. Fixed typo.
Lua
mit
siggame/Joueur.lua,siggame/Joueur.lua
da19df084b0edf4cdffb1270dead89f4b2c6463e
onmt/data/Vocabulary.lua
onmt/data/Vocabulary.lua
local path = require('pl.path') --[[ Vocabulary management utility functions. ]] local Vocabulary = torch.class("Vocabulary") local function countFeatures(filename) local reader = onmt.utils.FileReader.new(filename) local _, _, numFeatures = onmt.utils.Features.extract(reader:next()) reader:close() return num...
local path = require('pl.path') --[[ Vocabulary management utility functions. ]] local Vocabulary = torch.class("Vocabulary") local function countFeatures(filename) local reader = onmt.utils.FileReader.new(filename) local _, _, numFeatures = onmt.utils.Features.extract(reader:next()) reader:close() return num...
Fix vocabularies assignment when no pruning is required
Fix vocabularies assignment when no pruning is required
Lua
mit
jungikim/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jsene...
78c366af6f1e3ffaacc5fda11584b4390f3d892b
plugins/mod_saslauth.lua
plugins/mod_saslauth.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
mod_saslauth: Fixed some indentation and added some semi-colons.
mod_saslauth: Fixed some indentation and added some semi-colons.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
e8a48483abd3b210f9f687a11a6a8325d76a4227
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(...
Check address changes before raise error, fix #1273
Check address changes before raise error, fix #1273
Lua
mit
hongling0/skynet,xcjmine/skynet,xjdrew/skynet,korialuo/skynet,sanikoyes/skynet,cloudwu/skynet,xcjmine/skynet,hongling0/skynet,wangyi0226/skynet,xjdrew/skynet,icetoggle/skynet,pigparadise/skynet,xjdrew/skynet,icetoggle/skynet,wangyi0226/skynet,korialuo/skynet,pigparadise/skynet,cloudwu/skynet,cloudwu/skynet,icetoggle/sk...
704b016f2cec9ba7d0799c8bd1408b613fef0e64
service/clusterd.lua
service/clusterd.lua
local skynet = require "skynet" local sc = require "socketchannel" local socket = require "socket" local cluster = require "cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local command = {} local function read_response(sock) local sz = socket.header(sock:rea...
local skynet = require "skynet" local sc = require "socketchannel" local socket = require "socket" local cluster = require "cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local node_session = {} local command = {} local function read_response(sock) local sz = socket.header(sock:rea...
bugfix: inc session before get channel
bugfix: inc session before get channel
Lua
mit
Ding8222/skynet,helling34/skynet,helling34/skynet,great90/skynet,jxlczjp77/skynet,hongling0/skynet,u20024804/skynet,MRunFoss/skynet,catinred2/skynet,sundream/skynet,cuit-zhaxin/skynet,your-gatsby/skynet,czlc/skynet,MetSystem/skynet,your-gatsby/skynet,your-gatsby/skynet,xjdrew/skynet,kyle-wang/skynet,great90/skynet,Kitt...
30d86516eb9e73304a4ed3a1f57242d435b04c87
premake4.lua
premake4.lua
-- os.outputof is broken in premake4, hence this workaround function llvm_config(opt) local stream = assert(io.popen("llvm-config-3.5 " .. opt)) local output = "" --llvm-config contains '\n' while true do local curr = stream:read("*l") if curr == nil then break end output = output .. curr ...
-- os.outputof is broken in premake4, hence this workaround function llvm_config(opt) local stream = assert(io.popen("llvm-config-3.5 " .. opt)) local output = "" --llvm-config contains '\n' while true do local curr = stream:read("*l") if curr == nil then break end output = output .. curr ...
premake fix again
premake fix again
Lua
bsd-2-clause
doublec/ponyc,kulibali/ponyc,kulibali/ponyc,pap/ponyc,cquinn/ponyc,Theodus/ponyc,lukecheeseman/ponyta,shlomif/ponyc,jupvfranco/ponyc,malthe/ponyc,CausalityLtd/ponyc,doublec/ponyc,mkfifo/ponyc,jonas-l/ponyc,influx6/ponyc,sgebbie/ponyc,jonas-l/ponyc,darach/ponyc,pap/ponyc,Praetonus/ponyc,boemmels/ponyc,jupvfranco/ponyc,P...
902d682238e1c874f1fdcb280932c15b87b1c89a
premake4.lua
premake4.lua
function args_contains( element ) for _, value in pairs(_ARGS) do if value == element then return true end end return false end solution "efsw" location("./make/" .. os.get() .. "/") targetdir("./bin") configurations { "debug", "release" } if os.is("windows") then osfiles = "s...
function args_contains( element ) for _, value in pairs(_ARGS) do if value == element then return true end end return false end solution "efsw" location("./make/" .. os.get() .. "/") targetdir("./bin") configurations { "debug", "release" } if os.is("windows") then osfiles = "s...
Fixed shared library links.
Fixed shared library links.
Lua
mit
havoc-io/efsw,havoc-io/efsw,havoc-io/efsw
afad480387f0178eadc70d90582797bb594fc803
src/Game.lua
src/Game.lua
require ("lib.lclass") require ("src.EventManager") require ("src.data.PositionData") require ("src.events.FocusGainedEvent") require ("src.events.FocusLostEvent") require ("src.events.KeyboardKeyDownEvent") require ("src.events.KeyboardKeyUpEvent") require ("src.events.MouseButtonDownEvent") require ("src.events.Mo...
require ("lib.lclass") require ("src.EventManager") require ("src.data.PositionData") require ("src.events.FocusGainedEvent") require ("src.events.FocusLostEvent") require ("src.events.KeyboardKeyDownEvent") require ("src.events.KeyboardKeyUpEvent") require ("src.events.MouseButtonDownEvent") require ("src.events.Mo...
removed debug messages and fixed bg dimensions
removed debug messages and fixed bg dimensions removed the debug log for mousekey events fixed formular to calculate scale factor for background image depending on the current window size
Lua
mit
BlurryRoots/weltraumsteinekaputtmachen
b880c82bd6cf00de9718b29c2183ffbc5aa73274
Quadtastic/AppLogic.lua
Quadtastic/AppLogic.lua
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function" or self._state.coroutine) local co, ret if self._state.coroutine then -- The coroutine might be running if this was a nested call. -- In this c...
local unpack = unpack or table.unpack local quit = love.event.quit or os.exit local AppLogic = {} local function run(self, f, ...) assert(type(f) == "function" or self._state.coroutine) local co, ret if self._state.coroutine then -- The coroutine might be running if this was a nested call. -- In this c...
Fix bug in app logic where nested calls would not produce return values
Fix bug in app logic where nested calls would not produce return values
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
0e2c090e9205bc2f9fefe2bf150b7d38f47e04a3
xmake/rules/utils/inherit_links/inherit_links.lua
xmake/rules/utils/inherit_links/inherit_links.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
fix inherit links
fix inherit links
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
629ef25d711a5cb837d16826d2aef63035b0fdf8
boss.lua
boss.lua
local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local BOSSES = { -- The Obsidian Sanctum [28860] = "Sartharion", -- Eye of Eternity [28859] = "Malygos", -- Naxxramas [15956] = "Anub'Rekhan", [1...
local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local BOSSES = { -- The Obsidian Sanctum [28860] = "Sartharion", -- Eye of Eternity [28859] = "Malygos", -- Naxxramas [15956] = "Anub'Rekhan", [1...
Changes for DBM API changes.
Changes for DBM API changes. Fixes issue 513.
Lua
bsd-3-clause
protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,sheldon/epgp,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded
8ff88fcd852ccc6184abe94898b571605bfb888e
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...
mtdow fixes level 1
mtdow fixes level 1
Lua
apache-2.0
Sakura-Winkey/LuCI,wongsyrone/luci-1,Kyklas/luci-proto-hso,bright-things/ionic-luci,openwrt/luci,kuoruan/lede-luci,tobiaswaldvogel/luci,slayerrensky/luci,obsy/luci,nmav/luci,LazyZhu/openwrt-luci-trunk-mod,aircross/OpenWrt-Firefly-LuCI,sujeet14108/luci,mumuqz/luci,urueedi/luci,Noltari/luci,shangjiyu/luci-with-extra,kuor...
f0b090516f130b291407755d494b1f7b18f85c96
hammerspoon/init.lua
hammerspoon/init.lua
-- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") -- define sizes of the 'large' vs 'small' left/right sections small = 0.4 large = 0.6 -- left small hs.hotkey.bind({"alt", "ctrl"}, "U", function() local win = hs.window.focusedWindow() local ...
-- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") -- define sizes of the 'large' vs 'small' left/right sections small = 0.4 large = 0.6 -- left small hs.hotkey.bind({"alt", "ctrl"}, "U", function() local win = hs.window.focusedWindow() local ...
fix right-small
fix right-small
Lua
mit
paul-krohn/configs
45b2b40e52ac35aa382ef99b72817834554aeb0a
src/rava.lua
src/rava.lua
local bcsave = require("libs/bcsave").start local preHooks = {} local postHooks = {} local maincode local mainobj local objs = {} local rava = {} -- check if file exists local function fileExists(file) if file then local f = io.open(file,"r") if f ~= nil then io.close(f) return true else return false ...
local bcsave = require("libs/bcsave").start local preHooks = {} local postHooks = {} local maincode local mainobj local objs = {} local rava = {} -- check if file exists local function fileExists(file) if file then local f = io.open(file,"r") if f ~= nil then io.close(f) return true else return false ...
fixed bad references in compile
fixed bad references in compile
Lua
mit
frinknet/rava,frinknet/rava,frinknet/rava
1426fb02e296ea6996d3d23e45d12748b9ec2ee7
vsandroid_androidproj.lua
vsandroid_androidproj.lua
-- -- android/vsandroid_androidproj.lua -- vs-android integration for vstudio. -- Copyright (c) 2012-2015 Manu Evans and the Premake project -- local p = premake local android = p.modules.android local vsandroid = p.modules.vsandroid local vc2010 = p.vstudio.vc2010 local vstudio = p.vstudio local project = p.pr...
-- -- android/vsandroid_androidproj.lua -- vs-android integration for vstudio. -- Copyright (c) 2012-2015 Manu Evans and the Premake project -- local p = premake local android = p.modules.android local vsandroid = p.modules.vsandroid local vc2010 = p.vstudio.vc2010 local vstudio = p.vstudio local project = p.pr...
Fixed output directory for androidproj projects, requires absolute paths.
Fixed output directory for androidproj projects, requires absolute paths.
Lua
bsd-3-clause
LORgames/premake-core,LORgames/premake-core,dcourtois/premake-core,noresources/premake-core,sleepingwit/premake-core,sleepingwit/premake-core,mandersan/premake-core,tvandijck/premake-core,noresources/premake-core,sleepingwit/premake-core,premake/premake-core,mandersan/premake-core,mandersan/premake-core,tvandijck/prema...
5b323914db97fdce211f694d8f7222dafbe5ee3d
modules/announce.lua
modules/announce.lua
local mod = EPGP:NewModule("announce") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local SendChatMessage = _G.SendChatMessage if ChatThrottleLib then SendChatMessage = function(...) ChatThrottleLib:SendChatMessage("NORMAL", "EPGP", ...) ...
local mod = EPGP:NewModule("announce") local AC = LibStub("AceComm-3.0") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local SendChatMessage = _G.SendChatMessage if ChatThrottleLib then SendChatMessage = function(...) ChatThrottleLib:SendChatMessage...
fix a bug in how AceComm was used
fix a bug in how AceComm was used
Lua
bsd-3-clause
hayword/tfatf_epgp,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp,protomech/epgp-dkp-reloaded
1989905bb5b6595262c58ce762191f59e1b2da7c
modules/shipment.lua
modules/shipment.lua
local ev = require'ev' local simplehttp = require'simplehttp' local json = require'json' local math = require'math' local os = require'os' local apiurl = 'http://sporing.bring.no/sporing.json?q=%s&%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral...
local ev = require'ev' local simplehttp = require'simplehttp' local json = require'json' local math = require'math' local os = require'os' local apiurl = 'http://sporing.bring.no/sporing.json?q=%s&%s' local duration = 60 if(not ivar2.timers) then ivar2.timers = {} end -- Abuse the ivar2 global to store out ephemeral...
Fixes for shipment
Fixes for shipment Former-commit-id: 1bdb3e78ffe491f3116bec956914a19bf5370260 [formerly c9afe6a27c85e406e676a1ef73c2e07c262058a7] Former-commit-id: 2e9982567ed1ef5151a3d5917218b3332e89f42b
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
3cf828cfdb20f5972f3b84717489d6e0061c3792
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
fixed indentation
fixed indentation
Lua
apache-2.0
palmettos/test,palmettos/cnLuCI,palmettos/test,palmettos/cnLuCI,palmettos/test,palmettos/cnLuCI,palmettos/test,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/cnLuCI,palmettos/test,palmettos/test,palmettos/test,palmettos/test
904a96b86b985978acaaa3d5f37bedfec38c5d36
plugins/lua/init.lua
plugins/lua/init.lua
require "superstring" ENV = require "env" ::start:: -- -- Indicate that we are ready to receive a packet -- io.write( "\n\x1A" ); io.flush() -- -- Read until EOF -- local code = io.read "a" -- -- Only display errors if the code starts with ">" -- local silent_error = true if code:sub( 1, 1 ) == ">" then code = ...
require "superstring" ENV = require "env" ::start:: -- -- Indicate that we are ready to receive a packet -- io.write( "\n\x1A" ); io.flush() -- -- Read until EOF -- local code = io.read "a" -- -- Only display errors if the code starts with ">" -- local silent_error = true if code:sub( 1, 1 ) == ">" then code = ...
fix useless printing fix
fix useless printing fix
Lua
cc0-1.0
ModMountain/hash.js,mcd1992/hash.js,SwadicalRag/hash.js,meepdarknessmeep/hash.js
0bdc0e44c5f5f34d708ac71c320eaafbae57c890
lua/starfall/libs_sh/file.lua
lua/starfall/libs_sh/file.lua
------------------------------------------------------------------------------- -- File functions ------------------------------------------------------------------------------- --- File functions. Allows modification of files. -- @shared local file_library, _ = SF.Libraries.Register( "file" ) -- Register privileges ...
------------------------------------------------------------------------------- -- File functions ------------------------------------------------------------------------------- --- File functions. Allows modification of files. -- @shared local file_library, _ = SF.Libraries.Register( "file" ) -- Register privileges ...
fixed file functions not using SF.throw
fixed file functions not using SF.throw
Lua
bsd-3-clause
Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Xandaros/Starfall,INPStarfall/Starfall
7138b92295eeca5072ae2708632aa37a7a0ab1cc
sketches/dump_to_html.lua
sketches/dump_to_html.lua
function dump_to_html(src_file, grammar, dir) os.execute("mkdir -p " .. dir) local glas = OrderedSet:new() for name, rtn in each(grammar.rtns) do for state in each(rtn:states()) do if state.gla then glas:add(state.gla) end end end local index = io.open(dir .. "/index.html", "w"...
function dump_to_html(src_file, grammar, dir) os.execute("mkdir -p " .. dir) local glas = OrderedSet:new() for name, rtn in each(grammar.rtns) do for state in each(rtn:states()) do if state.gla then glas:add(state.gla) end end end local index = io.open(dir .. "/index.html", "w"...
Fix bug in dump_to_html detection of ImageMagick.
Fix bug in dump_to_html detection of ImageMagick.
Lua
bsd-3-clause
mbrubeck/gazelle,mbrubeck/gazelle,haberman/gazelle,haberman/gazelle
31e760fdec73454b790f2441b99704b254844af3
nvim/lua/ryankoval/neotree.lua
nvim/lua/ryankoval/neotree.lua
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) require('neo-tree').setup({ close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab popup_border_style = 'rounded', enable_git_status = true, enable_diagnostics = true, default_component_configs = { container = { ...
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) require('neo-tree').setup({ close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab popup_border_style = 'rounded', enable_git_status = true, enable_diagnostics = true, default_component_configs = { container = { ...
fixed command
fixed command
Lua
mit
rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles
41783d133ca12c592c3f5bec016ce7bf91593d5c
src_trunk/resources/admin-system/c_overlay.lua
src_trunk/resources/admin-system/c_overlay.lua
local sx, sy = guiGetScreenSize() local localPlayer = getLocalPlayer() local statusLabel = nil local openReports = 0 local handledReports = 0 local unansweredReports = {} local ownReports = {} -- Admin Titles function getAdminTitle(thePlayer) local adminLevel = tonumber(getElementData(thePlayer, "adminlev...
local sx, sy = guiGetScreenSize() local localPlayer = getLocalPlayer() local statusLabel = nil local openReports = 0 local handledReports = 0 local unansweredReports = {} local ownReports = {} -- Admin Titles function getAdminTitle(thePlayer) local adminLevel = tonumber(getElementData(thePlayer, "adminlev...
Fixed overlay
Fixed overlay git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1575 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
082d5f1bcd7eb50cd2b37495e5f126041b8ab0d0
aspects/nvim/files/.config/nvim/lua/wincent/lsp.lua
aspects/nvim/files/.config/nvim/lua/wincent/lsp.lua
local nnoremap = wincent.vim.nnoremap local lsp = {} local on_attach = function () nnoremap('<Leader>ld', "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", {buffer = true, silent = true}) nnoremap('<c-]>', '<cmd>lua vim.lsp.buf.definition()<CR>', {buffer = true, silent = true}) nnoremap('K', "<cmd>lua ...
local nnoremap = wincent.vim.nnoremap local lsp = {} local on_attach = function () nnoremap('<Leader>ld', "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", {buffer = true, silent = true}) nnoremap('<c-]>', '<cmd>lua vim.lsp.buf.definition()<CR>', {buffer = true, silent = true}) nnoremap('K', "<cmd>lua ...
chore(nvim): remove stale lua-language-server instructions
chore(nvim): remove stale lua-language-server instructions Seeing as lua-language-server regularly pegs the CPU for me, and it's been a while since I built it, going to see whether a new version fixes it. This change from November 2020: https://github.com/sumneko/lua-language-server/issues/247 looks promising, a...
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
995c9bc341e4acc83c035327585472d3c568ee07
overlay/ast/product/hi-linux/rules.lua
overlay/ast/product/hi-linux/rules.lua
-- HiSilicon Linux SDK package { 'ast-files' } package { 'hi-kernel' } package { 'hi-sdk', 'target', { 'patch', { 'hi-kernel', 'unpack' }, }, { 'prepare', requires = { 'toolchain' } }, { 'hiboot' }, { 'linux' }, { 'common' }, { 'msp' }, { 'component' }, ...
-- HiSilicon Linux SDK package { 'ast-files' } package { 'hi-kernel' } package { 'hi-sdk', 'target', { 'patch', { 'hi-kernel', 'unpack' }, }, { 'prepare', requires = { 'toolchain' } }, { 'hiboot' }, { 'linux' }, { 'common' }, { 'msp' }, { 'component' }, ...
Misc fixes for hi-linux rule dependencies
Misc fixes for hi-linux rule dependencies
Lua
mit
bazurbat/jagen
01e745f6f2698a1b087f9f93930d463db8e5094d
hikyuu_pywrap/xmake.lua
hikyuu_pywrap/xmake.lua
option("boost-python-suffix") set_default("3X") set_showmenu(true) set_category("hikyuu") set_description("Set suffix of libboost_python. ", "Boost.python 1.67 later use 3x like libboost_python35, ", "but older is libboost_python3", " - 3X a...
option("boost-python-suffix") set_default("3X") set_showmenu(true) set_category("hikyuu") set_description("Set suffix of libboost_python. ", "Boost.python 1.67 later use 3x like libboost_python35, ", "but older is libboost_python3", " - 3X a...
fixed 缺失拷贝sqlite3.dll
fixed 缺失拷贝sqlite3.dll
Lua
mit
fasiondog/hikyuu
69ed20adf7368c47cd657beb6666b0f86b471f51
kong/error_handlers.lua
kong/error_handlers.lua
local kong = kong local find = string.find local fmt = string.format local CONTENT_TYPE = "Content-Type" local ACCEPT = "Accept" local TYPE_JSON = "application/json" local TYPE_GRPC = "application/grpc" local TYPE_HTML = "text/html" local TYPE_XML = "application/xml" local HE...
local kong = kong local find = string.find local fmt = string.format local CONTENT_TYPE = "Content-Type" local ACCEPT = "Accept" local TYPE_JSON = "application/json" local TYPE_GRPC = "application/grpc" local TYPE_HTML = "text/html" local TYPE_XML = "application/xml" local JS...
fix(errors) use new header tables in error handler (#5673)
fix(errors) use new header tables in error handler (#5673) Create new header tables for each run of the error handler. Previously, HEADERS_JSON and similar were defined at the module level, and the error handler used the same table each time, passing it by reference to kong.response.exit(). The exit-transformer ...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
5acc3d7000117d98fb4302cfc621d97ce3fdd590
src/soul.lua
src/soul.lua
local soul = {} local conversation = require("conversation") local utils = require("utils") local lfs = require("lfs") commands = {} broadcasts = {} for file in lfs.dir("commands") do local command = file:match("^(.+).lua") if (command) then local path = "commands." .. command package.loaded[...
local soul = {} local conversation = require("conversation") local utils = require("utils") local lfs = require("lfs") commands = {} broadcasts = {} for file in lfs.dir("commands") do local command = file:match("^(.+).lua") if (command) then local path = "commands." .. command package.loaded[...
fix(soul): modified path due to permission issues.
fix(soul): modified path due to permission issues.
Lua
apache-2.0
SJoshua/Project-Small-R
c2f31ea4438145d66bb330cd587be7f8d92ebae6
MapTable.lua
MapTable.lua
local MapTable, parent = torch.class('nn.MapTable', 'nn.Container') function MapTable:__init(module, shared) parent.__init(self) self.shared = shared or true self.sharedparams = {'weight', 'bias', 'gradWeight', 'gradBias'} self.output = {} self.gradInput = {} self:add(module) end function MapTable:_...
local MapTable, parent = torch.class('nn.MapTable', 'nn.Container') function MapTable:__init(module, shared) parent.__init(self) if shared ~= nil then self.shared = shared else self.shared = true end self.sharedparams = {'weight', 'bias', 'gradWeight', 'gradBias'} self.output = {} self.gradInput = {} ...
LittleFix self.shared was always true
LittleFix self.shared was always true
Lua
bsd-3-clause
nicholas-leonard/nn
9ced2e7e5c0441aee082c3aac68dfc3f1485d02b
main.lua
main.lua
io.stdout:setvbuf("no") local reboot, events = false --Internal Callbacks-- function love.load(args) love.filesystem.load("BIOS/init.lua")() --Initialize the BIOS. events:trigger("love:load") end function love.run(arg) while true do events = require("Engine.events") events:register("love:reboot",functio...
io.stdout:setvbuf("no") local reboot, events = false --Internal Callbacks-- function love.load(args) love.filesystem.load("BIOS/init.lua")() --Initialize the BIOS. events:trigger("love:load") end function love.run(arg) while true do events = require("Engine.events") events:register("love:reboot",functio...
Glitch Fix
Glitch Fix
Lua
mit
RamiLego4Game/LIKO-12
9994f71e28b924edca27188e2da2ff4a2043992b
spinach/brokers/redis_scripts/register_periodic_tasks.lua
spinach/brokers/redis_scripts/register_periodic_tasks.lua
local broker_id = ARGV[1] local now = ARGV[2] local periodic_tasks_hash = ARGV[3] local periodic_tasks_queue = ARGV[4] -- tasks to register starting at ARGV[5] local function contains(t, e) return t[e] end local old_task_names = redis.call('hkeys', periodic_tasks_hash) local new_task_names = {} for i=5, #ARGV do...
local broker_id = ARGV[1] local now = ARGV[2] local periodic_tasks_hash = ARGV[3] local periodic_tasks_queue = ARGV[4] -- tasks to register starting at ARGV[5] local function contains(t, e) return t[e] end local old_task_names = redis.call('hkeys', periodic_tasks_hash) local new_task_names = {} for i=5, #ARGV do...
Reset periodic task score when periodicity is changed
Reset periodic task score when periodicity is changed When the periodicity of a periodic task was changed, it has to wait until the next planed execution before being changed. Thus switching from 1 week periodicity to 1 second meant waiting one full week before seeing the change reflected. This commit fixes this iss...
Lua
bsd-2-clause
NicolasLM/spinach
d3e02d05c62bcbbe5492c4d37a27aa585a19742e
frontend/ui/elements/screen_dpi_menu_table.lua
frontend/ui/elements/screen_dpi_menu_table.lua
local _ = require("gettext") local Device = require("device") local Screen = Device.screen local T = require("ffi/util").template local function isAutoDPI() return Device.screen_dpi_override == nil end local function dpi() return Screen:getDPI() end local function custom() return G_reader_settings:readSetting("custo...
local _ = require("gettext") local Device = require("device") local Screen = Device.screen local T = require("ffi/util").template local function isAutoDPI() return Device.screen_dpi_override == nil end local function dpi() return Screen:getDPI() end local function custom() return G_reader_settings:readSetting("custo...
Fix: set custom screen DPI (#5165)
Fix: set custom screen DPI (#5165) Settings -> Screen -> Screen DPI When custom DPI is not set we see ugly information with %1:
Lua
agpl-3.0
poire-z/koreader,NiLuJe/koreader,koreader/koreader,mwoz123/koreader,poire-z/koreader,pazos/koreader,koreader/koreader,Frenzie/koreader,Frenzie/koreader,Hzj-jie/koreader,mihailim/koreader,NiLuJe/koreader,Markismus/koreader
8e329b2c4e06f795f2a9cd81f77e9dc2d3339460
docker/notelauncher.lua
docker/notelauncher.lua
-- -- Module for managing notebook container instances running with the docker module -- -- author: Steve Chan sychan@lbl.gov -- -- Copyright 2013 The Regents of the University of California, -- Lawrence Berkeley National Laboratory -- United States Department of Energy -- The D...
-- -- Module for managing notebook container instances running with the docker module -- -- author: Steve Chan sychan@lbl.gov -- -- Copyright 2013 The Regents of the University of California, -- Lawrence Berkeley National Laboratory -- United States Department of Energy -- Th...
More bugfixes in Lua.
More bugfixes in Lua.
Lua
mit
briehl/narrative,scanon/narrative,aekazakov/narrative,rsutormin/narrative,mlhenderson/narrative,psnovichkov/narrative,briehl/narrative,mlhenderson/narrative,kbase/narrative,kbase/narrative,msneddon/narrative,psnovichkov/narrative,kbase/narrative,scanon/narrative,mlhenderson/narrative,aekazakov/narrative,nlharris/narrat...
43330972e959de2b23c3f405381f6d2e49107022
wget.lua
wget.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, ...
Fixed useragent
Fixed useragent
Lua
mit
Zefiros-Software/ZPM
e802e17b9954788a5ab0f345cda054e625547733
modules/awesomejapan.lua
modules/awesomejapan.lua
local ev = require'ev' local _FLIGHT = ivar2.config.awesomejapan.flight local getDiff = function() local _END = os.date('*t', _FLIGHT) local _NOW = os.date('*t', os.time()) local flipped if(os.time(_END) < os.time(_NOW)) then flipped = true _END, _NOW = _NOW, _END end local _MAX = {60,60,24,os.date('*t',o...
local ev = require'ev' local _FLIGHT = ivar2.config.awesomejapan.flight local getDiff = function() local _END = os.date('*t', _FLIGHT) local _NOW = os.date('*t', os.time()) local flipped if(os.time(_END) < os.time(_NOW)) then flipped = true _END, _NOW = _NOW, _END end local _MAX = {60,60,24,os.date('*t',o...
awesomejapan: Fix pattern.
awesomejapan: Fix pattern. Former-commit-id: 4c298af943f80c8c0629597f635a28ab2d12a6d8 [formerly 0c0e49788fb28d317c534e5b10145529c80ef2e4] Former-commit-id: 91137c2aac8527a3017565ca0c50d11ad618c07f
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
6db6aca3b18c41fe71a2d5baf4fd17d32369f7ff
games/starDash/unit.lua
games/starDash/unit.lua
-- Unit: A unit in the game. May be a corvette, missleboat, martyr, transport, miner. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.util...
-- Unit: A unit in the game. May be a corvette, missleboat, martyr, transport, miner. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.util...
Added additional functions that tell the user if it is possible to move or dash to coordinates. Fixed typo.
Added additional functions that tell the user if it is possible to move or dash to coordinates. Fixed typo.
Lua
mit
siggame/Joueur.lua,siggame/Joueur.lua
1d68bdb910132b16593300cbe96529df89f5d4d4
premake5.lua
premake5.lua
local force_cpp = { } function cppforce(inFiles) for _, val in ipairs(inFiles) do for _, fname in ipairs(os.matchfiles(val)) do table.insert(force_cpp, path.getabsolute(fname)) end end end -- gmake premake.override(path, "iscfile", function(base, fname) if table.cont...
local force_cpp = { } function cppforce(inFiles) for _, val in ipairs(inFiles) do for _, fname in ipairs(os.matchfiles(val)) do table.insert(force_cpp, path.getabsolute(fname)) end end end -- gmake premake.override(path, "iscfile", function(base, fname) if table.cont...
fix reading version number in premake5 file for windows builds
fix reading version number in premake5 file for windows builds
Lua
bsd-2-clause
ponylang/ponyc,lukecheeseman/ponyta,doublec/ponyc,kulibali/ponyc,kulibali/ponyc,Theodus/ponyc,malthe/ponyc,doublec/ponyc,ryanai3/ponyc,kulibali/ponyc,dckc/ponyc,cquinn/ponyc,Perelandric/ponyc,pap/ponyc,lukecheeseman/ponyta,jupvfranco/ponyc,jonas-l/ponyc,lukecheeseman/ponyta,malthe/ponyc,boemmels/ponyc,ponylang/ponyc,Pe...
a697e6f2d9049cd89385f67eb22f46d380e9b7ab
InstanceNormalization.lua
InstanceNormalization.lua
require 'nn' _ = [[ An implementation for https://arxiv.org/abs/1607.08022 ]] local InstanceNormalization, parent = torch.class('nn.InstanceNormalization', 'nn.Module') function InstanceNormalization:__init(nOutput, eps, momentum, affine) self.running_mean = torch.zeros(nOutput) self.running_var = torch.one...
require 'nn' _ = [[ An implementation for https://arxiv.org/abs/1607.08022 ]] local InstanceNormalization, parent = torch.class('nn.InstanceNormalization', 'nn.Module') function InstanceNormalization:__init(nOutput, eps, momentum, affine) parent.__init(self) self.running_mean = torch.zeros(nOutput) self....
fix bugs
fix bugs
Lua
apache-2.0
DmitryUlyanov/texture_nets
9d6096a5f4810430b976dc9cc7d24581e2085d25
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri)
Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri)
Lua
apache-2.0
daofeng2015/luci,dwmw2/luci,aircross/OpenWrt-Firefly-LuCI,LuttyYang/luci,thess/OpenWrt-luci,joaofvieira/luci,obsy/luci,harveyhu2012/luci,Hostle/luci,LuttyYang/luci,rogerpueyo/luci,zhaoxx063/luci,fkooman/luci,florian-shellfire/luci,cshore/luci,jchuang1977/luci-1,shangjiyu/luci-with-extra,lcf258/openwrtcn,Noltari/luci,jc...
bdfc0a9c86b15e8b75239b43df541a91a1798e0d
mod_register_redirect/mod_register_redirect.lua
mod_register_redirect/mod_register_redirect.lua
-- (C) 2010-2011 Marco Cirillo (LW.Org) -- (C) 2011 Kim Alvefur -- -- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration. local st = require "util.stanza" local cman = configmanager function reg_redirect(event) loca...
-- (C) 2010-2011 Marco Cirillo (LW.Org) -- (C) 2011 Kim Alvefur -- -- Registration Redirect module for Prosody -- -- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration. local st = require "util.stanza" local cman = configmanager function reg_redirect(event) loca...
mod_register_redirect: rebacked in changeset c6f1427da79d (behaviour fixed).
mod_register_redirect: rebacked in changeset c6f1427da79d (behaviour fixed).
Lua
mit
prosody-modules/import,heysion/prosody-modules,stephen322/prosody-modules,heysion/prosody-modules,mmusial/prosody-modules,softer/prosody-modules,Craige/prosody-modules,olax/prosody-modules,mardraze/prosody-modules,dhotson/prosody-modules,drdownload/prosody-modules,syntafin/prosody-modules,brahmi2/prosody-modules,LanceJ...
d11100412bd2a2f240e41d44aa26d822dae6212f
premake5.lua
premake5.lua
local build_dir = "build/" .. _ACTION -------------------------------------------------------------------------------- solution "Libs" configurations { "Release", "Debug" } architecture "x64" location (build_dir) objdir (build_dir .. "/obj") warnings "Extra" configuration { "Debug" ...
local build_dir = "build/" .. _ACTION -------------------------------------------------------------------------------- solution "Libs" configurations { "Release", "Debug" } architecture "x64" location (build_dir) objdir (build_dir .. "/obj") warnings "Extra" configuration { "Debug" ...
Fix build script
Fix build script
Lua
mit
abolz/Format
7c09d4c3a9d6bbf9fbfad5a0a8d23c9252af08e8
src/Ship.lua
src/Ship.lua
require ("lib.lclass") class "Ship" function Ship:Ship () self.gfx = { ship = love.graphics.newImage ("gfx/schiff.png"), jetflame = love.graphics.newImage ("gfx/flamme.png") } self.r = 255 self.g = 255 self.b = 255 self.x = 200 self.y = 200 self.rot = { w = self.gfx.ship:getWidth () / 2, h = self.gfx....
require ("lib.lclass") class "Ship" function Ship:Ship () self.gfx = { ship = love.graphics.newImage ("gfx/schiff.png"), jetflame = love.graphics.newImage ("gfx/flamme.png") } self.r = 255 self.g = 255 self.b = 255 self.x = 200 self.y = 200 self.rot = { w = self.gfx.ship:getWidth () / 2, h = self.gfx....
removed backwards acceleration, fixes #5
removed backwards acceleration, fixes #5
Lua
mit
BlurryRoots/weltraumsteinekaputtmachen
a0dd19311a129fc265fe28375462ec915a4214ad
OS/CartOS/Programs/cd.lua
OS/CartOS/Programs/cd.lua
--Enter a specifiec directory/path/drive local args = {...} --Get the arguments passed to this program if #args < 1 then color(9) print("\nMust provide the path") return end local tar = table.concat(args," ") --The path may include whitespaces local term = require("C://terminal") print("") --A new line local d, p = tar...
--Enter a specifiec directory/path/drive local args = {...} --Get the arguments passed to this program if #args < 1 then color(9) print("\nMust provide the path") return end local tar = table.concat(args," ") --The path may include whitespaces local term = require("C://terminal") print("") --A new line local function ...
Bugfixes
Bugfixes
Lua
mit
RamiLego4Game/LIKO-12
4fce8fd70188bc3a221e182d11794743a75a60a9
Modules/Gui/RoundedBacking/RoundedBackingBuilder.lua
Modules/Gui/RoundedBacking/RoundedBackingBuilder.lua
--- Construct a rounded backing with a shadow -- @classmod RoundedBackingBuilder local RoundedBackingBuilder = {} RoundedBackingBuilder.__index = RoundedBackingBuilder RoundedBackingBuilder.ClassName = "RoundedBackingBuilder" function RoundedBackingBuilder.new() local self = setmetatable({}, RoundedBackingBuilder) ...
--- Construct a rounded backing with a shadow -- @classmod RoundedBackingBuilder local RoundedBackingBuilder = {} RoundedBackingBuilder.__index = RoundedBackingBuilder RoundedBackingBuilder.ClassName = "RoundedBackingBuilder" function RoundedBackingBuilder.new() local self = setmetatable({}, RoundedBackingBuilder) ...
Fix CreateBottomBacking and move :Create() API to the top
Fix CreateBottomBacking and move :Create() API to the top
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
5c79dcfb71cfbab79ed4f51b3e7a8dc3ea5eef30
config/nvim/lua/finder.lua
config/nvim/lua/finder.lua
local utils = require "nutils" keymap = utils.map local actions = require("telescope.actions") require("telescope").load_extension("fzy_native") require("telescope").load_extension("fzf_writer") require("telescope").setup { defaults = { vimgrep_arguments = {"rg", "--no-heading", "--with-filename", "--line-numb...
local utils = require "nutils" keymap = utils.map local actions = require("telescope.actions") require("telescope").load_extension("fzy_native") require("telescope").setup { defaults = { vimgrep_arguments = {"rg", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case"}, prompt_prefi...
Fix telescope
Fix telescope
Lua
mit
gblock0/dotfiles
1ff2486d05013f65bd98e1f85bb6f64c0bf951d2
util/async.lua
util/async.lua
local log = require "util.logger".init("util.async"); local function runner_continue(thread) -- ASSUMPTION: runner is in 'waiting' state (but we don't have the runner to know for sure) if coroutine.status(thread) ~= "suspended" then -- This should suffice return false; end local ok, state, runner = coroutine.res...
local log = require "util.logger".init("util.async"); local function runner_continue(thread) -- ASSUMPTION: runner is in 'waiting' state (but we don't have the runner to know for sure) if coroutine.status(thread) ~= "suspended" then -- This should suffice return false; end local ok, state, runner = coroutine.res...
util.async: Fix logic bug that prevented error watcher being called for runners
util.async: Fix logic bug that prevented error watcher being called for runners
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
26546845f4c755d934c19c2c256b5efb90917700
agents/monitoring/tests/fixtures/protocol/server.lua
agents/monitoring/tests/fixtures/protocol/server.lua
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local table = require('table') local tls = require('tls') local timer = require('timer') local string = require('string') local math = require('math') local table = require('tab...
monitoring: tests: fixtures: server re-add print
monitoring: tests: fixtures: server re-add print re-add the print that Ryan removed accidently with a comment.
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
b0711b318af2fd5e819889424140d0f32788e08d
nyagos.d/suffix.lua
nyagos.d/suffix.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) local suffix=string.lower(suffix) if string.sub(suffix,1,1)=='.' then suffix = string.sub(suffix,2) end if not share._suffixes[su...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share._suffixes={} share._setsuffix = function(suffix,cmdline) suffix=string.gsub(string.lower(suffix),"^%.","") if not share._suffixes[suffix] then local newext="."..suffix local orgpathext = ...
nyagos.d/suffix.lua: optimize
nyagos.d/suffix.lua: optimize
Lua
bsd-3-clause
zetamatta/nyagos,tsuyoshicho/nyagos
612971e628f6aad5b71662a820cfb065944273c1
site/email.lua
site/email.lua
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
got ourselves a lua bug!
got ourselves a lua bug!
Lua
apache-2.0
quenda/ponymail,jimjag/ponymail,Humbedooh/ponymail,quenda/ponymail,Humbedooh/ponymail,rbowen/ponymail,jimjag/ponymail,Humbedooh/ponymail,rbowen/ponymail,jimjag/ponymail,jimjag/ponymail,rbowen/ponymail,quenda/ponymail
ba1435b60c0746cf9393946f467b756374c2cdde
plugins/ninegag.lua
plugins/ninegag.lua
--[[ Copyright 2017 Matthew Hesketh <wrxck0@gmail.com> This code is licensed under the MIT. See LICENSE for details. ]] local ninegag = {} local mattata = require('mattata') local http = require('socket.http') local json = require('dkjson') function ninegag:init() ninegag.commands = mattata.commands(self....
--[[ Copyright 2017 Matthew Hesketh <wrxck0@gmail.com> This code is licensed under the MIT. See LICENSE for details. ]] local ninegag = {} local mattata = require('mattata') local http = require('socket.http') local json = require('dkjson') function ninegag:init() ninegag.commands = mattata.commands(self....
[v21] Minor bug fix
[v21] Minor bug fix
Lua
mit
barreeeiroo/BarrePolice
5dd1c6cf7a4c4aad5b316c377c367270f8d1bb7b
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 format test
fix format test
Lua
bsd-3-clause
Psyop/Cryptomatte
863f5a69f4a927bd621a9925a14f39ee2dc38e2b
src/patch/ui/hooks/common/protocol_kickunpatched.lua
src/patch/ui/hooks/common/protocol_kickunpatched.lua
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
Fix chat queue.
Fix chat queue.
Lua
mit
Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/CivV_Mod2DLC,Lymia/MPPatch
76887679781d2ae3ea432d860e507116986c4f48
installer.lua
installer.lua
function file2table(file,atable) local fp = io.open(file, "r") for line in fp:lines() do table.insert (atable, line) end fp:close() end local commands = {} file2table("./resources/commands.txt", commands) local whoami = assert(io.popen("whoami", "r")) local homedir = whoami:read('*all') whoami:close() local ui...
function file2table(file,atable) local fp = io.open(file, "r") for line in fp:lines() do table.insert (atable, line) end fp:close() end local commands = {} file2table("./resources/commands.txt", commands) local whoami = assert(io.popen("whoami", "r")) local homedir = whoami:read('*all') whoami:close() local ui...
Fixed mkdir
Fixed mkdir
Lua
mit
LarsHLunde/RuTorrent-Installer
95b40caa3d89c38c057a02a9303f54d363cfe7e4
spec/02-integration/02-cmd/10-migrations_spec.lua
spec/02-integration/02-cmd/10-migrations_spec.lua
local helpers = require "spec.helpers" local pl_utils = require "pl.utils" local dao = helpers.dao -- postgreSQL DAO (faster to test this command) describe("kong migrations", function() describe("reset", function() before_each(function() assert(dao:run_migrations()) end) teardown(function() ...
local helpers = require "spec.helpers" local pl_utils = require "pl.utils" local dao = helpers.dao -- postgreSQL DAO (faster to test this command) describe("kong migrations", function() describe("reset", function() before_each(function() assert(dao:run_migrations()) end) teardown(function() ...
tests(*) fix some failing test cases due to lua-cassandra bump
tests(*) fix some failing test cases due to lua-cassandra bump Starting with lua-cassandra 1.3.3, we log a warning message when the `rpc_address` of nodes is "bind all" (as with other Datastax drivers). Updating the Travis-CI ccm scripts so that it binds on the local interface has been considered, but since nothing g...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong,Mashape/kong
6b35ac37b35eb5b950272455cfef8ff33664cdab
src/lib/configure/lang/cxx/libraries/boost.lua
src/lib/configure/lang/cxx/libraries/boost.lua
--- C++ Boost libraries -- @module configure.lang.cxx.libraries local M = {} local function default_component_defines(component, kind, threading) if component == 'unit_test_framework' and kind == 'shared' then return {'BOOST_TEST_DYN_LINK'} end return {} end --- Find Boost libraries -- -- @param args -- @param ...
--- C++ Boost libraries -- @module configure.lang.cxx.libraries local M = {} local function default_component_defines(component, kind, threading) if component == 'unit_test_framework' and kind == 'shared' then return {'BOOST_TEST_DYN_LINK'} end return {} end --- Find Boost libraries -- -- @param args -- @param ...
lang.cxx.libraries.boost: Fix ABI flag checking.
lang.cxx.libraries.boost: Fix ABI flag checking.
Lua
bsd-3-clause
hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure
5d7a6efa13021da59a370bb011f4caf494b35da3
xmake/actions/create/main.lua
xmake/actions/create/main.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 check
fix check
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
d1f5784580a2045eef143c94e6f8d14087652e2f
trovebox.lua
trovebox.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local item_type = os.getenv('item_type') local item_value = os.getenv('item_value') local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*a...
trovebox.lua: fixes
trovebox.lua: fixes
Lua
unlicense
ArchiveTeam/trovebox-grab,ArchiveTeam/trovebox-grab
e03294e46384a22e5f3e0ba5e815e2c45cdf2a6f
src/application.lua
src/application.lua
local sensors = require("sensors") local dht_sensors = require("dht_sensors") local ds18b20_sensors = require("ds18b20_sensors") local actuators = require("actuators") local settings = require("settings") local sensorPut = {} local actuatorGet = {} local dni = wifi.sta.getmac():gsub("%:", "") local timeout = tmr.create...
local sensors = require("sensors") local dht_sensors = require("dht_sensors") local ds18b20_sensors = require("ds18b20_sensors") local actuators = require("actuators") local settings = require("settings") local sensorPut = {} local actuatorGet = {} local dni = wifi.sta.getmac():gsub("%:", "") local timeout = tmr.create...
fix nil crash when remote server times out
fix nil crash when remote server times out
Lua
apache-2.0
konnected-io/konnected-security,konnected-io/konnected-security
6d941a6de170508f9e45189e2763936338c2b99b
lualib/skynet/db/redis.lua
lualib/skynet/db/redis.lua
local skynet = require "skynet" local socket = require "skynet.socket" local socketchannel = require "skynet.socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis respon...
local skynet = require "skynet" local socket = require "skynet.socket" local socketchannel = require "skynet.socketchannel" local table = table local string = string local assert = assert local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis respon...
support nil in array, fix #1340
support nil in array, fix #1340
Lua
mit
pigparadise/skynet,icetoggle/skynet,hongling0/skynet,sanikoyes/skynet,xjdrew/skynet,sanikoyes/skynet,wangyi0226/skynet,wangyi0226/skynet,sanikoyes/skynet,pigparadise/skynet,korialuo/skynet,hongling0/skynet,cloudwu/skynet,xjdrew/skynet,korialuo/skynet,wangyi0226/skynet,cloudwu/skynet,cloudwu/skynet,pigparadise/skynet,ic...
28cc864c0ceadc303339ec323b5c61a6efc71c91
lib/iproc.lua
lib/iproc.lua
local gm = require 'graphicsmagick' local image = require 'image' local iproc = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) function iproc.crop_mod4(src) local w = src:size(3) % 4 local h = src:size(2) % 4 return iproc.crop(src, 0, 0, src:size(3) - w, src:size(2) - h) end functi...
local gm = require 'graphicsmagick' local image = require 'image' local iproc = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) function iproc.crop_mod4(src) local w = src:size(3) % 4 local h = src:size(2) % 4 return iproc.crop(src, 0, 0, src:size(3) - w, src:size(2) - h) end functi...
Fix NaN bug in iproc.white_noise
Fix NaN bug in iproc.white_noise
Lua
mit
higankanshi/waifu2x,Spitfire1900/upscaler,higankanshi/waifu2x,zyhkz/waifu2x,zyhkz/waifu2x,vitaliylag/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,vitaliylag/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x
8234319570a091f2089a2278df320f6a39840c37
lua/rima/operators/sum.lua
lua/rima/operators/sum.lua
-- Copyright (c) 2009 Incremental IP Limited -- see license.txt for license information local ipairs, pairs = ipairs, pairs local object = require("rima.object") local expression = require("rima.expression") local add = require("rima.operators.add") local rima = rima module(...) -- Subscripts ----------------------...
-- Copyright (c) 2009 Incremental IP Limited -- see license.txt for license information local ipairs, pairs = ipairs, pairs local object = require("rima.object") local expression = require("rima.expression") local add = require("rima.operators.add") local rima = rima module(...) -- Subscripts ----------------------...
rima: sum has a new format: sum{X}(X + 2). Hamish likes it better. Some tests fail, but they'll get fixed when all the notation changes are done.
rima: sum has a new format: sum{X}(X + 2). Hamish likes it better. Some tests fail, but they'll get fixed when all the notation changes are done.
Lua
mit
geoffleyland/rima,geoffleyland/rima,geoffleyland/rima
49ef1b249781d84a70f87b09b65f39914feb2c04
src_trunk/resources/realism-system/s_enginebreak.lua
src_trunk/resources/realism-system/s_enginebreak.lua
function engineBreak() local health = getElementHealth(source) local driver = getVehicleController(source) if (driver) and (health<=400) then local rand = math.random(1, 10) if (rand==1) then -- 10% chance setVehicleEngineState(source, false) setElementData(source, "engine", 0) exports.glob...
function engineBreak() local health = getElementHealth(source) local driver = getVehicleController(source) if (driver) then if (health<=400) local rand = math.random(1, 5) if (rand==1) then -- 20% chance setVehicleEngineState(source, false) setElementData(source, "engine", 0) export...
Fix for 327
Fix for 327 git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@119 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
026441ccc107d8754abb3971fc89e1784ccb1b11
src/program/top/top.lua
src/program/top/top.lua
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local shm = require("core.shm") local counter = require("core.counter") local S = require("syscall") local usage = require("program.top.README_inc") local long_opts = { help = "h" } function clearterm () io.writ...
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local shm = require("core.shm") local counter = require("core.counter") local S = require("syscall") local usage = require("program.top.README_inc") local long_opts = { help = "h" } function clearterm () io.writ...
[top] Fix bug in link counter deallocation.
[top] Fix bug in link counter deallocation.
Lua
apache-2.0
plajjan/snabbswitch,SnabbCo/snabbswitch,Igalia/snabbswitch,alexandergall/snabbswitch,dpino/snabb,Igalia/snabb,hb9cwp/snabbswitch,eugeneia/snabbswitch,mixflowtech/logsensor,SnabbCo/snabbswitch,mixflowtech/logsensor,Igalia/snabbswitch,SnabbCo/snabbswitch,dwdm/snabbswitch,snabbnfv-goodies/snabbswitch,snabbnfv-goodies/snab...
f008ec70f982113b71ee00fbda2ee24868e1c360
applications/luci-samba/luasrc/model/cbi/samba.lua
applications/luci-samba/luasrc/model/cbi/samba.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...
Fix samba "read only" and "guest ok" settings not applied correctly.
Fix samba "read only" and "guest ok" settings not applied correctly.
Lua
apache-2.0
lbthomsen/openwrt-luci,florian-shellfire/luci,forward619/luci,Wedmer/luci,bittorf/luci,Hostle/openwrt-luci-multi-user,openwrt-es/openwrt-luci,RuiChen1113/luci,palmettos/cnLuCI,ff94315/luci-1,Noltari/luci,lcf258/openwrtcn,Kyklas/luci-proto-hso,MinFu/luci,palmettos/cnLuCI,thess/OpenWrt-luci,joaofvieira/luci,cshore-firmwa...
ec13f98b196c4c91c82197677b303a278ef2bad4
src/clienttranslator/src/Client/JSONTranslator.lua
src/clienttranslator/src/Client/JSONTranslator.lua
--- -- @classmod JSONTranslator -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local LocalizationService = game:GetService("LocalizationService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local JsonToLocaliza...
--- -- @classmod JSONTranslator -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local LocalizationService = game:GetService("LocalizationService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local JsonToLocaliza...
fix: JSONTranslator fails to resolve to anything but english in run mode
fix: JSONTranslator fails to resolve to anything but english in run mode
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
968e96378d32d5be53ce169a3b1bf386fee538fd
src/luarocks/fs.lua
src/luarocks/fs.lua
--- Proxy module for filesystem and platform abstractions. -- All code using "fs" code should require "luarocks.fs", -- and not the various platform-specific implementations. -- However, see the documentation of the implementation -- for the API reference. local pairs = pairs --module("luarocks.fs", package.seeall) ...
--- Proxy module for filesystem and platform abstractions. -- All code using "fs" code should require "luarocks.fs", -- and not the various platform-specific implementations. -- However, see the documentation of the implementation -- for the API reference. local pairs = pairs --module("luarocks.fs", package.seeall) ...
Redact api tokens when using --verbose flag
Redact api tokens when using --verbose flag fixes #358
Lua
mit
coderstudy/luarocks,luarocks/luarocks,usstwxy/luarocks,tarantool/luarocks,xpol/luarocks,xiaq/luarocks,tst2005/luarocks,tarantool/luarocks,xiaq/luarocks,keplerproject/luarocks,luarocks/luarocks,coderstudy/luarocks,xiaq/luarocks,ignacio/luarocks,tarantool/luarocks,xpol/luarocks,xpol/luavm,lxbgit/luarocks,xpol/luainstalle...
4125b0a37943c16732afef13b44cc8207c2be565
src/viewport/src/Client/Viewport.lua
src/viewport/src/Client/Viewport.lua
--[=[ @class Viewport ]=] local require = require(script.Parent.loader).load(script) local AdorneeUtils = require("AdorneeUtils") local BasicPane = require("BasicPane") local Blend = require("Blend") local CameraUtils = require("CameraUtils") local CircleUtils = require("CircleUtils") local Maid = require("Maid") lo...
--[=[ @class Viewport ]=] local require = require(script.Parent.loader).load(script) local AdorneeUtils = require("AdorneeUtils") local BasicPane = require("BasicPane") local Blend = require("Blend") local CameraUtils = require("CameraUtils") local CircleUtils = require("CircleUtils") local Maid = require("Maid") lo...
fix: Viewport would not render on first pass
fix: Viewport would not render on first pass
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
e78001ce96cf4d709c1141029c58a1a518d6c516
constants.lua
constants.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 plugin path
fix plugin path
Lua
apache-2.0
kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-m...
c8f6accc86ee82951160bf0f712e7cc1588ea1aa
game/scripts/vscripts/heroes/hero_saitama/jogging.lua
game/scripts/vscripts/heroes/hero_saitama/jogging.lua
LinkLuaModifier("modifier_saitama_jogging", "heroes/hero_saitama/jogging.lua", LUA_MODIFIER_MOTION_NONE) saitama_jogging = class({ GetIntrinsicModifierName = function() return "modifier_saitama_jogging" end, }) modifier_saitama_jogging = class({}) function modifier_saitama_jogging:DeclareFunctions() return {MODIFI...
LinkLuaModifier("modifier_saitama_jogging", "heroes/hero_saitama/jogging.lua", LUA_MODIFIER_MOTION_NONE) saitama_jogging = class({ GetIntrinsicModifierName = function() return "modifier_saitama_jogging" end, }) if IsServer() then function saitama_jogging:OnUpgrade() local modifier = self:GetCaster():FindModifierB...
Fixed Jogging OnUpgrade event
Fixed Jogging OnUpgrade event
Lua
mit
ark120202/aabs
fec0017e733d54038e5188c5527d4dec98f4b6b1
spec/patient_example_spec.lua
spec/patient_example_spec.lua
--[[ FHIR Formats Copyright (C) 2016 Vadim Peretokin 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 la...
--[[ FHIR Formats Copyright (C) 2016 Vadim Peretokin 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 la...
Added a JSON -> XML test
Added a JSON -> XML test Also fixed testcases by updating the newlines
Lua
apache-2.0
vadi2/fhir-formats
d43c055c6056dd086f46324f73b7c0493d7ed698
UCDphone/apps/im/im_s.lua
UCDphone/apps/im/im_s.lua
IM = {} IM.friends = {} db = exports.UCDsql:getConnection() addEvent("UCDphone.requestFriendList", true) addEventHandler("UCDphone.requestFriendList", root, function () IM.sendFriends(client) end ) addEventHandler("onPlayerLogin", root, function () IM.sendFriends(source) end ) function IM.loadFriends(qh) lo...
IM = {} IM.friends = {} db = exports.UCDsql:getConnection() addEvent("UCDphone.requestFriendList", true) addEventHandler("UCDphone.requestFriendList", root, function () IM.sendFriends(client) end ) addEventHandler("onPlayerLogin", root, function () IM.sendFriends(source) end ) function IM.loadFriends(qh) lo...
UCDphone
UCDphone - Fixed some errors that would occur in the IM friend system.
Lua
mit
nokizorque/ucd,nokizorque/ucd
6febf4cae263bb99af19a22ae643265e2b441105
UCDchecking/checking.lua
UCDchecking/checking.lua
local actions = { ["RobHouse"] = { {"a", "RobHouse", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["EnterHouse"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["Jetpack"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJai...
local actions = { ["RobHouse"] = { {"a", "RobHouse", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["EnterHouse"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["Jetpack"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJai...
UCDchecking
UCDchecking - Fixed bug relating to looping. - Added Builder action.
Lua
mit
nokizorque/ucd,nokizorque/ucd
e4de0e74e8885454d0bca43bd5f8d4150425ecf9
UCDplaytime/server.lua
UCDplaytime/server.lua
-- Global variables local playerTickCount = {} -- Events function onLogin(_, theCurrentAccount) if (not isGuestAccount(theCurrentAccount)) then source:setData("playtime", exports.UCDaccounts:GAD(source, "playtime"), true) playerTickCount[source] = getTickCount() end end addEventHandler("onPlayerLogin", root, onL...
-- Global variables local playerTickCount = {} -- Events function onLogin(_, theCurrentAccount) if (not isGuestAccount(theCurrentAccount)) then source:setData("playtime", exports.UCDaccounts:GAD(source, "playtime"), true) playerTickCount[source] = getTickCount() end end addEventHandler("onPlayerLogin", root, onL...
UCDplaytime
UCDplaytime - Fixed for-all-player(s) loops breaking when a player isn't logged in.
Lua
mit
nokizorque/ucd,nokizorque/ucd
f52cb5b5b5340330d96287e5923462b7fd5139c2
agents/monitoring/lua/lib/client/connection_stream.lua
agents/monitoring/lua/lib/client/connection_stream.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix getLatency
fix getLatency
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-mo...
e9760b1688a237329ab0b992c7d8b506facf44a6
src/migrations/agreement-tx-counter/migrate.lua
src/migrations/agreement-tx-counter/migrate.lua
local AGREEMENT_DATA = KEYS[1] local PER_AGREEMENT_TX_IDX = KEYS[2] local AGREEMENT_TRANSACTIONS_INDEX = KEYS[3] local AGREEMENT_TRANSACTIONS_DATA = KEYS[4] local AGR_TX_FIELD = ARGV[1] local ARG_AGR_ID_FIELD = ARGV[2] -- step 1. get all transaction ids local txIds = redis.call("SMEMBERS", AGREEMENT_TRANSACTIONS_INDE...
local AGREEMENT_DATA = KEYS[2] local PER_AGREEMENT_TX_IDX = KEYS[3] local AGREEMENT_TRANSACTIONS_INDEX = KEYS[4] local AGREEMENT_TRANSACTIONS_DATA = KEYS[5] local AGR_TX_FIELD = ARGV[1] local ARG_AGR_ID_FIELD = ARGV[2] -- step 1. get all transaction ids local txIds = redis.call("SMEMBERS", AGREEMENT_TRANSACTIONS_INDE...
fix: migration key & goto statement
fix: migration key & goto statement
Lua
mit
makeomatic/ms-payments
75e0b413f65ab6941fad4b5a1326d6b22da0df56
src/cosy/configuration.lua
src/cosy/configuration.lua
local Loader = require "cosy.loader" local I18n = require "cosy.i18n" local Logger = require "cosy.logger" local Scheduler = require "cosy.scheduler" local Layer = require "layeredata" local i18n = I18n.load "cosy.configuration" local layers = { default = Layer.new { name = ...
local Loader = require "cosy.loader" local I18n = require "cosy.i18n" local Logger = require "cosy.logger" local Scheduler = require "cosy.scheduler" local Layer = require "layeredata" local i18n = I18n.load "cosy.configuration" local layers = { default = Layer.new { name = ...
Fix nginx forwards.
Fix nginx forwards.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
8cad664aade89612f67dd99987fa036606c453e7
src/luarocks/tools/tar.lua
src/luarocks/tools/tar.lua
--- A pure-Lua implementation of untar (unpacking .tar archives) --module("luarocks.tools.tar", package.seeall) local tar = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local util = require("luarocks.util") local blocksize = 512 local function get_typeflag(flag) if flag == "0" or flag...
--- A pure-Lua implementation of untar (unpacking .tar archives) --module("luarocks.tools.tar", package.seeall) local tar = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local util = require("luarocks.util") local blocksize = 512 local function get_typeflag(flag) if flag == "0" or flag...
Fix merge conflict.
Fix merge conflict.
Lua
mit
luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks,tarantool/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks,tarantool/luarocks,keplerproject/luarocks,luarocks/luarocks
29b924284be0847fb3ad24aa50c92af2bfdcbdad
core/componentmanager.lua
core/componentmanager.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local prosody = prosody; local log = require "util.logger".init("componentmanager"); local configmanager ...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local prosody = prosody; local log = require "util.logger".init("componentmanager"); local configmanager ...
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
20eab8df3ea23ea79bfcd8e3d250f7d5b2985d95
spec/unit/statics_spec.lua
spec/unit/statics_spec.lua
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
fixing test
fixing test
Lua
apache-2.0
isdom/kong,Kong/kong,kyroskoh/kong,li-wl/kong,xvaara/kong,smanolache/kong,salazar/kong,ejoncas/kong,streamdataio/kong,Kong/kong,ind9/kong,jebenexer/kong,Kong/kong,shiprabehera/kong,Vermeille/kong,beauli/kong,vzaramel/kong,ccyphers/kong,Mashape/kong,ajayk/kong,rafael/kong,jerizm/kong,icyxp/kong,isdom/kong,streamdataio/k...
db64a359eca14db6372d6273ab091db16c5749f4
core/configmanager.lua
core/configmanager.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type = setme...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type = setme...
configmanager: Assign a chunk name to config files loaded using the default config loader (fixes issues with some diagnostic tools).
configmanager: Assign a chunk name to config files loaded using the default config loader (fixes issues with some diagnostic tools).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
533bbb172c43b9f75d4caf7219a003f4a3efd724
modules/admin-full/luasrc/model/cbi/admin_network/network.lua
modules/admin-full/luasrc/model/cbi/admin_network/network.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-full: fix crash on network interface overview page
modules/admin-full: fix crash on network interface overview page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6099 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
Canaan-Creative/luci,Flexibity/luci,projectbismark/luci-bismark,ThingMesh/openwrt-luci,projectbismark/luci-bismark,Canaan-Creative/luci,ThingMesh/openwrt-luci,ch3n2k/luci,gwlim/luci,jschmidlapp/luci,freifunk-gluon/luci,phi-psi/luci,saraedum/luci-packages-old,ThingMesh/openwrt-luci,stephank/luci,freifunk-gluon/luci,vhph...
e837c1ef04818a1acfe283e9853920b9bb8e2739
sslobby/gamemode/init.lua
sslobby/gamemode/init.lua
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("cl_scoreboard.lua") AddCSLuaFile("modules/sh_link.lua") AddCSLuaFile("modules/cl_link.lua") AddCSLuaFile("modules/sh_chairs.lua") AddCSLuaFile("modules/cl_chairs.lua") AddCSLuaFile("modules/cl_worldpicker.lua") AddCSLuaFile("modules/sh_minigame.lua"...
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("cl_scoreboard.lua") AddCSLuaFile("modules/sh_link.lua") AddCSLuaFile("modules/cl_link.lua") AddCSLuaFile("modules/sh_chairs.lua") AddCSLuaFile("modules/cl_chairs.lua") AddCSLuaFile("modules/cl_worldpicker.lua") AddCSLuaFile("modules/sh_minigame.lua"...
I think I broke this, fixed.
I think I broke this, fixed.
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
fb7b825586e215d4ae7a869d50bf03621f469d06
demos/bench.lua
demos/bench.lua
--[[ export LUA_CPATH='./env/lib/lua/5.1/?.so' export LUA_PATH='./demos/?.lua;./src/?.lua;./env/share/lua/5.1/?.lua;./env/share/lua/5.1/?/init.lua' time ../other/luajit-2.0/src/luajit demos/bench.lua --]] local Request = require('http.request') local ResponseWriter = require('http.response') local app = require(arg[1]...
package.path = package.path .. ';demos/?.lua' local Request = require('http.request') local ResponseWriter = require('http.response') local app = require(arg[1] or 'test') local w = setmetatable({ headers = {} }, {__index = ResponseWriter}) local req = setmetatable({ method = 'POST', path = '/', form...
Fixed package.path.
Fixed package.path.
Lua
mit
akornatskyy/lucid
f115a8b479a4a7b6a28176087dac95c27620f5be
spec/fixtures/https_server.lua
spec/fixtures/https_server.lua
local https_server = {} https_server.__index = https_server local fmt = string.format local mock_srv_tpl_file = require "spec.fixtures.mock_webserver_tpl" local ngx = require "ngx" local pl_dir = require "pl.dir" local pl_file = require "pl.file" local pl_template = require "pl.template" local pl_path = require "pl.p...
local https_server = {} https_server.__index = https_server local fmt = string.format local mock_srv_tpl_file = require "spec.fixtures.mock_webserver_tpl" local ngx = require "ngx" local pl_dir = require "pl.dir" local pl_file = require "pl.file" local pl_template = require "pl.template" local pl_path = require "pl.p...
tests(fixtures/https_server): retry if Nginx failed to start
tests(fixtures/https_server): retry if Nginx failed to start
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong