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 |
|---|---|---|---|---|---|---|---|---|---|
ca784e3fbdaacf00b740da9106618458f4f92c4e | share/lua/util/content_type.lua | share/lua/util/content_type.lua |
-- libquvi-scripts
-- Copyright (C) 2010 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free So... |
-- libquvi-scripts
-- Copyright (C) 2010 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free So... | Add special-case suffix for audio/mpeg | Add special-case suffix for audio/mpeg
It's not mpeg, it's mp3.
| Lua | lgpl-2.1 | DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,legatvs/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,legatvs/libquvi-scripts |
d25ab62379f1c9b72cca6ea787e3a37a17fa9b6d | deps/coro-fs.lua | deps/coro-fs.lua | --[[lit-meta
name = "creationix/coro-fs"
version = "2.2.3"
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-fs.lua"
description = "A coro style interface to the filesystem."
tags = {"coro", "fs"}
license = "MIT"
dependencies = {
"creationix/pathjoin@2.0.0"
}
author = { name = "Tim Ca... | --[[lit-meta
name = "creationix/coro-fs"
version = "2.2.3"
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-fs.lua"
description = "A coro style interface to the filesystem."
tags = {"coro", "fs"}
license = "MIT"
dependencies = {
"creationix/pathjoin@2.0.0"
}
author = { name = "Tim Ca... | fix bugs reading large virtual files in coro-fs.readFile. | fix bugs reading large virtual files in coro-fs.readFile.
| Lua | apache-2.0 | zhaozg/lit,luvit/lit |
586d78c0c115be560c15b18aa0f65e4b8966e409 | Hydra/textgrid.lua | Hydra/textgrid.lua | api.doc.textgrid.textgrids = {"api.textgrid.textgrids = {}", "All currently open textgrid windows; do not mutate this at all."}
api.textgrid.textgrids = {}
api.textgrid.textgrids.n = 0
api.doc.textgrid.open = {"api.textgrid.open() -> textgrid", "Opens a new textgrid window."}
function api.textgrid.open()
local tg = ... | api.doc.textgrid.textgrids = {"api.textgrid.textgrids = {}", "All currently open textgrid windows; do not mutate this at all."}
api.textgrid.textgrids = {}
api.textgrid.textgrids.n = 0
api.doc.textgrid.open = {"api.textgrid.open() -> textgrid", "Opens a new textgrid window."}
function api.textgrid.open()
local tg = ... | Fixing bug in api.textgrid.closeall() | Fixing bug in api.textgrid.closeall()
| Lua | mit | latenitefilms/hammerspoon,kkamdooong/hammerspoon,Stimim/hammerspoon,zzamboni/hammerspoon,tmandry/hammerspoon,wvierber/hammerspoon,ocurr/hammerspoon,asmagill/hammerspoon,heptal/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,nkgm/hammerspoon,chrisjbray/hammerspoon,chrisjbray/hammerspoon,cmsj/hammerspoon,nkg... |
8095712d81e5e5c362306ce9d9e8583c78ee65d9 | Libs/Core/premake5.lua | Libs/Core/premake5.lua | project "Core"
kind "StaticLib"
language "C++"
targetdir "../../Bin/%{cfg.buildcfg}"
includedirs { "Include", "../../3rdParty/dbghelp/include" }
links { "Test", "GoogleTest" }
files
{
"../FlourishConfig.h",
"Include/**.h",
"Include/**.inl",
"Source/**.c",
"Sourc... | project "Core"
kind "StaticLib"
language "C++"
targetdir "../../Bin/%{cfg.buildcfg}"
includedirs { "Include", "../../3rdParty/dbghelp/include" }
links { "Test", "GoogleTest" }
files
{
"../FlourishConfig.h",
"Include/**.h",
"Include/**.inl",
"Source/**.c",
"Sourc... | Fixed Issues with lib paths in cmake projects when using relative paths to libraries | Fixed Issues with lib paths in cmake projects when using relative paths to libraries
| Lua | mit | Flourish-Team/Flourish,Flourish-Team/Flourish,Flourish-Team/Flourish,Flourish-Team/Flourish,Flourish-Team/Flourish |
56fc37892f5e3bdf37751cb7156062d13b0ea237 | src/main/resources/std/math.lua | src/main/resources/std/math.lua | -- Copyright (c) 2018. tangzx(love.tangzx@qq.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License"); you may not
-- use this file except in compliance with the License. You may obtain a copy of
-- the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law ... | -- Copyright (c) 2018. tangzx(love.tangzx@qq.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License"); you may not
-- use this file except in compliance with the License. You may obtain a copy of
-- the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law ... | fix optional params | fix optional params | Lua | apache-2.0 | EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua |
f08379327a9d41adee7d32cbf99a24d820ce9c96 | ffi/freetype.lua | ffi/freetype.lua | --[[
Freetype library interface (text rendering)
--]]
local ffi = require("ffi")
local Blitbuffer = require("ffi/blitbuffer")
-- the header definitions
require("ffi/freetype_h")
local ft2 = ffi.load("libs/libfreetype.so.6")
local freetypelib = ffi.new("FT_Library[1]")
assert(ft2.FT_Init_FreeType(freetypelib) == 0, ... | --[[
Freetype library interface (text rendering)
--]]
local ffi = require("ffi")
local Blitbuffer = require("ffi/blitbuffer")
-- the header definitions
require("ffi/freetype_h")
local ft2 = ffi.load("libs/libfreetype.so.6")
local freetypelib = ffi.new("FT_Library[1]")
assert(ft2.FT_Init_FreeType(freetypelib) == 0, ... | fix bg- and fgcolor support in freetype ffi module | fix bg- and fgcolor support in freetype ffi module
| Lua | agpl-3.0 | frankyifei/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,houqp/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,koreader/koreader-base,houqp/koreader-base,houqp... |
a6e30390f384a5dd6446542436d45fd983af565b | test/lua/unit/expressions.lua | test/lua/unit/expressions.lua | -- Expressions unit tests
context("Rspamd expressions", function()
local rspamd_expression = require "rspamd_expression"
local rspamd_mempool = require "rspamd_mempool"
local _ = require "fun"
local function parse_func(str)
-- extract token till the first space character
local token = table.join('',... | -- Expressions unit tests
context("Rspamd expressions", function()
local rspamd_expression = require "rspamd_expression"
local rspamd_mempool = require "rspamd_mempool"
local rspamd_regexp = require "rspamd_regexp"
local split_re = rspamd_regexp.create('/\\s+/')
local function parse_func(str)
-- extra... | Fix expressions unit test. | Fix expressions unit test.
| Lua | apache-2.0 | minaevmike/rspamd,amohanta/rspamd,dark-al/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,amohanta/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,awhitesong/rspamd,minaevmike/rspamd,awhitesong/rspamd,amohanta/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,dark-... |
f4737d7f3e244f59cf52ffc6a951cc8cb1eed89d | lua/plugins/lsp.lua | lua/plugins/lsp.lua | -- local nvim = require('nvim')
local plugs = require('nvim').plugs
local sys = require('sys')
local executable = require('nvim').fn.executable
local isdirectory = require('nvim').fn.isdirectory
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
-- local nvim_set_command = require('nvim').nvim_set_command
loca... | -- local nvim = require('nvim')
local plugs = require('nvim').plugs
local sys = require('sys')
local executable = require('nvim').fn.executable
local isdirectory = require('nvim').fn.isdirectory
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
-- local nvim_set_command = require('nvim').nvim_set_command
loca... | fix: Check for executable name in some language servers | fix: Check for executable name in some language servers
Allow to set custom executable name for language servers
Set name for vimls to vim-language-server
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
59a63c11b14bf948c4d26243b3c1bcbcd8edb985 | frontend/ui/widget/radiobuttontable.lua | frontend/ui/widget/radiobuttontable.lua | local Blitbuffer = require("ffi/blitbuffer")
local CheckButton = require("ui/widget/checkbutton")
local Device = require("device")
local FocusManager = require("ui/widget/focusmanager")
local Font = require("ui/font")
local Geom = require("ui/geometry")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local... | local Blitbuffer = require("ffi/blitbuffer")
local CheckButton = require("ui/widget/checkbutton")
local Device = require("device")
local FocusManager = require("ui/widget/focusmanager")
local Font = require("ui/font")
local Geom = require("ui/geometry")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local... | RadioButtonTable: CheckButton does not have onFocus (#8847) | RadioButtonTable: CheckButton does not have onFocus (#8847)
Fixes #8841 | Lua | agpl-3.0 | Frenzie/koreader,Frenzie/koreader,poire-z/koreader,NiLuJe/koreader,koreader/koreader,poire-z/koreader,koreader/koreader,NiLuJe/koreader |
05a0ab572ce6a5b9e668de103bb0438024550c21 | Shilke2D/Utils/CollisionKit.lua | Shilke2D/Utils/CollisionKit.lua | --[[---
Helper for image collision detection.
It's based on flash functions logic.
--]]
--[[---
Checks pixel perfect overlap of 2 raw images (MOAIImage).
Depending on __USE_SIMULATION_COORDS__ the point 0,0 of the image is considered
the top or the bottom left point
@param i1 image 1
@param p1 top/bottom left posit... | --[[---
Helper for image collision detection.
It's based on flash functions logic.
--]]
--[[---
Checks pixel perfect overlap of 2 raw images (MOAIImage).
Depending on __USE_SIMULATION_COORDS__ the point 0,0 of the image is considered
the top or the bottom left point
@param i1 image 1
@param p1 top/bottom left posit... | fix on hitTest algorithms | fix on hitTest algorithms
| Lua | mit | Shrike78/Shilke2D |
0d758896071fc00e0105898844abc6a4752f68f9 | tools/utils/BPE.lua | tools/utils/BPE.lua | local unicode = require 'tools.utils.unicode'
local BPE = torch.class('BPE')
function BPE:__init(opt)
self.split = string.split
-- to be able to run the code without torch
if not self.split then
self.split = function(t, sep)
local fields = {}
local pattern = string.format("([^%s]+)", sep)
t... | local unicode = require 'tools.utils.unicode'
local BPE = torch.class('BPE')
function BPE:__init(opt)
self.split = string.split
-- to be able to run the code without torch
if not self.split then
self.split = function(t, sep)
local fields = {}
local pattern = string.format("([^%s]+)", sep)
t... | fix noffix missing last subtoken problem for BPE.lua | fix noffix missing last subtoken problem for BPE.lua
| Lua | mit | jsenellart/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,jungikim/Ope... |
f2a6f2d1d52dc0d6b376c4b55fa50e1a91884264 | lua/plugins/lsp.lua | lua/plugins/lsp.lua | local nvim = require('nvim')
local executable = require('nvim').fn.executable
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
if not ok then
print('Failed to initialize LSP')
print('LSP Error '..lsp)... | local nvim = require('nvim')
local executable = require('nvim').fn.executable
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
if not ok then
return nil
end
local servers = {
sh = { bashls ... | fix: Remove prints | fix: Remove prints
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
0e9afcfd6798412ef354a455d528ecf43e3c24db | plugins/mod_http.lua | plugins/mod_http.lua | -- Prosody IM
-- Copyright (C) 2008-2012 Matthew Wild
-- Copyright (C) 2008-2012 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local parse_url = require "socket.url".parse;
local server = require "net.http.serv... | -- Prosody IM
-- Copyright (C) 2008-2012 Matthew Wild
-- Copyright (C) 2008-2012 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
local parse_url = require "socket.url".parse;
local server = require "net.http.serv... | mod_http: Fix specifying method in app route keys | mod_http: Fix specifying method in app route keys
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
0d4fd9173c789566481e6976417cc7b68fc6dc0b | admin/server/player_admin.lua | admin/server/player_admin.lua | addCommandHandler( { "getpos", "pos", "getposition", "getxyz", "getloc", "loc", "getlocation" },
function( player, cmd, targetPlayer )
if ( exports.common:isPlayerServerTrialAdmin( player ) ) then
if ( targetPlayer ) then
targetPlayer = exports.common:getPlayerFromPartialName( targetPlayer, player )
... | addCommandHandler( { "getpos", "pos", "getposition", "getxyz", "getloc", "loc", "getlocation" },
function( player, cmd, targetPlayer )
if ( exports.common:isPlayerServerTrialAdmin( player ) ) then
if ( targetPlayer ) then
targetPlayer = exports.common:getPlayerFromPartialName( targetPlayer, player )
... | admin: fixed issue with makeadmin | admin: fixed issue with makeadmin
| Lua | mit | smile-tmb/lua-mta-fairplay-roleplay |
7d09bd30e225dc0d3d7ffd8b59d878ca073b86dd | spatialhash.lua | spatialhash.lua | --[[
Copyright (c) 2011 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | --[[
Copyright (c) 2011 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | Fix issue #10. Fix spatialhash drawing. | Fix issue #10. Fix spatialhash drawing.
Shapes were not inserted into the spatial hash when not moved. Shapes
set to passive directly after creation would not be in the hash,
resulting in no collision reports.
Spatialhash drawing updated to the new cell indexing method.
| Lua | mit | aswyk/botrot |
9aaee24c50b20f3cd87cad6c782fee1e953a1208 | src/cli/cli.lua | src/cli/cli.lua | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | --[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... | Fix the string casting | Fix the string casting
| Lua | mit | Zefiros-Software/ZPM |
46a851b286581f05b3d8d77fa63f522bbab53ad3 | packages/bidi.lua | packages/bidi.lua | SILE.registerCommand("thisframeLTR", function(options, content)
SILE.typesetter.frame.direction = "LTR"
SILE.typesetter:leaveHmode()
SILE.typesetter.frame:newLine()
end);
SILE.registerCommand("thisframedirection", function(options, content)
SILE.typesetter.frame.direction = SU.required(options, "direction", "f... | SILE.registerCommand("thisframeLTR", function(options, content)
SILE.typesetter.frame.direction = "LTR"
SILE.typesetter:leaveHmode()
SILE.typesetter.frame:newLine()
end);
SILE.registerCommand("thisframedirection", function(options, content)
SILE.typesetter.frame.direction = SU.required(options, "direction", "f... | Attempted reworking of bidi to fix line break problem. (See #137) | Attempted reworking of bidi to fix line break problem. (See #137) | Lua | mit | simoncozens/sile,alerque/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,neofob/sile,alerque/sile,neofob/sile,neofob/sile,simoncozens/sile |
0d82a4f3c5c248b2cc1a5e8aacd8b8245c4d4162 | config/nvim/lua/init/null_ls.lua | config/nvim/lua/init/null_ls.lua | local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.completion.spell,
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.elm_format,
null_ls.builtins.formatting.eslint,
null_ls.builtins... | local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.completion.spell,
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.elm_format,
null_ls.builtins.formatting.eslint,
null_ls.builtins... | Fix zsh formatting | Fix zsh formatting
| Lua | unlicense | raviqqe/dotfiles |
71b32cb698baa79ece2b29196a07a2debd7b910d | kong/dao/schemas/upstreams.lua | kong/dao/schemas/upstreams.lua | local Errors = require "kong.dao.errors"
local utils = require "kong.tools.utils"
local DEFAULT_SLOTS = 100
local SLOTS_MIN, SLOTS_MAX = 10, 2^16
local SLOTS_MSG = "number of slots must be between " .. SLOTS_MIN .. " and " .. SLOTS_MAX
return {
table = "upstreams",
primary_key = {"id"},
fields = {
id = {
... | local Errors = require "kong.dao.errors"
local utils = require "kong.tools.utils"
local DEFAULT_SLOTS = 100
local SLOTS_MIN, SLOTS_MAX = 10, 2^16
local SLOTS_MSG = "number of slots must be between " .. SLOTS_MIN .. " and " .. SLOTS_MAX
return {
table = "upstreams",
primary_key = {"id"},
fields = {
id = {
... | fix(dao) support self_check() on incomplete upstream objects | fix(dao) support self_check() on incomplete upstream objects
| Lua | apache-2.0 | Kong/kong,Mashape/kong,Kong/kong,Kong/kong,jebenexer/kong |
8079ff172577e07dbb0a9606e617d3740159159b | framework/db/redis/cluster.lua | framework/db/redis/cluster.lua | local redis_client = require "framework.db.redis.client"
local flexihash = require "framework.libs.flexihash"
local DEFAULT_CONNECT_TIMEOUT = 2000
local Cluster = {
flexihash = flexihash:instance()
}
Cluster.__index = Cluster
local clusters = {}
function Cluster:instance(name, config)
if clusters[name] then... | local redis_client = require "framework.db.redis.client"
local flexihash = require "framework.libs.flexihash"
local DEFAULT_CONNECT_TIMEOUT = 2000
local Cluster = {}
Cluster.__index = Cluster
local clusters = {}
function Cluster:instance(name, config)
if clusters[name] then
return clusters[name]
end... | fix bug: move flexihash to instance | fix bug: move flexihash to instance
| Lua | bsd-2-clause | nicholaskh/strawberry,nicholaskh/strawberry |
ce7097edbfaaa32d64d2355ec9d746998f34ee45 | vanilla/v/router.lua | vanilla/v/router.lua | -- perf
local error = error
local tconcat = table.concat
local function tappend(t, v) t[#t+1] = v end
-- init Router and set routes
local Router = {}
function Router:new(request)
local instance = {
routes = {require('vanilla.v.routes.simple'):new(request)},
request = request
}
setmetatable(i... | -- perf
local error = error
local tconcat = table.concat
local function tappend(t, v) t[#t+1] = v end
-- init Router and set routes
local Router = {}
function Router:new(request)
local instance = {
routes = {require('vanilla.v.routes.simple'):new(request)},
request = request
}
setmetatable(i... | fix a bug in router for route remove | fix a bug in router for route remove
self.routes[i] = nil bring a empty hole to the routes table
| Lua | mit | lhmwzy/vanilla,idevz/vanilla,lhmwzy/vanilla,idevz/vanilla,lhmwzy/vanilla,lhmwzy/vanilla |
44ea28c8acc91dfcc970e100f063ccb5ca46e711 | src/cosy/helper.lua | src/cosy/helper.lua | local _ = require "cosy.util.string"
local ignore = require "cosy.util.ignore"
local Data = require "cosy.data"
local Tag = require "cosy.tag"
local INSTANCE = Tag.INSTANCE
local POSITION = Tag.POSITION
local SELECTED = Tag.SELECTED
local HIGHLIGHTED = Tag.HIGHLIGHTED
local global =... | local _ = require "cosy.util.string"
local ignore = require "cosy.util.ignore"
local Data = require "cosy.data"
local Tag = require "cosy.tag"
local INSTANCE = Tag.INSTANCE
local POSITION = Tag.POSITION
local SELECTED = Tag.SELECTED
local HIGHLIGHTED = Tag.HIGHLIGHTED
local global =... | Trying to fix remove. | Trying to fix remove.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
43ab66729fbfa2404fd03ed445b4a976b79f93bd | demos/8vb/main.lua | demos/8vb/main.lua | -- 8vb
-- A shooter game to demo Modipulate
require('modipulate')
require('AnAL')
-- Constants
Direction = {
NONE = 0,
LEFT = 1,
RIGHT = 2
}
SHIP_SPEED = 4
ENEMY_SPEED = 4
-- Direction we're moving in.
dir = Direction.NONE
---- Modipulate callbacks
function love.load()
-- Modipulate
modipulate.load(true)
mo... | -- 8vb
-- A shooter game to demo Modipulate
require('modipulate')
require('AnAL')
-- Constants
Direction = {
NONE = 0,
LEFT = 1,
RIGHT = 2
}
SHIP_SPEED = 4
ENEMY_SPEED = 4
-- Direction we're moving in.
dir = Direction.NONE
---- Modipulate callbacks
function love.load()
-- Modipulate
modipulate.load(true)
mo... | fixed bug where game locked up in pattern change | fixed bug where game locked up in pattern change | Lua | bsd-3-clause | MrEricSir/Modipulate,MrEricSir/Modipulate |
c660e1fd2a05682c3aad9a67b903da9692e9f59e | pud/ui/Frame.lua | pud/ui/Frame.lua | local Class = require 'lib.hump.class'
local Rect = getClass 'pud.kit.Rect'
local MousePressedEvent = getClass 'pud.event.MousePressedEvent'
local MouseReleasedEvent = getClass 'pud.event.MouseReleasedEvent'
local math_max = math.max
local getMousePosition = love.mouse.getPosition
local newFramebuffer = love.graphics.... | local Class = require 'lib.hump.class'
local Rect = getClass 'pud.kit.Rect'
local MousePressedEvent = getClass 'pud.event.MousePressedEvent'
local MouseReleasedEvent = getClass 'pud.event.MouseReleasedEvent'
local math_max = math.max
local getMousePosition = love.mouse.getPosition
local newFramebuffer = love.graphics.... | fix Frame to unregister input events on destroy() | fix Frame to unregister input events on destroy()
| Lua | mit | scottcs/wyx |
3ca3b3a2c284a829ee0286baf60a36186305c61a | extensions/hints/init.lua | extensions/hints/init.lua | --- === hs.hints ===
---
--- Switch focus with a transient per-application hotkey
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This controls t... | --- === hs.hints ===
---
--- Switch focus with a transient per-application hotkey
local hints = require "hs.hints.internal"
local screen = require "hs.screen"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local modal_hotkey = hotkey.modal
--- hs.hints.hintChars
--- Variable
--- This controls t... | fix hintChars documentation | fix hintChars documentation
| Lua | mit | heptal/hammerspoon,Stimim/hammerspoon,knu/hammerspoon,lowne/hammerspoon,dopcn/hammerspoon,CommandPost/CommandPost-App,wsmith323/hammerspoon,joehanchoi/hammerspoon,zzamboni/hammerspoon,zzamboni/hammerspoon,hypebeast/hammerspoon,bradparks/hammerspoon,cmsj/hammerspoon,dopcn/hammerspoon,latenitefilms/hammerspoon,ocurr/hamm... |
60596581dd7ab3c9f7008b13caf15f019ad0f80a | source/networking/server.lua | source/networking/server.lua | local flower = flower
-- LuaSocket should come with zerobrane
local socket = require("socket")
Server = flower.class()
function Server:init(t)
self.port = t.port or 48310
self.server, self.servError = socket.bind("*", self.port)
if self.server then
self.client = {}
self.server:settime... | local flower = flower
-- LuaSocket should come with zerobrane
local socket = require("socket")
Server = flower.class()
function Server:init(t)
self.port = t.port or 48310
self.server, self.servError = socket.bind("*", self.port)
if self.server then
self.server:settimeout(0)
self.clien... | Fixed server behavior. Multiple clients can now connect to the server. | Fixed server behavior.
Multiple clients can now connect to the server.
| Lua | mit | BryceMehring/Hexel |
c1d21df35e8bb6614e10f434ab048871e1c33d10 | src/gui/Button.lua | src/gui/Button.lua | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local Group = require("core.Group")
local Event = require("core.Event")
local UIEvent = require("gui.UIEvent")
local UIObjectBase = require("gui.UIO... | --------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local Group = require("core.Group")
local Event = require("core.Event")
local UIEvent = require("gui.UIEvent")
local UIObjectBase = require("gui.UIO... | fix toggle button | fix toggle button
| Lua | mit | Vavius/moai-framework,Vavius/moai-framework |
589818d7c95116f046b8af9cd9066a1579da1177 | vrp/client/basic_garage.lua | vrp/client/basic_garage.lua |
local vehicles = {}
function tvRP.spawnGarageVehicle(vtype,name) -- vtype is the vehicle type (one vehicle per type allowed at the same time)
local vehicle = vehicles[vtype]
if vehicle and not IsVehicleDriveable(vehicle[3]) then -- precheck if vehicle is undriveable
-- despawn vehicle
Citizen.InvokeNativ... |
local vehicles = {}
function tvRP.spawnGarageVehicle(vtype,name) -- vtype is the vehicle type (one vehicle per type allowed at the same time)
local vehicle = vehicles[vtype]
if vehicle and not IsVehicleDriveable(vehicle[3]) then -- precheck if vehicle is undriveable
-- despawn vehicle
Citizen.InvokeNativ... | Fix put in vehicle for police cars, helicos and boats | Fix put in vehicle for police cars, helicos and boats
| Lua | mit | ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ImagicTheCat/vRP,ENDrain/vRP-plusplus,ImagicTheCat/vRP |
045a660149ecaab79b37fb51aea108077e46122c | modules/title/sites/spotify.lua | modules/title/sites/spotify.lua | local simplehttp = require'simplehttp'
local html2unicode = require'html'
customHosts['open.spotify.com'] = function(queue, info)
local path = info.path
if(path and path:match'/(%w+)/(.+)') then
simplehttp(
info.url,
function(data, url, response)
local title = html2unicode(data:match'<title>(.-) on Spo... | local simplehttp = require'simplehttp'
local html2unicode = require'html'
customHosts['open.spotify.com'] = function(queue, info)
local path = info.path
if(path and path:match'/(%w+)/(.+)') then
simplehttp(
info.url,
function(data, url, response)
local title = html2unicode(data:match'<title>(.-)</title... | title: fix spotify | title: fix spotify
| Lua | mit | torhve/ivar2,torhve/ivar2,torhve/ivar2 |
ac06d2aa0eb76a933a843aa37878535a427e8599 | tests/plugins/project/test.lua | tests/plugins/project/test.lua | import("detect.sdks.find_vstudio")
import("core.project.config")
import("core.platform.environment")
function test_vsxmake(t)
if os.host() ~= "windows" then
return t:skip("wrong host platform")
end
-- build project
local vs = find_vstudio()
local arch = os.getenv("platform") or "x86"
... | import("detect.sdks.find_vstudio")
import("core.project.config")
import("core.platform.platform")
import("core.platform.environment")
function test_vsxmake(t)
if os.host() ~= "windows" then
return t:skip("wrong host platform")
end
-- build project
local vs = find_vstudio()
local arch = os... | fix env | fix env
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
240fafc5f54afe682c1f14acffa3d70a4ed9b072 | AceLocale-3.0/AceLocale-3.0.lua | AceLocale-3.0/AceLocale-3.0.lua | --[[ $Id$ ]]
local MAJOR,MINOR = "AceLocale-3.0", 0
local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceLocale then return end -- no upgrade needed
-- Moved out of NewLocale since this should never change... should it?
local gameLocale = GAME_LOCALE or GetLocale()
if gameLocale == "enGB" then
gam... | --[[ $Id$ ]]
local MAJOR,MINOR = "AceLocale-3.0", 0
local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceLocale then return end -- no upgrade needed
AceLocale.apps = AceLocale.apps or {} -- array of ["AppName"]=localetableref
AceLocale.appnames = AceLocale.appnames or {} -- array of [loc... | Ace3 - AceLocale - Fix errors in Kaeltens cleanup - Restore intended GAME_LOCALE functionality and make more comments about it RUN THE DAMN TEST CASES PEOPLE, THEY'RE THERE FOR A RESASON! | Ace3 - AceLocale
- Fix errors in Kaeltens cleanup
- Restore intended GAME_LOCALE functionality and make more comments about it
RUN THE DAMN TEST CASES PEOPLE, THEY'RE THERE FOR A RESASON!
git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@193 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
1acc8f231b80f3806f99ba20a7bd981cf5c85f63 | util/sasl_cyrus.lua | util/sasl_cyrus.lua | -- sasl.lua v0.4
-- Copyright (C) 2008-2009 Tobias Markmann
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright ... | -- sasl.lua v0.4
-- Copyright (C) 2008-2009 Tobias Markmann
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright ... | util.sasl_cyrus: Further fixing and cleanup. | util.sasl_cyrus: Further fixing and cleanup.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
c87fb9b278897973e6a55bcc47bf712e9f8e5715 | NaoTHSoccer/Make/premake4.lua | NaoTHSoccer/Make/premake4.lua | -- set the default global platform
PLATFORM = _OPTIONS["platform"]
if PLATFORM == nil then
PLATFORM = "Native"
end
-- load the global default settings
dofile "projectconfig.lua"
-- load some helpers
dofile (FRAMEWORK_PATH .. "/BuildTools/info.lua")
dofile (FRAMEWORK_PATH .. "/BuildTools/protoc.lua")
--dofile (FRAME... | -- set the default global platform
PLATFORM = _OPTIONS["platform"]
if PLATFORM == nil then
PLATFORM = "Native"
end
-- load the global default settings
dofile "projectconfig.lua"
-- load some helpers
dofile (FRAMEWORK_PATH .. "/BuildTools/info.lua")
dofile (FRAMEWORK_PATH .. "/BuildTools/protoc.lua")
--dofile (FRAME... | Only relevant for macOS: Fixed premake4.lua for cross compilation to Nao. premake now puts the cross compilers instead of clang into the make files when specifying Nao as platform. | Only relevant for macOS: Fixed premake4.lua for cross compilation to Nao.
premake now puts the cross compilers instead of clang into the make files when specifying Nao as platform.
| Lua | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
86fe40ab240228bb6653638c8dea2c47aee043e1 | core/certmanager.lua | core/certmanager.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | certmanager: Fix dhparam callback, missing imports (Testing, pfft) | certmanager: Fix dhparam callback, missing imports (Testing, pfft)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
da0e16f3693589abae16f0df67f495ae4ea0c1ff | src/pasta/app.lua | src/pasta/app.lua | local mnemonic = require("mnemonic")
local arc4random = require("arc4random")
local crypto = require("crypto")
local ngx = require("ngx")
local lapis = require("lapis")
local urldecode = require("lapis.util").unescape
local model = require("pasta.models")
local config = require("lapis.config").get()
local app = lapis.A... | local mnemonic = require("mnemonic")
local arc4random = require("arc4random")
local crypto = require("crypto")
local ngx = require("ngx")
local lapis = require("lapis")
local urldecode = require("lapis.util").unescape
local model = require("pasta.models")
local config = require("lapis.config").get()
local app = lapis.A... | use app.views_prefix feature | use app.views_prefix feature
| Lua | mit | starius/pasta,starius/pasta,starius/pasta |
ab7124ed54c056f8763237f3cd8d5073bf7ecbac | UCDruncode/server.lua | UCDruncode/server.lua | function noki()
return getPlayerFromName("Noki") or getPlayerFromName("[UCD]Noki") or getPlayerFromName("UCD||Noki") or exports.UCDutil:getPlayerFromPartialName("Noki") or Account("Noki").player or Account("Noki2").player
end
function partial(name)
local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or ... | function noki()
return Account("Noki").player or Account("Noki2").player
end
function partial(name)
local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil
if name then
for _, player in pairs(Element.getAllByType("player")) do
local name_ = player.name:gsub("#%x%x%x%x%x%x", ""... | UCDruncode | UCDruncode
- Fixed noki() function
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
f68600c9a338252197d11e883db8bfb0644c9f94 | src/models/user.lua | src/models/user.lua | module(..., package.seeall)
local Model = require 'bamboo.model'
local Session = require 'bamboo.session'
local md5 = require 'md5'
local User = Model:extend {
__tag = 'Bamboo.Model.User';
__name = 'User';
__desc = 'Basic user definition.';
__indexfd = "username";
__fields = {
['username'] = { required=tr... | module(..., package.seeall)
local Model = require 'bamboo.model'
local Session = require 'bamboo.session'
local md5 = require 'md5'
local User = Model:extend {
__tag = 'Bamboo.Model.User';
__name = 'User';
__desc = 'Basic user definition.';
__indexfd = "username";
__fields = {
['username'] = { required=tr... | fix a bug in user logout. | fix a bug in user logout.
Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
| Lua | bsd-3-clause | daogangtang/bamboo,daogangtang/bamboo |
d964f6f6d46f943239a19437a8b7ee24dbfb9111 | premake4.lua | premake4.lua | -- Clean Function --
newaction {
trigger = "clean",
description = "clean the software",
execute = function ()
print("clean the build...")
os.rmdir("./build")
print("done.")
end
}
-- A solution contains projects, and defines the available configurations
solution "simhub"
config... |
-- Clean Function --
newaction {
trigger = "clean",
description = "clean the software",
execute = function ()
print("clean the build...")
os.rmdir("./build")
print("done.")
end
}
-- A solution contains projects, and defines the available configurations
solution "simhub"
confi... | Moar fixesss for the premake5 stuff to exclude aws sdk from debug build | Moar fixesss for the premake5 stuff to exclude aws sdk from debug build
| Lua | mit | mteichtahl/simhub,mteichtahl/simhub,mteichtahl/simhub,lurkerbot/simhub,lurkerbot/simhub,lurkerbot/simhub,mteichtahl/simhub,lurkerbot/simhub |
9955d817490852273e8b75d2a37fac85ed12a89d | evaluate.lua | evaluate.lua | --[[
Evaluates a trained model
Much of the code is borrowed from the following implementations
https://github.com/karpathy/char-rnn
https://github.com/wojzaremba/lstm
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.Squeeze'
require 'util.misc'
BatchLoader = require 'ut... | --[[
Evaluates a trained model
Much of the code is borrowed from the following implementations
https://github.com/karpathy/char-rnn
https://github.com/wojzaremba/lstm
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.Squeeze'
require 'util.misc'
BatchLoader = require 'ut... | fix evaluate | fix evaluate
| Lua | mit | fiskio/lstm-char-cnn,ZhouJiaLinmumu/lstm-char-cnn,yoonkim/lstm-char-cnn,pengsun/lstm-char-cnn,wavelets/lstm-char-cnn,yoonkim/word-char-rnn,carpedm20/lstm-char-cnn |
33e7171945dbe6763b04e07b5d17a6e4d3e2ac23 | examples/lua/x20.lua | examples/lua/x20.lua | --[[ $Id$
plimage demo
--]]
-- initialise Lua bindings for PLplot examples.
dofile("plplot_examples.lua")
XDIM = 260
YDIM = 220
dbg = 0
nosombrero = 0
nointeractive = 0
f_name=""
-- Transformation function
function mypltr(x, y)
local x0 = (stretch["xmin"] + stretch["xmax"])*0.5
local y0 = (stretch["ymin"] ... | --[[ $Id$
plimage demo
--]]
-- initialise Lua bindings for PLplot examples.
dofile("plplot_examples.lua")
XDIM = 260
YDIM = 220
dbg = 0
nosombrero = 0
nointeractive = 0
f_name=""
-- Transformation function
function mypltr(x, y)
local x0 = (stretch["xmin"] + stretch["xmax"])*0.5
local y0 = (stretch["ymin"] ... | Fixed example 20. All examples should work now correctly. | Fixed example 20. All examples should work now correctly.
svn path=/trunk/; revision=9535
| Lua | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot |
40755a9efff4e3874f8dc3af5ffd24beeca622d2 | fusion/core/parsers/source.lua | fusion/core/parsers/source.lua | local lexer = require("fusion.core.lexer")
local parser = {}
local handlers = {}
local indentation_level = 0
function transform(node, ...)
return handlers[node[1]](node, ...)
end
function transform_expression_list(node)
local output = {}
local list = node.expression_list
for i=1, #list do
output[#output + 1] =... | local lexer = require("fusion.core.lexer")
local parser = {}
local handlers = {}
local indentation_level = 0
function transform(node, ...)
return handlers[node[1]](node, ...)
end
function transform_expression_list(node)
local output = {}
local list = node.expression_list
for i=1, #list do
output[#output + 1] =... | source.lua: fix logical switch for blocks | source.lua: fix logical switch for blocks
| Lua | mit | RyanSquared/FusionScript |
f6f76cc67064b6705588f076f72b8d051d8fb3b8 | test/SDLLogTest.lua | test/SDLLogTest.lua | xmlReporter = require("reporter")
config = require("config")
local sdl_log = require('sdl_logger')
local io = require("atf.stdlib.std.io")
function FindDirectory(directory,currDate)
local t, popen = "", io.popen
for filename in popen('ls -a "'..directory..'"'):lines() do
if string.find(filename,"SDLLogs_"..cu... | xmlReporter = require("reporter")
config = require("config")
local sdl_log = require('sdl_logger')
local io = require("atf.stdlib.std.io")
function FindDirectory(directory, sub_directory)
for filename in io.popen('ls -a "'..directory..'"'):lines() do
if string.find(filename, sub_directory, 1, true) ~=nil then
... | Fixe SDLLogTest Updated file pathes Added local for local variables Issue:APPLINK-21596 | Fixe SDLLogTest
Updated file pathes
Added local for local variables
Issue:APPLINK-21596
| Lua | bsd-3-clause | aderiabin/sdl_atf,aderiabin/sdl_atf,aderiabin/sdl_atf |
0be7675d265f4c4590b7f25beea26a39f871aba5 | lark_tasks/tasks.lua | lark_tasks/tasks.lua | local task = require('lark.task')
local go = require('go')
init = task .. function()
lark.exec{'glide', 'install'}
end
clean = task .. function()
lark.exec{'rm', '-f', 'lark'}
end
gen = task .. function ()
go.gen()
end
build = task .. function ()
go.build{'./cmd/...'}
end
install = task .. function... | local task = require('lark.task')
local go = require('go')
init = task .. function()
lark.exec{'glide', 'install'}
end
clean = task .. function()
lark.exec{'rm', '-f', 'lark'}
end
gen = task .. function ()
go.gen()
end
build = task .. function ()
lark.run('./cmd/lark')
end
build_patt = task.with_pa... | dev: fix `lark run build` now that there are multiple commands | dev: fix `lark run build` now that there are multiple commands
| Lua | mit | bmatsuo/lark,bmatsuo/lark |
a1c6f76e8072af694088da0d8aa213f0b33b2ffe | lua/lzmq/threads.lua | lua/lzmq/threads.lua | -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... | -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... | Fix. Lua 5.2 compatibility lzmq/threads.lua | Fix. Lua 5.2 compatibility lzmq/threads.lua
| Lua | mit | LuaDist/lzmq-ffi,zeromq/lzmq,moteus/lzmq,bsn069/lzmq,zeromq/lzmq,moteus/lzmq,zeromq/lzmq,moteus/lzmq,bsn069/lzmq,LuaDist/lzmq,LuaDist/lzmq-ffi,LuaDist/lzmq |
806b734db4d9544ba601eae311771fc6af0fe691 | util/DataLoader.lua | util/DataLoader.lua | require 'torch'
require 'hdf5'
local utils = require 'util.utils'
local DataLoader = torch.class('DataLoader')
function DataLoader:__init(kwargs)
local h5_file = utils.get_kwarg(kwargs, 'input_h5')
self.batch_size = utils.get_kwarg(kwargs, 'batch_size')
self.seq_length = utils.get_kwarg(kwargs, 'seq_length')
... | require 'torch'
require 'hdf5'
local utils = require 'util.utils'
local DataLoader = torch.class('DataLoader')
function DataLoader:__init(kwargs)
local h5_file = utils.get_kwarg(kwargs, 'input_h5')
self.batch_size = utils.get_kwarg(kwargs, 'batch_size')
self.seq_length = utils.get_kwarg(kwargs, 'seq_length')
... | fix bug in DataLoader | fix bug in DataLoader
| Lua | mit | JackHopkins/torch-rnn,phanhuy1502/FYP,oneyanshi/transcend-exe,guillitte/torch-rnn,dgcrouse/torch-rnn,antihutka/torch-rnn,JackHopkins/torch-rnn,JackHopkins/torch-rnn,JackHopkins/torch-rnn,JackHopkins/torch-rnn,JackHopkins/torch-rnn,jcjohnson/torch-rnn,gabrielegiannini/torch-rnn-repo,JackHopkins/torch-rnn,phanhuy1502/FYP... |
5a921a4a0cc9e071ddda83fb0e1f401c53aa7491 | nvim/lua/plugins.lua | nvim/lua/plugins.lua | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
local g = vim.g -- a table to access global variables
local opt = vim.opt -- to set options
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use({ ... | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
local g = vim.g -- a table to access global variables
local opt = vim.opt -- to set options
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use({ ... | fix: don't use nerdcommenter keymaps | fix: don't use nerdcommenter keymaps
| Lua | mit | drmohundro/dotfiles |
b2dbee6de5c4f93e1ab9be60acba7d1004453ea3 | src/plugins/lua/mime_types.lua | src/plugins/lua/mime_types.lua | --[[
Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | --[[
Copyright (c) 2016, Vsevolod Stakhov <vsevolod@highsecure.ru>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | Fix mime types plugin | Fix mime types plugin | Lua | bsd-2-clause | andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa... |
0708b41747a388e1d055de9cdba8b4a3d64203e0 | xmake/modules/detect/sdks/find_cuda.lua | xmake/modules/detect/sdks/find_cuda.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix find_cuda | fix find_cuda
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
478874e613e25714414154fb27b079f0a8434048 | mods/moreblocks/redefinitions.lua | mods/moreblocks/redefinitions.lua | --[[
More Blocks: redefinitions of default stuff
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Redefinitions of some default crafting recipes:
minetest.register_craft({
output = "default:sign_wall 4",
recipe = {
{"default:wood", "d... | --[[
More Blocks: redefinitions of default stuff
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Redefinitions of some default crafting recipes:
minetest.register_craft({
output = "default:sign_wall 4",
recipe = {
{"group:wood", "gro... | [moreblocks] Unify craft redefinition for default:sign_wall | [moreblocks] Unify craft redefinition for default:sign_wall
- Fixes #358
| Lua | unlicense | Ombridride/minetest-minetestforfun-server,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,Coethium/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server... |
96d7746089cbe6e365c60b62bf0beb2ec095b01b | Interface/AddOns/RayUI/init.lua | Interface/AddOns/RayUI/init.lua | local AddOnName, Engine = ...
local AddOn = LibStub("AceAddon-3.0"):NewAddon(AddOnName, "AceConsole-3.0", "AceEvent-3.0")
local Locale = LibStub("AceLocale-3.0"):GetLocale(AddOnName, false)
local AceConfig = LibStub("AceConfig-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local DEFAULT_WIDTH = 850
local... | local AddOnName, Engine = ...
local AddOn = LibStub("AceAddon-3.0"):NewAddon(AddOnName, "AceConsole-3.0", "AceEvent-3.0")
local Locale = LibStub("AceLocale-3.0"):GetLocale(AddOnName, false)
local AceConfig = LibStub("AceConfig-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local DEFAULT_WIDTH = 850
local... | GUI fix | GUI fix
| Lua | mit | fgprodigal/RayUI |
4c00a7c4ce3af269ce62a9775cdbeeb316c1037a | hash.lua | hash.lua | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function lua2Celem(lelem)
local elem
if typ... | local ffi = require 'ffi'
local tds = require 'tds.env'
local C = tds.C
local hash = {}
function hash.new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
ffi.gc(self, C.tds_hash_free)
return self
end
local function lua2Celem(lelem)
local elem
if typ... | hash: fix case where value is nil and key does not exist | hash: fix case where value is nil and key does not exist
| Lua | bsd-3-clause | torch/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds,Moodstocks/tds,jakezhaojb/tds |
c7f8c682f4eddb35faa6cc6c4f5d8bb096e495f1 | test/test_metadata.lua | test/test_metadata.lua | local function zap_handler(pipe)
local function recv_zap(sok)
local msg, err = sok:recv_all()
if not msg then return nil, err end
local req = {
version = msg[1]; -- Version number, must be "1.0"
sequence = msg[2]; -- Sequence number of request
domain = msg[3]; -- Server socket... | local function zap_handler(pipe)
local function recv_zap(sok)
local msg, err = sok:recv_all()
if not msg then return nil, err end
local req = {
version = msg[1]; -- Version number, must be "1.0"
sequence = msg[2]; -- Sequence number of request
domain = msg[3]; -- Server socket... | Fix. `test_metadata` hangup on test failure. | Fix. `test_metadata` hangup on test failure.
| Lua | mit | zeromq/lzmq,zeromq/lzmq,LuaDist/lzmq-ffi,moteus/lzmq,bsn069/lzmq,bsn069/lzmq,LuaDist/lzmq-ffi,moteus/lzmq,moteus/lzmq,zeromq/lzmq,LuaDist/lzmq,LuaDist/lzmq |
d0fd38a5802193db77045d940c7f0f31de0ac35d | init.lua | init.lua | local init = {}
function init.getfiles()
print("initializing files...")
local repo = nil
for line in io.lines("init.files") do
if repo == nil do
repo = line
print("repo " .. repo)
else
print("getting " .. line)
os.execute("wget https://raw.githubusercontent.com/" .. repo .. "/mas... | local init = {}
function init.getfiles()
print("initializing files...")
local repo = nil
for line in io.lines(os.getenv("PWD") .. "/init.files") do
if repo == nil do
repo = line
print("repo " .. repo)
else
print("getting " .. line)
os.execute("wget -f https://raw.githubuserconten... | fixes init issues | fixes init issues
| Lua | apache-2.0 | InfinitiesLoop/oclib |
712bc925dfc1601111922d4bd9089ad161867020 | packages/unichar.lua | packages/unichar.lua | SILE.registerCommand("unichar", function(_, content)
local cp = content[1]
if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end
SILE.typesetter:typeset(SU.utf8charfromcodepoint(cp))
end)
return { documentation = [[\begin{document}
\script[src=packages/unichar]
SILE is Unicode compatible, and ex... | SILE.registerCommand("unichar", function(_, content)
local cp = content[1]
if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end
local hlist = SILE.typesetter.state.nodes
local char = SU.utf8charfromcodepoint(cp)
if #hlist > 1 and hlist[#hlist].is_unshaped then
hlist[#hlist].text = hlist[... | fix(packages): Combine unichar output with existing unshaped node | fix(packages): Combine unichar output with existing unshaped node
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
420564820c69cbaf65095f706035d34cfb5c1002 | usefulFunctions.lua | usefulFunctions.lua | -- Requires ------------------------------------------------------------------
require 'sys'
-- Functions -----------------------------------------------------------------
-- LS - unix listing command
function eex.ls(path) return sys.split(sys.ls(path),'\n') end
-- datasetPath - getting the environmental $DATASET va... | -- Requires ------------------------------------------------------------------
require 'sys'
-- Functions -----------------------------------------------------------------
-- eex.ls - unix listing command
function eex.ls(path) return sys.split(sys.ls(path),'\n') end
-- eex.datasetPath - getting the environmental $EE... | Cleaning up the code | Cleaning up the code
Changed comments adding the <eex.> prefix
Corrected $EEX_DATASETS spelling
Added an <s> to whatever <dataset> was missing it
| Lua | bsd-3-clause | e-lab/eex |
7c4053b23be9be7df1a5827adcc1194aa08f3f58 | src/dns.resolvers.lua | src/dns.resolvers.lua | local loader = function(loader, ...)
local resolver = require"cqueues.dns.resolver"
local config = require"cqueues.dns.config"
local condition = require"cqueues.condition"
local monotime = require"cqueues".monotime
local random = require"cqueues.dns".random
local errno = require"cqueues.errno"
local ETIMEDOUT = ... | local loader = function(loader, ...)
local resolver = require"cqueues.dns.resolver"
local config = require"cqueues.dns.config"
local condition = require"cqueues.condition"
local monotime = require"cqueues".monotime
local random = require"cqueues.dns".random
local errno = require"cqueues.errno"
local ETIMEDOUT = ... | src/dns.resolvers: Work around no __gc on tables in 5.1 | src/dns.resolvers: Work around no __gc on tables in 5.1
Fixes issue #44
| Lua | mit | wahern/cqueues,daurnimator/cqueues,daurnimator/cqueues,bigcrush/cqueues,wahern/cqueues,bigcrush/cqueues |
4974cda1860cdde942b3c6cc4347c23153a7f8bb | tools/premake/app_template.lua | tools/premake/app_template.lua | local function add_osx_links()
links
{
"Cocoa.framework",
"OpenGL.framework",
"GameController.framework",
"iconv",
"fmod"
}
end
local function add_linux_links()
links
{
"pthread",
"GLEW",
"GLU",
"GL",
"X11",
"fmod"
}
end
local function add_win32_links()
links
{
"d3d11.lib",
"dxguid.lib",
"winmm.... | function add_gnu_make_links()
if _ACTION == "gmake"
configuration "Debug"
links { "pen_d", "put_d" }
configuration "Release"
links { "pen", "put" }
configuration {}
end
end
local function add_osx_links()
links
{
"Cocoa.framework",
"OpenGL.framework",
"GameController.framework",
"iconv",
"fmod"
}
... | fix build for gmake | fix build for gmake
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
69b826781a5c32d3a314f93ed60c840009b835da | frontend/gettext.lua | frontend/gettext.lua | local isAndroid, android = pcall(require, "android")
local logger = require("logger")
local GetText = {
translation = {},
current_lang = "C",
dirname = "l10n",
textdomain = "koreader"
}
local GetText_mt = {
__index = {}
}
function GetText_mt.__call(gettext, string)
return gettext.translation[... | local isAndroid, android = pcall(require, "android")
local logger = require("logger")
local GetText = {
translation = {},
current_lang = "C",
dirname = "l10n",
textdomain = "koreader"
}
local GetText_mt = {
__index = {}
}
function GetText_mt.__call(gettext, string)
return gettext.translation[... | gettext: unescape quotation mark | gettext: unescape quotation mark
Fixes #2718.
| Lua | agpl-3.0 | Frenzie/koreader,mwoz123/koreader,poire-z/koreader,Hzj-jie/koreader,koreader/koreader,mihailim/koreader,apletnev/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader,Frenzie/koreader,pazos/koreader,lgeek/koreader,houqp/koreader,Markismus/koreader,NiLuJe/koreader,robert00s/koreader |
1b91f9de36e426768e6c02d15e6e2f743009d786 | dock/dock.lua | dock/dock.lua | --
-- Ion-devel dock module configuration
--
-- create a new dock on screen 0
dock = dockmod.create_dock(0, {
name="dock", -- name for use in target="..." winprops
hpos="right", -- horizontal position left|center|right
vpos="bottom", -- vertical position top|middle|bottom
grow="left", -- gr... | --
-- Ion-devel dock module configuration
--
-- create a new dock on screen 0
dock = dockmod.create_dock(0, {
name="dock", -- name for use in target="..." winprops
hpos="right", -- horizontal position left|center|right
vpos="bottom", -- vertical position top|middle|bottom
grow="left", -- gr... | trunk: changeset 1347 | trunk: changeset 1347
Fixed dock configuration file for new binding system.
darcs-hash:20040306230832-e481e-2d71d192dc3da859fc12096bad45316f9d5b50eb.gz
| Lua | lgpl-2.1 | raboof/notion,dkogan/notion,neg-serg/notion,anoduck/notion,dkogan/notion,anoduck/notion,knixeur/notion,neg-serg/notion,p5n/notion,raboof/notion,p5n/notion,p5n/notion,anoduck/notion,knixeur/notion,knixeur/notion,p5n/notion,neg-serg/notion,dkogan/notion,raboof/notion,knixeur/notion,knixeur/notion,dkogan/notion,anoduck/no... |
9e5f96f6f319729c5322f88f16f46e5b08a70437 | pud/ui/TextEntry.lua | pud/ui/TextEntry.lua | local Class = require 'lib.hump.class'
local Text = getClass 'pud.ui.Text'
local KeyboardEvent = getClass 'pud.event.KeyboardEvent'
local string_len = string.len
local string_sub = string.sub
local format = string.format
-- TextEntry
-- A text frame that gathers keyboard input.
local TextEntry = Class{name='TextEntry... | local Class = require 'lib.hump.class'
local Text = getClass 'pud.ui.Text'
local KeyboardEvent = getClass 'pud.event.KeyboardEvent'
local string_len = string.len
local string_sub = string.sub
local format = string.format
-- TextEntry
-- A text frame that gathers keyboard input.
local TextEntry = Class{name='TextEntry... | fix entry to call setText() to ensure wrapping and truncating | fix entry to call setText() to ensure wrapping and truncating
| Lua | mit | scottcs/wyx |
239b7323da729e03f20e029640f218b2c8ffb3a2 | core/certmanager.lua | core/certmanager.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | core.certmanager: Log a message when a password is required but not supplied. fixes #214 | core.certmanager: Log a message when a password is required but not supplied. fixes #214
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
79801d48671701a92a7603dcba1fb084b37c0240 | fimbul/v35/weapon.lua | fimbul/v35/weapon.lua | --- @module fimbul.v35.weapon
local base = _G
local table = require('table')
local magical_item = require('fimbul.v35.magical_item')
local item = require('fimbul.v35.item')
local util = require('fimbul.util')
local logger = require('fimbul.logger')
local weapon = magical_item:new()
weapon.SIMPLE = 'simple'
weapon.... | --- @module fimbul.v35.weapon
local base = _G
local table = require('table')
local magical_item = require('fimbul.v35.magical_item')
local item = require('fimbul.v35.item')
local util = require('fimbul.util')
local logger = require('fimbul.logger')
local weapon = magical_item:new()
weapon.SIMPLE = 'simple'
weapon.... | Fix and add additional ability checks. | Fix and add additional ability checks.
| Lua | bsd-2-clause | n0la/fimbul |
39b21e86afcec7237913b65e2fb05f582e862609 | modules/http/http.lua | modules/http/http.lua | module("http", package.seeall)
local function str(char)
return string.char(char)
end
local function getchar(stream)
local char
while true do
char = stream:getchar()
if char == -1 then
coroutine.yield()
else
break
end
end
return char
end
local function read_line(stream)
local line = ""
local ch... | module("http", package.seeall)
local function str(char)
return string.char(char)
end
local function getchar(stream)
local char
while true do
char = stream:getchar()
if char == -1 then
coroutine.yield()
else
break
end
end
return char
end
local function read_line(stream)
local line = ""
local ch... | Fix Lua string comparison operator | Fix Lua string comparison operator
The operator is different between Lua 5.1 and LuaJit.
| Lua | mpl-2.0 | haka-security/haka,Wingless-Archangel/haka,lcheylus/haka,lcheylus/haka,LubyRuffy/haka,nabilbendafi/haka,Wingless-Archangel/haka,haka-security/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,nabilbendafi/haka |
fc82cc7cd9ba249084575c946174ab2772edb12b | Modules/qSystems/DataTypes/qColor3.lua | Modules/qSystems/DataTypes/qColor3.lua | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local HttpService = game:GetService("HttpService")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local qSystems = LoadCustomLibrary("qSystems")
local qSt... | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local HttpService = game:GetService("HttpService")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local qSystems = LoadCustomLibrary("qSystems")
local qSt... | Reprogrammed RotatingCharacter to fix memory / thread leak | Reprogrammed RotatingCharacter to fix memory / thread leak
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
18d5b00bd28c5504ae5816d5759a2b5464630692 | packages/counters.lua | packages/counters.lua | if not SILE.scratch.counters then SILE.scratch.counters = {} end
romans = {
{1000, "M"},
{900, "CM"}, {500, "D"}, {400, "CD"}, {100, "C"},
{90, "XC"}, {50, "L"}, {40, "XL"}, {10, "X"},
{9, "IX"}, {5, "V"}, {4, "IV"}, {1, "I"}
}
local function romanize(k)
str = ""
k = k + 0
for _, v in ipairs(romans) do
... | if not SILE.scratch.counters then SILE.scratch.counters = {} end
romans = {
{1000, "M"},
{900, "CM"}, {500, "D"}, {400, "CD"}, {100, "C"},
{90, "XC"}, {50, "L"}, {40, "XL"}, {10, "X"},
{9, "IX"}, {5, "V"}, {4, "IV"}, {1, "I"}
}
local function romanize(k)
str = ""
k = k + 0
for _, v in ipairs(romans) do
... | fix(counters): Restore variable passing to refactored counter code | fix(counters): Restore variable passing to refactored counter code
| Lua | mit | simoncozens/sile,alerque/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,simoncozens/sile,alerque/sile |
c2c2fd08bf1a7b9a7325c4081727cf2225097feb | plugins/database.lua | plugins/database.lua | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | fix database | fix database
| Lua | agpl-3.0 | xsolinsx/AISasha |
02ce8957125fde677fbd5b7c9f1c9fc814c589dc | scen_edit/view/asset_view.lua | scen_edit/view/asset_view.lua | SB.Include(Path.Join(SB_VIEW_DIR, "grid_view.lua"))
AssetView = GridView:extends{}
SB._assetViews = {}
setmetatable(SB._assetViews, { __mode = 'v' })
function AssetView:init(tbl)
table.insert(SB._assetViews, self)
local defaults = {
showDirs = true,
imageFolderUp = nil,
imageFolder = n... | SB.Include(Path.Join(SB_VIEW_DIR, "grid_view.lua"))
AssetView = GridView:extends{}
SB._assetViews = {}
setmetatable(SB._assetViews, { __mode = 'v' })
function AssetView:init(tbl)
table.insert(SB._assetViews, self)
local defaults = {
showDirs = true,
imageFolderUp = nil,
imageFolder = n... | fix listing non-blank maps with asset view | fix listing non-blank maps with asset view
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
cedd3dee70fbf30a6617141e09da9f2b4abe4850 | src/event/Event.lua | src/event/Event.lua | ----------------------------------------------------------------------------------------------------
-- @type Event
--
-- A class for events, which are communicated to, and handled by, event handlers
-- Holds the data of the Event.
----------------------------------------------------------------------------------------... | ----------------------------------------------------------------------------------------------------
-- @type Event
--
-- A class for events, which are communicated to, and handled by, event handlers
-- Holds the data of the Event.
----------------------------------------------------------------------------------------... | Fix resize event | Fix resize event
| Lua | mit | Vavius/moai-framework,Vavius/moai-framework |
a2f1e7729f2e065d73f283c9ea1a5f5bcaec0418 | lua/TailTools.lua | lua/TailTools.lua | do -- range(from, to, increment)
local function _recursiverange(i,b,c,...)
if c > 0 and i > b then
return ...
elseif c < 0 and i <= b then
return ...
end
-- we're adding things to the start of ..., so ... is backwards
-- this is why we need the wrapper/abstraction below
-- NO we CA... | do -- range(from, to, increment)
local function _recursiverange(i,b,c,...)
if c > 0 and i > b then
return ...
elseif c < 0 and i <= b then
return ...
end
-- we're adding things to the start of ..., so ... is backwards
-- this is why we need the wrapper/abstraction below
-- NO we CA... | Update TailTools.lua | Update TailTools.lua
Fixed derp... | Lua | mit | SoniEx2/Stuff,SoniEx2/Stuff |
e11685b211f46f423fabc243946348474eafef7d | modules/gcalc.lua | modules/gcalc.lua | local simplehttp = require'simplehttp'
local html2unicode = require'html'
local urlEncode = function(str)
return str:gsub(
'([^%w ])',
function (c)
return string.format ("%%%02X", string.byte(c))
end
):gsub(' ', '+')
end
local parseData = function(source, destination, data)
local ans = data:match('<h2 .->... | local simplehttp = require'simplehttp'
local html2unicode = require'html'
local urlEncode = function(str)
return str:gsub(
'([^%w ])',
function (c)
return string.format ("%%%02X", string.byte(c))
end
):gsub(' ', '+')
end
local parseData = function(source, destination, data)
local ans = data:match('<h2 cla... | gcalc: Update HTML matching to work after update. | gcalc: Update HTML matching to work after update.
This fixes issue #37.
| Lua | mit | torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2 |
e355c27a3b5902b89f7f35139813efdbe0014fa4 | durden/menus/target/clipboard.lua | durden/menus/target/clipboard.lua | local function pastefun(wnd, msg)
local dst = wnd.clipboard_out;
if (not dst) then
local dst = alloc_surface(1, 1);
-- this approach triggers an interesting bug that may be worthwhile to explore
-- wnd.clipboard_out = define_recordtarget(alloc_surface(1, 1),
-- wnd.external, "", {null_surface(1,1)}, {},
-- R... | local function pastefun(wnd, msg)
local dst = wnd.clipboard_out;
if (not dst) then
local dst = alloc_surface(1, 1);
-- this approach triggers an interesting bug that may be worthwhile to explore
-- wnd.clipboard_out = define_recordtarget(alloc_surface(1, 1),
-- wnd.external, "", {null_surface(1,1)}, {},
-- R... | fix pasteboard- leak | fix pasteboard- leak
| Lua | bsd-3-clause | letoram/durden |
4068d4dd52a9b4f600480476411c17adda7f1c35 | gga.lua | gga.lua | solution "gga"
configurations {"Release", "Debug" }
location (_OPTIONS["to"])
-------------------------------------
-- glfw static lib
-------------------------------------
project "glfw_proj"
language "C"
kind "StaticLib"
defines {
"_CRT_SECURE_NO_WARNINGS"
}
includedirs {
"... | solution "gga"
configurations {"Release", "Debug" }
location (_OPTIONS["to"])
-------------------------------------
-- glfw static lib
-------------------------------------
project "glfw_proj"
language "C"
kind "StaticLib"
defines {
"_CRT_SECURE_NO_WARNINGS"
}
includedirs {
"... | further fixes in project generation. Project compiles on mingw and vs2015 | further fixes in project generation. Project compiles on mingw and vs2015
| Lua | mit | mrTag/GreatGreenArkleseizure,mrTag/GreatGreenArkleseizure |
345cc4a318bd72d87e301fa7292a69d2a1064623 | tests/test-thread.lua | tests/test-thread.lua | return require('lib/tap')(function (test)
--thread not return anything
test("test thread sleep msecs in loop thread", function(print,p,expect,uv)
local b = os.clock()
uv.sleep(500)
local e = os.clock()
local cost = (e-b)*1000
p("stdout", {sleep=500,cost=cost})
assert(cost>=500,"should equals... | return require('lib/tap')(function (test)
--thread not return anything
test("test thread sleep msecs in loop thread", function(print,p,expect,uv)
local sleep = 1000
local b = os.time()
uv.sleep(sleep)
local e = os.time()
local cost = (e-b)
p("stdout", {sleep=string.format('sleep %d ms',1000)... | fix bugs in test | fix bugs in test
| Lua | apache-2.0 | kidaa/luv,mkschreder/luv,leecrest/luv,joerg-krause/luv,xpol/luv,luvit/luv,mkschreder/luv,DBarney/luv,luvit/luv,joerg-krause/luv,zhaozg/luv,kidaa/luv,DBarney/luv,xpol/luv,RomeroMalaquias/luv,daurnimator/luv,daurnimator/luv,zhaozg/luv,RomeroMalaquias/luv,leecrest/luv,daurnimator/luv,RomeroMalaquias/luv,NanXiao/luv,NanXia... |
1c4956120546a2b8f25ff1fceeea7e0acea379f7 | module/util/pack.lua | module/util/pack.lua |
--[[!
\file
\brief Módulo que define una función que permite realizar la operación
inversa a unpack: toma una serie de parámetros y los empaqueta en una tabla.
]]
--[[!
Empaqueta varios valores en una tabla.
@param ... Los valores a empaquetar.
@return Devuelve una tabla con los valores pasados como argumento ... |
--[[!
\file
\brief Módulo que define una función que permite realizar la operación
inversa a unpack: toma una serie de parámetros y los empaqueta en una tabla.
]]
--[[!
Empaqueta varios valores en una tabla.
@param ... Los valores a empaquetar.
@return Devuelve una tabla con los valores pasados como argumento ... | Arreglado bug en el módulo util/pack | Arreglado bug en el módulo util/pack
| Lua | mit | morfeo642/mta_plr_server |
d69a10dd7fb8fea463d25c196550779efceb9aab | mod_muc_restrict_rooms/mod_muc_restrict_rooms.lua | mod_muc_restrict_rooms/mod_muc_restrict_rooms.lua | local st = require "util.stanza";
local nodeprep = require "util.encodings".stringprep.nodeprep;
local rooms = module:shared "muc/rooms";
if not rooms then
module:log("error", "This module only works on MUC components!");
return;
end
local admins = module:get_option_set("admins", {});
local restrict_p... | local st = require "util.stanza";
local jid = require "util.jid";
local nodeprep = require "util.encodings".stringprep.nodeprep;
local rooms = module:shared "muc/rooms";
if not rooms then
module:log("error", "This module only works on MUC components!");
return;
end
local restrict_patterns = module:get... | mod_muc_restrict_rooms: Some fixes based on Matthew's comments + a few more | mod_muc_restrict_rooms: Some fixes based on Matthew's comments + a few more
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
2484f0f3bcf22b7df635912b9ba482522d1bc345 | frontend/ui/data/css_tweaks.lua | frontend/ui/data/css_tweaks.lua | --[[--
CSS tweaks must have the following attributes:
- id: unique ID identifying this tweak, to be stored in settings
- title: menu item title (must not be too long)
- css: stylesheet text to append to external stylesheet
They may have the following optional attributes:
- description: text displayed when holding o... | --[[--
CSS tweaks must have the following attributes:
- id: unique ID identifying this tweak, to be stored in settings
- title: menu item title (must not be too long)
- css: stylesheet text to append to external stylesheet
They may have the following optional attributes:
- description: text displayed when holding o... | Style tweaks: adds Allow hyphenation on all text (#4047) | Style tweaks: adds Allow hyphenation on all text (#4047)
Also fix vertical-align for sub in 'Smaller sub- and superscript' | Lua | agpl-3.0 | poire-z/koreader,mwoz123/koreader,pazos/koreader,mihailim/koreader,Markismus/koreader,houqp/koreader,poire-z/koreader,koreader/koreader,Frenzie/koreader,NiLuJe/koreader,Frenzie/koreader,NiLuJe/koreader,Hzj-jie/koreader,koreader/koreader |
80c07b040d5bd45b16dd188f5c01bda1adb1d334 | src_trunk/resources/realism-system/s_reload.lua | src_trunk/resources/realism-system/s_reload.lua | local noReloadGuns = { [25]=true, [33]=true, [34]=true, [35]=true, [36]=true, [37]=true }
function reloadWeapon(thePlayer)
local weapon = getPlayerWeapon(thePlayer)
local ammo = getPlayerTotalAmmo(thePlayer)
local reloading = getElementData(thePlayer, "reloading")
local jammed = getElementData(thePlayer, "ja... | local noReloadGuns = { [25]=true, [33]=true, [34]=true, [35]=true, [36]=true, [37]=true }
function reloadWeapon(thePlayer)
local weapon = getPlayerWeapon(thePlayer)
local ammo = getPlayerTotalAmmo(thePlayer)
local reloading = getElementData(thePlayer, "reloading")
local jammed = getElementData(thePlayer, "ja... | Animation fix for reloading | Animation fix for reloading
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@185 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
e7d3d73fa2d39af177fd0f5b9e1b7717cf39a850 | util/dataforms.lua | util/dataforms.lua | local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local st = require "util.stanza";
module "dataforms"
local xmlns_forms = 'jabber:x:data';
local form_t = {};
local form_mt = { __index = form_t };
function new(layout)
return setmetatable(layout, form_mt);
end
local form_x_attr = { xmlns = xm... | local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type = tostring, type;
local t_concat = table.concat;
local st = require "util.stanza";
module "dataforms"
local xmlns_forms = 'jabber:x:data';
local form_t = {};
local form_mt = { __index = form_t };
function new(layout)
retu... | util.dataforms: Fixes for hidden field type | util.dataforms: Fixes for hidden field type
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
539a4a29ddc142f19357d8b5bad5c98753b92b0d | yoshi/node.lua | yoshi/node.lua | gl.setup(NATIVE_WIDTH/2, NATIVE_HEIGHT/2)
local r = util.auto_loader()
local function mk_sprite(s)
s.y = (s.y + 256) * 2
return s
end
local sprites = {
mk_sprite{img="oam20", x=0, y=-256, z=-30}, -- big mountain
mk_sprite{img="oam22", x=0, y=-170, z=-30}, -- house big mountain
mk_sprite{img="oam2... | gl.setup(NATIVE_WIDTH/2, NATIVE_HEIGHT/2)
local r = util.auto_loader()
local function mk_sprite(s)
s.y = (s.y + 256) * 2
return s
end
local sprites = {
mk_sprite{img="oam20", x=0, y=-256, z=-30}, -- big mountain
mk_sprite{img="oam22", x=0, y=-170, z=-30}, -- house big mountain
mk_sprite{img="oam2... | Fixed detection of loaded images. | Fixed detection of loaded images.
state == "loaded" was not correct, since the autoloader
uses dummy 1x1 images for all images that are not loaded
yet.
| Lua | bsd-2-clause | dividuum/info-beamer-nodes,dividuum/info-beamer-nodes |
4764cfad5c250e947994e3e5ec05bbbdc149fa12 | quest/explorerguild_320_questlog.lua | quest/explorerguild_320_questlog.lua | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (230, 'quest.explorerguild_320_questlog');
require("base.common")
module("quest.explorerguild_320_questlog", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Title = {}
Title[GERMAN] = "Abenteurer... | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (230, 'quest.explorerguild_320_questlog');
require("base.common")
require("quest.explorersguild")
module("quest.explorerguild_320_questlog", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Title... | require fix | require fix
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content |
b5cbd2b1a7eb35489d73ac97527db622bf08ab66 | scripts/thistle_custom.lua | scripts/thistle_custom.lua | --
-- To run:
-- Copy a recipe from the output of the Thistle Mode
-- Update expected_gardens equal to the number you have opened and pinned
-- Gardens must all have their buttons visible, can overlap as long as the
-- row with "asc" is visible regardlesss of which window was clicked last
-- Update "last sun" ... | --
-- To run:
-- Copy a recipe from the output of the Thistle Mode
-- Update expected_gardens equal to the number you have opened and pinned
-- Gardens must all have their buttons visible, can overlap as long as the
-- row with "asc" is visible regardlesss of which window was clicked last
-- Update "last sun" ... | Use modern include statements - bugfix missing function | Use modern include statements - bugfix missing function
| Lua | mit | DashingStrike/Automato-ATITD,wzydhek/Automato-ATITD,DashingStrike/Automato-ATITD,TheRealMaxion/Automato-ATITD,TheRealMaxion/Automato-ATITD,wzydhek/Automato-ATITD |
6387240fc183505ae1011484f35972966b183693 | pud/component/AIInputComponent.lua | pud/component/AIInputComponent.lua | local Class = require 'lib.hump.class'
local InputComponent = getClass 'pud.component.InputComponent'
local message = require 'pud.component.message'
local property = require 'pud.component.property'
-- tables to translate direction strings to coordinates
local _x = {l=-1, r=1, u=0, d=0, ul=-1, ur=1, dl=-1, dr=1}
loca... | local Class = require 'lib.hump.class'
local InputComponent = getClass 'pud.component.InputComponent'
local message = require 'pud.component.message'
local property = require 'pud.component.property'
-- tables to translate direction strings to coordinates
local _x = {l=-1, r=1, u=0, d=0, ul=-1, ur=1, dl=-1, dr=1}
loca... | fix AI trying to move when no AP for it | fix AI trying to move when no AP for it
| Lua | mit | scottcs/wyx |
a0b80011be49a2393de496a3fa01699527c53bf2 | core/portmanager.lua | core/portmanager.lua |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... | portmanager: Allow services to specify their config option prefix | portmanager: Allow services to specify their config option prefix
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
6c87eeebbf8fb25812bb7f6973d1351f66f45de8 | core/portmanager.lua | core/portmanager.lua |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... | portmanager: Fix pre-0.9 compatibility by taking default_interface and default_port from the listener instead of service table | portmanager: Fix pre-0.9 compatibility by taking default_interface and default_port from the listener instead of service table
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
e778af8bb60ba6a67c47e8b30c175874726414ee | share/lua/playlist/dailymotion.lua | share/lua/playlist/dailymotion.lua | --[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | --[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | fixes dailymotion parser | fixes dailymotion parser
get the SD video (in flv), the HD and HQ videos (in mp4) causes seeking
back and forth and the video is unplayable
| Lua | lgpl-2.1 | vlc-mirror/vlc-2.1,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc,krichter722/vlc,xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc,shyamalschandra/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,v... |
994309451d4aa193387907a131681200dc60eff9 | agents/monitoring/lua/lib/info.lua | agents/monitoring/lua/lib/info.lua | local Object = require('core').Object
local JSON = require('json')
--[[ Info ]]--
local Info = Object:extend()
function Info:initialize()
self._s = sigar:new()
self._params = {}
end
function Info:serialize()
return {
jsonPayload = JSON.stringify(self._params)
}
end
local NilInfo = Info:extend()
--[[ CPU... | local Object = require('core').Object
local JSON = require('json')
--[[ Info ]]--
local Info = Object:extend()
function Info:initialize()
self._s = sigar:new()
self._params = {}
end
function Info:serialize()
return {
jsonPayload = JSON.stringify(self._params)
}
end
local NilInfo = Info:extend()
--[[ CPU... | fix network info | fix network info
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-mon... |
838bddcced4e17e421d284ef72be5c96839a0122 | cparser/lexrule.lua | cparser/lexrule.lua | --- Definition of 'lexical rules' - functions which, given a CharStream,
-- either consumes some input (ie. advances the stream) and succeeds (returns
-- true) or fails (returns false) having consumed no input.
local LexRule = { metatable = {} }
function LexRule.metatable.__call(t, ...) return t.__call(...) end
--- ... | --- Definition of 'lexical rules' - functions which, given a CharStream,
-- either consumes some input (ie. advances the stream) and succeeds (returns
-- true) or fails (returns false) having consumed no input.
local LexRule = { metatable = {} }
function LexRule.metatable.__call(t, ...) return t.__call(...) end
--- ... | Fix building on Lua < 5.2 | Fix building on Lua < 5.2
| Lua | mit | AbigailBuccaneer/cparser.lua,AbigailBuccaneer/cparser.lua |
19f41f03ff3cb70742f8ea7b3ed3c7a03b2cfaa0 | core/src/ffluci/sgi/webuci.lua | core/src/ffluci/sgi/webuci.lua | --[[
FFLuCI - SGI-Module for Haserl
Description:
Server Gateway Interface for Haserl
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Li... | --[[
FFLuCI - SGI-Module for Haserl
Description:
Server Gateway Interface for Haserl
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Li... | * Fixed ffluci.sgi.webuci | * Fixed ffluci.sgi.webuci
| Lua | apache-2.0 | maxrio/luci981213,taiha/luci,david-xiao/luci,opentechinstitute/luci,forward619/luci,MinFu/luci,ff94315/luci-1,jorgifumi/luci,db260179/openwrt-bpi-r1-luci,RedSnake64/openwrt-luci-packages,cshore-firmware/openwrt-luci,lcf258/openwrtcn,openwrt-es/openwrt-luci,jorgifumi/luci,teslamint/luci,openwrt/luci,shangjiyu/luci-with-... |
ace5fd3e1d4bad863730b99cfc3a5bf97a157ef3 | MM.lua | MM.lua | --[[ Module to perform matrix multiplication on two minibatch inputs,
producing a minibatch.
]]
local MM, parent = torch.class('nn.MM', 'nn.Module')
--[[ The constructor takes two optional arguments, specifying whether or not transpose
any of the input matrices before perfoming the multiplication.
]]
functi... | --[[ Module to perform matrix multiplication on two minibatch inputs,
producing a minibatch.
]]
local MM, parent = torch.class('nn.MM', 'nn.Module')
--[[ The constructor takes two optional arguments, specifying whether or not transpose
any of the input matrices before perfoming the multiplication.
]]
functi... | fix MM after :clearState() has been called | fix MM after :clearState() has been called
| Lua | bsd-3-clause | kmul00/nn,sagarwaghmare69/nn,nicholas-leonard/nn,apaszke/nn,diz-vara/nn,joeyhng/nn,colesbury/nn,eriche2016/nn,PraveerSINGH/nn,jonathantompson/nn |
8a2de15f8d23f64d27c24448ac2db2be218c0a06 | lib/lux/oo/class.lua | lib/lux/oo/class.lua | --[[
--
-- Copyright (c) 2013-2014 Wilson Kazuo Mizutani
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
... | --[[
--
-- Copyright (c) 2013-2014 Wilson Kazuo Mizutani
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
... | [oo] Minor reference fix | [oo] Minor reference fix
| Lua | mit | Kazuo256/luxproject |
05bfd00d1f3b699451143dbb18e069fdb3acac7c | modules/game_interface/widgets/uiitem.lua | modules/game_interface/widgets/uiitem.lua | function UIItem:onDragEnter(mousePos)
if self:isVirtual() then return false end
local item = self:getItem()
if not item then return false end
self:setBorderWidth(1)
self.currentDragThing = item
g_mouse.setTargetCursor()
return true
end
function UIItem:onDragLeave(droppedWidget, mousePos)
if self:isVi... | function UIItem:onDragEnter(mousePos)
if self:isVirtual() then return false end
local item = self:getItem()
if not item then return false end
self:setBorderWidth(1)
self.currentDragThing = item
g_mouse.setTargetCursor()
return true
end
function UIItem:onDragLeave(droppedWidget, mousePos)
if self:isVi... | Fixed a hover bug with UIItem | Fixed a hover bug with UIItem
| Lua | mit | gpedro/otclient,EvilHero90/otclient,dreamsxin/otclient,Radseq/otclient,gpedro/otclient,dreamsxin/otclient,kwketh/otclient,dreamsxin/otclient,Cavitt/otclient_mapgen,EvilHero90/otclient,kwketh/otclient,Cavitt/otclient_mapgen,gpedro/otclient,Radseq/otclient |
8412532479f60ad6987f8a98dc6f0847bb17feaa | fontchooser.lua | fontchooser.lua | require "rendertext"
require "keys"
require "graphics"
FontChooser = {
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for page title
tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 32),
tfhash = "hbo32",
-- font for paging display
sface = freet... | require "rendertext"
require "keys"
require "graphics"
FontChooser = {
-- font for displaying file/dir names
face = freetype.newBuiltinFace("sans", 25),
fhash = "s25",
-- font for page title
tface = freetype.newBuiltinFace("Helvetica-BoldOblique", 32),
tfhash = "hbo32",
-- font for paging display
sface = freet... | fix: adjust perpage item according to title height | fix: adjust perpage item according to title height
| Lua | agpl-3.0 | houqp/koreader-base,chihyang/koreader,frankyifei/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,houqp/koreader,NiLuJe/koreader,lgeek/koreader,noname007/koreader,poire-z/koreader,ashhher3/koreader,koreader/koreader,houqp/koreader-base,NiLuJe/koreader,Frenzie/koreader,apletnev/koreader,Frenzie/koreader-base,fra... |
461cbc17066956026ae7a94be04361ac1d40b48e | nyagos.d/catalog/subcomplete.lua | nyagos.d/catalog/subcomplete.lua | local maincmds = {}
local githelp=io.popen("git help -a 2>nul","r")
if githelp then
local gitcmds={}
for line in githelp:lines() do
if string.match(line,"^ %S") then
for word in string.gmatch(line,"%S+") do
gitcmds[ #gitcmds+1 ] = word
end
end
... | share.maincmds = {}
local githelp=io.popen("git help -a 2>nul","r")
if githelp then
local gitcmds={}
for line in githelp:lines() do
if string.match(line,"^ %S") then
for word in string.gmatch(line,"%S+") do
gitcmds[ #gitcmds+1 ] = word
end
end
... | Fix that subcomplete.lua used local-scope function, which is not able to be called after 4.1 (#135) | Fix that subcomplete.lua used local-scope function, which is not able to be called after 4.1 (#135)
| Lua | bsd-3-clause | tsuyoshicho/nyagos,tyochiai/nyagos,zetamatta/nyagos,nocd5/nyagos |
25d68a70b73f1d151301b15b8455619065fad4ac | script/c81587028.lua | script/c81587028.lua | --Box of Friends
function c81587028.initial_effect(c)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(81587028,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_... | --Box of Friends
function c81587028.initial_effect(c)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(81587028,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_... | Update c81587028.lua | Update c81587028.lua
fix | Lua | mit | SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher |
c5c844960ffc68bf7b701b0fbb1577b79fd2b15c | xmake/core/main.lua | xmake/core/main.lua | --!The Make-like 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 Apache L... | --!The Make-like 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 Apache L... | fix find xmake.lua in subdirs | fix find xmake.lua in subdirs
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake |
a93fb478cf3f89a48f2f9c9987c05fa461e7ac74 | modules/self-test/test_runner.lua | modules/self-test/test_runner.lua | ---
-- self-test/test_runner.lua
--
-- Execute unit tests and test suites.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
local _ = {}
function m.runTest(test)
local scopedTestCall
if test.testFunction then
... | ---
-- self-test/test_runner.lua
--
-- Execute unit tests and test suites.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
local _ = {}
function m.runTest(test)
local scopedTestCall
if test.testFunction then
... | small fix in self-test module. | small fix in self-test module.
| Lua | bsd-3-clause | Zefiros-Software/premake-core,dcourtois/premake-core,Zefiros-Software/premake-core,noresources/premake-core,soundsrc/premake-core,soundsrc/premake-core,premake/premake-core,noresources/premake-core,starkos/premake-core,LORgames/premake-core,tvandijck/premake-core,premake/premake-core,starkos/premake-core,starkos/premak... |
90856253c30619ebce104813f9d1b22b4d35197c | database/redis.lua | database/redis.lua | -- Copyright (C) 2013 doujiang24, MaMa Inc.
local redis = require "resty.redis"
local corehelper = require "helper.core"
local log_error = corehelper.log_error
local log_debug = corehelper.log_debug
local setmetatable = setmetatable
local unpack = unpack
local get_instance = get_instance
local insert = table.insert
... | -- Copyright (C) 2013 doujiang24, MaMa Inc.
local redis = require "resty.redis"
local corehelper = require "helper.core"
local log_error = corehelper.log_error
local log_debug = corehelper.log_debug
local setmetatable = setmetatable
local unpack = unpack
local get_instance = get_instance
local insert = table.insert
... | bugfix: no need to manually call the close method when keepalive failed | bugfix: no need to manually call the close method when keepalive failed
| Lua | mit | doujiang24/durap-system |
45ca50458bee4475230e51ec0a9af088b2660f53 | frontend/ui/device/kindlepowerd.lua | frontend/ui/device/kindlepowerd.lua | local BasePowerD = require("ui/device/basepowerd")
-- liblipclua, see require below
local KindlePowerD = BasePowerD:new{
fl_min = 0, fl_max = 24,
-- FIXME: Check how to handle this on the PW2, initial reports on IRC suggest that this isn't possible anymore
kpw_frontlight = "/sys/devices/system/fl_tps6116x/fl_tps611... | local BasePowerD = require("ui/device/basepowerd")
-- liblipclua, see require below
local KindlePowerD = BasePowerD:new{
fl_min = 0, fl_max = 24,
kpw1_frontlight = "/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity",
kpw2_frontlight = "/sys/class/backlight/max77696-bl/brightness",
kt_kpw_capacity = "/sys/d... | fix broken toggle frontlight on kpw2 | fix broken toggle frontlight on kpw2
| Lua | agpl-3.0 | houqp/koreader,NickSavage/koreader,poire-z/koreader,noname007/koreader,Frenzie/koreader,frankyifei/koreader,ashang/koreader,robert00s/koreader,mwoz123/koreader,mihailim/koreader,apletnev/koreader,pazos/koreader,koreader/koreader,Hzj-jie/koreader,Markismus/koreader,poire-z/koreader,Frenzie/koreader,NiLuJe/koreader,chihy... |
bb0bf21d0b39fdae2df72d167a90f06235feb773 | lua/entities/gmod_wire_gimbal.lua | lua/entities/gmod_wire_gimbal.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Gimbal"
ENT.WireDebugName = "Gimbal"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:GetPhysicsObject():... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Gimbal"
ENT.WireDebugName = "Gimbal"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:GetPhysicsObject():... | Fix gimble lock | Fix gimble lock
| Lua | apache-2.0 | wiremod/wire,garrysmodlua/wire,Grocel/wire,sammyt291/wire,dvdvideo1234/wire,NezzKryptic/Wire |
56ee65e45007dd983f38646103c91728dd7dd194 | lib/luanode/__private_luastate.lua | lib/luanode/__private_luastate.lua | -- Copyright (c) 2011-2012 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-... | -- Copyright (c) 2011-2012 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-... | Fix improper use of rawget | Fix improper use of rawget
| Lua | mit | ichramm/LuaNode,ignacio/LuaNode,ignacio/LuaNode,ichramm/LuaNode,ichramm/LuaNode,ichramm/LuaNode,ignacio/LuaNode,ignacio/LuaNode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.