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
fee73e603533da4ea73c1f1392122a62e566be03
lua/text/seg.lua
lua/text/seg.lua
ngx.req.read_body() local POST = ngx.req.get_post_args() local rapidjson = require("rapidjson") if POST.q then query = POST.q local res = ngx.location.capture( '/api/external/jieba', { method = ngx.HTTP_POST, body = query } ) local split = require("spli...
ngx.req.read_body() local POST = ngx.req.get_post_args() local rapidjson = require("rapidjson") if POST.q then query = POST.q local res = ngx.location.capture( '/api/external/jieba', { method = ngx.HTTP_POST, args = { method = "HMM", format = "simple" }, bod...
fix seg call parameters to cppjieba-server
fix seg call parameters to cppjieba-server
Lua
apache-2.0
zxteloiv/docomo-qa,zxteloiv/docomo-qa,zxteloiv/docomo-qa
a98629fc40bae8e420a73559bf9a22a40d6352ce
src/runtime/pony/premake4.lua
src/runtime/pony/premake4.lua
-- premake.override is a premake5 feature. -- We use this approach to improve Visual Studio Support for Windows. -- The goal is to force C++ compilation for non-*.cpp/cxx/cc file extensions. -- By doing this properly, we avoid a MSVC warning about overiding /TC -- with /TP. if premake.override then local force_cpp =...
-- premake.override is a premake5 feature. -- We use this approach to improve Visual Studio Support for Windows. -- The goal is to force C++ compilation for non-*.cpp/cxx/cc file extensions. -- By doing this properly, we avoid a MSVC warning about overiding /TC -- with /TP. if premake.override then local force_cpp =...
Fix #863: using clang as the default compiler for runtime
Fix #863: using clang as the default compiler for runtime Currently, we use gcc for building the runtime, and clang for building the final executable when `encorec` is invoked. However, using two compilers is not only unnecessary but error-prone as well. 465 is another bug related to using gcc, so let's use clang in t...
Lua
bsd-3-clause
parapluu/encore,parapluu/encore,parapluu/encore
ebd8214c5367631f43b583fa633d2d34e6405140
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
hammerspoon/hammerspoon.symlink/modules/monitor-monitor.lua
local serial = require("hs._asm.serial") local lastScreenId = -1 local usePhysicalIndicator = true local useVirtualIndicator = true local currentIndicator = nil local indicatorHeight = 3 -- 0..1 = percent of menubar, >1 = pixel height local indicatorColor = hs.drawing.color.asRGB({ red = 0, green = 1.0, blue = ...
local serial = require("hs._asm.serial") local lastScreenId = -1 local usePhysicalIndicator = true local useVirtualIndicator = true local currentIndicator = nil local indicatorHeight = 3 -- 0..1 = percent of menubar, >1 = pixel height local indicatorColor = hs.drawing.color.asRGB({ red = 0, green = 1.0, blue = ...
fix(Hammerspoon): only check for screen if the element is an app or window
fix(Hammerspoon): only check for screen if the element is an app or window
Lua
mit
sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles,sethvoltz/dotfiles
eef62e622a848d6af09e3754c0f0b0cc7566384b
init.lua
init.lua
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix main thread tracebacks
fix main thread tracebacks
Lua
apache-2.0
zhaozg/luvit,luvit/luvit,zhaozg/luvit,luvit/luvit
604f2f412e5a5ca9cdb21e7642e0ec856039ca2c
plugins/lua.lua
plugins/lua.lua
local lua = {} local mattata = require('mattata') local URL = require('socket.url') local JSON = require('serpent') function lua:init(configuration) lua.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('lua'):c('return').table JSON = require('dkjson') lua.serialise = function(t) return...
local lua = {} local mattata = require('mattata') local URL = require('socket.url') local JSON = require('serpent') function lua:init(configuration) lua.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('lua'):c('return').table JSON = require('dkjson') lua.serialise = function(t) return...
mattata v3.1
mattata v3.1 Fixed a deadly bug which would grant my account access to your server
Lua
mit
barreeeiroo/BarrePolice
b728deb96705ea4febb7f161d6fefb28f742bd01
lexers/props.lua
lexers/props.lua
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Props LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments....
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Props LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments....
Fixed bug with colors styled as comments; lexers/props.lua
Fixed bug with colors styled as comments; lexers/props.lua
Lua
mit
rgieseke/scintillua
723fca093893e92b075db2eeb03c7e9365ce1fa5
lua/tools/git.lua
lua/tools/git.lua
local nvim = require'nvim' local executable = require'tools.files'.executable if not executable('git') then return false end local set_command = nvim.commands.set_command -- local set_mapping = nvim.mappings.set_mapping -- local get_mapping = nvim.mappings.get_mapping local jobs = require'jobs' local M = {} lo...
local nvim = require'nvim' local executable = require'tools.files'.executable if not executable('git') then return false end local set_command = nvim.commands.set_command -- local set_mapping = nvim.mappings.set_mapping -- local get_mapping = nvim.mappings.get_mapping local jobs = require'jobs' local M = {} lo...
fix: parse_git_output request input
fix: parse_git_output request input
Lua
mit
Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim
1227d5c6206e313d220fc205d525650b7c2394d3
tests/oven/test_filtering.lua
tests/oven/test_filtering.lua
-- -- tests/oven/test_filtering.lua -- Test the project object configuration accessor. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local suite = test.declare("oven_filtering") -- -- Setup -- local wks, prj function suite.setup() wks = test.createWorkspace() end local function prepar...
-- -- tests/oven/test_filtering.lua -- Test the project object configuration accessor. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local suite = test.declare("oven_filtering") -- -- Setup -- local wks, prj, cfg function suite.setup() wks = test.createWorkspace() end local function p...
Fixed testing of filtering.
Fixed testing of filtering.
Lua
bsd-3-clause
martin-traverse/premake-core,premake/premake-core,Blizzard/premake-core,lizh06/premake-core,soundsrc/premake-core,Zefiros-Software/premake-core,Blizzard/premake-core,CodeAnxiety/premake-core,jstewart-amd/premake-core,tvandijck/premake-core,dcourtois/premake-core,Zefiros-Software/premake-core,CodeAnxiety/premake-core,st...
a71f103ce02b59243e07ae7c78856dfebaf2a130
src/luaclie.lua
src/luaclie.lua
require("luaclie_c") luaclie = {} --D: Table Miner --P: table_path : Table path string --R: keys : Table with all keys on table luaclie.tableminer = function (table_path) local current_table = {} local keys = {} local key_name local table_name if table_path == nil then table_path = "" end cu...
require("luaclie_c") luaclie = {} luaclie.COLOR = {} luaclie.COLOR.DEFAULT = "\27[0m" luaclie.COLOR.GRAY = "\27[2m" luaclie.COLOR.GRAY0 = "\27[30;1m" luaclie.COLOR.GRAY1 = "\27[90;2m" luaclie.COLOR.GRAY2 = "\27[30;3m" luaclie.COLOR.RED = "\27[31;1m" luaclie.COLOR.RED0 =...
- Added print color function - Fixed spaces and tabs ignoring function references.
- Added print color function - Fixed spaces and tabs ignoring function references.
Lua
mit
robimp/luaclie,robimp/luaclie
50e8750db46087de805ef419decbbf1a6259e0cb
frontend/ui/reader/readerview.lua
frontend/ui/reader/readerview.lua
ReaderView = WidgetContainer:new{ document = nil, state = { page = 0, pos = 0, zoom = 1.0, rotation = 0, offset = {}, bbox = nil, }, outer_page_color = 7, -- DjVu page rendering mode (used in djvu.c:drawPage()) render_mode = 0, -- default to COLOR -- Crengine view mode view_mode = "page", -- defaul...
ReaderView = WidgetContainer:new{ document = nil, state = { page = 0, pos = 0, zoom = 1.0, rotation = 0, offset = {}, bbox = nil, }, outer_page_color = 7, -- DjVu page rendering mode (used in djvu.c:drawPage()) render_mode = 0, -- default to COLOR -- Crengine view mode view_mode = "page", -- defaul...
fix: check number of pages before calling hintPage
fix: check number of pages before calling hintPage otherwise, we will reach out page limit when reached last page
Lua
agpl-3.0
Hzj-jie/koreader-base,NickSavage/koreader,apletnev/koreader-base,pazos/koreader,NiLuJe/koreader-base,robert00s/koreader,Frenzie/koreader-base,frankyifei/koreader-base,mwoz123/koreader,poire-z/koreader,houqp/koreader-base,houqp/koreader-base,lgeek/koreader,Frenzie/koreader,mihailim/koreader,chihyang/koreader,Markismus/k...
39548194719b5bd831c7e10b7a1e68da9f685933
Nncache.lua
Nncache.lua
-- Nncache.lua -- nearest neighbors cache -- API overview if false then -- construction nnc = Nncache() -- setter and getter nnc:setLine(obsIndex, tensor1D) tensor1D = nnc:getLine(obsIndex) -- may return null -- apply a function to each key-value pair local function f(key,value) end ...
-- Nncache.lua -- nearest neighbors cache -- API overview if false then -- construction nnc = Nncache() -- setter and getter nnc:setLine(obsIndex, tensor1D) tensor1D = nnc:getLine(obsIndex) -- may return null -- apply a function to each key-value pair local function f(key,value) end ...
Fix bug in call to verbose (delete it)
Fix bug in call to verbose (delete it)
Lua
bsd-3-clause
rlowrance/kernel-smoothers
8d52470cbafbd3815bd5e6fe397c7faed2d6f5bc
src/attributeutils/src/Shared/AttributeValue.lua
src/attributeutils/src/Shared/AttributeValue.lua
--- -- @classmod AttributeValue -- @author Quenty local AttributeValue = {} AttributeValue.ClassName = "AttributeValue" AttributeValue.__index = AttributeValue function AttributeValue.new(object, attributeName, defaultValue) local self = { _object = object; _attributeName = attributeName; _defaultValue = defau...
--- -- @classmod AttributeValue -- @author Quenty local AttributeValue = {} AttributeValue.ClassName = "AttributeValue" AttributeValue.__index = AttributeValue function AttributeValue.new(object, attributeName, defaultValue) local self = { _object = object; _attributeName = attributeName; _defaultValue = defau...
fix: Defer signal creation
fix: Defer signal creation
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
55e2b8cbb7bc504d20fcc7d6b6505f74cce48ed9
src/coreguienabler/src/Client/CoreGuiEnabler.lua
src/coreguienabler/src/Client/CoreGuiEnabler.lua
--[=[ Key based CoreGuiEnabler, singleton Use this class to load/unload CoreGuis / other GUIs, by disabling based upon keys Keys are additive, so if you have more than 1 disabled, it's ok. ```lua local CoreGuiEnabler = require("CoreGuiEnabler") -- Disable the backpack for 5 seconds local cleanup = CoreGuiEnab...
--[=[ Key based CoreGuiEnabler, singleton Use this class to load/unload CoreGuis / other GUIs, by disabling based upon keys Keys are additive, so if you have more than 1 disabled, it's ok. ```lua local CoreGuiEnabler = require("CoreGuiEnabler") -- Disable the backpack for 5 seconds local cleanup = CoreGuiEnab...
fix: Stop leaking MouseIconEnabled property events in CoreGuiEnabler
fix: Stop leaking MouseIconEnabled property events in CoreGuiEnabler
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
c4058c031940ab75bc39294daec5d7d1b9f0e9c2
src/romdisk/application/launcher/AppPager.lua
src/romdisk/application/launcher/AppPager.lua
local AppItem = require "AppItem" local M = Class(DisplayPager) function M:init(width, height) self.super:init(width, height, false) self._font = Font.new("assets/fonts/Roboto-Regular.ttf", 24) self._color = Pattern.color(1, 1, 1) self:reload() end function M:setWidth(width) return self end func...
local AppItem = require "AppItem" local M = Class(DisplayPager) function M:init(width, height) self.super:init(width, height, false) self._fontFamily = "roboto-regular" self._fontSize = 24 self._color = {red = 1, green = 1, blue = 1, alpha = 1} self:reload() end function M:setWidth(width) return s...
[launcher]fix launcher
[launcher]fix launcher
Lua
mit
xboot/xboot,xboot/xboot
a4e5eea7692fdaab5f5f281197c150459eadd815
clock.lua
clock.lua
local clock_tmr=5 local clock_int=60000 local clock_int_demo=50 local clock_warn=4*clock_int local show_clock=function(ts,h,m,s) local hp=(math.floor(h*rgb_max/12)+rgb_max/2)%rgb_max local mp=(math.floor(m*rgb_max/60)+rgb_max/2)%rgb_max local p if hp == mp then p = string.char(3,3,0):rep(hp)..string.char(rgb_di...
local clock_tmr=5 local clock_int=60000 local clock_int_demo=50 local clock_warn=4*clock_int local show_clock=function(ts,h,m,s) local hp=(math.floor(h*rgb_max/12)+rgb_max/2)%rgb_max local mp=(math.floor(m*rgb_max/60)+rgb_max/2)%rgb_max local blank=string.char(0,0,0) local p if hp == mp then p = blank:rep(hp)....
Fixed dimmed clock segments
Fixed dimmed clock segments
Lua
mit
matgoebl/nodemcu-wifimusicledclock,matgoebl/nodemcu-wifimusicledclock
d74eae8faee15255ca66ca4b803312afe966acc4
src/cancellabledelay/src/Shared/cancellableDelay.lua
src/cancellabledelay/src/Shared/cancellableDelay.lua
--[=[ A version of task.delay that can be cancelled. Soon to be useless. @class cancellableDelay ]=] --[=[ @function cancellableDelay @param timeoutInSeconds number @param func function @param ... any -- Args to pass into the function @return function? -- Can be used to cancel @within cancellableDelay ]=] loca...
--[=[ A version of task.delay that can be cancelled. Soon to be useless. @class cancellableDelay ]=] --[=[ @function cancellableDelay @param timeoutInSeconds number @param func function @param ... any -- Args to pass into the function @return function? -- Can be used to cancel @within cancellableDelay ]=] loca...
fix: Fix cancellation occuring when the resulting task yields
fix: Fix cancellation occuring when the resulting task yields
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
5e55ba38087c594b29ef646a5719410b8c7d2b44
src/logging.lua
src/logging.lua
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
Fix test for Lua 5.3 and above.
Fix test for Lua 5.3 and above.
Lua
mit
mwchase/log4l
9769396050fd29a7ab225cfcd3332f907e18e5e9
lua/wire/server/debuggerlib.lua
lua/wire/server/debuggerlib.lua
local formatPort = {} WireLib.Debugger = { formatPort = formatPort } -- Make it global function formatPort.NORMAL(value) return string.format("%.3f",value) end function formatPort.STRING(value) return '"' .. value .. '"' end function formatPort.VECTOR(value) return string.format("(%.1f,%.1f,%.1f)", value[1], value...
local formatPort = {} WireLib.Debugger = { formatPort = formatPort } -- Make it global function formatPort.NORMAL(value) return string.format("%.3f",value) end function formatPort.STRING(value) return '"' .. value .. '"' end function formatPort.VECTOR(value) return string.format("(%.1f,%.1f,%.1f)", value[1], value...
fixed the way the angle tables are referenced where they are formatted for the debugger
fixed the way the angle tables are referenced where they are formatted for the debugger
Lua
apache-2.0
dvdvideo1234/wire,wiremod/wire,Grocel/wire
5237ba947d0efd0e5d1eb5a562d754350a2c1ee9
screen.lua
screen.lua
--[[ Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
--[[ Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
fix: typo
fix: typo
Lua
agpl-3.0
Frenzie/koreader-base,koreader/koreader-base,noname007/koreader,houqp/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,koreader/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,mwoz123/koreader,houqp/koreader-base,frankyifei/koreader,houqp/koreader,NiLuJe/koreader-base,Markismus/koreader,poire-z/koreader...
85e012d45eb159c6748c6a2a2852be608045d8b5
src/jet/daemon/sorter.lua
src/jet/daemon/sorter.lua
local jutils = require'jet.utils' local tinsert = table.insert local tremove = table.remove local tconcat = table.concat local tsort = table.sort local unpack = unpack local mmin = math.min local mmax = math.max local noop = jutils.noop local is_empty_table = jutils.is_empty_table -- may create and return a sorter f...
local jutils = require'jet.utils' local tinsert = table.insert local tremove = table.remove local tconcat = table.concat local tsort = table.sort local unpack = unpack local mmin = math.min local mmax = math.max local noop = jutils.noop local is_empty_table = jutils.is_empty_table -- may create and return a sorter f...
fix initialised state for sorter
fix initialised state for sorter
Lua
mit
lipp/lua-jet
4603b2fd43b39a9ec6cd0e566d063cea49f74255
scripts/shaderc.lua
scripts/shaderc.lua
-- -- Copyright 2010-2017 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" local GLSLANG = path.join(BGFX_DIR, "3rdparty/glslang") configuration { "vs2012" } defines { "atoll=_atoi64", "strtoll=_strtoi64", "...
-- -- Copyright 2010-2017 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- project "glslang" kind "StaticLib" local GLSLANG = path.join(BGFX_DIR, "3rdparty/glslang") configuration { "vs2012" } defines { "atoll=_atoi64", "strtoll=_strtoi64", "...
Fixed shaderc build.
Fixed shaderc build.
Lua
bsd-2-clause
MikePopoloski/bgfx,jpcy/bgfx,Synxis/bgfx,mmicko/bgfx,attilaz/bgfx,attilaz/bgfx,jdryg/bgfx,bkaradzic/bgfx,bkaradzic/bgfx,jdryg/bgfx,emoon/bgfx,emoon/bgfx,bkaradzic/bgfx,mendsley/bgfx,fluffyfreak/bgfx,fluffyfreak/bgfx,jdryg/bgfx,mmicko/bgfx,jpcy/bgfx,Synxis/bgfx,LWJGL-CI/bgfx,emoon/bgfx,MikePopoloski/bgfx,LWJGL-CI/bgfx,M...
72e40db9b9c1ee85c11ecf225dfa2118db6ef076
Source/genie.lua
Source/genie.lua
project "LudumDare32" kind "ConsoleApp" language "C++" files { "**.h", "**.hpp", "**.cpp" } location ( "../build" ) targetdir ( "../build/out/" ) objdir ( "../build/obj" ) local allIncludes = { "../bubblewrap/include", "../bubblewrap/External", SFML2DIR .. "/include/" } for k, v in pairs( additionalIn...
project "LudumDare32" kind "ConsoleApp" language "C++" files { "**.h", "**.hpp", "**.cpp" } location ( "../build" ) targetdir ( "../build/out/" ) objdir ( "../build/obj" ) local allIncludes = { "../bubblewrap/include", "../bubblewrap/External", SFML2DIR .. "/include/" } for k, v in pairs( additionalIn...
fixed release build
fixed release build
Lua
mit
Dezzles/ludumdare32,Dezzles/ludumdare32
c1c53305e1c08296aa10efa6af2a612661761aee
genie.lua
genie.lua
function linkFBX() configuration {"Debug"} libdirs { "C:\\Program Files\\Autodesk\\FBX\\FBX SDK\\2017.1\\lib\\vs2015\\x64\\debug"} configuration {"Release", "RelWithDebInfo"} libdirs { "C:\\Program Files\\Autodesk\\FBX\\FBX SDK\\2017.1\\lib\\vs2015\\x64\\release"} configuration {} includedirs { "../../luxm...
function linkFBX() configuration {"Debug"} libdirs { "../src"} libdirs { "C:\\Program Files\\Autodesk\\FBX\\FBX SDK\\2017.1\\lib\\vs2015\\x64\\debug"} configuration {"Release or RelWithDebInfo"} libdirs { "C:\\Program Files\\Autodesk\\FBX\\FBX SDK\\2017.1\\lib\\vs2015\\x64\\release"} configuration {} in...
fixed release build
fixed release build
Lua
mit
nem0/lumixengine_fbx
e983c3687ff2caf2fdf6ca331f2af9326436934b
core/libtexpdf-output.lua
core/libtexpdf-output.lua
local pdf = require("justenoughlibtexpdf") if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local font = 0 local started = false local function ensureInit () if not started then pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])...
local pdf = require("justenoughlibtexpdf") if (not SILE.outputters) then SILE.outputters = {} end local cursorX = 0 local cursorY = 0 local font = 0 local started = false local function ensureInit () if not started then pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])...
Add a hbox debugging tool
Add a hbox debugging tool Fixes #515 Use it like this in your hbox’s output routine: SILE.outputter.debugHbox(self, self:scaledWidth(line))
Lua
mit
alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,neofob/sile,simoncozens/sile,neofob/sile
55823aa2f367af04f9a77d2764754d4b002c0b4e
Hydra/window.lua
Hydra/window.lua
function api.window.allwindows() return api.fn.mapcat(api.app.runningapps(), api.app.allwindows) end function api.window:isvisible() return not self:app():ishidden() and not self:isminimized() and self:isstandard() end function api.window:frame() local s = self:size() local tl = self:topleft() retur...
function api.window.allwindows() return api.fn.mapcat(api.app.runningapps(), api.app.allwindows) end function api.window:isvisible() return not self:app():ishidden() and not self:isminimized() and self:isstandard() end function api.window:frame() local s = self:size() local tl = self:topleft() retur...
Fixing windows_in_direction function! Closes #6!
Fixing windows_in_direction function! Closes #6!
Lua
mit
latenitefilms/hammerspoon,nkgm/hammerspoon,ocurr/hammerspoon,wvierber/hammerspoon,junkblocker/hammerspoon,cmsj/hammerspoon,joehanchoi/hammerspoon,wsmith323/hammerspoon,latenitefilms/hammerspoon,hypebeast/hammerspoon,bradparks/hammerspoon,Stimim/hammerspoon,Hammerspoon/hammerspoon,heptal/hammerspoon,chrisjbray/hammerspo...
25e1dc90b21215b7c7adc2e74b4e1c4b81aa73bb
ninja.lua
ninja.lua
-- -- Name: premake-ninja/ninja.lua -- Purpose: Define the ninja action. -- Author: Dmitry Ivanov -- Created: 2015/07/04 -- Copyright: (c) 2015 Dmitry Ivanov -- local p = premake local tree = p.tree local project = p.project local solution = p.solution local config = p.config local fileconfig = p...
-- -- Name: premake-ninja/ninja.lua -- Purpose: Define the ninja action. -- Author: Dmitry Ivanov -- Created: 2015/07/04 -- Copyright: (c) 2015 Dmitry Ivanov -- local p = premake local tree = p.tree local project = p.project local solution = p.solution local config = p.config local fileconfig = p...
fix linkage with libs
fix linkage with libs
Lua
mit
jimon/premake-ninja,jimon/premake-ninja,jimon/premake-ninja,jimon/premake-ninja
f8951ede581e5b0a92b23c2b6705e7b1e186323d
ConfusionMatrix.lua
ConfusionMatrix.lua
local ConfusionMatrix = torch.class('nn.ConfusionMatrix') function ConfusionMatrix:__init(nclasses, classes) if type(nclasses) == 'table' then classes = nclasses nclasses = #classes end self.mat = torch.FloatTensor(nclasses,nclasses):zero() self.valids = torch.FloatTensor(nclasses):zero() s...
local ConfusionMatrix = torch.class('nn.ConfusionMatrix') function ConfusionMatrix:__init(nclasses, classes) if type(nclasses) == 'table' then classes = nclasses nclasses = #classes end self.mat = torch.FloatTensor(nclasses,nclasses):zero() self.valids = torch.FloatTensor(nclasses):zero() s...
Fixed VOC metric
Fixed VOC metric
Lua
mit
clementfarabet/lua---nnx
f6e3ee8912f977608ca5b8a7f9cf0fc495bea2ec
lib/gen.lua
lib/gen.lua
--{{{ Ninja Ninja = { space = 4 } function Ninja:new() local o = {} setmetatable(o, self) self.__index = self return o end function Ninja:indent(level) level = level or 0 local t = {} for i = 1, level * self.space do table.insert(t, ' ') end return table.concat(t) end ...
--{{{ Ninja Ninja = { space = 4 } function Ninja:new() local o = {} setmetatable(o, self) self.__index = self return o end function Ninja:indent(level) level = level or 0 local t = {} for i = 1, level * self.space do table.insert(t, ' ') end return table.concat(t) end ...
Generate prefix and dest_dir for pkg include script
Generate prefix and dest_dir for pkg include script
Lua
mit
bazurbat/jagen
9b3630f8b0e7012a0bf062ce366b35be043ed8f7
aliases.lua
aliases.lua
local std = stead local type = std.type std.rawset(_G, 'std', stead) p = std.p pr = std.pr pn = std.pn pf = std.pf obj = std.obj stat = std.stat room = std.room dlg = std.dlg me = std.me here = std.here from = std.from walk = std.walk walkin = std.walkin walkout = std.walkout function object(w) local o if std.is_tag...
local std = stead local type = std.type std.rawset(_G, 'std', stead) p = std.p pr = std.pr pn = std.pn pf = std.pf obj = std.obj stat = std.stat room = std.room dlg = std.dlg me = std.me here = std.here from = std.from walk = std.walk walkin = std.walkin walkout = std.walkout function walk(w) local r, v = std.walk(w)...
aliases fix
aliases fix
Lua
mit
gl00my/stead3
2e85aebe5c0b7f4b0cf200a99ab2c1d65329d514
examples/l2-load-latency.lua
examples/l2-load-latency.lua
-- vim:ts=4:sw=4:noexpandtab local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local stats = require "stats" local hist = require "histogram" local PKT_SIZE = 60 local ETH_DST = "11:12:13:14:15:16" function master(...) local txPort, rxPo...
-- vim:ts=4:sw=4:noexpandtab local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local stats = require "stats" local hist = require "histogram" local PKT_SIZE = 60 local ETH_DST = "11:12:13:14:15:16" function master(...) local txPort, rxPo...
l2-load-latency: fix crash at rates between 6500 and 9999
l2-load-latency: fix crash at rates between 6500 and 9999
Lua
mit
atheurer/MoonGen,gallenmu/MoonGen,duk3luk3/MoonGen,dschoeffm/MoonGen,NetronomeMoongen/MoonGen,dschoeffm/MoonGen,NetronomeMoongen/MoonGen,bmichalo/MoonGen,bmichalo/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,duk3luk3/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,bmichalo/MoonGe...
7f8720992744b0cea6850828cec9ab5fc024219c
extensions/dialog/init.lua
extensions/dialog/init.lua
--- === hs.dialog === --- --- A collection of useful dialog boxes, alerts and panels for user interaction. --- === hs.dialog.color === --- --- A panel that allows users to select a color. local USERDATA_TAG = "hs.dialog" local module = require(USERDATA_TAG..".internal") local color = require("hs.drawing.color"...
--- === hs.dialog === --- --- A collection of useful dialog boxes, alerts and panels for user interaction. --- === hs.dialog.color === --- --- A panel that allows users to select a color. local USERDATA_TAG = "hs.dialog" local module = require(USERDATA_TAG..".internal") local color = require("hs.drawing.color"...
Fixed hs.dialog.alert in-line documentation
Fixed hs.dialog.alert in-line documentation - Fixed a typo in `hs.dialog.alert`
Lua
mit
asmagill/hammerspoon,Hammerspoon/hammerspoon,Hammerspoon/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,latenitefilms/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,Hammerspoon/hammerspoon,cmsj/hammer...
a7e832b5dd9f11bb81ebbf593fa1ea786a5b5aa1
src/plugins/lua/forged_recipients.lua
src/plugins/lua/forged_recipients.lua
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this lis...
--[[ Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this lis...
Fix forged recipients plugin for the modern rspamd.
Fix forged recipients plugin for the modern rspamd.
Lua
apache-2.0
awhitesong/rspamd,amohanta/rspamd,minaevmike/rspamd,dark-al/rspamd,amohanta/rspamd,andrejzverev/rspamd,minaevmike/rspamd,dark-al/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,amohanta/rspamd,dark-al/rspamd,dark-al/rspamd,awhitesong/rspamd,minaevmike/rspam...
120cf6757e7559fb6079cd2efffbbecd4aebb54d
lib/lua/utils.lua
lib/lua/utils.lua
-------------------- -- Module with utility functions -- -- @module utils -- -- Submodules: -- -- * `file`: Operations on files -- * `math`: Contains a few math functions -- * `string`: Operations on strings -- * `table`: Operations on tables util = {} -- IO Functions util.file = {} -- Opens the file at path with t...
-------------------- -- Module with utility functions -- -- @module utils -- -- Submodules: -- -- * `file`: Operations on files -- * `math`: Contains a few math functions -- * `string`: Operations on strings -- * `table`: Operations on tables util = {} -- IO Functions util.file = {} -- Opens the file at path with t...
Fixed non-string args not being passed
Fixed non-string args not being passed
Lua
mit
Immington-Industries/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler,way-cooler/way-cooler
9b23272dc3de71adb25a1f5e7910d13ed9d249b0
.config/awesome/themes/MY_default/theme.lua
.config/awesome/themes/MY_default/theme.lua
------------------------------ -- MY Default awesome theme -- ------------------------------ G_THEMEDIR = awful.util.getdir("config") .. "/themes/" -- name of this folder G_THEMENAME = "MY_default" -- must be the name of the theme's folder G_T = G_THEMEDIR .. G_THEMENAME .. "/" theme = {} theme.font ...
------------------------------ -- MY Default awesome theme -- ------------------------------ local awful = require("awful") G_THEMEDIR = awful.util.getdir("config") .. "/themes/" -- name of this folder G_THEMENAME = "MY_default" -- must be the name of the theme's folder G_T = G_THEMEDIR .. G_THEMENAME ...
Fix: forgot to load awful module, trashed theme.
Fix: forgot to load awful module, trashed theme.
Lua
unlicense
BirMa/dotfiles_home,BirMa/dotfiles_home,BirMa/dotfiles_home
fd8f8f07588b44e9d7de09e747bc05ef813a5138
spec/complex_spec.lua
spec/complex_spec.lua
local literal = require "literal" local serpent = require "serpent" local refser = require "refser" local function random_var(is_key, deep) local key = math.random(1000) if key <= 100 then if is_key then return 0 else return nil end elseif key <= 200 then return fals...
local literal = require "literal" local serpent = require "serpent" local function random_var(is_key, deep) local key = math.random(1000) if key <= 100 then if is_key then return 0 else return nil end elseif key <= 200 then return false elseif key <= 300 then ...
fixed random test not using true
fixed random test not using true
Lua
unlicense
mpeterv/literal
d2205a8fca84d17ef771be749e93a193bddf8529
src/rxbinderutils/src/Shared/RxBinderUtils.lua
src/rxbinderutils/src/Shared/RxBinderUtils.lua
--- -- @module RxBinderUtils -- @author Quenty local require = require(script.Parent.loader).load(script) local Binder = require("Binder") local Brio = require("Brio") local Maid = require("Maid") local Observable = require("Observable") local Rx = require("Rx") local RxBrioUtils = require("RxBrioUtils") local RxInst...
--- -- @module RxBinderUtils -- @author Quenty local require = require(script.Parent.loader).load(script) local Binder = require("Binder") local Brio = require("Brio") local Maid = require("Maid") local Observable = require("Observable") local Rx = require("Rx") local RxBrioUtils = require("RxBrioUtils") local RxInst...
fix: Add RxBinderUtils.observeBoundParentClassBrio(binder, instance)
fix: Add RxBinderUtils.observeBoundParentClassBrio(binder, instance)
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
3f469b49bdde7fa6efe30e4f639b95599b8f1a91
data/dist/shooter/main.lua
data/dist/shooter/main.lua
oldprint = print print = function(...) local args = { n = select("#", ...), ... } local t = "" for i=1,args.n do t = t .. tostring(args[i]) end oldprint(t) end print('Hello world') IsDown = function(key) return key.state > 0.1 end WasDown = function(key) return key.last_state > 0.1 end JustPress...
oldprint = print print = function(...) local args = { n = select("#", ...), ... } local t = "" for i=1,args.n do t = t .. tostring(args[i]) end oldprint(t) end print('Hello world') IsDown = function(key) return key.state > 0.1 end WasDown = function(key) return key.last_state > 0.1 end JustPress...
fixed a few js/lua issues: forEach 'loop', and a few . instead of : member function calls
fixed a few js/lua issues: forEach 'loop', and a few . instead of : member function calls
Lua
mit
madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria,madeso/euphoria
70a5d17410f5800197dfe1c6e5bc78f06e7c2213
shared/entity.lua
shared/entity.lua
local anim8 = require "libs.anim8" -- local blocking = require "shared.blocking" local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local Entity = Class "Entity" function Entity:initialize(entityStatics, player) for key, value in pairs(entityStatics) do self[key] = valu...
local anim8 = require "libs.anim8" -- local blocking = require "shared.blocking" local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local Entity = Class "Entity" function Entity:initialize(entityStatics, player) for key, value in pairs(entityStatics) do self[key] = valu...
fixed play animation once
fixed play animation once
Lua
mit
ExcelF/project-navel
95f9a1edec8d842f3a944b8965bfe464fc871b98
src/models/upload.lua
src/models/upload.lua
--- A basic lower upload API -- module(..., package.seeall) require 'posix' local http = require 'lglib.http' local Model = require 'bamboo.model' local Form = require 'bamboo.form' local function calcNewFilename(dir, oldname) -- separate the base name and extense name of a filename local main, ext = oldname:match...
--- A basic lower upload API -- module(..., package.seeall) require 'posix' local http = require 'lglib.http' local Model = require 'bamboo.model' local Form = require 'bamboo.form' local function calcNewFilename(dir, oldname) -- separate the base name and extense name of a filename local main, ext = oldname:match...
fix a multiple upload bug. But user also need to use for repeat statement to save the file_objs manually.
fix a multiple upload bug. But user also need to use for repeat statement to save the file_objs manually. Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
Lua
bsd-3-clause
daogangtang/bamboo,daogangtang/bamboo
dcce0443a4b2c10a64c15ec531cd9692f61afaaa
build/Editor.lua
build/Editor.lua
Editor = {} Editor.defines = {} function SetupWxWidgets() wxWidgets = {} wxWidgets.includedirs = { "../deps/wxWidgets/include", "../deps/wxWidgets/include/msvc" } wxWidgets.libdirs = { "../deps/wxWidgets/lib/vc_dll", } wxWidgets.links = { } wxWidgets.defines = { '_LIB', 'WXUS...
Editor = {} Editor.defines = {} function SetupWxWidgets() wxWidgets = {} wxWidgets.includedirs = { "../deps/wxWidgets/include", "../deps/wxWidgets/include/msvc" } wxWidgets.libdirs = { "../deps/wxWidgets/lib/vc_dll", } wxWidgets.links = { } wxWidgets.defines = { '_LIB', 'WXUS...
Fixed Editor project conditional mono dependency
Fixed Editor project conditional mono dependency
Lua
bsd-2-clause
FloodProject/flood,FloodProject/flood,FloodProject/flood
4a8b82eb8f93c496d8a7172dc6aa74e84ae14691
l2l/list.lua
l2l/list.lua
-- A very fast Lua linked list implementation that can only add a number of -- items equal to the maximum integer that can be held in a lua number, -- i.e. 9007199254740992. -- If the program creates 100000000 list cells per second, the program will -- fail after 2.85 years. -- The reference counting O(n) for length o...
local utils = require("leftry").utils local vector = require("l2l.vector") local lua = require("l2l.lua") local ipairs = require("l2l.iterator") local len = require("l2l.len") local index_base = 0 local list = utils.prototype("list", function(list, ...) if select("#", ...) == 0 then return vector() end loca...
lobotomize list.lua into a vector-like structure, fixing the lack of table __gc in luajit
lobotomize list.lua into a vector-like structure, fixing the lack of table __gc in luajit
Lua
bsd-2-clause
meric/l2l
f418b7c41101a3a0061efe4ae2176ee335e7ab1b
messages/client/messages.lua
messages/client/messages.lua
local messages = { global = { }, local = { } } local screenWidth, screenHeight = guiGetScreenSize( ) local messageWidth, messageHeight = 316, 152 function createMessage( message, messageType, messageGlobalID, hideButton, disableInput ) destroyMessage( nil, messageType ) local messageID = messageGlobalID or exports....
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 issues with client side code
messages: fixed issues with client side code
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
9c69bf54a85e2a6695fea1def66e4470b706fa1b
scripts/gui/dragbutton.lua
scripts/gui/dragbutton.lua
class 'DragButton' (Panel) function DragButton:__init( layer, x, y, parentToDrag ) guiLog 'creating DragButton' if parentToDrag == nil then error( 'You must give a gui object to drag.' ) end Panel.__init( self, layer, x, y, 16, 16 ) self.parent = parentToDrag self:background( 'drag....
class 'DragButton' (Panel) function DragButton:__init( layer, x, y, parentToDrag ) guiLog 'creating DragButton' if parentToDrag == nil then error( 'You must give a gui object to drag.' ) end Panel.__init( self, layer, x, y, 16, 16 ) self.parent = parentToDrag self:background( 'drag....
Fix to drag button being stuck on.
Fix to drag button being stuck on.
Lua
mit
merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed,merlinblack/Game-Engine-Testbed
3e43d99c32e4367dcd1908551c1a4f50bb2dbccd
share/lua/playlist/cue.lua
share/lua/playlist/cue.lua
--[[ Parse CUE files $Id$ Copyright (C) 2009 Laurent Aimar This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This pro...
--[[ Parse CUE files $Id$ Copyright (C) 2009 Laurent Aimar This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This pro...
cue: support Latin1 cue files (fix #9238)
cue: support Latin1 cue files (fix #9238)
Lua
lgpl-2.1
vlc-mirror/vlc,shyamalschandra/vlc,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,krichter722/vlc,xkfz007/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/...
e4b7a286b5ff93bb11fdc5db9a0c9f61d552f468
home/.hammerspoon/confluence.lua
home/.hammerspoon/confluence.lua
-- Copyright © 2016, 2017, 2019, 2022 Emmanuel Roubion -- -- Author: Emmanuel Roubion -- URL: https://github.com/maanuair/dotfiles -- This file is part of Emmanuel's Roubion dot files, released under -- the MIT License as published by the Massachusetts Institute of Technology -- -- These dotfiles are distributed in th...
-- Copyright © 2016, 2017, 2019, 2022 Emmanuel Roubion -- -- Author: Emmanuel Roubion -- URL: https://github.com/maanuair/dotfiles -- This file is part of Emmanuel's Roubion dot files, released under -- the MIT License as published by the Massachusetts Institute of Technology -- -- These dotfiles are distributed in th...
fix: Fix the search by injecting the baseUrl
fix: Fix the search by injecting the baseUrl
Lua
mit
maanuair/dotfiles
7502721f4ae4d4f82879b2f3b4fe026101e60072
OS/DiskOS/Programs/disk.lua
OS/DiskOS/Programs/disk.lua
--PNG Floppy Disk Drive controlling program. local args = {...} --Get the arguments passed to this program if #args < 3 or args[1] == "-?" then printUsage( "disk write <source> <destination> [color]", "Writes a file to a png image", "disk read <source> <destination>", "Reads a png image to a file", "disk ...
--PNG Floppy Disk Drive controlling program. local args = {...} --Get the arguments passed to this program if #args < 3 or args[1] == "-?" then printUsage( "disk write <source> <destination> [color]", "Writes a file to a png image", "disk read <source> <destination>", "Reads a png image to a file", "disk ...
Fix `raw-read` and `raw-write` in the `disk` program.
Fix `raw-read` and `raw-write` in the `disk` program. Former-commit-id: a789d64f48cba5efa3e2147122c5f53133160979
Lua
mit
RamiLego4Game/LIKO-12
d929634cd13bbe6be6dfa9b5a0ed3c17d0438294
libs/weblit-static.lua
libs/weblit-static.lua
exports.name = "creationix/weblit-static" exports.version = "0.3.3" exports.dependencies = { "creationix/mime@0.1.2", "creationix/hybrid-fs@0.1.1", } exports.description = "The auto-headers middleware helps Weblit apps implement proper HTTP semantics" exports.tags = {"weblit", "middleware", "http"} exports.license ...
exports.name = "creationix/weblit-static" exports.version = "0.3.3-1" exports.dependencies = { "creationix/mime@0.1.2", "creationix/hybrid-fs@0.1.1", } exports.description = "A weblit middleware for serving static files from disk or bundle." exports.tags = {"weblit", "middleware", "static"} exports.license = "MIT" ...
Fix metadata on weblit-static
Fix metadata on weblit-static
Lua
mit
zhaozg/weblit
771f7849094d25acb92bf5d1d16d43a7153f8825
UCDutil/confirmation_c.lua
UCDutil/confirmation_c.lua
function createConfirmationWindow(text, callbackString, arg) local confirmation = {window={}, label={}, button={}} local calledResource = tostring(Resource.getName(sourceResource)) -- Replace 'UCD' with blank and capitalise the first letter calledResource = calledResource:gsub("UCD", "") calledResource = calledR...
function createConfirmationWindow(text, callbackString) local confirmation = {window={}, label={}, button={}} local calledResource = tostring(Resource.getName(sourceResource)) -- Replace 'UCD' with blank and capitalise the first letter calledResource = calledResource:gsub("UCD", "") calledResource = calledResour...
UCDutil
UCDutil - Fixed loadstring callback issue by concatenating the value.
Lua
mit
nokizorque/ucd,nokizorque/ucd
7e818ccfa3d887740c6867049f79a0c4e8dd66fa
codesamples/AsyncPatterns.lua
codesamples/AsyncPatterns.lua
#reference 'MavHttp.dll' #compile 'Something.cs' import 'System.Threading.Tasks' LOG_CLR_CACHE() serv = Http() -- asynchronously call a blocking .NET method then call back via scheduler async(Thread).Sleep(1000):success(function() print "waited a sec" end) serv:GET('/async',function(req,res) sw = StreamWriter(res...
#reference 'MavHttp.dll' import 'System.Threading.Tasks' LOG_CLR_CACHE() serv = Http() -- asynchronously call a blocking .NET method then call back via scheduler async(Thread).Sleep(1000):success(function() print "waited a sec" end) serv:GET('/async',function(req,res) sw = StreamWriter(res.OutputStream) sw.AutoFl...
Fix AsyncPatterns code sample
Fix AsyncPatterns code sample
Lua
mit
drew-r/Maverick
2f54c4878d6a336407c4aa5d079f941718f95b63
lua/weapons/gmod_tool/stools/wire_value.lua
lua/weapons/gmod_tool/stools/wire_value.lua
TOOL.Category = "Wire - I/O" TOOL.Name = "Constant Value" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if (CLIENT) then language.Add("Tool.wire_value.name", "Value Tool (Wire)") language.Add("Tool.wire_value.desc", "Spawns a constant value for use with the wire system.") language.Add("T...
TOOL.Category = "Wire - I/O" TOOL.Name = "Constant Value" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if (CLIENT) then language.Add("Tool.wire_value.name", "Value Tool (Wire)") language.Add("Tool.wire_value.desc", "Spawns a constant value for use with the wire system.") language.Add("T...
Fixed wire_values duplication support, previously it would use the player's current settings when pasting wire_value's.
Fixed wire_values duplication support, previously it would use the player's current settings when pasting wire_value's. Also fixed the cpanel so typing in the textentrys does not lock you into the spawnmenu.
Lua
apache-2.0
plinkopenguin/wiremod,CaptainPRICE/wire,bigdogmat/wire,immibis/wiremod,sammyt291/wire,thegrb93/wire,mms92/wire,garrysmodlua/wire,wiremod/wire,NezzKryptic/Wire,Python1320/wire,Grocel/wire,notcake/wire,mitterdoo/wire,rafradek/wire,dvdvideo1234/wire
cea3ab24ac10aa7c117c6fb63f0abb5b24d50074
SpatialConvolution.lua
SpatialConvolution.lua
local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self.kW = kW s...
local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane = nOutputPlane self.kW = kW s...
fix missing gradWeight bug
fix missing gradWeight bug
Lua
bsd-3-clause
rotmanmi/nn,fmassa/nn,GregSatre/nn,lvdmaaten/nn,PierrotLC/nn,EnjoyHacking/nn,rickyHong/nn_lib_torch,jzbontar/nn,PraveerSINGH/nn,xianjiec/nn,Aysegul/nn,aaiijmrtt/nn,karpathy/nn,davidBelanger/nn,zhangxiangxiao/nn,sagarwaghmare69/nn,LinusU/nn,caldweln/nn,sbodenstein/nn,clementfarabet/nn,eriche2016/nn,jonathantompson/nn,km...
2df4b00693c0d3b9ae85794dc528dc0aee23bff8
plumber.lua
plumber.lua
#!/usr/local/bin/tjost -i --[[ -- Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch) -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted...
#!/usr/local/bin/tjost -i --[[ -- Copyright (c) 2014 Hanspeter Portner (dev@open-music-kontrollers.ch) -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted...
bug fixes in plumber and uplink
bug fixes in plumber and uplink
Lua
artistic-2.0
OpenMusicKontrollers/chimaera_tjost
ec4a04fd7bb3e83169ff3042cb47c7ea09269b96
src_trunk/resources/tow-system/c_towing_system.lua
src_trunk/resources/tow-system/c_towing_system.lua
local ped = createPed(123, 224.0537109375, 112.4599609375, 1010.2117919922) local ped2 = createPed(123, 1025.2021484375, -901.103515625, 41.983009338379) setElementInterior(ped, 10) setElementDimension(ped, 9001) setPedRotation(ped2, 180) addEventHandler("onClientPedDamage", ped, cancelEvent) addEventHandler("onC...
local ped = createPed(123, 224.0537109375, 112.4599609375, 1010.2117919922) local ped2 = createPed(123, 1025.2021484375, -901.103515625, 41.983009338379) setElementInterior(ped, 10) setElementDimension(ped, 9001) setPedRotation(ped2, 180) addEventHandler("onClientPedDamage", ped, cancelEvent) addEventHandler("onC...
fixed impound gui showing multiple times
fixed impound gui showing multiple times git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@993 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
5a52226dfcaee336d58ae34eb589242cfa19db23
lexers/tcl.lua
lexers/tcl.lua
-- Copyright 2006-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- TCL LPeg lexer local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) local ws = token(l.WHITESPACE, l.space^1) -- comments local comment = to...
-- Copyright 2006-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- TCL LPeg lexer local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) local ws = token(l.WHITESPACE, l.space^1) -- comments local comment = to...
Fixed comments in Tcl lexer; lexers/tcl.lua
Fixed comments in Tcl lexer; lexers/tcl.lua
Lua
mit
rgieseke/scintillua
0067f6b077b20f30e50f0e96dc1ede4d392dd510
resources/prosody-plugins/mod_muc_allowners.lua
resources/prosody-plugins/mod_muc_allowners.lua
local filters = require 'util.filters'; local jid = require "util.jid"; local jid_bare = require "util.jid".bare; local um_is_admin = require "core.usermanager".is_admin; local util = module:require "util"; local is_healthcheck_room = util.is_healthcheck_room; local extract_subdomain = util.extract_subdomain; local pre...
local filters = require 'util.filters'; local jid = require "util.jid"; local jid_bare = require "util.jid".bare; local jid_host = require "util.jid".host; local um_is_admin = require "core.usermanager".is_admin; local util = module:require "util"; local is_healthcheck_room = util.is_healthcheck_room; local extract_sub...
fix: Fixes lobby when allowners is enabled.
fix: Fixes lobby when allowners is enabled.
Lua
apache-2.0
jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,gpolitis/jitsi-meet
bb80490723e1dad6731ab19419681744b0eba047
src/remy/cgilua.lua
src/remy/cgilua.lua
-- Remy - CGI-Lua compatibility -- Copyright (c) 2014 Felipe Daragon -- License: MIT require "base64" -- TODO: implement all functions from mod_lua's request_rec local request = { -- ENCODING/DECODING FUNCTIONS base64_decode = function(_,...) return base64.decode(...) end, base64_encode = function(_,...) return ba...
-- Remy - CGI-Lua compatibility -- Copyright (c) 2014 Felipe Daragon -- License: MIT require "base64" -- TODO: implement all functions from mod_lua's request_rec local request = { -- ENCODING/DECODING FUNCTIONS base64_decode = function(_,...) return base64.decode(...) end, base64_encode = function(_,...) return ba...
Fix wrong order in CGILua getpathinfo() (compatibility mode)
Fix wrong order in CGILua getpathinfo() (compatibility mode)
Lua
mit
sailorproject/sailor,noname007/sailor,ignacio/sailor,ignacio/sailor,mpeterv/sailor,felipedaragon/sailor,hallison/sailor,felipedaragon/sailor,Etiene/sailor,mpeterv/sailor,Etiene/sailor,jeary/sailor
fe6209773832f15840f6a0e9309f17279da0525d
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
admin-full: Better fix for the last change (timeserver setup), add button to add the missing section
admin-full: Better fix for the last change (timeserver setup), add button to add the missing section
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci
cf96cf949b33b138f03c7357072c1cbc5926a2e1
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
Fixed an overflow error with IPv6 route metric
Fixed an overflow error with IPv6 route metric git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3887 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ReclaimYourPrivacy/cloak-luci,phi-psi/luci,projectbismark/luci-bismark,projectbismark/luci-bismark,saraedum/luci-packages-old,freifunk-gluon/luci,saraedum/luci-packages-old,alxhh/piratenluci,phi-psi/luci,jschmidlapp/luci,stephank/luci,gwlim/luci,stephank/luci,yeewang/openwrt-luci,eugenesan/openwrt-luci,alxhh/piratenluc...
9c88107beaf4e9f5b0bdfea803c182b35222f7f3
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
Fixed an overflow error with IPv6 route metric
Fixed an overflow error with IPv6 route metric git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3887 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
3935a5a40460bb4807d2108f737dd5edb86bba5c
dataset.lua
dataset.lua
require 'torch' require 'image' require 'paths' local dataset = {} dataset.dirs = {} dataset.fileExtension = "" dataset.originalScale = 64 dataset.scale = 32 dataset.nbChannels = 3 -- cache for filepaths to all images dataset.paths = nil -- Set one or more directories to load images from -- @param dirs Table of dir...
require 'torch' require 'image' require 'paths' local dataset = {} dataset.dirs = {} dataset.fileExtension = "" dataset.originalScale = 64 dataset.scale = 32 dataset.nbChannels = 3 -- cache for filepaths to all images dataset.paths = nil -- Set one or more directories to load images from -- @param dirs Table of dir...
Fix out of memory problem
Fix out of memory problem
Lua
mit
aleju/face-generator
8b090dcaeb77298cb01c59d6db3450e0e1e33951
models/upload.lua
models/upload.lua
--- A basic lower upload API -- module(..., package.seeall) require 'posix' local Model = require 'bamboo.model' local Form = require 'bamboo.form' local function calcNewFilename(dest_dir, oldname) -- separate the base name and extense name of a filename local main, ext = oldname:match('^(.+)(%.%w+)$') -- check ...
--- A basic lower upload API -- module(..., package.seeall) require 'posix' local Model = require 'bamboo.model' local Form = require 'bamboo.form' local function calcNewFilename(dest_dir, oldname) -- separate the base name and extense name of a filename local main, ext = oldname:match('^(.+)(%.%w+)$') if not ex...
fix a upload file bug
fix a upload file bug when upload a file with no extension name, bamboo will error. Fixed it. Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>
Lua
bsd-3-clause
daogangtang/bamboo,daogangtang/bamboo
de45f554b46a217a522036f5cc337a816d9ce481
App/MyASDJourney.codea/Main.lua
App/MyASDJourney.codea/Main.lua
-- My ASD Journey supportedOrientations(LANDSCAPE_ANY) displayMode(FULLSCREEN_NO_BUTTONS) -- Use this function to perform your initial setup function setup() math.randomseed(os.date("*t")["month"]*os.date("*t")["day"]*os.date("*t")["hour"]*os.date("*t")["min"]*os.date("*t")["sec"]*os.date("*t")["wday"]) stage =...
-- My ASD Journey supportedOrientations(LANDSCAPE_ANY) displayMode(FULLSCREEN_NO_BUTTONS) -- Use this function to perform your initial setup function setup() math.randomseed(os.date("*t")["month"]*os.date("*t")["day"]*os.date("*t")["hour"]*os.date("*t")["min"]*os.date("*t")["sec"]*os.date("*t")["wday"]) stage =...
attempt to fix positioning error
attempt to fix positioning error
Lua
apache-2.0
kburk1997/My-ASD-Journey,kburk1997/My-ASD-Journey,kburk1997/My-ASD-Journey,kburk1997/My-ASD-Journey,kburk1997/My-ASD-Journey
884bc234e68cde604fdc8362dcb58dcfe81ef4b0
nvim/session.lua
nvim/session.lua
require('coxpcall') local uv = require('luv') local wait = require('posix.sys.wait') local kill = require('posix.signal').kill local MsgpackStream = require('nvim.msgpack_stream') local MsgpackRpcStream = require('nvim.msgpack_rpc_stream') local Session = {} Session.__index = Session local function resume(co, ...) ...
require('coxpcall') local uv = require('luv') local wait = require('posix.sys.wait') local kill = require('posix.signal').kill local MsgpackStream = require('nvim.msgpack_stream') local MsgpackRpcStream = require('nvim.msgpack_rpc_stream') local Session = {} Session.__index = Session local function resume(co, ...) ...
Fix session cleanup
Fix session cleanup Always call uv.run to ensure the timer/prepare handles are closed.
Lua
apache-2.0
neovim/lua-client,neovim/lua-client,neovim/lua-client
bc0a9032f607bed0bef27ebbdd71e18db10a3573
util/multitable.lua
util/multitable.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local select = select; local t_insert = table.insert; local pairs = pairs; local next = next; module "...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local select = select; local t_insert, t_remove = table.insert, table.remove; local unpack, pairs, next, ...
util.multitable: Add :iter() method to iterate over results at a fixed depth (parameters are equivalent to :search())
util.multitable: Add :iter() method to iterate over results at a fixed depth (parameters are equivalent to :search())
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
97fcc6df3f79925e330eea609a7c3c5a59102675
applications/luci-initmgr/luasrc/controller/init.lua
applications/luci-initmgr/luasrc/controller/init.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
* luci/app/initmgr: fix translation issue in menu entry
* luci/app/initmgr: fix translation issue in menu entry
Lua
apache-2.0
dwmw2/luci,lcf258/openwrtcn,cappiewu/luci,marcel-sch/luci,rogerpueyo/luci,wongsyrone/luci-1,dwmw2/luci,nmav/luci,981213/luci-1,oyido/luci,oyido/luci,palmettos/cnLuCI,david-xiao/luci,aa65535/luci,schidler/ionic-luci,rogerpueyo/luci,nmav/luci,LazyZhu/openwrt-luci-trunk-mod,ollie27/openwrt_luci,Wedmer/luci,palmettos/cnLuC...
cd0b6fe0c479ccf48d36fa342b6ce7789f99f6bc
lib/luvit/utils.lua
lib/luvit/utils.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fix utils.dump infinite loop on 32bit
fix utils.dump infinite loop on 32bit
Lua
apache-2.0
sousoux/luvit,DBarney/luvit,sousoux/luvit,rjeli/luvit,luvit/luvit,boundary/luvit,bsn069/luvit,rjeli/luvit,DBarney/luvit,boundary/luvit,zhaozg/luvit,boundary/luvit,bsn069/luvit,rjeli/luvit,kaustavha/luvit,rjeli/luvit,sousoux/luvit,sousoux/luvit,bsn069/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNic...
6bb4eef6abb723857ee5da3981cffa6a2f5ef794
spec/02-integration/05-proxy/06-upstream_timeouts_spec.lua
spec/02-integration/05-proxy/06-upstream_timeouts_spec.lua
local helpers = require "spec.helpers" local Factory = require "kong.dao.factory" local dao_helpers = require "spec.02-integration.02-dao.helpers" local factory local function insert_apis(arr) if type(arr) ~= "table" then return error("expected arg #1 to be a table", 2) end factory:truncate_tables() f...
local helpers = require "spec.helpers" local Factory = require "kong.dao.factory" local dao_helpers = require "spec.02-integration.02-dao.helpers" local factory local function insert_apis(arr) if type(arr) ~= "table" then return error("expected arg #1 to be a table", 2) end factory:truncate_tables() f...
tests(proxy) fix upstream timeouts tests in CI
tests(proxy) fix upstream timeouts tests in CI
Lua
apache-2.0
Kong/kong,icyxp/kong,Mashape/kong,salazar/kong,Kong/kong,jebenexer/kong,ccyphers/kong,shiprabehera/kong,Kong/kong,li-wl/kong,akh00/kong
3fc143b9272b45c9957889986ceec5043fb77ff4
scripts/main.lua
scripts/main.lua
-- -- Copyright 2014-2015 Dario Manesku. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- local CMFTSTUDIO_DIR = (path.getabsolute("..") .. "/") local CMFTSTUDIO_SRC_DIR = (CMFTSTUDIO_DIR .. "src/") local CMFTSTUDIO_RES_DIR = (CMFTSTUDIO_DIR .. "res/") local CMFTST...
-- -- Copyright 2014-2015 Dario Manesku. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- local CMFTSTUDIO_DIR = (path.getabsolute("..") .. "/") local CMFTSTUDIO_SRC_DIR = (CMFTSTUDIO_DIR .. "src/") local CMFTSTUDIO_RES_DIR = (CMFTSTUDIO_DIR .. "res/") local CMFTST...
Fixup for previous commit.
Fixup for previous commit.
Lua
bsd-2-clause
leegoonz/cmftStudio,leegoonz/cmftStudio,leegoonz/cmftStudio
a7a5f5b1b2a491430d644e986b93d8beaba1fb66
web.lua
web.lua
_G.TURBO_SSL = true local turbo = require 'turbo' local uuid = require 'uuid' local ffi = require 'ffi' local md5 = require 'md5' require 'pl' require './lib/portable' require './lib/LeakyReLU' local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x-api") cmd:text("Options:") cmd:option("-port", 8812, 'listen port') ...
_G.TURBO_SSL = true local turbo = require 'turbo' local uuid = require 'uuid' local ffi = require 'ffi' local md5 = require 'md5' require 'pl' require './lib/portable' require './lib/LeakyReLU' local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x-api") cmd:text("Options:") cmd:option("-port", 8812, 'listen port') ...
fix disk full
fix disk full
Lua
mit
AshWilliams/waifu2x,Spitfire1900/upscaler,archienz/waifu2x,darkrebirth/waifu2x,Spitfire1900/upscaler,gotomypc/waifu2x,noname007/waifu2x,HastyJ/waifu2x,zyhkz/waifu2x,GodOfConquest/waifu2x,athasach/waifu2x,zhaohao/waifu2x,ivanfoong/waifu2x,srivignessh/waifu2x,ilovecv/waifu2x,lazypanda/waifu2x,gotomypc/waifu2x,vincentstor...
4c245ed30a730d4bb721ee4c0b204cc2a536c803
hymn/ui.lua
hymn/ui.lua
local quickie = require "libs.quickie" local LogicCore = require "hymn.logiccore" local sharedui = require "shared.ui" local ui = {} local inputHandler local entityManager local selectionCircle = love.graphics.newImage("images/ui/selectionCircle.png") local pathFlag = love.graphics.newImage("images/ui/waypoint.png"...
local quickie = require "libs.quickie" local LogicCore = require "hymn.logiccore" local sharedui = require "shared.ui" local ui = {} local inputHandler local entityManager local selectionCircle = love.graphics.newImage("images/ui/selectionCircle.png") local pathFlag = love.graphics.newImage("images/ui/waypoint.png"...
Hymn: UI: Fix: Rounding gather rate
Hymn: UI: Fix: Rounding gather rate
Lua
mit
ExcelF/project-navel
b6f36ca91b74e708cb8866a0299923dab3f5343b
applications/luci-app-openvpn/luasrc/controller/openvpn.lua
applications/luci-app-openvpn/luasrc/controller/openvpn.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.openvpn", package.seeall) function index() entry( {"admin", "vpn", "openvpn"}, cbi("openvpn"), _("OpenVPN") ).acl_depends = { "luci-a...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.openvpn", package.seeall) function index() entry( {"admin", "vpn", "openvpn"}, cbi("openvpn"), _("OpenVPN") ).acl_depends = { "luci-a...
luci-app-openvpn: create base directory if not available
luci-app-openvpn: create base directory if not available * trivial fix for never ending ticket #3454 Signed-off-by: Dirk Brenken <34c6fceca75e456f25e7e99531e2425c6c1de443@brenken.org>
Lua
apache-2.0
hnyman/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,lbthomsen/openwrt-luci,openwrt/luci,openwrt/luci,hnyman/luci,hnyman/luci,lbthomsen/openwrt-luci,openwrt/luci,hnyman/luci,hnyman/luci,hnyman/l...
7a01a1e37cc96dddb99a995f58bfa733779362fd
extensions/row.lua
extensions/row.lua
local params = {...} local Dataframe = params[1] local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Row functions ]] Dataframe.get_row = argcheck{ doc = [[ <a name="Dataframe.get_row"> ### Dataframe.get_row(@ARGP) Gets a single row from the Dataframe @ARGT _Return value_: A table ...
local params = {...} local Dataframe = params[1] local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Row functions ]] Dataframe.get_row = argcheck{ doc = [[ <a name="Dataframe.get_row"> ### Dataframe.get_row(@ARGP) Gets a single row from the Dataframe @ARGT _Return value_: A table ...
Fixed n_rows update for append
Fixed n_rows update for append
Lua
mit
AlexMili/torch-dataframe
5c50795d90106ed4d89a2ef4ff0a103fb69c34d5
util/array.lua
util/array.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_insert, t_sort, t_remove, t_concat = table.insert, table.sort, table.remove, table.concat; loc...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_insert, t_sort, t_remove, t_concat = table.insert, table.sort, table.remove, table.concat; loc...
util.array: Fix for array:filter() (in-place filtering)
util.array: Fix for array:filter() (in-place filtering)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
c8c798129dd6c9a119abd43bc41a183497b3ef7b
lua/entities/gmod_wire_gate.lua
lua/entities/gmod_wire_gate.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Gate" ENT.WireDebugName = "Gate" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs = {} self....
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Gate" ENT.WireDebugName = "Gate" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Inputs = {} self....
Fixed gates that return nil returning 0 instead of their type's zero value
Fixed gates that return nil returning 0 instead of their type's zero value Fixes #674
Lua
apache-2.0
CaptainPRICE/wire,plinkopenguin/wiremod,mms92/wire,notcake/wire,wiremod/wire,bigdogmat/wire,NezzKryptic/Wire,Grocel/wire,mitterdoo/wire,sammyt291/wire,rafradek/wire,thegrb93/wire,Python1320/wire,garrysmodlua/wire,immibis/wiremod,dvdvideo1234/wire
7b7a3400af0967fe75610c5edccbd8da1b5a25f2
lua/wire/stools/sensor.lua
lua/wire/stools/sensor.lua
WireToolSetup.setCategory( "Detection/Beacon" ) WireToolSetup.open( "sensor", "Beacon Sensor", "gmod_wire_sensor", nil, "Beacon Sensors" ) if ( CLIENT ) then language.Add( "Tool.wire_sensor.name", "Beacon Sensor Tool (Wire)" ) language.Add( "Tool.wire_sensor.desc", "Returns distance and/or bearing to a beacon" ) la...
WireToolSetup.setCategory( "Detection/Beacon" ) WireToolSetup.open( "sensor", "Beacon Sensor", "gmod_wire_sensor", nil, "Beacon Sensors" ) if ( CLIENT ) then language.Add( "Tool.wire_sensor.name", "Beacon Sensor Tool (Wire)" ) language.Add( "Tool.wire_sensor.desc", "Returns distance and/or bearing to a beacon" ) la...
Beacon Sensor: Added mention of 'split XYZ' to tool Fixes #857 (people are just going to keep asking)
Beacon Sensor: Added mention of 'split XYZ' to tool Fixes #857 (people are just going to keep asking)
Lua
apache-2.0
notcake/wire,immibis/wiremod,sammyt291/wire,mitterdoo/wire,bigdogmat/wire,CaptainPRICE/wire,NezzKryptic/Wire,plinkopenguin/wiremod,thegrb93/wire,mms92/wire,dvdvideo1234/wire,Grocel/wire,rafradek/wire,wiremod/wire,garrysmodlua/wire,Python1320/wire
fc8270ac4ee36280fa2a2c293cac162b93dc84fe
nyagos.d/suffix.lua
nyagos.d/suffix.lua
nyagos.suffixes={} function suffix(suffix,cmdline) local suffix=string.lower(suffix) if string.sub(suffix,1,1)=='.' then suffix = string.sub(suffix,2) end if not nyagos.suffixes[suffix] then local orgpathext = nyagos.getenv("PATHEXT") local newext="."..suffix i...
nyagos.suffixes={} function suffix(suffix,cmdline) local suffix=string.lower(suffix) if string.sub(suffix,1,1)=='.' then suffix = string.sub(suffix,2) end if not nyagos.suffixes[suffix] then local orgpathext = nyagos.getenv("PATHEXT") local newext="."..suffix i...
拡張子.ps1 を suffix に追加
拡張子.ps1 を suffix に追加
Lua
bsd-3-clause
kissthink/nyagos,kissthink/nyagos,nocd5/nyagos,zetamatta/nyagos,hattya/nyagos,kissthink/nyagos,tsuyoshicho/nyagos,tyochiai/nyagos,hattya/nyagos,hattya/nyagos
5916eca3868c4ea37d142974dd8d25dc73c31989
programs/hammerspoon/init.lua
programs/hammerspoon/init.lua
local requireLeo = function() require("leo"); end; if pcall(requireLeo) then print("Loaded Leo"); else hs.notify.new({title="Hammerspoon", informativeText="Failed to load Leo"}):send() end -- Get around paste blockers with cmd+alt+v hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStroke...
local requireLeo = function() require("leo"); end; if pcall(requireLeo) then print("Loaded Leo"); else hs.notify.new({title="Hammerspoon", informativeText="Failed to load Leo"}):send() end -- Get around paste blockers with cmd+alt+v hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStroke...
Fix getting stuck in hyper mode when launching Anki
Fix getting stuck in hyper mode when launching Anki
Lua
mit
dguo/dotfiles,dguo/dotfiles,dguo/dotfiles
8a11dd81abfbb44435cbd551cbd46a339e28456a
scripts/ship.lua
scripts/ship.lua
local v2 = require 'dokidoki.v2' assert(player, 'missing player argument') assert(turn_speed, 'missing turn_speed argument') assert(accel, 'missing accel argument') assert(hit_points, 'missing hit_points argument') local max_hit_points = hit_points --player_colors = { -- {1.0, 1.0, 1.0}, -- {0.5, 0.8, 0.2}, -- {0...
local v2 = require 'dokidoki.v2' assert(player, 'missing player argument') assert(turn_speed, 'missing turn_speed argument') assert(accel, 'missing accel argument') assert(hit_points, 'missing hit_points argument') local max_hit_points = hit_points self.sprite.color = {1.0, 1.0, 1.0} if sprites_table then self.spr...
Bugfix for factory explosion.
Bugfix for factory explosion.
Lua
mit
henkboom/pax-britannica
bafdfe9194cd3ed565cd2f415b36df3b27bc9501
lua_scripts/init.lua
lua_scripts/init.lua
-- Copyright (c) 2011 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under LGPL version 2.1, see top level LICENSE file for details. -- This script is executed by sb2d at startup, this -- initializes the rule tree database (which is empty -- but attached when this script is started) session_dir = os.get...
-- Copyright (c) 2011 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under LGPL version 2.1, see top level LICENSE file for details. -- This script is executed by sb2d at startup, this -- initializes the rule tree database (which is empty -- but attached when this script is started) session_dir = os.get...
Set "tools" and "tools_prefix" in init.lua
Set "tools" and "tools_prefix" in init.lua
Lua
lgpl-2.1
OlegGirko/ldbox,h113331pp/scratchbox2,ldbox/ldbox,ldbox/ldbox,h113331pp/scratchbox2,OlegGirko/ldbox,ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2
752ae1d60c5d06f3923328ed9663b14e436775da
CosineDistance.lua
CosineDistance.lua
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end function CosineDistance:updateOutput(input) local input1, input2 = input[1], input[2] if not input1:isContiguous() then...
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module') function CosineDistance:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor()} end local function makeContiguous(self, input1, input2) if not input1:isContiguous() then self._input1 = self._input1 or i...
Fix CosineDistance to handle non-contiguous input
Fix CosineDistance to handle non-contiguous input Reuse the buffer of contiguous input tensor in backward pass as suggested..
Lua
bsd-3-clause
witgo/nn,xianjiec/nn,andreaskoepf/nn,jonathantompson/nn,caldweln/nn,joeyhng/nn,kmul00/nn,nicholas-leonard/nn,elbamos/nn,Moodstocks/nn,diz-vara/nn,apaszke/nn,clementfarabet/nn,colesbury/nn,mlosch/nn,sagarwaghmare69/nn,jhjin/nn,vgire/nn,lukasc-ch/nn,PraveerSINGH/nn,eriche2016/nn
6b5682e4521cf9ae7f94f875cf6cf02e46127bdc
tests/actions/make/cpp/test_make_linking.lua
tests/actions/make/cpp/test_make_linking.lua
-- -- tests/actions/make/cpp/test_make_linking.lua -- Validate the link step generation for makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_linking") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, p...
-- -- tests/actions/make/cpp/test_make_linking.lua -- Validate the link step generation for makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_linking") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, p...
Linking gmake test - checks external lib name isn't mangled
Linking gmake test - checks external lib name isn't mangled External libs with a period in the currently get changed. The period and everything after it is deleted. So: links {"lua-5.1"} becomes: -llua-5 in the makefile. This test checks for that. Fix in next commit --HG-- extra : amend_source : cae92c3948f08c98...
Lua
bsd-3-clause
annulen/premake,annulen/premake,annulen/premake,annulen/premake
2a57968d738fae9e13a0c257fa7c908b77ec2525
MMOCoreORB/bin/scripts/object/tangible/deed/pet_deed/sand_panther_deed.lua
MMOCoreORB/bin/scripts/object/tangible/deed/pet_deed/sand_panther_deed.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
[Fixed] razor cat deeds - mantis 5484
[Fixed] razor cat deeds - mantis 5484 Change-Id: I9dcd2c26ae421ec051dce0b2d3e438135b74e9d1
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/lege...
18f5b42e33e8fdabd3c144e83ff229a59fc580ad
lua/autorun/Wire_Load.lua
lua/autorun/Wire_Load.lua
if VERSION < 143 then ErrorNoHalt("WireMod: This branch of wiremod only supports Gmod13+.\n") return end if SERVER then -- this file AddCSLuaFile("autorun/Wire_Load.lua") -- shared includes AddCSLuaFile("wire/WireShared.lua") AddCSLuaFile("wire/Beam_NetVars.lua") AddCSLuaFile("wire/WireGates.lua") ...
if VERSION < 143 then ErrorNoHalt("WireMod: This branch of wiremod only supports Gmod13+.\n") return end if SERVER then -- this file AddCSLuaFile("autorun/Wire_Load.lua") -- shared includes AddCSLuaFile("wire/WireShared.lua") AddCSLuaFile("wire/Beam_NetVars.lua") AddCSLuaFile("wire/WireGates.lua") ...
Temporary workaround while OnEntityCreated isn't working... Fixes E2 editor not ever asking for functions
Temporary workaround while OnEntityCreated isn't working... Fixes E2 editor not ever asking for functions
Lua
apache-2.0
Python1320/wire,CaptainPRICE/wire,NezzKryptic/Wire,mms92/wire,mitterdoo/wire,Grocel/wire,sammyt291/wire,immibis/wiremod,bigdogmat/wire,rafradek/wire,notcake/wire,plinkopenguin/wiremod,thegrb93/wire,dvdvideo1234/wire,garrysmodlua/wire,wiremod/wire
2926bac3c8fae8116091727f850f89baf1951e2f
spec/fs_spec.lua
spec/fs_spec.lua
local lfs = require "lfs" local fs = require "luacheck.fs" local utils = require "luacheck.utils" local P = fs.normalize describe("fs", function() describe("is_dir", function() it("returns true for directories", function() assert.is_true(fs.is_dir("spec/folder")) end) it("returns false ...
local lfs = require "lfs" local fs = require "luacheck.fs" local utils = require "luacheck.utils" local P = fs.normalize describe("fs", function() describe("is_dir", function() it("returns true for directories", function() assert.is_true(fs.is_dir("spec/folder")) end) it("returns false ...
Fix spec for Windows
Fix spec for Windows Use platform dependent directory separator, close files before deleting them.
Lua
mit
xpol/luacheck,linuxmaniac/luacheck,mpeterv/luacheck,linuxmaniac/luacheck,mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck,xpol/luacheck
6908f0015c8a7158f4d3f4df688e9564aa201117
OS/DiskOS/Libraries/map.lua
OS/DiskOS/Libraries/map.lua
local path = select(1,...) return function(w,h,sheet) local Map = {} Map.w, Map.h = w or 24, h or 9 --Initialize the map table Map.m = {} for x=1, Map.w do Map.m[x] = {} for y=1, Map.h do Map.m[x][y] = 0 end end Map.sheet = sheet --If called with a function, it will be called on ev...
local path = select(1,...) return function(w,h,sheet) local Map = {} Map.w, Map.h = w or 24, h or 9 --Initialize the map table Map.m = {} for x=1, Map.w do Map.m[x] = {} for y=1, Map.h do Map.m[x][y] = 0 end end Map.sheet = sheet --If called with a function, it will be called on ev...
Bugfix inporting old maps
Bugfix inporting old maps
Lua
mit
RamiLego4Game/LIKO-12
369a7d3b64a91d6d2bb7e46bd985fca372a94682
interface/Tracker/core.lua
interface/Tracker/core.lua
local targetName = null local lastSearch = 0 local window = View(GameScreen) window:setBackgroundColor(0.0, 0.0, 0.0, 0.0) window:setAnchor1(0.0, 0.0, 0.0, 0.0, 20.0, 20.0) window:setAnchor2(1.0, 1.0, 0.0, 0.0, 400.0, 40.0) window:hide() local textView = TextView(window) textView:setBackgroundColor(0.0, 0.0...
local targetName = null local lastSearch = 0 local window = View(GameScreen) window:setBackgroundColor(0.0, 0.0, 0.0, 0.0) window:setAnchor1(0.0, 0.0, 0.0, 0.0, 20.0, 20.0) window:setAnchor2(1.0, 1.0, 0.0, 0.0, 400.0, 40.0) window:hide() local textView = TextView(window) textView:setBackgroundColor(0.0, 0.0...
tracker fix
tracker fix
Lua
mit
kidaa/xiv-lua,ccbrown/xiv-lua,kidaa/xiv-lua
15a64d402a9b52e4b27608f258b1acac8873b292
scripts/boot.lua
scripts/boot.lua
dofile("scripts/adaptIO.lua") local font = dofile("../font.lua") local dataH = io.open("../coreFont", "rb") local data = dataH:read("*a") dataH:close() local coreFont = font.new(data) gpu.font = coreFont function write(t, x, y, col, target) t = tostring(t) col = col or 16 local xoff = 0 for i=1, #t do l...
if jit.os == "Linux" or jit.os == "OSX" or jit.os == "BSD" or jit.os == "POSIX" or jit.os == "Other" then local ffi = require("ffi") ffi.cdef [[ struct timeval { long tv_sec; long tv_usec; }; struct timezone { int tz_minuteswest; int tz_dsttime; }; int gettimeofday(struc...
Fix os.clock on linux, correcting timings
Fix os.clock on linux, correcting timings
Lua
mit
incinirate/Riko4,incinirate/Riko4,incinirate/Riko4
fb08ca3caf21967928246cc9c0974b09be185a23
src/main/resources/std/math.lua
src/main/resources/std/math.lua
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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...
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- 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 params, return types and doc
fix params, return types and doc Check params and return types for rightness.
Lua
apache-2.0
EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua
f23993da14f0ae858d5a6a25fec227f4bbc45c45
spec/check_spec.lua
spec/check_spec.lua
local check = require "luacheck.check" local luacompiler = require "metalua.compiler" local luaparser = luacompiler.new() local function get_report(source, options) local ast = assert(luaparser:src_to_ast(source)) return check(ast, options) end describe("test luacheck.check", function() it("does not find an...
local check = require "luacheck.check" local luacompiler = require "metalua.compiler" local luaparser = luacompiler.new() local function get_report(source, options) local ast = assert(luaparser:src_to_ast(source)) return check(ast, options) end describe("test luacheck.check", function() it("does not find an...
Fixed spec to work with busted 2.0
Fixed spec to work with busted 2.0
Lua
mit
mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck,adan830/luacheck,tst2005/luacheck,linuxmaniac/luacheck,tst2005/luacheck,xpol/luacheck,kidaa/luacheck,linuxmaniac/luacheck,xpol/luacheck,adan830/luacheck,kidaa/luacheck,mpeterv/luacheck
ca1e85fd56d3db8c1f19fd4f828c89684ff8da3c
packages/bidi.lua
packages/bidi.lua
SILE.registerCommand("thisframeLTR", function(options, content) SILE.typesetter.frame.direction = "LTR" SILE.typesetter:leaveHmode() SILE.typesetter.frame:newLine() end); SILE.registerCommand("thisframedirection", function(options, content) SILE.typesetter.frame.direction = SU.required(options, "direction", "f...
SILE.registerCommand("thisframeLTR", function(options, content) SILE.typesetter.frame.direction = "LTR" SILE.typesetter:leaveHmode() SILE.typesetter.frame:newLine() end); SILE.registerCommand("thisframedirection", function(options, content) SILE.typesetter.frame.direction = SU.required(options, "direction", "f...
A stupid but possibly workable fix to #192.
A stupid but possibly workable fix to #192.
Lua
mit
neofob/sile,simoncozens/sile,alerque/sile,neofob/sile,alerque/sile,neofob/sile,simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,alerque/sile,simoncozens/sile
f91bb8f9c6d5f1375c1ced9e0bda6abf0acff6f3
sloongnet/scripts/main.lua
sloongnet/scripts/main.lua
-- When message is recved, the fm will call this function. require_ex('ex'); local main_Req = {}; main_Req.ReloadScript = function( u, req, res ) ReloadScript(); return 0; end main_Req.SqlTest = function( u, req, res ) local cmd = req['cmd'] or ''; local res = QuerySQL(cmd); return 0,res; end m...
-- When message is recved, the fm will call this function. require_ex('ex'); local main_Req = {}; main_Req.ReloadScript = function( u, req, res ) ReloadScript(); return 0; end main_Req.SqlTest = function( u, req, res ) local cmd = req['cmd'] or ''; local res = QuerySQL(cmd); return 0,res; end m...
Fix #15
Fix #15
Lua
mit
sloong/sloongnet,sloong/sloongnet,sloong/sloongnet,sloong/sloongnet,sloong/sloongnet
26afcec76912f88cc25bbeb70a6cc8850d999516
core/text-output.lua
core/text-output.lua
if (not SILE.outputters) then SILE.outputters = {} end local outfile local cursorX = 0 local cursorY = 0 local hboxCount = 0 local writeline = function (...) local args = table.pack(...) if hboxCount >= 1 then outfile:write(" ") end for i=1, #args do outfile:write(args[i]) if i < #args then outfile:writ...
if (not SILE.outputters) then SILE.outputters = {} end local outfile local cursorX = 0 local cursorY = 0 local started = false local writeline = function (...) local args = table.pack(...) for i=1, #args do outfile:write(args[i]) end end SILE.outputters.text = { init = function() outfile = io.open(SI...
fix(backends): Implement cursor tracking to roughly simulate glues
fix(backends): Implement cursor tracking to roughly simulate glues
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
ee9728d4849918622f5ff462f4cee513dd026727
src/bot.lua
src/bot.lua
local bot = {} local api = require("api") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.voice then return "Voice" elseif msg.video then re...
local bot = {} local api = require("api") local soul = require("soul") function bot.analyzeMessageType(upd) if upd.message then local msg = upd.message if msg.audio then return "Audio" elseif msg.voice then return "Voice" elseif msg.video then re...
fix(bot): create coroutine for tick each round
fix(bot): create coroutine for tick each round
Lua
apache-2.0
SJoshua/Project-Small-R
fa2cbeba529c5d3ff515558b4355ffce7b5f4ef8
OS/DiskOS/terminal.lua
OS/DiskOS/terminal.lua
--The terminal !-- local PATH = "C://Programs/;" local curdrive, curdir, curpath = "C", "/", "C:///" local function nextPath(p) if p:sub(-1)~=";" then p=p..";" end return p:gmatch("(.-);") end printCursor(1,1,1) color(9) print("LIKO-12 V0.6.0 DEV") color(8) print("DiskOS DEV B1") flip() sleep(0.5) color(7) print(...
--The terminal !-- local PATH = "C://Programs/;" local curdrive, curdir, curpath = "C", "/", "C:///" local function nextPath(p) if p:sub(-1)~=";" then p=p..";" end return p:gmatch("(.-);") end printCursor(1,1,1) color(9) print("LIKO-12 V0.6.0 DEV") color(8) print("DiskOS DEV B1") flip() sleep(0.5) color(7) print(...
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
a6619a5cb7a05e1e8c761b27f28ec2c5e791020a
libs/httpd/luasrc/httpd.lua
libs/httpd/luasrc/httpd.lua
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / 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...
--[[ HTTP server implementation for LuCI - core (c) 2008 Freifunk Leipzig / 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...
* libs/httpd: Fixed a memleak
* libs/httpd: Fixed a memleak
Lua
apache-2.0
teslamint/luci,oneru/luci,thesabbir/luci,RedSnake64/openwrt-luci-packages,NeoRaider/luci,taiha/luci,cshore-firmware/openwrt-luci,aircross/OpenWrt-Firefly-LuCI,dwmw2/luci,harveyhu2012/luci,dismantl/luci-0.12,mumuqz/luci,kuoruan/luci,mumuqz/luci,artynet/luci,dwmw2/luci,harveyhu2012/luci,cappiewu/luci,aa65535/luci,remakee...
484ef13e502fea64929ed15d1b505931d3514d10
applications/luci-polipo/luasrc/model/cbi/polipo.lua
applications/luci-polipo/luasrc/model/cbi/polipo.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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$...
applications/luci-polipo: fix polipo page
applications/luci-polipo: fix polipo page
Lua
apache-2.0
deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci
9d018485cbc9ed3e33377b59dce9ec423c05abbb
build/scripts/tools/ndk_server.lua
build/scripts/tools/ndk_server.lua
TOOL.Name = "SDKServer" TOOL.Directory = "../SDK" TOOL.Kind = "Library" TOOL.TargetDirectory = "../SDK/lib" TOOL.Defines = { "NDK_BUILD", "NDK_SERVER" } TOOL.Includes = { "../SDK/include", "../SDK/src" } TOOL.Files = { "../SDK/include/NDK/**.hpp", "../SDK/include/NDK/**.inl", "../SDK/src/NDK/**.hpp", "../SD...
TOOL.Name = "SDKServer" TOOL.Directory = "../SDK" TOOL.Kind = "Library" TOOL.TargetDirectory = "../SDK/lib" TOOL.Defines = { "NDK_BUILD", "NDK_SERVER" } TOOL.Includes = { "../SDK/include", "../SDK/src" } TOOL.Files = { "../SDK/include/NDK/**.hpp", "../SDK/include/NDK/**.inl", "../SDK/src/NDK/**.hpp", "../SD...
Build/NDKServer: Fix dependencies, allowing it to exists in server mode
Build/NDKServer: Fix dependencies, allowing it to exists in server mode Former-commit-id: 8130fc4bd6898f21d08bfad37e3b54676ee34b96 [formerly 9f64adc84777930b63419690bf0e454582989158] Former-commit-id: 3838886ff2303fe94b69403e1cab51cc4c99a05c
Lua
mit
DigitalPulseSoftware/NazaraEngine
4553ce6dac0b1aa9a46d6b033eb866581900f722
share/lua/meta/art/03_lastfm.lua
share/lua/meta/art/03_lastfm.lua
--[[ Gets an artwork from last.fm $Id$ Copyright © 2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
--[[ Gets an artwork from last.fm $Id$ Copyright © 2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
lua: lastfm: fix matching
lua: lastfm: fix matching
Lua
lgpl-2.1
shyamalschandra/vlc,vlc-mirror/vlc,shyamalschandra/vlc,xkfz007/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,xkfz007/vlc,xkfz007/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,krichter722/vlc,vlc-mirror/v...
48bb93a9cacccae7f975e174fda658abc6148bf2
tools/build/scripts/pkg_config.lua
tools/build/scripts/pkg_config.lua
-- Helper methods to use the system pkg-config utility pkg_config = {} function pkg_config.cflags(lib) if not os.istarget("linux") then return end buildoptions({ ({os.outputof("pkg-config --cflags "..lib)})[1], }) end function pkg_config.lflags(lib) if not os.istarget("linux") then return end...
-- Helper methods to use the system pkg-config utility pkg_config = {} function pkg_config.cflags(lib) if not os.istarget("linux") then return end buildoptions({ ({os.outputof("pkg-config --cflags "..lib)})[1], }) end function pkg_config.lflags(lib) if not os.istarget("linux") then return end...
[Linux] Fix pkg-config trailing space causing premake to output an extra empty library -l Fixes #1868
[Linux] Fix pkg-config trailing space causing premake to output an extra empty library -l Fixes #1868
Lua
bsd-3-clause
sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia
e073f6f1ee2bbb0a130c18e88c1875964a273ea8
ZeroGrad.lua
ZeroGrad.lua
local ZeroGrad, parent = torch.class("nn.ZeroGrad", "nn.Module") local function recursiveZero(t1,t2) if torch.type(t2) == 'table' then t1 = (torch.type(t1) == 'table') and t1 or {t1} for key,_ in pairs(t2) do t1[key], t2[key] = recursiveZero(t1[key], t2[key]) end elseif torch.isTensor(...
local ZeroGrad, parent = torch.class("nn.ZeroGrad", "nn.Module") local function recursiveZero(t1,t2) if torch.type(t2) == 'table' then t1 = (torch.type(t1) == 'table') and t1 or {t1} for key,_ in pairs(t2) do t1[key], t2[key] = recursiveZero(t1[key], t2[key]) end elseif torch.isTensor(...
fixed ZeroGrad:updateOutput
fixed ZeroGrad:updateOutput
Lua
mit
clementfarabet/lua---nnx