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 |
|---|---|---|---|---|---|---|---|---|---|
1a58efd77fddcd08c5ac8be877df965f592a695d | testserver/questsystem/Gravestone/trigger11.lua | testserver/questsystem/Gravestone/trigger11.lua | require("handler.createeffect")
require("questsystem.base")
module("questsystem.Gravestone.trigger11", package.seeall)
local QUEST_NUMBER = 10000
local PRECONDITION_QUESTSTATE = 88
local POSTCONDITION_QUESTSTATE = 99
local POSITION = position(605, 344, 0)
local RADIUS = 1
local LOOKAT_TEXT_DE = "Die Namen der Liebend... | require("handler.createeffect")
require("questsystem.base")
module("questsystem.Gravestone.trigger11", package.seeall)
local QUEST_NUMBER = 10000
local PRECONDITION_QUESTSTATE = 88
local POSTCONDITION_QUESTSTATE = 99
local ADDITIONAL_QUESTSTATE = 104
local POSITION = position(605, 344, 0)
local RADIUS = 1
local LOOKA... | lookat fix and precondition fix | lookat fix and precondition fix
| Lua | agpl-3.0 | KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content |
1a671b2baeab163703ec9486d6950835272190b7 | test_scripts/Polices/Policy_Table_Update/030_ATF_P_TC_Apply_PTU_and_OnPermissionChange_notify.lua | test_scripts/Polices/Policy_Table_Update/030_ATF_P_TC_Apply_PTU_and_OnPermissionChange_notify.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] Apply PTU changes and OnPermissionChange notifying the apps
--
-- Description:
-- Right after the PoliciesManager merges the UpdatedPT with Local PT, it must apply the changes
-- ... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] Apply PTU changes and OnPermissionChange notifying the apps
--
-- Description:
-- Right after the PoliciesManager merges the UpdatedPT with Local PT, it must apply the changes
-- ... | Fix issue in script | Fix issue in script
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
02628622c7e5769fcc8f4c91ed29c8459bb256ad | MMOCoreORB/bin/scripts/managers/loot_manager.lua | MMOCoreORB/bin/scripts/managers/loot_manager.lua | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | [fixed] Loot manager script from my previous review. | [fixed] Loot manager script from my previous review.
Change-Id: Iaa58d170f363fd0f653f9fdc70d8246fa3ea43fd
| Lua | agpl-3.0 | lasko2112/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,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/... |
512255b9006909969b22704fcdb57bbcc34d836c | src_trunk/resources/realism-system/c_weapons_back.lua | src_trunk/resources/realism-system/c_weapons_back.lua | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPlayerWeapon(source, prevSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) then
if (weapons[source][1] == nil or weapons[source][2] ~= weapon or weapons[source][3] ~= isPedDuc... | weapons = { }
function weaponSwitch(prevSlot, newSlot)
local weapon = getPlayerWeapon(source, prevSlot)
local newWeapon = getPlayerWeapon(source, newSlot)
if (weapons[source] == nil) then
weapons[source] = { }
end
if (weapon == 30 or weapon == 31) then
if (weapons[source][1] == nil or weapons[s... | Bug fix for weapon on back | Bug fix for weapon on back
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1656 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
9e18bf674b5480dc258a9d3237468f1b088972b4 | share/media/guardian.lua | share/media/guardian.lua | -- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | -- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | FIX: media/guardian.lua: Multiple patterns | FIX: media/guardian.lua: Multiple patterns
Notable changes:
* Update to support the new domain name ("theguardian.com")
* Add Guardian.parse_duration: use an additional pattern
* Update media stream URL pattern
* Remove "- video" from title
* Parse video {width,height}
* Update media ID pattern
Signed-off-by: Toni Gu... | Lua | agpl-3.0 | legatvs/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts |
b5089e2ad7597aea17ffa182f3760689c82e6b51 | ffi/kobolight.lua | ffi/kobolight.lua | local ffi = require("ffi")
-- for closing on garbage collection, we need a pointer or aggregate
-- cdata object (not a plain "int"). So we encapsulate in a struct.
ffi.cdef[[
typedef struct light_fd { int ld; } light_fd;
]]
-- for ioctl header definition:
local dummy = require("ffi/posix_h")
local kobolight = {}
loca... | local ffi = require("ffi")
-- for closing on garbage collection, we need a pointer or aggregate
-- cdata object (not a plain "int"). So we encapsulate in a struct.
ffi.cdef[[
typedef struct light_fd { int ld; } light_fd;
]]
-- for ioctl header definition:
local dummy = require("ffi/posix_h")
local kobolight = {}
loca... | Fixes the bug that once true, self.sleepLight remains true | Fixes the bug that once true, self.sleepLight remains true
The issue occurred by suspending with the light on at least once.
From that moment, every consecutive resume would toggle the light
back on.
| Lua | agpl-3.0 | Hzj-jie/koreader-base,frankyifei/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,koreader/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,frankyifei/koreader-base,koreader/koreader-base,frankyifei/koreader-base,Frenzie/koreader-base,apletnev/koreader-b... |
be9323f0d6f47e4ce48a2d8f30d6b5ab1ad4424d | twitpic.lua | twitpic.lua | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:clos... | local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*all")
f:clos... | twitpic.lua: fix again for url scraping | twitpic.lua: fix again for url scraping | Lua | unlicense | ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab,ArchiveTeam/twitpic-grab |
2f2b80a1462d0f8f3c2ede6b1722a44501ac7bf1 | splash/scripts/splash.lua | splash/scripts/splash.lua | --
-- Lua wrapper for Splash Python object.
--
-- It hides attributes that should not be exposed
-- and wraps async methods to `coroutine.yield`.
--
Splash = function (splash)
local self = {args=splash.args}
--
-- Create Lua splash:<...> methods from Python Splash object.
--
for key, is_async in pairs(splash... | --
-- Lua wrapper for Splash Python object.
--
-- It hides attributes that should not be exposed
-- and wraps async methods to `coroutine.yield`.
--
Splash = function (splash)
local self = {args=splash.args}
--
-- Create Lua splash:<...> methods from Python Splash object.
--
for key, is_async in pairs(splash... | fix _wait_restart_on_redirects function | fix _wait_restart_on_redirects function
| Lua | bsd-3-clause | dwdm/splash,pawelmhm/splash,pombredanne/splash,kod3r/splash,pawelmhm/splash,kmike/splash,kmike/splash,Youwotma/splash,sunu/splash,Youwotma/splash,sunu/splash,kod3r/splash,kod3r/splash,sunu/splash,pombredanne/splash,dwdm/splash,dwdm/splash,pawelmhm/splash,Youwotma/splash,kmike/splash,pombredanne/splash |
92fe63b6fdc7d8efece6306ec03ee3da38f80cf9 | controller/probe.lua | controller/probe.lua | -- Module for interacting with the probe itself
require "config"
require "posix"
local sockets = require("socket")
probe = {}
-- some common utility functions
probe.leds_off = function() probe.set_leds(0,0,0) end
probe.green_glow = function() probe.set_leds(0,30,0) end
probe.fast_green_blink = function() probe.set_l... | -- Module for interacting with the probe itself
require "config"
require "posix"
local sockets = require("socket")
probe = {}
-- some common utility functions
probe.leds_off = function() probe.set_leds(0,0,0) end
probe.green_glow = function() probe.set_leds(0,30,0) end
probe.fast_green_blink = function() probe.set_l... | Fix socket leak w/ socket hack, fix bug w/ last_pos when offline | Fix socket leak w/ socket hack, fix bug w/ last_pos when offline
| Lua | mit | makehackvoid/MHV-Space-Probe |
b7ce66f3f3e6827024e7588920d8bafbf85bc87d | plugins/set.lua | plugins/set.lua | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | local function get_variables_hash(msg)
if msg.to.type == 'channel' then
return 'channel:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'chat' then
return 'chat:' .. msg.to.id .. ':variables'
end
if msg.to.type == 'user' then
return 'user:' .. msg.from.id .. ':v... | fix wrong message | fix wrong message
| Lua | agpl-3.0 | xsolinsx/AISasha |
14fd25798f4f14537b59f001efcc80d11ed1e6d8 | protocols/ppp/luasrc/model/network/proto_ppp.lua | protocols/ppp/luasrc/model/network/proto_ppp.lua | --[[
LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.o... | --[[
LuCI - Network model - 3G, PPP, PPtP, PPPoE and PPPoA protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.o... | protocols/ppp: fix install state detection with netifd | protocols/ppp: fix install state detection with netifd
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@8657 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | zwhfly/openwrt-luci,Flexibity/luci,Flexibity/luci,stephank/luci,eugenesan/openwrt-luci,yeewang/openwrt-luci,gwlim/luci,stephank/luci,freifunk-gluon/luci,vhpham80/luci,gwlim/luci,zwhfly/openwrt-luci,Canaan-Creative/luci,zwhfly/openwrt-luci,saraedum/luci-packages-old,jschmidlapp/luci,vhpham80/luci,ch3n2k/luci,yeewang/ope... |
1749ab7227bda347d167569e536382027f04de88 | reader.lua | reader.lua | #!./luajit
io.stdout:write([[
---------------------------------------------
launching...
_ _____ ____ _
| |/ / _ \| _ \ ___ __ _ __| | ___ _ __
| ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
| . \ |_| | _ < __/ (_| | (_| | __/ |
|_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|
[*] Cu... | #!./luajit
io.stdout:write([[
---------------------------------------------
launching...
_ _____ ____ _
| |/ / _ \| _ \ ___ __ _ __| | ___ _ __
| ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
| . \ |_| | _ < __/ (_| | (_| | __/ |
|_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|
[*] Cu... | Fix 2716 | Fix 2716
| Lua | agpl-3.0 | poire-z/koreader,pazos/koreader,mihailim/koreader,robert00s/koreader,Markismus/koreader,koreader/koreader,Frenzie/koreader,Frenzie/koreader,houqp/koreader,NiLuJe/koreader,Hzj-jie/koreader,lgeek/koreader,NiLuJe/koreader,apletnev/koreader,koreader/koreader,mwoz123/koreader,poire-z/koreader |
54577de024fc35b6904994afe1906bcceeb8981c | libs/web/luasrc/dispatcher.lua | libs/web/luasrc/dispatcher.lua | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | * Added timing fix | * Added timing fix
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci |
22ea445ef2df5245ca9a4864dd0a5b8897df83df | tools/structmsgTest/Lua/wsProvisioningServer.lua | tools/structmsgTest/Lua/wsProvisioningServer.lua | accessPointData=""
useBig=false
dofile("myConfig.lua")
dofile("buildStmsgAPList.lua")
dofile("buildStmsgAPListDefinition.lua")
function dbgPrint(s)
print(s)
end
-- Print AP list that is easier to read
function listap(t) -- (SSID : Authmode, RSSI, BSSID, Channel)
dbgPrint(string.format("%32s","SSID").."\tBSSID\t\t\... | accessPointData=""
useBig=false
dofile("myConfig.lua")
dofile("buildStmsgAPList.lua")
dofile("buildStmsgAPListDefinition.lua")
function dbgPrint(s)
print(s)
end
-- Print AP list that is easier to read
function listap(t) -- (SSID : Authmode, RSSI, BSSID, Channel)
dbgPrint(string.format("%32s","SSID").."\tBSSID\t\t\... | fixes. | fixes.
| Lua | mit | apwiede/nodemcu-firmware,apwiede/nodemcu-firmware,apwiede/nodemcu-firmware,apwiede/nodemcu-firmware |
c571e80eb353a18d29e191ef0076d97b4f39f72c | src/cosy/string.lua | src/cosy/string.lua | local Platform = require "cosy.platform"
local metatable = getmetatable ""
metatable.__mod = Platform.i18n.interpolate
-- > require "cosy.string"
-- > print ("%{key}" % { key = "some text" })
-- ...
-- some text
function string:quote ()
if not self:find ('"') then
return '"' .. self .. '"'
elseif... | local metatable = getmetatable ""
-- > require "cosy.string"
-- taken from i18n/interpolate
metatable.__mod = function (pattern, variables)
variables = variables or {}
return pattern:gsub ("(.?)%%{(.-)}", function (previous, key)
if previous == "%" then
return
end
local value = tostring (vari... | Fix string manipulation module. | Fix string manipulation module.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
f6a4436d84309da9bce7a5552a631ed1ffbb896c | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua | --[[
(c) 2011 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
module("luci.statistics.rrdtool.def... | --[[
(c) 2011 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
module("luci.statistics.rrdtool.def... | statistics: memory plugin - improve graph by better scaling of y-axis | statistics: memory plugin - improve graph by better scaling of y-axis
Utilise alt_autoscale_max to make the memory chart y-axis to scale better
for devices with e.g. 128 MB RAM.
Also fix the axis min value to 0.
Signed-off-by: Hannu Nyman <ab53a3387de93e31696058c104e6f769cd83fd1b@iki.fi>
(cherry picked from commit 9... | Lua | apache-2.0 | db260179/openwrt-bpi-r1-luci,david-xiao/luci,Sakura-Winkey/LuCI,Sakura-Winkey/LuCI,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,Sakura-Winkey/LuCI,Sakura-Winkey/LuCI,david-xiao/luci,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,db26... |
c0ee2f56f6b42dbae1376fe5d7d010861ec409a6 | Modules/Shared/Time/Throttle/ThrottledFunction.lua | Modules/Shared/Time/Throttle/ThrottledFunction.lua | --- Throttles execution of a functon. Does both leading, and following
-- @classmod ThrottledFunction
local ThrottledFunction = {}
ThrottledFunction.ClassName = "ThrottledFunction"
ThrottledFunction.__index = ThrottledFunction
function ThrottledFunction.new(timeoutInSeconds, func, config)
local self = setmetatable({... | --- Throttles execution of a functon. Does both leading, and following
-- @classmod ThrottledFunction
local ThrottledFunction = {}
ThrottledFunction.ClassName = "ThrottledFunction"
ThrottledFunction.__index = ThrottledFunction
function ThrottledFunction.new(timeoutInSeconds, func, config)
local self = setmetatable({... | Fix throttle | Fix throttle
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
07ece391af1e2f94316c6a9e7337dcd066957fb2 | testserver/item/seeds.lua | testserver/item/seeds.lua | -- sowing seeds
require("base.common")
module("item.seeds", package.seeall)
-- UPDATE common SET com_script='item.seeds' WHERE com_itemid IN (259,291,534,2494,2917,728,773,779);
-- UPDATE common SET com_agingspeed = 2, com_objectafterrot = 247 WHERE com_itemid = 246;
-- UPDATE common SET com_agingspeed = 3, com_obje... | -- sowing seeds
require("base.common")
module("item.seeds", package.seeall)
-- UPDATE common SET com_script='item.seeds' WHERE com_itemid IN (259,291,534,2494,2917,728,773,779);
-- UPDATE common SET com_agingspeed = 2, com_objectafterrot = 247 WHERE com_itemid = 246;
-- UPDATE common SET com_agingspeed = 3, com_obje... | fix seed duplicating bug | fix seed duplicating bug
| Lua | agpl-3.0 | KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content |
ff9286a4977072e95b033aefbf04cb4389ec420d | ffi/framebuffer_SDL2_0.lua | ffi/framebuffer_SDL2_0.lua | -- load common SDL input/video library
local SDL = require("ffi/SDL2_0")
local BB = require("ffi/blitbuffer")
local util = require("ffi/util")
local framebuffer = {
-- this blitbuffer will be used when we use refresh emulation
sdl_bb = nil,
}
function framebuffer:init()
if not self.dummy then
SDL.... | -- load common SDL input/video library
local SDL = require("ffi/SDL2_0")
local BB = require("ffi/blitbuffer")
local util = require("ffi/util")
local framebuffer = {
-- this blitbuffer will be used when we use refresh emulation
sdl_bb = nil,
}
function framebuffer:init()
if not self.dummy then
SDL.... | [fix] SDL2: apply night mode on window resize (#627) | [fix] SDL2: apply night mode on window resize (#627)
| Lua | agpl-3.0 | houqp/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,houqp/koreader-base,koreader/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,koreader/koreader-base,houqp/koreader-base,Frenzie/koreader-base,koreader/koreader-base,NiLuJe/koreader-bas... |
9653139e395f94fce925803db9e82fd1a8053886 | godmode/server/godmode.lua | godmode/server/godmode.lua | class 'GodMode'
local admins = {
"STEAM_0:0:26199873",
"STEAM_0:0:28323431",
}
local gods = {}
function GodMode:__init()
Events:Subscribe("PlayerChat", self, self.PlayerChat)
Events:Subscribe("PreTick", self, self.keepGodsAlive)
end
function isAdmin(player)
local adminstring = ""
for i,line in ipairs(admins... | class 'GodMode'
local admins = {
"STEAM_0:0:26199873",
"STEAM_0:0:28323431",
}
local gods = {}
function GodMode:__init()
Events:Subscribe("PlayerChat", self, self.PlayerChat)
Events:Subscribe("PreTick", self, self.keepGodsAlive)
end
function isAdmin(player)
local adminstring = ""
for i,line in ipairs(admins... | Fixed a small bug in the Godmode-script and added a message if you are not an admin | Fixed a small bug in the Godmode-script and added a message if you are not an admin
| Lua | mit | Jokler/JC2MP-Scripts |
9916a0c2f903b3388e51eab201eef04eb78163d6 | modules/textadept/run.lua | modules/textadept/run.lua | -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
---
-- Module for running/executing source files.
module('_m.textadept.run', package.seeall)
---
-- Executes the command line parameter and prints the output to Textadept.
-- @param comman... | -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
---
-- Module for running/executing source files.
module('_m.textadept.run', package.seeall)
---
-- Executes the command line parameter and prints the output to Textadept.
-- @param comman... | Fixed bug for running filename with no path; modules/textadept/run.lua | Fixed bug for running filename with no path; modules/textadept/run.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
0f2617fbc7afcab399284da1e4881a6dc7da8490 | UCDanticheat/togglecontrol.lua | UCDanticheat/togglecontrol.lua | addCommandHandler("tog",
function ()
outputDebugString(tostring(not isControlEnabled("fire")))
toggleControl("fire", not isControlEnabled("fire"))
end
)
local fireKeys = getBoundKeys("fire")
local exceptedWeapons = {[41] = true}
local exceptedSlots = {[0] = true, [1] = true, [8] = true, [10] = true, [11] = true... | addCommandHandler("tog",
function ()
outputDebugString(tostring(not isControlEnabled("fire")))
toggleControl("fire", not isControlEnabled("fire"))
end
)
local aimKeys = getBoundKeys("aim_weapon")
local fireKeys = getBoundKeys("fire")
local exceptedWeapons = {[41] = true}
local exceptedSlots = {[0] = true, [1] =... | UCDanticheat | UCDanticheat
- Fixed fireCheck allowing nades to be thrown in safe zones.
- Added an aim check, so if you're in a team that's not allowed to shoot (unless in LV) or you're in a safezone, you can't shoot or aim.
- Fixed some other syntax and formatting errors.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
6075f8e78acd44e139e96dca11a28864ce1aa388 | scripts/tundra/path.lua | scripts/tundra/path.lua | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra 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 3 of the License, or
-- (at your option) any later version... | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra 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 3 of the License, or
-- (at your option) any later version... | lua path module: fixed get_filename_dir, added get_filename | lua path module: fixed get_filename_dir, added get_filename
| Lua | mit | deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra |
6b2eb8018863296b39e3477a5d8bb011df56048c | service/service_mgr.lua | service/service_mgr.lua | local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle
else
... | local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle
else
... | fix #487 | fix #487
| Lua | mit | hongling0/skynet,sundream/skynet,icetoggle/skynet,QuiQiJingFeng/skynet,rainfiel/skynet,Ding8222/skynet,xjdrew/skynet,zhangshiqian1214/skynet,asanosoyokaze/skynet,zhangshiqian1214/skynet,lawnight/skynet,xcjmine/skynet,czlc/skynet,kyle-wang/skynet,cdd990/skynet,xcjmine/skynet,cloudwu/skynet,great90/skynet,bttscut/skynet,... |
c47401502fd5800f6344a64276533a7a58800416 | lua/entities/gmod_wire_expression2/core/timer.lua | lua/entities/gmod_wire_expression2/core/timer.lua | /******************************************************************************\
Timer support
\******************************************************************************/
local timerid = 0
local runner
local function Execute(self, name)
runner = name
self.data['timer'].timers[name] = nil
if(self.entity an... | /******************************************************************************\
Timer support
\******************************************************************************/
local timerid = 0
local function Execute(self, name)
self.data.timer.runner = name
self.data['timer'].timers[name] = nil
if(self.entity... | Fixed timer execution caused by other e2 not working | Fixed timer execution caused by other e2 not working
If one e2 was using a timer and caused an execution of a different e2,
then the second e2 would be unable to use a timer of the same name.
Thanks to Steve on Discord for finding this issue.
| Lua | apache-2.0 | NezzKryptic/Wire,dvdvideo1234/wire,garrysmodlua/wire,Grocel/wire,wiremod/wire,sammyt291/wire,bigdogmat/wire,thegrb93/wire |
048f45263025004f166411437533464093b6a79e | otouto/plugins/twitter.lua | otouto/plugins/twitter.lua | local twitter = {}
function twitter:init(config)
if not cred_data.tw_consumer_key then
print('Missing config value: tw_consumer_key.')
print('twitter.lua will not be enabled.')
return
elseif not cred_data.tw_consumer_secret then
print('Missing config value: tw_consumer_secret.')
print('twitter.lua will not... | local twitter = {}
function twitter:init(config)
if not cred_data.tw_consumer_key then
print('Missing config value: tw_consumer_key.')
print('twitter.lua will not be enabled.')
return
elseif not cred_data.tw_consumer_secret then
print('Missing config value: tw_consumer_secret.')
print('twitter.lua will not... | Twitter: Fix, entferne unescape() und sende keine Bilder, wenn Video eingebunden ist | Twitter: Fix, entferne unescape() und sende keine Bilder, wenn Video eingebunden ist
| Lua | agpl-3.0 | Brawl345/Brawlbot-v2 |
951f43ffe615c52dbd00b8cd61bfcffce91d225b | tundra.lua | tundra.lua | require "tundra.native"
local native = require('tundra.native')
local macosx = {
Env = {
CCOPTS = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything",
"-Wno-documentation", "-Wno-missing-prototypes", "-Wno-padded",
{ "-O0", "-g"; Config = "*-*-debu... | require "tundra.native"
local native = require('tundra.native')
local macosx = {
Env = {
CCOPTS = {
"-Wall",
"-I.", "-DPRODBG_MAC",
"-Weverything",
"-Wno-c++98-compat-pedantic",
"-Wno-documentation", "-Wno-missing-prototypes", "-Wno-padded",
... | Fixed log_* warnings with -Weverything | Fixed log_* warnings with -Weverything
| Lua | mit | emoon/ProDBG,kondrak/ProDBG,SlNPacifist/ProDBG,kondrak/ProDBG,v3n/ProDBG,emoon/ProDBG,emoon/ProDBG,v3n/ProDBG,emoon/ProDBG,SlNPacifist/ProDBG,ashemedai/ProDBG,RobertoMalatesta/ProDBG,ashemedai/ProDBG,SlNPacifist/ProDBG,ashemedai/ProDBG,RobertoMalatesta/ProDBG,RobertoMalatesta/ProDBG,SlNPacifist/ProDBG,RobertoMalatesta/... |
76ab48df3b23669142dc925680cdb00a33192f87 | lualib/skynet/remotedebug.lua | lualib/skynet/remotedebug.lua | local skynet = require "skynet"
local debugchannel = require "debugchannel"
local socket = require "socket"
local injectrun = require "skynet.injectcode"
local table = table
local debug = debug
local coroutine = coroutine
local sethook = debugchannel.sethook
local M = {}
local HOOK_FUNC = "raw_dispatch_message"
loca... | local skynet = require "skynet"
local debugchannel = require "debugchannel"
local socket = require "socket"
local injectrun = require "skynet.injectcode"
local table = table
local debug = debug
local coroutine = coroutine
local sethook = debugchannel.sethook
local M = {}
local HOOK_FUNC = "raw_dispatch_message"
loca... | bugfix: watch hook begin at next call | bugfix: watch hook begin at next call
| Lua | mit | xjdrew/skynet,lawnight/skynet,jiuaiwo1314/skynet,Ding8222/skynet,longmian/skynet,KAndQ/skynet,enulex/skynet,liuxuezhan/skynet,chuenlungwang/skynet,ilylia/skynet,zhaijialong/skynet,JiessieDawn/skynet,ypengju/skynet_comment,great90/skynet,bingo235/skynet,javachengwc/skynet,ypengju/skynet_comment,czlc/skynet,zzh442856860/... |
d093198ddcd2f0f8e511dd03e848de0378b81bfd | xmake/core/base/dump.lua | xmake/core/base/dump.lua | local colors = require("base/colors")
local table = require("base/table")
local _dump = {}
function _dump._string(str, as_key)
local quote = (not as_key) or str:match("%s")
if quote then
io.write(colors.translate("${cyan}\""))
end
io.write(colors.translate("${reset}${cyan bright}", false))
... | local colors = require("base/colors")
local table = require("base/table")
local _dump = {}
function _dump._string(str, as_key)
local quote = (not as_key) or (not str:match("^[a-zA-Z_][a-zA-Z0-9_]*$"))
if quote then
io.write(colors.translate("${cyan}\""))
end
io.write(colors.translate("${res... | fix string qoute rule | fix string qoute rule
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
daf87aa14712f4813f268b86049c0e65ef2a8aaf | lib/system/plan.lua | lib/system/plan.lua | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
---------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 4 Nov 2014 by Daniel Barney ... | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
---------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 4 Nov 2014 by Daniel Barney ... | fixed queued plans causing flip to stop updating | fixed queued plans causing flip to stop updating
| Lua | mit | fliping/flip,nanopack/flip |
3f37ae3af9fe8822dd70b9737cf300924943df6f | lua/entities/gmod_wire_dhdd.lua | lua/entities/gmod_wire_dhdd.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Dupeable Hard Drive"
ENT.Author = "Divran"
ENT.WireDebugName = "Dupeable HDD"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Dupeable Hard Drive"
ENT.Author = "Divran"
ENT.WireDebugName = "Dupeable HDD"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(... | Make DHDD's Size output deterministic | Make DHDD's Size output deterministic
Currently, the DHDD size is computed with `#self.Memory`, and the
memory starts being entirely `nil` (and writing 0 to a memory cell
internally writes `nil` as a memory optimization). Given that the `#`
operator is nondeterministic when a table isn't a sequence, this makes
it esse... | Lua | apache-2.0 | sammyt291/wire,dvdvideo1234/wire,NezzKryptic/Wire,Grocel/wire,garrysmodlua/wire,wiremod/wire |
83e8397552b541d5e9c60450093e3dbe3366ed4e | src/cosy.lua | src/cosy.lua | local Tag = require "cosy.tag"
local Data = require "cosy.data"
local Protocol = require "cosy.protocol"
local ignore = require "cosy.util.ignore"
local NAME = Tag.NAME
local Cosy = {}
local meta = Data.new {
[NAME] = "meta"
}
local store = Data.new {
[NAME] = "cosy"
}
-- Set global:
local global = _... | local Tag = require "cosy.tag"
local Data = require "cosy.data"
local Protocol = require "cosy.protocol"
local ignore = require "cosy.util.ignore"
local NAME = Tag.NAME
local Cosy = {}
local meta = Data.new {
[NAME] = "meta"
}
local store = Data.new {
[NAME] = "cosy"
}
-- Set global:
local global = _... | Fix bug that caused stack overflow. | Fix bug that caused stack overflow.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
c8706c38e21faf6d53fd6ad9cc7a11af019bf5ec | test-tls.lua | test-tls.lua | local openssl = require('openssl')
local uv = require('uv')
local bit = require('bit')
local pathjoin = require('luvi').path.join
-- Sync readfile using uv apis
local function readfile(path)
local fd, stat, chunk, err
fd = assert(uv.fs_open(path, "r", 420)) -- 420 = 0644)
stat, err = uv.fs_fstat(fd)
if stat th... | local openssl = require('openssl')
local uv = require('uv')
local bit = require('bit')
local pathjoin = require('luvi').path.join
-- Sync readfile using uv apis
local function readfile(path)
local fd, stat, chunk, err
fd = assert(uv.fs_open(path, "r", 420)) -- 420 = 0644)
stat, err = uv.fs_fstat(fd)
if stat th... | Fix mostly for coroutine style | Fix mostly for coroutine style
| Lua | apache-2.0 | kaustavha/luvit,DBarney/luvit,bsn069/luvit,rjeli/luvit,DBarney/luvit,luvit/luvit,DBarney/luvit,luvit/luvit,kaustavha/luvit,kaustavha/luvit,rjeli/luvit,rjeli/luvit,bsn069/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,GabrielNic... |
147d3bb548eeba306d3d26983b5b2b5e6b5206f1 | kong/plugins/prometheus/enterprise/exporter.lua | kong/plugins/prometheus/enterprise/exporter.lua | local kong = kong
local sub = string.sub
local split = require('kong.tools.utils').split
local metrics = {}
local function init(prometheus)
metrics.license_errors = prometheus:counter("enterprise_license_errors",
"Errors when collecting license info")
metrics.license... | local kong = kong
local sub = string.sub
local split = require('kong.tools.utils').split
local metrics = {}
local function init(prometheus)
metrics.license_errors = prometheus:counter("enterprise_license_errors",
"Errors when collecting license info")
metrics.license... | fix(prometheus) properly initialize counter (#144) | fix(prometheus) properly initialize counter (#144)
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
d74a316d58fc2d4894cc4d3725b9deb11a1b628a | modules/announce.lua | modules/announce.lua | local mod = EPGP:NewModule("announce")
local AC = LibStub("AceComm-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local SendChatMessage = _G.SendChatMessage
if ChatThrottleLib then
SendChatMessage = function(...)
ChatThrottleLib:SendChatMessage... | local mod = EPGP:NewModule("announce")
local AC = LibStub("AceComm-3.0")
local Debug = LibStub("LibDebug-1.0")
local GP = LibStub("LibGearPoints-1.2")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local SendChatMessage = _G.SendChatMessage
if ChatThrottleLib then
SendChatMessage = function(...)
... | bugfix | bugfix
| Lua | bsd-3-clause | sheldon/epgp,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,protomech/epgp-dkp-reloaded,sheldon/epgp,hayword/tfatf_epgp,hayword/tfatf_epgp,ceason/epgp-tfatf |
11b5f6c6c9a7a45a6e4e4cf081ff40e9d278511d | modules/exchange.lua | modules/exchange.lua | local cc = {
["AED"] = "United Arab Emirates Dirham (AED)",
["ANG"] = "Netherlands Antillean Gulden (ANG)",
["ARS"] = "Argentine Peso (ARS)",
["AUD"] = "Australian Dollar (AUD)",
["BGN"] = "Bulgarian Lev (BGN)",
["BHD"] = "Bahraini Dinar (BHD)",
["BND"] = "Brunei Dollar (BND)",
["BOB"] = "Bolivian Boliviano (B... | local cc = {
["AED"] = "United Arab Emirates Dirham (AED)",
["ANG"] = "Netherlands Antillean Gulden (ANG)",
["ARS"] = "Argentine Peso (ARS)",
["AUD"] = "Australian Dollar (AUD)",
["BGN"] = "Bulgarian Lev (BGN)",
["BHD"] = "Bahraini Dinar (BHD)",
["BND"] = "Brunei Dollar (BND)",
["BOB"] = "Bolivian Boliviano (B... | Fix string input. | Fix string input.
| Lua | mit | haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2 |
9345d2498a5455114e84360ba684b1bca768893b | hammerspoon/init.lua | hammerspoon/init.lua | -- Reload config on write.
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
end
end
hs.pathwatcher.new(os.getenv("HOME") .. "/.homesick/repos/hammerspoon-castle/home/.hammerspoon/",... | -- Reload config on write.
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
end
end
hs.pathwatcher.new(os.getenv("HOME") .. "/.dotfiles/hammerspoon/", reloadConfig):start()
hs.alert... | Fix path in hammerspoon config. | Fix path in hammerspoon config.
| Lua | mit | squaresurf/dotfiles,squaresurf/dotfiles,squaresurf/dotfiles |
746a9c666171804b8bf1b3881d1bbe6db5543c13 | roles/neovim/config/lua/irubataru/lsp/servers/sumneko_lua.lua | roles/neovim/config/lua/irubataru/lsp/servers/sumneko_lua.lua | local path = vim.split(package.path, ";")
table.insert(path, "lua/?.lua")
table.insert(path, "lua/?/init.lua")
local function setup_libraries()
local library = {}
local function add(lib)
for _, p in pairs(vim.fn.expand(lib, false, true)) do
p = vim.loop.fs_realpath(p)
library[p] = true
end
en... | local path = vim.split(package.path, ";")
table.insert(path, "lua/?.lua")
table.insert(path, "lua/?/init.lua")
local function setup_libraries()
local library = {}
local function add(lib)
for _, p in pairs(vim.fn.expand(lib, false, true)) do
p = vim.loop.fs_realpath(p)
library[p] = true
end
en... | fix(nvim): another attempt at sumneko lsp discovery | fix(nvim): another attempt at sumneko lsp discovery
| Lua | mit | Irubataru/dotfiles,Irubataru/dotfiles,Irubataru/dotfiles |
4d28d90ddd63f23a2fe653821879703b2a9a3305 | endnotes.lua | endnotes.lua | SILE.require("packages/footnotes")
SILE.scratch.endnotes = {}
SILE.registerCommand("endnote", function(options, content)
SILE.call("footnotemark")
--local material = SILE.Commands["rebox"]({}, function()
local material = SILE.Commands["vbox"]({}, function()
SILE.Commands["footnote:font"]({}, function()
... | SILE.require("packages/footnotes")
SILE.scratch.endnotes = {}
SILE.registerCommand("endnote", function(options, content)
SILE.call("footnotemark")
local material = content
local counter = SILE.formatCounter(SILE.scratch.counters.footnote)
SILE.scratch.endnotes[#SILE.scratch.endnotes+1] = function()
return ... | Fix endnotes class to actually work | Fix endnotes class to actually work
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
a4d060e324037972979a8f8f72a78cae6aa631d0 | lua-binding/CCB/Loader.lua | lua-binding/CCB/Loader.lua | local CCBLoader = {}
local function fillCallbacks(proxy, owner, names, nodes, events)
if not owner then return end
--Callbacks
for i = 1, #names do
local callbackName = names[i]
local callbackNode = tolua.cast(nodes[i],"cc.Node")
proxy:setCallback(callbackNode, function(sender, ev... | local CCBLoader = {}
local function fillCallbacks(proxy, owner, names, nodes, events)
if not owner then return end
--Callbacks
for i = 1, #names do
local callbackName = names[i]
local callbackNode = tolua.cast(nodes[i],"cc.Node")
proxy:setCallback(callbackNode, function(sender, ev... | solve sub node ctor not called bug | solve sub node ctor not called bug
| Lua | mit | Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder,Jennal/CocosBuilder |
df0a06c8f7e9038df627e99b3d6c3ea6e17cd5d9 | MMOCoreORB/bin/scripts/loot/items/janta_hides.lua | MMOCoreORB/bin/scripts/loot/items/janta_hides.lua | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
janta_hides = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/armor/armor_segment_enhancement_janta.iff",
craftingValues = {
{"armor_special_type",0,0,0},
{"armor_effectiv... | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
janta_hides = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/armor/armor_segment_enhancement_janta.iff",
craftingValues = {
{"armor_special_type",0,0,0},
{"armor_effectiv... | (Unstable) [Fixed] Janta Hides | (Unstable) [Fixed] Janta Hides
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5122 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
ab18fa731bf81f02426eb3c1304d4e6cae81d3e3 | resources/prosody-plugins/mod_muc_allowners.lua | resources/prosody-plugins/mod_muc_allowners.lua | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local jid_host = require "util.jid".host;
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_healthcheck_room;
local extract_sub... | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local jid_host = require "util.jid".host;
local st = require "util.stanza";
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_h... | Adds new option to allowners module (#10207) | Adds new option to allowners module (#10207)
* feat: Adds option to disable owner revoke in allowners module.
* squash: Fixes few lua check warnings. | Lua | apache-2.0 | gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet |
07e0ee74e05d4cb9b8d08820496d1027a9460502 | OS/DiskOS/Programs/run.lua | OS/DiskOS/Programs/run.lua | --This file loads a lk12 disk and executes it
--First we will start by obtaining the disk data
--We will run the current code in the editor
local term = require("C://terminal")
local eapi = require("C://Editors")
local mapobj = require("C://Libraries/map")
local sprid = 3 --"spritesheet"
local codeid = 2 --"luacode"
... | --This file loads a lk12 disk and executes it
--First we will start by obtaining the disk data
--We will run the current code in the editor
local term = require("C://terminal")
local eapi = require("C://Editors")
local mapobj = require("C://Libraries/map")
local sprid = 3 --"spritesheet"
local codeid = 2 --"luacode"
... | Bugfixes | Bugfixes
| Lua | mit | RamiLego4Game/LIKO-12 |
972dbec0220c04b5b1a1249c5b4e2d4d05e4531a | sslobby/gamemode/init.lua | sslobby/gamemode/init.lua | AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("cl_scoreboard.lua")
AddCSLuaFile("modules/sh_link.lua")
AddCSLuaFile("modules/cl_link.lua")
AddCSLuaFile("modules/sh_chairs.lua")
AddCSLuaFile("modules/cl_chairs.lua")
AddCSLuaFile("modules/cl_worldpicker.lua")
AddCSLuaFile("modules/sh_minigame.lua"... | AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("cl_scoreboard.lua")
AddCSLuaFile("modules/sh_link.lua")
AddCSLuaFile("modules/cl_link.lua")
AddCSLuaFile("modules/sh_chairs.lua")
AddCSLuaFile("modules/cl_chairs.lua")
AddCSLuaFile("modules/cl_worldpicker.lua")
AddCSLuaFile("modules/sh_minigame.lua"... | I'm almost certain this if the final fix! | I'm almost certain this if the final fix! | Lua | bsd-3-clause | T3hArco/skeyler-gamemodes |
db66dcf83df7cbfd1f4ce68f4104fa98ab91afaa | src/copas/limit.lua | src/copas/limit.lua | --------------------------------------------------------------
-- Limits resource usage while executing tasks.
-- Tasks added will be run in parallel, with a maximum of
-- simultaneous tasks to prevent consuming all/too many resources.
-- Every task added will immediately be scheduled (if there is room)
-- using the `... | --------------------------------------------------------------
-- Limits resource usage while executing tasks.
-- Tasks added will be run in parallel, with a maximum of
-- simultaneous tasks to prevent consuming all/too many resources.
-- Every task added will immediately be scheduled (if there is room)
-- using the `... | fix issue with yielding across c boundary errors in limit.lua. Only applies to Lua 5.1 | fix issue with yielding across c boundary errors in limit.lua.
Only applies to Lua 5.1
| Lua | mit | keplerproject/copas |
fb76c044f67de90824637aa02aa4a667c0242085 | api.lua | api.lua | local api = {}
local http = require("socket.http")
local https = require("ssl.https")
local ltn12 = require("ltn12")
local cjson = require("cjson")
local encode = require("multipart-post").encode
https.TIMEOUT = 5
local utils = require("utils")
---@param method string
---@param parameters table
function api.makeRe... | local api = {}
local http = require("socket.http")
local https = require("ssl.https")
local ltn12 = require("ltn12")
local cjson = require("cjson")
local encode = require("multipart-post").encode
https.TIMEOUT = 5
local utils = require("utils")
---@param method string
---@param parameters table
function api.makeRe... | fix(api.lua): missing sink for get | fix(api.lua): missing sink for get
| Lua | apache-2.0 | SJoshua/Project-Small-R |
1e991db95dbd61841e114c66eefc43b1c19f302c | stdlib/data/technology.lua | stdlib/data/technology.lua | --- Technology
-- @classmod Technology
local Technology = {
_class = 'technology'
}
setmetatable(Technology, require('stdlib/data/data'))
local Is = require('stdlib/utils/is')
function Technology:_caller(tech)
return self:get(tech, 'technology')
end
--[[
type = "technology",
name = "military",
icon = "__bas... | --- Technology
-- @classmod Technology
local Technology = {
_class = 'technology'
}
setmetatable(Technology, require('stdlib/data/data'))
local Is = require('stdlib/utils/is')
function Technology:_caller(tech)
return self:get(tech, 'technology')
end
--[[
type = "technology",
name = "military",
icon = "__bas... | Fix array holes in Technology | Fix array holes in Technology
| Lua | isc | Afforess/Factorio-Stdlib |
a5129ef291c28fb0dc1414f551ce7a2524a58e52 | resources/prosody-plugins/mod_muc_allowners.lua | resources/prosody-plugins/mod_muc_allowners.lua | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local jid_host = require "util.jid".host;
local st = require "util.stanza";
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_h... | local filters = require 'util.filters';
local jid = require "util.jid";
local jid_bare = require "util.jid".bare;
local jid_host = require "util.jid".host;
local st = require "util.stanza";
local um_is_admin = require "core.usermanager".is_admin;
local util = module:require "util";
local is_healthcheck_room = util.is_h... | fix: Fixes kick when allowners is enabled. | fix: Fixes kick when allowners is enabled.
Broken after ab18fa7 which disallows the kick as the affiliation attribute is missing in kick iq that is sent.
| Lua | apache-2.0 | gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet |
bb1da653a1df8481989e554e135ff5edfc6d2fec | src_trunk/resources/admin-system/teleport.lua | src_trunk/resources/admin-system/teleport.lua | function AdminLoungeTeleport(sourcePlayer)
if (exports.global:isPlayerAdmin(sourcePlayer)) then
setElementPosition ( sourcePlayer, 275.761475, -2052.245605, 3085.291962 )
triggerClientEvent(sourcePlayer, "usedElevator", sourcePlayer)
setPedFrozen(sourcePlayer, true)
setPedGravity(sourcePlayer, 0)
end
e... | function AdminLoungeTeleport(sourcePlayer)
if (exports.global:isPlayerAdmin(sourcePlayer)) then
setElementPosition ( sourcePlayer, 275.761475, -2052.245605, 3085.291962 )
triggerClientEvent(sourcePlayer, "usedElevator", sourcePlayer)
setPedFrozen(sourcePlayer, true)
setPedGravity(sourcePlayer, 0)
end
e... | Fixed globalm essage | Fixed globalm essage
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@936 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
98560f4fbc5be2ad47ffadb318b9e329c0a03c4b | msgpack.lua | msgpack.lua | exports.name = "creationix/msgpack"
exports.version = "1.0.0"
exports.description = "A pure lua implementation of the msgpack format."
exports.homepage = "https://github.com/creationix/msgpack-lua"
exports.keywords = {"codec", "msgpack"}
local floor = math.floor
local ceil = math.ceil
local char = string.char
local by... | exports.name = "creationix/msgpack"
exports.version = "1.0.0"
exports.description = "A pure lua implementation of the msgpack format."
exports.homepage = "https://github.com/creationix/msgpack-lua"
exports.keywords = {"codec", "msgpack"}
local floor = math.floor
local ceil = math.ceil
local char = string.char
local by... | Fix int64 encoding | Fix int64 encoding
| Lua | mit | super-agent/msgpack |
23bbaa922173a75f6d49da170b91a37cfd247ac9 | lib/app.lua | lib/app.lua | local getTimer = system.getTimer
local pairs = _G.pairs
local M = {}
M.sound = true
M.music = true
M.deviceID = system.getInfo('deviceID')
if system.getInfo('environment') ~= 'simulator' then
io.output():setvbuf('no')
else
M.isSimulator = true
end
local platform = system.getInfo('platformName')
if platform... | local getTimer = system.getTimer
local pairs = _G.pairs
local M = {}
M.sound = true
M.music = true
M.deviceID = system.getInfo('deviceID')
if system.getInfo('environment') ~= 'simulator' then
io.output():setvbuf('no')
else
M.isSimulator = true
end
local platform = system.getInfo('platformName')
if platform... | Bug fix | Bug fix
| Lua | mit | ldurniat/My-Pong-Game,ldurniat/The-Great-Pong |
35e01a2f7e5ab7953d3edb386743c406fd2a2836 | modules/admin-mini/luasrc/model/cbi/mini/system.lua | modules/admin-mini/luasrc/model/cbi/mini/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-mini: fix the same issue in admin-mini | modules/admin-mini: fix the same issue in admin-mini
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5149 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 |
53c89b38d5b41c199e1431184e96235566c6dcc4 | xmake/rules/utils/merge_archive/xmake.lua | xmake/rules/utils/merge_archive/xmake.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 merge archive | fix merge archive
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
474102af9d5fc2f6111eee141e369930fc96641d | premake.lua | premake.lua |
Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64 = "Linux 64"
-- Directories
srcDir = "src"
workspace "hlsl++"
configurations { "Debug", "Release" }
location (Work... |
Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64 = "Linux 64"
-- Directories
srcDir = "src"
workspace "hlsl++"
configurations { "Debug", "Release" }
location (Work... | * Fix wrong else if statement (in Lua the correct syntax it elseif) | * Fix wrong else if statement (in Lua the correct syntax it elseif)
| Lua | mit | redorav/hlslpp,redorav/hlslpp,redorav/hlslpp |
4820a07e49e06f638cc063a509fa512813094ab6 | premake.lua | premake.lua | Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64_GCC = "Linux64_GCC"
PlatformLinux64_Clang = "Linux64_Clang"
PlatformARM = "MSVC ARM"
PlatformARM64 = "MSVC ARM64"
-- D... | Workspace = "workspace/".._ACTION
-- Compilers
PlatformMSVC64 = "MSVC 64"
PlatformMSVC32 = "MSVC 32"
PlatformLLVM64 = "LLVM 64"
PlatformLLVM32 = "LLVM 32"
PlatformOSX64 = "OSX 64"
PlatformLinux64_GCC = "Linux64_GCC"
PlatformLinux64_Clang = "Linux64_Clang"
PlatformARM = "MSVC ARM"
PlatformARM64 = "MSVC ARM64"
-- D... | Fix LLVM toolset | Fix LLVM toolset
VS2015 needs llvm-vs2014 which is what we used to have but VS2017 uses simply llvm
| Lua | mit | redorav/hlslpp,redorav/hlslpp,redorav/hlslpp |
0f720567ab5a2e50eb72dbbdecf4466af511dd05 | lua/entities/gmod_wire_expression2/core/http.lua | lua/entities/gmod_wire_expression2/core/http.lua | /*
Simple HTTP Extension
(McLovin)
*/
E2Lib.RegisterExtension( "http", false, "Lets E2 chips make web requests to the real internet.", "Allows any E2 to make your server make arbitrary HTTP GET requests to any site. It can use this to make HTTP requests to any IP address inside your local network." )
local cva... | /*
Simple HTTP Extension
(McLovin)
*/
E2Lib.RegisterExtension( "http", false, "Lets E2 chips make web requests to the real internet.", "Allows any E2 to make your server make arbitrary HTTP GET requests to any site. It can use this to make HTTP requests to any IP address inside your local network." )
local cva... | Fix HTTP executing all owned E2s | Fix HTTP executing all owned E2s
| Lua | apache-2.0 | NezzKryptic/Wire,thegrb93/wire,sammyt291/wire,Grocel/wire,wiremod/wire,dvdvideo1234/wire,garrysmodlua/wire |
870f449f65f9ce9e54c6b4678fd1f6c52ade4a96 | premake/cmft_cli.lua | premake/cmft_cli.lua | --
-- Copyright 2014 Dario Manesku. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function cmftCliProject(_cmftDir, _bxDir)
local CMFT_INCLUDE_DIR = (_cmftDir .. "include/")
local CMFT_SRC_DIR = (_cmftDir .. "src/cmft/")
local CMFT_CLI_SRC_DIR = (_cmftDir .. "s... | --
-- Copyright 2014 Dario Manesku. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function cmftCliProject(_cmftDir, _bxDir)
local CMFT_INCLUDE_DIR = (_cmftDir .. "include/")
local CMFT_SRC_DIR = (_cmftDir .. "src/cmft/")
local CMFT_CLI_SRC_DIR = (_cmftDir .. "s... | Fixed cmft runtime dir in premake. | Fixed cmft runtime dir in premake.
| Lua | bsd-2-clause | leegoonz/cmft,leegoonz/cmft,plepers/cmft,dogdirt2000/cmft,leegoonz/cmft,dogdirt2000/cmft,plepers/cmft,dogdirt2000/cmft,plepers/cmft |
a11aacf71f69792c3a7a089ca8356d7c5427f554 | ffi/framebuffer_android.lua | ffi/framebuffer_android.lua | local ffi = require("ffi")
local android = require("android")
local BB = require("ffi/blitbuffer")
local framebuffer = {}
function framebuffer:init()
-- we present this buffer to the outside
self.bb = BB.new(android.screen.width, android.screen.height, BB.TYPE_BBRGB32)
-- TODO: should we better use these?... | local ffi = require("ffi")
local android = require("android")
local BB = require("ffi/blitbuffer")
local framebuffer = {}
function framebuffer:init()
-- we present this buffer to the outside
self.bb = BB.new(android.screen.width, android.screen.height, BB.TYPE_BBRGB32)
-- TODO: should we better use these?... | [fix] Android viewport | [fix] Android viewport
Fixes https://github.com/koreader/koreader/issues/3148
| Lua | agpl-3.0 | houqp/koreader-base,koreader/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,koreader/koreader-base,koreader/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,apletnev/koreader-base,Frenzie/koreader-base,houqp/koreader-base,koreader/koreader-base,Frenzie/koreader-base,apletnev/kor... |
82a9ebda9e245a1ddc4bbcdf25f1b1119cdd825a | tests/actions/make/cpp/test_make_linking.lua | tests/actions/make/cpp/test_make_linking.lua | --
-- tests/actions/make/cpp/test_make_linking.lua
-- Validate the link step generation for makefiles.
-- Copyright (c) 2010-2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_linking")
local make = premake.make
local project = premake.project
--
-- Setup and teardown
--
local sln, p... | --
-- tests/actions/make/cpp/test_make_linking.lua
-- Validate the link step generation for makefiles.
-- Copyright (c) 2010-2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_linking")
local make = premake.make
local project = premake.project
--
-- Setup and teardown
--
local sln, p... | Linking gmake test - checks external lib name isn't mangled | Linking gmake test - checks external lib name isn't mangled
External libs with a period in the currently get changed.
The period and everything after it is deleted. So:
links {"lua-5.1"}
becomes:
-llua-5
in the makefile. This test checks for that. Fix in next commit
| Lua | bsd-3-clause | felipeprov/premake-core,noresources/premake-core,mendsley/premake-core,xriss/premake-core,CodeAnxiety/premake-core,TurkeyMan/premake-core,martin-traverse/premake-core,starkos/premake-core,lizh06/premake-core,mendsley/premake-core,LORgames/premake-core,Yhgenomics/premake-core,soundsrc/premake-core,akaStiX/premake-core,t... |
ccde19ad8ff4a79d1ff06d6c1b9b20c4541ece02 | goif.lua | goif.lua | --
-- goif
--
-- Copyright (c) 2016 BearishMushroom
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
--
local goif = goif or {}
goif.frame = 0
goif.active = false
goif.canvas = nil
goif.width = 0
goif.height = 0
goif.data = {... | --
-- goif
--
-- Copyright (c) 2016 BearishMushroom
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
--
local goif = goif or {}
goif.frame = 0
goif.active = false
goif.canvas = nil
goif.width = 0
goif.height = 0
goif.data = {... | Fixed error on Linux, allow for different-sized canvases. | Fixed error on Linux, allow for different-sized canvases.
| Lua | mit | BearishMushroom/goif |
fcb38b551753d4972b4a600b9905caa801828b51 | runtime.lua | runtime.lua | local curargs
local laserargs = false
local function selectPattern(name, ...)
if not name then
ledbar.setFunction()
return
end
name = tostring(name)
local pa = patterns[name]
if pa then
curargs = {name,...}
print("Switching to pattern "..name)
ledbar.setFunc... | local curargs
local laserargs = false
local function selectPattern(name, ...)
if not name then
ledbar.setFunction()
return
end
name = tostring(name)
local pa = patterns[name]
if pa then
curargs = {name,...}
print("Switching to pattern "..name)
ledbar.setFunc... | --bug | --bug
| Lua | mit | realraum/r3LoTHRPipeLEDs,realraum/r3LoTHRPipeLEDs |
01e797e70673ce4f4914d8334e4bc006c60db679 | src/move.lua | src/move.lua | function getTile(index)
return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y)
end
function getDirectiveEntity(index)
position = {game.players[index].position.x, game.players[index].position.y}
local list = {"left","down","up","right","accelerator_charger"}
f... | function getTile(index)
return game.players[index].surface.get_tile(game.players[index].position.x,game.players[index].position.y)
end
function getDirectiveEntity(index)
position = {game.players[index].position.x, game.players[index].position.y}
local list = {"left","down","up","right","accelerator_charger"}
f... | move a conditional up to a level to fix a bug with directives working even if charge is zero | move a conditional up to a level to fix a bug with directives working even if charge is zero
| Lua | mit | kiba/Factorio-MagneticFloor,kiba/Factorio-MagneticFloor |
bd88776f556d48c67d62317802d1e8cd03a16124 | show_model_content.lua | show_model_content.lua | require 'paths'
require 'nn'
require 'cutorch'
require 'cunn'
require 'LeakyReLU'
require 'dpnn'
require 'layers.cudnnSpatialConvolutionUpsample'
require 'stn'
OPT = lapp[[
--save (default "logs") subdirectory in which the model is saved
--network (default "adversarial.net... | require 'paths'
require 'nn'
require 'cutorch'
require 'cunn'
require 'cudnn'
require 'dpnn'
OPT = lapp[[
--save (default "logs") subdirectory in which the model is saved
--network (default "adversarial.net") name of the model file
]]
local filepath = paths.concat(OPT... | Fix requires in model shower | Fix requires in model shower
| Lua | mit | aleju/christmas-generator |
405196bb0196c12c0914ab8b59fe45477b91e6ea | test_scripts/Polices/appID_Management/008_ATF_P_TC_Register_App_Interface_Without_Data_Consent_Assign_pre_DataConsent_Policies.lua | test_scripts/Polices/appID_Management/008_ATF_P_TC_Register_App_Interface_Without_Data_Consent_Assign_pre_DataConsent_Policies.lua | ------------- --------------------------------------------------------------------------------
-- Requirement summary:
-- [RegisterAppInterface] Without data consent, assign "pre_DataConsent" policies
-- to the application which appID does not exist in LocalPT
--
-- Description:
-- SDL should assign "pre_DataConsent" p... | ------------- --------------------------------------------------------------------------------
-- Requirement summary:
-- [RegisterAppInterface] Without data consent, assign "pre_DataConsent" policies
-- to the application which appID does not exist in LocalPT
--
-- Description:
-- SDL should assign "pre_Da... | Fixed issues and made refactoring | Fixed issues and made refactoring
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
af28dba1f52990cb7b6c3c8f69f1f1bcf017c90a | tests/apis/rules/xmake.lua | tests/apis/rules/xmake.lua |
-- define rule: markdown
rule("markdown")
set_extensions(".md", ".markdown")
on_load(function (target)
print("markdown: on_load")
end)
on_build_file(function (target, sourcefile)
print("compile %s", sourcefile)
os.cp(sourcefile, path.join(target:targetdir(), path.basename(source... |
-- define rule: markdown
rule("markdown")
set_extensions(".md", ".markdown")
on_load(function (target)
print("markdown: on_load")
end)
on_build_file(function (target, sourcefile)
print("compile %s", sourcefile)
os.cp(sourcefile, path.join(target:targetdir(), path.basename(source... | fix tests | fix tests
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
d64e5ddaf6f32b8ff199dcba50eac51bf4a0d4cc | Reshape.lua | Reshape.lua | local Reshape, parent = torch.class('nn.Reshape', 'nn.Module')
function Reshape:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
self.batchsize = torch.LongStorage()
if torch.type(arg[#arg]) == 'boolean' then
self.batchMode = arg[#arg]
table.remove(arg, #arg... | local Reshape, parent = torch.class('nn.Reshape', 'nn.Module')
function Reshape:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
self.batchsize = torch.LongStorage()
if torch.type(arg[#arg]) == 'boolean' then
self.batchMode = arg[#arg]
table.remove(arg, #arg... | Fixed wrong place of _gradOutput initialization | Fixed wrong place of _gradOutput initialization
| Lua | bsd-3-clause | kmul00/nn,apaszke/nn,colesbury/nn,joeyhng/nn,eriche2016/nn,nicholas-leonard/nn,PraveerSINGH/nn,diz-vara/nn,elbamos/nn,sagarwaghmare69/nn,jonathantompson/nn,xianjiec/nn,caldweln/nn,jhjin/nn |
6a3fa3650442a8d8ee712dbafa8f25af88a96c18 | vrp/client/player_state.lua | vrp/client/player_state.lua |
-- periodic player state update
local state_ready = false
function tvRP.playerStateReady(state)
state_ready = state
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(30000)
if IsPlayerPlaying(PlayerId()) and state_ready then
local x,y,z = table.unpack(GetEntityCoords(GetPlayerPed(-1)... |
-- periodic player state update
local state_ready = false
function tvRP.playerStateReady(state)
state_ready = state
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(30000)
if IsPlayerPlaying(PlayerId()) and state_ready then
local x,y,z = table.unpack(GetEntityCoords(GetPlayerPed(-1)... | setCustomization armour loss fix. | setCustomization armour loss fix.
| Lua | mit | ImagicTheCat/vRP,ImagicTheCat/vRP |
4603bb7fc78ea35c5cff2647510c7a6f901e858c | nyagos.lua | nyagos.lua | print("Nihongo Yet Another GOing Shell")
print(string.format("Build at %s with commit %s",nyagos.stamp,nyagos.commit))
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.
loca... | print("Nihongo Yet Another GOing Shell")
print(string.format("Build at %s with commit %s",nyagos.stamp,nyagos.commit))
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.
loca... | suffix コマンド発行時に PATHEXT に登録するようにした。 | suffix コマンド発行時に PATHEXT に登録するようにした。
| Lua | bsd-3-clause | kissthink/nyagos,kissthink/nyagos,hattya/nyagos,tyochiai/nyagos,nocd5/nyagos,zetamatta/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,hattya/nyagos,hattya/nyagos |
2df0c26c77dcb6e2000ff38b90bb118dc37038bb | dmc_lua/lua_error.lua | dmc_lua/lua_error.lua | --====================================================================--
-- lua_error.lua
--
-- Documentation: http://docs.davidmccuskey.com/display/docs/lua_error.lua
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014 David McCuskey. All Rights Res... | --====================================================================--
-- lua_error.lua
--
-- Documentation: http://docs.davidmccuskey.com/display/docs/lua_error.lua
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014 David McCuskey. All Rights Res... | allow error prefix to be changed | allow error prefix to be changed | Lua | mit | dmccuskey/lua-objects |
5db14f96401c55f78cfd0953ad47836ca9abe0e1 | npc/base/talk.lua | npc/base/talk.lua | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | Another try to fix the response processing | Another try to fix the response processing
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content |
4e703fcb95af93a8a03506a39e6b8d43a222f9f9 | hammerspoon/.hammerspoon/audio.lua | hammerspoon/.hammerspoon/audio.lua | local hyper = {"cmd", "alt", "ctrl"}
-- Swap between a Main audio output and a series of ranked secondary outputs
-- Main Output: Vanatoo T0
-- Ranked Secondary Outputs:x
-- 1) JDS Labs DAC
-- 2) Yeti DAC
-- 3) Elgato DAC
-- 4) Laptop Speakers
-------------------------------------------------------------------... | local hyper = {"cmd", "alt", "ctrl"}
-- Swap between a Main audio output and a series of ranked secondary outputs
-- Main Output: Vanatoo T0
-- Ranked Secondary Outputs:x
-- 1) JDS Labs DAC
-- 2) Yeti DAC
-- 3) Elgato DAC
-- 4) Laptop Speakers
-------------------------------------------------------------------... | fix audio output switch to support new Studio Display | fix audio output switch to support new Studio Display
| Lua | mit | francoiscote/dotfiles,francoiscote/dotfiles |
0f3cb4e13819b1c9ff9c4f79b27a910ebd774d5d | translations/others/scripts/actions/dialog.lua | translations/others/scripts/actions/dialog.lua | require("/scripts/quest/text_generation.lua")
require("/scripts/util.lua")
function context()
return _ENV[entity.entityType()]
end
function entityVariant()
if entity.entityType() == "monster" then
return monster.type()
elseif entity.entityType() == "npc" then
return npc.npcType()
elseif entity.entityTy... | require("/scripts/quest/text_generation.lua")
require("/scripts/util.lua")
function context()
return _ENV[entity.entityType()]
end
function entityVariant()
if entity.entityType() == "monster" then
return monster.type()
elseif entity.entityType() == "npc" then
return npc.npcType()
elseif entity.entityTy... | Fixed dialogs after tag generator rewriting | Fixed dialogs after tag generator rewriting
| Lua | apache-2.0 | MrHimera/Starbound_RU,UniverseGuard/Starbound_RU,UniverseGuard/Starbound_RU,SBT-community/Starbound_RU,MrHimera/Starbound_RU,SBT-community/Starbound_RU,GuardOscar/Starbound_RU,GuardOscar/Starbound_RU |
7e04c97b70d8ef9bf3c5b7091952790809135456 | frontend/document/pdfdocument.lua | frontend/document/pdfdocument.lua | require "cache"
require "ui/geometry"
PdfDocument = Document:new{
_document = false,
-- muPDF manages its own additional cache
mupdf_cache_size = 5 * 1024 * 1024,
dc_null = DrawContext.new()
}
function PdfDocument:init()
local ok
ok, self._document = pcall(pdf.openDocument, self.file, self.mupdf_cache_size)
if... | require "cache"
require "ui/geometry"
PdfDocument = Document:new{
_document = false,
-- muPDF manages its own additional cache
mupdf_cache_size = 5 * 1024 * 1024,
dc_null = DrawContext.new()
}
function PdfDocument:init()
local ok
ok, self._document = pcall(pdf.openDocument, self.file, self.mupdf_cache_size)
if... | bug fix for PdfDocument:getUsedBBox | bug fix for PdfDocument:getUsedBBox
when cache found, we should return cache.ubbox
not cache.data
| Lua | agpl-3.0 | ashhher3/koreader,koreader/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,noname007/koreader,houqp/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,robert00s/koreader,Frenzie/koreader-base,Frenzie/koreader,apletnev/koreader-base,koreader/koreader,mihailim/koreader,Hzj-jie/koreade... |
8849de47985e14562f72c641e1697f3c7d397ff5 | lua/main.lua | lua/main.lua | -- Lua module search path
package.path = './lua/?.lua'
-- C module (shared library) search path
package.cpath = '../MacOS/lib?.dylib;./bin/lib?.so;./bin/?.dll'
assert(jit.os == 'OSX' or jit.os == 'Linux' or jit.os == 'Windows', 'Target OS not supported: ' .. jit.os)
require 'engine.fileutil'.init()
-- ===============... | -- Lua module search path
package.path = './lua/?.lua'
-- C module (shared library) search path
package.cpath = '../MacOS/lib?.dylib;./bin/lib?.so;./bin/?.dll'
assert(jit.os == 'OSX' or jit.os == 'Linux' or jit.os == 'Windows', 'Target OS not supported: ' .. jit.os)
require 'engine.fileutil'.init()
-- ===============... | Fix GLFW lib name on WIN | Fix GLFW lib name on WIN
| Lua | mit | lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot |
f93b9b9eaaae1ff62d8dbb25b3ed391461faa2ae | config/nvim/lua/init/packer.lua | config/nvim/lua/init/packer.lua | local install_path = vim.fn.stdpath('data') ..
'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({
'git', 'clone', 'https://github.com/wbthomason/packer.nvim',
install_path
})
end
require('packer').startup(function(... | local install_path = vim.fn.stdpath('data') ..
'/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({
'git', 'clone', 'https://github.com/wbthomason/packer.nvim',
install_path
})
end
require('packer').startup(function(... | Fix dependency | Fix dependency
| Lua | unlicense | raviqqe/dotfiles |
e54f22b179363669814d9b10e2dbad1570433643 | kong/plugins/azure-functions/schema.lua | kong/plugins/azure-functions/schema.lua | local typedefs = require "kong.db.schema.typedefs"
return {
name = "azure-functions",
fields = {
{ config = {
type = "record",
fields = {
{ run_on = typedefs.run_on_first },
-- connection basics
{ timeout = { type = "number", default = 600000}, },
... | local typedefs = require "kong.db.schema.typedefs"
return {
name = "azure-functions",
fields = {
{ run_on = typedefs.run_on_first },
{ config = {
type = "record",
fields = {
-- connection basics
{ timeout = { type = "number", default = 600000}, },
{ ke... | fix(azure-functions) run_on in schema should be in toplevel fields table, fix #7 | fix(azure-functions) run_on in schema should be in toplevel fields table, fix #7
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
d93dfb6e6272fe489caeb833282220b30b6507c7 | MMOCoreORB/bin/scripts/loot/groups/loot_kit_parts.lua | MMOCoreORB/bin/scripts/loot/groups/loot_kit_parts.lua | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
loot_kit_parts = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "blue_rug_dye", weight = 150000},
{itemTemplate = "blue_rug_adhesive", weight = 50002},
{itemTemplate = "blue_rug_patches", weight = 150000}... | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
loot_kit_parts = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "blue_rug_dye", weight = 202120},
{itemTemplate = "blue_rug_adhesive", weight = 104120},
{itemTemplate = "blue_rug_patches", weight = 204120... | [fixed] balanced loot kit drops | [fixed] balanced loot kit drops
Change-Id: Ic6fc8afc7fd42d11ee8e656119bf83213822638d
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/... |
623ba7926fdb52ace61fbc38fbcf93f4f62cf51c | csharp/tools/tracing-config.lua | csharp/tools/tracing-config.lua | function RegisterExtractorPack(id)
local extractor = GetPlatformToolsDirectory() ..
'Semmle.Extraction.CSharp.Driver'
if OperatingSystem == 'windows' then extractor = extractor .. '.exe' end
function DotnetMatcherBuild(compilerName, compilerPath, compilerArguments,
_... | function RegisterExtractorPack(id)
local extractor = GetPlatformToolsDirectory() ..
'Semmle.Extraction.CSharp.Driver'
if OperatingSystem == 'windows' then extractor = extractor .. '.exe' end
function DotnetMatcherBuild(compilerName, compilerPath, compilerArguments,
_... | C#: Fix `/p:UseSharedCompilation=false` tracer injection for `dotnet run` | C#: Fix `/p:UseSharedCompilation=false` tracer injection for `dotnet run`
| Lua | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql |
fbf90063b9f71ecacc64ba221e5894b3278d0ade | mock/audio/SoundSourceAnimatorTrack.lua | mock/audio/SoundSourceAnimatorTrack.lua | module 'mock'
--------------------------------------------------------------------
CLASS: SoundSourceAnimatorKey ( AnimatorEventKey )
:MODEL{
Field 'clip' :asset('fmod_event') :set( 'setClip' );
}
function SoundSourceAnimatorKey:__init()
self.clip = ''
end
function SoundSourceAnimatorKey:setClip( clip )
sel... | module 'mock'
--------------------------------------------------------------------
CLASS: SoundSourceAnimatorKey ( AnimatorEventKey )
:MODEL{
Field 'clip' :asset( getSupportedSoundAssetTypes() ) :set( 'setClip' );
}
function SoundSourceAnimatorKey:__init()
self.clip = ''
end
function SoundSourceAnimatorKey:s... | soundsource in animator fix | soundsource in animator fix
| Lua | mit | tommo/mock |
771476b72d5ca3c1daa11ce2ec0d07f9ec39f0ca | src/plugins/finalcutpro/timeline/movetoplayhead.lua | src/plugins/finalcutpro/timeline/movetoplayhead.lua | --- === plugins.finalcutpro.timeline.movetoplayhead ===
---
--- Move To Playhead.
local require = require
local log = require("hs.logger").new("selectalltimelineclips")
local fcp = require("cp.apple.finalcutpro")
local Do = require("cp.rx.go.Do")
---------------------------------------... | --- === plugins.finalcutpro.timeline.movetoplayhead ===
---
--- Move To Playhead.
local require = require
local log = require("hs.logger").new("selectalltimelineclips")
local fcp = require("cp.apple.finalcutpro")
local Do = require("cp.rx.go.Do")
-------------------------... | #1754 | #1754
- Fixed bug in “Move to Playhead”
- Closes #1754
| Lua | mit | CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
f98b3c6ab8a8e66761b55dbe0fe8b668b1f73ed8 | controllers/mg1.lua | controllers/mg1.lua | --[[
The MG1 policy
Like Cohort scheduling's wavefront pattern, the MG1 policy was based on a very simple idea, namely
that stages should receive time on the CPU in proportion to their load.
The polling tables for the MG1 policy are constructed in such a way that the most heavily-loaded stages are visited more ... | --[[
The MG1 policy
Like Cohort scheduling's wavefront pattern, the MG1 policy was based on a very simple idea, namely
that stages should receive time on the CPU in proportion to their load.
The polling tables for the MG1 policy are constructed in such a way that the most heavily-loaded stages are visited more ... | Bug fixes in LG1 controller | Bug fixes in LG1 controller
| Lua | mit | brenoriba/lstage,brenoriba/lstage |
0534ccbd399f9addc2fb382a0a735bb07d300733 | site/api/notifications.lua | site/api/notifications.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 License, Version 2.0
(the "License"); you may not use ... | --[[
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 License, Version 2.0
(the "License"); you may not use ... | Docco fix | Docco fix | Lua | apache-2.0 | jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,jimjag/ponymail,Humbedooh/ponymail,jimjag/ponymail,jimjag/ponymail |
e9936e2acec7afdbdb35d9bcf7a6fddad607903d | lib/onmt/Encoder.lua | lib/onmt/Encoder.lua | --[[ Encoder is a unidirectional Sequencer used for the source language.
h_1 => h_2 => h_3 => ... => h_n
| | | |
. . . .
| | | |
h_1 => h_2 => h_3 => ... => h_n
| | | |
| | | |... | --[[ Encoder is a unidirectional Sequencer used for the source language.
h_1 => h_2 => h_3 => ... => h_n
| | | |
. . . .
| | | |
h_1 => h_2 => h_3 => ... => h_n
| | | |
| | | |... | fix brnn parameters sharing when retraining | fix brnn parameters sharing when retraining
| Lua | mit | jsenellart/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,srush/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,cservan/OpenNMT_scores_0.2.0,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jsenella... |
99662a535a5969a1b38a7a2f7b436c62873fb3e4 | modules/title/post/olds.lua | modules/title/post/olds.lua | local sql = require'lsqlite3'
local date = require'date'
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = function()
local dbfilename = string.format("cache/urls.%s.sql", iva... | local sql = require'lsqlite3'
local date = require'date'
local uri = require"handler.uri"
local uri_parse = uri.parse
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = functio... | title/olds: Don't lookup rooth path URLs. | title/olds: Don't lookup rooth path URLs.
Fixes #46.
Former-commit-id: 3d7ae5510fa00acb45006848621162ab68bd5e29 [formerly 35eec07d55e7ed36e05f894bf6f7f65162841ff9]
Former-commit-id: 96df969196a36714a8092e321517d75523457016 | Lua | mit | torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2 |
3203b8fe7ea8ddf36c3211262854032f1ad628ac | bot.lua | bot.lua | local bot = {}
-- Requires are moved to init to allow for reloads.
local bindings -- Load Telegram bindings.
local utilities -- Load miscellaneous and cross-plugin functions.
bot.version = '3.7'
function bot:init() -- The function run when the bot is started or reloaded.
bindings = require('bindings')
utilities =... | local bot = {}
-- Requires are moved to init to allow for reloads.
local bindings -- Load Telegram bindings.
local utilities -- Load miscellaneous and cross-plugin functions.
bot.version = '3.7'
function bot:init() -- The function run when the bot is started or reloaded.
bindings = require('bindings')
utilities =... | Fix for the latest API update. | Fix for the latest API update.
| Lua | mit | barreeeiroo/BarrePolice,topkecleon/otouto,Brawl345/Brawlbot-v2,bb010g/otouto |
58c5e35a4c529ec7de3aecd6c84383f98c4cabe8 | lualib/saux/msg.lua | lualib/saux/msg.lua | local core = require "silly.core"
local np = require "netpacket"
local TAG = "saux.msg"
local msg = {}
local msgserver = {}
local msgclient = {}
local function gc(obj)
if not obj.fd then
return
end
if obj.fd < 0 then
return
end
core.close(obj.fd, TAG)
obj.fd = false
end
local servermt = {__index = msgserve... | local core = require "silly.core"
local np = require "netpacket"
local TAG = "saux.msg"
local msg = {}
local msgserver = {}
local msgclient = {}
local function gc(obj)
if not obj.fd then
return
end
if obj.fd < 0 then
return
end
core.close(obj.fd, TAG)
obj.fd = false
end
local servermt = {__index = msgserve... | bugfix: saux.msg.close | bugfix: saux.msg.close
saux.msg.close conflict with EVENT.close
| Lua | mit | findstr/silly |
184d9e3f334e4f036e8fa8dc12d1d7a12bc76145 | MMOCoreORB/bin/scripts/screenplays/caves/tatooine_hutt_hideout.lua | MMOCoreORB/bin/scripts/screenplays/caves/tatooine_hutt_hideout.lua | HuttHideoutScreenPlay = ScreenPlay:new {
numberOfActs = 1,
lootContainers = {
134411,
8496263,
8496262,
8496260
},
lootLevel = 32,
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 200000},
{group = "junk", chance = 6800000},
{group = "rifles", chance = 1000000},
{g... | HuttHideoutScreenPlay = ScreenPlay:new {
numberOfActs = 1,
lootContainers = {
134411,
8496263,
8496262,
8496261,
8496260
},
lootLevel = 26,
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 160000},
{group = "junk", chance = 8600000},
{group = "rifles", chance = 50000... | (unstable) [fixed] Finished spawns and containers in Hutt Hideout cave. | (unstable) [fixed] Finished spawns and containers in Hutt Hideout cave.
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5498 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | 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,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
d0ff07d2624a2c216900284da9ba8643e1dc9106 | build/scripts/tools/ndk_server.lua | build/scripts/tools/ndk_server.lua | TOOL.Name = "SDKServer"
TOOL.Directory = "../SDK/lib"
TOOL.Kind = "Library"
TOOL.Defines = {
"NDK_BUILD",
"NDK_SERVER"
}
TOOL.Includes = {
"../SDK/include"
}
TOOL.Files = {
"../SDK/include/NDK/**.hpp",
"../SDK/include/NDK/**.inl",
"../SDK/src/NDK/**.hpp",
"../SDK/src/NDK/**.inl",
"../SDK/src/NDK/**.cpp"
}
... | TOOL.Name = "SDKServer"
TOOL.Directory = "../SDK/lib"
TOOL.Kind = "Library"
TOOL.Defines = {
"NDK_BUILD",
"NDK_SERVER"
}
TOOL.Includes = {
"../SDK/include"
}
TOOL.Files = {
"../SDK/include/NDK/**.hpp",
"../SDK/include/NDK/**.inl",
"../SDK/src/NDK/**.hpp",
"../SDK/src/NDK/**.inl",
"../SDK/src/NDK/**.cpp"
}
... | Build/SdkServer: Fix Console.cpp being included in the project | Build/SdkServer: Fix Console.cpp being included in the project
Former-commit-id: 62d706654c398a60946282e112d7e139107ac745 | Lua | mit | DigitalPulseSoftware/NazaraEngine |
0f692c7712658e317fd7c46a542ada83612bfe16 | share/media/liveleak.lua | share/media/liveleak.lua | -- libquvi-scripts
-- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | -- libquvi-scripts
-- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 Fre... | FIX: media/liveleak.lua: Sanitize input for LuaJSON | FIX: media/liveleak.lua: Sanitize input for LuaJSON
Otherwise the script will throw an error that looks like:
/usr/share/lua/5.1/json/decode/util.lua:40: unexpected character @
character: 733 17:16 [e] line:
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gmail.com>
| Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
370bfef803199ca5be55217ddc047b4230057e04 | check/apache.lua | check/apache.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix(check/apache): Fixes problem with the script overwriting custom paths specified by users. Resolves #832 | fix(check/apache): Fixes problem with the script overwriting custom paths specified by users. Resolves #832
also check for an empty path
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent |
a01286c0f1da00faa8f18ffe9c0ae9467e6f2fbd | .Framework/src/MY.InfoCache.lua | .Framework/src/MY.InfoCache.lua | -----------------------------------------------
-- @Desc : ֵļָٴ洢ģ
-- @Author: @˫ @Ӱ
-- @Date : 2015-11-3 16:24:28
-- @Email : admin@derzh.com
-- @Last Modified by: һ @tinymins
-- @Last Modified time: 2015-11-3 16:24:40
-----------------------------------------------
local tconcat = table.concat
local tremove = ta... | -----------------------------------------------
-- @Desc : ֵļָٴ洢ģ
-- @Author: @˫ @Ӱ
-- @Date : 2015-11-3 16:24:28
-- @Email : admin@derzh.com
-- @Last Modified by: һ @tinymins
-- @Last Modified time: 2015-11-3 16:24:40
-----------------------------------------------
local tconcat = table.concat
local tremove = ta... | IC引擎清除数据的一处BUG | IC引擎清除数据的一处BUG
| Lua | bsd-3-clause | tinymins/MY |
6a0da42befb970b56f93c0bf109a9cb7475e8e0c | libs/web/luasrc/dispatcher.lua | libs/web/luasrc/dispatcher.lua | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | --[[
LuCI - Dispatcher
Description:
The request dispatcher and module dispatcher generators
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of... | * Fixed caching mechanism | * Fixed caching mechanism
| Lua | apache-2.0 | tcatm/luci,remakeelectric/luci,kuoruan/luci,LuttyYang/luci,openwrt-es/openwrt-luci,urueedi/luci,palmettos/cnLuCI,rogerpueyo/luci,cshore/luci,joaofvieira/luci,db260179/openwrt-bpi-r1-luci,artynet/luci,LazyZhu/openwrt-luci-trunk-mod,bittorf/luci,jorgifumi/luci,wongsyrone/luci-1,fkooman/luci,NeoRaider/luci,opentechinstitu... |
592f9464e5a64649a824eb5eaf88a6e0a97e6009 | lib/luvit/utils.lua | lib/luvit/utils.lua | --[[
Copyright 2012 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 2012 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... | Do not polute global namespace with useColors and fix typo | Do not polute global namespace with useColors and fix typo
| Lua | apache-2.0 | boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,DBarney/luvit,sousoux/luvit,sousoux/luvit,connectFree/lev,boundary/luvit,AndrewTsao/luvit,boundary/luvit,rjeli/luvit,luvit/luvit,sousoux/luvit,rjeli/luvit,rjeli/luvit,kaustavha/luvit,zhaozg/luvit,kaustavha/luvit,zhaozg/luvit,kaustavha/luvit,boundary/luvit,bsn069/lu... |
c04634778e29139d7c4485725da49fd3ac6dfb09 | modules/shipment.lua | modules/shipment.lua | local util = require'util'
local simplehttp = util.simplehttp
local json = util.json
local apiurl = 'http://sporing.bring.no/sporing.json?q=%s&%s'
local duration = 60
-- Abuse the ivar2 global to store out ephemeral event data until we can get some persistant storage
if(not ivar2.shipmentEvents) then ivar2.shipmentE... | local util = require'util'
local simplehttp = util.simplehttp
local json = util.json
local apiurl = 'http://sporing.bring.no/sporing.json?q=%s&%s'
local duration = 60
-- Abuse the ivar2 global to store out ephemeral event data until we can get some persistant storage
if(not ivar2.shipmentEvents) then ivar2.shipmentE... | shipment: fix timer and polling | shipment: fix timer and polling
| Lua | mit | torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2 |
ebbdaefea493a1065a3f5a34f46df30c6b8aa0fe | libs/weblit-app.lua | libs/weblit-app.lua | exports.name = "creationix/weblit-app"
exports.version = "0.1.1"
exports.dependencies = {
'creationix/coro-wrapper@1.0.0',
'creationix/coro-tcp@1.0.5',
'luvit/http-codec@1.0.0',
}
--[[
Web App Framework
Middleware Contract:
function middleware(req, res, go)
req.method
req.path
req.params
req.headers
r... | exports.name = "creationix/weblit-app"
exports.version = "0.1.2"
exports.dependencies = {
'creationix/coro-wrapper@1.0.0',
'creationix/coro-tcp@1.0.5',
'luvit/http-codec@1.0.0',
}
--[[
Web App Framework
Middleware Contract:
function middleware(req, res, go)
req.method
req.path
req.params
req.headers
r... | Fix post and add socket access | Fix post and add socket access
| Lua | mit | zhaozg/weblit |
d64f5cdb7b8fffea2004a137796736769eddfefc | lua/entities/gmod_wire_igniter.lua | lua/entities/gmod_wire_igniter.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Igniter"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Igniter"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Igniter"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Igniter"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | Fix #545. Igniter now obeys prop protection. | Fix #545. Igniter now obeys prop protection.
| Lua | apache-2.0 | plinkopenguin/wiremod,wiremod/wire,rafradek/wire,thegrb93/wire,immibis/wiremod,CaptainPRICE/wire,notcake/wire,bigdogmat/wire,garrysmodlua/wire,NezzKryptic/Wire,Python1320/wire,mitterdoo/wire,sammyt291/wire,mms92/wire,dvdvideo1234/wire,Grocel/wire |
d09550bbfd482a50e241bd0db307aae0c723b77a | lua/plugins/lsp.lua | lua/plugins/lsp.lua | local nvim = require('nvim')
local sys = require('sys')
local executable = require('nvim').fn.executable
local isdirectory = require('nvim').fn.isdirectory
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
-- local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
... | local nvim = require('nvim')
local sys = require('sys')
local executable = require('nvim').fn.executable
local isdirectory = require('nvim').fn.isdirectory
local nvim_set_autocmd = require('nvim').nvim_set_autocmd
-- local nvim_set_command = require('nvim').nvim_set_command
local ok, lsp = pcall(require, 'nvim_lsp')
... | fix: Add log to pyls | fix: Add log to pyls
Add log arg to pyls in nvim-lsp settings
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
cd32fd370aa8b58a39e93989cf900c80f11313cd | hammerspoon/init.lua | hammerspoon/init.lua | function setFrame(frameBuilder, multiplier)
local win = hs.window.focusedWindow()
local frame = win:frame()
local screen = win:screen()
local max = screen:frame()
local gap = 10
local frame = frameBuilder(win, frame, max, gap, multiplier)
informativeText = "x: " .. frame.x .. " y: " .. frame.y .. " w: "... | function setFrame(frameBuilder)
local win = hs.window.focusedWindow()
local frame = win:frame()
local screen = win:screen()
local max = screen:frame()
local gap = 10
local frame = frameBuilder(win, frame, max, gap)
informativeText = "x: " .. frame.x .. " y: " .. frame.y .. " w: " .. frame.w .. " h: ".. ... | Revert to fixed functions per layout thing | Revert to fixed functions per layout thing
| Lua | mit | b-ggs/dotfiles |
eeaacc90ffa6e35110cae509f2613284226791eb | modulefiles/Core/geant4/9.4p02.lua | modulefiles/Core/geant4/9.4p02.lua | help(
[[
This module loads Geant4 9.4p02. Geant4 is a detector simulator for HEP.
]])
whatis("Loads Geant4 9.4p02")
local version "," "9.4p02"
local base "," "/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/"..version
prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib"))
prepend_path("LIBRARY_PATH", pathJoin... | help(
[[
This module loads Geant4 9.4p02. Geant4 is a detector simulator for HEP.
]])
whatis("Loads Geant4 9.4p02")
local version = "9.4p02"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/"..version
prepend_path("LD_LIBRARY_PATH", "/cvmfs/oasis.opensciencegrid.org/osg/modules/geant4/9.4p02/lib/g... | Fix paths and broken modulefile | Fix paths and broken modulefile
| Lua | apache-2.0 | OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles |
07d153d2527dd9b6ced7e61102d9cf56bf788e94 | site/api/mbox.lua | site/api/mbox.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 License, Version 2.0
(the "License"); you may not use ... | --[[
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 License, Version 2.0
(the "License"); you may not use ... | Output the timestamp in UTC and fix field widths | Output the timestamp in UTC and fix field widths
This completes the fix for #190 | Lua | apache-2.0 | jimjag/ponymail,quenda/ponymail,quenda/ponymail,jimjag/ponymail,jimjag/ponymail,Humbedooh/ponymail,Humbedooh/ponymail,quenda/ponymail,Humbedooh/ponymail,jimjag/ponymail |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.