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
92ec33e4cd95ec01ed087ff85fc0c27069270a3d
fblualib/ffivector/test/ffivector_test.lua
fblualib/ffivector/test/ffivector_test.lua
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- require('fb.lua...
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- require('fb.lua...
Fix ffivector_test.
Fix ffivector_test. Summary: I broke this for no good reason at all. Sorry. Test Plan: fbconfig fblualib/ffivector/test && fbmake runtests Reviewed By: pamelavagata@fb.com FB internal diff: D1588036 Tasks: 5096599
Lua
bsd-3-clause
facebook/fblualib,raphaelamorim/fblualib,soumith/fblualib,szagoruyko/fblualib,soumith/fblualib,facebook/fblualib,raphaelamorim/fblualib,szagoruyko/fblualib
eb85fd7974acee779212ba0e2d5b9483aef65ed2
onmt/Seq2Seq.lua
onmt/Seq2Seq.lua
--[[ Sequence to sequence model with attention. ]] local Seq2Seq, parent = torch.class('Seq2Seq', 'Model') local options = { { '-enc_layers', 0, [[If > 0, number of layers of the encode. This overrides the global `-layers` option.]], { valid = onmt.utils.ExtendedCmdLine.isUInt(), structural =...
--[[ Sequence to sequence model with attention. ]] local Seq2Seq, parent = torch.class('Seq2Seq', 'Model') local options = { { '-enc_layers', 0, [[If > 0, number of layers of the encode. This overrides the global `-layers` option.]], { valid = onmt.utils.ExtendedCmdLine.isUInt(), structural =...
Rely on option value to define the encoder output size
Rely on option value to define the encoder output size Fixes #234.
Lua
mit
monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jsene...
3bad170979ccbce8c9a3bb3dbfcbb9c9e0bef3de
Quadtastic/Frame.lua
Quadtastic/Frame.lua
local Rectangle = require("Rectangle") local renderutils = require("Renderutils") local Layout = require("Layout") local Frame = {} local transform = require("transform") local quads = renderutils.border_quads(48, 0, 16, 16, 128, 128, 2) Frame.start = function(state, x, y, w, h) x = x or state.layout.next_x y = ...
local Rectangle = require("Rectangle") local renderutils = require("Renderutils") local Layout = require("Layout") local Frame = {} local transform = require("transform") local quads = renderutils.border_quads(48, 0, 16, 16, 128, 128, 2) Frame.start = function(state, x, y, w, h) x = x or state.layout.next_x y = ...
Fix Frame not setting its layout advances correctly
Fix Frame not setting its layout advances correctly
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
ab68863ee638ff0f6134fc3be3e41ad9f22c2d7f
lua/mediaplayer/services/resource/init.lua
lua/mediaplayer/services/resource/init.lua
AddCSLuaFile "shared.lua" include "shared.lua" local urllib = url local FilenamePattern = "([^/]+)%.%S+$" local FilenameExtPattern = "([^/]+%.%S+)$" SERVICE.TitleIncludeExtension = true -- include extension in title function SERVICE:GetMetadata( callback ) if not self._metadata then local title local pattern...
AddCSLuaFile "shared.lua" include "shared.lua" local urllib = url local FilenamePattern = "([^/]+)%.%S+$" local FilenameExtPattern = "([^/]+%.%S+)$" SERVICE.TitleIncludeExtension = true -- include extension in title function SERVICE:GetMetadata( callback ) if not self._metadata then local title local pattern...
Fixed error when grabbing the path string from a resource URL.
Fixed error when grabbing the path string from a resource URL.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
0f64df3ae71795b8a9371f95f39c9c006fa7bccf
UCDwanted/server.lua
UCDwanted/server.lua
local wantedPoints = {} addEventHandler("onResourceStart", resourceRoot, function () for _, plr in ipairs(Element.getAllByType("player")) do if (not plr.account.guest) then setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp")) end end end ) addEventHandler("onResourceStop", resourceRoot, function ...
local wantedPoints = {} addEventHandler("onResourceStart", resourceRoot, function () for _, plr in ipairs(Element.getAllByType("player")) do if (not plr.account.guest) then setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp")) end end end ) addEventHandler("onResourceStop", resourceRoot, function ...
UCDwanted
UCDwanted - Added a wanted counter stat every time wp gets added - Fixed a simple error with saving stats
Lua
mit
nokizorque/ucd,nokizorque/ucd
1a6d1715ad377f4ebe6ce29bde5a97badd98fc66
premakeUtils.lua
premakeUtils.lua
function coInitParams(_params) co_baseAbsPath = os.getcwd() print("co_baseAbsPath: "..co_baseAbsPath) co_externalAbsPath = co_baseAbsPath .. "/external" co_buildPath = "build/" .. _ACTION local coreRelativePath = "." if _params.coreRelativePath then coreRelativePath = _params.coreRelativePath end local coreA...
function coInitParams(_params) co_baseAbsPath = os.getcwd() print("co_baseAbsPath: "..co_baseAbsPath) co_externalAbsPath = co_baseAbsPath .. "/external" co_buildPath = "build/" .. _ACTION local coreRelativePath = "." if _params.coreRelativePath then coreRelativePath = _params.coreRelativePath end local coreA...
Fixed shaders import when importing from same workspace.
Fixed shaders import when importing from same workspace.
Lua
mit
smogpill/core,smogpill/core
999fbfe300c82a5865fee7cea98c4bfc068a4055
test/test_writeObject.lua
test/test_writeObject.lua
local myTester = torch.Tester() local tests = {} -- checks that an object can be written and unwritten -- returns false if an error occurs local function serializeAndDeserialize(obj) local file = torch.MemoryFile() file:binary() local ok, msg = pcall (file.writeObject, file, obj) myTester:assert(ok, 'err...
local myTester = torch.Tester() local tests = {} -- checks that an object can be written and unwritten -- returns false if an error occurs local function serializeAndDeserialize(obj) local file = torch.MemoryFile() file:binary() local ok, msg = pcall (file.writeObject, file, obj) myTester:assert(ok, 'err...
Regression test for MemoryFile bug.
Regression test for MemoryFile bug.
Lua
bsd-3-clause
Moodstocks/torch7,wgapl/torch7,Moodstocks/torch7,Atcold/torch7,yozw/torch7,nicholas-leonard/torch7,adamlerer/torch7,wickedfoo/torch7,colesbury/torch7,szagoruyko/torch7,yozw/torch7,adamlerer/torch7,diz-vara/torch7,wgapl/torch7,nicholas-leonard/torch7,Atcold/torch7,colesbury/torch7,wickedfoo/torch7,diz-vara/torch7,szagor...
7b19c8c035681f990dec3bb57946360e0a47ae85
samples/gstvideo.lua
samples/gstvideo.lua
#! /usr/bin/env lua -- -- Sample GStreamer application, port of public Vala GStreamer Video -- Example (http://live.gnome.org/Vala/GStreamerSample) -- require 'lgi' local GLib = require 'lgi.GLib' local Gtk = require 'lgi.Gtk' local Gst = require 'lgi.Gst' local GstInterfaces = require 'lgi.GstInterfaces' Gtk.init()...
#! /usr/bin/env lua -- -- Sample GStreamer application, port of public Vala GStreamer Video -- Example (http://live.gnome.org/Vala/GStreamerSample) -- require 'lgi' local GLib = require 'lgi.GLib' local Gtk = require 'lgi.Gtk' local Gst = require 'lgi.Gst' local GstInterfaces = require 'lgi.GstInterfaces' Gtk.init()...
More fixes to video sample, still dysfunctional though.
More fixes to video sample, still dysfunctional though.
Lua
mit
pavouk/lgi,zevv/lgi,psychon/lgi
fa77dc94b184a75495329dc46044841968f3b804
script/c88754763.lua
script/c88754763.lua
--CX 熱血指導神アルティメットレーナー function c88754763.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,9),4) c:EnableReviveLimit() --cannot be target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)...
--CX 熱血指導神アルティメットレーナー function c88754763.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,9),4) c:EnableReviveLimit() --cannot be target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)...
Update c88754763.lua
Update c88754763.lua fix
Lua
mit
sidschingis/DevProLauncher,SuperAndroid17/DevProLauncher,Tic-Tac-Toc/DevProLauncher
53a2c43bed17127c8e4641ec07c39136a1aa4c5d
vi_tags.lua
vi_tags.lua
local M = {} local state = { tags = nil, -- current set of tags tagstack = {},-- current tag stack: list of { i=num, tags={tag list} } tagidx = 0, -- index into tagstack of current level lasttag = nil,-- last tag list timestamp = nil, -- tags file modification time. } M.state = state -- Load a...
local M = {} local state = { tags = nil, -- current set of tags tagstack = {},-- current tag stack: list of { i=num, tags={tag list} } tagidx = 0, -- index into tagstack of current level lasttag = nil,-- last tag list timestamp = nil, -- tags file modification time. } M.state = state -- Load a...
Make an attempt to convert regular expressions in tag search patterns to the right format. This fixes jumping to tags for functions with pointer arguments.
Make an attempt to convert regular expressions in tag search patterns to the right format. This fixes jumping to tags for functions with pointer arguments.
Lua
mit
jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi
8072eac3ed1453803a64fa8d21100e67bc1315a4
share/lua/website/videobash.lua
share/lua/website/videobash.lua
-- libquvi-scripts -- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
-- libquvi-scripts -- Copyright (C) 2011 Thomas Preud'homme <robotux@celest.fr> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Fr...
FIX: videobash.lua: media URL pattern
FIX: videobash.lua: media URL pattern * Fix "error: videobash.lua:54: no match: media url" * Unescape media URL
Lua
agpl-3.0
legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer
63dc89a24c054aa7c53e37c0bf6340fd07a73539
Abillist.lua
Abillist.lua
--[[ This module prints the list of all Pokémon, alternative forms included, having a given ability. --]] local k = {} local mw = require('mw') local abillib = require('Wikilib-abils') local box = require('Box') local css = require('Css') local links = require('Links') local list = require('Wikilib-lists') --local...
--[[ This module prints the list of all Pokémon, alternative forms included, having a given ability. --]] local k = {} local mw = require('mw') local abillib = require('Wikilib-abils') local box = require('Box') local css = require('Css') local links = require('Links') local list = require('Wikilib-lists') local m...
Just removing an import, but the last burst of commit fixed pokemoncentral/wiki-project#15
Just removing an import, but the last burst of commit fixed pokemoncentral/wiki-project#15
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
6428e5664ef717099417c71f2f9e6c23719f875a
src/lua/Parallel.lua
src/lua/Parallel.lua
local zmq = require "lzmq" local zloop = require "lzmq.loop" local zthreads = require "lzmq.threads" local mp = require "cmsgpack" local zassert = zmq.assert local ENDPOINT = "inproc://main" local THREAD_STARTER = [[ local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[ local zmq = require "lzm...
local zmq = require "lzmq" local zloop = require "lzmq.loop" local zthreads = require "lzmq.threads" local mp = require "cmsgpack" local zassert = zmq.assert local ENDPOINT = "inproc://main" local THREAD_STARTER = [[ local ENDPOINT = ]] .. ("%q"):format(ENDPOINT) .. [[ local zmq = require "lzm...
Fix. check creation work thread.
Fix. check creation work thread.
Lua
mit
moteus/lua-Parallel,kidaa/lua-Parallel
099e5bd55a17f67e0510784a726abce8ce5c5e33
protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua
protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces
proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@9009 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ch3n2k/luci,Canaan-Creative/luci,freifunk-gluon/luci,ThingMesh/openwrt-luci,zwhfly/openwrt-luci,eugenesan/openwrt-luci,8devices/carambola2-luci,eugenesan/openwrt-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,ch3n2k/luci,ReclaimYourPrivacy/cloak-luci,ThingMesh/openwrt-luci,Canaan-Creative/luci,yeewang/openwrt-luci,Recl...
89fe3e305129e537088fe9ec6e6970c85265d72e
spec/unit/defaults_spec.lua
spec/unit/defaults_spec.lua
describe("defaults module", function() local Defaults, DataStorage setup(function() require("commonrequire") Defaults = require("apps/filemanager/filemanagersetdefaults") DataStorage = require("datastorage") end) it("should load all defaults from defaults.lua", function() ...
describe("defaults module", function() local Defaults, DataStorage setup(function() require("commonrequire") Defaults = require("apps/filemanager/filemanagersetdefaults") DataStorage = require("datastorage") end) it("should load all defaults from defaults.lua", function() ...
[spec] Fix defaults_spec
[spec] Fix defaults_spec Updated for https://github.com/koreader/koreader/pull/4691 Also the assert.is_same() argument order was wrong. The first argument is expected, the second the real-life result. Otherwise the error message in case of failure is misleading.
Lua
agpl-3.0
koreader/koreader,NiLuJe/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,mihailim/koreader,Markismus/koreader,poire-z/koreader,poire-z/koreader,pazos/koreader,Hzj-jie/koreader,mwoz123/koreader,houqp/koreader,Frenzie/koreader
526140efdd531134e4c2010a4f2415e0e7d1924c
lualib/sys/socketdispatch.lua
lualib/sys/socketdispatch.lua
local socket = require "sys.socket" local core = require "sys.core" local pairs = pairs local assert = assert local tremove = table.remove local CONNECTING = 1 local CONNECTED = 2 local CLOSE = 5 local FINAL = 6 local dispatch = {} local mt = { __index = dispatch, __gc = function(tbl) tbl:clo...
local socket = require "sys.socket" local core = require "sys.core" local pairs = pairs local assert = assert local tremove = table.remove local CONNECTING = 1 local CONNECTED = 2 local CLOSE = 5 local FINAL = 6 local dispatch = {} local mt = { __index = dispatch, __gc = function(tbl) if tbl....
fix socketdispatch auth race
fix socketdispatch auth race
Lua
mit
findstr/silly
c182b94bcab360f2e10d06de30e36223188cfe8e
src_trunk/resources/vehicle-system/c_vehicle_rightclick.lua
src_trunk/resources/vehicle-system/c_vehicle_rightclick.lua
wRightClick = nil bInventory = nil bCloseMenu = nil ax, ay = nil localPlayer = getLocalPlayer() vehicle = nil function requestInventory(button) if button=="left" and not getElementData(localPlayer, "exclusiveGUI") then if isVehicleLocked(vehicle) and vehicle ~= getPedOccupiedVehicle(localPlayer) then t...
wRightClick = nil bInventory = nil bCloseMenu = nil ax, ay = nil localPlayer = getLocalPlayer() vehicle = nil function requestInventory(button) if button=="left" and not getElementData(localPlayer, "exclusiveGUI") then if isVehicleLocked(vehicle) and vehicle ~= getPedOccupiedVehicle(localPlayer) then t...
fix for vehicle rightclick breaking with Impound again
fix for vehicle rightclick breaking with Impound again git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1559 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
85cba95646165e201ecb15a698b2dc6a3a12760a
contrib/package/ffluci-splash/src/luci-splash.lua
contrib/package/ffluci-splash/src/luci-splash.lua
#!/usr/bin/lua package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.cpath = "/usr/lib/lua/?.so;" .. package.cpath require("ffluci.http") require("ffluci.sys") require("ffluci.model.uci") -- Init state session uci = ffluci.model.uci.StateSession() function main(argv) local cmd = arg...
#!/usr/bin/lua package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path package.cpath = "/usr/lib/lua/?.so;" .. package.cpath require("ffluci.http") require("ffluci.sys") require("ffluci.model.uci") -- Init state session uci = ffluci.model.uci.StateSession() function main(argv) local cmd = arg...
ffluci-splash: Minor fixes
ffluci-splash: Minor fixes
Lua
apache-2.0
tobiaswaldvogel/luci,ollie27/openwrt_luci,Hostle/openwrt-luci-multi-user,daofeng2015/luci,maxrio/luci981213,LazyZhu/openwrt-luci-trunk-mod,aircross/OpenWrt-Firefly-LuCI,joaofvieira/luci,openwrt/luci,tcatm/luci,lcf258/openwrtcn,harveyhu2012/luci,jorgifumi/luci,bright-things/ionic-luci,kuoruan/luci,rogerpueyo/luci,male-p...
ae5216e8b4527a1e3d4962fad7b933f420793666
lua/weapons/remotecontroller.lua
lua/weapons/remotecontroller.lua
AddCSLuaFile() SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03 SWEP.Contact = "" SWEP.Purpose = "Remote control for Pod Controllers in wire." SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling." SWEP.Category = "Wiremod" SWEP.PrintName = "Remo...
AddCSLuaFile() SWEP.Author = "Divran" -- Originally by ShaRose, rewritten by Divran at 2011-04-03 SWEP.Contact = "" SWEP.Purpose = "Remote control for Pod Controllers in wire." SWEP.Instructions = "Left Click on Pod Controller to link up, and use to start controlling." SWEP.Category = "Wiremod" SWEP.PrintName = "Remo...
Updated Remote Controller (#1172)
Updated Remote Controller (#1172) Fixed exploit with remote controller which allowed you to get into noclip on servers which have noclip disabled
Lua
apache-2.0
NezzKryptic/Wire,garrysmodlua/wire,dvdvideo1234/wire,Grocel/wire,thegrb93/wire,wiremod/wire,sammyt291/wire,bigdogmat/wire
05e5ba4a27bb34e60334107364c403a68cf6fba0
mod_carbons/mod_carbons.lua
mod_carbons/mod_carbons.lua
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[...
-- XEP-0280: Message Carbons implementation for Prosody -- Copyright (C) 2011 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local xmlns_carbons = "urn:xmpp:carbons:1"; local xmlns_forward = "urn:xmpp:forward:0"; local host_sessions = hosts[...
mod_carbons: Fix handling of messages from remote hosts
mod_carbons: Fix handling of messages from remote hosts
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
c971ec7dc7f5693e81535ec8f78b83ede6a33857
mods/screwdriver/init.lua
mods/screwdriver/init.lua
local mode_text = { {"Change rotation, Don't change axisdir."}, {"Keep choosen face in front then rotate it."}, {"Change axis dir, Reset rotation."}, {"Bring top in front then rotate it."}, } local opposite_faces = { [0] = 5, [1] = 2, [2] = 1, [3] = 4, [4] = 3, [5] = 0, } local function screwdriver_setmode...
local mode_text = { {"Change rotation, Don't change axisdir."}, {"Keep choosen face in front then rotate it."}, {"Change axis dir, Reset rotation."}, {"Bring top in front then rotate it."}, } local opposite_faces = { [0] = 5, [1] = 2, [2] = 1, [3] = 4, [4] = 3, [5] = 0, } local function screwdriver_setmode...
Fix crash when using the screwdriver on an unknown node
Fix crash when using the screwdriver on an unknown node
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
b53d4079797ca34869ed6970bf74243ec9450e9f
mods/mff/mff_pclasses/hunter.lua
mods/mff/mff_pclasses/hunter.lua
------------------ -- Hunter class -- ------------------ -- -- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114 -- pclasses.api.register_class("hunter", { on_assigned = function(pname, inform) if inform then minetest.chat_send_player(pname, "You are now a hunter") minetest.sound_pl...
------------------ -- Hunter class -- ------------------ -- -- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114 -- pclasses.api.register_class("hunter", { on_assigned = function(pname, inform) if inform then minetest.chat_send_player(pname, "You are now a hunter") minetest.sound_pl...
fix no drop hunter bow_minotaur_horn/arbalest_auto when loaded, issue https://github.com/MinetestForFun/server-minetestforfun/issues/420
fix no drop hunter bow_minotaur_horn/arbalest_auto when loaded, issue https://github.com/MinetestForFun/server-minetestforfun/issues/420
Lua
unlicense
Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,Coethium/server-minetestforfun,Coethium/server-minetestforfun,LeMagnesium/minetest-minetestforfun-s...
3761aa95483ac060dc51973727b1f059698de016
mods/unified_inventory/group.lua
mods/unified_inventory/group.lua
function unified_inventory.canonical_item_spec_matcher(spec) local specname = ItemStack(spec):get_name() if specname:sub(1, 6) == "group:" then local group_names = specname:sub(7):split(",") return function (itemname) local itemdef = minetest.registered_items[itemname] for _, group_name in ipairs(group_name...
function unified_inventory.canonical_item_spec_matcher(spec) local specname = ItemStack(spec):get_name() if specname:sub(1, 6) == "group:" then local group_names = specname:sub(7):split(",") return function (itemname) local itemdef = minetest.registered_items[itemname] for _, group_name in ipairs(group_name...
[u_inv] Use steel ingots as group item for ingots
[u_inv] Use steel ingots as group item for ingots - Fix #480
Lua
unlicense
sys4-fr/server-minetestforfun,Coethium/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,MinetestForFun/...
a2937a595eafba19bd55c1f0befd9dc33cd109a2
lua/filters/fieldfix.lua
lua/filters/fieldfix.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Performs some basic mutations on message Fields - add if not present, override, remove, rename and parse. New m...
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Performs some basic mutations on message Fields - add if not present, override, remove, rename and parse. New m...
Moved embedded field parsing into statsd_aggregator
Moved embedded field parsing into statsd_aggregator Having to juggle the statsd-aggregated suffixes alongside embedded kv's was messy.
Lua
mpl-2.0
hynd/heka-tsutils-plugins,timurb/heka-tsutils-plugins
2d0038dbc180db18e1da575fe7696cc0ff3b82fc
src/lpeg.lua
src/lpeg.lua
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't support __len for tables local obj2 =...
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't support __len for tables local obj2 =...
fix lpeg wrapper, function locale
fix lpeg wrapper, function locale return argument if passed
Lua
mit
starius/lpjit,starius/lpjit
0956b327020cf8d64df16a765f7bb3ef6f2791a4
mb.lua
mb.lua
--------------- -- ## A datatype featuring multiple Buffers. -- -- [Github Page](https://github.com/fhirschmann/vomote) -- -- @author Fabian Hirschmann <fabian@hirschm.net> -- @copyright 2013 -- @license MIT/X11 local Buffer = {} local MultiBuffer = {} --- Creates a new buffer. -- @param size maximum size of the appe...
--------------- -- ## A datatype featuring multiple Buffers. -- -- [Github Page](https://github.com/fhirschmann/vomote) -- -- @author Fabian Hirschmann <fabian@hirschm.net> -- @copyright 2013 -- @license MIT/X11 local Buffer = {} local MultiBuffer = {} --- Creates a new buffer. -- @param size maximum size of the appe...
fixed indices shifting in buffer
fixed indices shifting in buffer
Lua
mit
fhirschmann/vocontrol
2fc5bc1042d46baa24fb1107a7f0a982dd6c85b0
src/websocket/ev_common.lua
src/websocket/ev_common.lua
local ev = require'ev' local frame = require'websocket.frame' local tinsert = table.insert local tconcat = table.concat local eps = 2^-40 local detach = function(f,loop) if ev.Idle then ev.Idle.new(function(loop,io) io:stop(loop) f() end):start(loop) else ev.Timer.new(function(loop,io...
local ev = require'ev' local frame = require'websocket.frame' local tinsert = table.insert local tconcat = table.concat local eps = 2^-40 local detach = function(f,loop) if ev.Idle then ev.Idle.new(function(loop,io) io:stop(loop) f() end):start(loop) else ev.Timer.new(function(loop,io...
fix simult close
fix simult close keep local of callbacks.on_sent
Lua
mit
OptimusLime/lua-websockets,KSDaemon/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets
e667a4c84ab379383317d36d1c6712032c0734bc
kong/core/plugins_iterator.lua
kong/core/plugins_iterator.lua
local responses = require "kong.tools.responses" local singletons = require "kong.singletons" local setmetatable = setmetatable -- Loads a plugin config from the datastore. -- @return plugin config table or an empty sentinel table in case of a db-miss local function load_plugin_into_memory(api_id, consumer_id, plugin...
local responses = require "kong.tools.responses" local singletons = require "kong.singletons" local setmetatable = setmetatable -- Loads a plugin config from the datastore. -- @return plugin config table or an empty sentinel table in case of a db-miss local function load_plugin_into_memory(api_id, consumer_id, plugin...
fix(plugins-iter) properly catch errors from the cache callback
fix(plugins-iter) properly catch errors from the cache callback mlcache does not catch errors coming out from a cache callback via the traditional second return argument (yet). It only catches Lua errors thrown by `error()`. This fixes a silent failure when such errors happen in the plugins iterator, causing the HT...
Lua
apache-2.0
Kong/kong,jebenexer/kong,Kong/kong,Kong/kong,Mashape/kong
854d7d32434ef90a2eb2b549f4f0cc78f6e0dbe4
nvim/init.lua
nvim/init.lua
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options require('plugins') require('options') require('mappings') require('config.treesitter') require('config.l...
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to access global variables local opt = vim.opt -- to set options require('plugins') require('options') require('mappings') require('config.treesitter') require('config.l...
fix: remove auto refresh attempt
fix: remove auto refresh attempt I can't get it to work all the way... and with needing to compile packages, too, it is just easier to reload manually or restart.
Lua
mit
drmohundro/dotfiles
cd42dd08d33b6eee909bd173cacceac8f18c4cfa
src/Modules/Game/Server.Main.lua
src/Modules/Game/Server.Main.lua
-- Name: Server.Main -- ClassName: Script local players = game:GetService("Players") local replicatedStorage = game:GetService("ReplicatedStorage") local nevermore = require(replicatedStorage:WaitForChild("NevermoreEngine")) local getRemoteEvent = nevermore.GetRemoteEvent local import = nevermore.LoadLibrary local d...
-- Name: Server.Main -- ClassName: Script local players = game:GetService("Players") local replicatedStorage = game:GetService("ReplicatedStorage") local nevermore = require(replicatedStorage:WaitForChild("NevermoreEngine")) local getRemoteEvent = nevermore.GetRemoteEvent local import = nevermore.LoadLibrary local d...
Refactor an old comment
Refactor an old comment This was something I copy/pasted from another project, and I forgot to change the parameters. That's fixed now, and I also added a usage example.
Lua
mit
VoxelDavid/echo-ridge
9727bba51aa772e95c0c1c088454a61400bf592f
lib/image_loader.lua
lib/image_loader.lua
local gm = require 'graphicsmagick' local ffi = require 'ffi' local iproc = require 'iproc' require 'pl' local image_loader = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) local clip_eps16 = (1.0 / 65535.0) * 0.5 - (1.0e-7 * (1.0 / 65535.0) * 0.5) local background_color = 0.5 function ima...
local gm = require 'graphicsmagick' local ffi = require 'ffi' local iproc = require 'iproc' require 'pl' local image_loader = {} local clip_eps8 = (1.0 / 255.0) * 0.5 - (1.0e-7 * (1.0 / 255.0) * 0.5) local clip_eps16 = (1.0 / 65535.0) * 0.5 - (1.0e-7 * (1.0 / 65535.0) * 0.5) local background_color = 0.5 function ima...
Fix gamma correction
Fix gamma correction
Lua
mit
zyhkz/waifu2x,Spitfire1900/upscaler,vitaliylag/waifu2x,nagadomi/waifu2x,higankanshi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,vitaliylag/waifu2x,zyhkz/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,higankanshi/waifu2x,higankanshi/waifu2x,vitaliylag/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x
336224ec981337c323c870cc6f68c35c21e3e392
Interface/AddOns/RayUI/modules/skins/blizzard/gossip.lua
Interface/AddOns/RayUI/modules/skins/blizzard/gossip.lua
local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local local S = R:GetModule("Skins") local function LoadSkin() S:SetBD(GossipFrame) GossipFrame:DisableDrawLayer("BORDER") GossipFrameInset:DisableDrawLayer("BORDER") GossipFrameInsetBg:Hide() GossipGreetingScrollFrameTop:Hide() Gossip...
local R, L, P = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, local local S = R:GetModule("Skins") local function LoadSkin() S:SetBD(GossipFrame) GossipFrame:DisableDrawLayer("BORDER") GossipFrameInset:DisableDrawLayer("BORDER") GossipFrameInsetBg:Hide() GossipGreetingScrollFrameTop:Hide() Gossip...
fix gossip title text color
fix gossip title text color
Lua
mit
fgprodigal/RayUI
f3f859bfbab635b234c4581068ee376bccfb988b
lualib/websocket.lua
lualib/websocket.lua
local skynet = require "skynet" local crypt = require "skynet.crypt" local socket = require "skynet.socket" local socket_write = socket.write local socket_read = socket.read local socket_close = socket.close local s_format = string.format local s_pack = string.pack local s_unpack = string.unpack local t_pack = ...
local skynet = require "skynet" local crypt = require "skynet.crypt" local socket = require "skynet.socket" local socket_write = socket.write local socket_read = socket.read local socket_close = socket.close local s_format = string.format local s_pack = string.pack local s_unpack = string.unpack local s_match = st...
fix ws
fix ws
Lua
mit
korialuo/skynet,korialuo/skynet,korialuo/skynet
8f7b49dc636411a329339ab83a97186db59ede67
lua/xcb/wrappers/window.lua
lua/xcb/wrappers/window.lua
--- Wrapper for XCB window local ffi = require("ffi") local xcbr = require("xcb.raw") -- TODO: Configuring local index = { --- Destroy the window. destroy = function(self) return xcbr.xcb_destroy_window(self.conn, self) end, destroy_checked = function(self) return xcbr.xcb_destroy_window_checked(self.conn, s...
--- Wrapper for XCB window local ffi = require("ffi") local xcbr = require("xcb.raw") -- TODO: Configuring local index = { --- Destroy the window. destroy = function(self) return xcbr.xcb_destroy_window(self.conn, self.wid) end, destroy_checked = function(self) return xcbr.xcb_destroy_window_checked(self.con...
hopefully fixed xcb.wrappers.window, no test case yet.
hopefully fixed xcb.wrappers.window, no test case yet.
Lua
mit
vifino/ljwm
c480de455bb210b641b3ce481a05f02a99dbf48e
regress/22-client-dtls.lua
regress/22-client-dtls.lua
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" local context = require"openssl.ssl.context" local function exists(path) local fh = io.open(path, "r") if fh then fh:close() return true else return false end end -- return integer version of openssl(1) command-...
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" local context = require"openssl.ssl.context" local function exists(path) local fh = io.open(path, "r") if fh then fh:close() return true else return false end end -- return integer version of openssl(1) command-...
fix openssl version detection bug in 22-client-dtls
fix openssl version detection bug in 22-client-dtls
Lua
mit
bigcrush/cqueues,daurnimator/cqueues,wahern/cqueues,wahern/cqueues,daurnimator/cqueues,bigcrush/cqueues
ce09dc1301c2f7b2e889fc151c9a5c8490c2a7b6
kong/plugins/request-transformer/schema.lua
kong/plugins/request-transformer/schema.lua
local pl_template = require "pl.template" local tx = require "pl.tablex" local typedefs = require "kong.db.schema.typedefs" local validate_header_name = require("kong.tools.utils").validate_header_name -- entries must have colons to set the key and value apart local function check_for_value(entry) local name, value ...
local pl_template = require "pl.template" local tx = require "pl.tablex" local typedefs = require "kong.db.schema.typedefs" local validate_header_name = require("kong.tools.utils").validate_header_name -- entries must have colons to set the key and value apart local function check_for_value(entry) local name, value ...
fix(request-transformer) remove the `run_on` field from plugin config schema (#11)
fix(request-transformer) remove the `run_on` field from plugin config schema (#11) It is no longer needed as service mesh support is removed from Kong
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
ad22a3295be43156437b2ce602138f77823713e2
libs/core/luasrc/model/network/wireless.lua
libs/core/luasrc/model/network/wireless.lua
--[[ LuCI - Network model - Wireless extension Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless...
--[[ LuCI - Network model - Wireless extension Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless...
libs/core: i18n fixes for wds mode
libs/core: i18n fixes for wds mode git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5513 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
98b1e8199f1ba9e8e8b43e1a4b1ed26e5e0f145b
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.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...
Revert "* luci/olsr: fix names of interfaces with type bridge"
Revert "* luci/olsr: fix names of interfaces with type bridge" This reverts commit 500499c2a0d7c5eeeddb621a8b96fad10523485b.
Lua
apache-2.0
cappiewu/luci,jorgifumi/luci,Hostle/openwrt-luci-multi-user,cappiewu/luci,nwf/openwrt-luci,Wedmer/luci,teslamint/luci,oyido/luci,openwrt-es/openwrt-luci,Sakura-Winkey/LuCI,male-puppies/luci,joaofvieira/luci,Noltari/luci,jorgifumi/luci,Hostle/openwrt-luci-multi-user,tobiaswaldvogel/luci,palmettos/cnLuCI,MinFu/luci,NeoRa...
30e41a5a014e2cbd52feb3288cd1d8e99e254639
accounts/server/accounts.lua
accounts/server/accounts.lua
local _get = get function get( id ) return exports.database:query_single( "SELECT * FROM `accounts` WHERE `id` = ?", id ) end function new( username, password ) return exports.database:insert_id( "INSERT INTO `accounts` (`username`, `password`) VALUES (?, ?)", username, exports.security:hashString( password ) ) end...
local _get = get function get( id ) return exports.database:query_single( "SELECT * FROM `accounts` WHERE `id` = ?", id ) end function new( username, password ) return exports.database:insert_id( "INSERT INTO `accounts` (`username`, `password`) VALUES (?, ?)", username, exports.security:hashString( password ) ) end...
accounts: fixed last_ip and last_serial not being set
accounts: fixed last_ip and last_serial not being set
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
abd7f4f84ab68b611f5d00f639209dc97e19cfb4
pud/system/RenderSystem.lua
pud/system/RenderSystem.lua
local Class = require 'lib.hump.class' local ListenerBag = getClass 'pud.kit.ListenerBag' local table_sort = table.sort -- RenderSystem -- local RenderSystem = Class{name='RenderSystem', function(self) self._registered = {} self._levels = {} end } -- destructor function RenderSystem:destroy() for k,bag in pai...
local Class = require 'lib.hump.class' local ListenerBag = getClass 'pud.kit.ListenerBag' local table_sort = table.sort -- RenderSystem -- local RenderSystem = Class{name='RenderSystem', function(self) self._registered = {} self._levels = {} end } -- destructor function RenderSystem:destroy() for k,bag in pai...
fix unregister
fix unregister
Lua
mit
scottcs/wyx
0a7ad3f127690816396300210f66d114bfe37358
base/gems.lua
base/gems.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope th...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it ...
fix base.gems
fix base.gems
Lua
agpl-3.0
Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content
fdab546ae6710e8b870d4b7a46a4283e2f20d86c
misc/freeswitch/scripts/test_route.lua
misc/freeswitch/scripts/test_route.lua
-- Gemeinschaft 5 routing test module -- (c) AMOOMA GmbH 2013 -- require 'common.array'; local arguments = {}; local value = nil; for index=1, #argv do if math.mod(index, 2) == 0 then common.array.set(arguments, argv[index], value); else value = argv[index]; end end local caller = arguments.caller or ...
-- Gemeinschaft 5 routing test module -- (c) AMOOMA GmbH 2013 -- require 'common.array'; local arguments = {}; local value = nil; for index=1, #argv do if math.mod(index, 2) == 0 then common.array.set(arguments, argv[index], value); else value = argv[index]; end end local caller = arguments.caller or ...
date/time in routing test fixed
date/time in routing test fixed
Lua
mit
funkring/gs5,amooma/GS5,amooma/GS5,amooma/GS5,funkring/gs5,funkring/gs5,amooma/GS5,funkring/gs5
160e5662c5bd38577e98c141ea0e802a96d8dc84
premake5.lua
premake5.lua
-- (c) Derek Dupras 2017-2018, All Rights Reserved. -- premake5.lua workspace "LibSort" configurations { "Debug", "Release" } location "build" project "LibSort-test" location "build" kind "ConsoleApp" language "C++" -- Catch will define a main if not provided, but we need to define DO_NOT_USE_WMAIN...
-- (c) Derek Dupras 2017-2021, All Rights Reserved. -- premake5.lua workspace "LibSort" configurations { "Debug", "Release" } location "build" project 'LibSort' kind 'None' language "C++" files { 'include/**', '.clang-format', 'premake5.lua' } vpaths { ['Headers/**'] = { 'include/**.h', 'include/**.hp...
Added LibSort project in premake script
Added LibSort project in premake script * Added LibSort project in premake script * Fixed deprecation warning in premake script
Lua
mit
ddupras/LibSort,ddupras/LibSort
37fd7600c5df738e036886b9c1f48f42ebc8cd5b
src/extensions/cp/battery.lua
src/extensions/cp/battery.lua
--- === cp.battery === --- --- Provides access to various properties of the battery. Each of these properties --- is a `cp.prop`, so it can be watched for changes. For example: --- --- ```lua --- local battery = require("cp.battery") --- battery.powerSupply:watch(function(value) --- print("Now using "..value) --- e...
--- === cp.battery === --- --- Provides access to various properties of the battery. Each of these properties --- is a `cp.prop`, so it can be watched for changes. For example: --- --- ```lua --- local battery = require("cp.battery") --- battery.powerSupply:watch(function(value) --- print("Now using "..value) --- e...
Fixes 2135 by excluding the psuSerialString value. (#2180)
Fixes 2135 by excluding the psuSerialString value. (#2180)
Lua
mit
fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks
0a88e815a7495e9270fec4a54c116231f5c4def5
share/media/publicsenat.lua
share/media/publicsenat.lua
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2010,2012 Raphaël Droz <raphael.droz+floss@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.googlecode.com/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms o...
-- libquvi-scripts -- Copyright (C) 2013 Toni Gundogdu <legatvs@gmail.com> -- Copyright (C) 2010,2012 Raphaël Droz <raphael.droz+floss@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.googlecode.com/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms o...
media/publicsenat.lua: Rewrite parse function
media/publicsenat.lua: Rewrite parse function Rewrite "parse" function for libquvi 0.9+ series. * Remove any now obsolete code (e.g. self.host_id) * Add PublicSenat.iter_streams function * Update vim modeline NOTE: This port takes a shortcut to parse the media stream URL and the thumbnail URL. They are now parse...
Lua
agpl-3.0
legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts
d9740ac308bab90bca759ca9dc0ef11f67347e91
modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua
modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.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$ ]]-- m = ...
--[[ 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$ ]]-- m = ...
modules/admin-full: fix dnsmasq page
modules/admin-full: fix dnsmasq page
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci
e8f45d904d419e6a182960c590eec543b098c608
lua/entities/gmod_wire_starfall_processor/init.lua
lua/entities/gmod_wire_starfall_processor/init.lua
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") ENT.WireDebugName = "Starfall Processor" ENT.OverlayDelay = 0 local context = SF.CreateContext() local name = nil function ENT:UpdateState(state) ...
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") ENT.WireDebugName = "Starfall Processor" ENT.OverlayDelay = 0 local context = SF.CreateContext() function ENT:UpdateState(state) if self.name then ...
Fix names being funny
Fix names being funny
Lua
bsd-3-clause
Jazzelhawk/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall
0f16c0d31d9f1084a55da26acedcc98e7d07d890
AceConsole-3.0/AceConsole-3.0.lua
AceConsole-3.0/AceConsole-3.0.lua
--[[ $Id$ ]] local MAJOR,MINOR = "AceConsole-3.0", 0 local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceConsole then return -- no upgrade needed end AceConsole.embeds = AceConsole.embeds or {} -- table containing objects AceConsole is embedded in. AceConsole.commands = AceConsole.commands or {...
--[[ $Id$ ]] local MAJOR,MINOR = "AceConsole-3.0", 0 local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not AceConsole then return -- no upgrade needed end AceConsole.embeds = AceConsole.embeds or {} -- table containing objects AceConsole is embedded in. AceConsole.commands = AceConsole.commands or {...
Ace3: AceConsole-3.0 - bugfix UnregisterChatCommand
Ace3: AceConsole-3.0 - bugfix UnregisterChatCommand git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@162 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
1401c4ef98fcb798a1b2803e5482f7c536c2ab03
test_scripts/iAP2TransportSwitch/common.lua
test_scripts/iAP2TransportSwitch/common.lua
--------------------------------------------------------------------------------------------------- -- iAP2TransportSwitch common module --------------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.defaultProtocolVersion = 2 --[[ Re...
--------------------------------------------------------------------------------------------------- -- iAP2TransportSwitch common module --------------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.defaultProtocolVersion = 2 --[[ Re...
iAP2 Transport Switch: Fix issue regarding enabled bluetooth device
iAP2 Transport Switch: Fix issue regarding enabled bluetooth device
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
7ce75e0da02edcd192af5288716ebedca92408c7
tundra.lua
tundra.lua
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
Fixed tundra self-build on win32/msvc.
Fixed tundra self-build on win32/msvc.
Lua
mit
bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra
479b03a24c932312de9f0ffc89bed573150985fb
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: fixup newlines when storing sysupgrade.conf
modules/admin-full: fixup newlines when storing sysupgrade.conf git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6698 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
c3568a025aa895e92c0cc71c86c2bb210623fa69
src_trunk/resources/lves-system/s_lves_system.lua
src_trunk/resources/lves-system/s_lves_system.lua
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
Bug fix for dying
Bug fix for dying git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1862 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
ffb1c49f489ad1bbb4330e47a80b629ec10c35b0
slashcmd.lua
slashcmd.lua
SLASH_PFDB1, SLASH_PFDB2, SLASH_PFDB3, SLASH_PFDB4 = "/db", "/shagu", "/pfquest", "/pfdb" SlashCmdList["PFDB"] = function(input, editbox) local params = {} local meta = { ["addon"] = "PFDB" } if (input == "" or input == nil) then DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccpf|cffffffffQuest (v" .. tostring(GetA...
SLASH_PFDB1, SLASH_PFDB2, SLASH_PFDB3, SLASH_PFDB4 = "/db", "/shagu", "/pfquest", "/pfdb" SlashCmdList["PFDB"] = function(input, editbox) local params = {} local meta = { ["addon"] = "PFDB" } if (input == "" or input == nil) then DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccpf|cffffffffQuest (v" .. tostring(GetA...
slashcmd: fix whitespace issue for gui search
slashcmd: fix whitespace issue for gui search Thanks @Road-block
Lua
mit
shagu/pfQuest
3f5cd2ebb915f1fcdb91f648f487dd000481dd3c
build/premake5.lua
build/premake5.lua
function setTargetObjDir(outDir) targetdir(outDir) objdir(string.lower("../intermediate/%{cfg.shortname}/" .. _ACTION)) targetsuffix(string.lower("_%{cfg.shortname}_" .. _ACTION)) end function copyfiles(dstDir, srcWildcard) os.mkdir(dstDir) local matches = os.matchfiles(srcWildcard) for _, f in ipairs(matches) d...
function setTargetObjDir(outDir) targetdir(outDir) objdir(string.lower("../intermediate/%{cfg.shortname}/" .. _ACTION)) targetsuffix(string.lower("_%{cfg.shortname}_" .. _ACTION)) end function copyfiles(dstDir, srcWildcard) os.mkdir(dstDir) local matches = os.matchfiles(srcWildcard) for _, f in ipairs(matches) d...
Try to fix clock_gettime link issue in gcc
Try to fix clock_gettime link issue in gcc
Lua
mit
miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,DavadDi/nativejson-benchmark,miloyip/nativejson-benchmark,miloyip/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,DavadDi/nativejson-benchmark
8414af5334bb89a671112bb904a6e230bd67c435
xmake/core/tools/tools.lua
xmake/core/tools/tools.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix find tool bug
fix find tool bug
Lua
apache-2.0
waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake
627e5086a930ef41c59dacf43b8e75361788e3a7
api-gateway-config/scripts/lua/metrics/factory.lua
api-gateway-config/scripts/lua/metrics/factory.lua
-- Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved. -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the r...
-- Copyright (c) 2015 Adobe Systems Incorporated. All rights reserved. -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the r...
fix metrics factory (#51)
fix metrics factory (#51) the variables from the require are not even available in init phase. Also it was written in a wrong manner.
Lua
mit
adobe-apiplatform/apigateway,adobe-apiplatform/apigateway,adobe-apiplatform/apigateway,adobe-apiplatform/apigateway
baba2755036bbe09bd46a9920c4261bd90c11f37
src/lpeg.lua
src/lpeg.lua
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't support __len for tables local obj2 =...
local lpjit_lpeg = {} local lpjit = require 'lpjit' local lpeg = require 'lpeg' local unpack = unpack or table.unpack local mt = {} local compiled = {} mt.__index = lpjit_lpeg local function rawWrap(pattern) local obj = {value = pattern} if newproxy and debug.setfenv then -- Lua 5.1 doesn't suppor...
lpeg wrapper: fix call lpeg.R()
lpeg wrapper: fix call lpeg.R() lpeg.R() works, lpeg.R(nil) fails
Lua
mit
starius/lpjit,starius/lpjit
9daf754d1a5865ccd4961a2244c89a6ac1f02627
net/http.lua
net/http.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 socket = require "socket" local mime = require "mime" local url = require "socket.url" local serv...
-- 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 socket = require "socket" local mime = require "mime" local url = require "socket.url" local serv...
net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd)
net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
41953a6efa288230d0bfd905f08a1256dabc5678
net/xmppserver_listener.lua
net/xmppserver_listener.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 logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "l...
-- 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 logger = require "logger"; local log = logger.init("xmppserver_listener"); local lxp = require "l...
xmppserver_listener: More forcefully close s2s connections (fixes fd leak)
xmppserver_listener: More forcefully close s2s connections (fixes fd leak)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
527fe061696f044b6a2ca5e00debd905ce5d0d82
extensions/window/test_window.lua
extensions/window/test_window.lua
require("hs.timer") function testAllWindows() hs.openConsole() hs.openPreferences() local allWindows = hs.window.allWindows() assertIsEqual("table", type(allWindows)) assertGreaterThan(1, #allWindows) -- Enable this when hs.window objects have a proper __type metatable entry -- assertIsUserdataOfType(all...
require("hs.timer") function testAllWindows() hs.openConsole() hs.openPreferences() local allWindows = hs.window.allWindows() assertIsEqual("table", type(allWindows)) assertGreaterThan(1, #allWindows) -- Enable this when hs.window objects have a proper __type metatable entry -- assertIsUserdataOfType(all...
Attempt to fix a failing hs.window test
Attempt to fix a failing hs.window test Test a theory that the hs.window:{size,setSize} tests are failing because the window is starting out too large Fix hs.window size tests
Lua
mit
latenitefilms/hammerspoon,cmsj/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,Hammerspoon/hammerspoon,Hammerspoon/hammerspoon,asmagill/hammerspoon,CommandPost/Comman...
46ba6699544c507ccdb8fe108360e65e2b9fe152
config/sipi.init-knora-test.lua
config/sipi.init-knora-test.lua
-- -- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer, -- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton. -- This file is part of Sipi. -- Sipi is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published -- by...
-- -- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer, -- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton. -- This file is part of Sipi. -- Sipi is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published -- by...
fix (cookie handling in lua): add improved cookie handling to Knora test config
fix (cookie handling in lua): add improved cookie handling to Knora test config
Lua
agpl-3.0
dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi
2776ce9f4a2517a2f2e71f975fee1f90ac3ace31
build/scripts/module/audio.lua
build/scripts/module/audio.lua
if (not _OPTIONS["united"]) then project "NazaraAudio" end files { "../include/Nazara/Audio/**.hpp", "../include/Nazara/Audio/**.inl", "../src/Nazara/Audio/**.hpp", "../src/Nazara/Audio/**.cpp" } if (os.is("windows")) then excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Nazara/Audio/Posix/*.cpp" } links ...
if (not _OPTIONS["united"]) then project "NazaraAudio" end defines "NAZARA_AUDIO_OPENAL" files { "../include/Nazara/Audio/**.hpp", "../include/Nazara/Audio/**.inl", "../src/Nazara/Audio/**.hpp", "../src/Nazara/Audio/**.cpp" } if (os.is("windows")) then excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Naza...
Fixed Audio module compilation
Fixed Audio module compilation Former-commit-id: 6ce67eacb51d71a1bd5f3e3e05a14a615c4b12ea
Lua
mit
DigitalPulseSoftware/NazaraEngine
62ec28f0be1b951342e5770c80c4bc0bb7182622
protocols/ppp/luasrc/model/network/proto_ppp.lua
protocols/ppp/luasrc/model/network/proto_ppp.lua
--[[ LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension 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://www.apache.o...
--[[ LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension 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://www.apache.o...
protocols/ppp: fix install state detection with netifd
protocols/ppp: fix install state detection with netifd
Lua
apache-2.0
schidler/ionic-luci,thesabbir/luci,palmettos/cnLuCI,tcatm/luci,aa65535/luci,LazyZhu/openwrt-luci-trunk-mod,cshore/luci,jchuang1977/luci-1,tcatm/luci,mumuqz/luci,maxrio/luci981213,981213/luci-1,deepak78/new-luci,openwrt-es/openwrt-luci,openwrt-es/openwrt-luci,jorgifumi/luci,palmettos/cnLuCI,artynet/luci,Hostle/luci,open...
94308493bd13ee2ff1eca06a6c05dbad987a05f7
deps/repl.lua
deps/repl.lua
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
repl: Fix error() calls with a non-string message breaking the repl
repl: Fix error() calls with a non-string message breaking the repl Fixes #898 `error()` calls with non-string messages will now output the following: ``` Welcome to the Luvit repl! > error(function() end) error with unexpected error message type (function), no stacktrace available > error() error with unexpected er...
Lua
apache-2.0
luvit/luvit,zhaozg/luvit,luvit/luvit,zhaozg/luvit
33d07f0316ffbd49ea6736c9cedf32d91fc76992
Resources/Scripts/Modules/ObjectLoad.lua
Resources/Scripts/Modules/ObjectLoad.lua
import('GlobalVars') import('Actions') function NewObject(id) function CopyActions(obj) obj.trigger = {} if obj.action ~= nil then local id for id = 1, #obj.action do if obj.action[id] ~= nil then obj.trigger[obj.action[id].trigger] = obj.action[id] end end end if obj.trigger.activa...
import('GlobalVars') import('Actions') function NewObject(id) function CopyActions(obj) obj.trigger = {} if obj.action ~= nil then local id for id = 1, #obj.action do if obj.action[id] ~= nil then obj.trigger[obj.action[id].trigger] = obj.action[id] end end end if obj.trigger.activa...
Fixed battery meter on right side of screen.
Fixed battery meter on right side of screen. Signed-off-by: Scott McClaugherty <8e7c5f3edf627752a626365ddad308cf01055c6e@gmail.com>
Lua
mit
prophile/xsera,prophile/xsera,adam000/xsera,adam000/xsera,prophile/xsera,prophile/xsera,adam000/xsera,prophile/xsera,adam000/xsera
01de24ddbec599bc3245aca8d1c1ca21382570a0
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 tls = require('tls') local timer = require('timer') local lineEmitter = LineEmitter:new() local port = 50041 local keyPem = [[ -----BEGIN RSA PRIVATE KEY----- MIICXQIBAA...
local net = require('net') local JSON = require('json') local fixtures = require('./') local LineEmitter = require('line-emitter').LineEmitter local tls = require('tls') local timer = require('timer') local lineEmitter = LineEmitter:new() local port = 50041 local send_schedule_changed_initial = 2000 local send_schedul...
monitoring: fixtures: server: move constants to top
monitoring: fixtures: server: move constants to top move the timer constants to the top of the file.
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
8b8004963c4810a4f44966ad61ae8da36c633ec9
tests/provodnik/titles.lua
tests/provodnik/titles.lua
require "sprites" require "theme" require "timer" local w, h local font local font_height local text = { { "ПРОВОДНИК", style = 1}, { }, { "Сюжет и код игры:", style = 2}, { "Петр Косых" }, { }, { "Иллюстрации:", style = 2 }, { "Петр Косых" }, { }, { "Музыка:", style = 2 }, { "Петр Советов" }, { }, { "Тес...
require "sprites" require "theme" require "timer" local w, h local font local font_height local text = { { "ПРОВОДНИК", style = 1}, { }, { "Сюжет и код игры:", style = 2}, { "Петр Косых" }, { }, { "Иллюстрации:", style = 2 }, { "Петр Косых" }, { }, { "Музыка:", style = 2 }, { "Петр Советов" }, { }, { "Тес...
titles fix
titles fix
Lua
mit
gl00my/stead3
e2f8c4e75517b8455fedb65b66463f1e4dea7707
testserver/item/chimney.lua
testserver/item/chimney.lua
-- Tree Script -- Envi require("base.common") require("content.chimney") module("item.chimney", package.seeall) -- UPDATE common SET com_script='item.chimney' WHERE com_itemid IN (268, 269); ChimneyListGerman = { "PLACEHOLDER.", }; ChimneyListEnglish = { "PLACEHOLDER.", }; function LookAtItemIdent(User,Item) ...
-- Tree Script -- Envi require("base.common") require("content.chimney") module("item.chimney", package.seeall) -- UPDATE common SET com_script='item.chimney' WHERE com_itemid IN (268, 269); ChimneyListGerman = { "PLACEHOLDER.", }; ChimneyListEnglish = { "PLACEHOLDER.", }; function LookAtItemIdent(User,Item) ...
fixed 'normal' lookat, special lookat needs work or should be removed
fixed 'normal' lookat, special lookat needs work or should be removed
Lua
agpl-3.0
vilarion/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content
a75ff198dcf8fddda1a8adc55ef343cd75aac1ee
lua/cache.lua
lua/cache.lua
-- Store the cache instance in a standalone lua file to cache it. local BACKEND_PREFIX = '/_' local cacher = require 'cacher' local redis = require 'redis' local http = require 'resty.http' local json = require 'cjson' local json_encode = json.encode local red = redis:new() local function hash_key () local key = ...
-- Store the cache instance in a standalone lua file to cache it. local BACKEND_PREFIX = '/_' local cacher = require 'cacher' local redis = require 'redis' local http = require 'resty.http' local json = require 'cjson' local json_encode = json.encode local json_decode = json.decode local red = redis:new() local fun...
lua: cache: fixes json.decode
lua: cache: fixes json.decode
Lua
mit
kaelzhang/lua-gaia,kaelzhang/lua-gaia
93a53d1e18d759169747f71606790c405d3fd17e
lua/tuple.lua
lua/tuple.lua
local ffi = require "ffi" local pktLib = require "packet" local eth = require "proto.ethernet" local ip4 = require "proto.ip4" local ip6 = require "proto.ip6" local module = {} ffi.cdef [[ struct ipv4_5tuple { uint32_t ip_dst; uint32_t ip_src; uint16_t port_dst; uint16_t port_src; ...
local ffi = require "ffi" local pktLib = require "packet" local eth = require "proto.ethernet" local ip4 = require "proto.ip4" local ip6 = require "proto.ip6" local module = {} ffi.cdef [[ struct ipv4_5tuple { uint32_t ip_dst; uint32_t ip_src; uint16_t port_dst; uint16_t port_src; ...
Fix string representation of 5-tuples
Fix string representation of 5-tuples
Lua
mit
emmericp/FlowScope
2241b35873fb4b3bfd799d0079d1cadd3c6bc58c
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
modules/admin-full: fixup newlines when storing sysupgrade.conf
modules/admin-full: fixup newlines when storing sysupgrade.conf
Lua
apache-2.0
8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci
343b755579fce253677caf6232a168de89aecf42
init.lua
init.lua
local framework = require('framework.lua') local Plugin = framework.Plugin local DataSource = framework.DataSource local Emitter = require('core').Emitter local stringutils = framework.string local math = require('math') local json = require('json') local net = require('net') -- TODO: This dependency will be moved to t...
local framework = require('framework.lua') local Plugin = framework.Plugin local DataSource = framework.DataSource local Emitter = require('core').Emitter local stringutils = framework.string local math = require('math') local json = require('json') local net = require('net') -- TODO: This dependency will be moved to t...
After fixing issues, some of meterics are getting data
After fixing issues, some of meterics are getting data
Lua
apache-2.0
boundary/boundary-plugin-openstack
268caf3a7ec821c659254dd4577d7608b5edb09d
modules/textadept/bookmarks.lua
modules/textadept/bookmarks.lua
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Bookmarks for the textadept module. -- There are several option variables used: -- MARK_BOOKMARK: The integer mark used to identify a bookmarked line. -- MARK_BOOKMARK_COLOR: The...
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- -- Bookmarks for the textadept module. -- There are several option variables used: -- MARK_BOOKMARK: The integer mark used to identify a bookmarked line. -- MARK_BOOKMARK_COLOR: The...
Fixed toggle bookmark bug, wrap searches; modules/textadept/bookmarks.lua
Fixed toggle bookmark bug, wrap searches; modules/textadept/bookmarks.lua
Lua
mit
rgieseke/textadept,rgieseke/textadept
f2154231ba321fc6df7695f4e66335470792ef9c
src/lgi.lua
src/lgi.lua
--[[-- Base lgi bootstrapper. Author: Pavel Holejsovsky Licence: MIT --]]-- local assert, setmetatable, getmetatable, type, pairs, pcall, string, table = assert, setmetatable, getmetatable, type, pairs, pcall, string, table local core = require 'lgi._core' local bit = require 'bit' module 'lgi' lo...
--[[-- Base lgi bootstrapper. Author: Pavel Holejsovsky Licence: MIT --]]-- local assert, setmetatable, getmetatable, type, pairs, pcall, string, table = assert, setmetatable, getmetatable, type, pairs, pcall, string, table local core = require 'lgi._core' local bit = require 'bit' module 'lgi' lo...
Fix thinkos in lua-side bootstrap struct parsing.
Fix thinkos in lua-side bootstrap struct parsing.
Lua
mit
pavouk/lgi,psychon/lgi,zevv/lgi
d2bc29cefd0263671fc1a01d3852d2ff491be539
resources/stdlibrary/stdfuncs.lua
resources/stdlibrary/stdfuncs.lua
function assert(v, message) end function collectgarbage(opt, arg) end function dofile(filename) end function error(message, level) end function getfenv(f) end function getmetatable(object) end function ipairs (t) end function load(func, optChunkname) end function loadfile (filename) end function loadstring (st...
function assert(v, message) end function collectgarbage(opt, arg) end function dofile(filename) end function error(message, level) end function getfenv(f) end function getmetatable(object) end function ipairs (t) end function load(func, optChunkname) end function loadfile (filename) end function loadstring (st...
add io.stdin/io.stdout to stdfuncs (fix #64)
add io.stdin/io.stdout to stdfuncs (fix #64)
Lua
apache-2.0
sylvanaar/IDLua,consulo/consulo-lua,sylvanaar/IDLua,sylvanaar/IDLua,consulo/consulo-lua,consulo/consulo-lua
48516b1ea7b8184e7e28d6a7f485cd3db22280aa
testserver/item/id_505_treasuremap.lua
testserver/item/id_505_treasuremap.lua
require("base.common") require("base.treasure") -- UPDATE common SET com_script='item.id_505_treasuremap' WHERE com_itemid IN (505); module("item.id_505_treasuremap", package.seeall) function LookAtItem(User, Item) local dir = base.treasure.getDirection( User, Item ); local distance = base.treasure.getDista...
require("base.common") require("base.treasure") -- UPDATE common SET com_script='item.id_505_treasuremap' WHERE com_itemid IN (505); module("item.id_505_treasuremap", package.seeall) function LookAtItem(User, Item) local dir = base.treasure.getDirection( User, Item ); local distance = base.treasure.getDista...
fixed lookat
fixed lookat
Lua
agpl-3.0
LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content
0af0a1598ec6bbd9fff2bf00768977c5cacd9b26
lib/resty/iputils.lua
lib/resty/iputils.lua
local ipairs, tonumber, tostring, type = ipairs, tonumber, tostring, type local bit = require("bit") local tobit = bit.tobit local lshift = bit.lshift local band = bit.band local bor = bit.bor local xor = bit.bxor local byte = string.byte local str_find = string.find local st...
local ipairs, tonumber, tostring, type = ipairs, tonumber, tostring, type local bit = require("bit") local tobit = bit.tobit local lshift = bit.lshift local band = bit.band local bor = bit.bor local xor = bit.bxor local byte = string.byte local str_find = string.find local st...
Allow /0 netmasks, fix signedness issue
Allow /0 netmasks, fix signedness issue
Lua
mit
hamishforbes/lua-resty-iputils
94863364a08da9c306166174782afc7d67fa340d
modules/admin-mini/luasrc/model/cbi/mini/network.lua
modules/admin-mini/luasrc/model/cbi/mini/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...
Fixed duplicate tables
Fixed duplicate tables
Lua
apache-2.0
deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci
2ee93255d37f94ad17fdeefb65aec914c2790cb9
[resources]/GTWgrouplogs/logs.lua
[resources]/GTWgrouplogs/logs.lua
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: El Med, Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.co...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: El Med, Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.co...
Fixing the DB error
Fixing the DB error it fixes the MySQL error coming out by checking if the Mysql host value is nil/"" then it will decide the data type it should connect to nd then it will connect according to that.
Lua
bsd-2-clause
404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG
d967ecd5775f1500a97f90151120fd69c85d3428
src/Model.lua
src/Model.lua
require 'cudnn' require 'src.BiLSTM' require 'src.BGRU' function createModel(sample_height, num_labels) local ks = {3, 3, 3, 3, 3, 3, 2} local ss = {1, 1, 1, 1, 1, 1, 1} local nm = {16, 16, 32, 32, 64, 128, 128} local nh = {256, 256, 256} function convBlock(depth_in, depth_out, size, stride, batch_norm) ...
require 'cudnn' require 'src.BiLSTM' require 'src.BGRU' function createModel(sample_height, num_labels) local ks = {3, 3, 3, 3, 3, 3, 2} local ss = {1, 1, 1, 1, 1, 1, 1} local nm = {16, 16, 32, 32, 64, 128, 128} local nh = {256} function convBlock(depth_in, depth_out, size, stride, batch_norm) batch_nor...
Fixed Model definition
Fixed Model definition
Lua
mit
jpuigcerver/Laia,jpuigcerver/Laia,jpuigcerver/Laia,jpuigcerver/Laia
68076827ac5c1db9bbfcc4f450ace2ec44037e37
kong/pdk/private/phases.lua
kong/pdk/private/phases.lua
local bit = require "bit" local band = bit.band local fmt = string.format local ngx_get_phase = ngx.get_phase local PHASES = { --init = 0x00000001, init_worker = 0x00000001, certificate = 0x00000002, --set = 0x00000004, rewrite = 0x00000010, access ...
local bit = require "bit" local band = bit.band local fmt = string.format local ngx_get_phase = ngx.get_phase local PHASES = { --init = 0x00000001, init_worker = 0x00000001, certificate = 0x00000002, --set = 0x00000004, rewrite = 0x00000010, access ...
fix(pdk) don't modify iterated table when building the phases
fix(pdk) don't modify iterated table when building the phases ### Summary > The behavior of next is undefined if, during the traversal, you assign > any value to a non-existent field in the table. You may however modify > existing fields. In particular, you may clear existing fields.
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
54b38b7fe8ec0a1b1199f8a9ec212441004e9924
packages/lime-system/files/usr/lib/lua/lime/config.lua
packages/lime-system/files/usr/lib/lua/lime/config.lua
#!/usr/bin/lua --! LibreMesh is modular but this doesn't mean parallel, modules are executed --! sequencially, so we don't need to worry about transactionality and all other --! stuff that affects parrallels database, at moment we don't need parallelism --! as this is just some configuration stuff and is not performan...
#!/usr/bin/lua --! LibreMesh is modular but this doesn't mean parallel, modules are executed --! sequencially, so we don't need to worry about transactionality and all other --! stuff that affects parrallels database, at moment we don't need parallelism --! as this is just some configuration stuff and is not performan...
config.lua: get_bool & defcnf hotfix
config.lua: get_bool & defcnf hotfix config.get_bool: If used with real boolean values like 1 or true instead of strings like "1" and "true" the function fails. config.get: when the default value is a array/table the print message fails
Lua
agpl-3.0
libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages
0c410e8cc0343a7b483f55bc04f9d6e36cd1ab62
packages/parallel.lua
packages/parallel.lua
local typesetterPool = {} local calculations = {} local folioOrder = {} local allTypesetters = function (f) local o = SILE.typesetter for k,v in pairs(typesetterPool) do SILE.typesetter = v f(k,v) end SILE.typesetter = o end local nulTypesetter = SILE.typesetter {} -- we ignore this nulTypesetter.outputLinesT...
local typesetterPool = {} local calculations = {} local folioOrder = {} local allTypesetters = function (f) local o = SILE.typesetter for k,v in pairs(typesetterPool) do SILE.typesetter = v f(k,v) end SILE.typesetter = o end local nulTypesetter = SILE.typesetter {} -- we ignore this nulTypesetter.outputLinesT...
Mitigate bug #457.
Mitigate bug #457.
Lua
mit
simoncozens/sile,alerque/sile,alerque/sile,alerque/sile,simoncozens/sile,neofob/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,neofob/sile,neofob/sile
262baf19b473f7018641807494aac15c0114929b
testserver/item/id_2207_wishingwell.lua
testserver/item/id_2207_wishingwell.lua
require("base.common") -- UPDATE common SET com_script='item.id_2207_wishingwell' WHERE com_itemid IN (2207); module("item.id_2207_wishingwell", package.seeall) function LookAtItem(User, Item) if ( Item.data == 666 ) then if (User:getPlayerLanguage() == 0) then world:itemInform(User,Item,"Wun...
require("base.common") -- UPDATE common SET com_script='item.id_2207_wishingwell' WHERE com_itemid IN (2207); module("item.id_2207_wishingwell", package.seeall) function LookAtItem(User, Item) if ( Item:getData("modifier") == "wishing well" ) then base.lookat.SetSpecialName(item, "Wunschbrunnen", "wishing well...
fixed itemLookAt and exchanged old data
fixed itemLookAt and exchanged old data
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content
7a26372075f4b34a83668d91671366c41bd25819
src/rules.lua
src/rules.lua
require 'Target' local system = require 'system' local mkpath = system.mkpath local P = {} local Rule = { init_stages = { 'unpack', 'patch' } } Rule.__index = Rule local function import_paths(filename) local o = {} table.insert(o, mkpath(jagen.dir, 'lib', filename)) for _, overlay in ipairs(string....
require 'Target' local system = require 'system' local mkpath = system.mkpath local P = {} local Rule = { init_stages = { 'unpack', 'patch' } } Rule.__index = Rule local function import_paths(filename) local o = {} table.insert(o, mkpath(jagen.dir, 'lib', filename)) for _, overlay in ipairs(string....
Fix template merge order in loadall
Fix template merge order in loadall
Lua
mit
bazurbat/jagen
540c98bf8e1ea43dfa00446e7edf454aa9880a42
init.lua
init.lua
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
Fix abort when redirecting stdout/stderr to file
Fix abort when redirecting stdout/stderr to file This is a hacky band-aid fix for a bigger problem that needs a more comprehensive solution. See https://github.com/luvit/luvit/issues/1094 Closes #1083, does not affect #1023
Lua
apache-2.0
luvit/luvit,zhaozg/luvit,luvit/luvit,zhaozg/luvit
f9ebc2cb029b878477a10de480ce6432a5a1a1f9
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. git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3972 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ch3n2k/luci,dtaht/cerowrt-luci-3.3,projectbismark/luci-bismark,freifunk-gluon/luci,Canaan-Creative/luci,yeewang/openwrt-luci,freifunk-gluon/luci,dtaht/cerowrt-luci-3.3,saraedum/luci-packages-old,stephank/luci,alxhh/piratenluci,8devices/carambola2-luci,Flexibity/luci,stephank/luci,saraedum/luci-packages-old,projectbisma...
736c1751ded2e350984db79a769c74b7fa95ad37
MMOCoreORB/bin/scripts/object/tangible/wearables/dress/dress_s35.lua
MMOCoreORB/bin/scripts/object/tangible/wearables/dress/dress_s35.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
[fixed] Mantis 4593: Grand Ball Gown crafted sockets
[fixed] Mantis 4593: Grand Ball Gown crafted sockets Change-Id: I14495aa08c54203c2585a7d6e6ef39813c1d8066
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege...
7331548909f8e6ca6aaaff3d0672b6d1ea631203
lib/wax-scripts/luaClass.lua
lib/wax-scripts/luaClass.lua
Object = { super = nil, init = function(self, ...) local instance = {} instance.super = self instance.__index = function(self, key) return self.super[key] end setmetatable(instance, instance) -- add all class meta functions to instance (I don't like how this is implemented!) for nam...
Object = { super = nil, subclass = function(self, ...) local subclass = {} subclass.super = self subclass.__index = function(self, key) return self.super[key] end setmetatable(subclass, subclass) -- add all class meta functions to instance (I don't like how this is implemented!) for...
fixed luaClass inheritence bug.
fixed luaClass inheritence bug.
Lua
mit
a20251313/wax,LiJingBiao/wax,1yvT0s/wax,hj3938/wax,qskycolor/wax,1yvT0s/wax,marinehero/wax,BITA-app/wax,dxd214/wax,dxd214/wax,BITA-app/wax,a20251313/wax,taobao-idev/wax,taobao-idev/wax,taobao-idev/wax,RoyZeng/wax,RoyZeng/wax,felipejfc/n-wax,felipejfc/n-wax,marinehero/wax,FlashHand/wax,qskycolor/wax,hj3938/wax,dxd214/wa...
c6fa23c4e5a563a23d5754d7416edf0ae39cfdc3
test/inspect_namespace_test.lua
test/inspect_namespace_test.lua
--[[------------------------------------------------------ dub.Inspector test ------------------ Test introspective operations with the 'namespace' group of classes. --]]------------------------------------------------------ require 'lubyk' local should = test.Suite('dub.Inspector - namespace') local base =...
--[[------------------------------------------------------ dub.Inspector test ------------------ Test introspective operations with the 'namespace' group of classes. --]]------------------------------------------------------ require 'lubyk' local should = test.Suite('dub.Inspector - namespace') local base =...
Fixed test
Fixed test
Lua
mit
Laeeth/dub,lubyk/dub,Laeeth/dub,lubyk/dub
8dae132b1c788eb9011ab7a906c1123337305f73
openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarms.lua
openwrt/package/linkmeter/luasrc/model/cbi/linkmeter/alarms.lua
require "luci.fs" require "luci.sys" require "luci.util" require "lmclient" local SCRIPT_PATH = "/usr/share/linkmeter/alarm-" local function isexec_cfgvalue(self) return luci.fs.access(SCRIPT_PATH .. self.fname, "x") and "1" end local function isexec_write(self, section, value) local curmode = luci.fs.stat(SCRIPT...
require "luci.fs" require "luci.sys" require "lmclient" local SCRIPT_PATH = "/usr/share/linkmeter/alarm-" local function isexec_cfgvalue(self) return luci.fs.access(SCRIPT_PATH .. self.config, "x") and "1" end local function isexec_write(self, section, value) self.value = value local curmode = luci.fs.stat(SCRI...
[lm] Fix writing of alarm script when no script existed previously, also fix mode write always writing
[lm] Fix writing of alarm script when no script existed previously, also fix mode write always writing
Lua
mit
shmick/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,Cap...
da0190afc460749a368cc5c5948ec51664f4129a
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...
modules/admin-full: fix dhcp page
modules/admin-full: fix dhcp page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5465 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
zwhfly/openwrt-luci,jschmidlapp/luci,Flexibity/luci,yeewang/openwrt-luci,ReclaimYourPrivacy/cloak-luci,ReclaimYourPrivacy/cloak-luci,phi-psi/luci,projectbismark/luci-bismark,freifunk-gluon/luci,Canaan-Creative/luci,freifunk-gluon/luci,8devices/carambola2-luci,jschmidlapp/luci,vhpham80/luci,gwlim/luci,ch3n2k/luci,Reclai...
c34347784a325a338948578ee8344926c34b2459
applications/luci-polipo/luasrc/model/cbi/polipo.lua
applications/luci-polipo/luasrc/model/cbi/polipo.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
applications/luci-polipo: fix polipo page
applications/luci-polipo: fix polipo page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6613 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
Flexibity/luci,saraedum/luci-packages-old,projectbismark/luci-bismark,gwlim/luci,vhpham80/luci,Canaan-Creative/luci,Canaan-Creative/luci,ReclaimYourPrivacy/cloak-luci,ReclaimYourPrivacy/cloak-luci,stephank/luci,gwlim/luci,Canaan-Creative/luci,jschmidlapp/luci,jschmidlapp/luci,ch3n2k/luci,jschmidlapp/luci,zwhfly/openwrt...
c27ff03198521d7edcc28f35747065e60a0ee259
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.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...
* luci/olsr: fix names of interfaces with type bridge
* luci/olsr: fix names of interfaces with type bridge
Lua
apache-2.0
deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci
8caf31b0f831b01b267f2f5c1643ceaf8e9aba22
apicast/src/oauth.lua
apicast/src/oauth.lua
local router = require 'router' local apicast_oauth = require 'oauth.apicast_oauth' local keycloak = require 'oauth.keycloak' local _M = { _VERSION = '0.0.2' } function _M.new() local oauth if keycloak.configured then oauth = keycloak.new() else oauth = apicast_oauth.new() end return oauth end fu...
local env = require 'resty.env' local router = require 'router' local apicast_oauth = require 'oauth.apicast_oauth' local keycloak = require 'oauth.keycloak' local oauth local _M = { _VERSION = '0.0.2' } function _M.new() local keycloak_configured = env.get('RHSSO_ENDPOINT') if keycloak_configured then oau...
Fix oauth.lua
Fix oauth.lua
Lua
mit
3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway,3scale/apicast
7196fdaa2497b92bb47a5a49bd82f732b90f4bcf
packages/raiselower/init.lua
packages/raiselower/init.lua
local base = require("packages.base") local package = pl.class(base) package._name = "raiselower" function package:registerCommands () self:registerCommand("raise", function (options, content) local height = options.height or 0 height = SILE.parseComplexFrameDimension(height) SILE.typesetter:pushHbox({...
local base = require("packages.base") local package = pl.class(base) package._name = "raiselower" local function raise (height, content) SILE.typesetter:pushHbox({ outputYourself = function (_, typesetter, _) typesetter.frame:advancePageDirection(-height) end }) SILE.process(content) SILE.typese...
fix(packages): Parse height argument to `\raise` / `\lower` as measurement (#1506)
fix(packages): Parse height argument to `\raise` / `\lower` as measurement (#1506) This is an old function that predates our SILE.length / SILE.measurement logic and units like `%fh` that are relative to the frame or page. It was being parsed as a frame dimension, which I assume was just a way to get user friendly ...
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
b862437068e3a2d5d618b30b2363ee4fe50fe53c
kong/plugins/azure-functions/schema.lua
kong/plugins/azure-functions/schema.lua
local typedefs = require "kong.db.schema.typedefs" return { name = "azure-functions", fields = { { run_on = typedefs.run_on_first }, { config = { type = "record", fields = { -- connection basics { timeout = { type = "number", default = 600000}, }, { ke...
local typedefs = require "kong.db.schema.typedefs" return { name = "azure-functions", fields = { { config = { type = "record", fields = { -- connection basics { timeout = { type = "number", default = 600000}, }, { keepalive = { type = "number", defaul...
fix(azure-functions) remove `run_on` field from plugin config schema (#10)
fix(azure-functions) remove `run_on` field from plugin config schema (#10) It is no longer needed as service mesh support is removed from Kong
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
4e2245ccda1edcff363088ae7dd1948eddf16c8d
applications/luci-minidlna/luasrc/model/cbi/minidlna.lua
applications/luci-minidlna/luasrc/model/cbi/minidlna.lua
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
applications/luci-minidlna: fix possible nil indexing if album art option is unset, only show one filename in placeholder
applications/luci-minidlna: fix possible nil indexing if album art option is unset, only show one filename in placeholder git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8548 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
freifunk-gluon/luci,freifunk-gluon/luci,eugenesan/openwrt-luci,freifunk-gluon/luci,8devices/carambola2-luci,jschmidlapp/luci,freifunk-gluon/luci,vhpham80/luci,vhpham80/luci,ch3n2k/luci,jschmidlapp/luci,stephank/luci,8devices/carambola2-luci,Canaan-Creative/luci,saraedum/luci-packages-old,Canaan-Creative/luci,ReclaimYou...
cd456ff616e0c2c18afef2753c01b957bd3a66e2
applications/luci-minidlna/luasrc/model/cbi/minidlna.lua
applications/luci-minidlna/luasrc/model/cbi/minidlna.lua
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
applications/luci-minidlna: fix possible nil indexing if album art option is unset, only show one filename in placeholder
applications/luci-minidlna: fix possible nil indexing if album art option is unset, only show one filename in placeholder
Lua
apache-2.0
NeoRaider/luci,shangjiyu/luci-with-extra,teslamint/luci,LazyZhu/openwrt-luci-trunk-mod,cshore-firmware/openwrt-luci,oneru/luci,lcf258/openwrtcn,maxrio/luci981213,urueedi/luci,chris5560/openwrt-luci,oneru/luci,thess/OpenWrt-luci,tobiaswaldvogel/luci,RedSnake64/openwrt-luci-packages,cshore-firmware/openwrt-luci,shangjiyu...
af3be1c6403b20faa9a5c3b6d9466052094a8beb
tests/test_waiter.lua
tests/test_waiter.lua
local levent = require "levent.levent" function t1() local waiter = levent.waiter() local timer = levent.get_hub().loop:timer(0.1) local value = "hello from waiter 1" timer:start(waiter.switch, waiter, value) levent.sleep(0.2) assert(waiter:get() == value) print(value) end function t2() ...
local levent = require "levent.levent" function t1() local waiter = levent.waiter() local timer = levent.get_hub().loop:timer(0.1) local value = "hello from waiter 1" timer:start(waiter.switch, waiter, value) levent.sleep(0.2) assert(waiter:get() == value) print(value) end function t2() ...
fix test waiter case
fix test waiter case
Lua
mit
xjdrew/levent