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 |
|---|---|---|---|---|---|---|---|---|---|
97d2e3f2a3211e86705275898db8fa4b768c3c8e | modulefiles/Core/geant4/10.02.lua | modulefiles/Core/geant4/10.02.lua | help(
[[
This module loads Geant4 10.02. Geant4 is a detector simulator for HEP.
]])
whatis("Loads Geant4 10.02")
local version = "10.02"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/"..version
prepend_path("PATH", pathJoin(base, "bin"))
prepend_path("CPATH", pathJoin(base, "include"))
prepe... | help(
[[
This module loads Geant4 10.02. Geant4 is a detector simulator for HEP.
]])
whatis("Loads Geant4 10.02")
local version = "10.02"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/"..version
prepend_path("PATH", pathJoin(base, "bin"))
prepend_path("CPATH", pathJoin(base, "include"))
prepe... | Add minor fixes for Geant4 10.02 module | Add minor fixes for Geant4 10.02 module
| Lua | apache-2.0 | OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles |
742a3d85e38b570c53b4c189111bfacad12d22e8 | tests/tls-sni.lua | tests/tls-sni.lua | -- Tests Copas with a simple Echo server
--
-- Run the test file and the connect to the server using telnet on the used port.
-- The server should be able to echo any input, to stop the test just send the command "quit"
local port = 20000
local copas = require("copas")
local socket = require("socket")
local ssl = requ... | -- Tests Copas with a simple Echo server
--
-- Run the test file and the connect to the server using telnet on the used port.
-- The server should be able to echo any input, to stop the test just send the command "quit"
local port = 20000
local copas = require("copas")
local socket = require("socket")
local ssl = requ... | fix(test) sni test for Lua 5.1 | fix(test) sni test for Lua 5.1
| Lua | mit | keplerproject/copas |
52e95c07e2e4f252873027314fb1b9f331eb8db9 | lua/entities/gmod_wire_starfall_screen/init.lua | lua/entities/gmod_wire_starfall_screen/init.lua |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
local context = SF.CreateContext()
local screens = {}
util.AddNetworkString("starfall_screen_download")
util.AddNetworkString("starfall_screen_update")
... |
AddCSLuaFile('cl_init.lua')
AddCSLuaFile('shared.lua')
include('shared.lua')
include("starfall/SFLib.lua")
assert(SF, "Starfall didn't load correctly!")
local context = SF.CreateContext()
local screens = {}
util.AddNetworkString("starfall_screen_download")
util.AddNetworkString("starfall_screen_update")
... | [Fix] occasional error when sending screen code | [Fix] occasional error when sending screen code
...hopefully
Hopefully fixes #54
| Lua | bsd-3-clause | Ingenious-Gaming/Starfall,INPStarfall/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall |
23a9b6e1b03f801e61f475cc8ce1ff24043f6ec9 | userspace/falco/lua/output.lua | userspace/falco/lua/output.lua | local mod = {}
levels = {"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Informational", "Debug"}
mod.levels = levels
local outputs = {}
function mod.stdout(level, msg)
print (msg)
end
function mod.file_validate(options)
if (not type(options.filename) == 'string') then
error("File outp... | local mod = {}
levels = {"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Informational", "Debug"}
mod.levels = levels
local outputs = {}
function mod.stdout(level, msg)
print (msg)
end
function mod.file_validate(options)
if (not type(options.filename) == 'string') then
error("File outp... | Fix output methods that take configurations. | Fix output methods that take configurations.
The falco engine changes broke the output methods that take
configuration (like the filename for file output, or the program for
program output). Fix that by properly passing the options argument to
each method's output function.
| Lua | apache-2.0 | draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco |
f96ca354b74e59a25c45ed190dfcf1c0b0603c46 | examples/route_guide/route_guide_client.lua | examples/route_guide/route_guide_client.lua | --- Route guide example client.
-- route_guide_client.lua
require("init_package_path")
local grpc = require("grpc_lua.grpc_lua")
local db = require("db")
local inspect = require("inspect")
local SVC = "routeguide.RouteGuide"
local c_channel -- C `Channel` object
local kCoordFactor = 10000000.0
-- New stub on the sa... | --- Route guide example client.
-- route_guide_client.lua
require("init_package_path")
local grpc = require("grpc_lua.grpc_lua")
local db = require("db")
local inspect = require("inspect")
local SVC = "routeguide.RouteGuide"
local c_channel -- C `Channel` object
local kCoordFactor = 10000000.0
-- New stub on the sa... | Fix list_features_async(). | Fix list_features_async().
| Lua | bsd-3-clause | jinq0123/grpc-lua,jinq0123/grpc-lua,jinq0123/grpc-lua |
263309d0f353ea1e1333daab3145918540d8f533 | frontend/apps/reader/modules/readerlink.lua | frontend/apps/reader/modules/readerlink.lua | local InputContainer = require("ui/widget/container/inputcontainer")
local GestureRange = require("ui/gesturerange")
local LinkBox = require("ui/widget/linkbox")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Screen = require("device").screen
local Device = require("device")
local E... | local InputContainer = require("ui/widget/container/inputcontainer")
local GestureRange = require("ui/gesturerange")
local LinkBox = require("ui/widget/linkbox")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Screen = require("device").screen
local Device = require("device")
local E... | Add option to disable swipe to go back and add a menu entry "Go back". This should fix #1443. | Add option to disable swipe to go back
and add a menu entry "Go back".
This should fix #1443.
| Lua | agpl-3.0 | mihailim/koreader,robert00s/koreader,Frenzie/koreader,mwoz123/koreader,frankyifei/koreader,noname007/koreader,apletnev/koreader,poire-z/koreader,koreader/koreader,houqp/koreader,NiLuJe/koreader,poire-z/koreader,pazos/koreader,NiLuJe/koreader,lgeek/koreader,NickSavage/koreader,Frenzie/koreader,ashang/koreader,Hzj-jie/ko... |
da02f87964896881f28319917ec3822c325dd010 | game/scripts/vscripts/modules/illusions/illusions.lua | game/scripts/vscripts/modules/illusions/illusions.lua | Illusions = Illusions or {}
function Illusions:_copyAbilities(unit, illusion)
for slot = 0, unit:GetAbilityCount() - 1 do
local illusionAbility = illusion:GetAbilityByIndex(slot)
local unitAbility = unit:GetAbilityByIndex(slot)
if unitAbility then
local newName = unitAbility:GetAbilityName()
if illusionA... | Illusions = Illusions or {}
function Illusions:_copyAbilities(unit, illusion)
for slot = 0, unit:GetAbilityCount() - 1 do
local illusionAbility = illusion:GetAbilityByIndex(slot)
local unitAbility = unit:GetAbilityByIndex(slot)
if unitAbility then
local newName = unitAbility:GetAbilityName()
if illusionA... | fix(illusions): illusions have hero-only first spawn bonus items (#198) | fix(illusions): illusions have hero-only first spawn bonus items (#198)
* Illusions no longer spawn with TP scrolls or mangoes in their invventory
* Update illusions.lua
* Update illusions.lua
| Lua | mit | ark120202/aabs |
1dc4c8f4d8b196a7af180cb770b25495c4636a30 | core/hyphenator-liang.lua | core/hyphenator-liang.lua | local function addPattern(h, p)
local t = h.trie;
bits = SU.splitUtf8(p)
for i = 1,#bits do char = bits[i]
if not char:find("%d") then
if not(t[char]) then t[char] = {} end
t = t[char]
end
end
t["_"] = {};
local lastWasDigit = 0
for i = 1,#bits do char = bits[i]
if char:find("%d") ... | local function addPattern(h, p)
local t = h.trie;
bits = SU.splitUtf8(p)
for i = 1,#bits do char = bits[i]
if not char:find("%d") then
if not(t[char]) then t[char] = {} end
t = t[char]
end
end
t["_"] = {};
local lastWasDigit = 0
for i = 1,#bits do char = bits[i]
if char:find("%d") ... | (Undocumented) command to add hyphenation exceptions. Fixes #265 | (Undocumented) command to add hyphenation exceptions. Fixes #265 | Lua | mit | neofob/sile,neofob/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile |
dfb2d225e16d94c48ddd310a7e7b8a2adc14eab7 | NoisyReLU.lua | NoisyReLU.lua | local NoisyReLU, parent = torch.class('nn.NoisyReLU','nn.Module')
function NoisyReLU:__init(sparsityFactor, threshold_lr, alpha_range, std)
-- Params
-- sparsityFactor: the micro sparsity of signals through each neuron
-- threshold_lr: the rate for learning the optimum threshold for each neuron
-- ... | local NoisyReLU, parent = torch.class('nn.NoisyReLU','nn.Module')
function NoisyReLU:__init(sparsityFactor, threshold_lr, alpha_range, std)
-- Params
-- sparsityFactor: the micro sparsity of signals through each neuron
-- threshold_lr: the rate for learning the optimum threshold for each neuron
-- ... | fixed NoisyReLU.noise bug | fixed NoisyReLU.noise bug
| Lua | bsd-3-clause | LinusU/cunnx,nicholas-leonard/cunnx |
fb9561784a75de0043bb00e12c340ab74b3fd5f8 | init.lua | init.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix: read correct argv field for pidfile | fix: read correct argv field for pidfile
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-m... |
d54414e0ba1758c8056e67e16ffe9e2edbd87e8f | tests/test.lua | tests/test.lua | -- Prosody IM v0.3
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
function run_all_tests()
dotest "util.jid"
dotest "util.multitable"
dotest "core.stanza_router"... | -- Prosody IM v0.3
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
function run_all_tests()
dotest "util.jid"
dotest "util.multitable"
dotest "core.stanza_router"... | Fixed tests/test.lua to work on Windows | Fixed tests/test.lua to work on Windows
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
396e2510c1cd64047c0a2a0804db9fb5ab649c43 | OS/DiskOS/boot.lua | OS/DiskOS/boot.lua | --Building the peripherals APIs--
local perglob = {GPU = true, CPU = true, Keyboard = true} --The perihperals to make global not in a table.
local _,perlist = coroutine.yield("BIOS:listPeripherals")
for peripheral,funcs in pairs(perlist) do
local holder
if perglob[peripheral] then
holder = _G
else
--Re... | --Building the peripherals APIs--
local perglob = {GPU = true, CPU = true, Keyboard = true} --The perihperals to make global not in a table.
local _,perlist = coroutine.yield("BIOS:listPeripherals")
for peripheral,funcs in pairs(perlist) do
local holder
if perglob[peripheral] then
holder = _G
else
--Re... | Bugfix | Bugfix | Lua | mit | RamiLego4Game/LIKO-12 |
3e3f6d46e2c347f35912eaf9916d5a086dca3f8c | OS/DiskOS/Programs/pastebin.lua | OS/DiskOS/Programs/pastebin.lua | --This program is based on ComputerCraft one: https://github.com/dan200/ComputerCraft/blob/master/src/main/resources/assets/computercraft/lua/rom/programs/http/pastebin.lua
local term = require("C://terminal")
local function printUsage()
color(9) print("Usages:") color(7)
print("pastebin put <filename>")
print(... | --This program is based on ComputerCraft one: https://github.com/dan200/ComputerCraft/blob/master/src/main/resources/assets/computercraft/lua/rom/programs/http/pastebin.lua
local term = require("C://terminal")
local function printUsage()
color(9) print("Usages:") color(7)
print("pastebin put <filename>")
print(... | Bugfixes | Bugfixes
| Lua | mit | RamiLego4Game/LIKO-12 |
7e719a3fd0ee7a220920f6609300a39d9f21ffc9 | lib/resty/chash/server.lua | lib/resty/chash/server.lua | local jchash = require "resty.chash.jchash"
local ok, new_table = pcall(require, "table.new")
if not ok then
new_table = function (narr, nrec) return {} end
end
local function svname(server)
-- @server: {addr, port, id}
-- @return: concat the addr and port with ":" as seperator
return server[1] .. ":"... | local jchash = require "resty.chash.jchash"
local ok, new_table = pcall(require, "table.new")
if not ok then
new_table = function (narr, nrec) return {} end
end
local function svname(server)
-- @server: {addr, port, id}
-- @return: concat the addr and port with ":" as seperator
return string.format("%... | fix snname func, convert all data to string before concat | fix snname func, convert all data to string before concat
| Lua | mit | ruoshan/lua-resty-jump-consistent-hash,ruoshan/lua-resty-jump-consistent-hash |
0ccd128622327417649bd83aad6eda088b2f7dfe | pages/shop/checkout/post.lua | pages/shop/checkout/post.lua | function post()
if not app.Shop.Enabled then
http:redirect("/")
return
end
if not session:isLogged() then
http:redirect("/subtopic/login")
return
end
local cart = session:get("shop-cart")
if cart == nil then
http:redirect("/")
return
end
... | function post()
if not app.Shop.Enabled then
http:redirect("/")
return
end
if not session:isLogged() then
http:redirect("/subtopic/login")
return
end
local cart = session:get("shop-cart")
if cart == nil then
http:redirect("/")
return
end
... | Shop checkout | Shop checkout
Fix a typo which caused points to not get removed
Empty cart after checkout
| Lua | mit | Raggaer/castro,Raggaer/castro,Raggaer/castro |
6db3ca42966c8b1e22b2df2cddee556653b5b710 | Modules/Shared/TimeSync/TimeSyncService.lua | Modules/Shared/TimeSync/TimeSyncService.lua | --- Syncronizes time
-- @module TimeSyncService
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local RunService = game:GetService("RunService")
local GetRemoteEvent = require("GetRemoteEvent")
local GetRemoteFunction = require("GetRemoteFunction")
local MasterClock = require(... | --- Syncronizes time
-- @module TimeSyncService
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local RunService = game:GetService("RunService")
local GetRemoteEvent = require("GetRemoteEvent")
local GetRemoteFunction = require("GetRemoteFunction")
local MasterClock = require(... | Fix time sync | Fix time sync
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
f1491ad1d1df3e0b4d22af8329c95106e794ba01 | MCServer/Plugins/DiamondMover/DiamondMover.lua | MCServer/Plugins/DiamondMover/DiamondMover.lua |
-- DiamondMover.lua
-- An example Lua plugin using the cBlockArea object
-- When a player rclks with a diamond in their hand, an area around the clicked block is moved in the direction the player is facing
-- Global variables
MOVER_SIZE_X = 4;
MOVER_SIZE_Y = 4;
MOVER_SIZE_Z = 4;
function Initialize(Plugin)
... |
-- DiamondMover.lua
-- An example Lua plugin using the cBlockArea object
-- When a player rclks with a diamond in their hand, an area around the clicked block is moved in the direction the player is facing
-- Global variables
MOVER_SIZE_X = 4;
MOVER_SIZE_Y = 4;
MOVER_SIZE_Z = 4;
function Initialize(Plugin)
... | Fixed diamond mover plugin | Fixed diamond mover plugin
| Lua | apache-2.0 | mmdk95/cuberite,jammet/MCServer,Frownigami1/cuberite,Tri125/MCServer,linnemannr/MCServer,Fighter19/cuberite,nicodinh/cuberite,zackp30/cuberite,guijun/MCServer,kevinr/cuberite,electromatter/cuberite,tonibm19/cuberite,nichwall/cuberite,HelenaKitty/EbooMC,HelenaKitty/EbooMC,birkett/cuberite,bendl/cuberite,marvinkopf/cuber... |
0512da959c3c3cf21d656a01fd7439efda7af222 | KataAnimalQuiz.lua | KataAnimalQuiz.lua | #! /usr/bin/lua
-- utils
function read_yn()
local resp
repeat
resp = io.read()
until (resp == 'y') or (resp == 'n')
return resp
end
-- Animal ---------------------
local Animal = {}
Animal.__index = Animal
function Animal.create(name)
local a = {}
setmetatable(a, Animal)
a.name =... | #! /usr/bin/lua
-- utils
function read_yn()
local resp
repeat
resp = io.read()
until (resp == 'y') or (resp == 'n')
return resp
end
-- Animal ---------------------
local Animal = {}
Animal.__index = Animal
function Animal.create(name)
local a = {}
setmetatable(a, Animal)
a.name =... | objects calls fixed | objects calls fixed
| Lua | mit | bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas,bfontaine/Katas |
56875f636c46f2b7abd1b4295ef919156513862b | Log.lua | Log.lua | --[[
-- stores a log of various aspects of training for the purpose of visualization
]]
local json = require 'cjson'
local paths = require 'paths'
local function write_json(file, t)
local filename = file .. '.json'
local f = io.open(filename, 'w')
f:write(json.encode(t))
f:close()
end
local function... | --[[
-- stores a log of various aspects of training for the purpose of visualization
]]
local json = require 'cjson'
local paths = require 'paths'
local function write_json(file, t)
local filename = file .. '.json'
local f = io.open(filename, 'w')
f:write(json.encode(t))
f:close()
end
local function... | Fix minor bug in visualization | Fix minor bug in visualization
So we don't get redundant files displayed as options
| Lua | mit | ivendrov/torch-logger,ivendrov/torch-logger,ivendrov/torch-logger |
56c0a3d16457a937d5bda0dd60fe94c07496d2a7 | Interface/AddOns/RayUI/libs/cargBags/base/itembutton.lua | Interface/AddOns/RayUI/libs/cargBags/base/itembutton.lua | --[[
cargBags: An inventory framework addon for World of Warcraft
Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com>
cargBags is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either ver... | --[[
cargBags: An inventory framework addon for World of Warcraft
Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com>
cargBags is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either ver... | fix bag issue | fix bag issue
| Lua | mit | fgprodigal/RayUI |
1a7462fd34031adc05571734a43c5be85caf98c0 | lua/libs/texttospeech.lua | lua/libs/texttospeech.lua | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- 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/.
--
-- Copyright (C) 2011-2013 Star2Billing S.L.
--
--... | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- 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/.
--
-- Copyright (C) 2011-2013 Star2Billing S.L.
--
--... | LUA : fix local load config for acapela | LUA : fix local load config for acapela
| Lua | mpl-2.0 | newfies-dialer/newfies-dialer,newfies-dialer/newfies-dialer,saydulk/newfies-dialer,newfies-dialer/newfies-dialer,romonzaman/newfies-dialer,Star2Billing/newfies-dialer,saydulk/newfies-dialer,romonzaman/newfies-dialer,Star2Billing/newfies-dialer,Star2Billing/newfies-dialer,Star2Billing/newfies-dialer,berinhard/newfies-di... |
188fad365a36f52183b0d84d8467b6be9475fa13 | config/nvim/lua/init/null-ls.lua | config/nvim/lua/init/null-ls.lua | local null_ls = require('null-ls')
null_ls.config({
sources = {
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.diagnostics.pylint,
null_ls.builtins.diagnostics.rubocop, null_ls.builtins.diagnostics.vint,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.c... | local null_ls = require('null-ls')
null_ls.config({
sources = {
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.diagnostics.pylint,
null_ls.builtins.diagnostics.rubocop, null_ls.builtins.diagnostics.vint,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.c... | Fix shfmt configuration | Fix shfmt configuration
| Lua | unlicense | raviqqe/dotfiles |
eff818e5d457b351fd850f7644350826d2ffa0e3 | forward/rewriting.lua | forward/rewriting.lua | local P = require("core.packet")
local L = require("core.link")
local GRE = require("lib.protocol.gre")
local Datagram = require("lib.protocol.datagram")
local Ethernet = require("lib.protocol.ethernet")
local IPV4 = require("lib.protocol.ipv4")
local bit = require("bit")
local ffi = require("ffi")
local band = bit.ban... | local P = require("core.packet")
local L = require("core.link")
local GRE = require("lib.protocol.gre")
local Datagram = require("lib.protocol.datagram")
local Ethernet = require("lib.protocol.ethernet")
local IPV4 = require("lib.protocol.ipv4")
local bit = require("bit")
local ffi = require("ffi")
local band = bit.ban... | fix recompute checksum bug without refactoring | fix recompute checksum bug without refactoring
| Lua | mit | krawthekrow/spike,krawthekrow/spike |
bcba4d20d1f3fbd1e78b386384b04f32724111c8 | lua_scripts/pathmaps/tools/00_default.lua | lua_scripts/pathmaps/tools/00_default.lua | -- Copyright (C) 2008 Lauri Leukkunen <lle@rahina.org>
-- Copyright (C) 2008 Nokia Corporation.
-- Licensed under MIT license.
-- "tools" mapping mode: Almost everything maps to tools_root.
-- Rule file interface version, mandatory.
--
rule_file_interface_version = "19"
----------------------------------
tools = too... | -- Copyright (C) 2008 Lauri Leukkunen <lle@rahina.org>
-- Copyright (C) 2008 Nokia Corporation.
-- Licensed under MIT license.
-- "tools" mapping mode: Almost everything maps to tools_root.
-- Rule file interface version, mandatory.
--
rule_file_interface_version = "19"
----------------------------------
tools = too... | "tools" mode bugfix: Don't map the directory where sb2 was started | "tools" mode bugfix: Don't map the directory where sb2 was started
- this rule already exists in the "emulate" mode
| Lua | lgpl-2.1 | ldbox/ldbox,BinChengfei/scratchbox2,madscientist42/scratchbox2,lbt/scratchbox2,loganchien/scratchbox2,neeraj9/sbox2,OlegGirko/ldbox,freedesktop-unofficial-mirror/sbox2,lbt/scratchbox2,neeraj9/sbox2,lbt/scratchbox2,OlegGirko/ldbox,neeraj9/sbox2,loganchien/scratchbox2,BinChengfei/scratchbox2,madscientist42/scratchbox2,ld... |
8207e4bdf20e56f91890f74c07b7ebdafe3b218e | frontend/ui/elements/screen_dpi_menu_table.lua | frontend/ui/elements/screen_dpi_menu_table.lua | local _ = require("gettext")
local Screen = require("device").screen
local T = require("ffi/util").template
local function dpi() return G_reader_settings:readSetting("screen_dpi") end
local function custom() return G_reader_settings:readSetting("custom_screen_dpi") end
local function setDPI(_dpi)
local InfoMess... | local _ = require("gettext")
local Screen = require("device").screen
local T = require("ffi/util").template
local function dpi() return G_reader_settings:readSetting("screen_dpi") end
local function custom() return G_reader_settings:readSetting("custom_screen_dpi") end
local function setDPI(_dpi)
local InfoMessa... | [fix, lang] More accurate auto-DPI text (#4537) | [fix, lang] More accurate auto-DPI text (#4537)
Simply don't mention any values when the device DPI isn't known.
A more robust auto-DPI info function could be added to Screen
but I'm not sure if it's worth the trouble.
Fixes https://github.com/koreader/koreader/pull/4389#issuecomment-454552446 | Lua | agpl-3.0 | Hzj-jie/koreader,pazos/koreader,NiLuJe/koreader,houqp/koreader,NiLuJe/koreader,Markismus/koreader,poire-z/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader,poire-z/koreader,mwoz123/koreader,koreader/koreader,mihailim/koreader |
84b762d7fe5deb10f49eec9ea5a911ce053fb573 | spec/02-integration/09-hybrid_mode/02-start_stop_spec.lua | spec/02-integration/09-hybrid_mode/02-start_stop_spec.lua | local helpers = require "spec.helpers"
local confs = helpers.get_clustering_protocols()
for cluster_protocol, conf in pairs(confs) do
describe("invalid config are rejected, protocol " .. cluster_protocol, function()
describe("role is control_plane", function()
it("can not disable admin_listen", function... | local helpers = require "spec.helpers"
local confs = helpers.get_clustering_protocols()
for cluster_protocol, conf in pairs(confs) do
describe("invalid config are rejected, protocol " .. cluster_protocol, function()
describe("role is control_plane", function()
it("can not disable admin_listen", function... | fix test | fix test
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
24ca84a88383880ff9922e1c40ebcbae88d69357 | Repeater.lua | Repeater.lua | ------------------------------------------------------------------------
--[[ Repeater ]]--
-- Encapsulates an AbstractRecurrent instance (rnn) which is repeatedly
-- presented with the same input for nStep time steps.
-- The output is a table of nStep outputs of the rnn.
----------------------------------------------... | ------------------------------------------------------------------------
--[[ Repeater ]]--
-- Encapsulates an AbstractRecurrent instance (rnn) which is repeatedly
-- presented with the same input for nStep time steps.
-- The output is a table of nStep outputs of the rnn.
----------------------------------------------... | fix Repeater bugs | fix Repeater bugs
| Lua | mit | clementfarabet/lua---nnx |
3233a9e822c16d210f6e3af74504ee9b9c8b42eb | spec/plugins/keyauth/api_spec.lua | spec/plugins/keyauth/api_spec.lua | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
describe("Key Auth Credentials API", function()
local BASE_URL, credential, consumer
setup(function()
spec_helper.prepare_db()
spec_helper.start_kong()
end)
teardown(funct... | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
describe("Key Auth Credentials API", function()
local BASE_URL, credential, consumer
setup(function()
spec_helper.prepare_db()
spec_helper.start_kong()
end)
teardown(funct... | Fixing test | Fixing test
| Lua | mit | vmercierfr/kong,chourobin/kong,bbalu/kong,ChristopherBiscardi/kong,peterayeni/kong,AnsonSmith/kong,Skyscanner/kong,sbuettner/kong,wakermahmud/kong,skynet/kong,paritoshmmmec/kong |
5e146d6555237e24ae02e7a33b0be31d8c3e410a | vrp/modules/map.lua | vrp/modules/map.lua |
local client_areas = {}
-- free client areas when leaving
AddEventHandler("vRP:playerLeave",function(user_id,source)
-- leave areas
local areas = client_areas[source]
for k,area in pairs(areas) do
if area.inside then
area.leave(source,k)
end
end
client_areas[source] = nil
end)
-- create/upd... |
local client_areas = {}
-- free client areas when leaving
AddEventHandler("vRP:playerLeave",function(user_id,source)
-- leave areas
local areas = client_areas[source]
if areas then
for k,area in pairs(areas) do
if area.inside then
area.leave(source,k)
end
end
end
client_areas[so... | Fix area issue. | Fix area issue.
| Lua | mit | ImagicTheCat/vRP,ImagicTheCat/vRP |
f9eb871c9c58c8ba4bb5f0e99166166eb62a61cc | item/teleportgate.lua | item/teleportgate.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | whitespace fix and remove comment | whitespace fix and remove comment
| Lua | agpl-3.0 | KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content |
708df23e42372a592b5dcf73a07ab0ca819b5499 | BtUtils/project-manager.lua | BtUtils/project-manager.lua | --- Loads and allows to work with BETS projects.
-- @module ProjectManager
-- @pragma nostrip
-- tag @pragma makes it so that the name of the module is not stripped from the function names
if(not BtUtils)then VFS.Include(LUAUI_DIRNAME .. "Widgets/BtUtils/root.lua", nil, VFS.RAW_FIRST) end
local Utils = BtUtils
retur... | --- Loads and allows to work with BETS projects.
-- @module ProjectManager
-- @pragma nostrip
-- tag @pragma makes it so that the name of the module is not stripped from the function names
if(not BtUtils)then VFS.Include(LUAUI_DIRNAME .. "Widgets/BtUtils/root.lua", nil, VFS.RAW_FIRST) end
local Utils = BtUtils
retur... | Possibly a fix to the problem with case insensitiveness of files from archives. A special ".capitalization" file is added to the archive to preserve the original case | Possibly a fix to the problem with case insensitiveness of files from archives. A special ".capitalization" file is added to the archive to preserve the original case
| Lua | mit | MartinFrancu/BETS |
d4dd311a442e33cab051eefb91a8051bc0db9ef5 | calibration.lua | calibration.lua | local co = coroutine
function emufun.calibration()
local W,H = love.graphics.getWidth(),love.graphics.getHeight()
local message = "?"
local controls = {}
local function calibrate()
local function ask_input(gesture)
local key
repeat
key = co.yield(ges... | local co = coroutine
function emufun.calibration()
local W,H = love.graphics.getWidth(),love.graphics.getHeight()
local message = "?"
local controls = {}
local function calibrate()
local function ask_input(gesture)
local key
repeat
key = co.yield(ges... | Fixed a crash in the calibrator when using a gamepad. | Fixed a crash in the calibrator when using a gamepad.
| Lua | mit | ToxicFrog/EmuFun |
a58d88d0d313134878ae5b0bb060f5977f10511f | hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua | hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua | -- Detect layout change
function handleLayoutChange(layout)
if layout then
local screenId = hs.window.focusedWindow():screen():id()
setActiveScreen(screenId)
print('current display ' .. screenId)
end
end
function setActiveScreen(screenId)
local devicePath = getSerialOutputDevice()
if devicePath == ... | -- Detect layout change
function handleLayoutChange()
-- Always send the screenId, even on real layout changes (could be add/remove display)
local screenId = hs.window.focusedWindow():screen():id()
setActiveScreen(screenId)
print('current display ' .. screenId)
end
function setActiveScreen(screenId)
local de... | fix(Hammerspoon): Always update the current display, regardless of layout change | fix(Hammerspoon): Always update the current display, regardless of layout change
| Lua | mit | sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles |
8c78271dfa8e741e48e27179f30fa58734c57333 | scen_edit/view/view.lua | scen_edit/view/view.lua | SB_VIEW_DIR = Path.Join(SB_DIR, "view/")
SB_VIEW_MAIN_WINDOW_DIR = Path.Join(SB_VIEW_DIR, "main_window/")
SB_VIEW_ACTIONS_DIR = Path.Join(SB_VIEW_DIR, "actions/")
SB_VIEW_OBJECT_DIR = Path.Join(SB_VIEW_DIR, "object/")
SB_VIEW_MAP_DIR = Path.Join(SB_VIEW_DIR, "map/")
SB_VIEW_TRIGGER_DIR = Path.Join(SB_VIEW_DIR, "trigg... | SB_VIEW_DIR = Path.Join(SB_DIR, "view/")
SB_VIEW_MAIN_WINDOW_DIR = Path.Join(SB_VIEW_DIR, "main_window/")
SB_VIEW_ACTIONS_DIR = Path.Join(SB_VIEW_DIR, "actions/")
SB_VIEW_OBJECT_DIR = Path.Join(SB_VIEW_DIR, "object/")
SB_VIEW_MAP_DIR = Path.Join(SB_VIEW_DIR, "map/")
SB_VIEW_TRIGGER_DIR = Path.Join(SB_VIEW_DIR, "trigg... | fix project status update | fix project status update
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
03ccff35c3498c375f23c5ce27b651704db5f087 | app/main.lua | app/main.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | Fix colors in main | Fix colors in main
| Lua | apache-2.0 | DBarney/luvit,bsn069/luvit,zhaozg/luvit,kaustavha/luvit,luvit/luvit,DBarney/luvit,bsn069/luvit,rjeli/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,rjeli/luvit,zhaozg/luvit,rjeli/luvit,bsn069/luvit,kaustavha/luvit,luvit/luvit,DBarney/luvit,DBarney/luvit... |
4d2dc36d6482189fad54e0776f8b6ba9a6b151cb | lexers/hypertext.lua | lexers/hypertext.lua | -- Copyright 2006-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
-- HTML LPeg lexer.
local l, token, word_match = lexer, lexer.token, lexer.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = {_NAME = 'hypertext'}
case_insensitive_tags = true
-- Whitespace.
local ws = token(l.WHITESPACE, l.... | -- Copyright 2006-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
-- HTML LPeg lexer.
local l, token, word_match = lexer, lexer.token, lexer.word_match
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
local M = {_NAME = 'hypertext'}
case_insensitive_tags = true
-- Whitespace.
local ws = token(l.WHITESPACE, l.... | Fixed slowdown with large HTML files; lexers/hypertext.lua The tradeoff is that plain text like "2 + 2 = 4" highlights improperly. | Fixed slowdown with large HTML files; lexers/hypertext.lua
The tradeoff is that plain text like "2 + 2 = 4" highlights improperly.
| Lua | mit | rgieseke/scintillua |
15f69ce26d8bb8f1675d28dda1a89ac2dd4ae806 | lua/include/utils.lua | lua/include/utils.lua |
local bor, band, bnot, rshift, lshift, bswap = bit.bor, bit.band, bit.bnot, bit.rshift, bit.lshift, bit.bswap
function printf(str, ...)
return print(str:format(...))
end
function errorf(str, ...)
error(str:format(...), 2)
end
function mapVarArg(f, ...)
local l = { ... }
for i, v in ipairs(l) do
l[i] = f(v)
e... |
local bor, band, bnot, rshift, lshift, bswap = bit.bor, bit.band, bit.bnot, bit.rshift, bit.lshift, bit.bswap
function printf(str, ...)
return print(str:format(...))
end
function errorf(str, ...)
error(str:format(...), 2)
end
function mapVarArg(f, ...)
local l = { ... }
for i, v in ipairs(l) do
l[i] = f(v)
e... | mac parser hotfix | mac parser hotfix
| Lua | mit | kidaa/MoonGen,atheurer/MoonGen,gallenmu/MoonGen,bmichalo/MoonGen,duk3luk3/MoonGen,gallenmu/MoonGen,kidaa/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,atheurer/MoonGen,scholzd/MoonGen,bmichalo/MoonGen,werpat/MoonGen,atheurer/MoonGen,kidaa/MoonGen,bmichalo/MoonGen,dschoeffm/MoonGen,duk3luk3/MoonGen,wenhuizhang/MoonGen,emmeri... |
65913f05c2b0bdf3ee6a4c0b9c969332ca1d8905 | lib/resty/consul.lua | lib/resty/consul.lua | local pcall = pcall
local cjson = require('cjson')
local json_decode = cjson.decode
local json_encode = cjson.encode
local tbl_concat = table.concat
local tbl_insert = table.insert
local ngx = ngx
local ngx_log = ngx.log
local ngx_ERR = ngx.ERR
local ngx_DEBUG = ngx.DEBUG
local http = require('resty.http')
local _M = ... | local pcall = pcall
local tostring = tostring
local cjson = require('cjson')
local json_decode = cjson.decode
local json_encode = cjson.encode
local tbl_concat = table.concat
local tbl_insert = table.insert
local ngx = ngx
local ngx_log = ngx.log
local ngx_ERR = ngx.ERR
local ngx_DEBUG = ngx.DEBUG
local http = require(... | Fix boolean query string params | Fix boolean query string params
| Lua | mit | hamishforbes/lua-resty-consul |
a94cf1e757c7f6e89da550a15102bab85244db9c | genie.lua | genie.lua | solution "lip"
location(_ACTION)
configurations {"ReleaseLib", "DebugLib", "ReleaseDLL", "DebugDLL"}
platforms {"x64"}
debugdir "."
flags {
"StaticRuntime",
"Symbols",
"NoEditAndContinue",
"NoNativeWChar"
}
defines {
"_CRT_SECURE_NO_WARNINGS"
}
configuration "Release*"
flags { "OptimizeSpeed"... | solution "lip"
location(_ACTION)
configurations {"ReleaseLib", "DebugLib", "ReleaseDLL", "DebugDLL"}
platforms {"x64"}
debugdir "."
flags {
"StaticRuntime",
"Symbols",
"NoEditAndContinue",
"NoNativeWChar"
}
defines {
"_CRT_SECURE_NO_WARNINGS"
}
configuration "Release*"
flags { "OptimizeSpeed" }
... | Fix Windows build | Fix Windows build
| Lua | bsd-2-clause | bullno1/lip,bullno1/lip,bullno1/lip,bullno1/lip,bullno1/lip,bullno1/lip |
083ce74e73bc13923fd0a92133eedd554c8e2e56 | agents/monitoring/default/client/connection_messages.lua | agents/monitoring/default/client/connection_messages.lua | local bind = require('utils').bind
local timer = require('timer')
local Emitter = require('core').Emitter
local Object = require('core').Object
local misc = require('../util/misc')
local logging = require('logging')
local loggingUtil = require ('../util/logging')
local path = require('path')
local util = require('../ut... | local bind = require('utils').bind
local timer = require('timer')
local Emitter = require('core').Emitter
local Object = require('core').Object
local misc = require('../util/misc')
local logging = require('logging')
local loggingUtil = require ('../util/logging')
local path = require('path')
local util = require('../ut... | fix parallel | fix parallel
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-m... |
7354ba885b7619c2b126bf300f075897c3415276 | evaluation.lua | evaluation.lua | --
-- Created by IntelliJ IDEA.
-- User: bking
-- Date: 1/30/17
-- Time: 2:25 AM
-- To change this template use File | Settings | File Templates.
--
package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path
require 'torch'
require 'nn'
require 'nnx'
require 'util'
require 'torch-rnn'
require 'Dynamic... | --
-- Created by IntelliJ IDEA.
-- User: bking
-- Date: 1/30/17
-- Time: 2:25 AM
-- To change this template use File | Settings | File Templates.
--
package.path = ';/homes/iws/kingb12/LanguageModelRNN/?.lua;'..package.path
require 'torch'
require 'nn'
require 'nnx'
require 'util'
require 'torch-rnn'
require 'Dynamic... | smapling fix | smapling fix
| Lua | mit | kingb12/languagemodelRNN,kingb12/languagemodelRNN,kingb12/languagemodelRNN |
7f3ba1d91e73b24ba4c5f497e6e51947f58d51ab | main.lua | main.lua | require 'roundrect'
math.randomseed(os.time())
varfilter = '$(%w+)%$?'
function printf(template, rep)
return (template:gsub(varfilter, rep))
end
state = {frame = 0, totaltime = 0, current = 'mainmenu'}
states = {}
officialnames = {a = 'Amania', b = 'Bzadoria',
c = 'Cadadonia', d = 'Darzamin', ar = 'Anarchists',
b... | require 'roundrect'
math.randomseed(os.time())
varfilter = '$(%w+)%$?'
function printf(template, rep)
return (template:gsub(varfilter, rep))
end
state = {frame = 0, totaltime = 0, current = 'mainmenu'}
states = {}
officialnames = {a = 'Amania', b = 'Bzadoria',
c = 'Cadadonia', d = 'Darzamin', ar = 'Anarchists',
b... | Fixes nasty error-loop if something goes wrong before fonts are properly initialized | Fixes nasty error-loop if something goes wrong before fonts are properly initialized
| Lua | mit | gvx/space,gvx/space |
e2025f51af09b3109f612269144e40ea9ee3ad3b | source/pathfinder.lua | source/pathfinder.lua |
-- TODO: cleanup and add comments
require "source/gridNeighbors"
require "source/utilities/vector"
local function posToKey(gridWidth, pos)
return pos[1] + pos[2] * (gridWidth + 1)
end
function getPathDestination(grid, pos, path)
local gridWidth = grid:getSize()
local key = posToKey(gridWidth, vector{gri... |
-- TODO: cleanup and add comments
require "source/gridNeighbors"
require "source/utilities/vector"
local function posToKey(gridWidth, pos)
return pos[1] + pos[2] * (gridWidth + 1)
end
function getPathDestination(grid, pos, path)
local gridWidth = grid:getSize()
local key = posToKey(gridWidth, vector{gri... | Fixed loop in pathfinder. | Fixed loop in pathfinder.
| Lua | mit | BryceMehring/Hexel |
5402c612a865fb83c876c5c252e5c1bc6ecd87e0 | AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua | AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- ColorPicker --
--------------------------
do
local Type = "ColorPicker"
local Version = 8
local function Acquire(self)
self.HasAlpha = false
self:SetColor(0,0,0,1)
end
local function SetLabel(self, text)
self.text:SetText(text)
end
... | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- ColorPicker --
--------------------------
do
local Type = "ColorPicker"
local Version = 8
local function Acquire(self)
self.HasAlpha = false
self:SetColor(0,0,0,1)
end
local function SetLabel(self, text)
self.text:SetText(text)
end
... | Ace3 - AceGUI-3.0 - ColorPicker Widget: "fix" checker background overlapping the border | Ace3 - AceGUI-3.0
- ColorPicker Widget: "fix" checker background overlapping the border
git-svn-id: 7647537e40c65c0861dc9b5b7a3f92438fa62736@599 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
0b45a4adbe1ee0841eb818db0af11aac274400eb | patt_movingspots.lua | patt_movingspots.lua | local spot_index = 0
local function run(wsbuf, p, spots_count)
if not (type(spots_count) == "number" and spots_count > 0) then
spots_count = 1
end
local spots_distance = wsbuf:size()/spots_count
wsbuf:fade(2,ws2812.FADE_OUT)
local pos = 0
for nspot = 0, spots_count -1 do
pos = spot_index+1+nspot*sp... | local spot_index = 0
local function run(wsbuf, p, spots_count)
if not (type(spots_count) == "number" and spots_count > 0) then
spots_count = 1
end
local spots_distance = wsbuf:size()/spots_count
spot_index = (spot_index + 1) % spots_distance
wsbuf:fade(2,ws2812.FADE_OUT)
local pos = 0
for nspot = 0, ... | bugfix für spot anzahl änderung | bugfix für spot anzahl änderung
| Lua | mit | realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs |
2e31e96aa9f6b03a41ffabbe7b8481185f0a5d6e | ninja.lua | ninja.lua | --
-- Name: premake-ninja/ninja.lua
-- Purpose: Define the ninja action.
-- Author: Dmitry Ivanov
-- Created: 2015/07/04
-- Copyright: (c) 2015 Dmitry Ivanov
--
local p = premake
local tree = p.tree
local project = p.project
local solution = p.solution
local config = p.config
local fileconfig = p... | --
-- Name: premake-ninja/ninja.lua
-- Purpose: Define the ninja action.
-- Author: Dmitry Ivanov
-- Created: 2015/07/04
-- Copyright: (c) 2015 Dmitry Ivanov
--
local p = premake
local tree = p.tree
local project = p.project
local solution = p.solution
local config = p.config
local fileconfig = p... | root ninja file uses subninja now, fix phony rules for multiple projects | root ninja file uses subninja now, fix phony rules for multiple projects
| Lua | mit | jimon/premake-ninja,jimon/premake-ninja,jimon/premake-ninja,jimon/premake-ninja |
a8e470b6c6a54064287cfc0e31623db253e9f85a | src/sailor/access.lua | src/sailor/access.lua | --------------------------------------------------------------------------------
-- access.lua, v0.4: controls user login on sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
------------------------------------------... | --------------------------------------------------------------------------------
-- access.lua, v0.5: controls user login on sailor apps
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
------------------------------------------... | fix(access): Reset settings before setting them | fix(access): Reset settings before setting them
| Lua | mit | sailorproject/sailor,mpeterv/sailor,mpeterv/sailor,Etiene/sailor,Etiene/sailor |
f3e9fc7cd4043adcc3fdbb95949b584626f6ceb5 | modules/game_viplist/viplist.lua | modules/game_viplist/viplist.lua | VipList = {}
-- private variables
local vipWindow
local vipButton
local addVipWindow
-- public functions
function VipList.init()
vipWindow = displayUI('viplist.otui', GameInterface.getLeftPanel())
vipButton = TopMenu.addGameToggleButton('vipListButton', 'VIP list', 'viplist.png', VipList.toggle)
vipButton:setOn... | VipList = {}
-- private variables
local vipWindow
local vipButton
local addVipWindow
-- public functions
function VipList.init()
connect(g_game, { onGameEnd = VipList.clear,
onAddVip = VipList.onAddVip,
onVipStateChange = VipList.onVipStateChange })
vipWindow = displayUI(... | fix viplist issues | fix viplist issues
| Lua | mit | EvilHero90/otclient,Cavitt/otclient_mapgen,gpedro/otclient,kwketh/otclient,kwketh/otclient,gpedro/otclient,gpedro/otclient,Cavitt/otclient_mapgen,Radseq/otclient,dreamsxin/otclient,Radseq/otclient,EvilHero90/otclient,dreamsxin/otclient,dreamsxin/otclient |
4261b8abac1ba1665f3226d91cb5b14636ffe220 | entities/turret.lua | entities/turret.lua | local Turret = Class('Turret')
function Turret:initialize(game, x, y, roomHash, offset, flip)
self.game = game
self.x = x
self.y = y
self.screenX = 0
self.screenY = 0
self.hitboxX = 24
self.hitboxY = 24
self.hitboxWidth = 36
self.hitboxHeight = 36
self.offset = offset or Vector(... | local Turret = Class('Turret')
function Turret:initialize(game, x, y, roomHash, offset, flip)
self.game = game
self.x = x
self.y = y
self.screenX = 0
self.screenY = 0
self.hitboxX = 24
self.hitboxY = 24
self.hitboxWidth = 36
self.hitboxHeight = 36
self.offset = offset or Vector(... | fixed hitbox turret | fixed hitbox turret
| Lua | mit | Nuthen/ludum-dare-39 |
45eff24a44f371fd55b79c0609390c45c97dfc83 | himan-scripts/frost-sum.lua | himan-scripts/frost-sum.lua | -- Calculate frost sum from 2 meter daily mean temperature
-- Positive values do not increase the value of frost sum
--
-- For example:
-- Daily (24h) mean t2m are: -4, -6, -1, +2, -5
-- Frost sum is: -16 (sic)
--
-- Script should only be used with ECMWF data
-- Calculate daily (24h) mean temperature by reading all t... | -- Calculate frost sum from 2 meter daily mean temperature
-- Positive values do not increase the value of frost sum
--
-- For example:
-- Daily (24h) mean t2m are: -4, -6, -1, +2, -5
-- Frost sum is: -16 (sic)
--
-- Script should only be used with ECMWF data
-- Calculate daily (24h) mean temperature by reading all t... | Fix issue with 12z calculations. | Fix issue with 12z calculations.
My misunderstanding was that frost sum should always be calculated to
hour = 0 (ie. midnight). After re-reading the request ticket, I realized
that it's only calculated when step % 24 == 0.
| Lua | mit | fmidev/himan,fmidev/himan,fmidev/himan |
47901c76d590f71151be00c33d5312a548137c0b | scripts/run_tests.lua | scripts/run_tests.lua | #!/usr/bin/env lua5.1
-- Weee
local SCRIPTS_PATH = string.sub(arg[0], 1, -15)
dofile(SCRIPTS_PATH .. "/common.lua")
require("lfs")
local prev_wd = lfs.currentdir()
lfs.chdir(SCRIPTS_PATH .. "/..")
local ROOT = lfs.currentdir()
local group_data = {}
group_data["core"] = {
excluded = {
["algorithm/sort"] = true,
... | #!/usr/bin/env lua5.1
-- Weee
local SCRIPTS_PATH = string.sub(arg[0], 1, -15)
dofile(SCRIPTS_PATH .. "/common.lua")
require("lfs")
local prev_wd = lfs.currentdir()
lfs.chdir(SCRIPTS_PATH .. "/..")
local ROOT = lfs.currentdir()
local group_data = {}
group_data["core"] = {
excluded = {
["algorithm/sort"] = true,
... | scripts/run_tests.lua: fixed test args lookup. | scripts/run_tests.lua: fixed test args lookup.
| Lua | mit | komiga/togo,komiga/togo,komiga/togo |
f606fef31c6f94a3a7568a1c1cbfa50872810c7d | test/lua/unit/url.lua | test/lua/unit/url.lua | -- URL parser tests
context("URL check functions", function()
local mpool = require("rspamd_mempool")
local ffi = require("ffi")
ffi.cdef[[
struct rspamd_url {
char *string;
int protocol;
int ip_family;
char *user;
char *password;
char *host;
char *port;
char *data;
char *query;
char *... | -- URL parser tests
context("URL check functions", function()
local mpool = require("rspamd_mempool")
local ffi = require("ffi")
ffi.cdef[[
struct rspamd_url {
char *string;
int protocol;
int ip_family;
char *user;
char *password;
char *host;
char *port;
char *data;
char *query;
char *... | Fix urls unit test. | Fix urls unit test.
| Lua | bsd-2-clause | dark-al/rspamd,dark-al/rspamd,dark-al/rspamd,amohanta/rspamd,awhitesong/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,amohant... |
88b2c05a91b7bcad1494e7b8e9917cf999596d08 | Plan.lua | Plan.lua | --- LUA wrapper for moveit planning environment
-- dependency to tourch.ros
-- @classmod Plan
local ffi = require 'ffi'
local torch = require 'torch'
local ros = require 'ros'
local moveit = require 'moveit.env'
local utils = require 'moveit.utils'
local gnuplot = require 'gnuplot'
local Plan = torch.class('moveit.Pla... | --- LUA wrapper for moveit planning environment
-- dependency to tourch.ros
-- @classmod Plan
local ffi = require 'ffi'
local torch = require 'torch'
local ros = require 'ros'
local moveit = require 'moveit.env'
local utils = require 'moveit.utils'
local gnuplot = require 'gnuplot'
local Plan = torch.class('moveit.Pla... | bugfix | bugfix
| Lua | bsd-3-clause | Xamla/torch-moveit |
d2fdb3916206b7c00a8ba8a82aec80e319b9f10d | map/lua/table.lua | map/lua/table.lua |
--如果不是数字,则移除指定值
local oldremove = table.remove
function table.remove(t, p)
if p and type(p) ~= 'number' then
for i = 1, #t do
local v = t[i]
if v == p then
oldremove(t, i)
return
end
end
else
oldremove(t, p)
end
end
--将数组转化为哈希表
function table.key(t, v)
if v == nil then
... |
--如果不是数字,则移除指定值
local oldremove = table.remove
function table.remove(t, p)
if p and type(p) ~= 'number' then
for i = 1, #t do
local v = t[i]
if v == p then
oldremove(t, i)
return
end
end
else
oldremove(t, p)
end
end
--将数组转化为哈希表
function table.key(t, v)
if v == nil then
... | 修正一个基础函数的BUG | 修正一个基础函数的BUG
| Lua | apache-2.0 | syj2010syj/All-star-Battle |
00b252238f2b20e9edcd7dbcdd63fc504e53edaa | src/facil/core.lua | src/facil/core.lua | --[[----------------------------------------------------------------------------
--- @file core.lua
--- @brief Core component of fácil.
----------------------------------------------------------------------------]]--
local FileSystem = require "lfs"
local Uuid = require "uuid"
local Template = {}
Template.Md = requir... | --[[----------------------------------------------------------------------------
--- @file core.lua
--- @brief Core component of fácil.
----------------------------------------------------------------------------]]--
local FileSystem = require "lfs"
local Uuid = require "uuid"
local Template = {}
Template.Md = requir... | Fix: small performance fix. | Fix: small performance fix.
| Lua | mit | norefle/facil |
f5d4bcade271e60bc31b0455b275991d0ed64dd3 | models/upload.lua | models/upload.lua | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(dest_dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match('^(.+)(%.%w+)$')
if not ex... | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(absolute_dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match('^(.+)(%.%w+)$')
if no... | Fix Upload interal errors. ;( | Fix Upload interal errors. ;(
Now, you can use:
Upload {
name = 'xxx',
path = 'xxx',
... = ...
}
to create a file object.
Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
| Lua | bsd-3-clause | daogangtang/bamboo,daogangtang/bamboo |
f1a508a6c61d64623f40d5274eee3bdbb6353d28 | inputters/base.lua | inputters/base.lua | local _deprecated = [[
You appear to be using a document class '%s' programmed for SILE <= v0.12.5.
This system was refactored in v0.13.0 and the shims trying to make it
work temporarily without refactoring your classes have been removed
in v0.14.0. Please see v0.13.0 release notes for help.
]]
local inputter ... | local _deprecated = [[
You appear to be using a document class '%s' programmed for SILE <= v0.12.5.
This system was refactored in v0.13.0 and the shims trying to make it
work temporarily without refactoring your classes have been removed
in v0.14.0. Please see v0.13.0 release notes for help.
]]
local inputter ... | fix(inputters): Permit content outside of the document note, e.g. comments or blanks (#1596) | fix(inputters): Permit content outside of the document note, e.g. comments or blanks (#1596)
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
027e451b25dd984a2c7f67d6b7da5608e9e83881 | hammerspoon/.hammerspoon/jumpcutselect.lua | hammerspoon/.hammerspoon/jumpcutselect.lua | -- Selector for jumpcut thingy
local settings = require("hs.settings")
local utils = require("utils")
local mod = {}
-- jumpcutselect
function mod.jumpcutselect()
function formatChoices(choices)
choices = utils.reverse(choices)
formattedChoices = hs.fnutils.imap(choices, function(result)
... | -- Selector for jumpcut thingy
local settings = require("hs.settings")
local utils = require("utils")
local mod = {}
-- jumpcutselect
function mod.jumpcutselect()
function formatChoices(choices)
choices = utils.reverse(choices)
formattedChoices = hs.fnutils.imap(choices, function(result)
... | [hammerspoon] bugfix in jumpcutselect | [hammerspoon] bugfix in jumpcutselect
| Lua | mit | meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles,meain/dotfiles |
486ffc69b66b5b45b0178fd4a0ffddc7bca2f26c | scripts/game_flow.lua | scripts/game_flow.lua | local kernel = require 'dokidoki.kernel'
local v2 = require 'dokidoki.v2'
local blueprints = require 'blueprints'
local the_game = require 'the_game'
local LEFT = game.constants.screen_left
local RIGHT = game.constants.screen_right
local BOTTOM = game.constants.screen_bottom
local TOP = game.constants.screen_top
loca... | local kernel = require 'dokidoki.kernel'
local v2 = require 'dokidoki.v2'
local blueprints = require 'blueprints'
local the_game = require 'the_game'
local LEFT = game.constants.screen_left
local RIGHT = game.constants.screen_right
local BOTTOM = game.constants.screen_bottom
local TOP = game.constants.screen_top
loca... | added computer player, fixed facing bug | added computer player, fixed facing bug
| Lua | mit | henkboom/pax-britannica |
1b81716cad28eb02ed1c0b82f8403be20d64d7ae | src/ragdoll/src/Server/Classes/UnragdollAutomatically.lua | src/ragdoll/src/Server/Classes/UnragdollAutomatically.lua | --[=[
When a humanoid is tagged with this, it will unragdoll automatically.
@server
@class UnragdollAutomatically
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local BaseObject = require("BaseObject")
local RagdollBindersServer = require("RagdollBi... | --[=[
When a humanoid is tagged with this, it will unragdoll automatically.
@server
@class UnragdollAutomatically
]=]
local require = require(script.Parent.loader).load(script)
local BaseObject = require("BaseObject")
local RagdollBindersServer = require("RagdollBindersServer")
local CharacterUtils = require("Char... | fix: Remove unneeded RunService call | fix: Remove unneeded RunService call
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
23c4f5600a38c7ff8f3053d11dcf2766cdd92d2f | kong/cmd/start.lua | kong/cmd/start.lua | local dnsmasq_signals = require "kong.cmd.utils.dnsmasq_signals"
local prefix_handler = require "kong.cmd.utils.prefix_handler"
local nginx_signals = require "kong.cmd.utils.nginx_signals"
local serf_signals = require "kong.cmd.utils.serf_signals"
local conf_loader = require "kong.conf_loader"
local DAOFactory = requir... | local dnsmasq_signals = require "kong.cmd.utils.dnsmasq_signals"
local prefix_handler = require "kong.cmd.utils.prefix_handler"
local nginx_signals = require "kong.cmd.utils.nginx_signals"
local serf_signals = require "kong.cmd.utils.serf_signals"
local conf_loader = require "kong.conf_loader"
local DAOFactory = requir... | fix(cli) prevent xpcall handler to crash | fix(cli) prevent xpcall handler to crash
serf_signals.stop() would eventually crash and prevent execution of the
following code, thus we would not report the actual crashing reason to
the user (silent kong start failure)
| Lua | apache-2.0 | Vermeille/kong,jebenexer/kong,beauli/kong,akh00/kong,Mashape/kong,Kong/kong,Kong/kong,li-wl/kong,salazar/kong,shiprabehera/kong,jerizm/kong,icyxp/kong,ccyphers/kong,Kong/kong |
08b9e4f82f0109e5d1019cd32b57be134739e596 | src/core/counter.lua | src/core/counter.lua | -- counter.lua - Count discrete events for diagnostic purposes
--
-- This module provides a thin layer for representing 64-bit counters
-- as shared memory objects.
--
-- Counters let you efficiently count discrete events (packet drops,
-- etc) and are accessible as shared memory from other processes such
-- as monito... | -- counter.lua - Count discrete events for diagnostic purposes
--
-- This module provides a thin layer for representing 64-bit counters
-- as shared memory objects.
--
-- Counters let you efficiently count discrete events (packet drops,
-- etc) and are accessible as shared memory from other processes such
-- as monito... | [core.counter] Fix bug in counter.delete where it failed to mark public/private record as deleted. | [core.counter] Fix bug in counter.delete where it failed to
mark public/private record as deleted.
| Lua | apache-2.0 | eugeneia/snabb,Igalia/snabb,Igalia/snabb,pirate/snabbswitch,kbara/snabb,heryii/snabb,snabbco/snabb,dpino/snabb,aperezdc/snabbswitch,pavel-odintsov/snabbswitch,wingo/snabbswitch,eugeneia/snabb,Igalia/snabb,fhanik/snabbswitch,wingo/snabbswitch,snabbco/snabb,plajjan/snabbswitch,kbara/snabb,alexandergall/snabbswitch,kbara/... |
63e023e56adfa13255ff792c0df52b3623eed7a7 | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | modules/admin-full: fix dhcp page | modules/admin-full: fix dhcp page
| Lua | apache-2.0 | thesabbir/luci,kuoruan/luci,LuttyYang/luci,teslamint/luci,wongsyrone/luci-1,MinFu/luci,Noltari/luci,schidler/ionic-luci,fkooman/luci,openwrt-es/openwrt-luci,ff94315/luci-1,981213/luci-1,chris5560/openwrt-luci,slayerrensky/luci,fkooman/luci,thesabbir/luci,nwf/openwrt-luci,obsy/luci,LazyZhu/openwrt-luci-trunk-mod,nmav/lu... |
e948324422824a0431d3058c7cd255b70f993c87 | Assets/ToLua/Lua/event.lua | Assets/ToLua/Lua/event.lua | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-------------------------------------------------------------... | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-------------------------------------------------------------... | 1.0.7.365 fixed event.lua add remove时序问题 | 1.0.7.365 fixed event.lua add remove时序问题
| Lua | mit | topameng/tolua |
4d54beea19d78d65d5597397676d76d6ef3e75d6 | modules/alarm.lua | modules/alarm.lua | local ev = require'ev'
if(not ivar2.timers) then ivar2.timers = {} end
local alarm = function(self, source, destination, time, message)
local weeks = time:match'(%d+)[w]'
local days = time:match'(%d+)[d]'
local hour = time:match'(%d+)[ht]'
local min = time:match'(%d+)m'
local sec = time:match'(%d+)s'
local dur... | local ev = require'ev'
if(not ivar2.timers) then ivar2.timers = {} end
local dateFormat = '%Y-%m-%d %X %Z'
local alarm = function(self, source, destination, time, message)
local weeks = time:match'(%d+)[w]'
local days = time:match'(%d+)[d]'
local hour = time:match'(%d+)[ht]'
local min = time:match'(%d+)m'
local... | alarm: Send a notification if we override a running timer. | alarm: Send a notification if we override a running timer.
Fixes #28.
| Lua | mit | torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2 |
f3dc774c0982305dfbe70bf2459f9a7ddaa94b9e | modules/title.lua | modules/title.lua | local iconv = require"iconv"
local parse = require"socket.url".parse
local patterns = {
-- X://Y url
"^(%a[%w%.+-]+://%S+)",
"%f[%S](%a[%w%.+-]+://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
-- XXX.YYY.ZZZ.WWW:VVVV/UUUUU IPv4 address with port and path
"^([0-2]?%d?%d%.[0-2]?%d... | local iconv = require"iconv"
local parse = require"socket.url".parse
local patterns = {
-- X://Y url
"^(%a[%w%.+-]+://%S+)",
"%f[%S](%a[%w%.+-]+://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
-- XXX.YYY.ZZZ.WWW:VVVV/UUUUU IPv4 address with port and path
"^([0-2]?%d?%d%.[0-2]?%d... | Fix iiHost making a bunch of shit fail. | Fix iiHost making a bunch of shit fail.
| Lua | mit | torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2 |
ffa9857ff18daa3e456ec4e3b171dbe0295ba603 | frontend/apps/cloudstorage/ftp.lua | frontend/apps/cloudstorage/ftp.lua | local BD = require("ui/bidi")
local ConfirmBox = require("ui/widget/confirmbox")
local DocumentRegistry = require("document/documentregistry")
local FtpApi = require("apps/cloudstorage/ftpapi")
local InfoMessage = require("ui/widget/infomessage")
local MultiInputDialog = require("ui/widget/multiinputdialog")
local Read... | local BD = require("ui/bidi")
local ConfirmBox = require("ui/widget/confirmbox")
local DocumentRegistry = require("document/documentregistry")
local FtpApi = require("apps/cloudstorage/ftpapi")
local InfoMessage = require("ui/widget/infomessage")
local MultiInputDialog = require("ui/widget/multiinputdialog")
local Read... | ftp: guard against nil file (#6640) | ftp: guard against nil file (#6640)
Fixes #6636 | Lua | agpl-3.0 | Frenzie/koreader,mwoz123/koreader,poire-z/koreader,pazos/koreader,NiLuJe/koreader,poire-z/koreader,koreader/koreader,Frenzie/koreader,Hzj-jie/koreader,Markismus/koreader,koreader/koreader,NiLuJe/koreader |
cd9c6550e9fc172b740ee3f4bdd2c03f47ee43cf | src/characterstrip.lua | src/characterstrip.lua | ----------------------------------------------------------------------
-- characterstrip.lua
-- A single colored strip, on which a character appears for selection.
-- Created by tjvezina
----------------------------------------------------------------------
local CharacterStrip = {}
CharacterStrip.__index = CharacterS... | ----------------------------------------------------------------------
-- characterstrip.lua
-- A single colored strip, on which a character appears for selection.
-- Created by tjvezina
----------------------------------------------------------------------
local CharacterStrip = {}
CharacterStrip.__index = CharacterS... | Fixes memory leaks in character strip | Fixes memory leaks in character strip
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua |
0c438a161f0ebded6cd8699b930849b8f4b09067 | vstreamers.lua | vstreamers.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | vstreamers.lua: fix | vstreamers.lua: fix | Lua | unlicense | ArchiveTeam/vstreamers-grab,ArchiveTeam/vstreamers-grab |
8d7c423f707623fad896662af2ffcedcc3e80d86 | src/websocket/client_ev.lua | src/websocket/client_ev.lua |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local debug = require'debug'
local tconcat = table.concat
local tinsert = table.insert
local ev = function(ws)
ws = ws or {}
local ev = require'ev'
local so... |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local debug = require'debug'
local tconcat = table.concat
local tinsert = table.insert
local ev = function(ws)
ws = ws or {}
local ev = require'ev'
local so... | fix async open | fix async open
| Lua | mit | lipp/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,lipp/lua-websockets,enginix/lua-websockets,enginix/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets |
deb477a62a1792b232666ff0f1ddf7f85431832f | src/lua/sancus/log.lua | src/lua/sancus/log.lua | -- This file is part of sancus-core-lua <http://github.com/amery/sancus-core-lua>
--
-- Copyright (c) 2011, Alejandro Mery <amery@geeks.cl>
--
core = require(... .. ".core")
local setmetatable = setmetatable
local assert, select, type = assert, select, type
module(...)
local _mt = {}
function _mt:log(str, ...)
if ... | -- This file is part of sancus-core-lua <http://github.com/amery/sancus-core-lua>
--
-- Copyright (c) 2011, Alejandro Mery <amery@geeks.cl>
--
core = require(... .. ".core")
local setmetatable = setmetatable
local assert, select, type = assert, select, type
module(...)
local _mt = {}
function _mt:log(str, ...)
if ... | sancus.log: fixed logger.__call() | sancus.log: fixed logger.__call()
| Lua | bsd-3-clause | sancus-project/sancus-core-lua-old,sancus-project/sancus-core-lua-old |
e6e68bb630fd64b15a04a626d7ff8faef52a916e | packages/lime-proto-wan/src/wan.lua | packages/lime-proto-wan/src/wan.lua | #!/usr/bin/lua
local libuci = require("uci")
wan = {}
wan.configured = false
function wan.configure(args)
if wan.configured then return end
wan.configured = true
local uci = libuci:cursor()
uci:set("network", "wan", "interface")
uci:set("network", "wan", "proto", "dhcp")
uci:save("network")
end
function wan... | #!/usr/bin/lua
local libuci = require("uci")
local fs = require("nixio.fs")
local opkg = require("luci.model.ipkg")
wan = {}
wan.configured = false
function wan.configure(args)
if wan.configured then return end
wan.configured = true
local uci = libuci:cursor()
uci:set("network", "wan", "interface")
uci:set("n... | lime-proto-wan: fix require fs and opkg (introduced in 1b23a3ce95) | lime-proto-wan: fix require fs and opkg (introduced in 1b23a3ce95)
| Lua | agpl-3.0 | libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
2380e249dc858b0326a3bf99d7e541fdd0bd514b | kong/cmd/utils/env.lua | kong/cmd/utils/env.lua | local pl_utils = require "pl.utils"
local log = require "kong.cmd.utils.log"
local fmt = string.format
local cmd = [[ printenv ]]
local function read_all()
log.debug("reading environment variables: %s", cmd)
local vars = {}
local success, ret_code, stdout, stderr = pl_utils.executeex(cmd)
if not success or... | -- Parts of this file are adapted from the ljsyscall project
-- The ljsyscall project is licensed under the MIT License,
-- and copyrighted as:
-- Copyright (C) 2011-2016 Justin Cormack. All rights reserved.
local ffi = require "ffi"
local log = require "kong.cmd.utils.log"
ffi.cdef [[
extern char **environ;
]]
... | hotfix(cli) read environment from **environ instead of printenv | hotfix(cli) read environment from **environ instead of printenv
Follow up fix of ac0f3f6fe3048210a68f93ee00d88f10eb77274c
From #3538 | Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
db86cbf5425dcf85f125c301b01dd2ed11d0903c | source/game/map.lua | source/game/map.lua |
require "source/pathfinder"
require "source/utilities/vector"
local Towers = require "assets/towers"
Map = flower.class()
function Map:init(t)
-- Copy all data members of the table as member variables
for k, d in pairs(t) do
self[k] = d
end
-- Try to load the map
if not self:Loa... |
require "source/pathfinder"
require "source/utilities/vector"
local Towers = require "assets/towers"
Map = flower.class()
function Map:init(t)
-- Copy all data members of the table as member variables
for k, d in pairs(t) do
self[k] = d
end
-- Try to load the map
if not self:Loa... | Fixed trying to load the saved map if the file cannot be loaded. | Fixed trying to load the saved map if the file cannot be loaded.
| Lua | mit | BryceMehring/Hexel |
52033c8697ad7298f6ee765158ac1f9c857f901d | build/scripts/actions/package.lua | build/scripts/actions/package.lua | newoption({
trigger = "pack-libdir",
description = "Specifiy the subdirectory in lib/ to be used when packaging the project"
})
ACTION.Name = "Package"
ACTION.Description = "Pack Nazara binaries/include/lib together"
ACTION.Function = function ()
local libDir = _OPTIONS["pack-libdir"]
if (not libDir or #libDi... | newoption({
trigger = "pack-libdir",
description = "Specifiy the subdirectory in lib/ to be used when packaging the project"
})
ACTION.Name = "Package"
ACTION.Description = "Pack Nazara binaries/include/lib together"
ACTION.Function = function ()
local libDir = _OPTIONS["pack-libdir"]
if (not libDir or #libDi... | Package: Fix resource copy on Linux | Package: Fix resource copy on Linux
| Lua | mit | DigitalPulseSoftware/NazaraEngine |
7c0415c793a74f0c4f0f817387cab71f46fb84a2 | loot.lua | loot.lua | local mod = EPGP:NewModule("EPGP_Loot", "AceEvent-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local pattern_cache = {}
local function deformat(str, format)
local pattern = pattern_cache[format]
if not pattern then
-- print(string.format("Format: %s", format))
-- Escape spec... | local mod = EPGP:NewModule("EPGP_Loot", "AceEvent-3.0", "AceTimer-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local pattern_cache = {}
local function deformat(str, format)
local pattern = pattern_cache[format]
if not pattern then
-- print(string.format("Format: %s", format))
-- Escape spec... | Do not add items to the loot queue of awards if a member is not able to credit those GP. This fixes issue 286. | Do not add items to the loot queue of awards if a member is not able to credit those GP. This fixes issue 286.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp |
2031b518b0d8cec7e9fc8f43f2a3a1f23d8cc1f8 | xmake/actions/config/scanner.lua | xmake/actions/config/scanner.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 name conflict for scanner | fix name conflict for scanner
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake |
c216164d742e2987da7da1b00daacdfd9fa933b3 | mark.lua | mark.lua | worldedit.marker1 = {}
worldedit.marker2 = {}
--marks worldedit region position 1
worldedit.mark_pos1 = function(name)
local pos = worldedit.pos1[name]
if worldedit.marker1[name] == nil then --marker does not yet exist
if pos ~= nil then --add marker
worldedit.marker1[name] = minetest.env:add_entity(pos... | worldedit.marker1 = {}
worldedit.marker2 = {}
--marks worldedit region position 1
worldedit.mark_pos1 = function(name)
local pos = worldedit.pos1[name]
if worldedit.marker1[name] ~= nil then --marker already exists
worldedit.marker1[name]:remove() --remove marker
worldedit.marker1[name] = nil
end
if ... | Simplify marker placement and fix wierd bug where object:setpos() didn't work. | Simplify marker placement and fix wierd bug where object:setpos() didn't work.
| Lua | agpl-3.0 | Uberi/Minetest-WorldEdit |
e74163ee0704f535f726e0754a183f7c9c46d023 | mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua | mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua | local rostermanager = require "core.rostermanager";
local jid = require "util.jid";
local st = require "util.stanza";
local core_post_stanza = prosody.core_post_stanza;
local function handle_inbound_subscription_request(origin, stanza)
local to_bare, from_bare = jid.bare(stanza.attr.to), jid.bare(stanza.attr.from);
... | local rostermanager = require "core.rostermanager";
local jid = require "util.jid";
local st = require "util.stanza";
local core_post_stanza = prosody.core_post_stanza;
local function handle_inbound_subscription_request(origin, stanza)
local to_bare, from_bare = jid.bare(stanza.attr.to), jid.bare(stanza.attr.from);
... | mod_auto_accept_subscriptions: Fix passing nil in log message | mod_auto_accept_subscriptions: Fix passing nil in log message
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
f0100ab02f193945cc88ac7995c6752980847ee6 | Core.lua | Core.lua | local L = EPGPGlobalStrings
EPGP = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceDB-2.0", "AceDebug-2.0", "AceEvent-2.0", "AceModuleCore-2.0")
-------------------------------------------------------------------------------
-- DB defaults
-------------------------------------------------------------------------... | local L = EPGPGlobalStrings
EPGP = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceDB-2.0", "AceDebug-2.0", "AceEvent-2.0", "AceModuleCore-2.0")
-------------------------------------------------------------------------------
-- DB defaults
-------------------------------------------------------------------------... | Fix problem with epgp hiding command line interface when suspended (Issue 114) | Fix problem with epgp hiding command line interface when suspended (Issue 114)
| Lua | bsd-3-clause | hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,hayword/tfatf_epgp,sheldon/epgp,protomech/epgp-dkp-reloaded,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf |
4d348c4450786efb10e5f0e9699730984a4d5131 | scripts/src/h.lua | scripts/src/h.lua | require "lmkbuild"
local assert = assert
local append = lmkbuild.append_local
local cp = lmkbuild.cp
local file_newer = lmkbuild.file_newer
local ipairs = ipairs
local is_valid = lmkbuild.is_valid
local mkdir = lmkbuild.mkdir
local print = print
local resolve = lmkbuild.resolve
local rm = lmkbuild.rm
local split = lmk... | require "lmkbuild"
local assert = assert
local append = lmkbuild.append_local
local cp = lmkbuild.cp
local file_newer = lmkbuild.file_newer
local ipairs = ipairs
local is_valid = lmkbuild.is_valid
local mkdir = lmkbuild.mkdir
local print = print
local resolve = lmkbuild.resolve
local rm = lmkbuild.rm
local split = lmk... | bug fix when header file is missing the .h | bug fix when header file is missing the .h
| Lua | mit | dmzgroup/lmk,shillcock/lmk |
1fadd23e8bf611248c8c09c52fbb6029a6998226 | MMOCoreORB/bin/scripts/object/tangible/instrument/base/instrument_base.lua | MMOCoreORB/bin/scripts/object/tangible/instrument/base/instrument_base.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | [fixed] missed some races | [fixed] missed some races
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4209 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
196d216c8f30b3251b2504a7ad1bd304c0c7760d | stdlib/log/logger.lua | stdlib/log/logger.lua | --- Logger module
-- @module log
Logger = {}
--- Creates a new logger object
-- In debug mode, the logger writes immediately. Otherwise it buffers lines.
-- Logger flushes after 60 seconds has elapsed since the last message.
-- @param mod_name [required] the name of the mod to create the logger for
-- @param log_name... | --- Logger module
-- @module log
Logger = {}
--- Creates a new logger object
-- In debug mode, the logger writes immediately. Otherwise it buffers lines.
-- Logger flushes after 60 seconds has elapsed since the last message.
-- @param mod_name [required] the name of the mod to create the logger for
-- @param log_name... | A bit of logger optimization and fix invalid escape sequence | A bit of logger optimization and fix invalid escape sequence
| Lua | isc | Afforess/Factorio-Stdlib |
d054497edaab5e132cd39270eeeaf0de925b9137 | server.lua | server.lua | -- https://github.com/szym/display
-- Copyright (c) 2015, Szymon Jakubczak (MIT License)
-- Forwards any data POSTed to /events to an event-stream at /events.
-- Serves files from /static otherwise.
local async = require('async')
local sys = require('sys')
local function getMime(ext)
if ext == '.css' then
r... | -- https://github.com/szym/display
-- Copyright (c) 2015, Szymon Jakubczak (MIT License)
-- Forwards any data POSTed to /events to an event-stream at /events.
-- Serves files from /static otherwise.
local async = require('async')
local paths = require('paths')
local sys = require('sys')
local function getMime(ext)
... | Fix misuse of sys.fpath() | Fix misuse of sys.fpath() | Lua | mit | szym/display,szym/display,szym/display,szym/display |
daf9b6caca19906059e05ae57d7dfd3be0c0d6a6 | SpatialConvolution.lua | SpatialConvolution.lua | local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module')
function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
s... | local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module')
function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
s... | SpatialConvolution empty gradParams fix | SpatialConvolution empty gradParams fix
| Lua | bsd-3-clause | andreaskoepf/nn,PierrotLC/nn,Djabbz/nn,sbodenstein/nn,PraveerSINGH/nn,hery/nn,davidBelanger/nn,fmassa/nn,eulerreich/nn,abeschneider/nn,Moodstocks/nn,GregSatre/nn,apaszke/nn,lukasc-ch/nn,ivendrov/nn,caldweln/nn,adamlerer/nn,ominux/nn,nicholas-leonard/nn,lvdmaaten/nn,joeyhng/nn,elbamos/nn,Aysegul/nn,Jeffyrao/nn,aaiijmrtt... |
510e85f53be3216f9ab3d9179d92dfa7cb1da6f2 | deps/ustring.lua | deps/ustring.lua | local ustring = {}
local tostring = tostring
local _meta = {}
local strsub = string.sub
local strbyte = string.byte
local band = bit.band
local rshift = bit.rshift
local function chlen(byte)
if rshift(byte,7) == 0x00 then
return 1
elseif rshift(byte,5) == 0x06 then
return 2
elseif rshift(b... | local ustring = {}
local tostring = tostring
local _meta = {}
local strsub = string.sub
local strbyte = string.byte
local band = bit.band
local rshift = bit.rshift
local function chlen(byte)
if rshift(byte,7) == 0x00 then
return 1
elseif rshift(byte,5) == 0x06 then
return 2
elseif rshift(b... | little fix | little fix
| Lua | apache-2.0 | luvit/luvit,zhaozg/luvit,zhaozg/luvit,luvit/luvit |
0266ebeab06a910cd4ea58f99dbd8f98cf402937 | extensions/logger/init.lua | extensions/logger/init.lua | --- === hs.logger ===
---
--- Simple logger for debugging purposes
-- * This can mainly be useful for diagnosing complex scripts; however there is some overhead involved.
-- * Implementing a mock version could help, although not completely as lua lacks lazy evaluation
local date,time = os.date,os.time
local format,su... | --- === hs.logger ===
---
--- Simple logger for debugging purposes
local date,time = os.date,os.time
local format,sub=string.format,string.sub
local select,print,concat,min=select,print,table.concat,math.min
local fnutils=require'hs.fnutils'
local ERROR , WARNING , INFO , DEBUG , VERBOSE =1,2,3,4,5
local le... | fix docstrings | fix docstrings
| Lua | mit | junkblocker/hammerspoon,heptal/hammerspoon,ocurr/hammerspoon,wsmith323/hammerspoon,peterhajas/hammerspoon,tmandry/hammerspoon,knu/hammerspoon,Stimim/hammerspoon,Habbie/hammerspoon,joehanchoi/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,TimVonsee/hammerspoon,ocurr/hammerspoon,asmagill/hammerspoon,asmagill/ha... |
c3de24889e87b01064beca79859d821b6dcb9c68 | premake4.lua | premake4.lua | --
-- Premake 5.x build configuration script
-- Use this script to configure the project with Premake4.
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
... | --
-- Premake 5.x build configuration script
-- Use this script to configure the project with Premake4.
--
--
-- Define the project. Put the release configuration first so it will be the
-- default when folks build using the makefile. That way they don't have to
-- worry about the /scripts argument and all that.
--
... | Fix bootstrapping with premake4 | Fix bootstrapping with premake4
| Lua | bsd-3-clause | annulen/premake,annulen/premake,annulen/premake,annulen/premake |
e0a288b4b7904c78cd6b429d1070ae247e340e5c | kong/plugins/hmac-auth/access.lua | kong/plugins/hmac-auth/access.lua | local cache = require "kong.tools.database_cache"
local stringy = require "stringy"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local math_abs = math.abs
local ngx_time = ngx.time
local ngx_gmatch = ngx.re.gmatch
local ngx_decode_base64 = ngx.decode_base64
local ngx_pars... | local cache = require "kong.tools.database_cache"
local stringy = require "stringy"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local math_abs = math.abs
local ngx_time = ngx.time
local ngx_gmatch = ngx.re.gmatch
local ngx_decode_base64 = ngx.decode_base64
local ngx_pars... | hotfix(hmac-auth) constant time digest comparison | hotfix(hmac-auth) constant time digest comparison
fix #655
| Lua | apache-2.0 | li-wl/kong,salazar/kong,ajayk/kong,Kong/kong,jebenexer/kong,Kong/kong,Mashape/kong,smanolache/kong,akh00/kong,icyxp/kong,shiprabehera/kong,jerizm/kong,xvaara/kong,beauli/kong,ccyphers/kong,Kong/kong,Vermeille/kong |
a8a62566cea8d638a8f0779cff110038ac3383ae | himan-scripts/nwcsaf-low-and-high-cloud.lua | himan-scripts/nwcsaf-low-and-high-cloud.lua | --[[
// Effective cloudinessin fiksausta
// Leila & Anniina Versio 31/3/22
// Korjaa satelliitin karkean resoluution aiheuttamia aukkoja ylä- ja alapilvialueiden rajoilla
]]
function Write(res)
result:SetParam(param("NWCSAF_EFFCLD-0TO1"))
result:SetValues(res)
luatool:WriteToFile(result)
end
function LowAndHig... | --[[
// Effective cloudinessin fiksausta
// Leila & Anniina Versio 31/3/22
// Korjaa satelliitin karkean resoluution aiheuttamia aukkoja ylä- ja alapilvialueiden rajoilla
]]
function Write(res)
result:SetParam(param("NWCSAF_EFFCLD-0TO1"))
result:SetValues(res)
luatool:WriteToFile(result)
end
function LowAndHig... | Implement a fix for false clear sky data | Implement a fix for false clear sky data
Smartmet NWC relative humidity data is used to determine
if low-level cloud is missing from NWCSAF
| Lua | mit | fmidev/himan,fmidev/himan,fmidev/himan |
c38d37153fa9fc503fb5f868308fee50ce514dbb | vanilla/v/request.lua | vanilla/v/request.lua | -- perf
local error = error
local pairs = pairs
local setmetatable = setmetatable
local sfind = string.find
local Request = {}
function Request:new()
local params = {} -- body params
local headers = ngx.req.get_headers()
local header = headers['Content-Type']
if header then
local is_multipart ... | -- perf
local error = error
local pairs = pairs
local setmetatable = setmetatable
local sfind = string.find
local Request = {}
function Request:new()
local params = {} -- body params
local headers = ngx.req.get_headers()
local header = headers['Content-Type']
if header then
local is_multipart ... | Fix bug | Fix bug
Put request data to params too
| Lua | mit | lhmwzy/vanilla,lhmwzy/vanilla,lhmwzy/vanilla,lhmwzy/vanilla |
534437b722d7dbe2175ec8aa201ebf6a6234f227 | init.lua | init.lua | require("keybindings")
require("plugins")
vim.cmd('source funks.vim')
local options = {
number = true,
relativenumber = true,
hidden = true,
inccommand = 'nosplit',
hlsearch = false,
ignorecase = true,
smartcase = true,
mouse = 'a',
breakindent = true,
... | require("keybindings")
require("plugins")
vim.cmd('source funks.vim')
local options = {
number = true,
relativenumber = true,
hidden = true,
inccommand = 'nosplit',
hlsearch = false,
ignorecase = true,
smartcase = true,
mouse = 'a',
breakindent = true,
... | Fix auto setting colorscheme for macOS | Fix auto setting colorscheme for macOS
| Lua | mit | aasare/aaku |
93cf041b6401d08484332e2b9b4a4840784dd90d | init.lua | init.lua | local WebSocket = require("websocket")
local json = require("json")
local table = require("table")
local md5 = require("md5")
local os = require("os")
local math = require("math")
local base64 = require("base64")
exports.new = function(func)
local t = {}
t.listener = {connect = {}, data = {}, disconnect = {}, timeo... | local WebSocket = require("websocket")
local json = require("json")
local table = require("table")
local md5 = require("md5")
local os = require("os")
local math = require("math")
local base64 = require("base64")
exports.new = function(func)
local t = {}
t.listener = {connect = {}, data = {}, disconnect = {}, timeo... | Added timeout event + hopefully fixed both, disconnect and timeout events. | Added timeout event + hopefully fixed both, disconnect and timeout events.
| Lua | mit | b42nk/LuvSocks,b42nk/LuvSocks |
4f74b38ff9a01e1ed1678b8b5765c4a4f8634169 | init.lua | init.lua | --
-- A torch client for `display` graphics server
-- Based heavily on https://github.com/clementfarabet/gfx.js/blob/master/clients/torch/js.lua
--
local mime = require 'mime'
local http = require 'socket.http'
local ltn12 = require 'ltn12'
local json = require 'cjson'
local ffi = require 'ffi'
require 'image' -- im... | --
-- A torch client for `display` graphics server
-- Based heavily on https://github.com/clementfarabet/gfx.js/blob/master/clients/torch/js.lua
--
local mime = require 'mime'
local http = require 'socket.http'
local ltn12 = require 'ltn12'
local json = require 'cjson'
local ffi = require 'ffi'
require 'image' -- im... | Default Tensor type fix | Default Tensor type fix
| Lua | mit | szym/display,szym/display,szym/display,szym/display |
65e675a8cc7c96918d140656af55941afbfa8104 | main.lua | main.lua | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
require 'torch'
... | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
require 'torch'
... | Remove (incorrect) duplicate loading of optimState from checkpoint | Remove (incorrect) duplicate loading of optimState from checkpoint
Fixes #34
| Lua | bsd-3-clause | ltrottier/pelu.resnet.torch,ltrottier/pelu.resnet.torch |
a9c6a3af1812a76cf6f047b554e587eef2ffccde | Peripherals/HDD.lua | Peripherals/HDD.lua | local events = require("Engine.events")
--A function that calculates the total size of a directory
local function calcSize(dir)
local total = 0
local files = love.filesystem.getDirectoryItems(dir)
for k,filename in ipairs(files) do
if love.filesystem.isDirectory(dir..filename) then
total = total + calc... | local events = require("Engine.events")
--A function that calculates the total size of a directory
local function calcSize(dir)
local total = 0
local files = love.filesystem.getDirectoryItems(dir)
for k,filename in ipairs(files) do
if love.filesystem.isDirectory(dir..filename) then
total = total + calc... | Added a set of hdd commands and nade some bugfixes | Added a set of hdd commands and nade some bugfixes | Lua | mit | RamiLego4Game/LIKO-12 |
ee3d1cff449e383c11be5f7d82812e9bacffd25d | goif.lua | goif.lua | --
-- goif
--
-- Copyright (c) 2016 BearishMushroom
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
--
local goif = goif or {}
goif.frame = 0
goif.active = false
goif.canvas = nil
goif.width = 0
goif.height = 0
goif.data = {... | --
-- goif
--
-- Copyright (c) 2016 BearishMushroom
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
--
local goif = goif or {}
goif.frame = 0
goif.active = false
goif.canvas = nil
goif.width = 0
goif.height = 0
goif.data = {... | The definitive Linux inclusion fix. | The definitive Linux inclusion fix.
| Lua | mit | BearishMushroom/goif |
e85c3eb24db6bf033870472f62728177e3f124c0 | mods/soundset/init.lua | mods/soundset/init.lua | minetest.log("action","[mod soundset] Loading...")
soundset = {}
soundset.file = minetest.get_worldpath() .. "/sounds_config.txt"
soundset.gainplayers = {}
soundset.tmp = {}
local function save_sounds_config()
local input = io.open(soundset.file, "w")
if input then
input:write(minetest.serialize(soundset.gainpla... | minetest.log("action","[mod soundset] Loading...")
soundset = {}
soundset.file = minetest.get_worldpath() .. "/sounds_config.txt"
soundset.gainplayers = {}
local tmp = {}
tmp["music"] = {}
tmp["ambience"] = {}
tmp["other"] = {}
local function save_sounds_config()
local input = io.open(soundset.file, "w")
if input ... | fix crash due to lag | fix crash due to lag
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,Coethium/server-minetestforfun,sys4-fr/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,LeMagnesium/minetest-min... |
31f4af07be38e2a66112adda35b99360507d2397 | 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... | lua-factory: change in metrolyrics website | lua-factory: change in metrolyrics website
The HTML part of the lyrics changed. I've changed the get_lyrics
function to clean up the HTML that came with the lyrics instead
of matching it.
https://bugzilla.gnome.org/show_bug.cgi?id=741784
| Lua | lgpl-2.1 | MathieuDuponchelle/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,jas... |
37677190945947dfa6b7f445ca96c01e66e74430 | src/lua-factory/sources/grl-radiofrance.lua | src/lua-factory/sources/grl-radiofrance.lua | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | --[[
* Copyright (C) 2014 Bastien Nocera
*
* Contact: Bastien Nocera <hadess@hadess.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at you... | radiofrance: Don't break when run behind a portal | radiofrance: Don't break when run behind a portal
[lua-library] grl-lua-library.c:351: calling source callback function fail (radiofrance_fetch_cb) '/home/hadess/Projects/gnome-install/share/grilo-plugins/grl-lua-factory/grl-radiofrance.lua:87: attempt to index local 'items' (a nil value)'
https://bugzilla.gnome.org/... | Lua | lgpl-2.1 | MikePetullo/grilo-plugins,grilofw/grilo-plugins,vrutkovs/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,vrutkovs/grilo-plugins,MathieuDuponchelle/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,vrutkovs/g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.