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 |
|---|---|---|---|---|---|---|---|---|---|
6785fea2ceb8af7348ab8167927b688c2901ffbd | lua/starfall/libs_sh/vmatrix.lua | lua/starfall/libs_sh/vmatrix.lua | -- Credits to Radon & Xandaros
SF.VMatrix = {}
local vmatrix_methods, vmatrix_metamethods = SF.Typedef("VMatrix") -- Define our own VMatrix based off of standard VMatrix
local wrap, unwrap = SF.CreateWrapper( vmatrix_metamethods, true, false )
SF.VMatrix.Methods = vmatrix_methods
SF.VMatrix.Metatable = vmatrix_metame... | -- Credits to Radon & Xandaros
SF.VMatrix = {}
local vmatrix_methods, vmatrix_metamethods = SF.Typedef("VMatrix") -- Define our own VMatrix based off of standard VMatrix
local wrap, unwrap = SF.CreateWrapper( vmatrix_metamethods, true, false )
SF.VMatrix.Methods = vmatrix_methods
SF.VMatrix.Metatable = vmatrix_metame... | Removed VMatrix SF.CheckType for self metamethods. | Removed VMatrix SF.CheckType for self metamethods.
Fixes #36
| Lua | bsd-3-clause | INPStarfall/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall |
85e1eb6af0b0c772352230a25ccf782c33c75ad3 | mock/common/ProtoSpawner.lua | mock/common/ProtoSpawner.lua | module 'mock'
local enumSpawnMethod = _ENUM_V {
'root',
'sibling',
'child',
'parent_sibling'
}
CLASS: ProtoSpawner ( Component )
:MODEL{
Field 'proto' :asset('proto');
Field 'spawnName' :string();
'----';
Field 'copyLoc' :boolean();
Field 'copyRot' :boolean();
Field 'copy... | module 'mock'
local enumSpawnMethod = _ENUM_V {
'root',
'sibling',
'child',
'parent_sibling'
}
CLASS: ProtoSpawner ( Component )
:MODEL{
Field 'proto' :asset('proto');
Field 'spawnName' :string();
'----';
Field 'copyLoc' :boolean();
Field 'copyRot' :boolean();
Field 'copy... | fixed protospawner bug: photo will spawn in error location with parent_sibling | fixed protospawner bug: photo will spawn in error location with parent_sibling
| Lua | mit | tommo/mock |
3e177a3fc9fa59123dd858a1551d3137a335f0d1 | mods/mff/mff_quests/init.lua | mods/mff/mff_quests/init.lua | mff.quests = {}
mff.QPREFIX = "mff_quests:"
mff.QNOPREFIX = function(s) return s:sub(mff.QPREFIX:len()+1) end
quests.set_hud_position(1, 0.31)
quests.set_hud_offset(-200, 0)
mff.quests.quests = {
still_testing_quests = {
title = "Stone digger",
description = "TEST QUEST!\nGet a Super Apple at the end!",
repeat... | mff.quests = {}
mff.QPREFIX = "mff_quests:"
mff.QNOPREFIX = function(s) return s:sub(mff.QPREFIX:len()+1) end
quests.set_hud_position(1, 0.31)
quests.set_hud_offset(-200, 0)
mff.quests.quests = {
still_testing_quests = {
title = "Stone digger",
description = "TEST QUEST!\nGet a Super Apple at the end!",
repeat... | [mff_quests] Add levermaniac quest and fix a crash | [mff_quests] Add levermaniac quest and fix a crash
| Lua | unlicense | Gael-de-Sailly/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,sys4-fr/server-minetestforfun,crabman77/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,L... |
8638bdb5dfe979483602c07a52fb9ec5e7a635ba | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | modules/admin-full: fix last commit | modules/admin-full: fix last commit
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5466 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
58771cdb5317e645be63929e10c8f2a8d95053b3 | prototypes/technology.lua | prototypes/technology.lua | data:extend({
{
type = "technology",
name = "copper-floor",
icon = "__MagneticFloor__/graphics/icons/copper-floor-icon.png",
prerequisites =
{
"concrete",
},
effects =
{
{
type = "unlock-recipe",
recipe = "copper-floor",
}
},
unit =
{
... | data:extend({
{
type = "technology",
name = "copper-floor",
icon = "__MagneticFloor__/graphics/icons/copper-floor-icon.png",
prerequisites =
{
"concrete",
},
effects =
{
{
type = "unlock-recipe",
recipe = "copper-floor",
}
},
unit =
{
... | fix unlocking of directive tiles | fix unlocking of directive tiles
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
5baa7f356c2b2434751f3c1b86c013fb07cf2463 | roles/dotfiles/files/.hammerspoon/eventtap.lua | roles/dotfiles/files/.hammerspoon/eventtap.lua | --
-- Trying to limp along without Karabiner in Sierra.
--
local deepEquals = require 'deepEquals'
local log = require 'log'
local keyDown = hs.eventtap.event.types.keyDown
local keyUp = hs.eventtap.event.types.keyUp
local keyCodes = {
control = 59, -- TODO that's leftControl; figure out rightControl
leftShift =... | --
-- Trying to limp along without Karabiner in Sierra.
--
local deepEquals = require 'deepEquals'
local log = require 'log'
local keyDown = hs.eventtap.event.types.keyDown
local keyUp = hs.eventtap.event.types.keyUp
local keyCodes = {
control = 59, -- TODO that's leftControl; figure out rightControl
leftShift =... | hammerspoon: fix breakage on Sierra | hammerspoon: fix breakage on Sierra
Some things changed on actually upgrading to Sierra, meaning that this
didn't work properly any more.
- We get {ctrl = true} rather than {fn = true} on our Caps Lock chorded
events now.
Additionally:
- Clean up timers a bit more aggressively, in case one sticks around
(I did ... | Lua | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent |
3b861e594e7aa7a525a3472c05765675199dcf3f | protocols/6x4/luasrc/model/network/proto_6x4.lua | protocols/6x4/luasrc/model/network/proto_6x4.lua | --[[
LuCI - Network model - 6to4 & 6in4 protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE... | --[[
LuCI - Network model - 6to4 & 6in4 protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE... | protocols/6x4: fix install state detection with netifd | protocols/6x4: fix install state detection with netifd
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8656 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
a962679a7bfafed23ba3615d0b305d674a236279 | cpp/Tupfile.lua | cpp/Tupfile.lua |
-- Projects that include fibre-cpp and also use tup can place a Tuprules.lua file
-- into their root directory with the line `no_libfibre = true` to prevent
-- libfibre from building.
if no_libfibre == true then
return
end
tup.include('package.lua')
CFLAGS = {'-fPIC -std=c++11 -DFIBRE_COMPILE -Wall'}
LDFLAGS = {... |
-- Projects that include fibre-cpp and also use tup can place a Tuprules.lua file
-- into their root directory with the line `no_libfibre = true` to prevent
-- libfibre from building.
if no_libfibre == true then
return
end
tup.include('package.lua')
CFLAGS = {'-fPIC -std=c++11 -DFIBRE_COMPILE -Wall'}
LDFLAGS = {... | Fix OSX native build | Fix OSX native build
| Lua | mit | samuelsadok/fibre,samuelsadok/fibre,samuelsadok/fibre,samuelsadok/fibre,samuelsadok/fibre,samuelsadok/fibre |
4341ceb101ef34deff2801cecbb0854fbc6c3553 | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | mod_s2s_auth_dane: Fix for a17c2c4043e5 | mod_s2s_auth_dane: Fix for a17c2c4043e5
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
2ebc34546212f7e05a4a87d4dd82ba764e3b943e | scripts/package.lua | scripts/package.lua | ---
-- Create a source or binary release package.
---
---
-- Helper function: run a command while hiding its output.
---
local function execQuiet(cmd, ...)
cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log"
local z = os.execute(cmd)
os.remove("_output_.log")
os.remove("_error_.log")
return ... | ---
-- Create a source or binary release package.
---
---
-- Helper function: run a command while hiding its output.
---
local function execQuiet(cmd, ...)
cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log"
local z = os.execute(cmd)
os.remove("_output_.log")
os.remove("_error_.log")
return ... | Fix package.lua os.execute return value checks for Lua 5.3 | Fix package.lua os.execute return value checks for Lua 5.3
| Lua | bsd-3-clause | dcourtois/premake-core,premake/premake-core,sleepingwit/premake-core,noresources/premake-core,TurkeyMan/premake-core,premake/premake-core,Blizzard/premake-core,soundsrc/premake-core,LORgames/premake-core,starkos/premake-core,premake/premake-core,soundsrc/premake-core,premake/premake-core,dcourtois/premake-core,Zefiros-... |
4c0563e6a48e824729500d105add3111c19b3f85 | editor/code.lua | editor/code.lua | local cedit = {}
local colorize = require("libraries.colorize_lua")
cedit.colors = {
text = _GetColor(8),
keyword = _GetColor(11),--15),
number = _GetColor(13),--13),
comment = _GetColor(14),
str = _GetColor(13),
}
function cedit:_init(editor)
self:resetBuffer()
self.keymap = self.keymap or {}
self.parent = se... | local cedit = {}
local colorize = require("libraries.colorize_lua")
cedit.colors = {
text = _GetColor(8),
keyword = _GetColor(11),--15),
number = _GetColor(13),--13),
comment = _GetColor(14),
str = _GetColor(13),
}
function cedit:_init()
self:resetBuffer()
self.keymap = self.keymap or {}
end
function cedit:rese... | Fix a bug where resetting the buffer didn't update the keymap parent. | Fix a bug where resetting the buffer didn't update the keymap parent.
This is a bit confusing because it's easy to think of the text buffer
as a data structure, not an editor mode, but it's kind of acting as
both. If it were just a data structure, it wouldn't handle key
bindings, but if it were just an editor mode, it... | Lua | mit | RamiLego4Game/LIKO-12 |
53cdba820bec3b9c4bf62e8d6d075a67e03e4201 | xmake/modules/core/tools/rc.lua | xmake/modules/core/tools/rc.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 rc errors again | fix rc errors again
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
c33cdd8704246887e11d7c353f773f7b488a47f2 | src/lib/virtio/virtq.lua | src/lib/virtio/virtq.lua | -- Implements virtio virtq
module(...,package.seeall)
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local ffi = require("ffi")
local C = ffi.C
local band = bit.band
local rshift = bit.rshift
require("lib.virtio.virtio.h... | -- Implements virtio virtq
module(...,package.seeall)
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local ffi = require("ffi")
local C = ffi.C
local band = bit.band
local rshift = bit.rshift
require("lib.virtio.virtio.h... | virtq: Use hardware memory barrier in "call" | virtq: Use hardware memory barrier in "call"
This fixes a subtle bug where the guest can become stuck due to
missing an interrupt. This happens with e.g. Linux kernel guests that
use interrupts and not e.g. DPDK guests that are polling.
See details on snabb-devel:
https://groups.google.com/d/msg/snabb-devel/8oGjqlSki... | Lua | apache-2.0 | pirate/snabbswitch,kellabyte/snabbswitch,virtualopensystems/snabbswitch,mixflowtech/logsensor,justincormack/snabbswitch,heryii/snabb,aperezdc/snabbswitch,mixflowtech/logsensor,pirate/snabbswitch,lukego/snabb,eugeneia/snabb,justincormack/snabbswitch,snabbnfv-goodies/snabbswitch,heryii/snabb,kbara/snabb,virtualopensystem... |
461110842e24b181d48540bf58e25e34beaf170e | mod_listusers/mod_listusers.lua | mod_listusers/mod_listusers.lua | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | function module.command(args)
local action = table.remove(args, 1);
if not action then -- Default, list registered users
local data_path = CFG_DATADIR or "data";
if not pcall(require, "luarocks.loader") then
pcall(require, "luarocks.require");
end
local lfs = require "lfs";
function decode... | mod_listusers: fixed banner skipping cycle | mod_listusers: fixed banner skipping cycle
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
8b39a078f114883c75157118e947f56f6b7dcd02 | game/entity.lua | game/entity.lua | -- API for interacting with the entity registration/creation system.
-- For the behaviour of individual Entity instances, see game/Entity.lua
-- For built in entity types, see builtins.lua
local Entity = require 'game.Entity'
entity = {}
local entity_types = {}
-- create a new instance of a named entity.
-- entity.c... | -- API for interacting with the entity registration/creation system.
-- For the behaviour of individual Entity instances, see game/Entity.lua
-- For built in entity types, see builtins.lua
local Entity = require 'game.Entity'
entity = {}
local entity_types = {}
-- create a new instance of a named entity.
-- entity.c... | Fix table modification during traversal in entity.register | Fix table modification during traversal in entity.register
| Lua | mit | ToxicFrog/ttymor |
491f24d3d19a94416257e4ffacaae01aef9d272d | frontend/apps/reader/modules/readerdevicestatus.lua | frontend/apps/reader/modules/readerdevicestatus.lua | local ButtonDialogTitle = require("ui/widget/buttondialogtitle")
local Device = require("device")
local Font = require("ui/font")
local InputContainer = require("ui/widget/container/inputcontainer")
local Screen = Device.screen
local UIManager = require("ui/uimanager")
local powerd = Device:getPowerDevice()
local _ = r... | local ButtonDialogTitle = require("ui/widget/buttondialogtitle")
local Device = require("device")
local Font = require("ui/font")
local InputContainer = require("ui/widget/container/inputcontainer")
local Screen = Device.screen
local UIManager = require("ui/uimanager")
local powerd = Device:getPowerDevice()
local _ = r... | [UX] Don't show low battery warning when charging (#4563) | [UX] Don't show low battery warning when charging (#4563)
Fix #4560 | Lua | agpl-3.0 | mihailim/koreader,pazos/koreader,Markismus/koreader,poire-z/koreader,Frenzie/koreader,Frenzie/koreader,NiLuJe/koreader,mwoz123/koreader,koreader/koreader,poire-z/koreader,NiLuJe/koreader,houqp/koreader,Hzj-jie/koreader,koreader/koreader |
ffc27d4437da4b9b001523b603882cad5d48c4bf | frontend/ui/device/screen.lua | frontend/ui/device/screen.lua | local Geom = require("ui/geometry")
local DEBUG = require("dbg")
-- Blitbuffer
-- einkfb
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+--------------+
| +----------+ |
| | | |
| | Freedom! | |
| | | |
... | local Geom = require("ui/geometry")
local DEBUG = require("dbg")
-- Blitbuffer
-- einkfb
--[[
Codes for rotation modes:
1 for no rotation,
2 for landscape with bottom on the right side of screen, etc.
2
+--------------+
| +----------+ |
| | | |
| | Freedom! | |
| | | |
... | Fix DPI for nex Kobo Aura (phoenix). | Fix DPI for nex Kobo Aura (phoenix).
| Lua | agpl-3.0 | NiLuJe/koreader,koreader/koreader,Frenzie/koreader,poire-z/koreader,chrox/koreader,houqp/koreader,Markismus/koreader,noname007/koreader,pazos/koreader,ashang/koreader,chihyang/koreader,poire-z/koreader,mwoz123/koreader,koreader/koreader,robert00s/koreader,NiLuJe/koreader,ashhher3/koreader,Frenzie/koreader,lgeek/koreade... |
0a63a49515ec91fb005c1673eb627ccec596667e | plugins/set.lua | plugins/set.lua | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | fix setmedia | fix setmedia
| Lua | agpl-3.0 | xsolinsx/AISasha |
81b47a6a2e33da7ebdbf4daa7243d5ad90d37031 | mod_carbons/mod_carbons.lua | mod_carbons/mod_carbons.lua | local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[module.host].sessions;
-- TODO merge message handlers into one somehow
module:hook... | local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local xmlns_carbons = "urn:xmpp:carbons:1";
local xmlns_forward = "urn:xmpp:forward:0";
local host_sessions = hosts[module.host].sessions;
-- TODO merge message handlers into one somehow
module:hook... | mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps) | mod_carbons: Fix top_resources loop and correctly stamp sent messages (thanks xnyhps)
| Lua | mit | asdofindia/prosody-modules,vfedoroff/prosody-modules,either1/prosody-modules,vince06fr/prosody-modules,amenophis1er/prosody-modules,vince06fr/prosody-modules,dhotson/prosody-modules,either1/prosody-modules,vince06fr/prosody-modules,brahmi2/prosody-modules,brahmi2/prosody-modules,joewalker/prosody-modules,stephen322/pro... |
feb3f5ffed3bf143b915d17e6bb944bc8be16a0a | src/cjdnstools/tunnel.lua | src/cjdnstools/tunnel.lua |
--- @module cjdnstools.tunnel
local tunnel = {}
local config = require("config")
package.path = package.path .. ";cjdns/contrib/lua/?.lua"
local cjdns = require "cjdns.init"
local addrcalc = require "cjdnstools.addrcalc"
require "cjdns.config" -- ConfigFile null in certain cases?
local conf = cjdns.ConfigFile.new(... |
--- @module cjdnstools.tunnel
local tunnel = {}
local config = require("config")
package.path = package.path .. ";cjdns/contrib/lua/?.lua"
local cjdns = require "cjdns.init"
local addrcalc = require "cjdnstools.addrcalc"
require "cjdns.config" -- ConfigFile null in certain cases?
local conf = cjdns.ConfigFile.new(... | Fixed copy paste errors | Fixed copy paste errors
| Lua | mit | transitd/transitd,transitd/transitd,pdxmeshnet/mnigs,intermesh-networks/transitd,transitd/transitd,intermesh-networks/transitd,pdxmeshnet/mnigs |
d6620c7920c0344a494bf006f5d02da92be4ba8f | interface/configenv/range.lua | interface/configenv/range.lua | return function(env)
function env.range(start, limit, step)
step = step or 1
local v = start - 1
if not limit then
return function()
start = start + step
return v
end
end
return function()
v = v + step
if v > limit then
v = start
end
return v
end
end
function env.random... | return function(env)
function env.range(start, limit, step)
step = step or 1
local v = start - 1
if not limit then
return function()
start = start + step
return v
end
end
return function()
if v == limit then
v = start
else
v = v + step
end
return v
end
end
function ... | Change range check to use equals. (Fixes ip6 ranges) | Change range check to use equals. (Fixes ip6 ranges)
| Lua | mit | emmericp/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,scholzd/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen |
9576b4197f3ff021721567231b4bf449a31992cc | pud/kit/Rect.lua | pud/kit/Rect.lua | require 'pud.util'
local Class = require 'lib.hump.class'
-- Rect
-- provides position and size of a rectangle
-- Note: coordinates are not floored or rounded and may be floats
local Rect = Class{name='Rect',
function(self, x, y, w, h)
x = x or 0
y = y or 0
w = w or 0
h = h or 0
self:setPosition(x, y)
se... | require 'pud.util'
local Class = require 'lib.hump.class'
-- Rect
-- provides position and size of a rectangle
-- Note: coordinates are not floored or rounded and may be floats
local Rect = Class{name='Rect',
function(self, x, y, w, h)
x = x or 0
y = y or 0
w = w or 0
h = h or 0
self:setPosition(x, y)
se... | fix setY() | fix setY()
| Lua | mit | scottcs/wyx |
408e044d0892fb29b5f099d128159d41607ffa08 | brightness-widget/brightness.lua | brightness-widget/brightness.lua | -------------------------------------------------
-- Brightness Widget for Awesome Window Manager
-- Shows the brightness level of the laptop display
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/brightness-widget
-- @author Pavel Makhov
-- @copyright 2021 Pavel... | -------------------------------------------------
-- Brightness Widget for Awesome Window Manager
-- Shows the brightness level of the laptop display
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/brightness-widget
-- @author Pavel Makhov
-- @copyright 2021 Pavel... | Fix luacheck warnings | Fix luacheck warnings
This patch fixes luacheck warnings in brightness plugin:
brightness-widget/brightness.lua:60:1:
inconsistent indentation (SPACE followed by TAB)
brightness-widget/brightness.lua:63:60:
line contains trailing whitespace
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
2a8b042bb936a37200cfb09e3c56e86463e8e5c7 | src/luacheck/expand_rockspec.lua | src/luacheck/expand_rockspec.lua | local fs = require "luacheck.fs"
local utils = require "luacheck.utils"
local blacklist = utils.array_to_set({"spec", ".luarocks", "lua_modules", "test.lua", "tests.lua"})
-- This reimplements relevant parts of `luarocks.build.builtin.autodetect_modules`.
-- Autodetection works relatively to the directory containing ... | local fs = require "luacheck.fs"
local utils = require "luacheck.utils"
local blacklist = utils.array_to_set({"spec", ".luarocks", "lua_modules", "test.lua", "tests.lua"})
-- This reimplements relevant parts of `luarocks.build.builtin.autodetect_modules`.
-- Autodetection works relatively to the directory containing ... | Fix rockspec module autodetection for bare file names | Fix rockspec module autodetection for bare file names
| Lua | mit | xpol/luacheck,xpol/luacheck,xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,mpeterv/luacheck |
db24d2420bbbc89416463ea009bb0ea655d91a1b | nvim/lua/ryankoval/nvim-tabline.lua | nvim/lua/ryankoval/nvim-tabline.lua | require('tabline').setup({
no_name = '[No Name]', -- Name for buffers with no name
modified_icon = '', -- Icon for showing modified buffer
close_icon = '', -- Icon for closing tab with mouse
separator = "▌", -- Separator icon on the left side
padding = 3, -- P... | require('tabline').setup({
no_name = '[No Name]', -- Name for buffers with no name
modified_icon = '', -- Icon for showing modified buffer
close_icon = '', -- Icon for closing tab with mouse
separator = '▌', -- Separator icon on the left side
padding = 3, -- Prefix and suffix space
color_all_icons = false... | fixed tab color | fixed tab color
| Lua | mit | rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles |
f6c1b74a3d4205f5347a7f3c799bdc4b959717ec | Tester.lua | Tester.lua | local Tester = torch.class('torch.Tester')
function Tester:__init()
self.errors = {}
self.tests = {}
self.testnames = {}
self.curtestname = ''
end
function Tester:assert_sub (condition, message)
self.countasserts = self.countasserts + 1
if not condition then
local ss = debug.traceback('tester... | local Tester = torch.class('torch.Tester')
function Tester:__init()
self.errors = {}
self.tests = {}
self.testnames = {}
self.curtestname = ''
end
function Tester:assert_sub (condition, message)
self.countasserts = self.countasserts + 1
if not condition then
local ss = debug.traceback('tester... | fix assertTensorEq for case of empty tensors | fix assertTensorEq for case of empty tensors
The case of empty tensors was handled wrongly: leading to exception. In the test of torch.maskedSelect and similar the case of an empty tensor can occur, leading to occasional test failures. | Lua | bsd-3-clause | nicholas-leonard/torch7,bartvm/torch7,eulerreich/torch7,massimobernava/torch7,xindaya/torch7,MOUlili/torch7,diz-vara/torch7,PrajitR/torch7,adamlerer/torch7,yozw/torch7,ninjin/torch7,jbeich/torch7,chenfsjz/torch7,wheatwaves/torch7,douwekiela/torch7,ilovecv/torch7,ninjin/torch7,yozw/torch7,0wu/torch7,Moodstocks/torch7,ia... |
d8b61a53941ce5f0e5139f7c4d776abefad9b466 | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | modules/admin-fulk: Fixed changes handling of Static Routes configuration page | modules/admin-fulk: Fixed changes handling of Static Routes configuration page
| Lua | apache-2.0 | hnyman/luci,chris5560/openwrt-luci,dwmw2/luci,lcf258/openwrtcn,artynet/luci,male-puppies/luci,MinFu/luci,jchuang1977/luci-1,cappiewu/luci,ReclaimYourPrivacy/cloak-luci,joaofvieira/luci,keyidadi/luci,taiha/luci,rogerpueyo/luci,lbthomsen/openwrt-luci,981213/luci-1,kuoruan/luci,obsy/luci,ollie27/openwrt_luci,shangjiyu/luc... |
4485e389801fcc0686db18bbdf4ecc37916affd0 | translations/others/scripts/quest/paramtext.lua | translations/others/scripts/quest/paramtext.lua | function itemShortDescription(itemDescriptor)
return root.itemConfig(itemDescriptor).config.shortdescription or itemDescriptor.name
end
local function getCountEnding(count)
local residue = count % 10
if count > 10 and count < 21 then return ""
elseif resudue == 1 then return "а"
elseif residue > 1 and residu... | function itemShortDescription(itemDescriptor)
return root.itemConfig(itemDescriptor).config.shortdescription or itemDescriptor.name
end
local function getCountEnding(count)
local residue = count % 10
if count > 10 and count < 21 then return ""
elseif resudue == 1 then return "а"
elseif residue > 1 and residu... | Fixed plural form handling for non-items | Fixed plural form handling for non-items
| Lua | apache-2.0 | UniverseGuard/Starbound_RU,SBT-community/Starbound_RU,GuardOscar/Starbound_RU,UniverseGuard/Starbound_RU,SBT-community/Starbound_RU,MrHimera/Starbound_RU,MrHimera/Starbound_RU,GuardOscar/Starbound_RU |
06e676203f8893c9989f5ae7d508227ce0bdde27 | script/c46772449.lua | script/c46772449.lua | --励輝士 ヴェルズビュート
function c46772449.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,4),2)
c:EnableReviveLimit()
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46772449,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_... | --励輝士 ヴェルズビュート
function c46772449.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,4),2)
c:EnableReviveLimit()
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46772449,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_... | fix | fix
fixed not being able to chain the effect when XYZ summoned with Star
Drawing or HC Extra Sword
| Lua | mit | Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher |
5ff472b5d849ca55b8c7bb54b542a4d1582f31f0 | src/cmdrservice/src/Client/CmdrServiceClient.lua | src/cmdrservice/src/Client/CmdrServiceClient.lua | --[=[
Loads cmdr on the client. See [CmdrService] for the server equivalent.
@client
@class CmdrServiceClient
]=]
local require = require(script.Parent.loader).load(script)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local promiseChild = require("prom... | --[=[
Loads cmdr on the client. See [CmdrService] for the server equivalent.
@client
@class CmdrServiceClient
]=]
local require = require(script.Parent.loader).load(script)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local promiseChild = require("prom... | fix: Ensure of CmdrServiceClient is disposed of that no more promises are executed. | fix: Ensure of CmdrServiceClient is disposed of that no more promises are executed.
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
6ee014dd99323fedebe2e8e511265920f40550ac | service/snaxd.lua | service/snaxd.lua | local skynet = require "skynet"
local c = require "skynet.core"
local snax_interface = require "snax.interface"
local profile = require "profile"
local snax = require "snax"
local snax_name = tostring(...)
local func, pattern = snax_interface(snax_name, _ENV)
local snax_path = pattern:sub(1,pattern:find("?", 1, true)-... | local skynet = require "skynet"
local c = require "skynet.core"
local snax_interface = require "snax.interface"
local profile = require "profile"
local snax = require "snax"
local snax_name = tostring(...)
local func, pattern = snax_interface(snax_name, _ENV)
local snax_path = pattern:sub(1,pattern:find("?", 1, true)-... | bugfix: init should be out | bugfix: init should be out
| Lua | mit | icetoggle/skynet,kebo/skynet,catinred2/skynet,xcjmine/skynet,firedtoad/skynet,kyle-wang/skynet,ludi1991/skynet,Markal128/skynet,lawnight/skynet,MetSystem/skynet,zhaijialong/skynet,bingo235/skynet,microcai/skynet,czlc/skynet,ludi1991/skynet,felixdae/skynet,iskygame/skynet,matinJ/skynet,kyle-wang/skynet,samael65535/skyne... |
66c6d425de88d0146aeca3d75219c7a5a5742f40 | app/modules/utils/init.lua | app/modules/utils/init.lua | local uv = require('uv')
local prettyPrint, dump, strip, color, colorize, loadColors
local theme = {}
local useColors = false
local stdout, stdin, stderr, width
local quote, quote2, obracket, cbracket, obrace, cbrace, comma, equals, controls
local themes = {
[16] = require('./theme-16.lua'),
[256] = require('./... | local uv = require('uv')
local prettyPrint, dump, strip, color, colorize, loadColors
local theme = {}
local useColors = false
local stdout, stdin, stderr, width
local quote, quote2, dquote, dquote2, obracket, cbracket, obrace, cbrace, comma, equals, controls
local themes = {
[16] = require('./theme-16.lua'),
[2... | Fix string escaping to print valid code | Fix string escaping to print valid code
| Lua | apache-2.0 | rjeli/luvit,rjeli/luvit,luvit/luvit,rjeli/luvit,bsn069/luvit,bsn069/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,... |
c56efeb1654aa3360e76094064f7d5862094bac3 | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | protocols/core: fix peerdns option for dhcp proto | protocols/core: fix peerdns option for dhcp proto
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8695 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | freifunk-gluon/luci,stephank/luci,stephank/luci,yeewang/openwrt-luci,ch3n2k/luci,stephank/luci,yeewang/openwrt-luci,vhpham80/luci,freifunk-gluon/luci,8devices/carambola2-luci,vhpham80/luci,eugenesan/openwrt-luci,zwhfly/openwrt-luci,phi-psi/luci,ThingMesh/openwrt-luci,ch3n2k/luci,vhpham80/luci,gwlim/luci,ch3n2k/luci,zwh... |
148664269b9964f0124c27e667ffcdefa0f13a9f | libremap-agent/luasrc/libremap/plugins/system.lua | libremap-agent/luasrc/libremap/plugins/system.lua | --[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013 André Gaul <gaul@web-yard.de>
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
]]-... | --[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013 André Gaul <gaul@web-yard.de>
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
]]-... | Fix issue #23: drop deprecated sysyinfo call | Fix issue #23: drop deprecated sysyinfo call
| Lua | apache-2.0 | rogerpueyo/libremap-agent-openwrt,libremap/libremap-agent-openwrt,libre-mesh/libremap-agent |
d42c7eccbfe688ff8a34472cef042e21537da071 | plugins/lua/sand_modules/cookie.lua | plugins/lua/sand_modules/cookie.lua | local serialize = require "serialize.serialize"
local deserialize = require "serialize.deserialize"
local types = require "serialize.types"
local cookies = {}
--
-- Ensure our file exists
--
io.open( "cookies.dat", "a" ):close()
local function Load()
local fs = io.open( "cookies.dat", "rb" )
local success, da... | local serialize = require "serialize.serialize"
local deserialize = require "serialize.deserialize"
local types = require "serialize.types"
local cookies = {}
--
-- Ensure our file exists
--
io.open( "cookies.dat", "a" ):close()
local function Load()
local fs = io.open( "cookies.dat", "rb" )
local success, da... | hacky fix | hacky fix | Lua | cc0-1.0 | ModMountain/hash.js,meepdarknessmeep/hash.js,SwadicalRag/hash.js,mcd1992/hash.js |
972331827b2358421db99b74af1d124bbd0dfcb1 | src/store/redis/scripts/publish.lua | src/store/redis/scripts/publish.lua | --input: keys: [], values: [channel_id, time, message, content_type, eventsource_event, msg_ttl, max_msg_buf_size]
--output: message_tag, channel_hash {ttl, time_last_seen, subscribers, messages}
local id=ARGV[1]
local time=tonumber(ARGV[2])
local msg={
id=nil,
data= ARGV[3],
content_type=ARGV[4],
eventsource... | --input: keys: [], values: [channel_id, time, message, content_type, eventsource_event, msg_ttl, max_msg_buf_size]
--output: message_tag, channel_hash {ttl, time_last_seen, subscribers, messages}
local id=ARGV[1]
local time=tonumber(ARGV[2])
local msg={
id=nil,
data= ARGV[3],
content_type=ARGV[4],
eventsource... | fix: redis-store: create invalid prev_msg when publishing after prev_message disappers | fix: redis-store: create invalid prev_msg when publishing after prev_message disappers
| Lua | mit | slact/nginx_http_push_module,slact/nginx_http_push_module,slact/nginx_http_push_module,slact/nginx_http_push_module |
e106e36d4de71f68dd1df1370e461a3ab8b2f40f | MMOCoreORB/bin/scripts/object/tangible/base/tangible_base.lua | MMOCoreORB/bin/scripts/object/tangible/base/tangible_base.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | [fixed] stability fixes | [fixed] stability fixes
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@3870 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege... |
849c7c45e7074996ee7b7edd8846b627947d3af3 | src/cosy/configuration/init.lua | src/cosy/configuration/init.lua | local Loader = require "cosy.loader"
local I18n = require "cosy.i18n"
local Logger = require "cosy.logger"
local Layer = require "layeredata"
local layers = require "cosy.configuration.layers"
local Lfs = require "lfs"
local i18n = I18n.load "cosy.configuration"
layers.default.locale = "en"
layers.default.... | local Loader = require "cosy.loader"
local I18n = require "cosy.i18n"
local Logger = require "cosy.logger"
local Layer = require "layeredata"
local layers = require "cosy.configuration.layers"
local Lfs = require "lfs"
local i18n = I18n.load "cosy.configuration"
layers.default.locale = "en"
layers.default.... | Configuration uses COSY_PREFIX to load /etc/cosy.conf. | Configuration uses COSY_PREFIX to load /etc/cosy.conf.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
cc1b29be06b015e83206eb9dcd11801f8a00b128 | config/nvim/lua/gb/lsp.lua | config/nvim/lua/gb/lsp.lua | local utils = require("gb.utils")
local nvim_lsp = require("lspconfig")
keymap = utils.map
opt = utils.opt
local function custom_on_init()
print("Language Server Protocol started!")
end
local function custom_root_dir()
if (string.find(vim.fn.expand("%f"), "node_modules/") == nil) then
return nvim_lsp.util.roo... | local utils = require("gb.utils")
local nvim_lsp = require("lspconfig")
keymap = utils.map
opt = utils.opt
local function custom_on_init()
print("Language Server Protocol started!")
end
local function custom_root_dir()
if (string.find(vim.fn.expand("%f"), "node_modules/") == nil) then
return nvim_lsp.util.roo... | Lsp fixups | Lsp fixups
| Lua | mit | gblock0/dotfiles |
08b2bfed5606b1601ee11b35a59904f265baf56f | libs/git-fs.lua | libs/git-fs.lua | exports.name = "creationix/git-fs"
exports.version = "0.1.0"
exports.dependencies = {
"creationix/git@0.1.0",
"creationix/hex-bin@1.0.0",
}
--[[
Git Object Database
===================
Consumes a storage interface and return a git database interface
db.has(hash) -> bool - check if db has an ob... | exports.name = "creationix/git-fs"
exports.version = "0.1.0"
exports.dependencies = {
"creationix/git@0.1.0",
"creationix/hex-bin@1.0.0",
}
--[[
Git Object Database
===================
Consumes a storage interface and return a git database interface
db.has(hash) -> bool - check if db has an ob... | Fix 64 bit decoder | Fix 64 bit decoder
| Lua | isc | creationix/rye,creationix/rye |
f641fa38cab4273fb0c980c89dc7ad2ac7bdc777 | lua/path/fs.lua | lua/path/fs.lua | local DIR_SEP = package.config:sub(1,1)
local IS_WINDOWS = DIR_SEP == '\\'
local function prequire(m)
local ok, err = pcall(require, m)
if not ok then return nil, err end
return err
end
local fs
if not fs and IS_WINDOWS then
local fsload = require"path.win32.fs".load
local ok, mod = pcall(fsload, "ffi",... | local DIR_SEP = package.config:sub(1,1)
local IS_WINDOWS = DIR_SEP == '\\'
local function prequire(m)
local ok, err = pcall(require, m)
if not ok then return nil, err end
return err
end
local fs
if not fs and IS_WINDOWS then
local fsload = require"path.win32.fs".load
local ok, mod = pcall(fsload, "ffi", ... | Fix. Use `path.syscall.fs` module in `path.fs` module. | Fix. Use `path.syscall.fs` module in `path.fs` module.
| Lua | mit | mpeterv/lua-path,kidaa/lua-path |
fb604a838bde9b7559f88fb2872c565c0757f50b | plugins/luamacro/luafar/makefarkeys.lua | plugins/luamacro/luafar/makefarkeys.lua | -- started: 2008-12-15 by Shmuel Zeigerman
local function extract_enums (src)
local collector = {}
for enum in src:gmatch("%senum%s*[%w_]*%s*(%b{})") do
for line in enum:gmatch("[^\n]+") do
if line:match("^%s*#") then table.insert(collector, line)
else
local var = line:match("^%s*([%a_][%w_... | -- started: 2008-12-15 by Shmuel Zeigerman
local function extract_enums (src)
local collector = {}
for enum in src:gmatch("%senum%s*[%w_]*%s*(%b{})") do
for line in enum:gmatch("[^\n]+") do
if line:match("^%s*#") then table.insert(collector, line)
else
local var = line:match("^%s*([%a_][%w_... | fix build | fix build
| Lua | bsd-3-clause | FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,FarGroup/FarManager,johnd0e/FarManager,johnd0e/FarManager,FarGroup/FarManager,johnd0e/FarManager,FarGroup/FarManager,FarGroup/FarManager |
e5ad312ec1b1696a653fbcb506dc1741cb7e6599 | options.lua | options.lua | local mod = EPGP:NewModule("EPGP_Options")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
function mod:OnEnable()
local options = {
name = "EPGP",
type = "group",
get = function(i) return EPGP.db.profile[i[#i]] end,
set = function(i, v) EPGP.db.profile[i[#i]] = v end,
args = {
help =... | local mod = EPGP:NewModule("EPGP_Options")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
function mod:OnEnable()
local options = {
name = "EPGP",
type = "group",
get = function(i) return EPGP.db.profile[i[#i]] end,
set = function(i, v) EPGP.db.profile[i[#i]] = v end,
args = {
help =... | Add officer chat to the options of announces. This fixes issue 236. | Add officer chat to the options of announces. This fixes issue 236.
| Lua | bsd-3-clause | hayword/tfatf_epgp,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,sheldon/epgp,hayword/tfatf_epgp |
578211e93c1f49f1b97772425a9724d3e3d5680e | xmake/modules/privilege/sudo.lua | xmake/modules/privilege/sudo.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 sudo PATH passing | fix sudo PATH passing
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake |
54b3f56933b3cd493aa7c3e9a8850faffc4cc794 | src_trunk/resources/realism-system/c_weapons_back.lua | src_trunk/resources/realism-system/c_weapons_back.lua | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPedWeapon(source, prevSlot)
local newWeapon = getPedWeapon(source, newSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) then
if (weapons[source][1] == nil or weapons[source]... | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPedWeapon(source, prevSlot)
local newWeapon = getPedWeapon(source, newSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) and (isPedInVehicle(source)==false) then
if (weapons[... | Bug fix for weapons on back when entering a vehicle | Bug fix for weapons on back when entering a vehicle
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1913 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
6fac148f1eb0555d4588de6da1129d4dc159337a | openLuup/xml.lua | openLuup/xml.lua | local version = "XML 2016.04.14 @akbooer"
--
-- Routines to read Device / Service / Implementation XML files
--
-- general xml reader: this is just good enough to read device and implementation .xml files
-- doesn't cope with XML attributes or empty elements: <tag />
--
-- DOES cope with comments (thanks @vosmont)
... | local version = "XML 2016.04.15 @akbooer"
--
-- Routines to read Device / Service / Implementation XML files
--
-- general xml reader: this is just good enough to read device and implementation .xml files
-- doesn't cope with XML attributes or empty elements: <tag />
--
-- DOES cope with comments (thanks @vosmont)
... | hot-fix-xml-attributes | hot-fix-xml-attributes
- reinstate attribute skipping pattern
- …lost in the previous edit of 2016.02.22
| Lua | apache-2.0 | akbooer/openLuup |
67847096db0e70b60bed944cab32e98dd47ab69a | premake/bgfx.lua | premake/bgfx.lua | --
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "bgfx"
uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66"
kind "StaticLib"
includedirs {
BGFX_DIR .. "../bx/include",
}
defines {
-- "BGFX_CONFIG_RENDERER_OPENGL=1",
}
configur... | --
-- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "bgfx"
uuid "2dc7fd80-ed76-11e0-be50-0800200c9a66"
kind "StaticLib"
includedirs {
BGFX_DIR .. "../bx/include",
}
defines {
-- "BGFX_CONFIG_RENDERER_OPENGL=1",
}
configur... | Fixed OSX build. | Fixed OSX build.
| Lua | bsd-2-clause | mmicko/bgfx,andr3wmac/bgfx,LWJGL-CI/bgfx,MikePopoloski/bgfx,darkimage/bgfx,marco-we/bgfx,v3n/bgfx,LWJGL-CI/bgfx,v3n/bgfx,LSBOSS/bgfx,Extrawurst/bgfx,LSBOSS/bgfx,BlueCrystalLabs/bgfx,aonorin/bgfx,ocornut/bgfx,septag/bgfx,MikePopoloski/bgfx,LWJGL-CI/bgfx,marco-we/bgfx,BlueCrystalLabs/bgfx,mcanthony/bgfx,bkaradzic/bgfx,0-... |
841f3a0344931bf1fc5191593e26039a5235a70d | util/events.lua | util/events.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 pairs = pairs;
local t_insert = table.insert;
local t_sort = table.sort;
local setmetatable = setme... | -- 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 pairs = pairs;
local t_insert = table.insert;
local t_remove = table.remove;
local t_sort = table.s... | util.events: Add local reference to table.remove (fixes traceback) | util.events: Add local reference to table.remove (fixes traceback)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
e2456e39d0c121faf5338a67138d7ae6c7c058d0 | examples/route_guide/server_reader/RouteChatReader.lua | examples/route_guide/server_reader/RouteChatReader.lua | --- Server reader class for RouteChat method.
-- @classmod server_reader.RouteChatReader
local Reader = {}
-------------------------------------------------------------------------------
--- Public functions.
-- @section public
--- New Reader.
-- @tparam Writer writer `Writer` object
-- @treturn table Reader object
... | --- Server reader class for RouteChat method.
-- @classmod server_reader.RouteChatReader
local Reader = {}
-------------------------------------------------------------------------------
--- Public functions.
-- @section public
--- New Reader.
-- @tparam Writer writer `Writer` object
-- @treturn table Reader object
... | Fix RouteChat. | Fix RouteChat.
| Lua | bsd-3-clause | jinq0123/grpc-lua,jinq0123/grpc-lua,jinq0123/grpc-lua |
23c7c022412d54142b45e4309f407e51c983abcd | Engine/coreg.lua | Engine/coreg.lua | --Corouting Registry: this file is responsible for providing LIKO12 it's api--
local coreg = {reg={}}
local coreg = {reg={}}
local sandbox = require("Engine.sandbox")
--Returns the current active coroutine if exists
function coreg:getCoroutine()
return self.co, self.coglob
end
--Sets the current active coroutine
f... | --Corouting Registry: this file is responsible for providing LIKO12 it's api--
local coreg = {reg={}}
local coreg = {reg={}}
local sandbox = require("Engine.sandbox")
--Returns the current active coroutine if exists
function coreg:getCoroutine()
return self.co, self.coglob
end
--Sets the current active coroutine
f... | Bugfixes | Bugfixes
Former-commit-id: 08901166411ecc60f5a9cfb2adc32b809753d1eb | Lua | mit | RamiLego4Game/LIKO-12 |
60b51dcf8580b05d3b250f245514f3a33b5d1032 | scripts/bgfx.lua | scripts/bgfx.lua | --
-- Copyright 2010-2020 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
function filesexist(_srcPath, _dstPath, _files)
for _, file in ipairs(_files) do
file = path.getrelative(_srcPath, file)
local filePath = path.join(_dstPath, file)
if not os.is... | --
-- Copyright 2010-2020 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
function filesexist(_srcPath, _dstPath, _files)
for _, file in ipairs(_files) do
file = path.getrelative(_srcPath, file)
local filePath = path.join(_dstPath, file)
if not os.is... | Fixed #2128. | Fixed #2128.
| Lua | bsd-2-clause | mendsley/bgfx,LWJGL-CI/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,jdryg/bgfx,jpcy/bgfx,jpcy/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,bkaradzic/bgfx,mendsley/bgfx,jdryg/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,jpcy/bgfx,jpcy/bgfx,emoon/bgfx,jdryg/bgfx,emoon/bgfx,emoon/bgfx |
4d1ba1ecc6326a294bf92188e8895aad0873d5dd | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | applications/luci-ddns: fix selection of custom update_url | applications/luci-ddns: fix selection of custom update_url
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6588 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
168d9f3de5c1c082efc3a9d013873f79cba66919 | test/runner.lua | test/runner.lua | #!/usr/bin/lua
assert(arg[1], "No test files specified")
local gumbo = require "gumbo"
local serialize = require "gumbo.serialize.html5lib"
local util = require "gumbo.serialize.util"
local Buffer = util.Buffer
local verbose = os.getenv "VERBOSE"
local results = {pass = 0, fail = 0, skip = 0, n = 0}
local start = os.cl... | #!/usr/bin/lua
assert(arg[1], "No test files specified")
local gumbo = require "gumbo"
local serialize = require "gumbo.serialize.html5lib"
local util = require "gumbo.serialize.util"
local Buffer = util.Buffer
local verbose = os.getenv "VERBOSE"
local results = {pass = 0, fail = 0, skip = 0, n = 0}
local start = os.cl... | Fix test runner... | Fix test runner...
The io.lines() iterator truncates any line that contains embedded zeros
and was causing a few html5lib tests to fail. As a replacement, we read
the file into memory and iterate over lines with a gmatch pattern.
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo |
5ec0c7800fc351e7ff762e9a487174933a7ce26f | util/timer.lua | util/timer.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 ns_addtimer = require "net.server".addtimer;
local event = require "net.server".event;
local event... | -- 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 ns_addtimer = require "net.server".addtimer;
local event = require "net.server".event;
local event... | util.timer: Fix corner case of timer not repeating if it returns <= 0 | util.timer: Fix corner case of timer not repeating if it returns <= 0
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
ae6ed497194b81d4bdd18fbea6fdee7de946341e | utils/json.lua | utils/json.lua | require "luv.string"
require "luv.table"
local type, pairs, table, string, tostring = type, pairs, table, string, tostring
module(...)
local function to (self, seen)
local seen = seen or {}
if "boolean" == type(self) then
return self and "true" or "false"
elseif "string" == type(self) then
return "\""..string.... | require "luv.string"
require "luv.table"
local type, pairs, table, string, tostring = type, pairs, table, string, tostring
module(...)
local function to (self, seen)
local seen = seen or {}
if "boolean" == type(self) then
return self and "true" or "false"
elseif "string" == type(self) then
return string.format... | Fixed utils.json. | Fixed utils.json.
| Lua | bsd-3-clause | metadeus/luv |
58b1978c7e804897244a647fe911296acf434268 | levent/loop.lua | levent/loop.lua | local class = require "levent.class"
local ev = require "levent.ev.c"
local tpack = table.pack
local tunpack = table.unpack
local function wrap_callback(f, ...)
if select("#", ...) > 0 then
local args = tpack(...)
return function()
return xpcall(f, debug.traceback, tunpack(args, 1, args... | local class = require "levent.class"
local ev = require "levent.ev.c"
local tpack = table.pack
local tunpack = table.unpack
local function wrap_callback(f, ...)
if select("#", ...) > 0 then
local args = tpack(...)
return function()
return xpcall(f, debug.traceback, tunpack(args, 1, args... | bugfix: cancel wait failed | bugfix: cancel wait failed
| Lua | mit | xjdrew/levent |
ea307d18185a43d6ce86e1185d96ca7751f18dd0 | modules/vim/installed-config/plugin/lspconfig.lua | modules/vim/installed-config/plugin/lspconfig.lua | local nvim_lsp = require('lspconfig')
local null_ls = require('null-ls')
local cmp_nvim_lsp = require('cmp_nvim_lsp')
vim.fn.sign_define("DiagnosticSignError", { text = ' ', texthl = 'DiagnosticSignError' })
vim.fn.sign_define("DiagnosticSignWarn", { text = ' ', texthl = 'DiagnosticSignWarn' })
vim.fn.sign_define("D... | local nvim_lsp = require('lspconfig')
local null_ls = require('null-ls')
local cmp_nvim_lsp = require('cmp_nvim_lsp')
vim.fn.sign_define("DiagnosticSignError", { text = ' ', texthl = 'DiagnosticSignError' })
vim.fn.sign_define("DiagnosticSignWarn", { text = ' ', texthl = 'DiagnosticSignWarn' })
vim.fn.sign_define("D... | Fix vim rubocop formatter | Fix vim rubocop formatter
| Lua | mit | justinhoward/dotfiles,justinhoward/dotfiles |
43b94fd8236df7de1a787cf22fcadc6dedee79ac | popups.lua | popups.lua | local mod = EPGP:NewModule("EPGP_Popups")
local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("EPGP")
local GPTooltip = EPGP:GetModule("EPGP_GPTooltip")
StaticPopupDialogs["EPGP_CONFIRM_GP_CREDIT"] = {
text = L["Credit GP to %s"],
button1 = L["Full"],
button3 = L["Offspec"],
button2 = CANCEL,
timeout = ... | local mod = EPGP:NewModule("EPGP_Popups")
local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("EPGP")
local GPTooltip = EPGP:GetModule("EPGP_GPTooltip")
StaticPopupDialogs["EPGP_CONFIRM_GP_CREDIT"] = {
text = L["Credit GP to %s"],
button1 = ACCEPT,
button2 = CANCEL,
timeout = 0,
whileDead = 1,
maxLett... | Fix GP popup to assign GP properly when the ACCEPT button is pressed. | Fix GP popup to assign GP properly when the ACCEPT button is pressed.
| Lua | bsd-3-clause | sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp |
1a7af451d7d0b917a528579713e5d5e35379fc81 | _Out/Server/NFDataCfg/ScriptModule/script_init.lua | _Out/Server/NFDataCfg/ScriptModule/script_init.lua | --package.path = '../../NFDataCfg/Script/?.lua;'
pLuaScriptModule = nil;
pPluginManager = nil;
function init_script_system(xPluginManager,xLuaScriptModule)
pPluginManager = xPluginManager;
pLuaScriptModule = xLuaScriptModule;
io.write("\nHello Lua pPluginManager:" .. tostring(pPluginManager) .. " pLuaScri... | --package.path = '../../NFDataCfg/Script/?.lua;'
pLuaScriptModule = nil;
pPluginManager = nil;
function init_script_system(xPluginManager,xLuaScriptModule)
pPluginManager = xPluginManager;
pLuaScriptModule = xLuaScriptModule;
io.write("\nHello Lua pPluginManager:" .. tostring(pPluginManager) .. " pLuaScri... | fixed ScriptModule | fixed ScriptModule
| Lua | apache-2.0 | lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame,lightningkay/NoahGameFrame |
635412bb786a2e8c2c6b4e4fae63ec386a16c96f | src/lluv/websocket/luasocket.lua | src/lluv/websocket/luasocket.lua | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library.
--
... | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library.
--
... | Fix. LuaSocket API close method return code and reason. | Fix. LuaSocket API close method return code and reason.
| Lua | mit | moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket |
d269a3c3b7896cfe5a03bc0fed8c56d96d563be2 | src/luarocks/purge.lua | src/luarocks/purge.lua |
--- Module implementing the LuaRocks "purge" command.
-- Remove all rocks from a given tree.
module("luarocks.purge", package.seeall)
local util = require("luarocks.util")
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local search = require("luarocks.search")
local deps = require("luarocks.d... |
--- Module implementing the LuaRocks "purge" command.
-- Remove all rocks from a given tree.
module("luarocks.purge", package.seeall)
local util = require("luarocks.util")
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local search = require("luarocks.search")
local deps = require("luarocks.d... | Fix: Purge command did not check permission for the tree to operate on | Fix: Purge command did not check permission for the tree to operate on
| Lua | mit | starius/luarocks,robooo/luarocks,usstwxy/luarocks,xiaq/luarocks,aryajur/luarocks,starius/luarocks,lxbgit/luarocks,rrthomas/luarocks,ignacio/luarocks,rrthomas/luarocks,xpol/luarocks,tst2005/luarocks,ignacio/luarocks,coderstudy/luarocks,tst2005/luarocks,xiaq/luarocks,xpol/luarocks,tst2005/luarocks,rrthomas/luarocks,luaro... |
dcffb39eb1b54208d1cf516e7f9868e88a27cb12 | lua_scripts/pathmaps/simple/00_default.lua | lua_scripts/pathmaps/simple/00_default.lua | -- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org>
-- Licensed under MIT license.
--
-- "simple" mode, to be used for software development & building
-- (as the name says, this is the simple solution; See/use the "devel"
-- mode when a more full-featured environment is needed)
-- Rule file interface version, manda... | -- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org>
-- Licensed under MIT license.
--
-- "simple" mode, to be used for software development & building
-- (as the name says, this is the simple solution; See/use the "devel"
-- mode when a more full-featured environment is needed)
-- Rule file interface version, manda... | fixes for running git within sbox2 | fixes for running git within sbox2
Stop sbox2 from remapping paths for scripts in /usr/lib/git-core to targetfs.. otherwise some commands like 'git submodule' would not work (because git-submodule is a script, not an executable)
Signed-off-by: Lauri Aarnio <18c97056964064acc79deb3ed7547e2c4d053843@iki.fi>
| Lua | lgpl-2.1 | lbt/scratchbox2,loganchien/scratchbox2,ldbox/ldbox,BinChengfei/scratchbox2,madscientist42/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2,h113331pp/scratchbox2,BinChengfei/scratchbox2,loganchien/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2,lbt/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2,ldbox/ldbox,BinChen... |
371612b88da8d59ad25792bad2f2a86c6ccc0138 | patt_movingspots.lua | patt_movingspots.lua | local PIXELS = 150
local spots_distance = PIXELS/spots_count
local spot_index = 0
local function subspot(nspot)
wsbuf:set(nspot*spots_distance+spot_index+1,254,254,254)
if nspot > 0 then
subspot(nspot-1)
end
end
local function run(wsbuf, spots_count)
if spots_count < 1 then spots_count = 1 end
wsbuf:fad... | local spot_index = 0
local function run(wsbuf, spots_count)
if not (type(spots_count) == "number" and spots_count > 0) then
spots_count = 1
end
local spots_distance = wsbuf:size()/spots_count
wsbuf:fade(2,ws2812.FADE_OUT)
local pos = 0
for nspot = 0, spots_count -1 do
pos = spot_index+1+nspot*spots... | fix movingspots | fix movingspots
| Lua | mit | realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs |
bd01b31bbd9e47515e0c611d0fe32806bfe20c15 | npl_mod/nwf/utils/string_util.lua | npl_mod/nwf/utils/string_util.lua | --[[
Title: string utilities
Author: zenghui
Date: 2017/3/6
]]
local util = commonlib.gettable("nwf.util.string");
function util.split(str, delimiter)
if type(delimiter) ~= "string" or string.len(delimiter) <= 0 then
return
end
local start = 1
local t = {}
while true do
local pos ... | --[[
Title: string utilities
Author: zenghui
Date: 2017/3/6
]]
local util = commonlib.gettable("nwf.util.string");
function util.split(str, delimiter)
if type(delimiter) ~= "string" or string.len(delimiter) <= 0 then
return
end
local start = 1
local t = {}
while true do
local pos ... | fix string_util.new_guid bug | fix string_util.new_guid bug
| Lua | mit | Links7094/nwf,Links7094/nwf,elvinzeng/nwf,elvinzeng/nwf |
d6980b9c5f8db642076fd335b12a94c29feda5e8 | src_trunk/resources/global/achievement_globals.lua | src_trunk/resources/global/achievement_globals.lua | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | Fixed error in global | Fixed error in global
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1154 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
4532d4f146cc68c201b62a78d13c13e0c6baf13a | lualib/skynet/require.lua | lualib/skynet/require.lua | -- skynet module two-step initialize . When you require a skynet module :
-- 1. Run module main function as official lua module behavior.
-- 2. Run the functions register by skynet.init() during the step 1,
-- unless calling `require` in main thread .
-- If you call `require` in main thread ( service main function... | -- skynet module two-step initialize . When you require a skynet module :
-- 1. Run module main function as official lua module behavior.
-- 2. Run the functions register by skynet.init() during the step 1,
-- unless calling `require` in main thread .
-- If you call `require` in main thread ( service main function... | Fix skynet.require recursion issue, See #1331 | Fix skynet.require recursion issue, See #1331
| Lua | mit | icetoggle/skynet,hongling0/skynet,xjdrew/skynet,xjdrew/skynet,icetoggle/skynet,xjdrew/skynet,cloudwu/skynet,sanikoyes/skynet,wangyi0226/skynet,pigparadise/skynet,icetoggle/skynet,sanikoyes/skynet,hongling0/skynet,pigparadise/skynet,korialuo/skynet,wangyi0226/skynet,korialuo/skynet,hongling0/skynet,wangyi0226/skynet,clo... |
d32ee229b5c402f102e10ee118665f83a86621a9 | src/db.lua | src/db.lua | -- Imports / module wrapper
local Pkg = {}
local std = _G
local error = error
local print = print
local type = type
local tostring = tostring
local getmetatable = getmetatable
local setmetatable = setmetatable
local pairs = pairs
local ipairs = ipairs
local string = string
local table = table
local util = require("util... | -- Imports / module wrapper
local Pkg = {}
local std = _G
local error = error
local print = print
local type = type
local tostring = tostring
local getmetatable = getmetatable
local setmetatable = setmetatable
local pairs = pairs
local ipairs = ipairs
local string = string
local table = table
local util = require("util... | Fix unary schemas and add length schema | Fix unary schemas and add length schema
| Lua | apache-2.0 | shamrin/Eve,shamrin/Eve,nmsmith/Eve,witheve/lueve,shamrin/Eve,witheve/Eve,witheve/Eve,nmsmith/Eve,witheve/lueve,nmsmith/Eve,witheve/Eve |
6a035b16175ce727f2954dcb2b5aade63cb3aec4 | game/scripts/vscripts/heroes/hero_sai/divine_flesh.lua | game/scripts/vscripts/heroes/hero_sai/divine_flesh.lua | LinkLuaModifier("modifier_sai_divine_flesh_on", "heroes/hero_sai/divine_flesh.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_sai_divine_flesh_off", "heroes/hero_sai/divine_flesh.lua", LUA_MODIFIER_MOTION_NONE)
sai_divine_flesh = class({
GetIntrinsicModifierName = function() return "modifier_sai_divine_fles... | LinkLuaModifier("modifier_sai_divine_flesh_on", "heroes/hero_sai/divine_flesh.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_sai_divine_flesh_off", "heroes/hero_sai/divine_flesh.lua", LUA_MODIFIER_MOTION_NONE)
sai_divine_flesh = class({
GetIntrinsicModifierName = function() return "modifier_sai_divine_fles... | fix(sai): turned off Divine Flesh now displays correct values on client | fix(sai): turned off Divine Flesh now displays correct values on client
| Lua | mit | ark120202/aabs |
ca4faf595aed12b8de59eb1400e794b1db68d1d6 | src/pathfindingutils/src/Shared/PathfindingUtils.lua | src/pathfindingutils/src/Shared/PathfindingUtils.lua | --[=[
Utilities involving pathfinding in Roblox
@class PathfindingUtils
]=]
local require = require(script.Parent.loader).load(script)
local Promise = require("Promise")
local Draw = require("Draw")
local Maid = require("Maid")
local PathfindingUtils = {}
--[=[
Computes a path wrapped in a promise.
@param path... | --[=[
Utilities involving pathfinding in Roblox
@class PathfindingUtils
]=]
local require = require(script.Parent.loader).load(script)
local Promise = require("Promise")
local Draw = require("Draw")
local Maid = require("Maid")
local PathfindingUtils = {}
--[=[
Computes a path wrapped in a promise.
@param path... | fix: Wrap promiseComputeAsync with pcall, as path finding can fail on long path call requests | fix: Wrap promiseComputeAsync with pcall, as path finding can fail on long path call requests
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
9e87c18ad42fc5ce3b0e7ec295d3028c4ec12836 | check/plugin.lua | check/plugin.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | Fix: close stdin for Powershell plugins * Some versions require stdin to be closed before exiting | Fix: close stdin for Powershell plugins
* Some versions require stdin to be closed before exiting
| Lua | apache-2.0 | christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-m... |
030656f586214202b432a08e335087d6b5ff5759 | cherry/screens/name-picker.lua | cherry/screens/name-picker.lua | --------------------------------------------------------------------------------
local _ = require 'cherry.libs.underscore'
local animation = require 'cherry.libs.animation'
local group = require 'cherry.libs.group'
local gesture = require 'cherry.libs.gesture'
local Banner = require 'cherry.component... | --------------------------------------------------------------------------------
local _ = require 'cherry.libs.underscore'
local animation = require 'cherry.libs.animation'
local group = require 'cherry.libs.group'
local gesture = require 'cherry.libs.gesture'
local Banner = require 'cherry.component... | fixes for name-picker | fixes for name-picker
| Lua | bsd-3-clause | chrisdugne/cherry |
fbe40aa2d7272c447895fabf3768f09aaa0158b7 | core/font.lua | core/font.lua |
SILE.registerCommand("font", function(options, content)
if (type(content)=="function" or content[1]) then
SILE.settings.pushState()
end
if (options.family) then SILE.settings.set("font.family", options.family) end
if (options.size) then
local size = SILE.parserBits.dime... |
SILE.registerCommand("font", function(options, content)
if (type(content)=="function" or content[1]) then
SILE.settings.pushState()
end
if (options.family) then SILE.settings.set("font.family", options.family) end
if (options.size) then
local size = SILE.parserBits.dime... | Bug fix. | Bug fix. | Lua | mit | neofob/sile,simoncozens/sile,shirat74/sile,neofob/sile,shirat74/sile,shirat74/sile,anthrotype/sile,simoncozens/sile,alerque/sile,alerque/sile,WAKAMAZU/sile_fe,WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,shirat74/sile,WAKAMAZU/sile_fe,alerque/sile,anthrotype/sile,anthrotype/sile,anthrotype/sile,alerque/sile,neofo... |
8bf7e449038151bf992acf9a45afb5c0c2703aa9 | mods/coloredwood/wood.lua | mods/coloredwood/wood.lua | -- Woods portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
-- based on my unified dyes modding template.
--
-- License: WTFPL
coloredwood.enable_stairsplus = true
if minetest.setting_getbool("coloredwood_enable_stairsplus") == false or not minetest.get_modpath("moreblocks") then
coloredwood.enable_sta... | -- Woods portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
-- based on my unified dyes modding template.
--
-- License: WTFPL
coloredwood.enable_stairsplus = true
if minetest.setting_getbool("coloredwood_enable_stairsplus") == false or not minetest.get_modpath("moreblocks") then
coloredwood.enable_sta... | Revert coloredwood parts | Revert coloredwood parts
Fix the coloredwood "woods" no longer appear in inventory issue (thank you Le_Docteur for the reporting) | Lua | unlicense | MinetestForFun/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,Ombridride/minetest-minetestforfun-server,Coethium/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,paly... |
696cf07f73aa76b165e9ff0a9d64bc76c39f0538 | scripts/lua/policies/security.lua | scripts/lua/policies/security.lua | -- Copyright (c) 2016 IBM. All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, mod... | -- Copyright (c) 2016 IBM. All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, mod... | Fix error path message due to bad security policy name | Fix error path message due to bad security policy name
| Lua | apache-2.0 | openwhisk/apigateway,openwhisk/apigateway,alexsong93/openwhisk-apigateway,LukeFarrell/incubator-openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/apigateway,openwhisk/openwhisk-apigateway,openwhisk/openwhisk-apigateway,alexsong93/openwhisk-apigateway,openwhisk/openwhisk-apigateway,LukeFarrell/incubator-ope... |
5bed42ea26123b09dee034d048afc8f7fa02adbe | fblualib/util/fb/util/timing.lua | fblualib/util/fb/util/timing.lua | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Trace timing... | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Trace timing... | Fix bug in fb.util.timing: start should not reset patterns | Fix bug in fb.util.timing: start should not reset patterns
Summary:
You should be able to run start() / finish() as many times as you want on
the same set of patterns.
Test Plan: ran trace_test.llar, the output looks good
Reviewed By: kma@fb.com
Subscribers: tulloch, soumith, pamelavagata
FB internal diff: D169808... | Lua | bsd-3-clause | raphaelamorim/fblualib,facebook/fblualib,szagoruyko/fblualib,facebook/fblualib,soumith/fblualib,szagoruyko/fblualib,raphaelamorim/fblualib,soumith/fblualib |
1b376b7a54d50679b44e6d387dd60f3dd184eb23 | modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | modules/admin-full: fix System -> Administration menu if dropbear is not installed | modules/admin-full: fix System -> Administration menu if dropbear is not installed
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci |
94639475f712cc4f310044dafe27b82ddd71cffc | wyx/ui/CheckButton.lua | wyx/ui/CheckButton.lua | local Class = require 'lib.hump.class'
local Frame = getClass 'wyx.ui.Frame'
local Button = getClass 'wyx.ui.Button'
-- CheckButton
-- a clickable Frame
local CheckButton = Class{name='CheckButton',
inherits=Button,
function(self, ...)
Button.construct(self, ...)
self._checked = false
end
}
-- destructor
funct... | local Class = require 'lib.hump.class'
local Frame = getClass 'wyx.ui.Frame'
local Button = getClass 'wyx.ui.Button'
-- CheckButton
-- a clickable Frame
local CheckButton = Class{name='CheckButton',
inherits=Button,
function(self, ...)
Button.construct(self, ...)
self._checked = false
end
}
-- destructor
funct... | fix CheckButton | fix CheckButton
| Lua | mit | scottcs/wyx |
8273d3d273b50d7fce59332bc35b6faa523f4c0d | applications/luci-minidlna/luasrc/controller/minidlna.lua | applications/luci-minidlna/luasrc/controller/minidlna.lua | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | applications/luci-minidlna: fix status parsing | applications/luci-minidlna: fix status parsing
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8658 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
64c41adeb2ea8cfcbb30935dbdba83329c83964e | filters/hugo.lua | filters/hugo.lua | -- Remove TeX/LaTeX RawInlines
function RawInline(el)
if el.format:match 'tex' or el.format:match 'latex' then
-- replace RawInlines ("latex") w/ a space
return pandoc.Space()
end
end
-- Remove TeX/LaTeX RawBlocks
function RawBlock(el)
if el.format:match 'tex' or el.format:match 'latex' the... | -- Remove TeX/LaTeX RawInlines
function RawInline(el)
if el.format:match 'tex' or el.format:match 'latex' then
-- replace RawInlines ("latex") w/ a space
return pandoc.Space()
end
end
-- Remove TeX/LaTeX RawBlocks
function RawBlock(el)
if el.format:match 'tex' or el.format:match 'latex' the... | [FIX] Crossreference Tags are now no longer appearing as clickable buttons (#11) | [FIX] Crossreference Tags are now no longer appearing as clickable buttons (#11)
| Lua | mit | cagix/pandoc-lecture |
8507a4b786b07b1552823e7d84907b7f49460fab | lamp-placer_0.15.0/control.lua | lamp-placer_0.15.0/control.lua | local LAMP_DISTANCE = 8
local EXTRA = 10
local function droppedItem(event)
if not event.entity or not event.entity.stack then
return
end
if event.entity.stack.name == "lamp-placer" then
event.entity.stack.clear()
end
end
local function isInRange(position, x, y, range)
local diffX =... | local LAMP_DISTANCE = 8
local EXTRA = 10
local function droppedItem(event)
if not event.entity or not event.entity.stack then
return
end
if event.entity.stack.name == "lamp-placer" then
event.entity.stack.clear()
end
end
local function isInRange(position, x, y, range)
local diffX =... | Lamp Placer: Fix Luacheck warnings | Lamp Placer: Fix Luacheck warnings
| Lua | mit | Zomis/FactorioMods |
7a32750bbfa68baa0da1307237ce0af22cd1f55c | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | Revert "* luci/olsr: fix names of interfaces with type bridge" | Revert "* luci/olsr: fix names of interfaces with type bridge"
This reverts commit 500499c2a0d7c5eeeddb621a8b96fad10523485b.
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2511 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | 8devices/carambola2-luci,ch3n2k/luci,Flexibity/luci,projectbismark/luci-bismark,ReclaimYourPrivacy/cloak-luci,8devices/carambola2-luci,vhpham80/luci,alxhh/piratenluci,freifunk-gluon/luci,dtaht/cerowrt-luci-3.3,saraedum/luci-packages-old,projectbismark/luci-bismark,dtaht/cerowrt-luci-3.3,stephank/luci,freifunk-gluon/luc... |
6d532d692d3406356da16d3e74b3e453f245606a | lib/resty/chash/server.lua | lib/resty/chash/server.lua | local jchash = require "resty.chash.jchash"
function deepcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in next, orig, nil do
copy[deepcopy(orig_key)] = deepcopy(orig_value)
end
else
copy = o... | local jchash = require "resty.chash.jchash"
local ok, new_table = pcall(require, "table.new")
if not ok then
new_table = function (narr, nrec) return {} end
end
function deepcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_val... | fix bug: updating servers didn't rearrange the servers' list | fix bug: updating servers didn't rearrange the servers' list
| Lua | mit | ruoshan/lua-resty-jump-consistent-hash,ruoshan/lua-resty-jump-consistent-hash |
c443fe3355ec4b6cab1b615da2342f03555122f6 | build/Helpers.lua | build/Helpers.lua | -- This module checks for the all the project dependencies.
newoption {
trigger = "arch",
description = "Choose a particular architecture / bitness",
allowed = {
{ "x86", "x86 32-bits" },
{ "x64", "x64 64-bits" },
{ "AnyCPU", "Any CPU (.NET)" },
}
}
newoption {
trigger = "n... | -- This module checks for the all the project dependencies.
newoption {
trigger = "arch",
description = "Choose a particular architecture / bitness",
allowed = {
{ "x86", "x86 32-bits" },
{ "x64", "x64 64-bits" },
{ "AnyCPU", "Any CPU (.NET)" },
}
}
newoption {
trigger = "n... | Fix minor issue when invoking Premake without an action. | Fix minor issue when invoking Premake without an action.
| Lua | mit | mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp |
a4eaf0ca6ff586a302b60cc8bda6255bc8217f42 | src/servicebag/src/Shared/ServiceBag.lua | src/servicebag/src/Shared/ServiceBag.lua | ---
-- @classmod ServiceBag
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Signal = require("Signal")
local BaseObject = require("BaseObject")
local ServiceBag = setmetatable({}, BaseObject)
ServiceBag.ClassName = "ServiceBag"
ServiceBag.__index = ServiceBag
-- parentProvider is ... | ---
-- @classmod ServiceBag
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local Signal = require("Signal")
local BaseObject = require("BaseObject")
local ServiceBag = setmetatable({}, BaseObject)
ServiceBag.ClassName = "ServiceBag"
ServiceBag.__index = ServiceBag
-- parentProvider is ... | fix: Enforce service retrieve returning correct memory address and initializing a separate table | fix: Enforce service retrieve returning correct memory address and initializing a separate table
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
d0ee708f83df69663ebab036dbb5a6ef938e4f6c | libs/format.lua | libs/format.lua | local md5 = require('./libs/md5')
local fmt = {
ae = function(s)
local r = ''
for i=1,#s do
local v = s:sub(i, i):byte(1)
if v == 32 then -- Special case for space
r = r .. string.char(227, 128, 128)
elseif v >= 33 and v <= 95 then -- ! to _
r = r .. string.char(239, 188, v ... | local md5 = require('./libs/md5')
local fmt = {
ae = function(s) -- Convert any ascii to fullwidth
local r = ''
for i=1,#s do
local v = s:sub(i, i):byte(1)
if v == 32 then -- Special case for space
r = r .. string.char(227, 128, 128)
elseif v >= 33 and v <= 95 then -- ! to _
... | format.lua: quick fix for sp unicode support | format.lua: quick fix for sp unicode support
| Lua | mit | LazyShpee/discord-egobot |
541ccdc6134a6340afcf9e0f9612f2a86e733ed6 | share/lua/intf/modules/common.lua | share/lua/intf/modules/common.lua | --[[ This code is public domain (since it really isn't very interesting) ]]--
module("common",package.seeall)
-- Iterate over a table in the keys' alphabetical order
function pairs_sorted(t)
local s = {}
for k,_ in pairs(t) do table.insert(s,k) end
table.sort(s)
local i = 0
return function () i = ... | --[[ This code is public domain (since it really isn't very interesting) ]]--
module("common",package.seeall)
-- Iterate over a table in the keys' alphabetical order
function pairs_sorted(t)
local s = {}
for k,_ in pairs(t) do table.insert(s,k) end
table.sort(s)
local i = 0
return function () i = ... | lua: fix sign errors in us_tonumber() | lua: fix sign errors in us_tonumber()
| Lua | lgpl-2.1 | jomanmuk/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,xkfz007/vlc,vlc-mirror/vlc,xkfz007/vlc,krichter722/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.1... |
92fc9cd62f680a36c02be7a9c1364cc215c7d10e | libs/web/luasrc/template.lua | libs/web/luasrc/template.lua | --[[
LuCI - Template Parser
Description:
A template parser supporting includes, translations, Lua code blocks
and more. It can be used either as a compiler or as an interpreter.
FileId: $Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you... | --[[
LuCI - Template Parser
Description:
A template parser supporting includes, translations, Lua code blocks
and more. It can be used either as a compiler or as an interpreter.
FileId: $Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you... | * Fixed last commit | * Fixed last commit
| Lua | apache-2.0 | RedSnake64/openwrt-luci-packages,Kyklas/luci-proto-hso,kuoruan/luci,remakeelectric/luci,mumuqz/luci,wongsyrone/luci-1,nwf/openwrt-luci,openwrt-es/openwrt-luci,artynet/luci,chris5560/openwrt-luci,male-puppies/luci,shangjiyu/luci-with-extra,palmettos/cnLuCI,keyidadi/luci,florian-shellfire/luci,oyido/luci,jorgifumi/luci,o... |
9094f9cbf5f556368a132132f27e69abd61908f1 | lua/sys/init.lua | lua/sys/init.lua | -- luacheck: globals unpack vim
local nvim = require'nvim'
local stdpath = nvim.fn.stdpath
local function system_name()
local name = 'unknown'
if nvim.has('win32unix') or nvim.has('win32') then
name = 'windows'
elseif nvim.has('mac') then
name = 'mac'
elseif nvim.has('unix') then
... | -- luacheck: globals unpack vim
local nvim = require'nvim'
local stdpath = nvim.fn.stdpath
local function system_name()
local name = 'unknown'
if nvim.has('win32unix') or nvim.has('win32') then
name = 'windows'
elseif nvim.has('mac') then
name = 'mac'
elseif nvim.has('unix') then
... | fix: luajit version | fix: luajit version
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
e0520140de0b9e9481fe6c92878c6a988f0874bd | modules/textadept/macros.lua | modules/textadept/macros.lua | -- Copyright 2018 Mitchell mitchell.att.foicica.com. See LICENSE.
--[[ This comment is for LuaDoc.
---
-- A module for recording, playing, saving, and loading keyboard macros.
-- Menu commands are also recorded.
-- At this time, typing into multiple cursors during macro playback is not
-- supported.
module('textadept.... | -- Copyright 2018 Mitchell mitchell.att.foicica.com. See LICENSE.
--[[ This comment is for LuaDoc.
---
-- A module for recording, playing, saving, and loading keyboard macros.
-- Menu commands are also recorded.
-- At this time, typing into multiple cursors during macro playback is not
-- supported.
module('textadept.... | Fixed macro toggling with some key combinations. | Fixed macro toggling with some key combinations.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
d3d26222f47c2ba6b3828d7316916fd72193444b | MMOCoreORB/bin/scripts/object/building/corellia/ply_corl_house_s_s01_fp1.lua | MMOCoreORB/bin/scripts/object/building/corellia/ply_corl_house_s_s01_fp1.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | [fixed] Ent buffing in Tavern at Smuggler OP on Endor.(clean sceneobject db might be needed) Mantis #5788 | [fixed] Ent buffing in Tavern at Smuggler OP on Endor.(clean sceneobject
db might be needed) Mantis #5788
Change-Id: I33fd30e98fe32161564d0f10ce244057b63a6a93
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
e436c36a6026a14fe90218c3a3506e00264aaa01 | lua/pipe.lua | lua/pipe.lua | --- Inter-task communication via pipes
local mod = {}
local memory = require "memory"
local ffi = require "ffi"
local serpent = require "Serpent"
local libmoon = require "libmoon"
local log = require "log"
ffi.cdef [[
// dummy
struct spsc_ptr_queue { };
struct mpmc_ptr_queue { };
struct spsc_ptr_q... | --- Inter-task communication via pipes
local mod = {}
local memory = require "memory"
local ffi = require "ffi"
local serpent = require "Serpent"
local libmoon = require "libmoon"
local log = require "log"
local S = require "syscall"
ffi.cdef [[
// dummy
struct spsc_ptr_queue { };
struct mpmc_ptr_qu... | fix dpdk ring buffer pipe with watermarks | fix dpdk ring buffer pipe with watermarks
| Lua | mit | emmericp/libmoon,emmericp/libmoon,scholzd/libmoon,libmoon/libmoon,libmoon/libmoon,scholzd/libmoon,scholzd/libmoon,libmoon/libmoon,emmericp/libmoon |
87f9d22a7257cb7eed46d2979c54aafccfa270a1 | src/nodish/net/socket.lua | src/nodish/net/socket.lua | local S = require'syscall'
local emitter = require'nodish.emitter'
local stream = require'nodish.stream'
local ev = require'ev'
local loop = ev.Loop.default
-- TODO: employ ljsyscall
local isip = function(ip)
local addrinfo,err = socket.dns.getaddrinfo(ip)
if err then
return false
end
return true
end
-- ... | local S = require'syscall'
local emitter = require'nodish.emitter'
local stream = require'nodish.stream'
local ev = require'ev'
local loop = ev.Loop.default
-- TODO: employ ljsyscall
local isip = function(ip)
local addrinfo,err = socket.dns.getaddrinfo(ip)
if err then
return false
end
return true
end
-- ... | fix _read where sock is nil | fix _read where sock is nil
| Lua | mit | lipp/nodish |
f1c465e09db1595438b65dfe9b892d3dc855a0de | plugins/madrust-announce.lua | plugins/madrust-announce.lua | PLUGIN = PLUGIN or {} -- accommodates testing
PLUGIN.Title = "madrust-announce"
PLUGIN.Description = "Announcment broadcaster with optional reddit integration."
PLUGIN.Version = "0.1"
PLUGIN.Author = "W. Brian Gourlie"
function PLUGIN:Init()
print("init madrust-announce")
self.config = self:InitConfig()
self.su... | PLUGIN = PLUGIN or {} -- accommodates testing
PLUGIN.Title = "madrust-announce"
PLUGIN.Description = "Announcment broadcaster with optional reddit integration."
PLUGIN.Version = "0.1"
PLUGIN.Author = "W. Brian Gourlie"
function PLUGIN:Init()
print("init madrust-announce")
self.config = self:InitConfig()
self.su... | Bugfix. | Bugfix.
| Lua | mit | bgourlie/madrust-oxide-plugins |
f25ab5ba52736cbd518e806e1281adc6a34d9634 | lua/entities/gmod_wire_expression2/core/strfunc.lua | lua/entities/gmod_wire_expression2/core/strfunc.lua | local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | local function nicename( word )
local ret = word:lower()
if ret == "normal" then return "number" end
return ret
end
local function checkFuncName( self, funcname )
if self.funcs[funcname] then
return self.funcs[funcname], self.funcs_ret[funcname]
elseif wire_expression2_funcs[funcname] then
return wire_express... | fixed strfuncs erroring after e2 reload | fixed strfuncs erroring after e2 reload
fixed strfuncs erroring after e2 reload
fixed strfunc "print"("test") not printing the 1st argument after the
1st call
Fixes #436
| Lua | apache-2.0 | Grocel/wire,immibis/wiremod,garrysmodlua/wire,wiremod/wire,NezzKryptic/Wire,CaptainPRICE/wire,mms92/wire,mitterdoo/wire,rafradek/wire,bigdogmat/wire,Python1320/wire,thegrb93/wire,notcake/wire,dvdvideo1234/wire,sammyt291/wire,plinkopenguin/wiremod |
50928da588711262bfad7fbaec8398bfa0360219 | open-legends.lua | open-legends.lua | -- open legends screen when in fortress mode
--@ module = true
--[[=begin
open-legends
============
Open a legends screen when in fortress mode.
Compatible with `exportlegends`.
=end]]
gui = require 'gui'
utils = require 'utils'
Wrapper = defclass(Wrapper, gui.Screen)
Wrapper.focus_path = 'legends'
function Wrappe... | -- open legends screen when in fortress mode
--@ module = true
--[[=begin
open-legends
============
Open a legends screen when in fortress mode.
Compatible with `exportlegends`.
=end]]
gui = require 'gui'
utils = require 'utils'
Wrapper = defclass(Wrapper, gui.Screen)
Wrapper.focus_path = 'legends'
region_details_... | fix game-breaking open-legends bug backup world.world_data.region_details after loading clear and restore from backup before exiting | fix game-breaking open-legends bug
backup world.world_data.region_details after loading
clear and restore from backup before exiting
| Lua | unlicense | DFHack/lethosor-scripts,lethosor/dfhack-scripts |
47e3bd444e00278215c4021320492ba7e401f58b | modules/xcode/xcode_project.lua | modules/xcode/xcode_project.lua | ---
-- xcode/xcode4_project.lua
-- Generate an Xcode project file.
-- Author Jason Perkins
-- Modified by Mihai Sebea
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
local m = p.modules.xcode
local xcode = p.modules.xcode
local project = p.project
local config ... | ---
-- xcode/xcode4_project.lua
-- Generate an Xcode project file.
-- Author Jason Perkins
-- Modified by Mihai Sebea
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
local m = p.modules.xcode
local xcode = p.modules.xcode
local project = p.project
local config ... | Fixed the xcode "dependson" linking issue in a more efficient way. | Fixed the xcode "dependson" linking issue in a more efficient way.
| Lua | bsd-3-clause | sleepingwit/premake-core,jstewart-amd/premake-core,LORgames/premake-core,mandersan/premake-core,dcourtois/premake-core,noresources/premake-core,dcourtois/premake-core,tvandijck/premake-core,bravnsgaard/premake-core,TurkeyMan/premake-core,tvandijck/premake-core,LORgames/premake-core,mendsley/premake-core,Zefiros-Softwar... |
da9fad4752204d2dd1fd698df6d99d972fdd9d95 | src/actions/clean/_clean.lua | src/actions/clean/_clean.lua | --
-- _clean.lua
-- The "clean" action: removes all generated files.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
premake.actions.clean = { }
local clean = premake.actions.clean
local project = premake5.project
--
-- Clean a solution or project specific directory. Uses information in the
--... | --
-- _clean.lua
-- The "clean" action: removes all generated files.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
premake.actions.clean = { }
local clean = premake.actions.clean
local project = premake5.project
--
-- Clean a solution or project specific directory. Uses information in the
--... | Fix clean action | Fix clean action
--HG--
branch : all
| Lua | bsd-3-clause | annulen/premake-dev-rgeary,annulen/premake-dev-rgeary,annulen/premake-dev-rgeary |
3abb134399b143548bb1579ac51e1f8c1420b4d9 | OS/DiskOS/Editors/code.lua | OS/DiskOS/Editors/code.lua | local eapi = select(1,...) --The editor library is provided as an argument
local ce = {} --Code editor
local buffer = {""} --A table containing lines of code
local screenW, screenH = screenSize()
local lume = require("C://Libraries/lume")
local clua = require("C://Libraries/colorize_lua")
local cluacolors = {
text =... | local eapi = select(1,...) --The editor library is provided as an argument
local ce = {} --Code editor
local buffer = {""} --A table containing lines of code
local screenW, screenH = screenSize()
local lume = require("C://Libraries/lume")
local clua = require("C://Libraries/colorize_lua")
local cluacolors = {
text =... | Up, Down, Left, Right, Backspace, better Return, Bugfixes ! | Up, Down, Left, Right, Backspace, better Return, Bugfixes ! | Lua | mit | RamiLego4Game/LIKO-12 |
7cf964c363ad6df4fa8e4f8376a7f8fd116d8c05 | lib/file.lua | lib/file.lua | local Object = require('core').Object
local String = require('string')
local Fs = require('fs')
local Path = require('path')
local Levels = require('./utils').Levels
local Utils = require('./utils')
local function _noop(err)
if err then
error('Logger error: ' .. err.message)
end
end
local FileLogger = ... | local Object = require('core').Object
local String = require('string')
local Fs = require('fs')
local Path = require('path')
local Levels = require('./utils').Levels
local Utils = require('./utils')
local function _noop(err)
if err then
error('Logger error: ' .. err.message)
end
end
local FileLogger = ... | fix async mkdir | fix async mkdir | Lua | mit | gsick/luvit-logger |
0a71272487780612dc905e44912dc7530230a9e9 | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | applications/luci-firewall: some fixes on redirection page | applications/luci-firewall: some fixes on redirection page
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6514 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.