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 |
|---|---|---|---|---|---|---|---|---|---|
c671058015174f54d07b49aaf5b0fbad5263b15e | core/cairo-output.lua | core/cairo-output.lua | local lgi = require("lgi");
local cairo = lgi.cairo
local pango = lgi.Pango
if (not SILE.outputters) then SILE.outputters = {} end
local cr
local move -- See https://github.com/pavouk/lgi/issues/48
local sgs
SILE.outputters.cairo = {
init = function()
local surface = cairo.PdfSurface.create(SILE.outputFilename... | local lgi = require("lgi");
local cairo = lgi.cairo
local pango = lgi.Pango
local fm = lgi.PangoCairo.FontMap.get_default()
local pango_context = lgi.Pango.FontMap.create_context(fm)
if (not SILE.outputters) then SILE.outputters = {} end
local cr
local move -- See https://github.com/pavouk/lgi/issues/48
local sgs
SI... | Various fixes. | Various fixes. | Lua | mit | shirat74/sile,shirat74/sile,anthrotype/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,Nathan22Miles/sile,alerque/sile,Nathan22Miles/sile,alerque/sile,Nathan22Miles/sile,anthrotype/sile,anthrotype/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,simoncozens/sile,anthrotype/sile,Nathan22Miles/sile,simoncozens/sile... |
8b2e29eed92a6b25b62194b1ce4b638f71bc231a | src/system/RenderableSystem.lua | src/system/RenderableSystem.lua | --RenderableSystem.lua
--[[
The RenderableSystem maintains references to several game-objects, each called a Scene.
This facilitates the swapping of viewscreens such as different maps, interface screens, and so on.
The RenderableSystem draws the root game object, then its children in sequence, recursively
]]--
l... | --RenderableSystem.lua
--[[
The RenderableSystem maintains references to several game-objects, each called a Scene.
This facilitates the swapping of viewscreens such as different maps, interface screens, and so on.
The RenderableSystem draws the root game object, then its children in sequence, recursively
]]--
l... | fix text | fix text
| Lua | mit | Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400 |
6dfb195a71282d2cdd46bb061068e4fbbcf1193e | mods/soundset/init.lua | mods/soundset/init.lua | minetest.log("action","[mod soundset] Loading...")
sounds = {}
sounds.file = minetest.get_worldpath() .. "/sounds_config.txt"
sounds.gaindefault = { ["music"] = 50, ["ambience"] = 50, ["mobs"] = 50, ["other"] = 50 }
sounds.gainplayers = {}
sounds.set_sound = function(name, param)
if param == "" then
minetest.chat... | minetest.log("action","[mod soundset] Loading...")
sounds = {}
sounds.file = minetest.get_worldpath() .. "/sounds_config.txt"
sounds.gainplayers = {}
sounds.set_sound = function(name, param)
if param == "" then
minetest.chat_send_player(name, "/setsound <music|ambience|mobs|other> <number>")
return
end
local ... | fixed strange bug with table=table | fixed strange bug with table=table
error --> sounds.gainplayers[name] = sounds.gaindefault
"""
local _ = {}
_[1] = {["other"] = 50, ["ambience"] = 50, ["music"] = 70, ["mobs"] = 30}
return {["azerty"] = _[1], ["crabman3"] = _[1]}
"""
fixed --> sounds.gainplayers[name]= { ["music"] = 50, ["ambience"] = 50, ["mobs"] = 5... | Lua | unlicense | paly2/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,MinetestForFun/server... |
1501a65316fb9394d8f276c5ec65db66fa90cd00 | eval.lua | eval.lua | require 'torch'
require 'nn'
require 'LanguageModel'
require 'util.DataLoader'
torch.setdefaulttensortype('torch.FloatTensor')
local utils = require 'util.utils'
local cmd = torch.CmdLine()
cmd:option('-checkpoint', '')
cmd:option('-split', 'val')
cmd:option('-gpu', 0)
cmd:option('-gpu_backend', 'cuda')
cmd:optio... | require 'torch'
require 'nn'
require 'LanguageModel'
require 'util.DataLoader'
torch.setdefaulttensortype('torch.FloatTensor')
local utils = require 'util.utils'
local cmd = torch.CmdLine()
cmd:option('-checkpoint', '')
cmd:option('-split', 'val')
cmd:option('-gpu', 0)
cmd:option('-gpu_backend', 'cuda')
cmd:optio... | Fix eval for shuffle_data | Fix eval for shuffle_data
| Lua | mit | antihutka/torch-rnn |
1707347788b27b5c35bad86691c5caac47b2a788 | src_trunk/resources/realism-system/c_headbob.lua | src_trunk/resources/realism-system/c_headbob.lua |
function bobHead()
local logged = getElementData(getLocalPlayer(), "loggedin")
if (logged==1) then
for key, value in ipairs(getElementsByType("player")) do
if value == getLocalPlayer() then
local scrWidth, scrHeight = guiGetScreenSize()
local sx = scrWidth/2
... |
function bobHead()
local logged = getElementData(getLocalPlayer(), "loggedin")
if (logged==1) then
local scrWidth, scrHeight = guiGetScreenSize()
local sx = scrWidth/2
local sy = scrHeight/2
local x, y, z = getWorldFromScreenPosition(sx, sy, 10)
setPedLookAt(value, ... | FPS fix for head movement | FPS fix for head movement
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1641 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
84218f2c4142ccbaa14a2cf16da4ad890f157a1a | 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... | Flush streams on exit (fixes https://github.com/luvit/lit/issues/222) | Flush streams on exit (fixes https://github.com/luvit/lit/issues/222)
| Lua | apache-2.0 | luvit/luvit,zhaozg/luvit,luvit/luvit,zhaozg/luvit |
0e11f80cc7d1fcf53e7eb798956fad5c109e5476 | OvaleCooldown.lua | OvaleCooldown.lua | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012 Sidoine
Copyright (C) 2012, 2013 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
... | --[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012 Sidoine
Copyright (C) 2012, 2013 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
... | Fix arguments passed to state:GetCD(). | Fix arguments passed to state:GetCD().
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1208 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | eXhausted/Ovale,eXhausted/Ovale,ultijlam/ovale,ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale,Xeltor/ovale |
f1681464939a42534b6a26f07dd51083e6c4dcb8 | make/premake4.lua | make/premake4.lua | solution "Reaping2"
location "../build"
configurations { "Debug", "Release" }
configuration { "Debug" }
targetdir "../bin/debug"
configuration { "Release" }
targetdir "../bin/release"
if _ACTION == "clean" then
os.rmdir("../bin")
end
project "main"
language "C++"
ki... | solution "Reaping2"
location "../build"
configurations { "Debug", "Release" }
configuration { "Debug" }
targetdir "../bin/debug"
configuration { "Release" }
targetdir "../bin/release"
if _ACTION == "clean" then
os.rmdir("../bin")
end
project "main"
language "C++"
ki... | linux compile fix, yay apt-get install libxrandr-dev, libxi-dev, cmake you'll also have to install premake4 | linux compile fix, yay
apt-get install libxrandr-dev, libxi-dev, cmake
you'll also have to install premake4
| Lua | mit | weanti/Reaping2,HalalUr/Reaping2,HalalUr/Reaping2,Reaping2/Reaping2,MrPepperoni/Reaping2-1,weanti/Reaping2,ishtoo/Reaping2,abannerth/Reaping2,Reaping2/Reaping2,MrPepperoni/Reaping2-1,abannerth/Reaping2,ishtoo/Reaping2 |
852a4e5ec0d4177c788208b9b8c0988053d206a9 | lua/filters/fieldfix.lua | lua/filters/fieldfix.lua | -- From: https://github.com/hynd/heka-tsutils-plugins
-- 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 ... | -- From: https://github.com/hynd/heka-tsutils-plugins
-- 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 ... | lua/filters: fieldfix- define helper fn above fn call | lua/filters: fieldfix- define helper fn above fn call
| Lua | apache-2.0 | wxdublin/heka-clever-plugins |
1034bc67f7bee6833ec79a4cd58d1a4ea583f845 | lib/acid/rangeset.lua | lib/acid/rangeset.lua | --example, how to use
-- local ranges, err, errmsg = rangeset.new({{1, 2, "foo"}, {4, 5, "bar"}})
-- local v, err, errmsg = ranges:get(1)
--
local bisect = require('acid.bisect')
local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local _M = { _VERSION = '1.0' }
local mt = { __in... | --example, how to use
-- local ranges, err, errmsg = rangeset.new({{1, 2, "foo"}, {4, 5, "bar"}})
-- local v, err, errmsg = ranges:get(1)
--
local bisect = require('acid.bisect')
local strutil = require('acid.strutil')
local tableutil = require('acid.tableutil')
local _M = { _VERSION = '1.0' }
local mt = { __in... | fix rangeset cmp func | fix rangeset cmp func
| Lua | mit | baishancloud/lua-acid,baishancloud/lua-acid,baishancloud/lua-acid |
7e42653f80dfeb8d8aef044cb78e85cced125eb5 | lualib/http/httpc.lua | lualib/http/httpc.lua | local skynet = require "skynet"
local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local dns = require "skynet.dns"
local string = string
local table = table
local httpc = {}
local function request(interface, method, host, url, recvheader, header, conten... | local skynet = require "skynet"
local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local dns = require "skynet.dns"
local string = string
local table = table
local httpc = {}
local function request(interface, method, host, url, recvheader, header, conten... | fix #1057 | fix #1057
| Lua | mit | wangyi0226/skynet,sanikoyes/skynet,ag6ag/skynet,korialuo/skynet,icetoggle/skynet,pigparadise/skynet,korialuo/skynet,JiessieDawn/skynet,korialuo/skynet,xcjmine/skynet,xjdrew/skynet,jxlczjp77/skynet,hongling0/skynet,jxlczjp77/skynet,jxlczjp77/skynet,hongling0/skynet,bigrpg/skynet,bigrpg/skynet,cloudwu/skynet,pigparadise/... |
49f3c59faf5069d6b3e88d5b465d3ed3cda83e15 | quest/bathelor_113_wilderness.lua | quest/bathelor_113_wilderness.lua | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (113, 'quest.bathelor_113_wilderness');
require("base.common")
module("quest.bathelor_113_wilderness", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Title = {}
Title[GERMAN] = "Feuer ... | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (113, 'quest.bathelor_113_wilderness');
require("base.common")
module("quest.bathelor_113_wilderness", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Title = {}
Title[GERMAN] = "Feuer ... | Fixing the queststatus of bathelor | Fixing the queststatus of bathelor
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content |
65f589a7703c2e714f2059f7cc5799808a9daee2 | src/SparseClassifier.lua | src/SparseClassifier.lua | --
-- User: pat
-- Date: 9/1/15
--
package.path = package.path .. ";src/?.lua"
require 'CmdArgs'
require 'EncoderFactory'
require 'rnn'
require 'UniversalSchemaEncoder'
require 'UniversalSchemaRelationPooling'
require 'UniversalSchemaEntityEncoder'
require 'UniversalSchemaJointEncoder'
require 'TransEEncoder'
requir... | --
-- User: pat
-- Date: 9/1/15
--
package.path = package.path .. ";src/?.lua"
require 'CmdArgs'
require 'EncoderFactory'
require 'rnn'
require 'UniversalSchemaEncoder'
require 'UniversalSchemaRelationPooling'
require 'UniversalSchemaEntityEncoder'
require 'UniversalSchemaJointEncoder'
require 'TransEEncoder'
requir... | fix sparse ruining everythin | fix sparse ruining everythin
| Lua | mit | patverga/torch-relation-extraction,patverga/torch-relation-extraction,patverga/torch-relation-extraction |
b0eafeead56e81bbd9dda2656cdc841e863710fd | commands/auth.lua | commands/auth.lua | local core = require('core')()
local prompt = require('prompt')(require('pretty-print'))
local fs = require('coro-fs')
local env = require('env')
local log = require('log').log
local pathJoin = require('luvi').path.join
local config = core.config
local dirty = false
local function confirm(name, value)
if not value ... | local core = require('core')()
local prompt = require('prompt')(require('pretty-print'))
local fs = require('coro-fs')
local env = require('env')
local log = require('log').log
local pathJoin = require('luvi').path.join
local config = core.config
local dirty = false
local function confirm(name, value)
if not value ... | Fix paths in auth | Fix paths in auth
| Lua | apache-2.0 | squeek502/lit,1yvT0s/lit,luvit/lit,zhaozg/lit,james2doyle/lit |
0a48ff4e828dba66fa80ce177af63977c3eb430d | lua/wire/UpdateCheck.lua | lua/wire/UpdateCheck.lua | -- $Rev: 1621 $
-- $LastChangedDate: 2009-09-03 15:24:56 -0700 (Thu, 03 Sep 2009) $
-- $LastChangedBy: TomyLobo $
local rss_url = "http://www.wiremod.com:8060/changelog/~rss,feedmax=1/Wiremod/wire/rss.xml"
WireVersion = "1910" --manual revision, change this value to the revision-to-be once changes are commi... | -- $Rev: 1621 $
-- $LastChangedDate: 2009-09-03 15:24:56 -0700 (Thu, 03 Sep 2009) $
-- $LastChangedBy: TomyLobo $
local rss_url = "http://www.wiremod.com:8060/changelog/~rss,feedmax=1/Wiremod/wire/rss.xml"
WireVersion = "2114" --manual revision, change this value to the revision-to-be once changes are commi... | UpdateCheck.lua: Fixed keyboard being broken since last update, wire svn version detection no longer works | UpdateCheck.lua: Fixed keyboard being broken since last update, wire svn version detection no longer works
| Lua | apache-2.0 | immibis/wiremod,bigdogmat/wire,NezzKryptic/Wire,garrysmodlua/wire,CaptainPRICE/wire,notcake/wire,mms92/wire,Python1320/wire,dvdvideo1234/wire,rafradek/wire,wiremod/wire,thegrb93/wire,sammyt291/wire,mitterdoo/wire,Grocel/wire,plinkopenguin/wiremod |
77374bc194d3dab72da4e6e395eeeba995b2b642 | Modules/Shared/String/String.lua | Modules/Shared/String/String.lua | --- This module provides utility functions for strings
-- @module String
local String = {}
function String.trim(str, pattern)
pattern = pattern or "%s";
-- %S is whitespaces
-- When we find the first non space character defined by ^%s
-- we yank out anything in between that and the end of the string
-- Everythin... | --- This module provides utility functions for strings
-- @module String
local String = {}
function String.trim(str, pattern)
if not pattern then
return str:match("^%s*(.-)%s*$")
else
-- When we find the first non space character defined by ^%s
-- we yank out anything in between that and the end of the string... | Fix trim so it doesn't leak args/for performance | Fix trim so it doesn't leak args/for performance
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
0efbd6f731715711436644524331a138bd771c93 | MMOCoreORB/bin/scripts/screenplays/village/convos/elder_conv_handler.lua | MMOCoreORB/bin/scripts/screenplays/village/convos/elder_conv_handler.lua | local ObjectManager = require("managers.object.object_manager")
local CRYSTAL_OBJECT = "object/tangible/loot/quest/force_sensitive/force_crystal.iff"
villageElderConvoHandler = Object:new {}
function villageElderConvoHandler:getNextConversationScreen(pConversationTemplate, pPlayer, selectedOption, pConversingNpc)
l... | local ObjectManager = require("managers.object.object_manager")
local CRYSTAL_OBJECT = "object/tangible/loot/quest/force_sensitive/force_crystal.iff"
villageElderConvoHandler = Object:new {}
function villageElderConvoHandler:getNextConversationScreen(pConversationTemplate, pPlayer, selectedOption, pConversingNpc)
l... | [fixed] Jedi going down in jedistate when talking to Rohak (Mantis #6545 part deux) | [fixed] Jedi going down in jedistate when talking to Rohak (Mantis #6545
part deux)
Change-Id: I337ade7158dc65064f99862689b752106784b879
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo |
50f815281fabbf0c01c3c946c43c46cd954d90d3 | Wikilib-forms.lua | Wikilib-forms.lua | --[[
Funzioni di libreria per la gestione
delle forme alternative
--]]
local mw = require('mw')
local f = {}
local tab = require('Wikilib-tables') -- luacheck: no unused
local genUtil = require('Wikilib-gens')
local alt = require("AltForms-data")
--[[
Unisce le tabelle AltForms/data e UselessForms/data
gestendo a... | --[[
Funzioni di libreria per la gestione
delle forme alternative
--]]
local mw = require('mw')
local f = {}
local tab = require('Wikilib-tables') -- luacheck: no unused
local txt = require('Wikilib-strings') -- luacheck: no unused
local genUtil = require('Wikilib-gens')
local alt = require("AltForms-data")
--[[
... | Fast bugfix | Fast bugfix
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
9dc1ef7d94f7fba65e376c8416fa48a9412d5d73 | fbcunn/TemporalConvolutionFB.lua | fbcunn/TemporalConvolutionFB.lua | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'nn'
local TemporalConvolutionFB, parent =
torch.class('nn.TemporalConvolutionFB', 'nn.Module')
function TemporalConvolutionFB:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFra... | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'nn'
local TemporalConvolutionFB, parent =
torch.class('nn.TemporalConvolutionFB', 'nn.Module')
function TemporalConvolutionFB:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFra... | Update nn to 5989f82800a640ed0f5613c8ef3e417c4502661d and cunn to 64224a65eff88d1bfe5bc47d26a901ed8c0b4705. | Update nn to 5989f82800a640ed0f5613c8ef3e417c4502661d and cunn to 64224a65eff88d1bfe5bc47d26a901ed8c0b4705.
Summary:
Update nn and cunn.
Also added NN_HEAD and CUNN_HEAD for tracking upstream sync points; I wrote some scripts to do this sync automatically,
but didn't commit them yet because they probably need some res... | Lua | bsd-3-clause | facebook/fbcunn,facebook/fbcunn,facebook/fbcunn |
bc9ec2c6851065f3bab179307239fe744adb8e48 | lua/entities/gmod_starfall/init.lua | lua/entities/gmod_starfall/init.lua |
--[[
SF Entity
{
Inputs
Outputs
context
player
}
]]
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self.Inputs = WireLib.CreateI... |
--[[
SF Entity
{
Inputs
Outputs
context
player
}
]]
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self.Inputs = WireLib.CreateI... | [SF] Quick fix for ReadCell. If the chip is errored, ReadCell returns 0. | [SF] Quick fix for ReadCell. If the chip is errored, ReadCell returns 0.
| Lua | bsd-3-clause | Xandaros/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall |
8260f71a583de82212a2b5c5a446d93eca40a679 | docs/ntp/init-cool.lua | docs/ntp/init-cool.lua | uart.setup(1, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)
uart.write(1, "nodemcu loaded\n")
station_cfg = {}
station_cfg.ssid = "RON_G" -- SSID of your WiFi network
station_cfg.pwd = "xxxxxxxxxxxxxx" -- password of your WiFi network
station_cfg.auto = false
station_cfg.save = true
DHCP = 1
-- set your static netw... | uart.setup(1, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)
uart.write(1, "nodemcu loaded\n")
station_cfg = {}
station_cfg.ssid = "RON_G" -- SSID of your WiFi network
station_cfg.pwd = "xxxxxxxxxxxxxx" -- password of your WiFi network
station_cfg.auto = false
station_cfg.save = true
DHCP = 1
-- set your static netw... | ESP8266/NTP deep sleep script fix | ESP8266/NTP deep sleep script fix
| Lua | mit | zerog2k/stc_diyclock,zerog2k/stc_diyclock,zerog2k/stc_diyclock |
a865e486e646f72ad1f82fb8a8e7416f5d2cc420 | spec/assertions_spec.lua | spec/assertions_spec.lua | describe("Test Assertions", function()
it("Checks to see if tables 1 and 2 are the same", function()
local table1 = { derp = false}
local table2 = { derp = false}
assert.same(table1, table2)
end)
it("Checks to see if tables 1 and 2 are equal", function()
local table1 = { derp = false}
local t... | describe("Test Assertions", function()
it("Checks to see if tables 1 and 2 are the same", function()
local table1 = { derp = false}
local table2 = { derp = false}
assert.same(table1, table2)
end)
it("Checks same() assertion to handle nils properly", function()
assert.same(nil, nil)
assert.is_... | Added test to highlight a bug in comparing nils in the equals() and same() assertions | Added test to highlight a bug in comparing nils in the equals() and same() assertions
| Lua | mit | mpeterv/luassert,tst2005/lua-luassert,o-lim/luassert,ZyX-I/luassert |
60b0095e56c44969f87cf308b3130068ce917103 | lualib/sys/dns.lua | lualib/sys/dns.lua | local core = require "sys.core"
local socket = require "sys.socket"
local assert = assert
local sub = string.sub
local concat = table.concat
local pack = string.pack
local unpack = string.unpack
local format = string.format
local match = string.match
local gmatch = string.gmatch
local dns = {}
local A = 1
local CNAME ... | local core = require "sys.core"
local socket = require "sys.socket"
local assert = assert
local sub = string.sub
local concat = table.concat
local pack = string.pack
local unpack = string.unpack
local format = string.format
local match = string.match
local gmatch = string.gmatch
local dns = {}
local A = 1
local CNAME ... | dns fix incorrect weaktable | dns fix incorrect weaktable
| Lua | mit | findstr/silly |
043311e654999c6eeff6ad3dbdc074acbfd4c50a | lualib/mqueue.lua | lualib/mqueue.lua | local skynet = require "skynet"
local c = require "skynet.c"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
unpack = skynet.unpack,
dispatch = function(session, from, ...... | local skynet = require "skynet"
local c = require "skynet.c"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
unpack = skynet.unpack,
dispatch = function(session, from, ...... | bugfix: fork a new thread when message dispatch error | bugfix: fork a new thread when message dispatch error
| Lua | mit | zhaijialong/skynet,enulex/skynet,jiuaiwo1314/skynet,codingabc/skynet,ilylia/skynet,xinjuncoding/skynet,Zirpon/skynet,asanosoyokaze/skynet,xjdrew/skynet,longmian/skynet,JiessieDawn/skynet,microcai/skynet,cuit-zhaxin/skynet,your-gatsby/skynet,Zirpon/skynet,microcai/skynet,lawnight/skynet,plsytj/skynet,great90/skynet,yunG... |
bb7e2ae7dc0166ad6ab7fc04da5ea5756fa93d96 | GuemUICastingBarFrame.lua | GuemUICastingBarFrame.lua |
local AddonName, AddonTable = ...
local LSM = LibStub("LibSharedMedia-3.0")
_G[AddonName] = _G[AddonName] or LibStub("AceAddon-3.0"):NewAddon(AddonName)
local Addon = _G[AddonName]
local assert = assert
local type = type
local getmetatable = getmetatable
local CreateFrame = CreateFrame
local UIParent = UIParent
fun... |
local AddonName, AddonTable = ...
local LSM = LibStub("LibSharedMedia-3.0")
_G[AddonName] = _G[AddonName] or LibStub("AceAddon-3.0"):NewAddon(AddonName)
local Addon = _G[AddonName]
local assert = assert
local type = type
local getmetatable = getmetatable
local CreateFrame = CreateFrame
local UIParent = UIParent
fun... | fixed a bug making castbar randomly not show correctly | fixed a bug making castbar randomly not show correctly
| Lua | unlicense | Guema/gCastBars,Guema/GuemUICastBars |
f1d1551f39ee459f288d137eccea26eef19c7a75 | src/gui/ButtonAnimations.lua | src/gui/ButtonAnimations.lua | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local PropertyUtils = require("util.PropertyUtils")
local UIEvent = require("gui.UIEvent")
local ButtonAnimations = {}
local AnimationBase = class... | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local PropertyUtils = require("util.PropertyUtils")
local UIEvent = require("gui.UIEvent")
local ButtonAnimations = {}
local AnimationBase = class... | fix toggle button animation 2 | fix toggle button animation 2
| Lua | mit | Vavius/moai-framework,Vavius/moai-framework |
26f6dd6fef1d0dbfa8207a1214894812f351dc57 | pkg/torch/argtypes.lua | pkg/torch/argtypes.lua | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true,
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
return string.format([[
(function(...)
%s = {}
for i=%d,narg do
local... | torch.argtypes = {}
torch.argtypes["numbers"] = {
vararg = true, -- if needed, one can override it to false
check = function(self)
local idx = self.luaname:match('select%((%d+), %.%.%.%)')
if idx then -- ordered arguments
if self.vararg then -- can be (1, 2, 3) or... | argtypes: fixed and added functionalities for the "type" "numbers" | argtypes: fixed and added functionalities for the "type" "numbers"
| Lua | bsd-3-clause | torch/argcheck |
006b14b7558ff469daa3ff5e260efe606805ddf0 | tests/sample/security-rules.lua | tests/sample/security-rules.lua |
------------------------------------
-- Loading disscetors
------------------------------------
require("ipv4")
require("tcp")
require("http")
------------------------------------
-- Function definition
------------------------------------
local function getpayload(data)
payload = ''
for i = 1, #data do
payloa... |
------------------------------------
-- Loading disscetors
------------------------------------
require("ipv4")
require("tcp")
require("http")
------------------------------------
-- Function definition
------------------------------------
local function getpayload(data)
payload = ''
for i = 1, #data do
payloa... | Fix security rule configuration sample | Fix security rule configuration sample
| Lua | mpl-2.0 | lcheylus/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,Wingless-Archangel/haka,nabilbendafi/haka,haka-security/haka,haka-security/haka,haka-security/haka,Wingless-Archangel/haka,nabilbendafi/haka,lcheylus/haka,LubyRuffy/haka |
784b294223cc347b52daae45bdad949a997dc6d6 | orange/plugins/rate_limiting_for_every_value/handler.lua | orange/plugins/rate_limiting_for_every_value/handler.lua | local ipairs = ipairs
local type = type
local tostring = tostring
local utils = require("orange.utils.utils")
local orange_db = require("orange.store.orange_db")
local judge_util = require("orange.utils.judge")
local BasePlugin = require("orange.plugins.base_handler")
local plugin_config = require("orange.plugins.ra... | local ipairs = ipairs
local type = type
local tostring = tostring
local utils = require("orange.utils.utils")
local orange_db = require("orange.store.orange_db")
local judge_util = require("orange.utils.judge")
local BasePlugin = require("orange.plugins.base_handler")
local plugin_config = require("orange.plugins.ra... | fix bug lua 数组下表 从1开始 | fix bug lua 数组下表 从1开始
| Lua | mit | wuhuatianbao007/orange,jxskiss/orange,jxskiss/orange,sumory/orange,wuhuatianbao007/orange,wuhuatianbao007/orange,thisverygoodhhhh/orange,sumory/orange,sumory/orange,thisverygoodhhhh/orange,jxskiss/orange,thisverygoodhhhh/orange |
1920d700fd3b1a421e50f775b91715838267c5df | game/scripts/vscripts/items/item_urn_of_demons.lua | game/scripts/vscripts/items/item_urn_of_demons.lua | function modifier_item_urn_of_demons_aura_on_death(keys)
local urn_with_least_charges
for i = 0, 5 do
local current_item = keys.caster:GetItemInSlot(i)
if current_item then
local item_name = current_item:GetName()
if item_name == keys.ability:GetName() then
if not urn_with_least_charges then
urn_wi... | function modifier_item_urn_of_demons_aura_on_death(keys)
local urn_with_least_charges
for i = 0, 5 do
local current_item = keys.caster:GetItemInSlot(i)
if current_item then
local item_name = current_item:GetName()
if item_name == keys.ability:GetName() then
if not urn_with_least_charges then
urn_wi... | fix(items): Urn of Demons damage is affected by spell amplification | fix(items): Urn of Demons damage is affected by spell amplification
Fixes #91
| Lua | mit | ark120202/aabs |
2ccc3e8e47527948fb1e786a4f28d8010ca87775 | packages/lime-system/files/usr/lib/lua/lime/wireless.lua | packages/lime-system/files/usr/lib/lua/lime/wireless.lua | #!/usr/bin/lua
local config = require("lime.config")
local network = require("lime.network")
local utils = require("lime.utils")
local libuci = require("uci")
local fs = require("nixio.fs")
local iwinfo = require("iwinfo")
wireless = {}
wireless.limeIfNamePrefix="lm_"
wireless.wifiModeSeparator="-"
function wireles... | #!/usr/bin/lua
local config = require("lime.config")
local network = require("lime.network")
local utils = require("lime.utils")
local libuci = require("uci")
local fs = require("nixio.fs")
local iwinfo = require("iwinfo")
wireless = {}
wireless.limeIfNamePrefix="lm_"
wireless.wifiModeSeparator="-"
function wireles... | wireless: fix ignored freqs + default htmode | wireless: fix ignored freqs + default htmode
fix error due to local ignored freqs if 2.4ghz
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
358451800937a901eba6790861a48680037c8d73 | lib/switchboard_modules/lua_script_debugger/premade_scripts/t4/spi_loop_back.lua | lib/switchboard_modules/lua_script_debugger/premade_scripts/t4/spi_loop_back.lua | --This is an SPI example for the T4. It tests SPI functionality using the
--standard loop-back methidology where a user must connect the MISO and MOSI
--data lines together.
print ("T4 SPI Loop-Back Example")
SPI_Utils={}
function SPI_Utils.configure(self, cs, clk, miso, mosi, mode, speed, options, debug)
self.cs=... | --[[
Name: spi_loop_back.lua
Desc: This is an SPI example for the T4. It tests SPI functionality using
the standard loop-back methodology where a user must connect the MISO
and MOSI data lines together.
Note: See our T-Series SPI page for more detailed info on SPI settings:
... | Fixed up the formatting of the T4 SPI example | Fixed up the formatting of the T4 SPI example
| Lua | mit | chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager |
ca7c4fdfe0f736dbd6c3a5830258a9682d2df684 | plugins/database.lua | plugins/database.lua | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | fix database | fix database
| Lua | agpl-3.0 | xsolinsx/AISasha |
fb7f444d0286dd2a901aae2703d169b3963c6da4 | agents/monitoring/tests/net/init.lua | agents/monitoring/tests/net/init.lua | local table = require('table')
local async = require('async')
local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream
local misc = require('monitoring/default/util/misc')
local helper = require('../helper')
local timer = require('timer')
local fixtures = require('../fixtures')
l... | local table = require('table')
local async = require('async')
local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream
local misc = require('monitoring/default/util/misc')
local helper = require('../helper')
local timer = require('timer')
local fixtures = require('../fixtures')
l... | fix merge on counterTrigger | fix merge on counterTrigger
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
a6e8d783cb0dcecf8d029e8e1b33c07adba24add | missions/daredevil.lua | missions/daredevil.lua | return {
id='daredevil',
name='Daredevil: living on the edge',
commissionedby='spacecorp',
description = [[
Hello!
Are you interested in doing something dangerous and XTREME? Are you interested in doing that for shiploads of money?
Seek no further! SpaceCorp has a new reality show, in which contestants have to fl... | return {
id='daredevil',
name='Daredevil: living on the edge',
commissionedby='spacecorp',
description = [[
Hello!
Are you interested in doing something dangerous and XTREME? Are you interested in doing that for shiploads of money?
Seek no further! SpaceCorp has a new reality show, in which contestants have to fl... | Grammatical fixes in daredevil mission (thanks bartbes, for reporting) | Grammatical fixes in daredevil mission (thanks bartbes, for reporting)
| Lua | mit | gvx/space,gvx/space |
c8845e8d446071080d7f79e292e176f893b27340 | mods/farming/nodes.lua | mods/farming/nodes.lua | minetest.override_item("default:dirt", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt",
dry = "farming:soil",
wet = "farming:soil_wet"
}
})
minetest.override_item("default:dirt_with_grass", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt_with_grass",
dry = "farming:soil",
we... | minetest.override_item("default:dirt", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt",
dry = "farming:soil",
wet = "farming:soil_wet"
}
})
minetest.override_item("default:dirt_with_grass", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt_with_grass",
dry = "farming:soil",
we... | Fix desert_sand_soil dropping itself, and changed the descriptions | Fix desert_sand_soil dropping itself, and changed the descriptions
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
7d3f355c8e06f6411943ed32d9d51c55c0567a19 | packages/pullquote.lua | packages/pullquote.lua | SILE.require("packages/color")
SILE.require("packages/raiselower")
SILE.require("packages/rebox")
SILE.registerCommand("pullquote:font", function (_, _)
end, "The font chosen for the pullquote environment")
SILE.registerCommand("pullquote:author-font", function (_, _)
SILE.settings.set("font.style", "italic")
end, ... | SILE.require("packages/color")
SILE.require("packages/raiselower")
SILE.require("packages/rebox")
SILE.registerCommand("pullquote:font", function (_, _)
end, "The font chosen for the pullquote environment")
SILE.registerCommand("pullquote:author-font", function (_, _)
SILE.settings.set("font.style", "italic")
end, ... | fix(packages): Improve multi-paragraph pullquotes | fix(packages): Improve multi-paragraph pullquotes
This removes the stretched lines at the end of every paragraph but the
last, when a `pullquote` (from the `pullquote` package) contains several
paragraphs. It does not fix the bug mentioned in #865.
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
b5f916a02f5215ff65d3dcc8f430309ef57044bd | argcheck.lua | argcheck.lua | local env = require 'argcheck.env' -- retrieve argcheck environement
env.istype = function(obj, typename)
if (typename == "Dataframe") then
return torch.isTypeOf(obj, Dataframe)
end
-- Either a number or string
if (typename == "number|string") then
return torch.type(obj) == "number" or
torch.type(obj... | local env = require 'argcheck.env' -- retrieve argcheck environement
env.istype = function(obj, typename)
if (typename == "Dataframe") then
return torch.isTypeOf(obj, Dataframe)
end
-- Either a number or string
if (typename == "number|string") then
return torch.type(obj) == "number" or
torch.type(obj) == "... | Indentation fix for argcheck | Indentation fix for argcheck
| Lua | mit | AlexMili/torch-dataframe |
c8a46da97c9a669b18d78ca0e24879c1e480de5d | vi_mode_search.lua | vi_mode_search.lua | -- Handle the vim search emulation
-- Modeled on textadept's command_entry.lua
local M = {}
M.search_hl_indic = _SCINTILLA.next_indic_number()
local function set_colours()
buffer.indic_fore[M.search_hl_indic] = 0x00FFFF
buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX
buffer.ind... | -- Handle the vim search emulation
-- Modeled on textadept's command_entry.lua
local M = {}
M.search_hl_indic = _SCINTILLA.next_indic_number()
local function set_colours()
buffer.indic_fore[M.search_hl_indic] = 0x00FFFF
buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX
buffer.ind... | Remove a hacky workaround for 7.0 beta regex search problem, which was causing different problems (setting the WORD_START flag) now that the textadept issue is fixed. | Remove a hacky workaround for 7.0 beta regex search problem, which was
causing different problems (setting the WORD_START flag) now that the
textadept issue is fixed.
| Lua | mit | jugglerchris/textadept-vi,jugglerchris/textadept-vi,erig0/textadept-vi |
74bf8c2957820039d8e830e1f3ac584804f6d7ec | plugins/mod_roster.lua | plugins/mod_roster.lua |
local st = require "util.stanza"
local send = require "core.sessionmanager".send_to_session
local jid_split = require "util.jid".split;
local t_concat = table.concat;
local rm_remove_from_roster = require "core.rostermanager".remove_from_roster;
local rm_add_to_roster = require "core.rostermanager".add_to_roster;
lo... |
local st = require "util.stanza"
local jid_split = require "util.jid".split;
local t_concat = table.concat;
local rm_remove_from_roster = require "core.rostermanager".remove_from_roster;
local rm_add_to_roster = require "core.rostermanager".add_to_roster;
local rm_roster_push = require "core.rostermanager".roster_pu... | Fix mod_roster to use session.send for sending stanzas | Fix mod_roster to use session.send for sending stanzas
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
d1ec976464886f8e63b7440abbf1c74d8d8b8553 | site/api/compose.lua | site/api/compose.lua | --[[
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use ... | --[[
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use ... | Fix FROM header and MTA command so emails will get through. | Fix FROM header and MTA command so emails will get through.
This fixes #496. | Lua | apache-2.0 | jimjag/ponymail,jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,jimjag/ponymail,jimjag/ponymail |
62766910f70c487c42ded97b324b2fac20349037 | src_trunk/resources/irc/s_irc.lua | src_trunk/resources/irc/s_irc.lua | server = "irc.gtanet.com"
port = 6667
username = "ValhallaGaming"
username2 = "ValhallaGaming2"
channel = "#vgmta.admins"
pubchannel = "#mta"
password = "adminmtavg"
conn = nil
conn2 = nil
timer = nil
useSecond = false
function initIRC()
ircInit()
conn = ircOpen(server, port, username, channel, passw... | server = "irc.multitheftauto.com"
port = 6667
username = "ValhallaGaming"
username2 = "ValhallaGaming2"
channel = "#Valhalla.echo"
channeladmins = "#Valhalla.admins"
pubchannel = "#mta"
password = "adminmtavg"
conn = nil
conn2 = nil
timer = nil
useSecond = false
function initIRC()
ircInit()
conn = i... | Fixed irc | Fixed irc
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@543 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
738cc1b0f49bcc3c100f134196d875a7d9d615e4 | nvim/lua/plugins.lua | nvim/lua/plugins.lua | -- ensure packer.nvim is installed
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd("packadd packer.nvim")
end
... | -- ensure packer.nvim is installed
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd("packadd packer.nvim")
end
... | fix plugin loading order | fix plugin loading order
| Lua | mit | zhyu/dotfiles |
2a3410d735876a1ade47eaf3a1f8a32c997f11c2 | Skins/ModernGadgets/@Resources/Scripts/LoadSkin.lua | Skins/ModernGadgets/@Resources/Scripts/LoadSkin.lua | --[[
--------------------------------------------------
LOADSKIN.LUA
raiguard
v3.0.1
--------------------------------------------------
Release Notes:
v3.0.1 - 2018-10-28
- Fixed script crashing if called through inline LUA
v3.0.0 - 2018-10-28
- Redesigned script to simplify the required inputs
- Improved documentat... | --[[
--------------------------------------------------
LOADSKIN.LUA
raiguard
v3.0.1
--------------------------------------------------
Release Notes:
v3.0.1 - 2018-10-28
- Changed default toggle values back to the #toggleOn# and #toggleOff# variables
- Fixed script crashing if called through inline LUA
v3.0.0 - 201... | Fix loadskin changelog | Fix loadskin changelog
| Lua | mit | raiguard/ModernGadgets,raiguard/ModernGadgets,iamanai/ModernGadgets,raiguard/ModernGadgets,iamanai/ModernGadgets |
325485e3cff4adea35c3c6e5db7964c3b78b59a0 | net/xmppclient_listener.lua | net/xmppclient_listener.lua |
local logger = require "logger";
local lxp = require "lxp"
local init_xmlhandlers = require "core.xmlhandlers"
local sm_new_session = require "core.sessionmanager".new_session;
local connlisteners_register = require "net.connlisteners".register;
local t_insert = table.insert;
local t_concat = table.concat;
local t_c... |
local logger = require "logger";
local lxp = require "lxp"
local init_xmlhandlers = require "core.xmlhandlers"
local sm_new_session = require "core.sessionmanager".new_session;
local connlisteners_register = require "net.connlisteners".register;
local t_insert = table.insert;
local t_concat = table.concat;
local t_c... | Fix logging of disconnect reason, and also sending of unavailable presence on disconnect | Fix logging of disconnect reason, and also sending of unavailable presence on disconnect
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
c635aa3aca47dcf7116784d3dd2e433e6fe743b4 | src/main/resources/std/table.lua | src/main/resources/std/table.lua | -- Copyright (c) 2018. tangzx(love.tangzx@qq.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
--
-- Unless required by applicable law... | -- Copyright (c) 2018. tangzx(love.tangzx@qq.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
--
-- Unless required by applicable law ... | fix params, return types and doc | fix params, return types and doc
Check params and return types for rightness. | Lua | apache-2.0 | tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua |
b85c830564ac6417650ba23f24b63150003283cd | rbm.lua | rbm.lua | require('nn')
require('pl')
require('torch')
require('rbm-util')
require('rbm-regularization')
require('rbm-grads')
require ('socket') -- for timing
function rbmtrain(rbm,x_train,y_train,x_val,y_val,x_semisup)
-- train RBM
-- Reset gradient accums
-- Print rbm
--print(x_train)
--print(y_train)
--print(x_val)
--pri... | require('nn')
require('pl')
require('torch')
require('rbm-util')
require('rbm-regularization')
require('rbm-grads')
require ('socket') -- for timing
function rbmtrain(rbm,x_train,y_train,x_val,y_val,x_semisup)
-- train RBM
-- Reset gradient accums
-- Print rbm
--print(x_train)
--print(y_train)
--print(x_val)
--pri... | fix best rbm printing | fix best rbm printing
| Lua | bsd-3-clause | skaae/rbm_toolbox_lua,elezar/rbm_toolbox_lua |
737ddb8935135e2c1f6e7762f2a06998c59469ac | src/websocket/sync.lua | src/websocket/sync.lua | local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tools = require'websocket.tools'
local tinsert = table.insert
local tconcat = table.concat
local receive = function(self)
if self.state ~= 'OPEN' and not self.is_closing then
return nil,'wrong state'
end
local first_... | local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tools = require'websocket.tools'
local tinsert = table.insert
local tconcat = table.concat
local receive = function(self)
if self.state ~= 'OPEN' and not self.is_closing then
return nil,'wrong state'
end
local first_... | fix receive return codes on sock err, don't close again on multiple call to close | fix receive return codes on sock err, don't close again on multiple call to close
| Lua | mit | KSDaemon/lua-websockets,OptimusLime/lua-websockets,OptimusLime/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,enginix/lua-websockets,lipp/lua-websockets,lipp/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets |
935fe615aa8747c82039017fd03faff629a49bb7 | lib/px/block/pxtemplate.lua | lib/px/block/pxtemplate.lua | ---------------------------------------------
-- PerimeterX(www.perimeterx.com) Nginx plugin
----------------------------------------------
local M = {}
function M.load(px_config)
local _M = {}
local lustache = require "lustache"
local px_constants = require "px.utils.pxconstants"
local px_logger = r... | ---------------------------------------------
-- PerimeterX(www.perimeterx.com) Nginx plugin
----------------------------------------------
local M = {}
function M.load(px_config)
local _M = {}
local lustache = require "lustache"
local px_constants = require "px.utils.pxconstants"
local px_logger = r... | fixed config for fp in block template | fixed config for fp in block template
| Lua | mit | PerimeterX/perimeterx-nginx-plugin |
1ae79d6088bc8541d821afbcc7cf868429f5d3db | stdlib/misc/config.lua | stdlib/misc/config.lua | --- For working with mod configurations.
-- @module Misc.Config
-- @usage require('__stdlib__/stdlib/config/config')
---
-- @tfield function new
-- @tfield function get
-- @tfield function set
-- @tfield function delete
-- @tfield function is_set
-- @table Config
local M = {
__class = 'Config',
__index = requi... | --- For working with mod configurations.
-- @module Misc.Config
-- @usage require('__stdlib__/stdlib/config/config')
---
-- @tfield function new
-- @tfield function get
-- @tfield function set
-- @tfield function delete
-- @tfield function is_set
-- @table Config
local M = {
__class = 'Config',
__index = requi... | Fixes | Fixes
| Lua | isc | Afforess/Factorio-Stdlib |
8451c9a064fd14a521546eefbcc1a67854884d5e | mods/ITEMS/walls/init.lua | mods/ITEMS/walls/init.lua | --[[
Walls
--]]
walls = {}
walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
-- inventory node, and pole-type wall start item
minetest.register_node(wall_name, {
description = wall_desc,
drawtype = "nodebox",
node_box = {
type = "connected",
fixed = {{-1/4, -1/2, -1/4... | --[[
Walls
--]]
walls = {}
walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
-- inventory node, and pole-type wall start item
minetest.register_node(wall_name, {
description = wall_desc,
drawtype = "nodebox",
node_box = {
type = "connected",
fixed = {{-1/4, -1/2, -1/4... | Fix walls registration | Fix walls registration
| Lua | lgpl-2.1 | vlapsley/outback,vlapsley/outback |
95898598e99f87ff0e6c029f30f3e454a42edd61 | src/nodes/platform.lua | src/nodes/platform.lua | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
... | local Timer = require 'vendor/timer'
local Platform = {}
Platform.__index = Platform
function Platform.new(node, collider)
local platform = {}
setmetatable(platform, Platform)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
lo... | Fix line endings | Fix line endings
| Lua | mit | hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua |
77c45f1828f327ed29dda76d63f5df1b9cb6bc00 | character/TrackEffect.lua | character/TrackEffect.lua | module 'character'
local function fixpath(p)
p=string.gsub(p,'\\','/')
return p
end
local function stripExt(p)
return string.gsub( p, '%..*$', '' )
end
local function stripDir(p)
p=fixpath(p)
return string.match(p, "[^\\/]+$")
end
--------------------------------------------------------------------
CLASS: Even... | module 'character'
local function fixpath(p)
p=string.gsub(p,'\\','/')
return p
end
local function stripExt(p)
return string.gsub( p, '%..*$', '' )
end
local function stripDir(p)
p=fixpath(p)
return string.match(p, "[^\\/]+$")
end
--------------------------------------------------------------------
CLASS: Even... | [yaka]fix enemy creature may start attack action in hurt state; tweak hero defense sensitivity | [yaka]fix enemy creature may start attack action in hurt state; tweak hero defense sensitivity
| Lua | mit | tommo/mock |
21dcbb68baf960be2eeb267d4531fffac8257681 | nyagos.d/box.lua | nyagos.d/box.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
nyagos.key.C_o = function(this)
local word,pos = this:lastword()
word = string.gsub(word,'"','')
local wildcard = word.."*"
local list = nyagos.glob(wildcard)
if #list == 1 and list[1] == wildcard th... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
nyagos.key.C_o = function(this)
local word,pos = this:lastword()
word = string.gsub(word,'"','')
local wildcard = word.."*"
local list = nyagos.glob(wildcard)
if #list == 1 and list[1] == wildcard th... | box.lua: fix: space on tail was cut, when shortcut expansion failed | box.lua: fix: space on tail was cut, when shortcut expansion failed
| Lua | bsd-3-clause | nocd5/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos |
a1c8c13a822bf0d4c15675f196166da505886d3d | src/tools/gcc.lua | src/tools/gcc.lua | --
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
premake.tools.gcc = {}
local gcc = premake.tools.gcc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
... | --
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
premake.tools.gcc = {}
local gcc = premake.tools.gcc
local project = premake.project
local config = premake.config
--
-- Returns list of C preprocessor flags for a configuration.
--
... | Fix incorrect whitespace | Fix incorrect whitespace
| Lua | bsd-3-clause | annulen/premake,annulen/premake,annulen/premake,annulen/premake |
cd431fdf314c6f2130b14b51ac659ea9691a2421 | amd_tressfx_sample/src/SushiToLuaParseHook.lua | amd_tressfx_sample/src/SushiToLuaParseHook.lua |
--=================================================================================================
--
-- Author: Josh Barczak
-- 3D Application Research Group
-- ATI Research, Inc.
--
-- tolua++ parser hook which is used to work around things that the tolua parser screws up on.
--
--
--... |
--=================================================================================================
--
-- Author: Josh Barczak
-- 3D Application Research Group
-- ATI Research, Inc.
--
-- tolua++ parser hook which is used to work around things that the tolua parser screws up on.
--
--
--==========... | Fix up line endings in this one lua file | Fix up line endings in this one lua file
| Lua | mit | GPUOpen-Effects/TressFX,GPUOpen-Effects/TressFX,GPUOpen-Effects/TressFX |
9abf02a9e6df5f54c7221d1d4cec4e26ba00c1bd | catalog.d/ezoe.lua | catalog.d/ezoe.lua | nyagos.on_command_not_found = function(args)
nyagos.writerr(args[0]..": コマンドではない。\n")
return true
end
local fsObj = nyagos.ole.create_object_utf8("Scripting.FileSystemObject")
local cd = nyagos.alias.cd
nyagos.alias.cd = function(args)
local success=true
for i=1,#args do
local dir=arg... | nyagos.on_command_not_found = function(args)
nyagos.writerr(args[0]..": コマンドではない。\n")
return true
end
local cd = nyagos.alias.cd
nyagos.alias.cd = function(args)
local success=true
for i=1,#args do
local dir=args[i]
if dir:sub(1,1) ~= "-" and not dir:match("%.[lL][nN][kK]$") t... | Fixed ezoe.lua loaded unused Scripting.FileSystemObject | Fixed ezoe.lua loaded unused Scripting.FileSystemObject
| Lua | bsd-3-clause | hattya/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,zetamatta/nyagos,hattya/nyagos,tyochiai/nyagos,kissthink/nyagos,nocd5/nyagos,kissthink/nyagos,hattya/nyagos |
cc3b441240cf86a4a5c1307126bf27e4324f56c5 | boss.lua | boss.lua | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[1... | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[1... | Make wipe detection respect a disabled setting. | Make wipe detection respect a disabled setting.
This fixes issue 473.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,sheldon/epgp,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp |
f05a1a964f14634dbe5b3e623230131b22df1a75 | boss.lua | boss.lua | local mod = EPGP:NewModule("EPGP_Boss", "AceEvent-3.0", "AceTimer-3.0")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[15953] = "Grand Widow Faerlina",
[15952] = "Maexxna",
[16028] = "Patchwerk",
[15... | local mod = EPGP:NewModule("EPGP_Boss", "AceEvent-3.0", "AceTimer-3.0")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[15953] = "Grand Widow Faerlina",
[15952] = "Maexxna",
[16028] = "Patchwerk",
[15... | Add Archavon. This fixes issue 303. | Add Archavon. This fixes issue 303.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,sheldon/epgp |
c7aa1e494a4bc5ceccac7b3b3eb48d3fa70eb860 | plugins/unban.lua | plugins/unban.lua | --[[
Copyright 2017 Matthew Hesketh <wrxck0@gmail.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local unban = {}
local mattata = require('mattata')
local redis = require('mattata-redis')
function unban:init()
unban.commands = mattata.commands(
self.info.username
):comm... | --[[
Copyright 2017 Matthew Hesketh <wrxck0@gmail.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local unban = {}
local mattata = require('mattata')
local redis = require('mattata-redis')
function unban:init()
unban.commands = mattata.commands(
self.info.username
):comm... | I think this fixes it?? | I think this fixes it??
| Lua | mit | barreeeiroo/BarrePolice |
a4571c297ed2a6d5f421dd6c472d8281fc41a20d | frontend/apps/reader/modules/readertypeset.lua | frontend/apps/reader/modules/readertypeset.lua | local InputContainer = require("ui/widget/container/inputcontainer")
local ConfirmBox = require("ui/widget/confirmbox")
local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local Event = require("ui/event")
local DEBUG = require("dbg")
local T = r... | local InputContainer = require("ui/widget/container/inputcontainer")
local ConfirmBox = require("ui/widget/confirmbox")
local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local Event = require("ui/event")
local DEBUG = require("dbg")
local T = r... | read global default value for using embedded stylesheets | read global default value for using embedded stylesheets
The global configuration wasn't evaluated before.
Fixes #1364.
| Lua | agpl-3.0 | frankyifei/koreader,noname007/koreader,pazos/koreader,Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,lgeek/koreader,poire-z/koreader,ashang/koreader,chrox/koreader,robert00s/koreader,mihailim/koreader,NiLuJe/koreader,koreader/koreader,Frenzie/koreader,Hzj-jie/koreader,ashhher3/koreader,apletnev/koreader,mwoz123/kore... |
fa8368ef21c1896dd4d533eaad2442ec2d46e70e | app/modules/creationix/coro-tcp.lua | app/modules/creationix/coro-tcp.lua |
exports.name = "creationix/coro-tcp"
exports.version = "0.1.1"
exports.dependencies = {
"creationix/coro-channel@1.0.0"
}
local uv = require('uv')
local wrapStream = require('creationix/coro-channel').wrapStream
local function makeCallback()
local thread = coroutine.running()
return function (err, data)
if... |
exports.name = "creationix/coro-tcp"
exports.version = "0.1.2"
exports.dependencies = {
"creationix/coro-channel@1.0.0"
}
local uv = require('uv')
local wrapStream = require('creationix/coro-channel').wrapStream
local function makeCallback()
local thread = coroutine.running()
return function (err, data)
if... | Fix error handling in coro-tcp server | Fix error handling in coro-tcp server
| Lua | apache-2.0 | kaustavha/lit,lduboeuf/lit,DBarney/lit,kidaa/lit,squeek502/lit,luvit/lit,james2doyle/lit,zhaozg/lit,1yvT0s/lit |
cafaecbeb57771e2bfdc0c1501f2e16536a9646b | src/extensions/cp/blackmagic/resolve/main/PrimaryWindow.lua | src/extensions/cp/blackmagic/resolve/main/PrimaryWindow.lua | --- === cp.blackmagic.resolve.main.PrimaryWindow ===
---
--- Primary Window Module.
local require = require
local log = require "hs.logger".new "primaryWindow"
local axutils = require "cp.ui.axutils"
local Window = require "cp.ui.Window"
local Do = require "cp.rx.go.Do"
... | --- === cp.blackmagic.resolve.main.PrimaryWindow ===
---
--- Primary Window Module.
local require = require
--local log = require "hs.logger".new "primaryWindow"
local axutils = require "cp.ui.axutils"
local Window = require "cp.ui.Window"
local Do ... | Fixed @sticker-ci bugs | Fixed @sticker-ci bugs
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks |
212ce606b273c65a695e0d66ba76a9897dc60458 | mdb_test.lua | mdb_test.lua | local lightningmdb_lib=require "lightningmdb"
local lightningmdb = _VERSION=="Lua 5.2" and lightningmdb_lib or lightningmdb
local function pt(t)
for k,v in pairs(t) do
print(k,v)
end
end
local function ps(e)
print("--- env stat")
pt(e:stat())
print("---")
end
local function cursor_pairs(cursor_,key_,op... | local lightningmdb_lib=require "lightningmdb"
local lightningmdb = _VERSION=="Lua 5.2" and lightningmdb_lib or lightningmdb
local MDB = setmetatable({}, {__index = function(t, k)
return lightningmdb["MDB_" .. k]
end})
local function pt(t)
for k,v in pairs(t) do
print(k,v)
end
end
local function ps(e)
pri... | fix mdb_test.lua (MDB_ constants) | fix mdb_test.lua (MDB_ constants)
| Lua | mit | shmul/lightningmdb,shmul/lightningmdb,shmul/lightningdbm,catwell/lightningmdb |
f9736d7918081dfed1793fee1ccfd243b58fd4f7 | src/haka/lua/rule_group.lua | src/haka/lua/rule_group.lua |
local rule_group = class('RuleGroup')
function rule_group.method:__init(args)
self.rules = {}
self.init = args.init
self.continue = args.continue
self.fini = args.fini
end
function rule_group.method:rule(eval)
table.insert(self.rules, eval)
end
function rule_group.method:eval(...)
self.init(...)
for _, rule... |
local rule_group = class('RuleGroup')
function rule_group.method:__init(args, continue)
self.rules = {}
self.init = args.init or function () end
self.continue = args.continue or function () return true end
self.fini = args.fini or function () end
self.event_continue = continue
end
function rule_group.method:rul... | Fix rule group issues | Fix rule group issues
Fix problem when the rule group is created without continue or fini
functions. Also make sure to stop the rule evaluation if one of them
drop the packet or flow.
| Lua | mpl-2.0 | Wingless-Archangel/haka,LubyRuffy/haka,haka-security/haka,lcheylus/haka,Wingless-Archangel/haka,LubyRuffy/haka,haka-security/haka,lcheylus/haka,nabilbendafi/haka,lcheylus/haka,nabilbendafi/haka,nabilbendafi/haka,haka-security/haka |
58b6fb5591b9b7f883bd114bcd7088616fb3fd5d | nvim/.config/nvim/lua/lsp_conf.lua | nvim/.config/nvim/lua/lsp_conf.lua | require('nvim-lsp-installer').setup {}
local lsp = require('lspconfig')
-- configure keymaps on attach to a lsp server
local custom_attach = function(client, bufnr)
-- setup diagnostics toggle on and off
vim.g.diagnostics_visible = true
function _G.toggle_diagnostics()
if vim.g.diagnostics_visible... | require('nvim-lsp-installer').setup {}
local lsp = require('lspconfig')
-- configure keymaps on attach to a lsp server
local custom_attach = function(client, bufnr)
-- setup diagnostics toggle on and off
vim.g.diagnostics_visible = true
function _G.toggle_diagnostics()
if vim.g.diagnostics_visible... | [nvim] quickfix format lua code | [nvim] quickfix format lua code
| Lua | mit | voltux/dotfiles,voltux/dotfiles,voltux/dotfiles |
b2247488866cd13360060c9d7282362b8c4b09bb | util.lua | util.lua | --LinearNoBias from elements library
local LinearNoBias, Linear = torch.class('nn.LinearNoBias', 'nn.Linear')
function LinearNoBias:__init(inputSize, outputSize)
nn.Module.__init(self)
self.weight = torch.Tensor(outputSize, inputSize)
self.gradWeight = torch.Tensor(outputSize, inputSize)
self:reset()
end... | --LinearNoBias from elements library
local LinearNoBias, Linear = torch.class('nn.LinearNoBias', 'nn.Linear')
function LinearNoBias:__init(inputSize, outputSize)
nn.Module.__init(self)
self.weight = torch.Tensor(outputSize, inputSize)
self.gradWeight = torch.Tensor(outputSize, inputSize)
self:reset()
end... | fix util grad problem | fix util grad problem
| Lua | mit | jeffreyling/seq2seq-hard,jeffreyling/seq2seq-hard,jeffreyling/seq2seq-hard |
bf1ef67d1ef4bab56fd0805bcb8e2b51706ca4e7 | kong/cmd/config.lua | kong/cmd/config.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local pl_path = require "pl.path"
local pl_file = require "pl.file"
local kong_global = require "kong.global"
local declarative = require "kong.db.declarative"
local conf_loader = require "kong.conf_loader"
local kong_yml = require "kong.templates.ko... | fix(cmd) allow 'kong config init' to work without a prefix | fix(cmd) allow 'kong config init' to work without a prefix
From #4451
Signed-off-by: Thibault Charbonnier <3c2e9133e272cb489e2fea0c4328cf56b08e4226@me.com>
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
69f1cc431ce970365db46bf476cca53a093272b8 | tools/premake/globals.lua | tools/premake/globals.lua | -- setup global variables to configure the projects
platform_dir = ""
platform = ""
build_cmd = ""
link_cmd = ""
renderer_dir = ""
sdk_version = ""
shared_libs_dir = ""
pmtech_dir = "../"
function setup_from_options()
if _OPTIONS["renderer"] then
renderer_dir = _OPTIONS["renderer"]
end
if _OPTIONS... | -- setup global variables to configure the projects
platform_dir = ""
platform = ""
build_cmd = ""
link_cmd = ""
renderer_dir = ""
sdk_version = ""
shared_libs_dir = ""
pmtech_dir = "../"
function setup_from_options()
if _OPTIONS["renderer"] then
renderer_dir = _OPTIONS["renderer"]
end
if _OPTIONS... | fix osx build | fix osx build
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
0871d4129427cbf21849ac048b2d0e478b530f37 | hash.lua | hash.lua | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function lua2Celem(lelem)
local elem
if typ... | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function lua2Celem(lelem)
local elem
if typ... | hash: bug fix -- missing value for ffi.string | hash: bug fix -- missing value for ffi.string
| Lua | bsd-3-clause | jakezhaojb/tds,Moodstocks/tds,jakezhaojb/tds,torch/tds,jakezhaojb/tds,jakezhaojb/tds |
874ff7473e3a984892f8a1b4e38a0663d1660397 | hash.lua | hash.lua | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function setelem(elem, lelem)
if type(lelem) =... | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function setelem(elem, lelem)
if type(lelem) =... | hash: fix case of value is nil and key does not exist | hash: fix case of value is nil and key does not exist
| Lua | bsd-3-clause | Moodstocks/tds,torch/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds |
f11d4fbfac9359203ab6c980f97b9251a179c61c | redir_scripts/main.lua | redir_scripts/main.lua | -- Scratchbox2 universal redirector dynamic path translation scripts
-- Copyright (C) 2006, 2007 Lauri Leukkunen
-- Licensed under MIT license.
tools_root = os.getenv("SBOX_TOOLS_ROOT")
if (not tools_root) then
tools_root = "/scratchbox/sarge"
end
target_root = os.getenv("SBOX_TARGET_ROOT")
if (not target_root) then... | -- Scratchbox2 universal redirector dynamic path translation scripts
-- Copyright (C) 2006, 2007 Lauri Leukkunen
-- Licensed under MIT license.
tools_root = os.getenv("SBOX_TOOLS_ROOT")
if (not tools_root) then
tools_root = "/scratchbox/sarge"
end
target_root = os.getenv("SBOX_TARGET_ROOT")
if (not target_root) then... | Fix bugs in symlink leakage handling that affected at least libtool | Fix bugs in symlink leakage handling that affected at least libtool
Signed-off-by: Lauri Leukkunen <9b23c45cf0fb6926402fd5ded28029be7ec8bbef@rahina.org>
| Lua | lgpl-2.1 | lbt/scratchbox2,neeraj9/sbox2,lbt/scratchbox2,BinChengfei/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox,loganchien/scratchbox2,loganchien/scratchbox2,ldbox/ldbox,h113331pp/scratchbox2,neeraj9/sbox2,freedesktop-unofficial-mirror/sbox2,BinChengfei/scratchbox2,BinChengfei/scratchbox2,ldbox/ldbox,neeraj9/sbox2,freedesk... |
d91dfecb68ca2e8746e843da25595e4fc407bc03 | otouto/plugins/tagesschau_eil.lua | otouto/plugins/tagesschau_eil.lua | local tagesschau_eil = {}
tagesschau_eil.command = 'eil <sub/del>'
function tagesschau_eil:init(config)
tagesschau_eil.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('eil', true).table
tagesschau_eil.doc = [[*
]]..config.cmd_pat..[[eil* _sub_: Eilmeldungen abonnieren
*]]..config.cmd_pat..[[eil*... | local tagesschau_eil = {}
tagesschau_eil.command = 'eil <sub/del>'
function tagesschau_eil:init(config)
tagesschau_eil.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('eil', true).table
tagesschau_eil.doc = [[*
]]..config.cmd_pat..[[eil* _sub_: Eilmeldungen abonnieren
*]]..config.cmd_pat..[[eil*... | Tagesschau-Eilmeldungen Fix | Tagesschau-Eilmeldungen Fix
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
fb66f7059111d6b9fb0bbe13fbc7d003d592caf6 | init.lua | init.lua | require 'action'
require 'profile'
----------------------------------------------------------------------------------------------------
-- Settings
----------------------------------------------------------------------------------------------------
local mash = {'ctrl', 'alt'}
hs.window.animationDuration = 0.15
hs.gri... | require 'action'
require 'profile'
----------------------------------------------------------------------------------------------------
-- Settings
----------------------------------------------------------------------------------------------------
local mash = {'ctrl', 'alt'}
hs.window.animationDuration = 0.15
hs.gri... | Adjust Terminal window handling | Adjust Terminal window handling
Hopefully this will be the final fix.
| Lua | mit | mgee/hammerspoon-config |
8124a294050f7fa4854a18c5b130b8739ab90f5e | pomf.lua | pomf.lua | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
wget.callbacks.httploop_result = function(url, err, http_stat)
-- NEW for 2014: Slightly more verbose messages because people keep
-- complaining that it's not moving or not working
url_co... | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
wget.callbacks.httploop_result = function(url, err, http_stat)
status_code = http_stat["statcode"]
url_count = url_count + 1
io.stdout:write(url_count .. "=" .. status_code .. " " .. url["... | pomf.lua: another small fix | pomf.lua: another small fix | Lua | unlicense | ArchiveTeam/pomf-grab,ArchiveTeam/pomf-grab |
85f9c0fce51d10b04b04652fa09bc73feeb03ce5 | main.lua | main.lua | io = require("rpiIO")
socket = require("socket") --networking lib
util = require("util") --helper functions
addr = "*"
port = 1025
running = true -- global state. set to false to end program.
pins = {}
pins.servo = 9
pins.speedL = 10
pins.speedR = 11
pins.dirL = 5
pins.dirR = 6
commands = {}
---------- command func... | io = require("rpiIO")
socket = require("socket") --networking lib
util = require("util") --helper functions
addr = "*"
port = 1025
running = true -- global state. set to false to end program.
pins = {}
pins.servo = 9
pins.speedL = 10
pins.speedR = 11
pins.dirL = 5
pins.dirR = 6
commands = {}
local function sendStr... | fix typos and parens | fix typos and parens
| Lua | mit | o080o/mercury-robotics-2013 |
fb4926bc62c5c45fa0ee2ab90e345df113d3a4ab | commands/build.lua | commands/build.lua |
zpm.build.commands = {}
zpm.build.rcommands = {}
function zpm.build.commands.extractdir( targets, prefix )
prefix = prefix or "./"
if type(targets) ~= "table" then
targets = {targets}
end
for i, target in ipairs(targets) do
local zipFile = path.join( zpm.temp, "submodule.zip" )
... |
zpm.build.commands = {}
zpm.build.rcommands = {}
function zpm.build.commands.extractdir( targets, prefix )
prefix = prefix or "./"
if type(targets) ~= "table" then
targets = {targets}
end
for i, target in ipairs(targets) do
local zipFile = path.join( zpm.temp, "submodule.zip" )
... | Syntax fix | Syntax fix
| Lua | mit | Zefiros-Software/ZPM |
75327e3c354cd3ea76e1d19f298247c546cb0fdb | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | -- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.nut",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
title = "%H: Voltages on UPS \"%pi\"",
vlabel = "V",
number_format = "%5.1lfV",
data = {
instances = {
... | -- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.nut",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
title = "%H: Voltages on UPS \"%pi\"",
vlabel = "V",
number_format = "%5.1lfV",
data = {
instances = {
... | luci/statistics: Fix nut UPS graphs | luci/statistics: Fix nut UPS graphs
At some point since I last checked, the nut plugin for collectd changed the
names of the timeleft and percent datasets. Update the luci module to match
so that those graphs are generated correctly again.
Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel... | Lua | apache-2.0 | david-xiao/luci,RuiChen1113/luci,RuiChen1113/luci,david-xiao/luci,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,david-xiao/luci,db260179/openwrt-bpi-r1-luci,david-xiao/luci,david-xiao/luci,david-xiao/luci,RuiChen1113/luci,david-xiao/luci,Sakura-Winkey/LuCI,db260179/openwrt-bpi-r1-luci,db260179/openwrt-... |
4dfce8309ff65d7bc53323220f7cef042a230d37 | bin/unix/build.lua | bin/unix/build.lua | -- load functions --
local loadExtension = function (extensionsDir, extensionName)
package.path = package.path .. ";" .. extensionsDir .. "/" .. extensionName .. "/src/?.lua"
end
local loadPath = function (path)
package.path = package.path .. ";" .. path
end
local loadCPath = function (cpath)
package.cpath = pack... | -- load functions --
local loadExtension = function (extensionsDir, extensionName)
package.path = package.path .. ";" .. extensionsDir .. "/" .. extensionName .. "/src/?.lua"
end
local loadPath = function (path)
package.path = package.path .. ";" .. path
end
local loadCPath = function (cpath)
package.cpath = pack... | fix build | fix build
| Lua | bsd-2-clause | cyberz-eu/octopus,cyberz-eu/octopus |
04b42dfbbbd2d9874e159033764b023ea48514d5 | model.lua | model.lua | -- NOTE: nothing is atomic for now
local redis = require "redis"
local bcrypt = require "bcrypt"
local redismodel = require "redismodel"
-- monkey-patch required to make rocks loading work
local lr_fetch = require "luarocks.fetch"
local lr_path = require "luarocks.path"
local lr_deps = require "luarocks.deps"
lr_path... | -- NOTE: nothing is atomic for now
local redis = require "redis"
local bcrypt = require "bcrypt"
local redismodel = require "redismodel"
-- monkey-patch required to make rocks loading work
local lr_fetch = require "luarocks.fetch"
local lr_path = require "luarocks.path"
local lr_deps = require "luarocks.deps"
lr_path... | add a hack to make resty-redis return nil instead of ngx.null (fixes #10) | add a hack to make resty-redis return nil instead of ngx.null (fixes #10) | Lua | mit | catwell/lua-toolbox |
5ba95751805e6d1c1131e145a2ca2ee7e7fe1d21 | HexChat/mymsg.lua | HexChat/mymsg.lua | hexchat.register('MyMessage', '2', 'Properly show your own messages in ZNC playback')
hexchat.hook_print('Capability List', function (args)
if args[2]:find('znc.in/self%-message') then
hexchat.command('CAP REQ znc.in/self-message')
hexchat.hook_timer(1, function ()
-- Emit right after this event
hexchat.em... | hexchat.register('MyMessage', '2', 'Properly show your own messages in ZNC playback')
hexchat.hook_print('Capability List', function (args)
if args[2]:find('znc.in/self%-message') then
hexchat.command('CAP REQ znc.in/self-message')
ctx = hexchat.props.context
hexchat.hook_timer(1, function ()
-- Emit right ... | mymsg.lua: Fix cap requested emitting in wrong context | mymsg.lua: Fix cap requested emitting in wrong context
| Lua | mit | TingPing/plugins,TingPing/plugins |
bda76a729d3bf5279367b6afcd7ab365dccc898d | plugins/gImages.lua | plugins/gImages.lua | local doc = [[
/image <query>
Returns a randomized top result from Google Images. Safe search is enabled by default; use "/insfw" to disable it. NSFW results will not display an image preview.
]]
local triggers = {
'^/i[mage]*[nsfw]*[@'..bot.username..']*$',
'^/i[mage]*[nsfw]*[@'..bot.username..']* '
}
local acti... | local doc = [[
/image <query>
Returns a randomized top result from Google Images. Safe search is enabled by default; use "/insfw" to disable it. NSFW results will not display an image preview.
]]
local triggers = {
'^/i[mage]*[nsfw]*[@'..bot.username..']*$',
'^/i[mage]*[nsfw]*[@'..bot.username..']* '
}
local acti... | Fix Google Search Images | Fix Google Search Images | Lua | agpl-3.0 | TiagoDanin/SiD,barreeeiroo/BarrePolice,Brawl345/Brawlbot-v2,topkecleon/otouto,bb010g/otouto |
d5d5be9d621fcde03129cceb6a63f8b1f52c4a72 | RNN-train-sample/train.lua | RNN-train-sample/train.lua | -- Eugenio Culurciello
-- September 2016
-- RNN training test: ABBA / 1221 sequence detector
-- based on: https://raw.githubusercontent.com/karpathy/char-rnn/master/model/RNN.lua
require 'nn'
require 'nngraph'
require 'optim'
dofile('RNN.lua')
local model_utils = require 'model_utils'
torch.setdefaulttensortype('torc... | -- Eugenio Culurciello
-- September 2016
-- RNN training test: ABBA / 1221 sequence detector
-- based on: https://raw.githubusercontent.com/karpathy/char-rnn/master/model/RNN.lua
require 'nn'
require 'nngraph'
require 'optim'
dofile('RNN.lua')
local model_utils = require 'model_utils'
torch.setdefaulttensortype('torc... | fix to work with clone | fix to work with clone
| Lua | bsd-3-clause | e-lab/torch7-demos,e-lab/torch7-demos |
c14f0aa0bbe90188d403c3761740276bf62c83c2 | kong/cmd/vault.lua | kong/cmd/vault.lua | local kong_global = require "kong.global"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local log = require "kong.cmd.utils.log"
local DB = require "kong.db"
local assert = assert
local error = error
local print = print
local exit = os.exit
local fmt = string.format
local functi... | local kong_global = require "kong.global"
local conf_loader = require "kong.conf_loader"
local pl_path = require "pl.path"
local log = require "kong.cmd.utils.log"
local DB = require "kong.db"
local assert = assert
local error = error
local print = print
local exit = os.exit
local fmt = string.format
local functi... | fix(cli) add support for `-p`/`--prefix` option to `kong vault` command | fix(cli) add support for `-p`/`--prefix` option to `kong vault` command
### Summary
Adds support for `-p` and `--prefix` options to `kong vault` commands.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
6626912bb0d1e7f1b36ed49ca83b293ee08ed890 | core/inputs-texlike.lua | core/inputs-texlike.lua | SILE.inputs.TeXlike = {}
local epnf = require( "epnf" )
local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 )
SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1
SILE.inputs.TeXlike.parser = function (_ENV)
local _ = WS^0
local sep = lpeg.S(",;") * _
loca... | SILE.inputs.TeXlike = {}
local epnf = require( "epnf" )
local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 )
SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1
SILE.inputs.TeXlike.parser = function (_ENV)
local _ = WS^0
local sep = lpeg.S(",;") * _
loca... | Simplify “text” match in TeX-like grammar. Fixes #174. | Simplify “text” match in TeX-like grammar. Fixes #174. | Lua | mit | simoncozens/sile,alerque/sile,alerque/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile |
a915b0bdc80452ee768ad25b7e6911093265eb1f | plugins/lua/serialize/serialize.lua | plugins/lua/serialize/serialize.lua | local types = require "./serialize/types"
local encoders = {
boolean = function( v )
return string.pack( ">B", v and 1 or 0 )
end,
number = function( v )
return string.pack( ">n", v )
end,
integer = function( v )
return string.pack( ">j", v )
end,
string = function( v )
return string.pack( ">s4", v ... | local types = require "./serialize/types"
local encoders = {
boolean = function( v )
return string.pack( ">B", v and 1 or 0 )
end,
number = function( v )
return string.pack( ">n", v )
end,
integer = function( v )
return string.pack( ">j", v )
end,
string = function( v )
return string.pack( ">s4", v ... | Hacky fix for nested functions in cookies | Hacky fix for nested functions in cookies
| Lua | cc0-1.0 | mcd1992/hash.js,meepdarknessmeep/hash.js,ModMountain/hash.js,SwadicalRag/hash.js |
f0684dd3e8e546141ed5e71a9e9ecb78a244667b | premake5.lua | premake5.lua | solution "gluacacheextract"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
language "C++"
characterset "MBCS"
location "project"
targetdir "bin"
filter "platforms:x32"
architecture "x32"
filter "platforms:x64"
architecture "x64"
project "gluacacheextract"
kind "ConsoleApp"
targ... | solution "gluacacheextract"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
language "C++"
characterset "MBCS"
location "project"
targetdir "bin"
filter "platforms:x32"
architecture "x32"
filter "platforms:x64"
architecture "x64"
project "gluacacheextract"
kind "ConsoleApp"
targ... | fix linux build: specify -pthread linkage as we link statically with Bootil | fix linux build: specify -pthread linkage as we link statically with Bootil
| Lua | mit | HandsomeMatt/glua-cache-extract |
ea5a23bd9941637396b894900b7f2eadd123e2f2 | core/webserver.lua | core/webserver.lua | local util = require'util'
local httpserver = require'handler.http.server'
local ev = require'ev'
require'logging.console'
local log = logging.console()
local loop = ev.Loop.default
local server = nil
local webserver = {}
local handlers = {
['/favicon.ico'] = function(req, res)
-- return 404 Not found er... | local util = require'util'
local httpserver = require'handler.http.server'
local ev = require'ev'
require'logging.console'
local log = logging.console()
local loop = ev.Loop.default
local server = nil
local webserver = {}
local handlers = {
['/favicon.ico'] = function(req, res)
-- return 404 Not found error
res... | core: Fix indent of webserver. | core: Fix indent of webserver.
| Lua | mit | haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2 |
04b2d5977124a5f14f5fce1f97fda607c0e7e00c | lualib/sys/dns.lua | lualib/sys/dns.lua | local core = require "sys.core"
local socket = require "sys.socket"
local assert = assert
local sub = string.sub
local concat = table.concat
local pack = string.pack
local unpack = string.unpack
local format = string.format
local match = string.match
local gmatch = string.gmatch
local dns = {}
local A = 1
local CNAME ... | local core = require "sys.core"
local socket = require "sys.socket"
local assert = assert
local sub = string.sub
local concat = table.concat
local pack = string.pack
local unpack = string.unpack
local format = string.format
local match = string.match
local gmatch = string.gmatch
local dns = {}
local A = 1
local CNAME ... | dns fix ipv6 address generate | dns fix ipv6 address generate
| Lua | mit | findstr/silly |
36945b9aa52e68a55ea0c5d6b8e2fcd8a9688c44 | samples/gtk-demo/demo-uimanager.lua | samples/gtk-demo/demo-uimanager.lua | return function(parent, dir)
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local log = lgi.log.domain('uimanager-demo')
local function activate_action(action)
log.message('Action "%s" activated', action.name)
end
local function activate_radio_action(action)
log.message('Radio action "%s" selected', action.nam... | return function(parent, dir)
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local log = lgi.log.domain('uimanager-demo')
local function activate_action(action)
log.message('Action "%s" activated', action.name)
end
local function activate_radio_action(action)
log.message('Radio action "%s" selected', action.nam... | gtk-demo: fix uimanager demo, which assigned the same value to all accelerators | gtk-demo: fix uimanager demo, which assigned the same value to all accelerators
| Lua | mit | pavouk/lgi,psychon/lgi,zevv/lgi |
40880ecda5cc964fdfd97539c4272eb447dcd0c2 | xmake/actions/build/statistics.lua | xmake/actions/build/statistics.lua | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | fix build block | fix build block
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake |
567a6630266fd7ee8e838f0c07a0f7e83a32564c | tmps.lua | tmps.lua | local VARS = {}
if not ANA then
return -- isTmp=false for all vars
end
F = {
Dcl_var_pre = function (me)
local var = me.var
if var.cls then
VARS = {} -- org dcls eliminate all current possible tmps
return
end
if var.pre~='... | local VARS = {}
if not ANA then
return -- isTmp=false for all vars
end
F = {
Dcl_var_pre = function (me)
local var = me.var
if var.cls then
VARS = {} -- org dcls eliminate all current possible tmps
return
end
if var.pre~='... | (-) bug: tmps across emit INPUT | (-) bug: tmps across emit INPUT
| Lua | mit | Johnicholas/ceu,Johnicholas/ceu |
64addcc8418b8907ff2a5a8679d5f1e528e18372 | frontend/ui/ui.lua | frontend/ui/ui.lua | require "ui/geometry"
require "ui/device"
require "ui/inputevent"
require "ui/widget"
require "ui/screen"
require "settings" -- for DEBUG(), TODO: put DEBUG() somewhere else
-- initialize output module, this must be initialized before Input
Screen:init()
-- initialize the input handling
Input:init()
-- there is only... | require "ui/geometry"
require "ui/device"
require "ui/inputevent"
require "ui/widget"
require "ui/screen"
require "settings" -- for DEBUG(), TODO: put DEBUG() somewhere else
-- initialize output module, this must be initialized before Input
Screen:init()
-- initialize the input handling
Input:init()
-- there is only... | bugfix: fix increment of refresh count If full refresh is false and refresh count is FULL_REFRESH_COUNT - 1, every refresh becomes full refresh. This patch increases refresh count when a full refresh is performed no matter whether full refresh is requested. | bugfix: fix increment of refresh count
If full refresh is false and refresh count is FULL_REFRESH_COUNT - 1,
every refresh becomes full refresh. This patch increases refresh count
when a full refresh is performed no matter whether full refresh is
requested.
| Lua | agpl-3.0 | Hzj-jie/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,NiLuJe/koreader-base,poire-z/koreader,ashhher3/koreader,NiLuJe/koreader-base,Frenzie/koreader,koreader/koreader,frankyifei/koreader-base,Frenzie/koreader-base,ashang/koreader,houqp/koreader,apletnev/koreader-base,Markismus/koreader,koreader/koreader-base,H... |
d239e43302a1e91c467dced940825d5e62527156 | wget.lua | wget.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including w... | --[[ @cond ___LICENSE___
-- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including w... | Assert fix | Assert fix
| Lua | mit | Zefiros-Software/ZPM |
a1ec1adedc2802566ab8e493d524efeb046f5758 | src/syntax/lua/main.lua | src/syntax/lua/main.lua | -- Generate syntax highlighting for LOVE functions
package.path = package.path .. ';../love-api/love_api.lua;love-api/?.lua'
local api = require 'love-api/love_api'
local funcstr = ''
local typestr = ''
local callbackstr = ''
print( 'syntax include @loveconf <sfile>:p:h/love-conf.vim' )
local function extractData( t... | -- Generate syntax highlighting for LOVE functions
package.path = package.path .. ';../love-api/love_api.lua;love-api/?.lua'
local api = require 'love-api/love_api'
local funcstr = ''
local typestr = ''
local callbackstr = ''
print( 'syntax include @loveconf <sfile>:p:h/love-conf.vim' )
local function extractData( t... | Fixed #14 | Fixed #14
| Lua | mit | davisdude/vim-love-docs |
1a4fd48679b746e9edab4039440c253b57a4db61 | src/cli/config.lua | src/cli/config.lua | #!/usr/bin/env lua
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local args = require("lapp")(string.format([[
Duplicate an existing configuration for given environment.
Usage: kong config [options]
Options:
-c,--config (default %s) configuration file
-o,--output (default .) ... | #!/usr/bin/env lua
local cutils = require "kong.cli.utils"
local constants = require "kong.constants"
local args = require("lapp")(string.format([[
Duplicate an existing configuration for given environment.
Usage: kong config [options]
Options:
-c,--config (default %s) configuration file
-o,--output (default .) ... | fix: TEST and DEVELOPMENT run in ./nginx_tmp | fix: TEST and DEVELOPMENT run in ./nginx_tmp
| Lua | apache-2.0 | Kong/kong,kyroskoh/kong,xvaara/kong,ejoncas/kong,smanolache/kong,vzaramel/kong,shiprabehera/kong,akh00/kong,kyroskoh/kong,ccyphers/kong,isdom/kong,jerizm/kong,isdom/kong,beauli/kong,rafael/kong,Kong/kong,ind9/kong,ejoncas/kong,vzaramel/kong,Vermeille/kong,rafael/kong,streamdataio/kong,ind9/kong,Kong/kong,ajayk/kong,li-... |
a692b9e81fcab25b8d417328d5fc7bea9da12bbf | src/lua-factory/sources/grl-metrolyrics.lua | src/lua-factory/sources/grl-metrolyrics.lua | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | metrolyrics: Do not crash when parser fails | metrolyrics: Do not crash when parser fails
(lt-grilo-test-ui-0.2:8463): Grilo-WARNING **: [lua-library]
grl-lua-library.c:509: calling source callback function fail
(fetch_page_cb) grl-metrolyrics.lua:99:
attempt to index a nil value (local 'feed')'
https://bugzilla.gnome.org/show_bug.cgi?id=754275
| Lua | lgpl-2.1 | grilofw/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins |
92d4714e9a25ac011dcff2cf107a630cda5a597f | hostinfo/login.lua | hostinfo/login.lua | --[[
Copyright 2014 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2014 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix(HostInfo): login uses fs and not io | fix(HostInfo): login uses fs and not io
| Lua | apache-2.0 | virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-m... |
bd8acc96e14992236541add365b8d13206b4f714 | lunamark/writer/tex.lua | lunamark/writer/tex.lua | -- Generic TeX writer for lunamark
local gsub = string.gsub
local entities = require("lunamark.entities")
local TeX = {}
TeX.options = { containers = false }
TeX.sep = { interblock = {compact = "\n\n", default = "\n\n", minimal = "\n\n"},
container = { compact = "\n", default = "\n", minimal = "\n"}
... | -- Generic TeX writer for lunamark
local gsub = string.gsub
local entities = require("lunamark.entities")
local TeX = {}
TeX.options = { containers = false }
TeX.sep = { interblock = {compact = "\n\n", default = "\n\n", minimal = "\n\n"},
container = { compact = "\n", default = "\n", minimal = "\n"}
... | Fixed TeX escaping for UTF8 quotes and dashes. | Fixed TeX escaping for UTF8 quotes and dashes.
| Lua | mit | tst2005/lunamark,simoncozens/lunamark,jgm/lunamark,tst2005/lunamark,simoncozens/lunamark,tst2005/lunamark,jgm/lunamark,jgm/lunamark,simoncozens/lunamark |
e6993dd131272de5d88fdbed112bc89207414e09 | battery-widget/battery.lua | battery-widget/battery.lua | -------------------------------------------------
-- Battery Widget for Awesome Window Manager
-- Shows the battery status using the ACPI tool
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget
-- @author Pavel Makhov
-- @copyright 2017 Pavel Makhov
--... | -------------------------------------------------
-- Battery Widget for Awesome Window Manager
-- Shows the battery status using the ACPI tool
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget
-- @author Pavel Makhov
-- @copyright 2017 Pavel Makhov
--... | fix battery widget | fix battery widget
remove extra branch that broke acpi output with 'rate informration unavailable'
same fix as 95cc9b94 (#108) for batteryarc widget | Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.