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 |
|---|---|---|---|---|---|---|---|---|---|
6ebcfd9e798db6ea4e2a716fa4c9f972a2fa71ea | frontend/ui/elements/font_settings.lua | frontend/ui/elements/font_settings.lua | local Device = require("device")
local logger = require("logger")
local util = require("util")
local _ = require("gettext")
--[[ Font settings for systems with multiple font dirs ]]--
local LINUX_FONT_PATH = "share/fonts"
local MACOS_FONT_PATH = "Library/fonts"
local function getDir(isUser)
local home = Device.h... | local Device = require("device")
local logger = require("logger")
local util = require("util")
local _ = require("gettext")
--[[ Font settings for systems with multiple font dirs ]]--
local function getDir(isUser)
local home = Device.home_dir
local XDG_DATA_HOME = os.getenv("XDG_DATA_HOME")
local LINUX_F... | [fix, desktop] Use XDG_DATA_HOME to search for fonts (#8521) | [fix, desktop] Use XDG_DATA_HOME to search for fonts (#8521)
Same as <https://github.com/koreader/koreader/pull/8507>. | Lua | agpl-3.0 | NiLuJe/koreader,koreader/koreader,NiLuJe/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader,koreader/koreader,Frenzie/koreader |
c8138daae317febd4f84c1cda00c79b4a95be04f | game/scripts/vscripts/modules/teams/teams.lua | game/scripts/vscripts/modules/teams/teams.lua | Teams = Teams or class({})
Teams.Data = Teams.Data or {
[DOTA_TEAM_GOODGUYS] = {
color = {0, 128, 0},
name = "#DOTA_GoodGuys",
name2 = "#DOTA_GoodGuys_2",
playerColors = {
{51, 117, 255},
{102, 255, 191},
{191, 0, 191},
{243, 240, 11},
{255, 107, 0},
{130, 129, 178}
}
},
[DOTA_TEAM_BADGUY... | Teams = Teams or class({})
Teams.Data = Teams.Data or {
[DOTA_TEAM_GOODGUYS] = {
color = {0, 128, 0},
name = "#DOTA_GoodGuys",
name2 = "#DOTA_GoodGuys_2",
playerColors = {
{51, 117, 255},
{102, 255, 191},
{191, 0, 191},
{243, 240, 11},
{255, 107, 0},
{130, 129, 178}
}
},
[DOTA_TEAM_BADGUY... | Revert "fix(teams): players in unranked modes don't get team" | Revert "fix(teams): players in unranked modes don't get team"
This reverts commit e219400ca783249e80d7926450bbf40bf2769dc0.
| Lua | mit | ark120202/aabs |
4c0c6e635e87d907e7aacc188953e309cb1ceebf | modules/game_viplist/viplist.lua | modules/game_viplist/viplist.lua | vipWindow = nil
vipButton = nil
addVipWindow = nil
function init()
connect(g_game, { onGameEnd = clear,
onAddVip = onAddVip,
onVipStateChange = onVipStateChange })
g_keyboard.bindKeyDown('Ctrl+P', toggle)
vipButton = TopMenu.addRightGameToggleButton('vipListButton', tr(... | vipWindow = nil
vipButton = nil
addVipWindow = nil
function init()
connect(g_game, { onGameEnd = clear,
onAddVip = onAddVip,
onVipStateChange = onVipStateChange })
g_keyboard.bindKeyDown('Ctrl+P', toggle)
vipButton = TopMenu.addRightGameToggleButton('vipListButton', tr(... | Fix Vip List sorting | Fix Vip List sorting
Fixes Vip list sorting issues for both alphabetical sorting and
online/offline sorting. Fixes Issue #169
Tested in 8.61
| Lua | mit | dreamsxin/otclient,gpedro/otclient,Cavitt/otclient_mapgen,dreamsxin/otclient,EvilHero90/otclient,kwketh/otclient,gpedro/otclient,Cavitt/otclient_mapgen,Radseq/otclient,kwketh/otclient,dreamsxin/otclient,gpedro/otclient,EvilHero90/otclient,Radseq/otclient |
c376d34e4fba71855eb2184170b27117b9f49135 | regress/0-fnmatch.lua | regress/0-fnmatch.lua | #!/bin/sh
_=[[
. "${0%/*}/regress.sh"
exec runlua -r5.2 "$0" "$@"
]]
local unix = require"unix"
local regress = require"regress".export".*"
local function files_fnmatch(rootdir, patt)
return coroutine.wrap(function ()
local dir = assert(unix.opendir(rootdir))
for name, type in dir:files("name", "type") do
... | #!/bin/sh
_=[[
. "${0%/*}/regress.sh"
exec runlua -r5.2 "$0" "$@"
]]
local unix = require"unix"
local regress = require"regress".export".*"
local function files_fnmatch(rootdir, patt)
return coroutine.wrap(function ()
local dir = assert(unix.opendir(rootdir))
for name, type in dir:files("name", "type") do
... | fix 0-fnmatch on solaris, which doesn't support a type field for readdir, nor -maxdepth for find utility | fix 0-fnmatch on solaris, which doesn't support a type field for readdir, nor -maxdepth for find utility
| Lua | mit | Redfoxmoon3/lunix,Redfoxmoon3/lunix,wahern/lunix,wahern/lunix |
e2eba69269d737da61ca7ea6cb988ad2b742757b | neovim/ftplugin/python.lua | neovim/ftplugin/python.lua | -- Configure auto formatting using isort and black.
-- Adapted from stylua-nvim:
-- https://github.com/ckipp01/stylua-nvim/blob/main/lua/stylua-nvim.lua
local function buf_get_full_text(bufnr)
local text = table.concat(vim.api.nvim_buf_get_lines(bufnr, 0, -1, true), "\n")
if vim.api.nvim_buf_get_option(bufnr, "eol")... | -- Configure auto formatting using isort and black.
-- Adapted from stylua-nvim:
-- https://github.com/ckipp01/stylua-nvim/blob/main/lua/stylua-nvim.lua
local function buf_get_full_text(bufnr)
local text = table.concat(vim.api.nvim_buf_get_lines(bufnr, 0, -1, true), "\n")
if vim.api.nvim_buf_get_option(bufnr, "eol")... | Fix Python format on save when no changes | Fix Python format on save when no changes
| Lua | mit | epwalsh/dotfiles,epwalsh/dotfiles |
adcb1bc4935043424989e9367e95825af9e1941e | AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua | AceGUI-3.0/widgets/AceGUIContainer-ScrollFrame.lua | --[[-----------------------------------------------------------------------------
ScrollFrame Container
Plain container that scrolls its content and doesn't grow in height.
-------------------------------------------------------------------------------]]
local Type, Version = "ScrollFrame", 22
local AceGUI = LibStub an... | --[[-----------------------------------------------------------------------------
ScrollFrame Container
Plain container that scrolls its content and doesn't grow in height.
-------------------------------------------------------------------------------]]
local Type, Version = "ScrollFrame", 22
local AceGUI = LibStub an... | AceGUI-3.0: Schedule a FixScroll instead of running it immediately to resolve a load-time layout issue | AceGUI-3.0: Schedule a FixScroll instead of running it immediately to resolve a load-time layout issue
git-svn-id: e768786be8df873dac9515156656ebbdc6d77160@1058 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
0374d8bf1038849efa504afaab9d129e8e3cc0b9 | Bilinear.lua | Bilinear.lua | local Bilinear, parent = torch.class('nn.Bilinear', 'nn.Module')
local function isint(x) return type(x) == 'number' and x == math.floor(x) end
function Bilinear:__assertInput(input)
assert(input and type(input) == 'table' and #input == 2,
'input should be a table containing two data Tensors')
assert(input[... | local Bilinear, parent = torch.class('nn.Bilinear', 'nn.Module')
local function isint(x) return type(x) == 'number' and x == math.floor(x) end
function Bilinear:__assertInput(input)
assert(input and type(input) == 'table' and #input == 2,
'input should be a table containing two data Tensors')
assert(input[... | Fix unclosed if statement. | Fix unclosed if statement. | Lua | bsd-3-clause | sagarwaghmare69/nn,joeyhng/nn,eriche2016/nn,apaszke/nn,nicholas-leonard/nn,colesbury/nn |
84039ae1be911cc0424a5262706cc48f4ec2a380 | src/websocket/server_ev.lua | src/websocket/server_ev.lua |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tconcat = table.concat
local tinsert = table.insert
local ev
local loop
local clients = {}
local client = function(sock,protocol)
assert(sock)
sock:set... |
local socket = require'socket'
local tools = require'websocket.tools'
local frame = require'websocket.frame'
local handshake = require'websocket.handshake'
local tconcat = table.concat
local tinsert = table.insert
local ev
local loop
local clients = {}
local client = function(sock,protocol)
assert(sock)
sock:set... | fix overwrite private on_message | fix overwrite private on_message
| Lua | mit | lipp/lua-websockets,lipp/lua-websockets,KSDaemon/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,OptimusLime/lua-websockets,lipp/lua-websockets,OptimusLime/lua-websockets,enginix/lua-websockets,KSDaemon/lua-websockets,KSDaemon/lua-websockets,enginix/lua-websockets |
623e14c7ffa7e265da117fd96554caf589969a15 | plugins/mod_tls.lua | plugins/mod_tls.lua | -- Prosody IM v0.2
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your o... | -- Prosody IM v0.2
-- Copyright (C) 2008 Matthew Wild
-- Copyright (C) 2008 Waqas Hussain
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your o... | Remove a FIXME from mod_tls | Remove a FIXME from mod_tls
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
7f0ceff0741aa1fccdd60523d4d3788cfdae43a8 | modules/self-test/test_runner.lua | modules/self-test/test_runner.lua | ---
-- self-test/test_runner.lua
--
-- Execute unit tests and test suites.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
local _ = {}
function m.runTest(test)
local scopedTestCall
if test.testFunction then
... | ---
-- self-test/test_runner.lua
--
-- Execute unit tests and test suites.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
local _ = {}
function m.runTest(test)
local scopedTestCall
if test.testFunction then
... | Fix crashing bug when `--test-only` argument is used to select a single ttest | Fix crashing bug when `--test-only` argument is used to select a single ttest
| Lua | bsd-3-clause | premake/premake-core,LORgames/premake-core,jstewart-amd/premake-core,premake/premake-core,aleksijuvani/premake-core,soundsrc/premake-core,lizh06/premake-core,xriss/premake-core,Blizzard/premake-core,mendsley/premake-core,bravnsgaard/premake-core,resetnow/premake-core,TurkeyMan/premake-core,soundsrc/premake-core,soundsr... |
ee3942c2f5aeca2f7feb5fe1e566cdbb642e1b69 | sslobby/gamemode/minigames/deathmatch/init.lua | sslobby/gamemode/minigames/deathmatch/init.lua | MINIGAME.Time = 60
MINIGAME.Weapons = {"weapon_crowbar", "weapon_frag", "weapon_smg1", "weapon_pistol", "weapon_shotgun"}
---------------------------------------------------------
--
---------------------------------------------------------
function MINIGAME:Start()
print(self.Name .. " has started.")
self.BaseCl... | MINIGAME.Time = 60
MINIGAME.Weapons = {"weapon_crowbar", "weapon_frag", "weapon_smg1", "weapon_pistol", "weapon_shotgun"}
---------------------------------------------------------
--
---------------------------------------------------------
function MINIGAME:Start()
print(self.Name .. " has started.")
self.BaseCl... | Fixed an error with take damage (entities not both being players) | Fixed an error with take damage (entities not both being players) | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
a8a201ca77256b52930a424f7ac66f997db2dc5e | lua/entities/gmod_wire_grabber.lua | lua/entities/gmod_wire_grabber.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Grabber"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Grabber"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Grabber"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Grabber"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | Fix grabber re-enabling gravity for props (#2251) | Fix grabber re-enabling gravity for props (#2251)
Fixes #2245 | Lua | apache-2.0 | dvdvideo1234/wire,wiremod/wire,Grocel/wire |
2798c5a48d0c1a1faf19cc24933aa8f1202f7cf8 | profiles/car.lua | profiles/car.lua | -- Begin of globals
bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["d... | -- Begin of globals
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["no"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["motorcar"] = true, ["motor_vehicle"] = true, ["vehicle"] = true, ["permissive"] = true, ["designated"] = ... | Fixes issue #461 and cucumber tests | Fixes issue #461 and cucumber tests | Lua | bsd-2-clause | felixguendling/osrm-backend,neilbu/osrm-backend,yuryleb/osrm-backend,bjtaylor1/osrm-backend,neilbu/osrm-backend,bjtaylor1/Project-OSRM-Old,ibikecph/osrm-backend,bjtaylor1/osrm-backend,raymond0/osrm-backend,beemogmbh/osrm-backend,Conggge/osrm-backend,chaupow/osrm-backend,alex85k/Project-OSRM,antoinegiret/osrm-backend,ag... |
f6204fbd359838a8b89d1490482160cf0017b0d0 | overlay/sdk/hi-linux/rules.lua | overlay/sdk/hi-linux/rules.lua | -- HiSilicon Linux SDK
package { 'make', 'host',
source = 'make-3.81.tar.bz2'
}
package { 'hi-kernel' }
package { 'hi-sdk', 'target',
{ 'tools' },
{ 'prepare',
{ 'hi-kernel', 'unpack' }
},
{ 'hiboot' },
{ 'linux' },
{ 'rootfs' },
{ 'common' },
{ 'msp' ... | -- HiSilicon Linux SDK
package { 'make', 'host',
source = 'make-3.81.tar.bz2'
}
package { 'hi-kernel' }
package { 'hi-sdk', 'target',
{ 'tools' },
{ 'prepare',
{ 'hi-kernel', 'unpack' }
},
{ 'hiboot' },
{ 'linux' },
{ 'rootfs' },
{ 'common' },
{ 'msp' ... | Fix hi-sdk target dependencies | Fix hi-sdk target dependencies
| Lua | mit | bazurbat/jagen |
affcb2cbc5174641cc9896a0231c5970937f7090 | gamemode/zombies/class_default.lua | gamemode/zombies/class_default.lua | NPC.Class = ""
NPC.Name = ""
NPC.Description = ""
NPC.Icon = ""
NPC.Flag = 0
NPC.Cost = 0
NPC.PopCost = 0
NPC.SortIndex = 0
NPC.Hidden = true
NPC.Health = 0
NPC.Model = {}
if SERVER then
NPC.SpawnFlags = SF_NPC_LONG_RANGE + SF_NPC_FADE_CORPSE + SF_NPC_ALWAYSTHINK + SF_NPC_NO_PLAYER_PUSHAWAY
NPC.Capabilities = nil
... | NPC.Class = ""
NPC.Name = ""
NPC.Description = ""
NPC.Icon = ""
NPC.Flag = 0
NPC.Cost = 0
NPC.PopCost = 0
NPC.SortIndex = 0
NPC.Hidden = true
NPC.Health = 0
NPC.Model = {}
if SERVER then
NPC.SpawnFlags = SF_NPC_LONG_RANGE + SF_NPC_FADE_CORPSE + SF_NPC_ALWAYSTHINK + SF_NPC_NO_PLAYER_PUSHAWAY
NPC.Capabilities = nil
... | Fixed nil error in NPC:OnTakeDamage | Fixed nil error in NPC:OnTakeDamage
| Lua | apache-2.0 | ForrestMarkX/glua-ZombieMaster |
3aa6964e198ab9d6a3373b9c25be0bada7204c3a | scripts/tundra/environment.lua | scripts/tundra/environment.lua | module(..., package.seeall)
local util = require 'tundra.util'
local path = require 'tundra.path'
local depgraph = require 'tundra.depgraph'
local nenv = require 'tundra.environment.native'
local os = require 'os'
local global_setup = {}
--[==[
The environment is a holder for variables and their a... | module(..., package.seeall)
local util = require 'tundra.util'
local path = require 'tundra.path'
local depgraph = require 'tundra.depgraph'
local nenv = require 'tundra.environment.native'
local os = require 'os'
local global_setup = {}
--[==[
The environment is a holder for variables and their a... | Fixed env:has_key() didn't take parent into account | Fixed env:has_key() didn't take parent into account
| Lua | mit | deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra |
490bb163f506a5779c4c8c2d0cc4a2330bc62f19 | mod_muc_intercom/mod_muc_intercom.lua | mod_muc_intercom/mod_muc_intercom.lua | -- Relay messages between rooms
-- By Kim Alvefur <zash@zash.se>
local host_session = prosody.hosts[module.host];
local st_msg = require "util.stanza".message;
local jid = require "util.jid";
function check_message(data)
local origin, stanza = data.origin, data.stanza;
local muc_rooms = host_session.muc and host_se... | -- Relay messages between rooms
-- By Kim Alvefur <zash@zash.se>
local host_session = prosody.hosts[module.host];
local st_msg = require "util.stanza".message;
local jid = require "util.jid";
function check_message(data)
local origin, stanza = data.origin, data.stanza;
local muc_rooms = host_session.muc and host_se... | mod_muc_intercom: Fix traceback on topic changes | mod_muc_intercom: Fix traceback on topic changes
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
5b98493ffc58dda356f953b934007f13477a254f | cnnmrf.lua | cnnmrf.lua | -- -*- coding: utf-8 -*-
require 'torch'
require 'paths'
paths.dofile('mylib/helper.lua')
-----------------------------------------
-- Parameters
-----------------------------------------
cmd = torch.CmdLine()
cmd:option('-content_name', 'potrait1', "The content image located in folder 'data/content'")
cmd:option... | -- -*- coding: utf-8 -*-
require 'torch'
require 'paths'
paths.dofile('mylib/helper.lua')
--adapted from http://lua-users.org/wiki/SplitJoin
function split(str, pat, cast_to_func)
local t = {} -- NOTE: use {n = 0} in Lua-5.0
local fpat = "(.-)" .. pat
local last_end = 1
local s, e, cap = str:find... | fixed multi-valued options | fixed multi-valued options
| Lua | mit | chuanli11/CNNMRF |
77e1d3810aa0a5315f2f78b18308bce25a2e0816 | Extensions/subsets_and_batches.lua | Extensions/subsets_and_batches.lua | local params = {...}
local Dataframe = params[1]
local argcheck = require "argcheck"
local doc = require "argcheck.doc"
doc[[
## Subsets and batches
The core idea behind loading batches and is that you split your dataset using the
`create_subsets` function where you can also choose the sampler that you want. The
sa... | local params = {...}
local Dataframe = params[1]
local argcheck = require "argcheck"
local doc = require "argcheck.doc"
doc[[
## Subsets and batches
The core idea behind loading batches and is that you split your dataset using the
`create_subsets` function where you can also choose the sampler that you want. The
sa... | Logical and naming mistakes fixed | Logical and naming mistakes fixed
| Lua | mit | AlexMili/torch-dataframe |
9e887a32d3fced6e45ca3a86bbac1cb58755e84b | lua/entities/gmod_wire_grabber.lua | lua/entities/gmod_wire_grabber.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Grabber"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Grabber"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Grabber"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Grabber"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | Add Range input for grabber | Add Range input for grabber
Basically same as for transferer and cd ray. But also reset grabber on change beam (for prevent possible "bugs"). | Lua | apache-2.0 | wiremod/wire,garrysmodlua/wire,sammyt291/wire,thegrb93/wire,dvdvideo1234/wire,Grocel/wire,NezzKryptic/Wire |
0b1ad27c7ac762e804ad3ccc7631f9d6dcea6bbc | plugins/lua/user_modules/algo/crc32.lua | plugins/lua/user_modules/algo/crc32.lua |
algo = algo or {};
function algo.CRC32(stuff)
local Polynomial = 0xEDB88320;
local lookup = {};
for i = 0, 0xFF do
local crc = i;
for j = 0, 7 do
crc = (crc >> 1) ~ ((crc & 1) * Polynomial);
end
lookup[i] = crc;
end
local function dw(x) return x & 0xFFFFFFFF; end
local poly = 0xEDB88320;
local crc ... |
algo = algo or {};
local Polynomial = 0xEDB88320;
local lookup = {};
for i = 0, 0xFF do
local crc = i;
for j = 0, 7 do
crc = (crc >> 1) ~ ((crc & 1) * Polynomial);
end
lookup[i] = crc;
end
local function dw(x) return x & 0xFFFFFFFF; end
function algo.CRC32(stuff)
stuff = tostring(stuff);
local crc = dw(~0... | Algorithm fixes | Algorithm fixes | Lua | cc0-1.0 | SwadicalRag/hash.js,meepdarknessmeep/hash.js |
20392d6d3e632562b910609e7afdc6a9cfa143b7 | packages/nn/LookupTable.lua | packages/nn/LookupTable.lua | local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module')
LookupTable.__version = 2
function LookupTable:__init(nIndex, ...)
parent.__init(self)
if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then
local size = select(1, ...)
self.size = torch.LongStorage(#size + 1)
... | local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module')
LookupTable.__version = 2
function LookupTable:__init(nIndex, ...)
parent.__init(self)
if select('#', ...) == 1 and type(select(1, ...)) ~= "number" then
local size = select(1, ...)
self.size = torch.LongStorage(#size + 1)
... | bug corrections in LookupTable | bug corrections in LookupTable
| Lua | bsd-3-clause | soumith/TH,soumith/TH,soumith/TH,soumith/TH |
053dafd8be1cd0a90712dd5522b0062a6f8a336f | 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) and (isPedInVehicle(source)==false) then
if (weapons[... | 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[... | fixed an issue with weapons showing weapons you don't have | fixed an issue with weapons showing weapons you don't have
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1925 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
dbac3687ecf660ec0cb33915eea63ef560a31db5 | modules/lua/init.lua | modules/lua/init.lua | -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- The lua module.
-- It provides utilities for editing Lua code.
-- User tags are loaded from _USERHOME/modules/lua/tags and user apis are loaded
-- from _USERHOME/modules/lua/api.
module('_m.lua', package.seeall)
-- Markdown:
-- ## Key Com... | -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- The lua module.
-- It provides utilities for editing Lua code.
-- User tags are loaded from _USERHOME/modules/lua/tags and user apis are loaded
-- from _USERHOME/modules/lua/api.
module('_m.lua', package.seeall)
-- Markdown:
-- ## Key Com... | Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua | Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
6eeac33ad126152ea9c6e1985b670676d8e5b49e | frontend/ui/widget/filechooser.lua | frontend/ui/widget/filechooser.lua | local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Menu = require("ui/widget/menu")
local Screen = require("device").screen
local Device = require("device")
local util = require("ffi/util")
local _ = require("gettext")
local ffi = require("ffi")
ffi.cdef[[
int strcoll (const cha... | local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Menu = require("ui/widget/menu")
local Screen = require("device").screen
local Device = require("device")
local util = require("ffi/util")
local _ = require("gettext")
local ffi = require("ffi")
ffi.cdef[[
int strcoll (const cha... | *.sdr folders are not excluded in folder item count Bug #1966 | *.sdr folders are not excluded in folder item count
Bug #1966
| Lua | agpl-3.0 | pazos/koreader,NickSavage/koreader,Frenzie/koreader,frankyifei/koreader,chihyang/koreader,Frenzie/koreader,NiLuJe/koreader,koreader/koreader,NiLuJe/koreader,mwoz123/koreader,poire-z/koreader,Markismus/koreader,houqp/koreader,koreader/koreader,lgeek/koreader,poire-z/koreader,mihailim/koreader,apletnev/koreader,robert00s... |
29e80b6cb7a07336f48992d2464e9d4c92ded22c | spec/log_spec.lua | spec/log_spec.lua | local log = require 'lua-lsp.log'
describe("log.fmt", function()
it("handles %_", function()
assert.equal("strong",
log.fmt("%_", "strong"))
assert.equal("nil",
log.fmt("%_", nil))
local t1, t2 = {}, {}
assert.equal(tostring(t1) .. " " .. tostring(t2),
log.fmt("%_ %_", t1, t2))
end)
it("handles %t",... | -- luacheck: ignore 122
local log = require 'lua-lsp.log'
describe("log.fmt", function()
it("handles %_", function()
assert.equal("strong",
log.fmt("%_", "strong"))
assert.equal("nil",
log.fmt("%_", nil))
local t1, t2 = {}, {}
assert.equal(tostring(t1) .. " " .. tostring(t2),
log.fmt("%_ %_", t1, t2))... | Fix luacheck warnings | Fix luacheck warnings
| Lua | mit | Alloyed/lua-lsp |
b5861464c0e1afb0fbee62c308a7b21ab6d662df | lua/entities/gmod_wire_forcer.lua | lua/entities/gmod_wire_forcer.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Forcer"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Forcer"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
self:NetworkVar( "Bool", 0, "ShowBeam" )
self:NetworkVar( "Bool", 1, "BeamHighlight"... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Forcer"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Forcer"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
self:NetworkVar( "Bool", 0, "ShowBeam" )
self:NetworkVar( "Bool", 1, "BeamHighlight"... | Fix GravGunPunt hook calling without a player (#1298) | Fix GravGunPunt hook calling without a player (#1298)
Fix invalid hook call | Lua | apache-2.0 | NezzKryptic/Wire,wiremod/wire,garrysmodlua/wire,sammyt291/wire,Grocel/wire,bigdogmat/wire,dvdvideo1234/wire,thegrb93/wire |
555315b38814983dfaa32da41dbeec3c27b04d0b | mod_host_guard/mod_host_guard.lua | mod_host_guard/mod_host_guard.lua | -- (C) 2011, Marco Cirillo (LW.Org)
-- Block or restrict by blacklist remote access to local components or hosts.
module:set_global()
local guard_blockall = module:get_option_set("host_guard_blockall", {})
local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {})
local guard_protect = module:g... | -- (C) 2011, Marco Cirillo (LW.Org)
-- Block or restrict by blacklist remote access to local components or hosts.
module:set_global()
local guard_blockall = module:get_option_set("host_guard_blockall", {})
local guard_ball_wl = module:get_option_set("host_guard_blockall_exceptions", {})
local guard_protect = module:g... | mod_host_guard: fixed plugin, minor code refactor. | mod_host_guard: fixed plugin, minor code refactor.
| Lua | mit | heysion/prosody-modules,syntafin/prosody-modules,cryptotoad/prosody-modules,apung/prosody-modules,either1/prosody-modules,mardraze/prosody-modules,vfedoroff/prosody-modules,BurmistrovJ/prosody-modules,jkprg/prosody-modules,mmusial/prosody-modules,cryptotoad/prosody-modules,apung/prosody-modules,NSAKEY/prosody-modules,b... |
dbf4fbb3e7f2c61b41fccea01c1263b1511b110b | game/scripts/vscripts/modules/custom_abilities/ability_shop.lua | game/scripts/vscripts/modules/custom_abilities/ability_shop.lua | function CustomAbilities:PostAbilityShopData()
CustomGameEventManager:RegisterListener("ability_shop_buy", function(_, data)
CustomAbilities:OnAbilityBuy(data.PlayerID, data.ability)
end)
CustomGameEventManager:RegisterListener("ability_shop_sell", Dynamic_Wrap(CustomAbilities, "OnAbilitySell"))
CustomGameEventMa... | function CustomAbilities:PostAbilityShopData()
CustomGameEventManager:RegisterListener("ability_shop_buy", function(_, data)
CustomAbilities:OnAbilityBuy(data.PlayerID, data.ability)
end)
CustomGameEventManager:RegisterListener("ability_shop_sell", Dynamic_Wrap(CustomAbilities, "OnAbilitySell"))
CustomGameEventMa... | fix(ability_shop): quick ability purchasing bypasses combination bans | fix(ability_shop): quick ability purchasing bypasses combination bans
Fixes #387.
| Lua | mit | ark120202/aabs |
feefc600ed052207a9cef1f331abf2eedea35a66 | modules/luci-mod-rpc/luasrc/controller/rpc.lua | modules/luci-mod-rpc/luasrc/controller/rpc.lua | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local require = require
local pairs = pairs
local print = print
local pcall = pcall
local table = table
module "luci.controller.rpc"
function index()
local ... | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local require = require
local pairs = pairs
local print = print
local pcall = pcall
local table = table
local type = type
local tonumber = tonumber
module "lu... | luci-mod-rpc: rework authentication and session handling | luci-mod-rpc: rework authentication and session handling
- Use the ubus session.login procedure to authenticate credentials
- Fix testing of allowed usernames
- Support authentication via sysauth cookie
Fixes #1300, #1700, #1711
Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
| Lua | apache-2.0 | nmav/luci,kuoruan/luci,nmav/luci,chris5560/openwrt-luci,remakeelectric/luci,openwrt/luci,kuoruan/luci,tobiaswaldvogel/luci,artynet/luci,rogerpueyo/luci,kuoruan/luci,openwrt/luci,remakeelectric/luci,981213/luci-1,hnyman/luci,nmav/luci,kuoruan/luci,lbthomsen/openwrt-luci,tobiaswaldvogel/luci,Noltari/luci,nmav/luci,remake... |
0e71278f1616a55e4e0a3b719abbe978a4ad71af | src/lua-factory/sources/grl-metrolyrics.lua | src/lua-factory/sources/grl-metrolyrics.lua | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | lua-factory: port grl-metrolyrics.lua to the new lua system | lua-factory: port grl-metrolyrics.lua to the new lua system
https://bugzilla.gnome.org/show_bug.cgi?id=753141
Acked-by: Victor Toso <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@victortoso.com>
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins |
163b0fd06837ffca7be334bbafdaf15557f91368 | lua/entities/gmod_wire_user.lua | lua/entities/gmod_wire_user.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire User"
ENT.WireDebugName = "User"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveTyp... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire User"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "User"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsIni... | Fixed User entity beam appearing behind props. | Fixed User entity beam appearing behind props.
Fixed User entity beam appearing behind props by adding in missing
RenderGroup.
| Lua | apache-2.0 | CaptainPRICE/wire,Python1320/wire,bigdogmat/wire,wiremod/wire,notcake/wire,plinkopenguin/wiremod,Grocel/wire,dvdvideo1234/wire,mitterdoo/wire,garrysmodlua/wire,rafradek/wire,NezzKryptic/Wire,sammyt291/wire,immibis/wiremod,mms92/wire,thegrb93/wire |
380d62363b04be3a52cf61b4fe8b2b76a538c59f | spec/proxy_spec.lua | spec/proxy_spec.lua | local configuration_store = require 'configuration_store'
describe('Proxy', function()
local configuration, proxy
before_each(function()
configuration = configuration_store.new()
proxy = require('proxy').new(configuration)
end)
it('has access function', function()
assert.truthy(proxy.access)
... | local configuration_store = require 'configuration_store'
describe('Proxy', function()
local configuration, proxy
before_each(function()
configuration = configuration_store.new()
proxy = require('proxy').new(configuration)
end)
it('has access function', function()
assert.truthy(proxy.access)
... | [busted] fix possible nil values | [busted] fix possible nil values
| Lua | mit | 3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway |
f4a8cb6534c9a0564ecbb6a87b3bde9002276da9 | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
l... | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[\\*\\(\\)\\\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
l... | mod_auth_ldap: Fix issue with some versions of LuaLDAP | mod_auth_ldap: Fix issue with some versions of LuaLDAP
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
02a8c732d2b3c81584d9a8e7ffba03642efa77ff | testserver/content/areas.lua | testserver/content/areas.lua | -- here, areas can be added
require("base.polygons");
module("content.areas", package.seeall);
function Init()
if AreaList then
return;
end
AreaList = {};
--[[ Example: I want to add the area "test area", which comprises a triangle on level 0 and a rectangle on level 1 and 2.
AddArea("test a... | -- here, areas can be added
require("base.polygons");
module("content.areas", package.seeall);
function Init()
if AreaList then
return;
end
AreaList = {};
--[[ Example: I want to add the area "test area", which comprises a triangle on level 0 and a rectangle on level 1 and 2.
AddArea("test a... | AreaList nil value fix | AreaList nil value fix
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content |
bb1527020a18c9e377608ea0a446ffb6cd065201 | libs/httpd/luasrc/httpd/handler/luci.lua | libs/httpd/luasrc/httpd/handler/luci.lua | --[[
HTTP server implementation for LuCI - luci handler
(c) 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.... | --[[
HTTP server implementation for LuCI - luci handler
(c) 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.... | * Fixed last commit | * Fixed last commit
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@2453 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ch3n2k/luci,jschmidlapp/luci,phi-psi/luci,saraedum/luci-packages-old,saraedum/luci-packages-old,projectbismark/luci-bismark,Flexibity/luci,saraedum/luci-packages-old,eugenesan/openwrt-luci,gwlim/luci,Flexibity/luci,Flexibity/luci,8devices/carambola2-luci,saraedum/luci-packages-old,8devices/carambola2-luci,Flexibity/luc... |
32f22bea121fd4db98351cdd8e7b2444fa165255 | mod/mpi/config/scripts/run_vifm.lua | mod/mpi/config/scripts/run_vifm.lua | local mp_utils = require('mp.utils')
function run_vifm()
local path = mp.get_property('path')
local running = mp_utils.subprocess(
{args = {'pidof', 'vifm'},
cancellable=false,
})['status'] == 0
local args
if running then
args = {'vifm'}
vifm_server_name = os.geten... | local mp_utils = require('mp.utils')
local last_known_path = nil
function playback_started(event)
last_known_path = mp.get_property('path')
end
function run_vifm()
local running = mp_utils.subprocess({
args = {'pidof', 'vifm'},
cancellable=false,
})['status'] == 0
local args
if r... | mod/mpi: fix returning to vifm | mod/mpi: fix returning to vifm
| Lua | mit | rr-/dotfiles,rr-/dotfiles,rr-/dotfiles |
b4c4545031f5b34b0aa48d18fa59785c20e57f82 | src/QuikSharp/lua/qscallbacks.lua | src/QuikSharp/lua/qscallbacks.lua | --~ Copyright Ⓒ 2015 Victor Baybekov
package.path = package.path..";"..".\\?.lua;"..".\\?.luac"
package.cpath = package.cpath..";"..'.\\clibs\\?.dll'
local util = require("qsutils")
local qscallbacks = {}
--- Мы сохраняем пропущенные значения только если скрипт работает, но соединение прервалось
-- Если скрипт оста... | --~ Copyright Ⓒ 2015 Victor Baybekov
package.path = package.path..";"..".\\?.lua;"..".\\?.luac"
package.cpath = package.cpath..";"..'.\\clibs\\?.dll'
local util = require("qsutils")
local qscallbacks = {}
--- Мы сохраняем пропущенные значения только если скрипт работает, но соединение прервалось
-- Если скрипт оста... | Lua error was not sent to client as "msg" was global and "msg" was null. Fixed. | Lua error was not sent to client as "msg" was global and "msg" was null. Fixed.
| Lua | apache-2.0 | buybackoff/QuikSharp,nubick/QuikSharp,finsight/QuikSharp,sm00vik/QuikSharp |
15ed55d68aab1e5a2e40d9d5bf120e3d0db53945 | src/api-umbrella/cli/reload.lua | src/api-umbrella/cli/reload.lua | local path = require "pl.path"
local run_command = require "api-umbrella.utils.run_command"
local setup = require "api-umbrella.cli.setup"
local status = require "api-umbrella.cli.status"
local function reload_perp(perp_base)
local _, _, err = run_command("perphup " .. perp_base)
if err then
print("Failed to r... | local path = require "pl.path"
local run_command = require "api-umbrella.utils.run_command"
local setup = require "api-umbrella.cli.setup"
local status = require "api-umbrella.cli.status"
local function reload_perp(perp_base)
local _, _, err = run_command("perphup " .. perp_base)
if err then
print("Failed to r... | Reload rails apps when sending reload signal. | Reload rails apps when sending reload signal.
Also fix reload command so that it only reloads the appropriate services
depending on what's enabled on the server.
| Lua | mit | apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella |
e2d2f25027ea5acb3f9caff47e2919f9577e6318 | src/adorneeutils/src/Shared/AdorneeUtils.lua | src/adorneeutils/src/Shared/AdorneeUtils.lua | ---
-- @module AdorneeUtils
-- @author Quenty
local AdorneeUtils = {}
function AdorneeUtils.getCenter(adornee)
assert(typeof(adornee) == "Instance", "Adornee must by of type 'Instance'")
if adornee:IsA("BasePart") then
return adornee.Position
elseif adornee:IsA("Model") then
return adornee:GetBoundingBox().p
... | ---
-- @module AdorneeUtils
-- @author Quenty
local AdorneeUtils = {}
function AdorneeUtils.getCenter(adornee)
assert(typeof(adornee) == "Instance", "Adornee must by of type 'Instance'")
if adornee:IsA("BasePart") then
return adornee.Position
elseif adornee:IsA("Model") then
return adornee:GetBoundingBox().p
... | fix: Add attachment for bounding box in adornee utils | fix: Add attachment for bounding box in adornee utils
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
1a333ee8ee6675c64a4a32075f44a8546795b605 | main.lua | main.lua | io.stdout:setvbuf("no")
require("api")
function love.mousepressed(x,y,button,istouch)
local x,y = _ScreenToLiko(x,y) if x < 0 or x > 192 or y < 0 or y > 128 then return end
_auto_mpress(x,y,button,istouch)
end
function love.mousemoved(x,y,dx,dy,istouch)
local x, y = _ScreenToLiko(x,y) if x < 0 or x > 192 or y < 0... | io.stdout:setvbuf("no")
love.graphics.setDefaultFilter("nearest")
require("api")
function love.mousepressed(x,y,button,istouch)
local x,y = _ScreenToLiko(x,y) if x < 0 or x > 192 or y < 0 or y > 128 then return end
_auto_mpress(x,y,button,istouch)
end
function love.mousemoved(x,y,dx,dy,istouch)
local x, y = _Scre... | Fixed editorsheet scalling being leanier | Fixed editorsheet scalling being leanier | Lua | mit | RamiLego4Game/LIKO-12 |
b6306b14a96c214ebd04f88c9f18d2f9a5660478 | mod_webpresence/mod_webpresence.lua | mod_webpresence/mod_webpresence.lua | module:depends("http");
local jid_split = require "util.jid".prepped_split;
local function require_resource(name)
local icon_path = module:get_option_string("presence_icons", "icons");
local f, err = module:load_resource(icon_path.."/"..name);
if f then
return f:read("*a");
end
module:log("warn", "Failed to o... | module:depends("http");
local jid_split = require "util.jid".prepped_split;
local b64 = require "util.encodings".base64.encode;
local sha1 = require "util.hashes".sha1;
local function require_resource(name)
local icon_path = module:get_option_string("presence_icons", "icons");
local f, err = module:load_resource(i... | mod_webpresence: fixed text notation, added html, added status message output | mod_webpresence: fixed text notation, added html, added status message output
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
a8525e575bd56cce7a6a635cc3e0f827593f5e11 | packages/pullquote.lua | packages/pullquote.lua | SILE.require("packages/color")
SILE.require("packages/raiselower")
SILE.require("packages/rebox")
SILE.registerCommand("pullquote:font", function (_, _)
end, "The font chosen for the pullquote environment")
SILE.registerCommand("pullquote:author-font", function (_, _)
SILE.settings.set("font.style", "italic")
end, ... | SILE.require("packages/color")
SILE.require("packages/raiselower")
SILE.require("packages/rebox")
SILE.registerCommand("pullquote:font", function (_, _)
end, "The font chosen for the pullquote environment")
SILE.registerCommand("pullquote:author-font", function (_, _)
SILE.settings.set("font.style", "italic")
end, ... | fix(packages): Fix indentation of second paragraph in pullquotes | fix(packages): Fix indentation of second paragraph in pullquotes
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
84774f812cf76569248f383d09e7baab42922bbe | logout-menu-widget/logout-menu.lua | logout-menu-widget/logout-menu.lua | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | [logout-menu] luacheck fix | [logout-menu] luacheck fix
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
5e017be9ffe280bc89a65306ccb09a8a0139098d | lua/philosophers.lua | lua/philosophers.lua | local Cosy = require "cosy.helper"
local function add (model)
model.number = model.number () + 1
local number = model.number ()
print ("Adding philosopher ${number}." % {
number = number
})
local name = "#${n}" % { n = number }
local next_name = "#${n}" % { n = 1 }
-- Update all positions:
... | local Cosy = require "cosy"
--[[
Cosy.configure_server ("cosyverif.io", {
www = "www.cosyverif.io",
rest = "rest.cosyverif.io",
websocket = "ws.cosyverif.io",
username = "alban",
password = "toto",
})
--]]
local model = Cosy.resource ("cosyverif.io/philosophers")
model.number = 0
-- Graph type... | Fix philosophers script. | Fix philosophers script.
| Lua | mit | CosyVerif/webclient,CosyVerif/webclient |
f672a9d10bb33617a4c9140abeaf6ba7fcc8f512 | sessions.lua | sessions.lua | local check_type = require("textadept-nim.utils").check_type
local errortips = require("textadept-nim.errortips")
local parse_errors = errortips.parse_errors
local error_handler = errortips.error_handler
local get_project = require("textadept-nim.project").detect_project
local consts = require("textadept-nim.constants"... | local check_type = require("textadept-nim.utils").check_type
local errortips = require("textadept-nim.errortips")
local parse_errors = errortips.parse_errors
local error_handler = errortips.error_handler
local get_project = require("textadept-nim.project").detect_project
local consts = require("textadept-nim.constants"... | Fixes spawn command for textadept 10.2+ | Fixes spawn command for textadept 10.2+
| Lua | mit | xomachine/textadept-nim |
1e17e4c29153e13cd2edfbf2f7539bf8a1e86e3d | frontend/ui/widget/toggleswitch.lua | frontend/ui/widget/toggleswitch.lua | local TextWidget = require("ui/widget/textwidget")
local InputContainer = require("ui/widget/container/inputcontainer")
local FrameContainer = require("ui/widget/container/framecontainer")
local CenterContainer = require("ui/widget/container/centercontainer")
local HorizontalGroup = require("ui/widget/horizontalgroup")... | local TextWidget = require("ui/widget/textwidget")
local InputContainer = require("ui/widget/container/inputcontainer")
local FrameContainer = require("ui/widget/container/framecontainer")
local CenterContainer = require("ui/widget/container/centercontainer")
local HorizontalGroup = require("ui/widget/horizontalgroup")... | Fix crash when tapping on toggleswitch left or bottom borders (#3181) | Fix crash when tapping on toggleswitch left or bottom borders (#3181)
| Lua | agpl-3.0 | koreader/koreader,houqp/koreader,Frenzie/koreader,koreader/koreader,mihailim/koreader,lgeek/koreader,apletnev/koreader,pazos/koreader,Markismus/koreader,mwoz123/koreader,poire-z/koreader,poire-z/koreader,Frenzie/koreader,Hzj-jie/koreader,NiLuJe/koreader,NiLuJe/koreader |
777a935d0b1c81a8f96de3a57ac94eeca9dae54e | examples/premake5.lua | examples/premake5.lua | require "android_studio"
dofile "../tools/premake/options.lua"
dofile "../tools/premake/globals.lua"
dofile "../tools/premake/app_template.lua"
-- Solution
solution "examples"
location ("build/" .. platform_dir )
configurations { "Debug", "Release" }
startproject "empty_project"
buildoptions { build_cmd }
linko... | if _ACTION == "android-studio" then
require "android_studio"
end
dofile "../tools/premake/options.lua"
dofile "../tools/premake/globals.lua"
dofile "../tools/premake/app_template.lua"
-- Solution
solution "examples"
location ("build/" .. platform_dir )
configurations { "Debug", "Release" }
startproject "empty_pr... | fix win32 ci | fix win32 ci
| Lua | mit | polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech,polymonster/pmtech |
0a1ad0a4b5a4f9fe0ff232a5d714ed28fd391ac7 | shared/basicauth.lua | shared/basicauth.lua | require 'stringutil'
-- Notice that the namespace for the module matches the module name - i.e. basicauth
-- When we use it within the code it is desirable to do:
-- basicauth = require 'basicauth'
-- Since this keeps the name of the module very consistent.
-- Basic authentication is part of the HTTP protocol. See t... | require 'stringutil'
-- Notice that the namespace for the module matches the module name - i.e. basicauth
-- When we use it within the code it is desirable to do:
-- basicauth = require 'basicauth'
-- Since this keeps the name of the module very consistent.
-- Basic authentication is part of the HTTP protocol. See t... | Put in a patch from Rick Thiessen to basicauth. | Put in a patch from Rick Thiessen to basicauth.
On VPNs this fixes a problem where iguana.webInfo is returning
the IP of the VPN rather than the host/ip that Iguana is running
on.
| Lua | mit | interfaceware/iguana-web-apps,interfaceware/iguana-web-apps |
e6eb1d749ed680c0def9e95e00bafc48de977b46 | 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... | libs/web: Fixed luci.template | libs/web: Fixed luci.template
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci |
0b9424cb2991c1f153c007b60fb138bf07ce7c44 | AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- Slider --
--------------------------
do
local Type = "Slider"
local Version = 7
local function OnAcquire(self)
self:SetWidth(200)
self:SetHeight(44)
self:SetDisabled(false)
self:SetIsPercent(nil)
self:SetSliderValues(0,100,... | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- Slider --
--------------------------
do
local Type = "Slider"
local Version = 8
local function OnAcquire(self)
self:SetWidth(200)
self:SetHeight(44)
self:SetDisabled(false)
self:SetIsPercent(nil)
self:SetSliderValues(0,100,... | Fix for blizzard slider bug: If you SetMinMax after SetValue, it wouldn't move the draghandle like it should. So now, if someone calls SetMinMax, we re-call SetValue. | Fix for blizzard slider bug: If you SetMinMax after SetValue, it wouldn't move the draghandle like it should. So now, if someone calls SetMinMax, we re-call SetValue.
git-svn-id: e768786be8df873dac9515156656ebbdc6d77160@837 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
98187975f9ec118501b0867dc5ab39c234027ea3 | libs/uci/luasrc/model/uci/bind.lua | libs/uci/luasrc/model/uci/bind.lua | --[[
LuCI - UCI utilities for model classes
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | --[[
LuCI - UCI utilities for model classes
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | libs/uci: fix attempt to assign empty tables in uci bind class | libs/uci: fix attempt to assign empty tables in uci bind class
| Lua | apache-2.0 | zhaoxx063/luci,tcatm/luci,sujeet14108/luci,ff94315/luci-1,kuoruan/luci,obsy/luci,palmettos/test,openwrt/luci,chris5560/openwrt-luci,aa65535/luci,marcel-sch/luci,keyidadi/luci,deepak78/new-luci,opentechinstitute/luci,Hostle/openwrt-luci-multi-user,joaofvieira/luci,LazyZhu/openwrt-luci-trunk-mod,cshore/luci,Wedmer/luci,a... |
97a381e51486224b4093385fff3ec06a60621754 | mod_register_json/mod_register_json.lua | mod_register_json/mod_register_json.lua | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local jid_prep = require "util.jid".prep;
local jid_split = require "util.jid".split;
local usermanager = require "core.usermanager";
local b64_deco... | -- Expose a simple servlet to handle user registrations from web pages
-- via JSON.
--
-- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur
-- aka Zash.
local jid_prep = require "util.jid".prep;
local jid_split = require "util.jid".split;
local usermanager = require "core.usermanager";
local b64_deco... | mod_register_json: Let's call it the first commit, fixed all code errors (aka it works). | mod_register_json: Let's call it the first commit, fixed all code errors (aka it works).
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
48fc294fcc435fbc1edf414846aac1d8c1b35d57 | agents/monitoring/lua/lib/protocol/connection.lua | agents/monitoring/lua/lib/protocol/connection.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 line parsing - use a better approach. | Fix line parsing - use a better approach.
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
3334bf8fe7692d352cae9ab5f93af939cdb9c298 | reader.lua | reader.lua | #!./luajit
-- load default settings
require "defaults"
local DataStorage = require("datastorage")
pcall(dofile, DataStorage:getDataDir() .. "/defaults.persistent.lua")
-- set search path for 'require()'
package.path =
"common/?.lua;rocks/share/lua/5.1/?.lua;frontend/?.lua;" ..
package.path
package.cpath =
... | #!./luajit
-- load default settings
require "defaults"
local DataStorage = require("datastorage")
pcall(dofile, DataStorage:getDataDir() .. "/defaults.persistent.lua")
-- set search path for 'require()'
package.path =
"common/?.lua;rocks/share/lua/5.1/?.lua;frontend/?.lua;" ..
package.path
package.cpath =
... | fix: delay showReader after UIManager:run is called | fix: delay showReader after UIManager:run is called
| Lua | agpl-3.0 | Markismus/koreader,koreader/koreader,Hzj-jie/koreader,robert00s/koreader,Frenzie/koreader,lgeek/koreader,NiLuJe/koreader,pazos/koreader,houqp/koreader,mwoz123/koreader,poire-z/koreader,chihyang/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader,frankyifei/koreader,apletnev/koreader,NickSavage/koreader,mihailim... |
eb06ee140485359e0110fe0fa0b54887a2f8713c | test/test-gridfs.lua | test/test-gridfs.lua | local test = require 'test'
local client = mongo.Client(test.uri)
local gridfs = client:getGridFS(test.dbname)
local chunks = gridfs:getChunks()
local files = gridfs:getFiles()
gridfs:drop()
local t = {}
for i = 1, 50000 do
t[#t + 1] = ('%s'):format(i % 10)
end
local data = table.concat(t)
-- GridFS file
local fil... | local test = require 'test'
local client = mongo.Client(test.uri)
local gridfs = client:getGridFS(test.dbname)
local chunks = gridfs:getChunks()
local files = gridfs:getFiles()
gridfs:drop()
local t = {}
for i = 1, 50000 do
t[#t + 1] = ('%s'):format(i % 10)
end
local data = table.concat(t)
-- GridFS file
local fil... | Test: add bug report reference | Test: add bug report reference
| Lua | mit | neoxic/lua-mongo |
d98d050989b5d6a5dce1f96cce01c47a68616fa6 | lua/starfall/libs_sh/serverinfo.lua | lua/starfall/libs_sh/serverinfo.lua |
--- Server info functions.
-- @shared
local serverinfo_library, _ = SF.Libraries.Register("serverinfo")
--- Same as Glua's physenv.GetPerformanceSettings()
--@return Table containing physics environment settings
function serverinfo_library.GetPerformanceSettings()
return physenv.GetPerformanceSettings()
e... |
--- Server info functions.
-- @shared
local serverinfo_library, _ = SF.Libraries.Register("serverinfo")
--- Returns a table containing physics environment settings. See GLua's physenv.GetPerformanceSettings()
-- for more info.
function serverinfo_library.performanceSettings()
return table.Copy(physenv.GetPe... | Fixed serverinfo naming conventions, and modified documentation | Fixed serverinfo naming conventions, and modified documentation
| Lua | bsd-3-clause | Jazzelhawk/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall |
2d6e83e688e54cccf3eb3149f8a28acd71dda5b2 | neovim/.config/nvim/lua/plugins.lua | neovim/.config/nvim/lua/plugins.lua | -- Only required if you have packer in your `opt` pack
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself as an optional plugin
use {'wbthomason/packer.nvim', opt = true}
use 'justinmk/vim-ipmotion'
use 'arp242/jumpy.vim'
use {
'bronze... | -- Only required if you have packer in your `opt` pack
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself as an optional plugin
use {'wbthomason/packer.nvim', opt = true}
use 'justinmk/vim-ipmotion'
use 'arp242/jumpy.vim'
use {
'bronzehedwick/vim-... | Add back vim closer | Add back vim closer
The bug is fixed!
| Lua | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
504e83b1316fc43460f68a87273852bae8116d62 | scripts/openal.lua | scripts/openal.lua | --
-- Copyright (c) 2012-2020 Daniele Bartolini and individual contributors.
-- License: https://github.com/dbartolini/crown/blob/master/LICENSE
--
function openal_project(_kind)
project "openal"
kind (_kind)
configuration {}
local AL_DIR = (CROWN_DIR .. "3rdparty/openal/")
defines {
"_LARGE_FILES",
... | --
-- Copyright (c) 2012-2020 Daniele Bartolini and individual contributors.
-- License: https://github.com/dbartolini/crown/blob/master/LICENSE
--
function openal_project(_kind)
project "openal"
kind (_kind)
configuration {}
local AL_DIR = (CROWN_DIR .. "3rdparty/openal/")
defines {
"_LARGE_FILES",
... | scripts: fix MinGW build | scripts: fix MinGW build
| Lua | mit | dbartolini/crown,taylor001/crown,mikymod/crown,galek/crown,mikymod/crown,galek/crown,dbartolini/crown,galek/crown,dbartolini/crown,mikymod/crown,taylor001/crown,taylor001/crown,taylor001/crown,dbartolini/crown,mikymod/crown,galek/crown |
2c6727bfb56c8576e181b8f41e0b4a95525236f1 | src_trunk/resources/item-system/ghettoblaster/c_ghettoblaster.lua | src_trunk/resources/item-system/ghettoblaster/c_ghettoblaster.lua | blasters = { }
function elementStreamIn()
if (getElementType(source)=="object") then
local model = getElementModel(source)
if (model==2226) then
local x, y, z = getElementPosition(source)
local sound = playSound3D("ghettoblaster/loop.mp3", x, y, z, true)
blasters[source] = sound
setSound... | blasters = { }
local localPlayer = getLocalPlayer()
function elementStreamIn()
if (getElementType(source)=="object") then
local model = getElementModel(source)
if (model==2226) then
local x, y, z = getElementPosition(source)
local px, py, pz = getElementPosition(localPlayer)
if (getDistance... | Ghettoblaster fixes | Ghettoblaster fixes
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@533 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
263ac6627242c2a3d4d53ecfbdf579dbf6c63d55 | tundra.lua | tundra.lua |
-----------------------------------------------------------------------------------------------------------------------
local mac_opts = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything", "-Werror",
"-Wno-c11-extensions",
"-Wno-variadic-macros",
"-Wno-c++98-compat-pedantic",
"-Wno-old-style-cast",
"-Wno-docu... |
-----------------------------------------------------------------------------------------------------------------------
local mac_opts = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything", "-Werror",
"-Wno-c11-extensions",
"-Wno-variadic-macros",
"-Wno-c++98-compat-pedantic",
"-Wno-old-style-cast",
"-Wno-docu... | Fixed broken mac_test build | Fixed broken mac_test build
| Lua | mit | ashemedai/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,emoon/ProDBG,ashemedai/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,kondrak/ProDBG,emoon/ProDBG,v3n/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/ProDBG,kondrak/ProDBG,SlNPacifist/ProDBG,SlNPacifist/ProDBG,emoon/ProDBG,ashemedai/ProDBG,ashemedai/ProDBG,kondr... |
329376b622eac6a6ae74f17a0fa08ba7354593eb | Resources/Scripts/Modules/Camera.lua | Resources/Scripts/Modules/Camera.lua | WINDOW = { width, height }
WINDOW.width, WINDOW.height = window.size()
panels = { left = { width = 128, height = 768, center = { x = -WINDOW.width / 2, y = 0 } }, right = { width = 32, height = 768, center = { x = WINDOW.width / 2, y = 0 } } }
cameraRatio = { current = 1, num = 2, target = 1 }
aspectRatio = WINDOW.wi... | WINDOW = { width, height }
WINDOW.width, WINDOW.height = window.size()
panels = { left = { width = 128, height = 768, center = { x = -WINDOW.width / 2, y = 0 } }, right = { width = 32, height = 768, center = { x = WINDOW.width / 2, y = 0 } } }
cameraRatio = { current = 1, num = 2, target = 1 }
aspectRatio = WINDOW.wi... | Fixed the (broken) Camera.lua script. | Fixed the (broken) Camera.lua script.
Signed-off-by: Alastair Lynn <4665d361aaf271b139147017031ea99df777ca5a@gmail.com>
| Lua | mit | adam000/xsera,adam000/xsera,prophile/xsera,prophile/xsera,prophile/xsera,prophile/xsera,adam000/xsera,prophile/xsera,adam000/xsera |
952a86a9cd7c7e1067ba79cf5d5db41c2fd6926f | src/tbox/micro.lua | src/tbox/micro.lua | -- add target
target("tbox")
-- make as a static library
set_kind("static")
-- add defines
add_defines("__tb_prefix__=\"tbox\"")
-- set the auto-generated config.h
set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)")
add_configfiles("tbox.config.h.in")
-- add include directories
a... | -- add target
target("tbox")
-- make as a static library
set_kind("static")
-- add defines
add_defines("__tb_prefix__=\"tbox\"")
-- set the auto-generated config.h
set_configdir("$(buildir)/$(plat)/$(arch)/$(mode)")
add_configfiles("tbox.config.h.in")
-- add include directories
a... | fix unix socket support in micro mode | fix unix socket support in micro mode
| Lua | apache-2.0 | waruqi/tbox,tboox/tbox,waruqi/tbox,tboox/tbox |
f2fb04821d28429c92142007686ae75df13fe645 | bin/monitor_clients.lua | bin/monitor_clients.lua | package.path = package.path .. ';../freedomportal/?.lua'
local clients = require('freedomportal.clients')
local utils = require('freedomportal.utils')
local posix = require('posix')
local iwinfo = require('iwinfo')
local INTERVAL = 1
local INTERFACE = 'wlan0'
local ARP_FILEPATH = '/proc/net/arp'
while true do
c... | package.path = package.path .. ';../freedomportal/?.lua'
local clients = require('freedomportal.clients')
local utils = require('freedomportal.utils')
local posix = require('posix')
local iwinfo = require('iwinfo')
local INTERVAL = 1
local INTERFACE = 'wlan0'
local ARP_FILEPATH = '/proc/net/arp'
while true do
c... | fixed monitor script | fixed monitor script
| Lua | mit | sebpiq/FreedomPortal,sebpiq/FreedomPortal |
8d3612c147b0e8acf3a82a72cb5130b5b11f0ffc | [resources]/GTWclothes/clothes_s.lua | [resources]/GTWclothes/clothes_s.lua | --[[
********************************************************************************
Project owner: GTWGames
Project name: GTW-RPG
Developers: GTWCode
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.albonius.com/bug-reports/
Suggestions: http://forum.albonius.... | --[[
********************************************************************************
Project owner: GTWGames
Project name: GTW-RPG
Developers: GTWCode
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.albonius.com/bug-reports/
Suggestions: http://forum.albonius.... | [Patch] Fixed an event trigger bug | [Patch] Fixed an event trigger bug
* Renamed event trigger as it didn't synced correctly
| Lua | bsd-2-clause | GTWCode/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,SpRoXx/GTW-RPG,404rq/GTW-RPG,SpRoXx/GTW-RPG,GTWCode/GTW-RPG |
64122cf036bbe5e9690c0b103b9658e2e3ceea4f | gmod_wire_starfall_processor/compiler/compiler.lua | gmod_wire_starfall_processor/compiler/compiler.lua |
local SF_Compiler = SF_Compiler or {}
SF_Compiler.__index = SF_Compiler
function SF_Compiler:Error(message, instr)
error(message .. " at line " .. instr[2][1] .. ", char " .. instr[2][2], 0)
end
function SF_Compiler:Process(root, inputs, outputs, params)
self.contexts = {}
self:PushContext()
self.i... |
local SF_Compiler = SF_Compiler or {}
SF_Compiler.__index = SF_Compiler
function SF_Compiler:Error(message, instr)
error(message .. " at line " .. instr[2][1] .. ", char " .. instr[2][2], 0)
end
function SF_Compiler:Process(root, inputs, outputs, params)
self.contexts = {}
self:PushContext("do")
se... | [Starfall] [compiler.lua] Added stuff to main method, GetType() now returns "function" for functions, fixed several incorrect variable names, added incomplete "call" instruction | [Starfall]
[compiler.lua] Added stuff to main method,
GetType() now returns "function" for functions,
fixed several incorrect variable names,
added incomplete "call" instruction
| Lua | bsd-3-clause | Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,INPStarfall/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Xandaros/Starfall |
1a1e16e9dffff6b43e7ed91c40d05376e9b2e4fe | xmake-repo/packages/n/nodeeditor/xmake.lua | xmake-repo/packages/n/nodeeditor/xmake.lua | package("nodeeditor")
set_homepage("https://github.com/paceholder/nodeeditor")
set_description("Qt Node Editor. Dataflow programming framework")
set_license("BSD-3")
set_urls("https://github.com/paceholder/nodeeditor/archive/refs/tags/$(version).tar.gz",
"https://github.com/paceholder/nod... | package("nodeeditor")
set_homepage("https://github.com/paceholder/nodeeditor")
set_description("Qt Node Editor. Dataflow programming framework")
set_license("BSD-3")
set_urls("https://github.com/paceholder/nodeeditor/archive/refs/tags/$(version).tar.gz",
"https://github.com/paceholder/nod... | Fix nodeeditor patch checksum | Fix nodeeditor patch checksum
| Lua | mit | DigitalPulseSoftware/NazaraEngine |
0e1099f25abcbcef723686b5486dc5c8f6b252fa | src/patch/ui/lib/mppatch_runtime.lua | src/patch/ui/lib/mppatch_runtime.lua | -- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, co... | -- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, co... | Fix mainmenu version. | Fix mainmenu version.
| Lua | mit | Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MultiverseModManager,Lymia/CivV_Mod2DLC |
d4b183de41706158eb91c083d8d8ca89d2d7ee86 | vrp/modules/money.lua | vrp/modules/money.lua | local lang = vRP.lang
-- Money module, wallet/bank API
-- The money is managed with direct SQL requests to prevent most potential value corruptions
-- the wallet empty itself when respawning (after death)
MySQL.createCommand("vRP/money_tables", [[
CREATE TABLE IF NOT EXISTS vrp_user_moneys(
user_id INTEGER,
walle... | local lang = vRP.lang
-- Money module, wallet/bank API
-- The money is managed with direct SQL requests to prevent most potential value corruptions
-- the wallet empty itself when respawning (after death)
MySQL.createCommand("vRP/money_tables", [[
CREATE TABLE IF NOT EXISTS vrp_user_moneys(
user_id INTEGER,
walle... | Money cheat fix (untested). | Money cheat fix (untested).
| Lua | mit | ImagicTheCat/vRP,ImagicTheCat/vRP |
f86cbeca93d433e0d7a953a8c9a26349aad2bbb2 | LUA/ak/data/AkSlotNamesParser.lua | LUA/ak/data/AkSlotNamesParser.lua | local SlotNamesParser = {}
local function isModuleAvailable(name)
if package.loaded[name] then
return true
else
for _, searcher in ipairs(package.searchers or package.loaders) do
local loader = searcher(name)
if type(loader) == 'function' then
package.pre... | local SlotNamesParser = {}
local function isModuleAvailable(name)
if package.loaded[name] then
return true
else
for _, searcher in ipairs(package.searchers or package.loaders) do
local loader = searcher(name)
if type(loader) == 'function' then
package.pre... | fix: Fehler wenn BH2 Slotnames nicht vorhanden sind | fix: Fehler wenn BH2 Slotnames nicht vorhanden sind
| Lua | mit | Andreas-Kreuz/ak-lua-skripte-fuer-eep,Andreas-Kreuz/ak-lua-skripte-fuer-eep |
ed2b5e03e48ecfafc1d2b8e665c234e2f5ca0035 | mod_ircd/mod_ircd.lua | mod_ircd/mod_ircd.lua | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | local irc_listener = { default_port = 6667, default_mode = "*l" };
local sessions = {};
local commands = {};
local nicks = {};
local st = require "util.stanza";
local conference_server = module:get_option("conference_server") or "conference.jabber.org";
local function irc_close_session(session)
session.conn:close... | mod_ircd: Fixed handling of empty <body/> elements. | mod_ircd: Fixed handling of empty <body/> elements.
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
ac7aca604f2dd7a780cec58502cd649547659db8 | Statlist-unique.lua | Statlist-unique.lua | --[[
This module prints a list of all Pokémon
having unique base stat total
--]]
local u = {}
-- stylua: ignore start
local txt = require('Wikilib-strings')
local tab = require('Wikilib-tables')
local css = require('Css')
local ms = require('MiniSprite')
local gamesUtil = require('Wikilib-games')
local genUtil = re... | --[[
This module prints a list of all Pokémon
having unique base stat total
--]]
local u = {}
-- stylua: ignore start
local txt = require('Wikilib-strings')
local tab = require('Wikilib-tables')
local css = require('Css')
local ms = require('MiniSprite')
local gamesUtil = require('Wikilib-games')
local genUtil = re... | Fixing require in Statlist-unique | Fixing require in Statlist-unique
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
4d0d2d4dea9d38b4d54e3ceab18a4aa99511acfa | cookbooks/neovim/files/nvim/lua/plugins.lua | cookbooks/neovim/files/nvim/lua/plugins.lua | -- Packer.nvim bootstrapping
-- see https://github.com/wbthomason/packer.nvim#bootstrapping
-- TODO: Move to ~/.config/nvim/lua/init.lua
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
... | -- Packer.nvim bootstrapping
-- see https://github.com/wbthomason/packer.nvim#bootstrapping
-- TODO: Move to ~/.config/nvim/lua/init.lua
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
... | Add which-key.nvim prefix for packer.nvim | Add which-key.nvim prefix for packer.nvim
| Lua | mit | tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles |
0f189af4eb027ae2df788d2e43a2229546fbe5cd | kong/resty/ctx.lua | kong/resty/ctx.lua | -- A module for sharing ngx.ctx between subrequests.
-- Original work by Alex Zhang (openresty/lua-nginx-module/issues/1057)
-- updated by 3scale/apicast.
--
-- Copyright (c) 2016 3scale Inc.
-- Licensed under the Apache License, Version 2.0.
-- License text: See LICENSE
--
-- Modifications by Kong Inc.
-- * updated ... | -- A module for sharing ngx.ctx between subrequests.
-- Original work by Alex Zhang (openresty/lua-nginx-module/issues/1057)
-- updated by 3scale/apicast.
--
-- Copyright (c) 2016 3scale Inc.
-- Licensed under the Apache License, Version 2.0.
-- License text: See LICENSE
--
-- Modifications by Kong Inc.
-- * updated ... | fix(core) resty.ctx to use new api in openresty 1.19.x.x | fix(core) resty.ctx to use new api in openresty 1.19.x.x
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
861b32ea331641771474ebcd592b2a8639b8b310 | util/datamanager.lua | util/datamanager.lua | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs = pairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
local tostring = tostring;
local error = error;
module "datamanager"
---- utils -----
local ... | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs = pairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
local tostring = tostring;
local error = error;
local indent = function(f, i)
for n = 1, i do... | Datamanager Fixes and improvements - Pretty printing - Fixed bug causing a nil concatenation error when saving a datastore for nil user or host | Datamanager Fixes and improvements
- Pretty printing
- Fixed bug causing a nil concatenation error when saving a datastore for nil user or host
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
8eaabb460ed9c9c01ddbe97ffc29a9cb6e1e81ec | util/datamanager.lua | util/datamanager.lua | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs, ipairs = pairs, ipairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
local os_remove = os.remove;
local tostring, tonumber = tostring, tonumber;
loc... | local format = string.format;
local setmetatable, type = setmetatable, type;
local pairs, ipairs = pairs, ipairs;
local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = require "util.logger".init("datamanager");
local io_open = io.open;
local os_remove = os.remove;
local tostri... | Fixed logging in datamanager | Fixed logging in datamanager
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
a5899c9656bd3e488d3ff75595f70b55f7b4278b | busted/outputHandlers/junit.lua | busted/outputHandlers/junit.lua | local xml = require 'pl.xml'
local socket = require("socket")
local string = require("string")
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local xml_doc
local suiteStartTime
handler.suiteStart = function()
suiteStartTime = socket.gettime()
xml_doc = xm... | local xml = require 'pl.xml'
local socket = require("socket")
local string = require("string")
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local xml_doc
local suiteStartTime
handler.suiteStart = function()
suiteStartTime = socket.gettime()
xml_doc = xm... | Fix junit output to better match junit xml format | Fix junit output to better match junit xml format
Update the junit output handler to better match the junit xml format
* Mark pending tests as `<skipped/>`
* Nest errors that occur in a test inside `<testcase>`
| Lua | mit | DorianGray/busted,Olivine-Labs/busted,istr/busted,mpeterv/busted,leafo/busted,sobrinho/busted,xyliuke/busted,ryanplusplus/busted,o-lim/busted,nehz/busted |
155b5a7b90acb6c5e59a712c1e4416bbf0b1229d | joueur/run.lua | joueur/run.lua | return function(args)
local client = require("joueur.client")
local GameManager = require("joueur.gameManager")
local safeCall = require("joueur.safeCall")
local splitServer = args.server:split(":")
args.server = splitServer[1]
args.port = tonumber(splitServer[2] or args.port)
local game, ... | return function(args)
local client = require("joueur.client")
local GameManager = require("joueur.gameManager")
local safeCall = require("joueur.safeCall")
local splitServer = args.server:split(":")
args.server = splitServer[1]
args.port = tonumber(splitServer[2] or args.port)
local game, ... | fixing linux game name error | fixing linux game name error
| Lua | mit | siggame/Joueur.lua,siggame/Joueur.lua,JacobFischer/Joueur.lua |
e5faa6c1257d90a194ec644c167d881719a0455c | Modules/Camera/Effects/LagPointCamera.lua | Modules/Camera/Effects/LagPointCamera.lua | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local CameraState = LoadCustomLibrary("CameraState")
local SummedCamera = LoadCustomLibrary("SummedCamera... | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NevermoreEngine = require(ReplicatedStorage:WaitForChild("NevermoreEngine"))
local LoadCustomLibrary = NevermoreEngine.LoadLibrary
local CameraState = LoadCustomLibrary("CameraState")
local SummedCamera = LoadCustomLibrary("SummedCamera")
local Sp... | Standardized documentation, fixed FocusCamera/OriginCamera indexing, | Standardized documentation, fixed FocusCamera/OriginCamera indexing,
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
7a28d85b30eede6f21400f806e209d976564e23a | src/ui/MapView.lua | src/ui/MapView.lua | --MapView.lua
local class = require 'lib/30log'
local statemachine = require('lib/statemachine')
local Interfaceable = require 'src/component/Interfaceable'
local Renderable = require 'src/component/Renderable'
local Transform = require 'src/component/Transform'
local TouchDelegate = require 'src/datatype/TouchDelegat... | --MapView.lua
local class = require 'lib/30log'
local statemachine = require('lib/statemachine')
local Interfaceable = require 'src/component/Interfaceable'
local Renderable = require 'src/component/Renderable'
local Transform = require 'src/component/Transform'
local TouchDelegate = require 'src/datatype/TouchDelegat... | fix parenting | fix parenting
| Lua | mit | Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400 |
b73ce9264919606f3bfdaa0f6824eba16d449208 | lua/entities/gmod_wire_value/init.lua | lua/entities/gmod_wire_value/init.lua | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Value"
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Outputs = Wire_CreateOutputs(self, { "Out" })
end
l... | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Value"
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Outputs = Wire_CreateOutputs(self, { "Out" })
end
l... | Constant Value: Fixed old dupes becoming unwired Fixes #152 | Constant Value: Fixed old dupes becoming unwired
Fixes #152
| Lua | apache-2.0 | immibis/wiremod,thegrb93/wire,wiremod/wire,Grocel/wire,mms92/wire,plinkopenguin/wiremod,mitterdoo/wire,notcake/wire,sammyt291/wire,bigdogmat/wire,rafradek/wire,CaptainPRICE/wire,NezzKryptic/Wire,garrysmodlua/wire,dvdvideo1234/wire,Python1320/wire |
f1ca40651255bd8194803722fcc7cd6f51a556f4 | src/cosy/cli/init.lua | src/cosy/cli/init.lua | local Loader = require "cosy.loader"
Loader.nolog = true
local Configuration = require "cosy.configuration"
local Value = require "cosy.value"
local Lfs = require "lfs"
local I18n = require "cosy.i18n"
local Cliargs = require "cliargs"
local Colors = require "ansico... | local Loader = require "cosy.loader"
Loader.nolog = true
local Configuration = require "cosy.configuration"
local Value = require "cosy.value"
local Lfs = require "lfs"
local I18n = require "cosy.i18n"
local Cliargs = require "cliargs"
local Colors = require "ansico... | Fix color option handling | Fix color option handling
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
1e245d9a669406fd2c2ad02c356d4e26304cff42 | nvim/lua/user/plugins/bufferline.lua | nvim/lua/user/plugins/bufferline.lua | require('bufferline').setup({
options = {
indicator_icon = ' ',
show_close_icon = false,
tab_size = 0,
max_name_length = 25,
offsets = {
{
filetype = 'NvimTree',
text = ' Files',
highlight = 'StatusLine',
text_align = 'left',
},
},
separator_st... | require('bufferline').setup({
options = {
indicator_icon = ' ',
show_close_icon = false,
tab_size = 0,
max_name_length = 25,
offsets = {
{
filetype = 'NvimTree',
text = ' Files',
highlight = 'StatusLine',
text_align = 'left',
},
},
separator_st... | Fix bufferline modified bg when visible | Fix bufferline modified bg when visible
| Lua | mit | jessarcher/dotfiles,jessarcher/dotfiles,jessarcher/dotfiles |
cf8b8f874981a06d4dd41494ea3fb98157b60a3b | 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
| Lua | apache-2.0 | jorgifumi/luci,keyidadi/luci,cappiewu/luci,Sakura-Winkey/LuCI,jlopenwrtluci/luci,harveyhu2012/luci,zhaoxx063/luci,kuoruan/lede-luci,shangjiyu/luci-with-extra,Hostle/openwrt-luci-multi-user,981213/luci-1,ff94315/luci-1,artynet/luci,dwmw2/luci,deepak78/new-luci,thess/OpenWrt-luci,wongsyrone/luci-1,urueedi/luci,joaofvieir... |
215f10b32bd4a36a8fc1a169ba0e425dc39ae22c | libs/core/luasrc/model/wireless.lua | libs/core/luasrc/model/wireless.lua | --[[
LuCI - Wireless model
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | --[[
LuCI - Wireless model
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | libs/core: fixes luci.model.wireless | libs/core: fixes luci.model.wireless
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5438 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | phi-psi/luci,Canaan-Creative/luci,dtaht/cerowrt-luci-3.3,zwhfly/openwrt-luci,8devices/carambola2-luci,zwhfly/openwrt-luci,8devices/carambola2-luci,gwlim/luci,ReclaimYourPrivacy/cloak-luci,8devices/carambola2-luci,stephank/luci,ch3n2k/luci,Canaan-Creative/luci,saraedum/luci-packages-old,eugenesan/openwrt-luci,gwlim/luci... |
dca8f045205a24c0263fe93a7f15cf1af9e78c2f | tools/pulldefs.lua | tools/pulldefs.lua | -- A slightly hacky way of pulling FFI definitions.
local args = {...}
print("local ffi = require(\"ffi\")")
print("ffi.cdef [[")
local constants = {}
local previousstate = "none" -- for debugging.
local state = "waiting"
local state_targetenum = nil
local state_enumindex = nil
local state_enumconstname = nil
-- re... | -- A slightly hacky way of pulling FFI definitions.
local args = {...}
print("local ffi = require(\"ffi\")")
print("ffi.cdef [[")
local constants = {}
local previousstate = "none" -- for debugging.
local state = "waiting"
local state_targetenum = nil
local state_enumindex = nil
local state_enumconstname = nil
-- re... | Fix pulldefs enum values. | Fix pulldefs enum values.
whoops
| Lua | mit | vifino/ljwm |
08c72e62032810f8aad39a1132854d5079ad3364 | src/assert.lua | src/assert.lua | local s = require 'say'
local __assertion_meta = {
__call = function(self, ...)
local state = self.state
local val = self.callback(state, ...)
local data_type = type(val)
if data_type == "boolean" then
if val ~= state.mod then
if state.mod then
error(s(self.positive_message, ... | local s = require 'say'
local __assertion_meta = {
__call = function(self, ...)
local state = self.state
local val = self.callback(state, ...)
local data_type = type(val)
if data_type == "boolean" then
if val ~= state.mod then
if state.mod then
error(s(self.positive_message, ... | Bugfix; when an unknown assertion/modifier is used, display a proper error message. | Bugfix; when an unknown assertion/modifier is used, display a proper error message.
Try: assert.this_does_not_exist.equal("hello","hello")
| Lua | mit | tst2005/lua-luassert,o-lim/luassert,mpeterv/luassert,ZyX-I/luassert |
3856ba6d21c4fde1e35b19c6d8c2dae3647d4e45 | examples/asteroids.lua | examples/asteroids.lua | -- Simple Asteroids-alike game.
-- Copyright (C) 2012 Salvatore Sanfilippo.
-- This code is released under the BSD two-clause license.
function setup()
ticks = 0 -- Number of iteration of the program
shipx = WIDTH/2 -- Ship x position
shipy = HEIGHT/2 -- Ship y position
shipa = 0 -- Ship rotation angle... | -- Simple Asteroids-alike game.
-- Copyright (C) 2012 Salvatore Sanfilippo.
-- This code is released under the BSD two-clause license.
function setup()
ticks = 0 -- Number of iteration of the program
shipx = WIDTH/2 -- Ship x position
shipy = HEIGHT/2 -- Ship y position
shipa = 0 -- Ship rotation angle... | Small fix for Asteroids.lua: Make sure that the bullet originaes from ship head. | Small fix for Asteroids.lua: Make sure that the bullet originaes from ship head.
| Lua | bsd-2-clause | saisai/load81,seclorum/load81,saisai/load81,saisai/load81,saisai/load81,antirez/load81,seclorum/load81,antirez/load81,seclorum/load81,saisai/load81,seclorum/load81,antirez/load81,antirez/load81,antirez/load81,seclorum/load81 |
06d296eea64deea5d171f769d43ff67537b04ed5 | src/camerastoryutils/src/Client/CameraStoryUtils.lua | src/camerastoryutils/src/Client/CameraStoryUtils.lua | ---
-- @module CameraStoryUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local InsertServiceUtils = require("InsertServiceUtils")
local Promise = require("Promise")
local Math = require("Math")
local CameraStoryUtils = {}
function... | ---
-- @module CameraStoryUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local InsertServiceUtils = require("InsertServiceUtils")
local Promise = require("Promise")
local Math = require("Math")
local CameraStoryUtils = {}
function... | fix: Fix CameraStoryUtils | fix: Fix CameraStoryUtils
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
9f281af60565054d79b4e3523fc200a5575421ba | src/virtio.lua | src/virtio.lua | -- virtio.lua -- Linux 'vhost' interface for ethernet I/O towards the kernel.
module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
require("vhost_client_h")
require("virtio_h")
require("tuntap_h")
function new (tapinterface)
local M = {}
local vio = ffi.new("struct vio")
local rx_freelis... | -- virtio.lua -- Linux 'vhost' interface for ethernet I/O towards the kernel.
module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local memory = require("memory")
local buffer = require("buffer")
require("vhost_client_h")
require("virtio_h")
require("tuntap_h")
function new (tapinterface)
loca... | virtio.lua: Updated to the new I/O API and fixed bugs. | virtio.lua: Updated to the new I/O API and fixed bugs.
selftest now calls into port.lua's echo test.
| Lua | apache-2.0 | andywingo/snabbswitch,hb9cwp/snabbswitch,SnabbCo/snabbswitch,wingo/snabbswitch,SnabbCo/snabbswitch,dpino/snabb,hb9cwp/snabbswitch,virtualopensystems/snabbswitch,andywingo/snabbswitch,dpino/snabb,alexandergall/snabbswitch,justincormack/snabbswitch,andywingo/snabbswitch,fhanik/snabbswitch,Igalia/snabb,Igalia/snabbswitch,... |
aa69dfe15fba7f10b670cae25953ed5c93b18f65 | tools/erlparse.lua | tools/erlparse.lua | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local file = nil;
local last = nil;
local function read(expected)
local ch;
if last then
ch = last;... | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local file = nil;
local last = nil;
local function read(expected)
local ch;
if last then
ch = last;... | ejabberd2prosody: Fixed escape code processing when parsing strings. | ejabberd2prosody: Fixed escape code processing when parsing strings.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
74694fd7573cedc48da611a9f949a214fb5ebc5f | [resources]/GTWcore/misc/c_2dview.lua | [resources]/GTWcore/misc/c_2dview.lua | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: https://forum.404rq.com/bug-reports/
Suggestions: https://forum.404rq.com/mta-... | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: https://forum.404rq.com/bug-reports/
Suggestions: https://forum.404rq.com/mta-... | [Patch] Fixed zoom functionality in 2D view | [Patch] Fixed zoom functionality in 2D view
| Lua | bsd-2-clause | GTWCode/GTW-RPG,404rq/GTW-RPG,GTWCode/GTW-RPG,GTWCode/GTW-RPG,404rq/GTW-RPG,404rq/GTW-RPG |
996d24d155952a4c8205ee58832c7d5f4ac342f1 | vi_mode_search.lua | vi_mode_search.lua | -- Handle the vim search emulation
-- Modeled on textadept's command_entry.lua
local M = {}
M.search_hl_indic = _SCINTILLA.next_indic_number()
local function set_colours()
buffer.indic_fore[M.search_hl_indic] = 0x00FFFF
buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX
buffer.ind... | -- Handle the vim search emulation
-- Modeled on textadept's command_entry.lua
local M = {}
M.search_hl_indic = _SCINTILLA.next_indic_number()
local function set_colours()
buffer.indic_fore[M.search_hl_indic] = 0x00FFFF
buffer.indic_style[M.search_hl_indic] = _SCINTILLA.constants.INDIC_ROUNDBOX
buffer.ind... | Temporary hack to fix regex searches. | Temporary hack to fix regex searches.
| Lua | mit | jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi |
f0fa5cdf2f5c5a823b6b95ffddeddd9fe9e011fd | spec/integration/cli/restart_spec.lua | spec/integration/cli/restart_spec.lua | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
describe("CLI", function()
setup(function()
pcall(spec_helper.stop_kong)
end)
teardown(function()
pcall(spec_helper.stop_kong)
end)
it("sh... | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
describe("CLI", function()
setup(function()
pcall(spec_helper.stop_kong)
end)
teardown(function()
pcall(spec_helper.stop_kong)
end)
it("sh... | Fixing tests | Fixing tests
| Lua | apache-2.0 | peterayeni/kong,Skyscanner/kong,sbuettner/kong,skynet/kong,wakermahmud/kong,puug/kong,bbalu/kong,ChristopherBiscardi/kong,paritoshmmmec/kong,AnsonSmith/kong,chourobin/kong,vmercierfr/kong |
fc73dce74f0594515e131000b2872f7c1b33fbbc | dataloader.lua | dataloader.lua | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Multi-thread... | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Multi-thread... | fix possible nans due to `last slice` issue in dataloader | fix possible nans due to `last slice` issue in dataloader
| Lua | apache-2.0 | DmitryUlyanov/texture_nets |
d8c191e53236eeeb6f6608d5494c55dc69a0d273 | testserver/item/id_90_flute.lua | testserver/item/id_90_flute.lua | -- I_90 Floete spielen
-- UPDATE common SET com_script='item.id_90_flute' WHERE com_itemid=90;
require("item.base.music")
require("item.general.wood")
module("item.id_90_flute", package.seeall)
skill = Character.flute
item.base.music.addTalkText("#me produces some squeaking sounds on the flute.","#me macht einige ... | -- I_90 Floete spielen
-- UPDATE common SET com_script='item.id_90_flute' WHERE com_itemid=90;
require("item.base.music")
require("item.general.wood")
module("item.id_90_flute", package.seeall)
skill = Character.flute
item.base.music.addTalkText("#me produces some squeaking sounds on the flute.","#me macht einige ... | -Effects_GFX.txt was wrong for 4,5,6. Fixed it. -Test Script for flute | -Effects_GFX.txt was wrong for 4,5,6. Fixed it.
-Test Script for flute
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content |
0bc74e2c65aa4ca81fb7f653a104ecaa526e0dac | ffi/input_android.lua | ffi/input_android.lua | local ffi = require("ffi")
local bit = require("bit")
local android = require("android")
local dummy = require("ffi/linux_input_h")
-- to trigger refreshes for certain Android framework events:
local fb = require("ffi/framebuffer_android").open()
local input = {}
function input.open()
end
local inputQueue = {}
lo... | local ffi = require("ffi")
local bit = require("bit")
local android = require("android")
local dummy = require("ffi/linux_input_h")
local input = {
-- to trigger refreshes for certain Android framework events:
device = nil,
}
function input.open()
end
local inputQueue = {}
local ev_time = ffi.new("struct timev... | fix old framebuffer API usage in input_android | fix old framebuffer API usage in input_android
the Android input module triggers refreshes under certain circumstances.
This was not considered when refactoring the framebuffer API.
| Lua | agpl-3.0 | koreader/koreader-base,houqp/koreader-base,koreader/koreader-base,houqp/koreader-base,houqp/koreader-base,houqp/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,Frenzie/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,koreader/kor... |
d0b1dde9222caed18de4bdefae1905d52198e7d7 | awesome/battery.lua | awesome/battery.lua | -- This function returns a formatted string with the current battery status. It
-- can be used to populate a text widget in the awesome window manager. Based
-- on the "Gigamo Battery Widget" found in the wiki at awesome.naquadah.org
local naughty = require("naughty")
local beautiful = require("beautiful")
function r... | -- This function returns a formatted string with the current battery status. It
-- can be used to populate a text widget in the awesome window manager. Based
-- on the "Gigamo Battery Widget" found in the wiki at awesome.naquadah.org
local naughty = require("naughty")
local beautiful = require("beautiful")
function r... | [awesome] Update battery widget to fix leaking fh | [awesome] Update battery widget to fix leaking fh
| Lua | mit | koenwtje/dotfiles |
09c1f35191a67c3c86680264951c4f8ba4c6de58 | frontend/device/remarkable/device.lua | frontend/device/remarkable/device.lua | local Generic = require("device/generic/device") -- <= look at this file!
local TimeVal = require("ui/timeval")
local logger = require("logger")
local function yes() return true end
local function no() return false end
local EV_ABS = 3
local ABS_X = 00
local ABS_Y = 01
local ABS_MT_POSITION_X = 53
local ABS_MT_POSITI... | local Generic = require("device/generic/device") -- <= look at this file!
local TimeVal = require("ui/timeval")
local logger = require("logger")
local function yes() return true end
local function no() return false end
local EV_ABS = 3
local ABS_X = 00
local ABS_Y = 01
local ABS_MT_POSITION_X = 53
local ABS_MT_POSITI... | rM: Unbreak PowerEvents (#7043) | rM: Unbreak PowerEvents (#7043)
Most of this is scheduled with delays for reasons, so this was a stupid
idea, my bad ;).
Fix #7033 | Lua | agpl-3.0 | NiLuJe/koreader,Frenzie/koreader,Frenzie/koreader,koreader/koreader,Markismus/koreader,poire-z/koreader,Hzj-jie/koreader,poire-z/koreader,mwoz123/koreader,NiLuJe/koreader,koreader/koreader,pazos/koreader |
ea2768401a30390e0ed8f5b4edee9aaee66b3828 | modules/admin-core/luasrc/controller/admin/uci.lua | modules/admin-core/luasrc/controller/admin/uci.lua | module("luci.controller.admin.uci", package.seeall)
require("luci.util")
require("luci.sys")
function index()
node("admin", "uci", "changes").target = call("action_changes")
node("admin", "uci", "revert").target = call("action_revert")
node("admin", "uci", "apply").target = call("action_apply")
end
function con... | module("luci.controller.admin.uci", package.seeall)
function index()
node("admin", "uci", "changes").target = call("action_changes")
node("admin", "uci", "revert").target = call("action_revert")
node("admin", "uci", "apply").target = call("action_apply")
end
function convert_changes(changes)
local ret = {}
fo... | * Fixed an issue that prevented the controller from working with fastindex | * Fixed an issue that prevented the controller from working with fastindex
| Lua | apache-2.0 | deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.