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 |
|---|---|---|---|---|---|---|---|---|---|
783efb134e31c08e56668f3730aa8fb78a704e4c | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | modules/admin-full: fix udata vs. string in system.lua model | modules/admin-full: fix udata vs. string in system.lua model
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5148 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | stephank/luci,gwlim/luci,projectbismark/luci-bismark,ReclaimYourPrivacy/cloak-luci,vhpham80/luci,freifunk-gluon/luci,projectbismark/luci-bismark,ch3n2k/luci,gwlim/luci,vhpham80/luci,8devices/carambola2-luci,dtaht/cerowrt-luci-3.3,ReclaimYourPrivacy/cloak-luci,stephank/luci,gwlim/luci,Canaan-Creative/luci,8devices/caram... |
a2142308fbee3c74171e08dde6e50c6c1edc2821 | .config/nvim/lua/config/dap.lua | .config/nvim/lua/config/dap.lua | local dap_ui = require("dapui")
local dap_python = require("dap-python")
local dap_mappings = require("mappings.dap")
local M = {}
function M.setup()
dap_ui.setup({
icons = { expanded = "", collapsed = "" },
sidebar = {
elements = {
{
id = "scopes",
size = 0.50,
}... | local dap_ui = require("dapui")
local dap_python = require("dap-python")
-- Needs to be /virtual_text and not .virtual_text because of caching.
-- Modifying any property will not work if it's a dot (.) because the source
-- uses slash (/) and therefore has a different table.
local dap_virtual_text = require("nvim-dap-v... | Set prefix for DAP virtual text | Set prefix for DAP virtual text
It's hacky because it's not exposed as a config, but that's good enough.
| Lua | mit | jungomi/dotfiles |
b3cf141095ae963cd2c46d05b854e8bd66369e14 | etc/Far3/Profile/Macros/scripts/Editor.BlockIndent.lua | etc/Far3/Profile/Macros/scripts/Editor.BlockIndent.lua |
-- http://forum.farmanager.com/viewtopic.php?f=15&t=7703
-- http://evil-programmers.googlecode.com/svn/trunk/BlockIndent/BlockIndent.lua
--[[
Block Indent for Far Manager
Version: 2.1
Copyright (C) 2001 Alex Yaroslavsky
This program is free software; you can redistribute it and/or modify
i... |
-- http://forum.farmanager.com/viewtopic.php?f=15&t=7703
-- http://evil-programmers.googlecode.com/svn/trunk/BlockIndent/BlockIndent.lua
--[[
Block Indent for Far Manager
Version: 2.1
Copyright (C) 2001 Alex Yaroslavsky
This program is free software; you can redistribute it and/or modify
i... | fix error with unsupported flag in lua macros | fix error with unsupported flag in lua macros
| Lua | mit | ildar-shaimordanov/tea-set |
cf505d476219f84844161f86a4a6547f39142793 | src/cosy/backend/redis.test.lua | src/cosy/backend/redis.test.lua | require "busted"
local assert = require "luassert"
local Platform = require "cosy.platform"
Platform.logger.enabled = false
local Configuration = require "cosy.configuration"
Configuration.data.password.time = 0.001
Configuration.data.password.min_size = 5
local Backend = require "cosy.backend.redis"
de... | require "busted"
local assert = require "luassert"
local Platform = require "cosy.platform"
Platform.logger.enabled = false
local Configuration = require "cosy.configuration"
Configuration.data.password.time = 0.001
Configuration.data.password.min_size = 5
local Backend = require "cosy.backend.redis"
de... | Fix tests of redis backend. | Fix tests of redis backend.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
fbbd8f855e4af092018a6b5c060b1e82a3714ef7 | cpaste.lua | cpaste.lua | -- CPaste, micro pastebin running on Carbon
print("Morning, Ladies and Gentlemen, CPaste here.")
-- Settings:
ret = dofile("settings.lua")
-- Actual Code:
srv.Use(mw.Logger()) -- Activate logger.
srv.GET("/:id", mw.new(function() -- Main Retrieval of Pastes.
local id = params("id") -- Get ID
if #id ~= 8 then
conte... | -- CPaste, micro pastebin running on Carbon
print("Morning, Ladies and Gentlemen, CPaste here.")
-- Settings:
ret = dofile("settings.lua")
-- Actual Code:
srv.Use(mw.Logger()) -- Activate logger.
srv.GET("/:id", mw.new(function() -- Main Retrieval of Pastes.
local id = params("id") -- Get ID
if #id ~= 8 then
conte... | Some fixes | Some fixes
| Lua | mit | carbonsrv/cpaste,vifino/cpaste |
49fdced670748dbd453a1c9fe1941d4676e3d368 | RiriTamanegi/simplejutsu.lua | RiriTamanegi/simplejutsu.lua | local prefix = 'znbja_' -- global prefix for classes and IDs
local arg = {...}
local function array(tab)
return tab and setmetatable(tab,table) or setmetatable({},table)
end
-- Add some functions to table to be used as a special metatable
function table:map(func)
local arr = array{}
for i=1, #self do
arr:ins... | local prefix = 'znbja_' -- global prefix for classes and IDs
local arg = {'jutsu/Passive/Clan.yaml'}
local function array(tab)
return tab and setmetatable(tab,table) or setmetatable({},table)
end
-- Add some functions to table to be used as a special metatable
function table:map(func)
local arr = array{}
for i=1... | Squash some bugs | Squash some bugs
| Lua | unlicense | Zee1234/HTML-CSS |
b7f3c0829808efd302f396610374037f0c9a88c1 | src/cosy/proxy/remember_path.lua | src/cosy/proxy/remember_path.lua | local proxy = require "cosy.util.proxy"
local copy = require "cosy.util.shallow_copy"
local tags = require "cosy.util.tags"
local PATH = tags.PATH
local remember_path = proxy {}
local forward = remember_path.__index
local path = proxy {}
function path.__concat (lhs, rhs)
local result = copy (lhs)
result ... | local proxy = require "cosy.util.proxy"
local copy = require "cosy.util.shallow_copy"
local tags = require "cosy.util.tags"
local PATH = tags.PATH
local IS_VOLATILE = tags.IS_VOLATILE
local remember_path = proxy {}
local forward = remember_path.__index
local path = proxy {}
function path.__concat (lhs,... | Fix the volatile detection. | Fix the volatile detection.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
19e72e4e0672292c9fd853e21c4953e32023a479 | lua/String.lua | lua/String.lua | local squote = "'"
local dquote = '"'
-- escape "sequences"
local escapeSequences = {
a = '\a',
b = '\b',
f = '\f',
r = '\r',
n = '\n',
t = '\t',
v = '\v',
['"'] = '"',
["'"] = "'",
['\\'] = '\\'
}
local pads = {
z = "\\z",
x = "\\x",
['0'] = '\\0',
['1'] = '\\1',
['2'] = '\\2',
['3'] ... | local squote = "'"
local dquote = '"'
local function chartopad(c)
return string.format("\\%03d", string.byte(c))
end
local pads = {
z = "\\z",
x = "\\x",
['0'] = '\\0',
['1'] = '\\1',
['2'] = '\\2',
['3'] = '\\3',
['4'] = '\\4',
['5'] = '\\5',
['6'] = '\\6',
['7'] = '\\7',
['8'] = '\\8',
['9... | Fix bugs and screw 5.0 compat | Fix bugs and screw 5.0 compat
| Lua | mit | SoniEx2/Stuff,SoniEx2/Stuff |
bb47bcc126e501d4f04dd42f7ddc7b93efe67aa8 | mod_admin_web/admin_web/mod_admin_web.lua | mod_admin_web/admin_web/mod_admin_web.lua | -- Copyright (C) 2010 Florian Zeitz
--
-- This file is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- <session xmlns="http://prosody.im/streams/c2s" jid="alice@example.com/brussels">
-- <encrypted/>
-- <compressed/>
-- </session>
-- <session xmlns="http://prosod... | -- Copyright (C) 2010 Florian Zeitz
--
-- This file is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- <session xmlns="http://prosody.im/streams/c2s" jid="alice@example.com/brussels">
-- <encrypted/>
-- <compressed/>
-- </session>
-- <session xmlns="http://prosod... | mod_admin_web: Fix initialisation code, undeclared variable and wrong event scope | mod_admin_web: Fix initialisation code, undeclared variable and wrong event scope
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
b6a7261bec9014169465984fffa4fa60f6b4995b | 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
... | Fix lazyloading for open-browser.vim | Fix lazyloading for open-browser.vim
| Lua | mit | tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles |
6b69c65fe69b58ae796352d18b564642bfb29bee | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | modules/freifunk: fix same problem | modules/freifunk: fix same problem
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci |
a48897ded6e1bdbaa163ea71963bb35ae76a2d37 | lua/entities/gmod_wire_expression2/core/timer.lua | lua/entities/gmod_wire_expression2/core/timer.lua | /******************************************************************************\
Timer support
\******************************************************************************/
local timerid = 0
local function Execute(self, name)
self.data.timer.runner = name
self.data['timer'].timers[name] = nil
if(self.entity... | /******************************************************************************\
Timer support
\******************************************************************************/
local timerid = 0
local function Execute(self, name)
self.data.timer.runner = name
self.data['timer'].timers[name] = nil
if(self.entity... | Fix stopping and starting timer within it's own callback | Fix stopping and starting timer within it's own callback
| Lua | apache-2.0 | garrysmodlua/wire,sammyt291/wire,thegrb93/wire,dvdvideo1234/wire,wiremod/wire,NezzKryptic/Wire,Grocel/wire |
d596515f0df6d1f7de045d4c4f724e7f24d094e4 | 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: Fixed http listener creation syntax. (Please document that in the API, that would avoid my brain overheating, thank you.) | mod_register_json: Fixed http listener creation syntax. (Please document that in the API, that would avoid my brain overheating, thank you.)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
377679bfc578fbc2e62f626e580c9f057415b888 | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | mod_s2s_auth_dane: Fix for a17c2c4043e5 | mod_s2s_auth_dane: Fix for a17c2c4043e5
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
0b10ae66a3e6af514d97fd54e376cbfafa767329 | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | mod_s2s_auth_dane/mod_s2s_auth_dane.lua | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | -- mod_s2s_auth_dane
-- Copyright (C) 2013-2014 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- In your DNS, put
-- _xmpp-server.example.com. IN TLSA 3 0 1 <sha256 hash of certificate>
--
-- Known issues:
-- Race condition
-- Could be done much cleaner if mod_s2s was using util.async
--
-- TODO Things to test/ha... | mod_s2s_auth_dane: Pause s2sin while doing SRV and TLSA lookups, fixes race condition (Can haz util.async plz) | mod_s2s_auth_dane: Pause s2sin while doing SRV and TLSA lookups, fixes race condition (Can haz util.async plz)
| Lua | mit | crunchuser/prosody-modules,BurmistrovJ/prosody-modules,either1/prosody-modules,iamliqiang/prosody-modules,LanceJenkinZA/prosody-modules,softer/prosody-modules,1st8/prosody-modules,NSAKEY/prosody-modules,vince06fr/prosody-modules,crunchuser/prosody-modules,iamliqiang/prosody-modules,drdownload/prosody-modules,dhotson/pr... |
e8a99110abbae47ee07dc2f3439c4e90e6790c1f | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | require "luci.sys"
require "luci.tools.webadmin"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- System --
f = SimpleForm("syst... | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | Fix display of v6 Routing metric on Freifunk status pages | Fix display of v6 Routing metric on Freifunk status pages
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3891 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | vhpham80/luci,dtaht/cerowrt-luci-3.3,ch3n2k/luci,jschmidlapp/luci,freifunk-gluon/luci,zwhfly/openwrt-luci,gwlim/luci,phi-psi/luci,phi-psi/luci,dtaht/cerowrt-luci-3.3,projectbismark/luci-bismark,8devices/carambola2-luci,dtaht/cerowrt-luci-3.3,freifunk-gluon/luci,yeewang/openwrt-luci,eugenesan/openwrt-luci,saraedum/luci-... |
25e48b20a8b41e5c5d9d110d7a0e6be54f337232 | src_trunk/resources/job-system/trucker/s_trucker_job.lua | src_trunk/resources/job-system/trucker/s_trucker_job.lua | function giveTruckingMoney(wage)
exports.global:givePlayerSafeMoney(source, wage)
end
addEvent("giveTruckingMoney", true)
addEventHandler("giveTruckingMoney", getRootElement(), giveTruckingMoney)
function respawnTruck(vehicle)
removePedFromVehicle(source, vehicle)
respawnVehicle(vehicle)
setElementData(ve... | function giveTruckingMoney(wage)
exports.global:givePlayerSafeMoney(source, wage)
end
addEvent("giveTruckingMoney", true)
addEventHandler("giveTruckingMoney", getRootElement(), giveTruckingMoney)
function respawnTruck(vehicle)
removePedFromVehicle(source, vehicle)
respawnVehicle(vehicle)
setElementData(ve... | Fixed trucker job pt 1 | Fixed trucker job pt 1
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@917 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
58749afc728c28ba93bb7764408404a699fafc28 | modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua | modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m = ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m = ... | modules/admin-full: fix dnsmasq page | modules/admin-full: fix dnsmasq page
| Lua | apache-2.0 | remakeelectric/luci,nwf/openwrt-luci,openwrt/luci,thess/OpenWrt-luci,fkooman/luci,Hostle/luci,keyidadi/luci,oyido/luci,NeoRaider/luci,MinFu/luci,sujeet14108/luci,tcatm/luci,Sakura-Winkey/LuCI,shangjiyu/luci-with-extra,harveyhu2012/luci,RedSnake64/openwrt-luci-packages,kuoruan/lede-luci,Noltari/luci,lcf258/openwrtcn,mar... |
0650de4cd010d5d780dc255ef4f9d9503e76b553 | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | require "luci.sys"
require "luci.tools.webadmin"
local bit = require "bit"
local uci = luci.model.uci.cursor_state()
local ffzone = luci.tools.webadmin.firewall_find_zone("freifunk")
local ffznet = ffzone and uci:get("firewall", ffzone, "network")
local ffwifs = ffznet and luci.util.split(ffznet, " ") or {}
-- Syste... | modules/freifunk: fix same problem | modules/freifunk: fix same problem
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5150 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
c45a4613ce40f939b52c2ccd883712ff30d54dcc | xmake/core/sandbox/modules/import/lib/detect/cache.lua | xmake/core/sandbox/modules/import/lib/detect/cache.lua | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | fix detect cache bug | fix detect cache bug
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake |
8c93ac8ea3f90546208ce9b3d94db39b2fa7b003 | npc/base/talk.lua | npc/base/talk.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | Fix easyNPC talk | Fix easyNPC talk
* Define talkNPCEntry before using it
* Use correct tables for condition and consequence classes
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content |
09220a941f3df746140b3a526bc3ac4405e55716 | Shilke2D/Core/Juggler.lua | Shilke2D/Core/Juggler.lua | --[[---
A Juggler animates objects implementing IAnimatable interface.
A juggler is a simple object. It does no more than
saving a list of objects implementing "IAnimatable" and advancing
their time if it is told to do so (by calling its own "advanceTime"
method). When an animation is completed, it throws it away. ... | --[[---
A Juggler animates objects implementing IAnimatable interface.
A juggler is a simple object. It does no more than
saving a list of objects implementing "IAnimatable" and advancing
their time if it is told to do so (by calling its own "advanceTime"
method). When an animation is completed, it throws it away. ... | Simplified logic / fix of juggler add/remove/clear | Simplified logic / fix of juggler add/remove/clear
- fixed clear logic
- simplified add/remove calls
| Lua | mit | Shrike78/Shilke2D |
9e08be7b28596b1f377df21b7aaf6a7ba65b71d3 | lua_modules/http/httpserver.lua | lua_modules/http/httpserver.lua | ------------------------------------------------------------------------------
-- HTTP server module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
local collectgarbage, tonumber, tostring = col... | ------------------------------------------------------------------------------
-- HTTP server module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
------------------------------------------------------------------------------
local collectgarbage, tonumber, tostring = col... | httpserver: fix memory leak | httpserver: fix memory leak
There was a memory leak related to not dropping all references to
fifosock's ssend.
| Lua | mit | HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,eku/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,eku/nodemcu-firmware,HEYAHONG/nodemcu-firmware,vsky279/nodemcu-firmware,FelixPe/nodemcu-firmware,vsky279/nodemcu-firmware,eku/nodemcu-firmware,HEYAHONG/nodemcu-firmware,vsky279/nodemcu-firmware,eku... |
2715eb54306984d24cd31dcb6e809232572cbe32 | modules/lua/commands.lua | modules/lua/commands.lua | -- Copyright 2007-2008 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
---
-- Commands for the lua module.
module('_m.lua.commands', package.seeall)
---
-- Patterns for auto 'end' completion for control structures.
-- @class table
-- @name control_structure_patterns
-- @see try_to_autocomplete_end
local contr... | -- Copyright 2007-2008 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
---
-- Commands for the lua module.
module('_m.lua.commands', package.seeall)
---
-- Patterns for auto 'end' completion for control structures.
-- @class table
-- @name control_structure_patterns
-- @see try_to_autocomplete_end
local contr... | Fix bug when file is not matched in modules/lua/commands.lua. | Fix bug when file is not matched in modules/lua/commands.lua.
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
1ff4e26aa81819ae5d72476b8b47300a7ae74333 | core/xmlhandlers.lua | core/xmlhandlers.lua | -- Prosody IM v0.4
-- 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.
--
require "util.stanza"
local st = stanza;
local tostring = tostring;
local pairs = pairs;
local ip... | -- Prosody IM v0.4
-- 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.
--
require "util.stanza"
local st = stanza;
local tostring = tostring;
local pairs = pairs;
local ip... | xmlhandlers: Fix tag pattern again for the default namespace | xmlhandlers: Fix tag pattern again for the default namespace
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
0d097bd44950e3439d7200a1f2c81a8d8c9e9b39 | src/plugins/lua/trie.lua | src/plugins/lua/trie.lua | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
lis... | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
lis... | Fix trie plugin. | Fix trie plugin.
| Lua | apache-2.0 | andrejzverev/rspamd,amohanta/rspamd,awhitesong/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,dark-al/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,dark-al/rspamd,andrejzverev/rspamd,awhitesong/rspamd,awhitesong/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,mi... |
141402dd55fe346c6264066fc41716082ab76410 | btCommandScripts/move.lua | btCommandScripts/move.lua | VFS.Include(LUAUI_DIRNAME .. "Widgets/BtCreator/debug_utils.lua", nil, VFS.RAW_FIRST)
local cmd = {}
cmd.targets = {}
cmd.n = 0
function cmd.run(unitIds, parameter)
cmd.indexOfComma = string.find(parameter, ",")
dx = parameter:sub(1, cmd.indexOfComma - 1)
dy = parameter:sub(cmd.indexOfComma + 1)
Spring.Echo... | VFS.Include(LUAUI_DIRNAME .. "Widgets/BtCreator/debug_utils.lua", nil, VFS.RAW_FIRST)
local cmd = {}
cmd.targets = {}
cmd.n = 0
function cmd.run(unitIds, parameter)
cmd.indexOfComma = string.find(parameter, ",")
dx = parameter:sub(1, cmd.indexOfComma - 1)
dz = parameter:sub(cmd.indexOfComma + 1)
Spring.Echo... | Fixed move - replaced y coordinate with the correct z coord. | Fixed move - replaced y coordinate with the correct z coord.
| Lua | mit | MartinFrancu/BETS |
ca971227b88f004f6e4ecb0d2b3ac23086a97f5f | src/daemon.lua | src/daemon.lua | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("... | --[[
transitd daemon main file
@file daemon.lua
@license The MIT License (MIT)
@author Alex <alex@maximum.guru>
@author William Fleurant <william@netblazr.com>
@author Serg <sklassen410@gmail.com>
@copyright 2016 Alex
@copyright 2016 William Fleurant
@copyright 2016 Serg
--]]
local config = require("... | Fixed issue with main thread exit | Fixed issue with main thread exit
| Lua | mit | transitd/transitd,pdxmeshnet/mnigs,transitd/transitd,pdxmeshnet/mnigs,transitd/transitd,intermesh-networks/transitd,intermesh-networks/transitd |
fd15a24af928838c2d640b8c1162c98933d53cf4 | core/hyphenator-liang.lua | core/hyphenator-liang.lua | local function addPattern(h, p)
local t = h.trie;
for char in p:gmatch('%D') do
if not(t[char]) then t[char] = {} end
t = t[char]
end
t["_"] = {};
local lastWasDigit = 0
for char in p:gmatch('.') do
if char:find("%d") then
lastWasDigit = 1
table.insert(t["_"], tonumber(char))
els... | local function addPattern(h, p)
local t = h.trie;
bits = SU.splitUtf8(p)
for i = 1,#bits do char = bits[i]
if not char:find("%d") then
if not(t[char]) then t[char] = {} end
t = t[char]
end
end
t["_"] = {};
local lastWasDigit = 0
for i = 1,#bits do char = bits[i]
if char:find("%d") ... | UTF8-ify hyphenation. Fixes #195 | UTF8-ify hyphenation. Fixes #195 | Lua | mit | simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,simoncozens/sile |
bfed32e97be2782eb3f26e1e63d823d901f8a7ee | SorterMeter.lua | SorterMeter.lua | local A, L = unpack(select(2, ...))
local M = A.sorter:NewModule("SorterMeter")
A.sorter.meter = M
local tmp1 = {}
local format, ipairs, pairs, select, strsplit, tinsert, wipe = string.format, ipairs, pairs, select, strsplit, table.insert, wipe
M.snapshot = {}
local function loadSkada()
if not Skada.total or not S... | local A, L = unpack(select(2, ...))
local M = A.sorter:NewModule("SorterMeter")
A.sorter.meter = M
local tmp1 = {}
local format, ipairs, pairs, select, strsplit, tinsert, wipe = string.format, ipairs, pairs, select, strsplit, table.insert, wipe
M.snapshot = {}
local function loadSkada()
if not Skada.total or not S... | fix ref missed in refactoring | fix ref missed in refactoring
| Lua | mit | bencvt/FixGroups |
48ea4aab5cb6b9bb855a2cf91e4cb0c80fdbfeb3 | emacs.lua | emacs.lua | local emacs = {}
local capture = function(isNote)
local key = ""
if isNote then
key = "\"z\"" -- key is a string associated with org-capture template
end
local currentApp = hs.window.focusedWindow();
local pid = "\"" .. currentApp:pid() .. "\" "
local title = "\"" .. currentApp:title() .. "\" "
local... | local emacs = {}
local capture = function(isNote)
local key = ""
if isNote then
key = "\"z\"" -- key is a string associated with org-capture template
end
local currentApp = hs.window.focusedWindow();
local pid = "\"" .. currentApp:pid() .. "\" "
local title = "\"" .. currentApp:title() .. "\" "
local... | Fixes fixEmacsFrame | Fixes fixEmacsFrame
previously it wasn't working properly, with the latest Hammerspoon now it does
| Lua | mit | agzam/spacehammer |
21dbc41dc38f5e57f1d43be9320b3175d7b19c98 | MMOCoreORB/bin/scripts/managers/jedi/village/phase1/fs_patrol.lua | MMOCoreORB/bin/scripts/managers/jedi/village/phase1/fs_patrol.lua | local Patrol = require("quest.tasks.patrol")
local ObjectManager = require("managers.object.object_manager")
local QuestManager = require("managers.quest.quest_manager")
local VillageJediManagerCommon = require("managers.jedi.village.village_jedi_manager_common")
require("utils.helpers")
FsPatrol = Patrol:new {
-- Ta... | local Patrol = require("quest.tasks.patrol")
local ObjectManager = require("managers.object.object_manager")
local QuestManager = require("managers.quest.quest_manager")
local VillageJediManagerCommon = require("managers.jedi.village.village_jedi_manager_common")
require("utils.helpers")
FsPatrol = Patrol:new {
-- Ta... | [fixed] Sarguillo patrols failing after completing a previous patrol | [fixed] Sarguillo patrols failing after completing a previous patrol
Change-Id: I3d2389b6ae20aa57029e402cb27f4b7f03504d4a
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo |
eccc343b24c7f976a12229821b654261698dcfa2 | extensions/urlevent/urlevent.lua | extensions/urlevent/urlevent.lua | --- === hs.urlevent ===
---
--- Allows Hammerspoon to respond to URLs
--- Hammerspoon is configured to react to URLs that start with `hammerspoon://` when they are opened by OS X.
--- This extension allows you to register callbacks for these URL events and their parameters, offering a flexible way to receive events fro... | --- === hs.urlevent ===
---
--- Allows Hammerspoon to respond to URLs
--- Hammerspoon is configured to react to URLs that start with `hammerspoon://` when they are opened by OS X.
--- This extension allows you to register callbacks for these URL events and their parameters, offering a flexible way to receive events fro... | Fix up the docstrings for hs.urlevent.mailtoCallback | Fix up the docstrings for hs.urlevent.mailtoCallback
| Lua | mit | asmagill/hammerspoon,asmagill/hammerspoon,asmagill/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,CommandPost/CommandPost-App,asmagill/hammerspoon,CommandPost/CommandPost-App,latenitefilms/hammerspoon,latenitefilms/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,CommandPost/CommandPost-... |
c59e925d8e2919819b8dfe8e4969fac911b9be4a | mods/BeardLib-Editor/Classes/Map/Elements/navobstacleelement.lua | mods/BeardLib-Editor/Classes/Map/Elements/navobstacleelement.lua | EditorNavObstacle = EditorNavObstacle or class(MissionScriptEditor) --Currently broken
function EditorNavObstacle:create_element()
EditorNavObstacle.super.create_element(self)
self._element.class = "ElementNavObstacle"
self._element.values.obstacle_list = {}
self._element.values.operation = "add"
self._guis = {}... | EditorNavObstacle = EditorNavObstacle or class(MissionScriptEditor) --Currently broken
function EditorNavObstacle:create_element()
EditorNavObstacle.super.create_element(self)
self._element.class = "ElementNavObstacle"
self._element.values.obstacle_list = {}
self._element.values.operation = "add"
self._guis = {}... | Fixed #257 | Fixed #257
| Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
e61e5baee780cde9af26c8c64133b124c053df70 | src/plugins/lua/whitelist.lua | src/plugins/lua/whitelist.lua | -- Module that add symbols to those hosts or from domains that are contained in whitelist
local symbol_ip = nil
local symbol_from = nil
local r = nil
local h = nil -- radix tree and hash table
function check_whitelist (task)
if symbol_ip then
-- check client's ip
local ipn = task:get_from_ip_num()
if ipn the... | -- Module that add symbols to those hosts or from domains that are contained in whitelist
local symbol_ip = nil
local symbol_from = nil
local r = nil
local h = nil -- radix tree and hash table
local function check_whitelist (task)
if symbol_ip then
-- check client's ip
local ipn = task:get_from_ip_num()
if i... | Fix whitelist module. | Fix whitelist module.
| Lua | apache-2.0 | minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,amohanta/rspamd,awhitesong/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,dark-al/rspamd,awhitesong/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,amohanta/rspamd,AlexeySa/rspamd,awhitesong/rspamd,dark-al/rspamd,minaev... |
c2989af91bac22014b704a8101c7752442dfe7e8 | MMOCoreORB/bin/scripts/mobile/lok/serverobjects.lua | MMOCoreORB/bin/scripts/mobile/lok/serverobjects.lua | includeFile("lok/blood_razor_berzerker.lua")
includeFile("lok/blood_razor_captain.lua")
includeFile("lok/blood_razor_cutthroat.lua")
includeFile("lok/blood_razor_destroyer.lua")
includeFile("lok/blood_razor_elite_pirate.lua")
includeFile("lok/blood_razor_guard.lua")
includeFile("lok/blood_razor_officer.lua")
includeFil... | includeFile("lok/blood_razor_berzerker.lua")
includeFile("lok/blood_razor_captain.lua")
includeFile("lok/blood_razor_cutthroat.lua")
includeFile("lok/blood_razor_destroyer.lua")
includeFile("lok/blood_razor_elite_pirate.lua")
includeFile("lok/blood_razor_guard.lua")
includeFile("lok/blood_razor_officer.lua")
includeFil... | (unstable) [fixed] missing npc template for rebel theme park. | (unstable) [fixed] missing npc template for rebel theme park.
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5938 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/lege... |
a39f51e4c5072cea222be88e3f65d570b26447ea | wyx/map/World.lua | wyx/map/World.lua | local Class = require 'lib.hump.class'
local Dungeon = getClass 'wyx.map.Dungeon'
local EntityRegistry = getClass 'wyx.entity.EntityRegistry'
local HeroEntityFactory = getClass 'wyx.entity.HeroEntityFactory'
local PrimeEntityChangedEvent = getClass 'wyx.event.PrimeEntityChangedEvent'
local message = getClass 'wyx.compo... | local Class = require 'lib.hump.class'
local Dungeon = getClass 'wyx.map.Dungeon'
local EntityRegistry = getClass 'wyx.entity.EntityRegistry'
local HeroEntityFactory = getClass 'wyx.entity.HeroEntityFactory'
local PrimeEntityChangedEvent = getClass 'wyx.event.PrimeEntityChangedEvent'
local message = getClass 'wyx.compo... | fix hero position not being loaded | fix hero position not being loaded
| Lua | mit | scottcs/wyx |
04808d991f01ab40a1cc75d6e42c3c53a5d9b30d | interface/configenv/flow/mode.lua | interface/configenv/flow/mode.lua | local function _update_delay_one(self)
self.updatePacket = self._update_packet
self._update_packet = nil
end
local _single_index, _alt_index = 0, 0
local _valid_modes = {
none = true, -- setting this makes validation easier (see option.test)
single = function(dv, pkt)
dv[_single_index + 1]:update()
dv:applyAll... | local flow
local function _update_delay_one()
flow.updatePacket = flow._update_packet
flow._update_packet = nil
end
-- closures are ok because the script is reinstanced per slave-thread
local _single_index, _alt_index = 0, 0
local _valid_modes = {
none = true, -- setting this makes validation easier (see option.tes... | Fixed modes never activating. | Fixed modes never activating.
| Lua | mit | dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen,emmericp/MoonGen,scholzd/MoonGen |
568c9e16c2bdbd0b836515f2031939e37cfd363e | ssbase/gamemode/sv_profiles.lua | ssbase/gamemode/sv_profiles.lua | ---------------------------
-- Bunny Hop --
-- Created by xAaron113x --
---------------------------
local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"}
local update_filter = {"id", "steamI... | ---------------------------
-- Bunny Hop --
-- Created by xAaron113x --
---------------------------
local selects = {"exp", "id", "steamId64", "lastLoginIp", "playtime", "lastLoginTimestamp", "steamId", "rank", "name", "money", "store", "equipped", "avatarUrl"}
local update_filter = {"id", "steamI... | A fix/debug for avatar updating | A fix/debug for avatar updating | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
91e1f02c9889d0ca16a02225520c652c2d6acaba | mock/common/ScriptedBehaviour.lua | mock/common/ScriptedBehaviour.lua | module 'mock'
--------------------------------------------------------------------
CLASS: ScriptedBehaviour ( Behaviour )
:MODEL{
Field 'script' :asset( 'com_script' ) :getset( 'Script' );
}
registerComponent( 'ScriptedBehaviour', ScriptedBehaviour )
function ScriptedBehaviour:__init()
self.scriptPath = false... | module 'mock'
--------------------------------------------------------------------
CLASS: ScriptedBehaviour ( Behaviour )
:MODEL{
Field 'script' :asset( 'com_script' ) :getset( 'Script' );
}
registerComponent( 'ScriptedBehaviour', ScriptedBehaviour )
function ScriptedBehaviour:__init()
self.scriptPath = false... | fixed - ScriptBehaviours msgListener | fixed - ScriptBehaviours msgListener
| Lua | mit | tommo/mock |
9c7f2a13a556bb359ca940ea33c511f56921cd1d | lua/entities/gmod_wire_value.lua | lua/entities/gmod_wire_value.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Value"
ENT.WireDebugName = "Value"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Outputs = Wire_C... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Value"
ENT.WireDebugName = "Value"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Outputs = Wire_C... | fixed hi-speed for constant value | fixed hi-speed for constant value
Fixes #844
| Lua | apache-2.0 | plinkopenguin/wiremod,CaptainPRICE/wire,mms92/wire,dvdvideo1234/wire,bigdogmat/wire,thegrb93/wire,immibis/wiremod,wiremod/wire,garrysmodlua/wire,Python1320/wire,NezzKryptic/Wire,rafradek/wire,mitterdoo/wire,Grocel/wire,sammyt291/wire,notcake/wire |
e5c0583dac00d684f01acf31ea83281c4c599ec0 | lua/starfall/libs_sh/vectors.lua | lua/starfall/libs_sh/vectors.lua | SF.Vectors = {}
--- Vector type
-- @shared
local vec_methods, vec_metamethods = SF.Typedef( "Vector" )
local wrap, unwrap = SF.CreateWrapper( vec_metamethods, true, false, debug.getregistry().Vector )
SF.DefaultEnvironment.Vector = function ( ... )
return wrap( Vector( ... ) )
end
SF.Vectors.Wrap = wrap
SF.Vectors.... | SF.Vectors = {}
--- Vector type
-- @shared
local vec_methods, vec_metamethods = SF.Typedef( "Vector" )
local wrap, unwrap = SF.CreateWrapper( vec_metamethods, true, false, debug.getregistry().Vector )
SF.DefaultEnvironment.Vector = function ( ... )
return wrap( Vector( ... ) )
end
SF.Vectors.Wrap = wrap
SF.Vectors.... | Added v / n. __div metamethod to vectors. | Added v / n. __div metamethod to vectors.
Fixes #216
| Lua | bsd-3-clause | Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall |
c5535717e3a8081dbbd39a57c6845a9b04b0d863 | deps/process.lua | deps/process.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | Fix process.stdin abort when stdin is redirected from a file | Fix process.stdin abort when stdin is redirected from a file
This is a hacky band-aid fix that should be replaced with a more comprehensive solution, see https://github.com/luvit/luvit/issues/1094
This only 'fixes' process.stdin, but utils.stdin and pretty-print.stdin will still abort if they are attempted to be read... | Lua | apache-2.0 | zhaozg/luvit,luvit/luvit,zhaozg/luvit,luvit/luvit |
171744c989e81edb2cf2676914e75c38854a3e81 | packages/lime-webui/src/model/essentials.lua | packages/lime-webui/src/model/essentials.lua | --[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
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 ... | --[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
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 ... | lime-webui: fix uci name for lime.network.main_ipv[46] -> _address | lime-webui: fix uci name for lime.network.main_ipv[46] -> _address
| Lua | agpl-3.0 | libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages |
bf7529f939ae793dc7d64e87af85e582f09eec42 | core/componentmanager.lua | core/componentmanager.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 prosody = _G.prosody;
local log = require "util.logger".init("componentmanager");
local configmanag... | -- 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 prosody = _G.prosody;
local log = require "util.logger".init("componentmanager");
local configmanag... | componentmanager: Added a FIXME comment. | componentmanager: Added a FIXME comment.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
38747256c0d140236a38280ba97415e7400afe6d | src/lua-factory/sources/grl-metrolyrics.lua | src/lua-factory/sources/grl-metrolyrics.lua | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your opt... | metrolyrics: fix source by removing noise | metrolyrics: fix source by removing noise
Some changes in the metrolyrics website included more html noise in the
lyrics.
https://bugzilla.gnome.org/show_bug.cgi?id=754275
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins |
41d5eb5a80aa784666b3892c3dd2241e6b46b2d8 | viewlog.lua | viewlog.lua | local lgi = require('lgi')
local Gio = lgi.require('Gio')
local GLib = lgi.require('GLib')
hexchat.register("viewlog", "1.2.0", "Open log file for the current context")
--[=[
We would like to use Gio.AppInfo.get_recommended_for_type("text/plain"),
but it doesn't work (on Windows).
Gio.AppInfo.launch_def... | local lgi = require('lgi')
local Gio = lgi.require('Gio')
local GLib = lgi.require('GLib')
hexchat.register("viewlog", "1.2.1", "Open log file for the current context")
--[=[
We would like to use Gio.AppInfo.get_recommended_for_type("text/plain"),
but it doesn't work (on Windows).
Gio.AppInfo.launch_def... | Fix forward slashes in channel names | Fix forward slashes in channel names
| Lua | mit | FichteFoll/hexchat-addons |
cca08620c18593c58a149cc187d28b65e4c9b27e | agents/monitoring/lua/lib/info.lua | agents/monitoring/lua/lib/info.lua | local Object = require('core').Object
local JSON = require('json')
--[[ Info ]]--
local Info = Object:extend()
function Info:initialize()
self._s = sigar:new()
self._params = {}
end
function Info:serialize()
return {
jsonPayload = JSON.stringify(self._params)
}
end
local NilInfo = Info:extend()
--[[ CPU... | local Object = require('core').Object
local JSON = require('json')
--[[ Info ]]--
local Info = Object:extend()
function Info:initialize()
self._s = sigar:new()
self._params = {}
end
function Info:serialize()
return {
jsonPayload = JSON.stringify(self._params)
}
end
local NilInfo = Info:extend()
--[[ CPU... | fix network info | fix network info
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
302a46e87adaf3459cc0a079cf2b7a39613f494e | MMOCoreORB/bin/scripts/object/tangible/lair/base/objective_dantari_monolith.lua | MMOCoreORB/bin/scripts/object/tangible/lair/base/objective_dantari_monolith.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | [Fixed] Displayed name on Dantari totems - mantis 3861/3538 | [Fixed] Displayed name on Dantari totems - mantis 3861/3538
Change-Id: I070fedf5038775fdf808efb063accc78387e3b7d
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
fb71a1b39bdb4775c310f7682814cb336ab09ee3 | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i1... | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i1... | applications/luci-diag-devinfo: fix lost description in netdiscover_devinfo.lua, patch by "BasicXP" <basicxp@ubuntu.com> | applications/luci-diag-devinfo: fix lost description in netdiscover_devinfo.lua, patch by "BasicXP" <basicxp@ubuntu.com>
| Lua | apache-2.0 | artynet/luci,jlopenwrtluci/luci,oyido/luci,bittorf/luci,maxrio/luci981213,tcatm/luci,shangjiyu/luci-with-extra,mumuqz/luci,Sakura-Winkey/LuCI,NeoRaider/luci,MinFu/luci,slayerrensky/luci,marcel-sch/luci,zhaoxx063/luci,harveyhu2012/luci,jchuang1977/luci-1,shangjiyu/luci-with-extra,cappiewu/luci,NeoRaider/luci,jorgifumi/l... |
dcae5945ac8361f4cfcf348dd12a799a4aa7c5e7 | src/apenode/models/base_model.lua | src/apenode/models/base_model.lua | -- Copyright (C) Mashape, Inc.
local rex = require("rex_pcre")
local Object = require "classic"
local BaseModel = Object:extend()
-------------
-- PRIVATE --
-------------
local function add_error(errors, k, v)
if not errors then errors = {} end
if errors[k] then
local list = {}
table.insert(list, erro... | -- Copyright (C) Mashape, Inc.
local rex = require("rex_pcre")
local Object = require "classic"
local BaseModel = Object:extend()
-------------
-- PRIVATE --
-------------
local function add_error(errors, k, v)
if not errors then errors = {} end
if errors[k] then
local list = {}
table.insert(list, erro... | fixing update | fixing update
| Lua | mit | vmercierfr/kong,xvaara/kong,Kong/kong,isdom/kong,salazar/kong,Kong/kong,vzaramel/kong,akh00/kong,ropik/kong,streamdataio/kong,paritoshmmmec/kong,ccyphers/kong,chourobin/kong,jebenexer/kong,skynet/kong,li-wl/kong,streamdataio/kong,kyroskoh/kong,Kong/kong,jerizm/kong,Mashape/kong,rafael/kong,icyxp/kong,ejoncas/kong,ind9/... |
3f7a06c40351f3ea89d9c943626e94e84bef0cff | what-is-missing_0.18.1/async.lua | what-is-missing_0.18.1/async.lua | local tasks = {}
-- Functions for handling long-running things over a period of time.
Async = {}
Async.__index = Async
local async_tasks = {}
local function add_async_task(task)
for k, existing_task in pairs(async_tasks) do
if existing_task:is_completed() then
async_tasks[k] = task
... | local tasks = {}
-- Functions for handling long-running things over a period of time.
Async = {}
Async.__index = Async
local async_tasks = {}
local function add_async_task(task)
if not async_tasks then
async_tasks = {}
global.async_tasks = async_tasks
end
for k, existing_task in pairs(as... | Async utility: Fix the case when async_tasks does not previously exist | Async utility: Fix the case when async_tasks does not previously exist
| Lua | mit | Zomis/FactorioMods |
4c69cbe24df315ed14ade5026116d69c03b6e85e | test/autobahn_co_client_test.lua | test/autobahn_co_client_test.lua | local uv = require "lluv"
local ut = require "lluv.utils"
local socket = require "lluv.websocket.luasocket"
local stp = require "StackTracePlus"
local Autobahn = require "./autobahn"
local ctx do
local ok, ssl = pcall(require, "lluv.ssl")
if ok then
ctx = assert(ssl.context{
protocol = "tls... | local uv = require "lluv"
local ut = require "lluv.utils"
local socket = require "lluv.websocket.luasocket"
local Autobahn = require "./autobahn"
local ctx do
local ok, ssl = pcall(require, "lluv.ssl")
if ok then
ctx = assert(ssl.context{
protocol = "tlsv1",
certificate = "./ws... | Fix. Remove use StackTraceBack library in test. | Fix. Remove use StackTraceBack library in test.
| Lua | mit | moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket |
57f08426ee9f7bd44a8edc4231b94625e2b580d3 | service/clusterd.lua | service/clusterd.lua | local skynet = require "skynet"
local sc = require "skynet.socketchannel"
local socket = require "skynet.socket"
local cluster = require "skynet.cluster.core"
local config_name = skynet.getenv "cluster"
local node_address = {}
local node_session = {}
local command = {}
local function read_response(sock)
local sz = s... | local skynet = require "skynet"
local sc = require "skynet.socketchannel"
local socket = require "skynet.socket"
local cluster = require "skynet.cluster.core"
local config_name = skynet.getenv "cluster"
local node_address = {}
local node_session = {}
local command = {}
local function read_response(sock)
local sz = s... | concurrent cluster link, fix issue #757 | concurrent cluster link, fix issue #757
| Lua | mit | pigparadise/skynet,codingabc/skynet,bttscut/skynet,hongling0/skynet,icetoggle/skynet,bigrpg/skynet,jxlczjp77/skynet,sanikoyes/skynet,czlc/skynet,bttscut/skynet,codingabc/skynet,firedtoad/skynet,Ding8222/skynet,icetoggle/skynet,sundream/skynet,bigrpg/skynet,sanikoyes/skynet,zhouxiaoxiaoxujian/skynet,zhangshiqian1214/sky... |
cbb0bead6fe87a99f77e0597733dcac453d08097 | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | --[[
Luci statistics - statistics controller module
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.... | Fixed statistics | Fixed statistics
| Lua | apache-2.0 | ReclaimYourPrivacy/cloak-luci,cshore/luci,florian-shellfire/luci,rogerpueyo/luci,LazyZhu/openwrt-luci-trunk-mod,cappiewu/luci,hnyman/luci,Hostle/luci,deepak78/new-luci,Noltari/luci,Hostle/luci,jorgifumi/luci,rogerpueyo/luci,remakeelectric/luci,rogerpueyo/luci,bittorf/luci,teslamint/luci,ollie27/openwrt_luci,kuoruan/led... |
7d3509ddcaab09fdac965ffa3c552b69c6155536 | build/premake5.lua | build/premake5.lua | function setTargetObjDir(outDir)
targetdir(outDir)
objdir(string.lower("../intermediate/%{cfg.shortname}/" .. _ACTION))
targetsuffix(string.lower("_%{cfg.shortname}_" .. _ACTION))
end
function copyfiles(dstDir, srcWildcard)
os.mkdir(dstDir)
local matches = os.matchfiles(srcWildcard)
for _, f in ipairs(matches) d... | function setTargetObjDir(outDir)
targetdir(outDir)
objdir(string.lower("../intermediate/%{cfg.shortname}/" .. _ACTION))
targetsuffix(string.lower("_%{cfg.shortname}_" .. _ACTION))
end
function copyfiles(dstDir, srcWildcard)
os.mkdir(dstDir)
local matches = os.matchfiles(srcWildcard)
for _, f in ipairs(matches) d... | Fix boost linking | Fix boost linking
| Lua | mit | miloyip/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,DavadDi/nativejson-benchmark,DavadDi/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,miloyip/nativejson-benchmark |
d45f27897207edcc82192aef5af9d012956971eb | Peripherals/GPU/modules/cursor.lua | Peripherals/GPU/modules/cursor.lua | --GPU: Mouse Cursor.
--luacheck: push ignore 211
local Config, GPU, yGPU, GPUVars, DevKit = ...
--luacheck: pop
local lg = love.graphics
local events = require("Engine.events")
local PaletteVars = GPUVars.Palette
local RenderVars = GPUVars.Render
local SharedVars = GPUVars.Shared
local WindowVars = GPUVars.Window
l... | --GPU: Mouse Cursor.
--luacheck: push ignore 211
local Config, GPU, yGPU, GPUVars, DevKit = ...
--luacheck: pop
local lg = love.graphics
local events = require("Engine.events")
local PaletteVars = GPUVars.Palette
local RenderVars = GPUVars.Render
local SharedVars = GPUVars.Shared
local WindowVars = GPUVars.Window
l... | Fix identation | Fix identation
Former-commit-id: c1886ee3687eaa5ffa5e748f89c80bab541ce2b3 | Lua | mit | RamiLego4Game/LIKO-12 |
59c131ec774f5571678a56c082842be9ef66071d | modules/textadept/run.lua | modules/textadept/run.lua | -- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
---
-- Module for running/executing source files.
module('_m.textadept.run', package.seeall)
---
-- [Local function] Prints a command to Textadept.
-- @param cmd The OS command executed.
-- @param output The... | -- Copyright 2007-2009 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
---
-- Module for running/executing source files.
module('_m.textadept.run', package.seeall)
---
-- [Local function] Prints a command to Textadept.
-- @param cmd The OS command executed.
-- @param output The... | Bugfixes in modules/textadept/run.lua If buffer.shows_errors, double-click should go to the error as well. Also, if the buffer's filename doesn't exist, don't Run or Compile it. | Bugfixes in modules/textadept/run.lua
If buffer.shows_errors, double-click should go to the error as well. Also, if
the buffer's filename doesn't exist, don't Run or Compile it.
| Lua | mit | jozadaquebatista/textadept,jozadaquebatista/textadept |
5a282abd52cff4c49eb41dede4c9d493b3ae2715 | testserver/item/id_2830_chest.lua | testserver/item/id_2830_chest.lua | -- UPDATE common SET com_script='item.id_2830_chest' WHERE com_itemid=2830;
require("base.common")
require("base.treasure")
module("item.id_2830_chest", package.seeall)
function LookAtItem(User, Item)
local TreasureName = base.treasure.GetTreasureName(tonumber(Item:getData("trsCat")), User:getPlayerLanguage(), f... | -- UPDATE common SET com_script='item.id_2830_chest' WHERE com_itemid=2830;
require("base.common")
require("base.treasure")
module("item.id_2830_chest", package.seeall)
function LookAtItem(User, Item)
local TreasureName = base.treasure.GetTreasureName(tonumber(Item:getData("trsCat")), User:getPlayerLanguage(), f... | lookat fix | lookat fix
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content |
5845be83c1cdc063873a652e122862fc4009f349 | xmake/rules/winsdk/xmake.lua | xmake/rules/winsdk/xmake.lua | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | fix win.sdk rule | fix win.sdk rule
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake |
8aeff3c84496a045088b9b445274b3d934bdf7bc | service/root.lua | service/root.lua | local ltask = require "ltask"
local root = require "ltask.root"
local config = ...
local MESSAGE_ERROR <const> = 3
local MESSAGE_SCHEDULE_NEW <const> = 0
local MESSAGE_SCHEDULE_DEL <const> = 1
local MESSAGE_SCHEDULE_HANG <const> = 2
local S = {}
local anonymous_services = {}
local named_services = {}
local labels ... | local ltask = require "ltask"
local root = require "ltask.root"
local config = ...
local MESSAGE_ERROR <const> = 3
local MESSAGE_SCHEDULE_NEW <const> = 0
local MESSAGE_SCHEDULE_DEL <const> = 1
local MESSAGE_SCHEDULE_HANG <const> = 2
local S = {}
local anonymous_services = {}
local named_services = {}
local labels ... | fixes bug | fixes bug | Lua | mit | cloudwu/ltask |
1a29651ab087e5bff8d392162b19609b1a4f39f5 | test_scripts/Smoke/Resumption/008_Resumption_heartbeat_disconnect.lua | test_scripts/Smoke/Resumption/008_Resumption_heartbeat_disconnect.lua | -- Requirement summary:
-- [Data Resumption]: Data resumption on Unexpected Disconnect
--
-- Description:
-- Check that SDL perform resumption after heartbeat disconnect.
-- 1. Used precondition
-- In smartDeviceLink.ini file HeartBeatTimeout parameter is:
-- HeartBeatTimeout = 7000.
-- App is registerer and a... | -- Requirement summary:
-- [Data Resumption]: Data resumption on Unexpected Disconnect
--
-- Description:
-- Check that SDL perform resumption after heartbeat disconnect.
-- 1. Used precondition
-- In smartDeviceLink.ini file HeartBeatTimeout parameter is:
-- HeartBeatTimeout = 7000.
-- App is registerer and a... | Fix merge conflict | Fix merge conflict
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
37af81e489a1f380b91500495caf1cca47bc8ba0 | kong/plugins/oauth2/migrations/postgres.lua | kong/plugins/oauth2/migrations/postgres.lua | return {
{
name = "2015-08-03-132400_init_oauth2",
up = [[
CREATE TABLE IF NOT EXISTS oauth2_credentials(
id uuid,
name text,
consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE,
client_id text UNIQUE,
client_secret text UNIQUE,
redirect_uri text,... | return {
{
name = "2015-08-03-132400_init_oauth2",
up = [[
CREATE TABLE IF NOT EXISTS oauth2_credentials(
id uuid,
name text,
consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE,
client_id text UNIQUE,
client_secret text UNIQUE,
redirect_uri text,... | hotfix(oauth2) missing migration for postgres (#1911) | hotfix(oauth2) missing migration for postgres (#1911)
| Lua | apache-2.0 | shiprabehera/kong,Kong/kong,Vermeille/kong,jebenexer/kong,salazar/kong,Mashape/kong,beauli/kong,Kong/kong,Kong/kong,akh00/kong,icyxp/kong,li-wl/kong,ccyphers/kong |
58821b4bcb882a40dd8878a6347588a936df9397 | gin/cli/launcher.lua | gin/cli/launcher.lua | -- dep
local ansicolors = require 'ansicolors'
-- gin
local Gin = require 'gin.core.gin'
local BaseLauncher = require 'gin.cli.base_launcher'
local helpers = require 'gin.helpers.common'
-- settings
local nginx_conf_source = 'config/nginx.conf'
local GinLauncher = {}
-- convert true|false to on|off
local function ... | -- dep
local ansicolors = require 'ansicolors'
-- gin
local Gin = require 'gin.core.gin'
local BaseLauncher = require 'gin.cli.base_launcher'
local helpers = require 'gin.helpers.common'
-- settings
local nginx_conf_source = 'config/nginx.conf'
local GinLauncher = {}
-- convert true|false to on|off
local function ... | Fix issue #6. | Fix issue #6.
| Lua | mit | ostinelli/gin,istr/gin |
a73186b76c6e24ff22139c06db22642cc4a0ed5c | Modules/Utility/Raycaster.lua | Modules/Utility/Raycaster.lua | --- Repeats raycasting attempts while ignoring items via a filter function
-- @classmod Raycaster
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Workspace = game:GetService("Workspace")
local Table = require("Table")
local Raycaster = {}
Raycaster.ClassName = "Raycaste... | --- Repeats raycasting attempts while ignoring items via a filter function
-- @classmod Raycaster
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Workspace = game:GetService("Workspace")
local Table = require("Table")
local Raycaster = {}
Raycaster.ClassName = "Raycaste... | Fix raycaster | Fix raycaster
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
66ab74194d5270b2ba8dd028aead6c7f9a661d50 | mods/mesecons/mesecons_blinkyplant/init.lua | mods/mesecons/mesecons_blinkyplant/init.lua | -- The BLINKY_PLANT
local toggle_timer = function (pos)
local timer = minetest.get_node_timer(pos)
if timer:is_started() then
timer:stop()
else
timer:start(mesecon.setting("blinky_plant_interval", 3))
end
end
local on_timer = function (pos)
local node = minetest.get_node(pos)
if(mesecon.flipstate(pos, node)... | -- The BLINKY_PLANT
local toggle_timer = function (pos)
local timer = minetest.get_node_timer(pos)
if timer:is_started() then
timer:stop()
else
timer:start(mesecon.setting("blinky_plant_interval", 3))
end
end
local on_timer = function (pos)
-- DO NOT TOUCH OR.. THREATS! Thanks, MFF
local activate = false
f... | [mesecons] Add back blinky fix with flags | [mesecons] Add back blinky fix with flags
| Lua | unlicense | LeMagnesium/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/se... |
4988af5db4ee8887567bad1763fbac3df267950a | src/base/os.lua | src/base/os.lua | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | Fixed broken lib search path from last commit (h/t coh) | Fixed broken lib search path from last commit (h/t coh)
| Lua | bsd-3-clause | warrenseine/premake,annulen/premake,annulen/premake,annulen/premake,warrenseine/premake,warrenseine/premake,Lusito/premake,Lusito/premake,annulen/premake,Lusito/premake,Lusito/premake |
2487ed2856f91cd0e55fc52d5dd20192f8760886 | hikyuu_cpp/unit_test/xmake.lua | hikyuu_cpp/unit_test/xmake.lua | add_requires("doctest")
function coverage_report(target)
if is_mode("coverage") and not is_plat("windows") and not (linuxos.name() == "ubuntu" and linuxos.version():lt("20.0")) then
-- 如需分支覆盖,须在下面 lcov, genhtml 命令后都加入: --rc lcov_branch_coverage=1
print("Processing coverage info ...")
... | add_requires("doctest")
function coverage_report(target)
if is_mode("coverage") and not is_plat("windows") and not (linuxos.name() == "ubuntu" and linuxos.version():lt("20.0")) then
-- 如需分支覆盖,须在下面 lcov, genhtml 命令后都加入: --rc lcov_branch_coverage=1
print("Processing coverage info ...")
... | fix: python setup,py test 找不到libboost_atomic.so | fix: python setup,py test 找不到libboost_atomic.so
| Lua | mit | fasiondog/hikyuu |
c0cc2843482ac9f5b746cadc0e5191c2c960d96a | src/xml2ddsl.lua | src/xml2ddsl.lua | #!/usr/bin/env lua
--[[
(c) 2005-2015 Copyright, Real-Time Innovations, All rights reserved.
Permission to modify and use for internal purposes granted.
This software is provided "as is", without warranty, express or imp... | #!/usr/bin/env lua
--[[
(c) 2005-2015 Copyright, Real-Time Innovations, All rights reserved.
Permission to modify and use for internal purposes granted.
This software is provided "as is", without warranty, express or imp... | xml2ddsl program: - fixed output format - fixed duplicate printing | xml2ddsl program:
- fixed output format
- fixed duplicate printing | Lua | apache-2.0 | rticommunity/rticonnextdds-ddsl,rticommunity/rticonnextdds-ddsl,sutambe/rticonnextdds-ddsl |
2e5d3740aeae0c5f0f1d2f853cbac145fe52469b | lib/bc.lua | lib/bc.lua | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2010 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2010 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | Fix dump of bytecode instructions with missing operands. | Fix dump of bytecode instructions with missing operands.
| Lua | apache-2.0 | dpino/snabb,eugeneia/snabb,Igalia/snabb,eugeneia/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,snabbco/snabb,alexandergall/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,SnabbCo/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabb,Igalia/snabb... |
3657b8c444c5a0db2864e9f237c20d4f95c00178 | nyagos.lua | nyagos.lua | print "Nihongo Yet Another GOing Shell"
print "Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG"
-- This is system-lua files which will be updated.
-- When you want to customize, please edit ~\.nyagos
-- Please do not edit this.
local function split(equation)
local pos=string.find(equation,"=",1,true)
if pos the... | print "Nihongo Yet Another GOing Shell"
print "Copyright (c) 2014 HAYAMA_Kaoru and NYAOS.ORG"
-- This is system-lua files which will be updated.
-- When you want to customize, please edit ~\.nyagos
-- Please do not edit this.
local function split(equation)
local pos=string.find(equation,"=",1,true)
i... | Fix: nyagos.lua の改行コードが CRLF ではなく、全て LF になっていた | Fix: nyagos.lua の改行コードが CRLF ではなく、全て LF になっていた
| Lua | bsd-3-clause | hattya/nyagos,tsuyoshicho/nyagos,tyochiai/nyagos,kissthink/nyagos,kissthink/nyagos,hattya/nyagos,hattya/nyagos,kissthink/nyagos,nocd5/nyagos,zetamatta/nyagos |
e3b52bc7ea58331c0583ccb769c378890df99bd5 | plugins/itunes_album_artwork.lua | plugins/itunes_album_artwork.lua | local itunes_album_artwork = {}
local HTTPS = require('ssl.https')
local URL = require('socket.url')
local JSON = require('dkjson')
local functions = require('functions')
function itunes_album_artwork:init(configuration)
itunes_album_artwork.command = 'albumart <song/album>'
itunes_album_artwork.triggers = functions.... | local itunes_album_artwork = {}
local HTTPS = require('ssl.https')
local URL = require('socket.url')
local JSON = require('dkjson')
local functions = require('functions')
local telegram_api = require('telegram_api')
function itunes_album_artwork:init(configuration)
itunes_album_artwork.command = 'albumart <song/album>... | mattata v2.2.1 | mattata v2.2.1
Minor bug fix (itunes_album_artwork.lua)
| Lua | mit | barreeeiroo/BarrePolice |
67a709c1ae2884586539015d1ddd58226720ff08 | kong/plugins/key-auth/handler.lua | kong/plugins/key-auth/handler.lua | local constants = require "kong.constants"
local BasePlugin = require "kong.plugins.base_plugin"
local type = type
local _realm = 'Key realm="' .. _KONG._NAME .. '"'
local KeyAuthHandler = BasePlugin:extend()
KeyAuthHandler.PRIORITY = 1003
KeyAuthHandler.VERSION = "0.2.0"
function KeyAuthHandler:new()
KeyAuthHa... | local constants = require "kong.constants"
local BasePlugin = require "kong.plugins.base_plugin"
local kong = kong
local type = type
local _realm = 'Key realm="' .. _KONG._NAME .. '"'
local KeyAuthHandler = BasePlugin:extend()
KeyAuthHandler.PRIORITY = 1003
KeyAuthHandler.VERSION = "1.0.0"
function KeyAuthHan... | fix(key-auth) make plugin defensive against possible errors and nil header values | fix(key-auth) make plugin defensive against possible errors and nil header values
| Lua | apache-2.0 | Mashape/kong,Kong/kong,Kong/kong,Kong/kong |
b609a5f4ebafe5b8e31962ba86e69312b23f251b | pud/ui/TextEntry.lua | pud/ui/TextEntry.lua | local Class = require 'lib.hump.class'
local Text = getClass 'pud.ui.Text'
local KeyboardEvent = getClass 'pud.event.KeyboardEvent'
local string_len = string.len
local string_sub = string.sub
local format = string.format
-- TextEntry
-- A text frame that gathers keyboard input.
local TextEntry = Class{name='TextEntry... | local Class = require 'lib.hump.class'
local Text = getClass 'pud.ui.Text'
local KeyboardEvent = getClass 'pud.event.KeyboardEvent'
local string_len = string.len
local string_sub = string.sub
local format = string.format
-- TextEntry
-- A text frame that gathers keyboard input.
local TextEntry = Class{name='TextEntry... | fix TextEntry to work with latest changes to mouse events | fix TextEntry to work with latest changes to mouse events
| Lua | mit | scottcs/wyx |
57c249712a007344c2c554e02eb7af8874027ef6 | spec/01-unit/013-reports_spec.lua | spec/01-unit/013-reports_spec.lua | local meta = require "kong.meta"
local helpers = require "spec.helpers"
local reports = require "kong.core.reports"
describe("reports", function()
describe("send()", function()
setup(function()
reports.toggle(true)
end)
it("sends report over UDP", function()
local thread = helpers.udp_server(... | local meta = require "kong.meta"
local helpers = require "spec.helpers"
local reports = require "kong.core.reports"
describe("reports", function()
describe("send()", function()
setup(function()
reports.toggle(true)
end)
it("sends report over UDP", function()
local thread = helpers.udp_server(... | fix(tests) silence unnecessary stderr output in reports tests | fix(tests) silence unnecessary stderr output in reports tests
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,jebenexer/kong,Mashape/kong |
88beaed5eb942904c113c3bb923730b9bcafa55d | conf/vertices.lua | conf/vertices.lua | access = {
["no"] = 0,
["official"] = 0,
["private"] = 0,
["destination"] = 0,
["yes"] = 7,
["permissive"] = 7,
["agricultural"] = 0,
["customers"] = 7
}
motor_vehicle = {
["no"] = 0,
["yes"] = 1,
["agricultural"] = 0,
["destination"] = 0,
["private"] = 0,
["forestry"] = 0,
["designated"] = 1,
["permissive"] = 1
}
bi... | access = {
["no"] = "false",
["official"] = "false",
["private"] = "false",
["destination"] = "false",
["yes"] = "true",
["permissive"] = "true",
["agricultural"] = "false",
["customers"] = "true"
}
motor_vehicle = {
["no"] = 0,
["yes"] = 1,
["agricultural"] = 0,
["destination"] = 0,
["private"] = 0,
["forestry"] = 0,... | fixed access bug for nodes. | fixed access bug for nodes.
| Lua | mit | fsaric/mjolnir,fsaric/mjolnir,fsaric/mjolnir |
32b3258a85545b5fe451ea4eadfdd9156f31a552 | interface/flow/dynvars.lua | interface/flow/dynvars.lua | local proto = require "proto.proto"
local dynvar = {}
dynvar.__index = dynvar
local _aliases = {
udpSrc = proto.udp.setSrcPort, udpDst = proto.udp.setDstPort,
tcpSrc = proto.tcp.setSrcPort, tcpDst = proto.tcp.setDstPort,
ethSrc = proto.eth.default.setSrc, ethDst = proto.eth.default.setDst,
ethVlan = proto.eth.vla... | local proto = require "proto.proto"
local dynvar = {}
dynvar.__index = dynvar
local _aliases = {
udpSrc = proto.udp.metatype.setSrcPort, udpDst = proto.udp.metatype.setDstPort,
tcpSrc = proto.tcp.metatype.setSrcPort, tcpDst = proto.tcp.metatype.setDstPort,
ethSrc = proto.eth.default.metatype.setSrc, ethDst = proto... | Fix aliases. | Fix aliases.
| Lua | mit | scholzd/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen |
4a5bca0f878dd358c1722c499889c9866009599f | src/backends/littlewire-rgbw.lua | src/backends/littlewire-rgbw.lua | local Lwdev = {}
function Lwdev:init(device)
self.littlewire = require("littlewire")
local littlewire_devices = littlewire.search()
print("Found ", #littlewire_devices, " littlewire devices.\n")
self.lw_dev = littlewire.connect()
print("Connected to first device.")
print("FW Version: ", littlewire.read... | local Lwdev = {}
function Lwdev:init(device)
self.littlewire = require("littlewire")
local littlewire_devices = self.littlewire.search()
print("Found ", #littlewire_devices, " littlewire devices.\n")
self.lw_dev = self.littlewire.connect()
print("Connected to first device.")
print("FW Version: ", self.... | fix typo | fix typo
| Lua | mit | evq/opc-lua |
dc7b89fb75f6940d00f579b956bfe33149ac6f9b | test/primitive.lua | test/primitive.lua | function assignment()
a = 1
b, c, d = nil
e, f, g = 1, 2, 3
local i, k, l = 3, 2, 1
print (a, b, c, d, e, f, g, i, k, l)
end
function vararg(...)
a = ...
c, d = ...
t = {...}
s = {1, 2, 3, ...}
local f, g, h = ...
t.x = ...
assignment(...)
if true then
return a, t, s, ...
end
return ...
end
fun... | function assignment()
a = 1
b, c, d = nil
e, f, g = 1, 2, 3
local i, k, l = 3, 2, 1
print (a, b, c, d, e, f, g, i, k, l)
end
function vararg(...)
a = ...
c, d = ...
t = {...}
s = {1, 2, 3, ...}
local f, g, h = ...
t.x = ...
assignment(...)
if true then
return a, t, s, ...
end
return ...
end
fun... | [primitive.lua] Fix print/loops order | [primitive.lua] Fix print/loops order
| Lua | mit | NightNord/ljd,mrexodia/ljd,jjdredd/ljd |
3a81dd9eb9cff297973b3427d96ff1100ae8a31e | test/test_spec.lua | test/test_spec.lua | local fqclient = require("../lua/fqclient.lua")
local function mkreader(exchange, program)
local key_auth = mtev.uuid()
local key_bind = mtev.uuid()
local key_read = mtev.uuid()
local fqc_read = fqclient.new("127.0.0.1", 8765, "busted-user-1", "busted-pw")
fqc_read.auth_cb = function()
mtev.notify(key_au... | local fqclient = require("../lua/fqclient.lua")
local function mkreader(exchange, program)
local key_auth = mtev.uuid()
local key_bind = mtev.uuid()
local key_read = mtev.uuid()
local fqc_read = fqclient.new("127.0.0.1", 18765, "busted-user-1", "busted-pw")
fqc_read.auth_cb = function()
mtev.notify(key_a... | fix test to run on separate port and use value for notify | fix test to run on separate port and use value for notify
| Lua | mit | circonus-labs/fq,circonus-labs/fq,circonus-labs/fq,circonus-labs/fq,circonus-labs/fq,circonus-labs/fq |
8d208ec6968049164f1d460bcadc9a36a9c5f666 | tests/libs/tap.lua | tests/libs/tap.lua | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | Fix uncaught errors in tap | Fix uncaught errors in tap
| Lua | apache-2.0 | luvit/luvit,kaustavha/luvit,kaustavha/luvit,kaustavha/luvit,luvit/luvit,zhaozg/luvit,zhaozg/luvit |
76bef86c870360aaa3766a9d6e127009519e814c | xmake/rules/renderer_plugins.lua | xmake/rules/renderer_plugins.lua | -- Builds renderer plugins if linked to NazaraRenderer
rule("build_rendererplugins")
on_load(function (target)
local deps = table.wrap(target:get("deps"))
if target:kind() == "binary" and (table.contains(deps, "NazaraRenderer") or table.contains(deps, "NazaraGraphics")) then
for name, _ in pairs(modules) do
... | local modules = NazaraModules
-- Builds renderer plugins if linked to NazaraRenderer
rule("build_rendererplugins")
on_load(function (target)
local deps = table.wrap(target:get("deps"))
if target:kind() == "binary" and (table.contains(deps, "NazaraRenderer") or table.contains(deps, "NazaraGraphics")) then
for ... | Build: Fix renderer plugins dependencies | Build: Fix renderer plugins dependencies
| Lua | mit | DigitalPulseSoftware/NazaraEngine |
1ec0da558a3e149bf241cfe1f80160ca9f0bb238 | test_scripts/Polices/build_options/ATF_P_TC_PTU_Cycleing_Through_The_URLs_During_Retry_Sequence.lua | test_scripts/Polices/build_options/ATF_P_TC_PTU_Cycleing_Through_The_URLs_During_Retry_Sequence.lua | ---------------------------------------------------------------------------------------------
-- HTTP flow
-- Requirement summary:
-- [PolicyTableUpdate] Cycleing through the URLs during retry sequence
--
-- Description:
-- The policies manager shall cycle through the list of URLs, using the next one in the list
-- for... | ---------------------------------------------------------------------------------------------
-- HTTP flow
-- Requirement summary:
-- [PolicyTableUpdate] Cycleing through the URLs during retry sequence
--
-- Description:
-- The policies manager shall cycle through the list of URLs, using the next one in the list
-- for... | Fix issues after clarification | Fix issues after clarification
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
d985c00dcdfe856defa462fc157e1ee63e9d09b1 | MMOCoreORB/bin/scripts/screenplays/dungeon/warren/captain_heff_convo_handler.lua | MMOCoreORB/bin/scripts/screenplays/dungeon/warren/captain_heff_convo_handler.lua | local ObjectManager = require("managers.object.object_manager")
CaptainHeffConversationHandler = Object:new {}
function CaptainHeffConversationHandler:runScreenHandlers(pConversationTemplate, pConversingPlayer, pConversingNPC, selectedOption, pConversationScreen)
local screen = LuaConversationScreen(pConversationScr... | local ObjectManager = require("managers.object.object_manager")
CaptainHeffConversationHandler = Object:new {}
function CaptainHeffConversationHandler:runScreenHandlers(pConversationTemplate, pConversingPlayer, pConversingNPC, selectedOption, pConversationScreen)
local screen = LuaConversationScreen(pConversationScr... | [fixed] final quest turn-in for 'The Warren' to grant proper faction-point reward (Mantis #6811) | [fixed] final quest turn-in for 'The Warren' to grant proper
faction-point reward (Mantis #6811)
Change-Id: I352ae8f6c7e9b1c813615f54051f5cd393fb5331
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo |
0a76fac5ea5298f5bcd7695a0fcfc8d977aecd2c | MMOCoreORB/bin/scripts/screenplays/poi/corellia_grand_theater_vreni_island.lua | MMOCoreORB/bin/scripts/screenplays/poi/corellia_grand_theater_vreni_island.lua | GrandTheaterVreniScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "GrandTheaterVreniScreenPlay",
}
registerScreenPlay("GrandTheaterVreniScreenPlay", true)
function GrandTheaterVreniScreenPlay:start()
if (isZoneEnabled("corellia")) then
self:spawnMobiles()
end
end
function GrandTheaterVreniS... | GrandTheaterVreniScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "GrandTheaterVreniScreenPlay",
}
registerScreenPlay("GrandTheaterVreniScreenPlay", true)
function GrandTheaterVreniScreenPlay:start()
if (isZoneEnabled("corellia")) then
self:spawnMobiles()
end
end
function GrandTheaterVreniS... | [fixed] rebel respawns too fast at grand theater vreni island | [fixed] rebel respawns too fast at grand theater vreni island
Change-Id: If3e0f2995cb4c45b244ff4b8dc54c5623088dc88
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/lege... |
81449c948d060450100f709fc116222f05d20d3f | ssbase/gamemode/storeitems/accessories/tails_feline.lua | ssbase/gamemode/storeitems/accessories/tails_feline.lua | ITEM.ID = "tails_feline" -- Should be a unique string that identifies the item
ITEM.Name = "Tail (Cat)" -- The name the item should display
ITEM.Price = 2000
ITEM.Model = "models/mrgiggles/skeyler/accessories/tails_feline.mdl" -- Model used by the item
ITEM.Type = "tail" -- Also works for... | ITEM.ID = "tails_feline" -- Should be a unique string that identifies the item
ITEM.Name = "Tail (Cat)" -- The name the item should display
ITEM.Price = 2000
ITEM.Model = "models/mrgiggles/skeyler/accessories/tails_feline.mdl" -- Model used by the item
ITEM.Type = "tail" -- Also works for... | Reverted my stupid fixes | Reverted my stupid fixes | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
df446792d696b4b0d3d541064ffc9d4d6b1cdb4c | src/lua-factory/sources/grl-appletrailers.lua | src/lua-factory/sources/grl-appletrailers.lua | --[[
* Copyright (C) 2015 Grilo Project
*
* 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 option) any later version.
*
* This library is ... | --[[
* Copyright (C) 2015 Grilo Project
*
* 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 option) any later version.
*
* This library is ... | lua-factory: Port Apple Trailers to new XML parser | lua-factory: Port Apple Trailers to new XML parser
https://bugzilla.gnome.org/show_bug.cgi?id=755556
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,GNOME/grilo-plugins |
e0fe6aa2ab2fba71d3414873c1ba048044ee88a0 | tests/package.lua | tests/package.lua | assert(nil == package.loaders[5])
local configure_loaders = function()
table.insert(package.loaders, 4, function() end)
assert(package.loaders[1])
assert(package.loaders[2])
assert(package.loaders[3])
assert(package.loaders[4])
assert(package.loaders[5])
print "loaders configured!"
end
configure_loaders()
for... | local loaders = package.loaders or package.searchers
assert(nil == loaders[5])
local configure_loaders = function()
table.insert(loaders, 4, function() end)
assert(loaders[1])
assert(loaders[2])
assert(loaders[3])
assert(loaders[4])
assert(loaders[5])
print "loaders configured!"
end
configure_loaders()
for k... | Fix package test for Lua 5.2 and Lua 5.3 | Fix package test for Lua 5.2 and Lua 5.3
Starting from Lua 5.2, package.loaders is renamed as package.searchers.
| Lua | mit | aryajur/lanes,aryajur/lanes |
a25e4e1ed89e49b865f3779ea28df2a31cfde931 | profiles/foot.lua | profiles/foot.lua | -- Foot profile
-- Begin of globals
bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["foot"] = true, ["permissive"] = true, ["designated"] = true }
access_tag_blacklist = { [... | -- Foot profile
-- Begin of globals
bollards_whitelist = { [""] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true}
access_tag_whitelist = { ["yes"] = true, ["foot"] = true, ["permissive"] = true, ["designated"] = true }
access_tag_blacklist = { [... | Fixes #737 | Fixes #737
| Lua | bsd-2-clause | deniskoronchik/osrm-backend,ammeurer/osrm-backend,bjtaylor1/osrm-backend,prembasumatary/osrm-backend,stevevance/Project-OSRM,oxidase/osrm-backend,Tristramg/osrm-backend,chaupow/osrm-backend,antoinegiret/osrm-backend,prembasumatary/osrm-backend,hydrays/osrm-backend,beemogmbh/osrm-backend,duizendnegen/osrm-backend,yuryle... |
ab319662058fe769de509e90e98ccc2bd5bd7081 | tests/wow_api.lua | tests/wow_api.lua | local _G = getfenv(0)
local donothing = function() end
local frames = {} -- Stores globally created frames, and their internal properties.
local FrameClass = {} -- A class for creating frames.
FrameClass.methods = { "SetScript", "RegisterEvent", "UnregisterEvent", "UnregisterAllEvents", "OnShow", "OnHide" }
function... | local _G = getfenv(0)
local donothing = function() end
local frames = {} -- Stores globally created frames, and their internal properties.
local FrameClass = {} -- A class for creating frames.
FrameClass.methods = { "SetScript", "RegisterEvent", "UnregisterEvent", "UnregisterAllEvents", "Show", "Hide", "IsShown" }
f... | Ace3: fixed frame methods added hooksecurefunc emulation | Ace3:
fixed frame methods
added hooksecurefunc emulation
git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@262 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
b255c66c87aa1030f0866dacf5465380e7c02e83 | test_scripts/Polices/Policy_Table_Update/021_ATF_P_TC_timeout_countdown_start.lua | test_scripts/Polices/Policy_Table_Update/021_ATF_P_TC_timeout_countdown_start.lua | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] "timeout" countdown start
--
-- Description:
-- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with encrypted PTS
-- snapshot as a hybrid data to mobile a... | ---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] "timeout" countdown start
--
-- Description:
-- SDL must forward OnSystemRequest(request_type=PROPRIETARY, url, appID) with encrypted PTS
-- snapshot as a hybrid data to mobile a... | Fix issues in script | Fix issues in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
b0aa3b69139ffc540968dd8b37d04e9647253d8b | xmake/platforms/android/config.lua | xmake/platforms/android/config.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix detect ar for android ar | fix detect ar for android ar
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
ea5170ee70ae15aaf299de1392d0099fae86b1ac | Peripherals/CPU.lua | Peripherals/CPU.lua | local events = require("Engine.events")
local coreg = require("Engine.coreg")
return function(config) --A function that creates a new CPU peripheral.
local EventStack = {}
local Instant = false
local RawPull = false
local sleepTimer
local function hookEvent(pre,name)
events:register(pre..":"..name,fun... | local events = require("Engine.events")
local coreg = require("Engine.coreg")
return function(config) --A function that creates a new CPU peripheral.
local EventStack = {}
local Instant = false
local RawPull = false
local sleepTimer
local function hookEvent(pre,name)
events:register(pre..":"..name,fun... | Bugfix | Bugfix | Lua | mit | RamiLego4Game/LIKO-12 |
9fa0f5f288e47f42554d0854df35379c604e1a9c | copas.lua | copas.lua | socket = require('socket')
ambox = require('ambox')
asock = require('asock')
require('util')
-- A reimplementation of the "copas" library API, based on the
-- actor_post_office/actor_socket libraries.
--
-- The standard copas implementation invokes coroutine.yield() with
-- internal copas objects, causing strange in... | socket = require('socket')
ambox = require('ambox')
asock = require('asock')
require('util')
-- A reimplementation of the "copas" library API, based on the
-- ambox/asock libraries.
--
-- The standard copas implementation invokes coroutine.yield() with
-- internal copas objects, causing strange interactions with
-- ... | Comment fixup | Comment fixup
| Lua | apache-2.0 | steveyen/moxilua |
c2e59b86daf163ba807136440946a06e2f918bc9 | output/config.lua | output/config.lua | launch_modes = {
LOCAL = 0,
LOCAL_DETERMINISM_TEST = 1,
ONLY_CLIENT = 2,
ONLY_SERVER = 3,
CLIENT_AND_SERVER = 4,
TWO_CLIENTS_AND_SERVER = 5
}
config_table = {
launch_mode = launch_modes.LOCAL,
recording_replay_speed = 0.5,
determinism_test_cloned_cosmoi_count = 2,
window_name = "example",
fullscreen ... | launch_modes = {
LOCAL = 0,
LOCAL_DETERMINISM_TEST = 1,
ONLY_CLIENT = 2,
ONLY_SERVER = 3,
CLIENT_AND_SERVER = 4,
TWO_CLIENTS_AND_SERVER = 5
}
config_table = {
launch_mode = launch_modes.LOCAL,
recording_replay_speed = 0.5,
determinism_test_cloned_cosmoi_count = 2,
window_name = "example",
fullscreen ... | config fullscreen fix | config fullscreen fix
| Lua | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,DaTa-/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,DaTa-/Hypersomnia,DaTa-/Hypersomnia |
cd563caf61d221c982080c3848ce73ea00a204cd | output/config.lua | output/config.lua | config_table = {
window_name = "example",
fullscreen = 0,
window_border = 1,
window_x = 0,
window_y = 0,
bpp = 24,
resolution_w = 1280,
resolution_h = 720,
doublebuffer = 1,
sensitivity = vec2(1.5, 1.5),
server_address = "127.0.0.1",
server_port = 27014,
nickname = "Daedalus",
mu... | config_table = {
window_name = "example",
fullscreen = 0,
window_border = 0,
window_x = 0,
window_y = 0,
bpp = 24,
resolution_w = 1280,
resolution_h = 720,
doublebuffer = 1,
sensitivity = vec2(1.5, 1.5),
server_address = "127.0.0.1",
server_port = 27014,
nickname = "Daedalus",
mu... | script fix | script fix
| Lua | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,DaTa-/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,DaTa-/Hypersomnia,DaTa-/Hypersomnia,TeamHypersomnia/Augmentations |
54b4dac6b5930c4c3027264ef058e5c5feaec72e | .config/nvim/lua/config/neo-tree.lua | .config/nvim/lua/config/neo-tree.lua | local status_ok, p = pcall(require, "neo-tree")
if not status_ok then
return
end
p.setup({
use_default_mappings = false,
popup_border_style = "rounded",
default_component_configs = {
git_status = {
symbols = {
-- Change type
added = "", -- or "✚", but this is redundant info if you use git_status_color... | local status_ok, p = pcall(require, "neo-tree")
if not status_ok then
return
end
p.setup({
use_default_mappings = false,
popup_border_style = "rounded",
default_component_configs = {
git_status = {
symbols = {
-- Change type
added = "", -- or "✚", but this is redundant info if you use git_status_color... | [nvim] Fix neo-tree config | [nvim] Fix neo-tree config
| Lua | mit | masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles |
daeefff741d0ddfec2d2833e361017e5233f8729 | frontend/document/djvudocument.lua | frontend/document/djvudocument.lua | local Geom = require("ui/geometry")
local Cache = require("cache")
local CacheItem = require("cacheitem")
local KoptOptions = require("ui/data/koptoptions")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local Configurable = require("configurable")
local DjvuDocument = Doc... | local Geom = require("ui/geometry")
local Cache = require("cache")
local CacheItem = require("cacheitem")
local KoptOptions = require("ui/data/koptoptions")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local Configurable = require("configurable")
local DjvuDocument = Doc... | fix #1433 | fix #1433
| Lua | agpl-3.0 | Frenzie/koreader,ashang/koreader,mwoz123/koreader,poire-z/koreader,lgeek/koreader,poire-z/koreader,NickSavage/koreader,Markismus/koreader,apletnev/koreader,houqp/koreader,chrox/koreader,mihailim/koreader,pazos/koreader,NiLuJe/koreader,Frenzie/koreader,robert00s/koreader,noname007/koreader,frankyifei/koreader,chihyang/k... |
a29ccd4e767b65c0ecc77e2bb35fc108f735a3bb | core/servermanager.lua | core/servermanager.lua |
local st = require "util.stanza";
local send = require "core.sessionmanager".send_to_session;
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
require "modulemanager"
-- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.)
function handle_stanza(origin, stanza)
-- Use ... |
local st = require "util.stanza";
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
require "modulemanager"
-- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.)
function handle_stanza(origin, stanza)
-- Use plugins
if not modulemanager.handle_stanza(origin, stanza) ... | Fixed servermanager to use session.send for sending stanzas | Fixed servermanager to use session.send for sending stanzas
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
383b72f48ab1840ef39d746e94a39d825bcaa1bd | plugins/doge.lua | plugins/doge.lua | local doge = {}
local mattata = require('mattata')
local URL = require('socket.url')
function doge:init(configuration)
doge.arguments = 'doge <text>'
doge.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('doge').table
doge.help = configuration.commandPrefix .. 'doge <text> - Doge-ifies... | local doge = {}
local mattata = require('mattata')
local URL = require('socket.url')
function doge:init(configuration)
doge.arguments = 'doge <text>'
doge.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('doge').table
doge.help = configuration.commandPrefix .. 'doge <text> - Doge-ifies... | Fixed a bug with doge.lua | Fixed a bug with doge.lua
The plugin now matches against characters which can't be used as a
parameter in the doge API url, and the help has been improved, with an
example of usage.
| Lua | mit | barreeeiroo/BarrePolice |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.