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
e2b790ac217656b8ed52047426151a7d3e0f56de
frlib/primitives/simple.lua
frlib/primitives/simple.lua
-- Import relevant base types. local types = require "base.types" require "base.vec2" require "base.vec3" -- Import utility functions. local geometric = require "base.geometric" -- Module aliases. local vec2 = types.vec2 local vec3 = types.vec3 local normalize = geometric.normalize -- Creates a function that returns...
-- Import relevant base types. local types = require "base.types" require "base.vec2" require "base.vec3" -- Import utility functions. local geometric = require "base.geometric" -- Module aliases. local vec2 = types.vec2 local vec3 = types.vec3 -- Creates a function that returns geometry for a cube with sides of len...
Fixed bug in cube.
Fixed bug in cube.
Lua
mit
bobsomers/flexrender,bobsomers/flexrender
6703fc1a1af5b8ed63240bf25a25b099d7188a6a
src/hs/finalcutpro/main/Playhead.lua
src/hs/finalcutpro/main/Playhead.lua
local log = require("hs.logger").new("timline") local inspect = require("hs.inspect") local just = require("hs.just") local axutils = require("hs.finalcutpro.axutils") local Playhead = {} function Playhead:new(parent) o = {_parent = parent} setmetatable(o, self) self.__index = self retu...
local log = require("hs.logger").new("timline") local inspect = require("hs.inspect") local just = require("hs.just") local axutils = require("hs.finalcutpro.axutils") local Playhead = {} function Playhead.isPlayhead(element) return element and element:attributeValue("AXRole") == "AXValueI...
#64 * Fixed bug where making edits on the timeline would confuse Lock Playhead.
#64 * Fixed bug where making edits on the timeline would confuse Lock Playhead.
Lua
mit
cailyoung/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks
8ba20b1813a06697018504f40f862088956a2017
src/sounds/src/Shared/SoundUtils.lua
src/sounds/src/Shared/SoundUtils.lua
--[=[ Helps plays back sounds in the Roblox engine. ```lua SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound ``` @class SoundUtils ]=] local SoundService = game:GetService("SoundService") local RunService = game:GetService("RunService") local SoundUtils = {} --[=[ Plays back a templa...
--[=[ Helps plays back sounds in the Roblox engine. ```lua SoundUtils.playFromId("rbxassetid://4255432837") -- Plays a wooshing sound ``` @class SoundUtils ]=] local require = require(script.Parent.loader).load(script) local SoundService = game:GetService("SoundService") local RunService = game:GetService("Run...
fix: Allow way to play a sound in a parent
fix: Allow way to play a sound in a parent
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
fc6a6aa8ff6a0baa2595dcf94303483186ccfab1
usr/product/sigma-firmware/rules.lua
usr/product/sigma-firmware/rules.lua
-- Sigma rules -- base Pkg:add { 'ast-files' } Pkg:add { 'cmake-modules' } Pkg:add { 'linux' } Pkg:add { 'xsdk' } Pkg:add { 'ucode', 'target', { 'install' } } -- host Pkg:add { 'utils', 'host' } Pkg:add { 'karaoke-player', 'host', requires = { 'chicken-eggs', 'ffmpeg', 'libuv', ...
-- Sigma rules -- base Pkg:add { 'ast-files' } Pkg:add { 'cmake-modules' } Pkg:add { 'linux' } Pkg:add { 'xsdk' } Pkg:add { 'ucode', 'target', { 'install' } } -- host Pkg:add { 'utils', 'host' } Pkg:add { 'karaoke-player', 'host', requires = { 'chicken-eggs', 'ffmpeg', 'libuv', ...
Fix kernel install deps in sigma rules
Fix kernel install deps in sigma rules
Lua
mit
bazurbat/jagen
942d80734518ce29a136dcb0e3bfcdf546011ab9
src/plugins/finalcutpro/browser/insertvertical.lua
src/plugins/finalcutpro/browser/insertvertical.lua
--- === plugins.finalcutpro.browser.insertvertical === --- --- Insert Clips Vertically from Browser to Timeline. local require = require local log = require "hs.logger".new "addnote" local fcp = require "cp.apple.finalcutpro" local dialog = require "cp.dialog" local i18n ...
--- === plugins.finalcutpro.browser.insertvertical === --- --- Insert Clips Vertically from Browser to Timeline. local require = require local log = require "hs.logger".new "addnote" local fcp = require "cp.apple.finalcutpro" local dialog = require "cp.dialog" local i18n ...
#1671
#1671 - Fixed @stickler-ci errors
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks
de37332ac7757c73056a9320231b74fcecdae3ed
lib/upstream.lua
lib/upstream.lua
local digest = require('openssl').digest.digest local git = require('creationix/git') local deframe = git.deframe local decodeTag = git.decoders.tag local decodeTree = git.decoders.tree local connect = require('creationix/coro-tcp').connect local makeRemote = require('./codec').makeRemote return function (storage, hos...
local digest = require('openssl').digest.digest local git = require('creationix/git') local deframe = git.deframe local decodeTag = git.decoders.tag local decodeTree = git.decoders.tree local connect = require('creationix/coro-tcp').connect local makeRemote = require('./codec').makeRemote return function (storage, hos...
Fix read result in upstream code
Fix read result in upstream code
Lua
apache-2.0
lduboeuf/lit,kaustavha/lit,james2doyle/lit,kidaa/lit,zhaozg/lit,DBarney/lit,1yvT0s/lit,luvit/lit,squeek502/lit
ea71593a992c11c22d0c30c285abf44c8c5ee756
modules/note.lua
modules/note.lua
local date = require'date' local ev = require'ev' local notes = ivar2.persist local handleOutput = function(self, source, destination) -- Only accept notes on channels. if(destination:sub(1,1) ~= '#') then return end local nick = source.nick local key = 'notes:' .. destination .. ':' .. nick:lower() local nick_n...
local date = require'date' local ev = require'ev' local notes = ivar2.persist local handleOutput = function(self, source, destination) -- Only accept notes on channels. if(destination:sub(1,1) ~= '#') then return end local nick = source.nick local key = 'notes:' .. destination .. ':' .. nick:lower() local nick_n...
note: fix problem with global notes checking
note: fix problem with global notes checking
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
b59674bd4a15b81c33b148d05cd46f3ee093e79f
kong/plugins/oauth2/migrations/postgres.lua
kong/plugins/oauth2/migrations/postgres.lua
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, client_id text UNIQUE, client_secret text UNIQUE, redirect_uri text,...
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, client_id text UNIQUE, client_secret text UNIQUE, redirect_uri text,...
hotfix(oauth2) fixing postgres migration
hotfix(oauth2) fixing postgres migration
Lua
apache-2.0
Kong/kong,Kong/kong,icyxp/kong,ccyphers/kong,salazar/kong,jebenexer/kong,shiprabehera/kong,li-wl/kong,Mashape/kong,akh00/kong,Kong/kong
f342e5f5f0ee3c82a0404ce95944f27369d887f0
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st, jid, uuid = require "util.stanza", require "util.jid", require "util.uuid"; local dataforms_new = require "util.dataforms".new; local usermanager_user_exists...
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st, jid, uuid = require "util.stanza", require "util.jid", require "util.uuid"; local dataforms_new = require "util.dataforms".new; local usermanager_user_exists...
mod_adhoc_cmd_admin: Fixed style, some typos, and got down to <100LOC. Perhaps we need util.adhoc?
mod_adhoc_cmd_admin: Fixed style, some typos, and got down to <100LOC. Perhaps we need util.adhoc?
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
c1770cac9b45c8a91cdd9f82e0edc0463060db4a
Interface/AddOns/RayUI/modules/chat/easyChannel.lua
Interface/AddOns/RayUI/modules/chat/easyChannel.lua
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local CH = R:GetModule("Chat") --Cache global variables --Lua functions local select, pairs, ipairs = select, pairs, ipairs local strsub = string.sub local tostring = tostring --WoW API / Variables local IsInGroup = IsInGroup loc...
local R, L, P, G = unpack(select(2, ...)) --Import: Engine, Locales, ProfileDB, GlobalDB local CH = R:GetModule("Chat") --Cache global variables --Lua functions local select, pairs, ipairs = select, pairs, ipairs local strsub = string.sub local tostring = tostring --WoW API / Variables local IsInGroup = IsInGroup loc...
fix chat editbox border color
fix chat editbox border color
Lua
mit
fgprodigal/RayUI
a13d04a559da4a90e8c715838828998c3f31aed1
MMOCoreORB/bin/scripts/mobile/lok/serverobjects.lua
MMOCoreORB/bin/scripts/mobile/lok/serverobjects.lua
includeFile("lok/blood_razor_berzerker.lua") includeFile("lok/blood_razor_captain.lua") includeFile("lok/blood_razor_cutthroat.lua") includeFile("lok/blood_razor_destroyer.lua") includeFile("lok/blood_razor_elite_pirate.lua") includeFile("lok/blood_razor_guard.lua") includeFile("lok/blood_razor_officer.lua") includeFil...
includeFile("lok/blood_razor_berzerker.lua") includeFile("lok/blood_razor_captain.lua") includeFile("lok/blood_razor_cutthroat.lua") includeFile("lok/blood_razor_destroyer.lua") includeFile("lok/blood_razor_elite_pirate.lua") includeFile("lok/blood_razor_guard.lua") includeFile("lok/blood_razor_officer.lua") includeFil...
(unstable) [fixed] missing reference to npc template for nien nunb mission 3.
(unstable) [fixed] missing reference to npc template for nien nunb mission 3. git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5924 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/lege...
3c323ad3eaf31cc34ad0a3de0dba54272094f0f5
ini.lua
ini.lua
-- Copyright (c) 2015 Laurent Zubiaur -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish,...
-- Copyright (c) 2015 Laurent Zubiaur -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish,...
Remove note about fixed bug
Remove note about fixed bug
Lua
mit
lzubiaur/ini.lua
a090094b2e55b1ee43d85d1e83f26b3659078090
MMOCoreORB/bin/scripts/object/tangible/gem/armor.lua
MMOCoreORB/bin/scripts/object/tangible/gem/armor.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[fixed] Armor attachments appear under Armor Attachments category now on bazaar.
[fixed] Armor attachments appear under Armor Attachments category now on bazaar. git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4738 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/...
dcf3b40d183c63c789e13204bc25ca9f4d0c328b
police/client/cloackroom.lua
police/client/cloackroom.lua
--[[ Cops_FiveM - A cops script for FiveM RP servers. Copyright (C) 2018 FiveM-Scripts This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either vers...
--[[ Cops_FiveM - A cops script for FiveM RP servers. Copyright (C) 2018 FiveM-Scripts This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either vers...
fixed typo
fixed typo
Lua
mit
Kyominii/Cops_FiveM,Kyominii/Cops_FiveM
e72fc960d9707f50c90217ce767e3ddc196d87ca
messages/client/messages.lua
messages/client/messages.lua
local messages = { global = { }, client = { } } local screenWidth, screenHeight = guiGetScreenSize( ) local messageWidth, messageHeight = 316, 152 function createMessage( message, messageType, messageGlobalID, hideButton, disableInput ) destroyMessage( messageType ) destroyMessage( nil, nil, messageGlobalID ) loca...
local messages = { global = { }, client = { } } local screenWidth, screenHeight = guiGetScreenSize( ) local messageWidth, messageHeight = 316, 152 function createMessage( message, messageType, messageGlobalID, hideButton, disableInput ) destroyMessage( messageType ) destroyMessage( nil, nil, messageGlobalID ) loca...
messages: fixed non-working messages again
messages: fixed non-working messages again
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
445adde6d11b76d1f3bc41fba38573746e021b9d
mods/base/req/quick_menu.lua
mods/base/req/quick_menu.lua
QuickMenu = QuickMenu or class() QuickMenu._menu_id_key = "quick_menu_id_" QuickMenu._menu_id_index = 0 function QuickMenu:init( title, text, options, show_immediately ) QuickMenu._menu_id_index = QuickMenu._menu_id_index + 1 self.menu_data = { id = QuickMenu._menu_id_key .. tostring( QuickMenu._menu_id_index ),...
QuickMenu = QuickMenu or class() QuickMenu._menu_id_key = "quick_menu_id_" QuickMenu._menu_id_index = 0 function QuickMenu:new( ... ) return self:init( ... ) end function QuickMenu:init( title, text, options, show_immediately ) QuickMenu._menu_id_index = QuickMenu._menu_id_index + 1 self.menu_data = { id = Qui...
Fixed quick menu not returning correct table
Fixed quick menu not returning correct table
Lua
mit
SirWaddles/Payday-2-BLT,Olipro/Payday-2-BLT_Club-Sandwich-Edition,Olipro/Payday-2-BLT_Club-Sandwich-Edition,SirWaddles/Payday-2-BLT,JamesWilko/Payday-2-BLT,antonpup/Payday-2-BLT,JamesWilko/Payday-2-BLT,antonpup/Payday-2-BLT
47978eb63825042963b1a192c32bab18874fa1b0
script/index.lua
script/index.lua
local white = Color.new(255,255,255) local green = Color.new(0,255,0) local url = "https://joshuadoes.com/projects/3DSHomebrew/BUILDS/nds-bootstrap/bootstrap-dldi.nds" function unicodify(str) local new_str = "" for i = 1, #str,1 do new_str = new_str..string.sub(str,i,i)..string.char(00) end return new_str end f...
local white = Color.new(255,255,255) local green = Color.new(0,255,0) local url = "https://joshuadoes.com/projects/3DSHomebrew/BUILDS/nds-bootstrap/bootstrap-dldi.nds" function unicodify(str) local new_str = "" for i = 1, #str,1 do new_str = new_str..string.sub(str,i,i)..string.char(00) end return new_str end f...
Fixed GUI issue
Fixed GUI issue The screen saying to connect to wifi if not connected had some GUI issues, which I fixed. You can also launch TWLoader from that specific screen as well.
Lua
mit
Alerdy/ReBootstrap
c5b337df975dd3e46b530d8ba92f1086f8e49704
kong/plugins/pre-function/handler.lua
kong/plugins/pre-function/handler.lua
local BasePlugin = require "kong.plugins.base_plugin" local PreFunction = BasePlugin:extend() local config_cache = setmetatable({}, { __mode = "k" }) function PreFunction:new() PreFunction.super.new(self, "pre-function") end function PreFunction:access(config) PreFunction.super.access(self) local functions ...
local BasePlugin = require "kong.plugins.base_plugin" local PreFunction = BasePlugin:extend() local config_cache = setmetatable({}, { __mode = "k" }) function PreFunction:new() PreFunction.super.new(self, "pre-function") end function PreFunction:access(config) PreFunction.super.access(self) local functions ...
fix(serverless-functions) update priority to be math.huge - 1
fix(serverless-functions) update priority to be math.huge - 1
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
a64549288a6ca881cc69a24b913293b4fa4af765
mod_storage_gdbm/mod_storage_gdbm.lua
mod_storage_gdbm/mod_storage_gdbm.lua
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
23c4421d7bb4e35a598699c3f1361173906088d8
lualib/http/server.lua
lualib/http/server.lua
local socket = require "socket" local stream = require "http.stream" local server = {} local listen = socket.listen local readline = socket.readline local read = socket.read local write = socket.write local http_err_msg = { [100] = "Continue", [101] = "Switching Protocols", [102] = "Processin...
local socket = require "socket" local stream = require "http.stream" local server = {} local listen = socket.listen local readline = socket.readline local read = socket.read local write = socket.write local http_err_msg = { [100] = "Continue", [101] = "Switching Protocols", [102] = "Processin...
bug fix incorrect http header pack
bug fix incorrect http header pack
Lua
mit
findstr/silly
2e2d8f0d65fd47456d01e39c17639672382d14fe
WildImps.lua
WildImps.lua
--[[-------------------------------------------------------------------- Copyright (C) 2016 Sidoine De Wispelaere See the file LICENSE.txt for copying permission. Use code from IcyDemonsIndicator --]]-------------------------------------------------------------------- local OVALE, Ovale = ... local OvaleWi...
--[[-------------------------------------------------------------------- Copyright (C) 2016 Sidoine De Wispelaere See the file LICENSE.txt for copying permission. Use code from IcyDemonsIndicator --]]-------------------------------------------------------------------- local OVALE, Ovale = ... local OvaleWi...
Fixes #117: remove unwanted trace
Fixes #117: remove unwanted trace
Lua
mit
ultijlam/ovale,ultijlam/ovale,Xeltor/ovale,ultijlam/ovale
7e4d2aa7eacac70382b89ae718d22f8b4d851bb6
openLuupExtensions/L_openLuupExtensions.lua
openLuupExtensions/L_openLuupExtensions.lua
_NAME = "openLuup:Extensions" _VERSION = "2015.11.01" _DESCRIPTION = "openLuup:Extensions plugin for openLuup!!" _AUTHOR = "@akbooer" -- -- provide added functionality, including: -- * useful device variables -- * useful actions -- * etc., etc... -- local timers = require "openLuup.timers" local SID = { ole...
_NAME = "openLuup:Extensions" _VERSION = "2015.11.02" _DESCRIPTION = "openLuup:Extensions plugin for openLuup!!" _AUTHOR = "@akbooer" -- -- provide added functionality, including: -- * useful device variables -- * useful actions -- * etc., etc... -- local timers = require "openLuup.timers" local SID = { ole...
hot-fix-extensions-cpu-display
hot-fix-extensions-cpu-display - add CPU % to front panel display
Lua
apache-2.0
akbooer/openLuup
3116fc12e79b80bdf9844e3bb3c664deaca9d5ca
nyagos.d/catalog/subcomplete.lua
nyagos.d/catalog/subcomplete.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") if githelp then local gitcmds={} for line in githelp:lines() do if string.match(line,"^ %S") then for word in s...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") if githelp then local gitcmds={} for line in githelp:lines() do if string.match(line,"^ %S") then for word in s...
Try to fix 317: rlcone subcomplete expand is locked
Try to fix 317: rlcone subcomplete expand is locked
Lua
bsd-3-clause
zetamatta/nyagos,tsuyoshicho/nyagos,nocd5/nyagos
a37e690c0723641766e4d3374d1794ffce4e4f36
src/db/mongo_on_luamongo.lua
src/db/mongo_on_luamongo.lua
-- -- in this version, we use luamongo as our low level -- module(..., package.seeall) local mongo = require "mongo" local function cursor_all(cursor) local results = {} for r in cursor:results() do table.insert(results, r) end return results end -- XXX: can this work? local addAttac...
-- -- in this version, we use luamongo as our low level -- module(..., package.seeall) local mongo = require "mongo" local function cursor_all(cursor) local results = {} for r in cursor:results() do table.insert(results, r) end return results end -- XXX: can this work? local addAttac...
minimal fixes.
minimal fixes. Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@126.com>
Lua
bsd-3-clause
daogangtang/bamboo,daogangtang/bamboo
70a2849e395864526ab4ac5e359ac87157ac59f2
lib/minibatch_adam.lua
lib/minibatch_adam.lua
require 'optim' require 'cutorch' require 'xlua' local function minibatch_adam(model, criterion, eval_metric, train_x, train_y, config) local parameters, gradParameters = model:getParameters() config = config or {} local sum_loss = 0 local sum_eval = 0 local count_loss = 0 local bat...
require 'optim' require 'cutorch' require 'xlua' local function minibatch_adam(model, criterion, eval_metric, train_x, train_y, config) local parameters, gradParameters = model:getParameters() config = config or {} local sum_loss = 0 local sum_eval = 0 local count_loss = 0 local bat...
Fix missing file
Fix missing file
Lua
mit
Spitfire1900/upscaler,nagadomi/waifu2x,Spitfire1900/upscaler,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x,nagadomi/waifu2x,zyhkz/waifu2x
dc532363b9008679c6d9a4de328e6cf53cf2c405
busted/outputHandlers/TAP.lua
busted/outputHandlers/TAP.lua
local pretty = require 'pl.pretty' return function(options, busted) local handler = require 'busted.outputHandlers.base'(busted) handler.suiteEnd = function() local total = handler.successesCount + handler.errorsCount + handler.failuresCount print('1..' .. total) local success = 'ok %u - %s' loca...
local pretty = require 'pl.pretty' return function(options, busted) local handler = require 'busted.outputHandlers.base'(busted) handler.suiteEnd = function() local total = handler.successesCount + handler.errorsCount + handler.failuresCount print('1..' .. total) local success = 'ok %u - %s' loca...
Fix TAP output to show errors
Fix TAP output to show errors TAP output was only showing success and failure results, but not errors. So update TAP output to show errors as "not ok", just like failures.
Lua
mit
sobrinho/busted,xyliuke/busted,mpeterv/busted,leafo/busted,istr/busted,o-lim/busted,ryanplusplus/busted,Olivine-Labs/busted,DorianGray/busted,nehz/busted
45c19f954b88018b98ea2ca2b821ca296425b20a
scripts/AllRecordsUpload.lua
scripts/AllRecordsUpload.lua
---- -- Upload All MP3 file to CDR Server without domain ---- api = freeswitch.API(); p = io.popen('find /recordings/ -maxdepth 1 -type f') cdr_url = freeswitch.getGlobalVariable("cdr_url"); pattern = "%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x" function shell(c) local o, h h = asser...
---- -- Upload All MP3 file to CDR Server without domain ---- api = freeswitch.API(); p = io.popen('find /recordings/ -maxdepth 1 -regextype sed -regex ".*/[a-f0-9\\-]\\{36\\}.*"') cdr_url = freeswitch.getGlobalVariable("cdr_url"); pattern = "%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x" f...
WTEL-295 - fixed find command;
WTEL-295 - fixed find command;
Lua
mit
webitel/docker-freeswitch
f0e9cf070ea8076d3447b1fb2021ece78fcca061
modules/corelib/ui/uiscrollarea.lua
modules/corelib/ui/uiscrollarea.lua
-- @docclass UIScrollArea = extends(UIWidget) -- public functions function UIScrollArea.create() local scrollarea = UIScrollArea.internalCreate() scrollarea:setClipping(true) scrollarea.inverted = false scrollarea.alwaysScrollMaximum = false return scrollarea end function UIScrollArea:onStyleApply(styleName...
-- @docclass UIScrollArea = extends(UIWidget) -- public functions function UIScrollArea.create() local scrollarea = UIScrollArea.internalCreate() scrollarea:setClipping(true) scrollarea.inverted = false scrollarea.alwaysScrollMaximum = false return scrollarea end function UIScrollArea:onStyleApply(styleName...
Important fix to uiscrollarea
Important fix to uiscrollarea I messed up the code and forgot to commit this. ->Check if function is set before calling it here.
Lua
mit
dreamsxin/otclient,Radseq/otclient,EvilHero90/otclient,gpedro/otclient,Radseq/otclient,EvilHero90/otclient,dreamsxin/otclient,gpedro/otclient,gpedro/otclient,dreamsxin/otclient,kwketh/otclient,Cavitt/otclient_mapgen,Cavitt/otclient_mapgen,kwketh/otclient
cdefc768b2fbae5a29a561e4445a1773a321852e
lib/switchboard_modules/lua_script_debugger/premade_scripts/ain_config/ain_config.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/ain_config/ain_config.lua
-- This is an example showing how to configure analog input settings on -- on T-Series devices. print("Configure & Read Analog Input") ainChannels = {0,1} -- Read AIN0 and AIN1 ainRange = 10 -- +/-10V ainResolution = 1 -- Fastest ainSettling = 0 -- Default -- This function can be used to configure general analog inpu...
--[[ Name: ain_config.lua Desc: This is an example showing how to configure analog input settings on T-Series devices. --]] -- Assign functions locally for faster processing local modbus_read = MB.R local modbus_write = MB.W local interval_config = LJ.IntervalConfig local check_interval = LJ.CheckInt...
Fixed up the ain config example formatting
Fixed up the ain config example formatting
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
4617b91983792f3282757b93134f0b7e8f287d52
src/lua-factory/sources/grl-radiofrance.lua
src/lua-factory/sources/grl-radiofrance.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
radiofrance: Fix unset URLs after recent website changes
radiofrance: Fix unset URLs after recent website changes https://bugzilla.gnome.org/show_bug.cgi?id=773310
Lua
lgpl-2.1
grilofw/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins
d28f5e203f7278b32348c23ef13d3bd7e9488d6f
test_scripts/Polices/Policy_Table_Update/029_ATF_P_TC_Notifying_HMI_via_OnAppPermissionChanged.lua
test_scripts/Polices/Policy_Table_Update/029_ATF_P_TC_Notifying_HMI_via_OnAppPermissionChanged.lua
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] Notifying HMI via OnAppPermissionChanged about the affected application -- -- Description: -- PoliciesManager must initiate sending SDL.OnAppPermissionChanged{appID} notification ...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PolicyTableUpdate] Notifying HMI via OnAppPermissionChanged about the affected application -- -- Description: -- PoliciesManager must initiate sending SDL.OnAppPermissionChanged{appID} notification ...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
134ced7e0fdd17b109ebfbe78476cef977662e43
otouto/plugins/admin/listgroups.lua
otouto/plugins/admin/listgroups.lua
local utilities = require('otouto.utilities') local P = {} function P:init(bot) self.triggers = utilities.triggers(bot.info.username, bot.config.cmd_pat) :t('groups', true):t('listgroups', true).table self.command = 'groups [query]' self.doc = "/groups [query]\ Returns a list of all public, admini...
local utilities = require('otouto.utilities') local P = {} function P:init(bot) self.triggers = utilities.triggers(bot.info.username, bot.config.cmd_pat) :t('groups', true):t('listgroups', true).table self.command = 'groups [query]' self.doc = "/groups [query]\ Returns a list of all public, admini...
fixed listgroups not matching capitalized queries
fixed listgroups not matching capitalized queries
Lua
agpl-3.0
topkecleon/otouto
a0b06adac8ce7ba03e51db3acc582beabfb2ec86
resources/rewriter.lua
resources/rewriter.lua
-- The first argument is where the rTorrent directory files should be placed. -- The second argument is the home directory of the user -- The third argument is the user name function replaceVars(file,keywords,replacees,replacers) local edit_file = io.open(file, "r") local text = {} for line in edit_file:lines()...
-- The first argument is where the rTorrent directory files should be placed. -- The second argument is the home directory of the user -- The third argument is the user name function replaceVars(file,keywords,replacees,replacers) local edit_file = io.open(file, "r") local text = {} for line in edit_file:lines()...
fixed a bug in new algorithm
fixed a bug in new algorithm
Lua
mit
LarsHLunde/RuTorrent-Installer
40c0574b07d3c48a1a0044686ff4f3a45e246806
scen_edit/command/import_heightmap_command.lua
scen_edit/command/import_heightmap_command.lua
ImportHeightmapCommand = Command:extends{} ImportHeightmapCommand.className = "ImportHeightmapCommand" function ImportHeightmapCommand:init(heightmapImage, maxHeight, minHeight) self.className = "ImportHeightmapCommand" self.heightmapImagePath = heightmapImage self.maxHeight = maxHeight self.minHeight ...
ImportHeightmapCommand = Command:extends{} ImportHeightmapCommand.className = "ImportHeightmapCommand" function ImportHeightmapCommand:init(heightmapImage, maxHeight, minHeight) self.className = "ImportHeightmapCommand" self.heightmapImagePath = heightmapImage self.maxHeight = maxHeight self.minHeight ...
fail to fix heightmap import
fail to fix heightmap import
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
c1f66b616b5757cce6d87f32c74d087d11272472
kong/plugins/prometheus/handler.lua
kong/plugins/prometheus/handler.lua
local prometheus = require "kong.plugins.prometheus.exporter" local basic_serializer = require "kong.plugins.log-serializers.basic" local kong = kong local timer_at = ngx.timer.at local function log(premature, message) if premature then return end prometheus.log(message) end local PrometheusHandler = {...
local prometheus = require "kong.plugins.prometheus.exporter" local basic_serializer = require "kong.plugins.log-serializers.basic" local kong = kong local timer_at = ngx.timer.at prometheus.init() local function log(premature, message) if premature then return end prometheus.log(message) end local P...
fix(prometheus) move prometheus.init call to top-level scope
fix(prometheus) move prometheus.init call to top-level scope `:new` is no longer available as this plugin no longer inherits from the BasePlugin class. This commit updates the handler so it initialize its shared dictionary in the top-level scope (executed in the `init` phase).
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
1b6982b788c5fc986ab46a1c82cec2f39fd1937a
lgi/record.lua
lgi/record.lua
------------------------------------------------------------------------------ -- -- lgi - handling of structs and unions -- -- Copyright (c) 2010, 2011,2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ------------------------------------------------...
------------------------------------------------------------------------------ -- -- lgi - handling of structs and unions -- -- Copyright (c) 2010, 2011,2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ------------------------------------------------...
record.load: Require constructor to be a function
record.load: Require constructor to be a function libgtop (available at https://github.com/GNOME/libgtop/commits/master) has a struct glibtop_cpu. While trying to load this through e.g. require("lgi").GTop.glibtop_cpu, the following error occurred: lgi/record.lua:153: attempt to index a nil value (field 'return_typ...
Lua
mit
psychon/lgi,pavouk/lgi
d3b8c7fb4f22ddb8ceb04efd726253b811e60bd8
lua/entities/gmod_wire_expression2/core/extloader.lua
lua/entities/gmod_wire_expression2/core/extloader.lua
--[[ Loading extensions ]] -- Save E2's metatable for wire_expression2_reload if ENT then local wire_expression2_ENT = ENT function wire_expression2_reload(ply, cmd, args) if IsValid(ply) and ply:IsPlayer() and not ply:IsSuperAdmin() and not game.SinglePlayer() then return end Msg("Calling destructors for all...
--[[ Loading extensions ]] -- Save E2's metatable for wire_expression2_reload if ENT then local wire_expression2_ENT = ENT function wire_expression2_reload(ply, cmd, args) if IsValid(ply) and ply:IsPlayer() and not ply:IsSuperAdmin() and not game.SinglePlayer() then return end Msg("Calling destructors for all...
Fixed disabled E2 extensions loading anyway
Fixed disabled E2 extensions loading anyway Fixes #456
Lua
apache-2.0
rafradek/wire,plinkopenguin/wiremod,sammyt291/wire,thegrb93/wire,Python1320/wire,garrysmodlua/wire,wiremod/wire,notcake/wire,mms92/wire,Grocel/wire,CaptainPRICE/wire,mitterdoo/wire,immibis/wiremod,dvdvideo1234/wire,NezzKryptic/Wire,bigdogmat/wire
2e2398271ce80ef82fd046d9a464dda7ce3a1ba3
src/cosy/loader/js.lua
src/cosy/loader/js.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (options) options = options or {} local loader = {} for k, v in pairs (options) do loader [k] = v end local global = _G or _ENV loader.home = "/" loader.prefix ...
Fix JS scheduler.
Fix JS scheduler.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
7160ca6e7ba3f849d56ec922e7ae3ee8a7626a37
nwf_modules/direct_view_access_mod/init.lua
nwf_modules/direct_view_access_mod/init.lua
-- -- desc: Supports direct access to the views via file path for front-end debugging -- Author: Elvin -- Date: 17-5-25 -- others: It is only enabled when the nwf.config.echoDebugInfo configuration is set to true. -- print("direct_view_access_mod module init..."); if (nwf.config.echoDebugInfo) then nwf.registerRe...
-- -- desc: Supports direct access to the views via file path for front-end debugging -- Author: Elvin -- Date: 17-5-25 -- others: It is only enabled when the nwf.config.echoDebugInfo configuration is set to true. -- print("direct_view_access_mod module init..."); if (nwf.config.echoDebugInfo) then nwf.registerRe...
fix bug about direct_view_access_mod
fix bug about direct_view_access_mod
Lua
mit
Links7094/nwf,Links7094/nwf,elvinzeng/nwf,elvinzeng/nwf
86c32d917c41f7ead059908c43e08aa704df1d61
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
applications/luci-statistics: fix translation issues in controller
applications/luci-statistics: fix translation issues in controller
Lua
apache-2.0
artynet/luci,urueedi/luci,rogerpueyo/luci,Kyklas/luci-proto-hso,jchuang1977/luci-1,Wedmer/luci,Kyklas/luci-proto-hso,aircross/OpenWrt-Firefly-LuCI,david-xiao/luci,rogerpueyo/luci,cshore-firmware/openwrt-luci,tobiaswaldvogel/luci,artynet/luci,cshore/luci,oyido/luci,lbthomsen/openwrt-luci,ollie27/openwrt_luci,taiha/luci,...
86b11f36c902a0bd4f3a6be18e912a6e99b72396
util/debug.lua
util/debug.lua
-- Variables ending with these names will not -- have their values printed ('password' includes -- 'new_password', etc.) local censored_names = { password = true; passwd = true; pass = true; pwd = true; }; local optimal_line_length = 65; local termcolours = require "util.termcolours"; local getstring = termcolours...
-- Variables ending with these names will not -- have their values printed ('password' includes -- 'new_password', etc.) local censored_names = { password = true; passwd = true; pass = true; pwd = true; }; local optimal_line_length = 65; local termcolours = require "util.termcolours"; local getstring = termcolours...
util.debug: Further fix to display locals in extended tracebacks
util.debug: Further fix to display locals in extended tracebacks
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
d704cae460d2cbdd991b8c4aea22af9238d78c74
rapidshare.lua
rapidshare.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.ge...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.ge...
rapidshare.lua: fixes
rapidshare.lua: fixes
Lua
unlicense
ArchiveTeam/rapidshare-grab,ArchiveTeam/rapidshare-grab
797ac0160bdec88047b3e3a83ef42e882ee1fcb6
spec/helpers/perf/drivers/local.lua
spec/helpers/perf/drivers/local.lua
local perf = require("spec.helpers.perf") local pl_path = require("pl.path") local tools = require("kong.tools.utils") local helpers local _M = {} local mt = {__index = _M} local UPSTREAM_PORT = 62412 local WRK_SCRIPT_PREFIX = "/tmp/perf-wrk-" local KONG_ERROR_LOG_PATH = "/tmp/error.log" function _M.new(opts) ret...
local perf = require("spec.helpers.perf") local pl_path = require("pl.path") local tools = require("kong.tools.utils") local helpers local _M = {} local mt = {__index = _M} local UPSTREAM_PORT = 62412 local WRK_SCRIPT_PREFIX = "/tmp/perf-wrk-" local KONG_ERROR_LOG_PATH = "/tmp/error.log" function _M.new(opts) ret...
tests(flamegraph) fix generate flamegraph in local driver (#8275)
tests(flamegraph) fix generate flamegraph in local driver (#8275) * fix flame graph tests in local driver * generate flame grah : cat cmd use empty opts * local driver will keep the same logic with terraform * style fix, make lint happy
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
7257f3de5b902bdbe7e4b34663c7a9e16a816ba6
test_scripts/Policies/HMI_PTU/010_PTU_retry_sequence_HMI_has_timeout_more_then_SDL_propr.lua
test_scripts/Policies/HMI_PTU/010_PTU_retry_sequence_HMI_has_timeout_more_then_SDL_propr.lua
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0248-hmi-ptu-support.md -- -- Description: Retry strategy after failed HMI PTU on proprietary flow -- In case: -- 1. timeout_after_x_se...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0248-hmi-ptu-support.md -- -- Description: Retry strategy after failed HMI PTU on proprietary flow -- In case: -- 1. timeout_after_x_se...
Update script according to fixed issue (#2418)
Update script according to fixed issue (#2418)
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
b0a4dac7ef157df5c2f85020a91b9c197b496fc6
mods/bobblocks/trap.lua
mods/bobblocks/trap.lua
-- State Changes local update_bobtrap = function (pos, node) local nodename="" local param2="" --Switch Trap State if -- Swap Traps node.name == 'bobblocks:trap_spike' then nodename = 'bobblocks:trap_spike_set' elseif node.name == 'bobblocks:trap_spike_set' then nodename = 'b...
-- State Changes local update_bobtrap = function (pos, node) local nodename="" local param2="" --Switch Trap State if -- Swap Traps node.name == 'bobblocks:trap_spike' then nodename = 'bobblocks:trap_spike_set' elseif node.name == 'bobblocks:trap_spike_set' then nodename = 'b...
trap spike don't re-kill dead player, fix multidead, issue https://github.com/MinetestForFun/server-minetestforfun/issues/375
trap spike don't re-kill dead player, fix multidead, issue https://github.com/MinetestForFun/server-minetestforfun/issues/375
Lua
unlicense
Ombridride/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,Omb...
4853605a5fc5c32d6dbecab58cb18e088bfbf13e
thinkpad/awesome/console.lua
thinkpad/awesome/console.lua
-- Float Console (ccs) -- Similar to "quake console": http://awesome.naquadah.org/wiki/Drop-down_terminal -- -- Difference: console created at awesome launch time, so it is more smooth -- at the first time calling the console. There is only one console for all screen. -- -- Usage: -- require("console") -- awf...
-- Float Console (ccs) -- Similar to "quake console": http://awesome.naquadah.org/wiki/Drop-down_terminal -- -- Difference: console created at awesome launch time, so it is more smooth -- at the first time calling the console. There is only one console for all screen. -- -- Usage: -- require("console") -- awf...
bug fix.
bug fix.
Lua
apache-2.0
subbyte/configurations,subbyte/configurations,subbyte/configurations,subbyte/configurations
5425fc1249671efba9339ae9d6c356884c002e4e
filters/hugo.lua
filters/hugo.lua
-- Remove TeX/LaTeX RawInlines function RawInline(el) if el.format:match 'tex' or el.format:match 'latex' then return {} end end -- Remove TeX/LaTeX RawBlocks function RawBlock(el) if el.format:match 'tex' or el.format:match 'latex' then return {} end end -- Encapsulate TeX Math funct...
-- Remove TeX/LaTeX RawInlines function RawInline(el) if el.format:match 'tex' or el.format:match 'latex' then -- replace RawInlines ("latex") w/ a space return pandoc.Space() end end -- Remove TeX/LaTeX RawBlocks function RawBlock(el) if el.format:match 'tex' or el.format:match 'latex' the...
fix hugo filter (#9)
fix hugo filter (#9) return empty para instead of empty list, which would turn up as html comment in the result
Lua
mit
cagix/pandoc-lecture
b1c1942dd77aff9390cc4b9a0d6d720577adb516
nyagos.d/aliases.lua
nyagos.d/aliases.lua
nyagos.alias.ls='ls -oF $*' nyagos.alias.lua_e=function(args) if #args >= 1 then assert(load(args[1]))() end end nyagos.alias.lua_f=function(args) local path=table.remove(args,1) assert(loadfile(path))(args) end nyagos.alias["for"]='%COMSPEC% /c "@set PROMPT=$G & @for $*"' nyagos.ali...
nyagos.alias.ls='ls -oF $*' nyagos.alias.lua_e=function(args) if #args >= 1 then assert(load(args[1]))() end end nyagos.alias.lua_f=function(args) local path=table.remove(args,1) assert(loadfile(path))(args) end nyagos.alias["for"]=function(args) local batchpathu = nyagos.env.tem...
Fix #134 `for /F "delims=;" %I in ('dir /b') do echo %I` failed.
Fix #134 `for /F "delims=;" %I in ('dir /b') do echo %I` failed. Use not %I but %%I
Lua
bsd-3-clause
zetamatta/nyagos,nocd5/nyagos,tsuyoshicho/nyagos,tyochiai/nyagos
8c7ffbca1c0aa91f1298d16f9595f938e1397336
.config/nvim/lua/plugins.lua
.config/nvim/lua/plugins.lua
local M = {} --- nvim-treesitter/nvim-treesitter local function nvim_treesitter_setup() return require'nvim-treesitter.configs'.setup{ ensure_installed = "maintained", highlight = { enable = true }, incremental_selection = { enable = true }, indent = { enabled = true }, } end --- junegunn/fzf.vim ...
local M = {} --- nvim-treesitter/nvim-treesitter local function nvim_treesitter_config() return require'nvim-treesitter.configs'.setup{ ensure_installed = "maintained", highlight = { enable = true }, incremental_selection = { enable = true }, indent = { enabled = true }, } end --- junegunn/fzf.vim...
[nvim] fix toggleterm recreate issue
[nvim] fix toggleterm recreate issue
Lua
mit
weihanglo/linux-config,weihanglo/linux-config,weihanglo/linux-config,weihanglo/dotfiles
c1924f900c227cd8603ed4a0b222db6b39a4ba9c
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- 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...
[applications] luci-olsr: Fix enable option for interfaces
[applications] luci-olsr: Fix enable option for interfaces
Lua
apache-2.0
8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci
03d46a858093a60e0876f146cf1521b97cf7cac6
MMOCoreORB/bin/scripts/mobile/misc/probot.lua
MMOCoreORB/bin/scripts/mobile/misc/probot.lua
probot = Creature:new { objectName = "@droid_name:imperial_probot_base", socialGroup = "", pvpFaction = "", faction = "", level = 9, chanceHit = 0.27, damageMin = 80, damageMax = 90, baseXp = 0, baseHAM = 700, baseHAMmax = 900, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", mea...
probot = Creature:new { objectName = "@droid_name:imperial_probot_base", socialGroup = "", pvpFaction = "", faction = "", level = 9, chanceHit = 0.27, damageMin = 80, damageMax = 90, baseXp = 0, baseHAM = 700, baseHAMmax = 900, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", mea...
(unstable) [fixed] arakyd probot droid now usable again.
(unstable) [fixed] arakyd probot droid now usable again. git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5103 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,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2...
9f2218a06f2fb896ed840ef7d2a035d1c88300ac
src/kong/plugins/authentication/schema.lua
src/kong/plugins/authentication/schema.lua
local constants = require "kong.constants" local utils = require "kong.tools.utils" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then return false, "This field is not available for \""..B...
local constants = require "kong.constants" local utils = require "kong.tools.utils" local stringy = require "stringy" local function check_authentication_key_names(names, plugin_value) if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC then return false, "This field is not available for \""..c...
fixing constant value
fixing constant value
Lua
apache-2.0
ChristopherBiscardi/kong,puug/kong,sbuettner/kong,skynet/kong,bbalu/kong,ropik/kong,chourobin/kong,AnsonSmith/kong,vmercierfr/kong,wakermahmud/kong,Skyscanner/kong,paritoshmmmec/kong,peterayeni/kong
93f34883492dc42c9c44ad610c8d2240e326d6a0
test_scripts/Polices/user_consent_of_Policies/108_ATF_ActivateApp_isSDLAllowed_true.lua
test_scripts/Polices/user_consent_of_Policies/108_ATF_ActivateApp_isSDLAllowed_true.lua
--------------------------------------------------------------------------------------------- -- Description: -- SDL receives request for app activation from HMI and the device the app is running on is consented by the User -- 1. Used preconditions: -- Close current connection -- Overwrite preloaded Policy Table to ens...
--------------------------------------------------------------------------------------------- -- Description: -- SDL receives request for app activation from HMI and the device the app is running on is consented by the User -- 1. Used preconditions: -- Close current connection -- Overwrite preloaded Policy Table to ens...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
ed5d843a81c38346c1a1ff4725d69075545db7f6
spec/04-phases_spec.lua
spec/04-phases_spec.lua
local helpers = require "spec.helpers" local mock_one_fn = [[ local plugin_name = "%s" local filename = kong.configuration.prefix .. "/" .. plugin_name .. "_output" local text = "phase: '%s', index: '%s', plugin: '" .. plugin_name .. "'\n" local readfile = require("pl.utils").readfile local writefile = requi...
local helpers = require "spec.helpers" local mock_one_fn = [[ local plugin_name = "%s" local filename = "/tmp/" .. plugin_name .. "_output" local text = "phase: '%s', index: '%s', plugin: '" .. plugin_name .. "'\n" local readfile = require("pl.utils").readfile local writefile = require("pl.utils").writefile ...
fix(serverless-functions) travis file-permissions
fix(serverless-functions) travis file-permissions
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
d186a5dd5636e81c9f09adadb19f7e1ad48732cd
coding/textadept/logtalk.lua
coding/textadept/logtalk.lua
-- Copyright © 2017-2019 Michael T. Richter <ttmrichter@gmail.com>. See License.txt. -- Logtalk LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('logtalk', {inherit = lexer.load('prolog')}) lex:modify_rule(...
-- Copyright © 2017-2019 Michael T. Richter <ttmrichter@gmail.com>. See License.txt. -- Logtalk LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('logtalk', {inherit = lexer.load('prolog')}) lex:modify_rule(...
Fix operator highlighting in the update support for the Textadept editor
Fix operator highlighting in the update support for the Textadept editor
Lua
apache-2.0
LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3
87bca6ac9a647d0f99e7c60e6daaa01e1a2b4fe2
premake4.lua
premake4.lua
function args_contains( element ) for _, value in pairs(_ARGS) do if value == element then return true end end return false end solution "efsw" location("./make/" .. os.get() .. "/") targetdir("./bin") configurations { "debug", "release" } if os.is("windows") then osfiles = "s...
function args_contains( element ) for _, value in pairs(_ARGS) do if value == element then return true end end return false end solution "efsw" location("./make/" .. os.get() .. "/") targetdir("./bin") configurations { "debug", "release" } if os.is("windows") then osfiles = "s...
Fixed shared library links.
Fixed shared library links.
Lua
mit
pixty/efsw,pixty/efsw,pixty/efsw
5ad0e273eb3ed824bd6d80d9fff85144fa462456
ConfusionMatrix.lua
ConfusionMatrix.lua
local ConfusionMatrix = torch.class('nn.ConfusionMatrix') function ConfusionMatrix:__init(nclasses, classes) self.mat = lab.zeros(nclasses,nclasses) self.valids = lab.zeros(nclasses) self.totalValid = 0 self.averageValid = 0 self.classes = classes end function ConfusionMatrix:add(prediction, target) ...
local ConfusionMatrix = torch.class('nn.ConfusionMatrix') function ConfusionMatrix:__init(nclasses, classes) self.mat = lab.zeros(nclasses,nclasses) self.valids = lab.zeros(nclasses) self.nclasses = nclasses self.totalValid = 0 self.averageValid = 0 self.classes = classes end function ConfusionMatr...
Fixed ConfusionMatrix:add()
Fixed ConfusionMatrix:add()
Lua
mit
clementfarabet/lua---nnx
3981a1ccca43f389fa6705b996d7bc9bb6895792
lib/switchboard_modules/lua_script_debugger/premade_scripts/13_uart_example.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/13_uart_example.lua
print("Basic UART example.") print("Please connect a jumper wire between FIO0 and FIO1 (FIO4 and FIO5 on T4)") print("") --UART part of the T7 datasheet http://labjack.com/support/datasheets/t7/digital-io/asynchronous-serial local mbRead=MB.R --local functions for faster processing local mbWrite=MB.W local RXPin = ...
--[[ Name: 13_uart_example.lua Desc: Example showing how to use a UART Note: This example requires you to connect a jumper between the RX and TX pins See the UART section of the T7 datasheet: http://labjack.com/support/datasheets/t7/digital-io/asynchronous-serial This examp...
Fixed up the formatting of the UART example
Fixed up the formatting of the UART example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
63d0a242f9d3e2a48bcf871249119a36b8f0ffbc
libs/web/luasrc/template.lua
libs/web/luasrc/template.lua
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
* Fixed last commit
* Fixed last commit
Lua
apache-2.0
deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci
9f5707f3b08149c0a232aef08861c6db64251574
tools/rest_translation_server.lua
tools/rest_translation_server.lua
#!/usr/bin/env lua --[[ This requires the restserver-xavante rock to run. run server (this file) th tools/rest_translation_server.lua -model ../Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 query the server curl -v -H "Content-Type: application/json" -X POST -d '{ "src" : "international m...
#!/usr/bin/env lua --[[ This requires the restserver-xavante rock to run. run server (this file) th tools/rest_translation_server.lua -model ../Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 query the server curl -v -H "Content-Type: application/json" -X POST -d '{ "src" : "international m...
minor fix
minor fix
Lua
mit
da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,OpenNMT/Op...
2af3edee13cd2a0367477e784c4d1bf033b36969
lua/entities/gmod_wire_nailer.lua
lua/entities/gmod_wire_nailer.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Nailer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Nailer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) self:NetworkVar( "Bool", 0, "ShowBeam" ) end if CLIENT then return end -- No more cli...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Nailer" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "Nailer" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) self:NetworkVar( "Bool", 0, "ShowBeam" ) end if CLIENT then return end -- No more cli...
Updated nailer
Updated nailer Added axis and ballsocket inputs Fixes #883
Lua
apache-2.0
immibis/wiremod,NezzKryptic/Wire,garrysmodlua/wire,sammyt291/wire,notcake/wire,wiremod/wire,bigdogmat/wire,dvdvideo1234/wire,Grocel/wire,thegrb93/wire,mitterdoo/wire,rafradek/wire,plinkopenguin/wiremod,CaptainPRICE/wire,Python1320/wire,mms92/wire
2555495d0754be12e3de4edc9e1b2e67da1d4ac7
lua/weapons/disguiser/sh_init.lua
lua/weapons/disguiser/sh_init.lua
/** * Disguiser SWEP - Lets you disguise as any prop on a map. * * File: * sh_init.lua * * Purpose: * Initializes all the stuff and data that client and server share. * * Copyright (C) 2013 Carl Kittelberger (Icedream) * * This program is free software: you can redistribute it and/or modify * it under t...
/** * Disguiser SWEP - Lets you disguise as any prop on a map. * * File: * sh_init.lua * * Purpose: * Initializes all the stuff and data that client and server share. * * Copyright (C) 2013 Carl Kittelberger (Icedream) * * This program is free software: you can redistribute it and/or modify * it under t...
Precache weapon inside SWEP:Precache hook. Fixes #3.
Precache weapon inside SWEP:Precache hook. Fixes #3.
Lua
agpl-3.0
icedream/gmod-disguiser
7be4ac1fedf9f6e00a356e6717019febf3e9982d
conditions/TickTime.lua
conditions/TickTime.lua
--[[-------------------------------------------------------------------- Ovale Spell Priority Copyright (C) 2012, 2013 Sidoine Copyright (C) 2012, 2013 Johnny C. Lam This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License in the LICE...
--[[-------------------------------------------------------------------- Ovale Spell Priority Copyright (C) 2012, 2013 Sidoine Copyright (C) 2012, 2013 Johnny C. Lam This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License in the LICE...
Make TickTime() return the tick length of a new DoT if one isn't present.
Make TickTime() return the tick length of a new DoT if one isn't present. This matches SimC semantics where if a DoT is present, then "tick_time" is the actual tick length of the DoT, but if the DoT is not present, then it is the tick length of a new DoT with a current stat snapshot. This fixes mage scripts not sugge...
Lua
mit
ultijlam/ovale,eXhausted/Ovale,ultijlam/ovale,Xeltor/ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale
cacf6ba5b38527003d121919e6bd03d19c0a3d69
test/fs.lua
test/fs.lua
local uv = require 'yaluv' local fs = uv.fs local loop = uv.loop local Buffer = uv.Buffer local exports = {} exports['fs.open.sync.OK'] = function(test) local err, fd = fs.open('../test/fs.lua', 'r', '0666') test.is_nil(err) test.is_number(fd) err = fs.close(fd) test.is_nil(err) -- try to close twice ...
local uv = require 'yaluv' local fs = uv.fs local loop = uv.loop local Buffer = uv.Buffer local exports = {} exports['fs.open.sync.OK'] = function(test) local err, fd = fs.open('../test/fs.lua', 'r', '0666') test.is_nil(err) test.is_number(fd) err = fs.close(fd) test.is_nil(err) -- try to close twice ...
Fix fs tests to keep coroutine references.
Fix fs tests to keep coroutine references.
Lua
mit
hnakamur/couv,hnakamur/couv
cca715a324d5ccdd45e2c1bc62a445dab3549847
examples/l3-tcp-syn-flood.lua
examples/l3-tcp-syn-flood.lua
local dpdk = require "dpdk" local memory = require "memory" local device = require "device" function master(...) local txPort = tonumber((select(1, ...))) local minIP = select(2, ...) local numIPs = tonumber((select(3, ...))) local rate = tonumber(select(4, ...)) if not txPort or not minIP or not numIPs or no...
local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local stats = require "stats" function master(...) local txPort = tonumber((select(1, ...))) local minIP = select(2, ...) local numIPs = tonumber((select(3, ...))) local rate = tonumber(select(4, ...)) if not txPort o...
fix ipv4 packet sizes and stats output
fix ipv4 packet sizes and stats output this fixes #59
Lua
mit
scholzd/MoonGen,gallenmu/MoonGen,wenhuizhang/MoonGen,kidaa/MoonGen,bmichalo/MoonGen,slyon/MoonGen,duk3luk3/MoonGen,werpat/MoonGen,bmichalo/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,wenhuizhang/MoonGen,atheurer/MoonGen,schoenb/MoonGen,werpat/MoonGen,atheurer/MoonGen,slyon/MoonGen,kidaa/MoonGen,gallenmu/MoonGen,emmericp/M...
68105ef086e6531aea29d8c235fd22fb6ffaa40b
Modules/Shared/IK/FABRIK/FABRIKConstraint.lua
Modules/Shared/IK/FABRIK/FABRIKConstraint.lua
--- -- @classmod FABRIKConstraint local PI2 = math.pi/2 local PI4 = math.pi/4 -- local FABRIKConstraint = {} FABRIKConstraint.__index = FABRIKConstraint -- local function inEllipse(p, a, b) return ((p.x*p.x) / (a*a)) + ((p.y*p.y) / (b*b)) <= 1 end local function constrainEllipse(isInEllipse, p, a, b) local px, ...
--- -- @classmod FABRIKConstraint local PI2 = math.pi/2 local PI4 = math.pi/4 -- local FABRIKConstraint = {} FABRIKConstraint.__index = FABRIKConstraint -- local function inEllipse(p, a, b) return ((p.x*p.x) / (a*a)) + ((p.y*p.y) / (b*b)) <= 1 end local function constrainEllipse(isInEllipse, p, a, b) local px, ...
Maybe fix constraints
Maybe fix constraints
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
7d6b84c1d17417f6c479cb92c4c02b5d39089f5f
core/ext/mime_types.lua
core/ext/mime_types.lua
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- Handles file-specific settings (based on file extension). module('textadept.mime_types', package.seeall) --- -- File extensions with their associated lexers. -- @class table -- @name e...
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. local textadept = _G.textadept local locale = _G.locale --- Handles file-specific settings (based on file extension). module('textadept.mime_types', package.seeall) --- -- File extensions with their associated lexers. -- @class table -- @name e...
Fixed bug with lexer restoration.
Fixed bug with lexer restoration.
Lua
mit
rgieseke/textadept,rgieseke/textadept
131c6284a3ab5c2f2154548de6d78534e5ff2b07
src/cosy/store.lua
src/cosy/store.lua
local Configuration = require "cosy.configuration" local Redis = require "cosy.redis" local Value = require "cosy.value" local Coromake = require "coroutine.make" local Store = {} local Collection = {} local Document = {} Store.Error = setmetatable ({}, { __tostring = function () retur...
local Configuration = require "cosy.configuration" local Redis = require "cosy.redis" local Value = require "cosy.value" local Coromake = require "coroutine.make" local Store = {} local Collection = {} local Document = {} Store.Error = setmetatable ({}, { __tostring = function () retur...
Fix redis keys and allow filtered iteration.
Fix redis keys and allow filtered iteration.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
410f3329fe31e260247a2917c5714feb71c58159
test_scripts/Polices/user_consent_of_Policies/120_ATF_Device_user_disallowed_after_consent.lua
test_scripts/Polices/user_consent_of_Policies/120_ATF_Device_user_disallowed_after_consent.lua
------------- -------------------------------------------------------------------------------- -- Requirement summary: -- [Policies]: User-disallowed device after applications consent -- -- Description: -- User disallows device via Settings Menu after device and apps on device are consented -- -- 1. Used preconditions:...
------------- -------------------------------------------------------------------------------- -- Requirement summary: -- [Policies]: User-disallowed device after applications consent -- -- Description: -- User disallows device via Settings Menu after device and apps on device are consented -- -- 1. Used preconditions:...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
82796f24448947ee87f3fb5ae249ebf1051ea395
rc.lua
rc.lua
-- ####################################### -- Simple remote control through REST API -- Endpoints: -- / -> return last status -- /up -> trigger up button -- /down -> trigger down button -- ####################################### -- Global vars ssid = "YOUR_SSID" pass = "YOUR_PASSWORD" pin_up = 1 pin_down = 2 las...
-- ####################################### -- Simple remote control through REST API -- Endpoints: -- / -> return last status -- /up -> trigger up button -- /down -> trigger down button -- ####################################### -- Global vars ssid = "YOUR_SSID" pass = "YOUR_PASSWORD" pin_up = 1 pin_down = 2 las...
Fixed last commit
Fixed last commit
Lua
mit
sinedied/nodemcu-experiments
8d2bda36df94eaf8382d3dabdec130e0334410f4
Peripherals/WEB/webthread.lua
Peripherals/WEB/webthread.lua
--WEB Peripheral Thread print("WEB Peripheral started") --Thread communication channels local web_channel, peripheral_path = ... --Check if we have libcurl and/or luasec local has_libcurl = pcall(require,"Engine.luajit-request") local has_luasec = pcall(require,"Engine.luasec") print(has_libcurl and "libcurl is avai...
--WEB Peripheral Thread print("------------------------------") --Thread communication channels local web_channel, peripheral_path = ... --Check if we have libcurl and/or luasec local has_libcurl = pcall(require,"Engine.luajit-request") local has_luasec = pcall(require,"ssl") print(has_libcurl and "- libcurl is avai...
Typofix
Typofix Former-commit-id: 83cff8bcbca863de144e3555c7be26b173b06c6c
Lua
mit
RamiLego4Game/LIKO-12
90cdd0771c52d4ce245599305e7fa96aaa9c59ca
30log.lua
30log.lua
--[[ Copyright (c) 2012 Roland Yonaba Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
--[[ Copyright (c) 2012 Roland Yonaba Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
Fixed Indentation style, regards to LuaStyle Convention
Fixed Indentation style, regards to LuaStyle Convention
Lua
mit
tizzybec/30log,aubergine10/30log
e91a539e823a947bfdc1f9947ac4929238bebce6
mod_tcpproxy/mod_tcpproxy.lua
mod_tcpproxy/mod_tcpproxy.lua
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
local st = require "util.stanza"; local xmlns_ibb = "http://jabber.org/protocol/ibb"; local xmlns_tcp = "http://prosody.im/protocol/tcpproxy"; local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port"; local base64 = require "util.encodings".base64; local b64, unb64 = base64.encode, base64.decode; local...
mod_tcpproxy: Handle gracefully invalid base64 data, fixes #2 (thanks dersd)
mod_tcpproxy: Handle gracefully invalid base64 data, fixes #2 (thanks dersd)
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
1d3b23cb46df49f14d568d47a46092b5ea3ba017
mod_pastebin/mod_pastebin.lua
mod_pastebin/mod_pastebin.lua
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local length_threshold = config.get(module.host, "core", "pasteb...
local st = require "util.stanza"; local httpserver = require "net.httpserver"; local uuid_new = require "util.uuid".generate; local os_time = os.time; local t_insert, t_remove = table.insert, table.remove; local add_task = require "util.timer".add_task; local length_threshold = config.get(module.host, "core", "pasteb...
mod_pastebin: Fix trigger_string matching when no trigger is set, and add support for counting lines (pastebin_line_threshold, default: 4)
mod_pastebin: Fix trigger_string matching when no trigger is set, and add support for counting lines (pastebin_line_threshold, default: 4)
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
fd8853fa6edf49d5463896505a7f7d713faa26ed
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local prosody = _G.prosody; local hosts = prosody.hosts; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_cre...
-- Copyright (C) 2009 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local _G = _G; local prosody = _G.prosody; local hosts = prosody.hosts; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_cre...
mod_adhoc_cmd_admin: Fix session leak
mod_adhoc_cmd_admin: Fix session leak
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
1feeddb712f860965ec4209aed1dedf5f2a036e1
scripts/tundra/syntax/qt.lua
scripts/tundra/syntax/qt.lua
-- qt.lua -- support for Qt-specific compilers and tools module(..., package.seeall) local scanner = require "tundra.scanner" local path = require "tundra.path" DefRule { Name = "Moc", Command = "$(QTMOCCMD)", ConfigInvariant = true, Blueprint = { Source = { Required = true, Type = "string" }, }, Se...
-- qt.lua -- support for Qt-specific compilers and tools module(..., package.seeall) local scanner = require "tundra.scanner" local path = require "tundra.path" DefRule { Name = "Moc", Command = "$(QTMOCCMD)", ConfigInvariant = true, Blueprint = { Source = { Required = true, Type = "string" }, }, Se...
Fix up crazy Qt codegen paths.
Fix up crazy Qt codegen paths. Add OBJECTDIR to CPPPATH to use Moc, Rcc and Uic.
Lua
mit
bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra
fc4eec59c9d953539ce9ee1801cdaebf1ec2109d
scripts/tundra/decl.lua
scripts/tundra/decl.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...
Fixed syntax requires in Units didn't work.
Fixed syntax requires in Units didn't work.
Lua
mit
deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra
c4d09e188db1928e7dbd64827249d91c88cb885d
testserver/item/tree.lua
testserver/item/tree.lua
-- Tree Script -- Envi require("base.common") require("content.tree") module("item.tree", package.seeall) -- UPDATE common SET com_script='item.tree' WHERE com_itemid IN (308, 586, 1804, 1807, 1808, 1809, 1817); TreeListGerman = { "PLACEHOLDER.", }; TreeListEnglish = { "PLACEHOLDER.", }; function LookAtItemIden...
-- Tree Script -- Envi require("base.common") require("base.lookat") require("content.tree") module("item.tree", package.seeall) -- UPDATE common SET com_script='item.tree' WHERE com_itemid IN (308, 586, 1804, 1807, 1808, 1809, 1817); TreeListGerman = { "PLACEHOLDER.", }; TreeListEnglish = { "PLACEHOLDER.", }; ...
Fix tree lookat
Fix tree lookat
Lua
agpl-3.0
vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content
cbdd67e64c18c2c9ee18f1ebc3393c2ca6edf4ef
Shilke2D/Utils/Shape.lua
Shilke2D/Utils/Shape.lua
--[[--- Basic geometry classes with draw and intersection helpers. Shape is an abstract base class, Circle and Rect are concrete classes --]] Shape = class() function Shape:init() end ---returns a clone of the current shape function Shape:clone() return table.copy(self) end ---abstract method function Shape:co...
--[[--- Basic geometry classes with draw and intersection helpers. Shape is an abstract base class, Circle and Rect are concrete classes --]] Shape = class() function Shape:init() end ---returns a clone of the current shape function Shape:clone() return table.copy(self) end ---abstract method function Shape:co...
fix on Rect:intersection()
fix on Rect:intersection()
Lua
mit
Shrike78/Shilke2D
aa820db7e456f8d31b87d68dd53978dcf5585d9e
lua/wire/wire_paths.lua
lua/wire/wire_paths.lua
-- wire_paths.lua -- -- This file implements syncing of wire paths, which are the visual -- component of wires. -- -- Conceptually, a wire path has a material, a color, and a non-zero width, as -- well as as a non-empty polyline along the wire. (Each point in the line -- has both a parent entity, and a local offset fro...
-- wire_paths.lua -- -- This file implements syncing of wire paths, which are the visual -- component of wires. -- -- Conceptually, a wire path has a material, a color, and a non-zero width, as -- well as as a non-empty polyline along the wire. (Each point in the line -- has both a parent entity, and a local offset fro...
Fix path networking
Fix path networking
Lua
apache-2.0
wiremod/wire,dvdvideo1234/wire,NezzKryptic/Wire,garrysmodlua/wire,Grocel/wire,sammyt291/wire
b52cf97960686553e796be3e0459c38d365c9e5f
src/elasticsearch/helpers.lua
src/elasticsearch/helpers.lua
--- The helper module -- @module helper -- @author Dhaval Kapil ------------------------------------------------------------------------------- -- Declaring module ------------------------------------------------------------------------------- local helpers = {} -------------------------------------------------------...
--- The helper module -- @module helper -- @author Dhaval Kapil ------------------------------------------------------------------------------- -- Declaring module ------------------------------------------------------------------------------- local helpers = {} -------------------------------------------------------...
Fixed helpers.reindex and added more options
Fixed helpers.reindex and added more options
Lua
mit
DhavalKapil/elasticsearch-lua
bc3ecd731e87d76fb1d1e4fac9db525f7fd3451b
mod_xinerama/mod_xinerama.lua
mod_xinerama/mod_xinerama.lua
-- Ion xinerama module - lua setup -- -- by Tomas Ebenlendr <ebik@ucw.cz> -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2.1 of the License,or (at your option) a...
-- Ion xinerama module - lua setup -- -- by Tomas Ebenlendr <ebik@ucw.cz> -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2.1 of the License,or (at your option) a...
removed partially resolved FIXME
removed partially resolved FIXME
Lua
lgpl-2.1
anoduck/notion,anoduck/notion,dkogan/notion.xfttest,dkogan/notion,p5n/notion,knixeur/notion,dkogan/notion,knixeur/notion,knixeur/notion,dkogan/notion,anoduck/notion,neg-serg/notion,knixeur/notion,dkogan/notion,p5n/notion,p5n/notion,anoduck/notion,dkogan/notion.xfttest,knixeur/notion,raboof/notion,neg-serg/notion,neg-se...
e66c357bfe5c411baff191e910d7336db09fb7de
src/cosy/lang/view/update.lua
src/cosy/lang/view/update.lua
local cosy = require "cosy.lang.cosy" local raw = require "cosy.lang.data" . raw local tags = require "cosy.lang.tags" local type = require "cosy.util.type" local map = require "cosy.lang.iterators" . map local serpent = require "serpent" local NAME = tags.NAME local PARENTS = tags.PARE...
local cosy = require "cosy.lang.cosy" local raw = require "cosy.lang.data" . raw local tags = require "cosy.lang.tags" local type = require "cosy.util.type" local map = require "cosy.lang.iterators" . map local is_empty = require "cosy.lang.iterators" . is_empty local serpent = require "se...
Fix update.
Fix update.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
d2df8d20aa3d8cf815649e6fd8ef23e7a381be30
lua/entities/gmod_wire_lever.lua
lua/entities/gmod_wire_lever.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Analog Lever" ENT.WireDebugName = "Lever" if CLIENT then return end -- No more client function ENT:Initialize() self:SetModel("models/props_wasteland/tram_lever01.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_V...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Analog Lever" ENT.WireDebugName = "Lever" if CLIENT then return end -- No more client function ENT:Initialize() self:SetModel("models/props_wasteland/tram_lever01.mdl") self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_V...
Levers: Improved playeraim tracking Fixed a parent-duping issue if the lever base had all welds removed
Levers: Improved playeraim tracking Fixed a parent-duping issue if the lever base had all welds removed
Lua
apache-2.0
CaptainPRICE/wire,garrysmodlua/wire,dvdvideo1234/wire,immibis/wiremod,rafradek/wire,mms92/wire,Grocel/wire,plinkopenguin/wiremod,mitterdoo/wire,Python1320/wire,NezzKryptic/Wire,notcake/wire,wiremod/wire,bigdogmat/wire,sammyt291/wire,thegrb93/wire
432fd6a40018f4c29e08f1d4cadf1ccc387a0cff
xmake/actions/config/config_h.lua
xmake/actions/config/config_h.lua
--!The Automatic Cross-platform Build Tool -- -- XMake 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.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake 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.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix generate defines bug for config.h
fix generate defines bug for config.h
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake
e668379f6d57851f14af2f1c3e494c90e5eebb25
frontend/ui/widget/filechooser.lua
frontend/ui/widget/filechooser.lua
require "ui/widget/menu" FileChooser = Menu:extend{ height = Screen:getHeight(), width = Screen:getWidth(), no_title = true, path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self.item_table = self:genItemTableFromPath(self.p...
require "ui/widget/menu" FileChooser = Menu:extend{ height = Screen:getHeight(), width = Screen:getWidth(), no_title = true, path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self.item_table = self:genItemTableFromPath(self.p...
Fix crash when trying to go to / on FM
Fix crash when trying to go to / on FM Deals with more cases in FileChooser:compressPath, including `/mnt/..`.
Lua
agpl-3.0
chrox/koreader,ashhher3/koreader,pazos/koreader,Frenzie/koreader,apletnev/koreader,Frenzie/koreader,koreader/koreader,NickSavage/koreader,NiLuJe/koreader,mwoz123/koreader,ashang/koreader,houqp/koreader,lgeek/koreader,frankyifei/koreader,robert00s/koreader,Markismus/koreader,koreader/koreader,poire-z/koreader,NiLuJe/kor...
aef2c4123eb07a9394226df8c0b7108725aaedc8
frontend/ui/widget/filechooser.lua
frontend/ui/widget/filechooser.lua
require "ui/widget/menu" FileChooser = Menu:new{ height = Screen:getHeight(), width = Screen:getWidth(), path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self:changeToPath(self.path) end function FileChooser:compressPath(ite...
require "ui/widget/menu" FileChooser = Menu:extend{ height = Screen:getHeight(), width = Screen:getWidth(), no_title = true, path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self:updateItemTableFromPath(self.path) Menu.init...
fix Menu widget initialization on inheritance bug in filechooser
fix Menu widget initialization on inheritance bug in filechooser
Lua
agpl-3.0
poire-z/koreader,chrox/koreader,koreader/koreader,lgeek/koreader,robert00s/koreader,chihyang/koreader,frankyifei/koreader,NickSavage/koreader,mwoz123/koreader,koreader/koreader,ashhher3/koreader,ashang/koreader,pazos/koreader,Hzj-jie/koreader,noname007/koreader,NiLuJe/koreader,NiLuJe/koreader,Frenzie/koreader,apletnev/...
8982e05dda54b43eff540f80d0008c13c42d5051
base/ranklist.lua
base/ranklist.lua
require("base.common") module("base.ranklist", package.seeall) --[[ gets the top 5 of the ranklist. Each ranklist entry contains the name of the character and the points. The scriptVar is converted to a table for better handling and then shown in a messageDialog. list format - "<name1>;<points1>;<name2>;<point2>......
require("base.common") module("base.ranklist", package.seeall) --[[ gets the top 5 of the ranklist. Each ranklist entry contains the name of the character and the points. The scriptVar is converted to a table for better handling and then shown in a messageDialog. list format - "<name1>;<points1>;<name2>;<point2>......
Fix that only non-Admins are added to a ranklist. Mantis id #8922
Fix that only non-Admins are added to a ranklist. Mantis id #8922
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content
a86271a3caa40ddaabbc16820108a84e9ee8c3ea
src/cosy/lang/view/update.lua
src/cosy/lang/view/update.lua
local cosy = require "cosy.lang.cosy" local raw = require "cosy.lang.data" . raw local tags = require "cosy.lang.tags" local type = require "cosy.util.type" local map = require "cosy.lang.iterators" . map local is_empty = require "cosy.lang.iterators" . is_empty local NAME = tags.NAME lo...
local cosy = require "cosy.lang.cosy" local raw = require "cosy.lang.data" . raw local tags = require "cosy.lang.tags" local type = require "cosy.util.type" local map = require "cosy.lang.iterators" . map local is_empty = require "cosy.lang.iterators" . is_empty local NAME = tags.NAME lo...
Fix add/update/remove of nodes, at the cost of one table to store them.
Fix add/update/remove of nodes, at the cost of one table to store them.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
9208d4bbfe744607e78b9d700e3f134962d92c41
busted/runner.lua
busted/runner.lua
-- Busted command-line runner local path = require 'pl.path' local tablex = require 'pl.tablex' local term = require 'term' local utils = require 'busted.utils' local exit = require 'busted.compatibility'.exit local loadstring = require 'busted.compatibility'.loadstring local loaded = false return function(options) ...
-- Busted command-line runner local path = require 'pl.path' local tablex = require 'pl.tablex' local term = require 'term' local utils = require 'busted.utils' local exit = require 'busted.compatibility'.exit local loadstring = require 'busted.compatibility'.loadstring local loaded = false return function(options) ...
fix(luajit) also cache the `ffi.typeof` function
fix(luajit) also cache the `ffi.typeof` function Busted already caches the `ffi.cdef` function, but `ffi.typeof` is another candidate having the same re-register problem
Lua
mit
Olivine-Labs/busted
6d1d1258a51a0514e91d7aea2477d7ea56958169
apply.lua
apply.lua
include 'ffi.lua' local ffi = require 'ffi' local kernel_source = [[ extern "C" __global__ void kernel(float* a, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; float &x = a[i]; if (i < n) LAMBDA; } ]] local CUDA_NUM_THREADS = 1024 local ptx_cache = {} local function get_blocks(N) return math.fl...
include 'ffi.lua' local ffi = require 'ffi' local kernel_source = [[ extern "C" __global__ void kernel(float* a, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; float &x = a[i]; if (i < n) LAMBDA; } ]] local CUDA_NUM_THREADS = 1024 local ptx_cache = {} local function get_blocks(N) return math.fl...
fixed a bug with mem alloc
fixed a bug with mem alloc
Lua
bsd-2-clause
szagoruyko/cutorch-rtc
d3f83a43d7a520ba34cb636ee37229b956d370ac
mod_register_json/mod_register_json.lua
mod_register_json/mod_register_json.lua
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local usermanager = require "core.usermanager"; local b64_deco...
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local usermanager = require "core.usermanager"; local b64_deco...
mod_register_json: Let's call it the first commit, fixed all code errors (aka it works).
mod_register_json: Let's call it the first commit, fixed all code errors (aka it works).
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
acca2c3115570e7f3b1ef059413c4dce49c520d1
xmake/actions/create/main.lua
xmake/actions/create/main.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 create project
fix create project
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
5f0ecfe984f0e69095a4e888913fe2da38b13ccc
libs/uvl/luasrc/uvl/errors.lua
libs/uvl/luasrc/uvl/errors.lua
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
libs/uvl: fix i18n handling for errors
libs/uvl: fix i18n handling for errors
Lua
apache-2.0
taiha/luci,openwrt-es/openwrt-luci,lcf258/openwrtcn,lcf258/openwrtcn,aa65535/luci,RedSnake64/openwrt-luci-packages,thesabbir/luci,taiha/luci,male-puppies/luci,NeoRaider/luci,cshore/luci,jlopenwrtluci/luci,Hostle/openwrt-luci-multi-user,bright-things/ionic-luci,tobiaswaldvogel/luci,keyidadi/luci,sujeet14108/luci,nmav/lu...
481721a781da283d1609948ce8cec3aeeac6ed25
nvim/nvim/lua/_/treesitter.lua
nvim/nvim/lua/_/treesitter.lua
local has_config, ts_configs = pcall(require, 'nvim-treesitter.configs') if not has_config then return end ts_configs.setup { ensure_installed={ 'bash', 'cmake', 'comment', 'css', 'go', 'haskell', 'html', 'http', 'javascript', 'jsdoc', 'json', 'lua', 'nix', 'p...
local has_config, ts_configs = pcall(require, 'nvim-treesitter.configs') if not has_config then return end ts_configs.setup { ensure_installed='maintained', highlight={enable=true}, indent={enable=true}, incremental_selection={ enable=true, keymaps={ init_selection='gnn', node_incremental=...
fix(nvim): use maintained
fix(nvim): use maintained
Lua
mit
skyuplam/dotfiles,skyuplam/dotfiles
90ccfbaf2e758ef8aa5b3b4aff0ace0659e35001
tools/lua/gradients.lua
tools/lua/gradients.lua
function sk_scrape_startcanvas(c, fileName) end function sk_scrape_endcanvas(c, fileName) end SkScalarNearlyZero = 1.0 / bit32.lshift(1.0, 12) function SkScalarNearlyEqual(a, b) return math.abs(a,b) <= SkScalarNearlyZero end gradients = {} i = 1 function sk_scrape_accumulate(t) local p = t.paint if p t...
function sk_scrape_startcanvas(c, fileName) end function sk_scrape_endcanvas(c, fileName) end LuaDoubleNearlyZero = 1.0 / bit32.lshift(1.0, 12) function LuaDoubleNearlyEqual(a, b) return math.abs(a-b) <= LuaDoubleNearlyZero end gradients = {} i = 1 function sk_scrape_accumulate(t) local p = t.paint if ...
Fix Lua bugs, nit name change
Fix Lua bugs, nit name change BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2140293002 Review-Url: https://codereview.chromium.org/2140293002
Lua
bsd-3-clause
rubenvb/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,google/...
cffb21f7be1ec654f432a5560c28c3d475918b43
frontend/apps/reader/modules/readerstatus.lua
frontend/apps/reader/modules/readerstatus.lua
local InputContainer = require("ui/widget/container/inputcontainer") local BookStatusWidget = require("ui/widget/bookstatuswidget") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderStatus = InputContainer:new { document = nil, summary = { rating = 0, note = ni...
local InputContainer = require("ui/widget/container/inputcontainer") local BookStatusWidget = require("ui/widget/bookstatuswidget") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderStatus = InputContainer:new { document = nil, summary = { rating = 0, note = ni...
Add new setting: auto_book_status
Add new setting: auto_book_status Fixes #2363.
Lua
agpl-3.0
houqp/koreader,Frenzie/koreader,mihailim/koreader,robert00s/koreader,lgeek/koreader,apletnev/koreader,mwoz123/koreader,Frenzie/koreader,pazos/koreader,NiLuJe/koreader,NickSavage/koreader,koreader/koreader,koreader/koreader,poire-z/koreader,NiLuJe/koreader,poire-z/koreader,Markismus/koreader,Hzj-jie/koreader
cdaab739fc41ac49914780b60b36a86496cc9384
busted/core.lua
busted/core.lua
local metatype = function(obj) local otype = type(obj) if otype == 'table' then local mt = getmetatable(obj) if mt and mt.__type then return mt.__type end end return otype end local failureMt = { __index = {}, __tostring = function(e) return e.message end, __type = 'failure' } local pe...
local metatype = function(obj) local otype = type(obj) if otype == 'table' then local mt = getmetatable(obj) if mt and mt.__type then return mt.__type end end return otype end local failureMt = { __index = {}, __tostring = function(e) return e.message end, __type = 'failure' } local pe...
Fix error message for table error objects
Fix error message for table error objects When throwing a table as an error, the error message reads 'Nil error', which is confusing because an error object was thrown. The error message should at least display that a table was thrown. Restore the previous behavior of printing out the error table. Issue #284.
Lua
mit
sobrinho/busted,xyliuke/busted,nehz/busted,Olivine-Labs/busted,DorianGray/busted,mpeterv/busted,leafo/busted,ryanplusplus/busted,o-lim/busted,istr/busted
e4f39b5344036c7ef34d06ebc4c8d7316aef9807
programs/hammerspoon/init.lua
programs/hammerspoon/init.lua
-- Get around paste blockers with cmd+alt+v hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end) -- Set up a hyper key hyper = false hyperTime = nil down = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(event) local character = event:getCharacter...
-- Get around paste blockers with cmd+alt+v hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end) -- Set up a hyper key hyper = false hyperTime = nil down = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(event) local character = event:getCharacter...
Fix the audio output priority handling with Hammerspoon
Fix the audio output priority handling with Hammerspoon 1. Handle plugging in headphones into the headphone jack. 2. Avoid using the USB microphone for output.
Lua
mit
dguo/dotfiles,dguo/dotfiles,dguo/dotfiles
e6c776e1e58f4e0e2780c66e0c6d4378f99eb99c
Modules/Time/DebounceTimer.lua
Modules/Time/DebounceTimer.lua
--- DebounceTimer -- @classmod DebounceTimer local DebounceTimer = {} DebounceTimer.ClassName = "DebounceTimer" DebounceTimer.__index = DebounceTimer function DebounceTimer.new(length) local self = setmetatable({}, DebounceTimer) self._length = length or error("No length") return self end function DebounceTimer...
--- DebounceTimer -- @classmod DebounceTimer local DebounceTimer = {} DebounceTimer.ClassName = "DebounceTimer" DebounceTimer.__index = DebounceTimer function DebounceTimer.new(length) local self = setmetatable({}, DebounceTimer) self._length = length or error("No length") return self end function DebounceTimer...
Fix :IsDone() on debounce timer
Fix :IsDone() on debounce timer
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine