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
eabbca05635c3c70a72bba583a4c65f560cee105
wget.lua
wget.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including w...
--[[ @cond ___LICENSE___ -- Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including w...
Wget header fix
Wget header fix
Lua
mit
Zefiros-Software/ZPM
9d7066c345c68f3fab3eb2fb2d4e12b9f69de476
colorize/colorize.lua
colorize/colorize.lua
package.path = '../lualibs/?.lua;' .. package.path require 'mapdef' local colorbook = require 'colorbook' local legend = require 'legend' local openmaptiles = require 'openmaptiles' -- možné prvky local F_WATER = {waterway=ANY, landuse='reservoir'} local F_BUILDING = {building=ANY} local F_FOREST = {landuse='forest'...
package.path = '../lualibs/?.lua;' .. package.path require 'mapdef' local colorbook = require 'colorbook' local legend = require 'legend' local openmaptiles = require 'openmaptiles' -- možné prvky local F_WATER = {waterway=ANY, landuse='reservoir'} local F_BUILDING = {building=ANY} local F_FOREST = {landuse='forest'...
nejake fixy pro hezci demo
nejake fixy pro hezci demo
Lua
mit
severak/mapstyles,severak/mapstyles
7848f9f8639b8083366067da2f4f7f5d0bdf2e22
mod_menu/mod_menu.lua
mod_menu/mod_menu.lua
-- -- ion/mod_menu/mod_menu.lua -- Menu opening helper routines. -- -- Copyright (c) Tuomo Valkonen 2004-2005. -- -- Ion is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the Lice...
-- -- ion/mod_menu/mod_menu.lua -- Menu opening helper routines. -- -- Copyright (c) Tuomo Valkonen 2004-2005. -- -- Ion is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the Lice...
Fixed mod_menu.grabmenu documentation.
Fixed mod_menu.grabmenu documentation. darcs-hash:20060101011729-4eba8-9cf60aba20d7cf444a33f209fb46632fd6d6ae9f.gz
Lua
lgpl-2.1
anoduck/notion,knixeur/notion,dkogan/notion,dkogan/notion,p5n/notion,anoduck/notion,p5n/notion,raboof/notion,raboof/notion,neg-serg/notion,anoduck/notion,knixeur/notion,dkogan/notion.xfttest,dkogan/notion,p5n/notion,knixeur/notion,neg-serg/notion,knixeur/notion,anoduck/notion,knixeur/notion,dkogan/notion,neg-serg/notio...
d5c3bc8b437c5d7619bb26338db459b8f69f9fd8
nvim/lua/user/ui.lua
nvim/lua/user/ui.lua
local filereadable_key = 'filereadable' local function file_exists(name) local f = io.open(name, 'r') return f ~= nil and io.close(f) end local function buf_get_var(bufnr, name, default) local ok, value = pcall(vim.api.nvim_buf_get_var, bufnr, name) if ok then return value end return default end local func...
local filereadable_key = 'filereadable' local function file_exists(name) local f = io.open(name, 'r') return f ~= nil and io.close(f) end local function buf_get_var(bufnr, name, default) local ok, value = pcall(vim.api.nvim_buf_get_var, bufnr, name) if ok then return value end return default end local func...
Revert "Fix tabline to ignore floating windows"
Revert "Fix tabline to ignore floating windows" This reverts commit 7f6da0e9285b026b43f767c10e9ce28131b3c872.
Lua
mit
creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles,creasty/dotfiles
0cc865d05556a1b5ebacd2247e33353c87f025f3
wrap/lullbc/script/core/utils/util_func.lua
wrap/lullbc/script/core/utils/util_func.lua
--[[ @file util_func.lua @brief The function util functions encapsulation. --]] local FuncTool = llbc.newclass('llbc.FuncTool') -- constructor, do not call. function FuncTool:ctor() error('now allow to instantiate FuncTool instance') end -- Return a new partial function, function first N parameter...
--[[ @file util_func.lua @brief The function util functions encapsulation. --]] local table_unpack = table.unpack or unpack local FuncTool = llbc.newclass('llbc.FuncTool') -- constructor, do not call. function FuncTool:ctor() error('now allow to instantiate FuncTool instance') end -- Return a n...
fix lua partial() implemention error
fix lua partial() implemention error
Lua
mit
lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc
80ec6fd7d81ee4f854a6ab44da19a9f511305a34
test/curve_server.lua
test/curve_server.lua
-- -- echo server with curve -- local zmq = require 'luazmq' zmq.init() local public_key = [[E>-TgoMAf+R*WZ]8[NQ-tV>c1vN{WryLVrFkS8>y]] local secret_key = [[4{DUIc#[BilXOmYjg[c#]uTD3J4>EoJVl===jx3M]] local address = 'tcp://*:10086' local s = zmq.socket(zmq.REP) s:set_curve_public_key(zmq.z85_decode(public_key...
-- -- echo server with curve -- local zmq = require 'luazmq' zmq.init() local public_key = [[E>-TgoMAf+R*WZ]8[NQ-tV>c1vN{WryLVrFkS8>y]] local secret_key = [[4{DUIc#[BilXOmYjg[c#]uTD3J4>EoJVl===jx3M]] local address = 'tcp://*:10086' local s = zmq.socket(zmq.REP) s:set_curve_public_key(zmq.z85_decode(public_key)) s...
tab fix
tab fix
Lua
apache-2.0
ichenq/lua-zmq
5fb0ee0b2ea94dca25a4216beea368c4fe5111c5
lib/luanode/__private_traverse.lua
lib/luanode/__private_traverse.lua
------------------------------------------------------------------------------- -- This module implements a function that traverses all live objects. -- You can implement your own function to pass as a parameter of traverse -- and give you the information you want. As an example we have implemented -- countreferences a...
------------------------------------------------------------------------------- -- This module implements a function that traverses all live objects. -- You can implement your own function to pass as a parameter of traverse -- and give you the information you want. As an example we have implemented -- countreferences a...
Fixes a couple typos.
Fixes a couple typos.
Lua
mit
ignacio/LuaNode,ignacio/LuaNode,ichramm/LuaNode,ichramm/LuaNode,ignacio/LuaNode,ichramm/LuaNode,ichramm/LuaNode,ignacio/LuaNode
89693c5719f8a3858c68aaf35c773aaba988b95f
spec/01-unit/009-responses_spec.lua
spec/01-unit/009-responses_spec.lua
local meta = require "kong.meta" local responses = require "kong.tools.responses" describe("Response helpers", function() local old_ngx = _G.ngx local snapshot local stubbed_ngx before_each(function() snapshot = assert:snapshot() stubbed_ngx = { header = {}, say = function(...) return old_...
local meta = require "kong.meta" local responses = require "kong.tools.responses" describe("Response helpers", function() local old_ngx = _G.ngx local snapshot local stubbed_ngx before_each(function() snapshot = assert:snapshot() stubbed_ngx = { header = {}, say = function(...) return old_...
tests(responses) fix delay_response test failure
tests(responses) fix delay_response test failure Ensure we run this test the same way we run our business logic: inside a coroutine.
Lua
apache-2.0
Kong/kong,Mashape/kong,Kong/kong,Kong/kong,jebenexer/kong
6b35cd1908e4b3837fde9d2c93f60b4def99814c
entities/entities/projectile_molotov/init.lua
entities/entities/projectile_molotov/init.lua
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.m_flDamage = 40 ENT.m_DmgRadius = 128 function ENT:Initialize() self:SetMoveType(MOVETYPE_FLYGRAVITY) self:SetMoveCollide(MOVECOLLIDE_FLY_BOUNCE) self:SetSolid(SOLID_BBOX) self:SetCollisionGroup(COLLISION_GROUP_PROJECTILE) self:Rem...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.m_flDamage = 40 ENT.m_DmgRadius = 128 function ENT:Initialize() self:SetModel("models/weapons/molotov3rd_zm.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetCollisionG...
Fixed Molotov projectile being broken
Fixed Molotov projectile being broken
Lua
apache-2.0
ForrestMarkX/glua-ZombieMaster
2f1eafcf061a78fbcbf66d8f9e6cc33208078bc2
examples/lib/write.lua
examples/lib/write.lua
-- Functions for printing to Termbox. local write = {} write.xdefault = 1 write.ydefault = 1 function write.line(str, ox, oy) x = ox or write.xdefault y = oy or write.ydefault -- see gopher-lua issue #47 --str:gsub(".", function(char) for i = 1, str:len() do char = str:sub(i,i) if char == ...
-- Functions for printing to Termbox. local write = {} write.xdefault = 1 write.ydefault = 1 function write.line(str, ox, oy) x = ox or write.xdefault y = oy or write.ydefault str:gsub(".", function(char) if char == "\n" then y = y + 1 x = ox or write.xdefault else ...
gopher-lua issue fixed
gopher-lua issue fixed
Lua
apache-2.0
ferbivore/luabox
97baa30328adc2cf81ed960e92ab24c485a59884
commands/update.lua
commands/update.lua
local log = require('log') local updater = require('auto-updater') local uv = require('uv') local pathJoin = require('luvi').path.join local exec = require('exec') local prompt = require('prompt')(require('pretty-print')) local miniz = require('miniz') local binDir = pathJoin(uv.exepath(), "..") local function update...
local log = require('log') local updater = require('auto-updater') local uv = require('uv') local pathJoin = require('luvi').path.join local exec = require('exec') local prompt = require('prompt')(require('pretty-print')) local miniz = require('miniz') local binDir = pathJoin(uv.exepath(), "..") local function update...
Fix update on Windows not targetting .exe files
Fix update on Windows not targetting .exe files * Mirrors logic in libs/core.lua's realMake fn
Lua
apache-2.0
DBarney/lit,james2doyle/lit,kidaa/lit,luvit/lit,1yvT0s/lit,squeek502/lit,lduboeuf/lit,kaustavha/lit,zhaozg/lit
584a771c69206bc1d337d8fb19b9e6aec33b73da
mod_seclabels/mod_seclabels.lua
mod_seclabels/mod_seclabels.lua
local st = require "util.stanza"; local xmlns_label = "urn:xmpp:sec-label:0"; local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:2"; local xmlns_label_catalog_old = "urn:xmpp:sec-label:catalog:0"; -- COMPAT module:add_feature(xmlns_label); module:add_feature(xmlns_label_catalog); module:add_feature(xmlns_label_c...
local st = require "util.stanza"; local xmlns_label = "urn:xmpp:sec-label:0"; local xmlns_label_catalog = "urn:xmpp:sec-label:catalog:2"; local xmlns_label_catalog_old = "urn:xmpp:sec-label:catalog:0"; -- COMPAT module:add_feature(xmlns_label); module:add_feature(xmlns_label_catalog); module:add_feature(xmlns_label_c...
mod_seclabels: Fix config reloading
mod_seclabels: Fix config reloading
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
ce12db188673a4090baf25890dab81fec2067d9f
yahoovoices.lua
yahoovoices.lua
local url_count = 0 wget.callbacks.httploop_result = function(url, err, http_stat) -- NEW for 2014: Slightly more verbose messages because people keep -- complaining that it's not moving or not working local status_code = http_stat["statcode"] url_count = url_count + 1 io.stdout:write(url_count .. "=" .. s...
local url_count = 0 wget.callbacks.httploop_result = function(url, err, http_stat) -- NEW for 2014: Slightly more verbose messages because people keep -- complaining that it's not moving or not working local status_code = http_stat["statcode"] url_count = url_count + 1 io.stdout:write(url_count .. "=" .. s...
yahoovoices.lua: Workaround wget bug to download only once
yahoovoices.lua: Workaround wget bug to download only once
Lua
unlicense
ArchiveTeam/yahoo-voices-grab,ArchiveTeam/yahoo-voices-grab
104e6e0d81a5c823205cbffbfd1f3d1575bb952f
IPyLua/dom_builder.lua
IPyLua/dom_builder.lua
local pyget = pyget local dom_builder = {} local element_mt = { __tostring = function(self) return "<"..self.tag..">" end, ipylua_show = function(self) local tbl = { "<", self.tag } for k,v in pairs(tbl) do if type(k)~="number" and k~="tag" then tbl[#tbl+1] = ('%s="%s"'):format(k,tostring(v))...
local pyget = pyget local dom_builder = {} local element_mt = { __tostring = function(self) return "<"..self.tag..">" end, ipylua_show = function(self) local tbl = { "<", self.tag } for k,v in pairs(tbl) do if type(k)~="number" and k~="tag" then tbl[#tbl+1] = ('%s="%s"'):format(k,tostring(v))...
Fixed problem in dom_builder
Fixed problem in dom_builder
Lua
mit
pakozm/IPyLua,pakozm/IPyLua
69e4b20e8c641d5e90029dbef68db92119143599
vrp/modules/hidden_transformer.lua
vrp/modules/hidden_transformer.lua
local lang = vRP.lang local HiddenTransformer = class("HiddenTransformer", vRP.Extension) -- PRIVATE METHODS -- menu: hidden transformer informer local function menu_informer(self) local function m_buy(menu, id) local user = menu.user local itemtr = vRP.EXT.ItemTransformer.transformers["vRP:cfg_hidden:".....
local lang = vRP.lang local HiddenTransformer = class("HiddenTransformer", vRP.Extension) -- PRIVATE METHODS -- menu: hidden transformer informer local function menu_informer(self) local function m_buy(menu, id) local user = menu.user local itemtr = vRP.EXT.ItemTransformer.transformers["vRP:cfg_hidden:".....
Fix missing informer menu.
Fix missing informer menu.
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
1ab9775adf3d5dd947b6f7f70a4df7e2704c037b
mock/gfx/MSpriteCopy.lua
mock/gfx/MSpriteCopy.lua
module 'mock' CLASS: MSpriteCopy ( mock.GraphicsPropComponent ) :MODEL{ Field 'sourceSprite' :type( MSprite ) :set( 'setSourceSprite'); Field 'overrideFeatures' :boolean(); Field 'hiddenFeatures' :collection( 'string' ) :selection( 'getAvailFeatures' ) :getset( 'HiddenFeatures' ); -- Field 'copyScl' :boo...
module 'mock' CLASS: MSpriteCopy ( mock.GraphicsPropComponent ) :MODEL{ Field 'sourceSprite' :type( MSprite ) :set( 'setSourceSprite'); Field 'overrideFeatures' :boolean(); Field 'hiddenFeatures' :collection( 'string' ) :selection( 'getAvailFeatures' ) :getset( 'HiddenFeatures' ); -- Field 'copyScl' :boo...
fix MSpriteCopy
fix MSpriteCopy
Lua
mit
tommo/mock
79516cf0059ca8e1e0859e8f1beee34bfb5a57ee
mod_webpresence/mod_webpresence.lua
mod_webpresence/mod_webpresence.lua
module:depends("http"); local jid_split = require "util.jid".prepped_split; local b64 = require "util.encodings".base64.encode; local sha1 = require "util.hashes".sha1; local stanza = require "util.stanza".stanza; local json = require "util.json".encode_ordered; local function require_resource(name) local icon_pa...
module:depends("http"); local jid_split = require "util.jid".prepped_split; local b64 = require "util.encodings".base64.encode; local sha1 = require "util.hashes".sha1; local stanza = require "util.stanza".stanza; local json = require "util.json".encode_ordered; local function require_resource(name) local icon_pa...
mod_webpresence: fixed render-type handling (thanks to biszkopcik and Zash)
mod_webpresence: fixed render-type handling (thanks to biszkopcik and Zash)
Lua
mit
LanceJenkinZA/prosody-modules,Craige/prosody-modules,amenophis1er/prosody-modules,guilhem/prosody-modules,mmusial/prosody-modules,prosody-modules/import,Craige/prosody-modules,asdofindia/prosody-modules,joewalker/prosody-modules,olax/prosody-modules,vince06fr/prosody-modules,prosody-modules/import,guilhem/prosody-modul...
c0715a901bac3843fe5682353f7c572041ba562b
Modules/Utility/os.lua
Modules/Utility/os.lua
-- to use: local os = require(this_script) -- Adds an os.date() function back to the Roblox os table! -- @author Narrev -- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3) -- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600) -- timeZoneDiff = os.date("*t...
-- to use: local os = require(this_script) -- Adds an os.date() function back to the Roblox os table! -- @author Narrev -- Abbreviated tables have been left in for now. Could be replaced with dayNames[wday + 1]:sub(1,3) -- local timeZone = math.ceil( os.difftime(os.time(), tick()) / 3600) -- timeZoneDiff = os.date("*t...
Efficiency fixes
Efficiency fixes
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
8b89b1e55993bb8c9972afe61d159678ed303669
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={} local 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 ...
Change type of 'suffix' from function to virtual-table
Change type of 'suffix' from function to virtual-table
Lua
bsd-3-clause
nocd5/nyagos,kissthink/nyagos,kissthink/nyagos,hattya/nyagos,tsuyoshicho/nyagos,kissthink/nyagos,tyochiai/nyagos,hattya/nyagos,zetamatta/nyagos,hattya/nyagos
23ecf37a01cb3b0041b26b6ea9c12097fbca75df
luasrc/mch/router.lua
luasrc/mch/router.lua
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
bugfix
bugfix
Lua
apache-2.0
appwilldev/moochine,lilien1010/moochine,lilien1010/moochine,appwilldev/moochine,lilien1010/moochine
d0bd16dfaea66200d53b145fca9e70e0f9566b25
mock/common/ProtoSpawner.lua
mock/common/ProtoSpawner.lua
module 'mock' local enumSpawnMethod = _ENUM_V { 'root', 'sibling', 'child', 'parent_sibling' } CLASS: ProtoSpawner ( Component ) :MODEL{ Field 'proto' :asset('proto'); Field 'spawnName' :string(); '----'; Field 'copyLoc' :boolean(); Field 'copyRot' :boolean(); Field 'copy...
module 'mock' local enumSpawnMethod = _ENUM_V { 'root', 'sibling', 'child', 'parent_sibling' } CLASS: ProtoSpawner ( Component ) :MODEL{ Field 'proto' :asset('proto'); Field 'spawnName' :string(); '----'; Field 'copyLoc' :boolean(); Field 'copyRot' :boolean(); Field 'copy...
fixed spawner bug
fixed spawner bug
Lua
mit
tommo/mock
24c1e0450d0d45ebc1e283a7b2676e53ef77d929
packages/nn/Sequential.lua
packages/nn/Sequential.lua
local Sequential, parent = torch.class('nn.Sequential', 'nn.Module') function Sequential:__init() self.modules = {} end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
local Sequential, parent = torch.class('nn.Sequential', 'nn.Module') function Sequential:__init() self.modules = {} end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
Fixed nested prints for Sequential
Fixed nested prints for Sequential
Lua
bsd-3-clause
soumith/TH,soumith/TH,soumith/TH,soumith/TH
de87bce7f9a507cf34165f3894420f00c36ef7d2
src/program/lwaftr/query/query.lua
src/program/lwaftr/query/query.lua
module(..., package.seeall) local S = require("syscall") local counter = require("core.counter") local ffi = require("ffi") local lib = require("core.lib") local lwcounter = require("apps.lwaftr.lwcounter") local lwtypes = require("apps.lwaftr.lwtypes") local lwutil = require("apps.lwaftr.lwutil") local shm = require(...
module(..., package.seeall) local S = require("syscall") local counter = require("core.counter") local ffi = require("ffi") local lib = require("core.lib") local lwcounter = require("apps.lwaftr.lwcounter") local lwtypes = require("apps.lwaftr.lwtypes") local lwutil = require("apps.lwaftr.lwutil") local shm = require(...
Fix fetch lwAFTR instance by name
Fix fetch lwAFTR instance by name
Lua
apache-2.0
Igalia/snabbswitch,dpino/snabb,heryii/snabb,snabbco/snabb,eugeneia/snabbswitch,Igalia/snabbswitch,kbara/snabb,snabbco/snabb,SnabbCo/snabbswitch,eugeneia/snabb,dpino/snabbswitch,dpino/snabbswitch,dpino/snabb,eugeneia/snabb,alexandergall/snabbswitch,Igalia/snabb,eugeneia/snabb,kbara/snabb,kbara/snabb,dpino/snabbswitch,al...
691a7645912f04af5c83aa6fbc8dfbc90753cc08
mod_webpresence/mod_webpresence.lua
mod_webpresence/mod_webpresence.lua
module:depends("http"); local jid_split = require "util.jid".prepped_split; local function require_resource(name) local icon_path = module:get_option_string("presence_icons", "icons"); local f, err = module:load_resource(icon_path.."/"..name); if f then return f:read("*a"); end module:log("warn", "Failed to o...
module:depends("http"); local jid_split = require "util.jid".prepped_split; local b64 = require "util.encodings".base64.encode; local sha1 = require "util.hashes".sha1; local function require_resource(name) local icon_path = module:get_option_string("presence_icons", "icons"); local f, err = module:load_resource(i...
mod_webpresence: fixed text notation, added html, added status message output
mod_webpresence: fixed text notation, added html, added status message output
Lua
mit
crunchuser/prosody-modules,guilhem/prosody-modules,drdownload/prosody-modules,1st8/prosody-modules,vince06fr/prosody-modules,amenophis1er/prosody-modules,softer/prosody-modules,stephen322/prosody-modules,brahmi2/prosody-modules,crunchuser/prosody-modules,syntafin/prosody-modules,softer/prosody-modules,jkprg/prosody-mod...
333c2c0ad937af1a69f812072fbaaaab16f310a1
premake5.lua
premake5.lua
-- Helper function to find compute API headers and libraries function findLibraries() local path = os.getenv("INTELOCLSDKROOT") if (path) then defines { "PLATFORM_INTEL" } includedirs { "$(INTELOCLSDKROOT)/include" } filter "platforms:x86" if os.get() == "linux" the...
-- Helper function to find compute API headers and libraries function findLibraries() local path = os.getenv("INTELOCLSDKROOT") if (path) then defines { "PLATFORM_INTEL" } includedirs { "$(INTELOCLSDKROOT)/include" } filter "platforms:x86" if os.get() == "linux" the...
Fixed Premake warnings when generating files for gmake
Fixed Premake warnings when generating files for gmake
Lua
mit
Fillo7/KTT,Fillo7/KTT
30f7400be367b722822897c496575d703b0439ce
OS/DiskOS/Libraries/diskHelpers.lua
OS/DiskOS/Libraries/diskHelpers.lua
function Sprite(id,x,y,r,sx,sy,sheet) (sheet or SpriteMap):draw(id,x,y,r,sx,sy) end function SpriteGroup(id,x,y,w,h,sx,sy,sheet) local sx,sy = math.floor(sx or 1), math.floor(sy or 1) for spry = 1, h or 1 do for sprx = 1, w or 1 do (sheet or SpriteMap):draw((id-1)+sprx+(spry*24-24),x+(sprx*sx*8-sx*8),y+(spry*s...
function Sprite(id,x,y,r,sx,sy,sheet) (sheet or SpriteMap):draw(id,x,y,r,sx,sy) end function SpriteGroup(id,x,y,w,h,sx,sy,sheet) local sx,sy = math.floor(sx or 1), math.floor(sy or 1) for spry = 1, h or 1 do for sprx = 1, w or 1 do (sheet or SpriteMap):draw((id-1)+sprx+(spry*24-24),x+(sprx*sx*8-sx*8),y+(spry*s...
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
8f32a3da1190b9ad2604dc5910393d336a1ea5fd
Typelist-alltypes.lua
Typelist-alltypes.lua
--[[ Modulo che crea l'elenco Pokémon per tipo --]] local g = {} local data = require("Wikilib-data") local tl = require('Typelist') --[[ Sorting function for Entry: Pokémon with two types are sorted first for second type order, then for ndex --]] tl.FirstTypeEntry.__lt = function(a, b) if (a.type2 == b.type2) ...
--[[ Modulo che crea l'elenco Pokémon per tipo --]] local g = {} local data = require("Wikilib-data") local tl = require('Typelist') --[[ Sorting function for Entry: Pokémon with two types are sorted first for second type order, then for ndex --]] tl.FirstTypeEntry.__lt = function(a, b) if (a.type2 == b.type2) ...
Fix in header level
Fix in header level
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
356b89e5defb7e7114321a1c3ef80c032789a477
project_files/cinematic_editor.lua
project_files/cinematic_editor.lua
 fileToRender = "../project_files/testspheres.lua" keyframeFile = "../project_files/cinematic_keyframes.kf" function trafo(str) local newcontent = str:gsub("mmCreateView%(.-%)", "") newcontent = newcontent:gsub("mmCreateModule%(\"View.-%)", "") newcontent = newcontent:gsub("mmCreateCall%(\"CallRenderView.-%)",...
 fileToRender = "../project_files/testspheres.lua" keyframeFile = "../project_files/cinematic_keyframes.kf" function trafo(str) -- Break if SplitView or CinematicView occure anywhere in the project local startpos, endpos, word = str:find("SplitView") if not (startpos == nil) then print( "lua ERROR: Cinema...
fixed cinematic_editor example file
fixed cinematic_editor example file
Lua
bsd-3-clause
UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol
bb084aaab297e4acc6becf10a69f698c87f2cb25
scripts/tools/gcc.lua
scripts/tools/gcc.lua
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
-- Copyright 2010 Andreas Fredriksson -- -- This file is part of Tundra. -- -- Tundra is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version...
GCC: Support prefix to tools via (_GCC_BINPREFIX) as a convenience for cross compilation setups.
GCC: Support prefix to tools via (_GCC_BINPREFIX) as a convenience for cross compilation setups.
Lua
mit
bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,bmharper/tundra
bb4ba9dc907433a940180045e8ab43f39eb06a71
github-contributions-widget/github-contributions-widget.lua
github-contributions-widget/github-contributions-widget.lua
------------------------------------------------- -- Github Contributions Widget for Awesome Window Manager -- Shows the contributions graph -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/github-contributions-widget -- @author Pavel Makhov -- @copyright 2020 Pave...
------------------------------------------------- -- Github Contributions Widget for Awesome Window Manager -- Shows the contributions graph -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/github-contributions-widget -- @author Pavel Makhov -- @copyright 2020 Pave...
[github-contributions] quickfix of #203
[github-contributions] quickfix of #203
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
8b508718f50a7ef9afad7188359251a534a16e8d
runTests.lua
runTests.lua
local Misc = require('misc') local runSuiteOLD = function(suite) for name, func in pairs(suite) do -- io.write(' test \'' .. name .. '\'') -- io.write(string.rep(' ', 30 - #name)) func() -- io.write('[ok]\n') -- local status, errmsg = pcall(func) -- TODO: use xpcall -- if status == false the...
local Misc = require('misc') local runSuiteOLD = function(suite) for name, func in pairs(suite) do -- io.write(' test \'' .. name .. '\'') -- io.write(string.rep(' ', 30 - #name)) func() -- io.write('[ok]\n') -- local status, errmsg = pcall(func) -- TODO: use xpcall -- if status == false the...
Fixed filenames in runTests.lua
Fixed filenames in runTests.lua
Lua
mit
ozkriff/misery-lua
dcce8b8324c30c1d869f92610d97c48b41fbe856
lua/flowtracker2.lua
lua/flowtracker2.lua
local ffi = require "ffi" local C = ffi.C local memory = require "memory" local flowtrackerlib = ffi.load("../build/flowtracker") local hmap = require "hmap" local lm = require "libmoon" local log = require "log" local pktLib = require "packet" local eth = require "proto.ethernet" local ip = require "proto.ip4" ...
local ffi = require "ffi" local C = ffi.C local memory = require "memory" local flowtrackerlib = ffi.load("../build/flowtracker") local hmap = require "hmap" local lm = require "libmoon" local log = require "log" local pktLib = require "packet" local eth = require "proto.ethernet" local ip = require "proto.ip4" local ...
Fix formatting
Fix formatting
Lua
mit
emmericp/FlowScope
266dae7f16d92025adec4f02c1ff36218f40a942
lib/luvit/utils.lua
lib/luvit/utils.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
Do not polute global namespace with useColors and fix typo
Do not polute global namespace with useColors and fix typo
Lua
apache-2.0
boundary/luvit,rjeli/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,boundary/luvit,DBarney/luvit,boundary/luvit,AndrewTsao/luvit,bsn069/luvit,zhaozg/luvit,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,sousoux/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,boundary/luvit,kaust...
d3af3982feef3dbd9fdd59b5ff1c1d0158ac74f1
spec/02-integration/06_error_handling_spec.lua
spec/02-integration/06_error_handling_spec.lua
local utils = require "spec.spec_utils" local cassandra = require "cassandra" describe("error handling", function() local _hosts, _shm setup(function() _hosts, _shm = utils.ccm_start() end) describe("spawn_cluster()", function() it("should return option errors", function() local options = requi...
local utils = require "spec.spec_utils" local cassandra = require "cassandra" describe("error handling", function() local _hosts, _shm setup(function() _hosts, _shm = utils.ccm_start() end) describe("spawn_cluster()", function() it("should return option errors", function() local options = requi...
fix(test) remove set_log_lvl call
fix(test) remove set_log_lvl call
Lua
mit
thibaultCha/lua-cassandra,thibaultCha/lua-cassandra
bad6c7ef3844bcc0ee17714ca412efcc8832eb4d
Main/Generators/Porg.lua
Main/Generators/Porg.lua
-- Physical Organizer. Creates unit targets for Elements. require "Cpp/Common"; local UnitTarget = require "Macaroni.Model.Project.UnitTarget"; local TypeNames = Macaroni.Model.TypeNames; -- Parses NodeSpace for a library. -- Each element that does not have an For each element which deserves one -- has a new Unit ta...
-- Physical Organizer. Creates unit targets for Elements. require "Cpp/Common"; local UnitTarget = require "Macaroni.Model.Project.UnitTarget"; local TypeNames = Macaroni.Model.TypeNames; -- Parses NodeSpace for a library. -- Each element that does not have an For each element which deserves one -- has a new Unit ta...
Fix Porg's overzealous generation
Fix Porg's overzealous generation Porg was generating stuff for namespaces which was dumb.
Lua
apache-2.0
TimSimpson/Macaroni,TimSimpson/Macaroni,TimSimpson/Macaroni,TimSimpson/Macaroni,TimSimpson/Macaroni
c4ccd2cdecc630a994ab73b49eaec79d9deeb7de
test_scripts/Polices/appID_Management/157_ATF_P_TC_Register_App_Interface_Without_Data_Consent_Assign_pre_DataConsent_Policies.lua
test_scripts/Polices/appID_Management/157_ATF_P_TC_Register_App_Interface_Without_Data_Consent_Assign_pre_DataConsent_Policies.lua
------------- -------------------------------------------------------------------------------- -- Requirement summary: -- [RegisterAppInterface] Without data consent, assign "pre_DataConsent" policies -- to the application which appID does not exist in LocalPT -- -- Description: -- SDL should assign "pre_DataConsent" p...
------------- -------------------------------------------------------------------------------- -- Requirement summary: -- [RegisterAppInterface] Without data consent, assign "pre_DataConsent" policies -- to the application which appID does not exist in LocalPT -- -- Description: -- SDL should assign "pre_DataConsent" p...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
daadc09b3a82e492f2b91de941990506d97bdddc
src/module/kalmon.lua
src/module/kalmon.lua
-- This module adds some core functionality. -- See https://github.com/kalmanolah/kalmon-ESP8266 -- See https://github.com/kalmanolah/kalmon-web local obj = {} obj._report_data = function() return { { "/heartbeat", "ping" } } end obj._command_handlers = function() local handlers = {} handlers['/info'] = ...
-- This module adds some core functionality. -- See https://github.com/kalmanolah/kalmon-ESP8266 -- See https://github.com/kalmanolah/kalmon-web local obj = {} obj._report_data = function() return { { "/heartbeat", "ping" } } end obj._command_handlers = function() local handlers = {} handlers['/info'] = ...
bugfix
bugfix Signed-off-by: Kalman Olah <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@kalmanolah.net>
Lua
mit
kalmanolah/kalmon-ESP8266
c42b23242a52cff98943d90e97e695ecf4c6b936
Skins/ModernGadgets/@Resources/Scripts/SettingsBackups.lua
Skins/ModernGadgets/@Resources/Scripts/SettingsBackups.lua
-- MODERNGADGETS SETTINGS BACKUP SCRIPT -- -- This script makes backups of the settings files every two hours, which -- prevents them from being lost when updating the suite. debug = false function Initialize() dofile(SKIN:GetVariable('scriptPath') .. 'Utilities.lua') fileNames = { 'GlobalSettings.inc', ...
-- MODERNGADGETS SETTINGS BACKUP SCRIPT -- -- This script makes backups of the settings files every two hours, which -- prevents them from being lost when updating the suite. debug = false function Initialize() fileNames = { 'GlobalSettings.inc', 'CpuSettings.inc', 'NetworkSettings....
Fix settings backup script logging
Fix settings backup script logging
Lua
mit
raiguard/ModernGadgets,raiguard/ModernGadgets,raiguard/ModernGadgets,iamanai/ModernGadgets,iamanai/ModernGadgets
79fbb1637b6043a50d9601e6624287fc56c6f54c
lgi/override/Pango.lua
lgi/override/Pango.lua
------------------------------------------------------------------------------ -- -- LGI Pango override module. -- -- Copyright (c) 2012 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------------...
------------------------------------------------------------------------------ -- -- LGI Pango override module. -- -- Copyright (c) 2012 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- ---------------------------------------------------------------------...
Pango: add override fixing Pango.Layout.move_cursor_visually()
Pango: add override fixing Pango.Layout.move_cursor_visually()
Lua
mit
pavouk/lgi,psychon/lgi,zevv/lgi
3e1b8e6bf535fb12f1ad3348473c64acd3647993
hop/hop.lua
hop/hop.lua
#!/usr/bin/env lua -- Copyright 2011 The hop Authors. -- -- 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 applic...
#!/usr/bin/env lua -- Copyright 2011 The hop Authors. -- -- 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 applic...
fixed lua bug that caused e.g. `hop java` to sometimes hop to javascript even if java was a key
fixed lua bug that caused e.g. `hop java` to sometimes hop to javascript even if java was a key
Lua
apache-2.0
Cue/hop,Cue/hop
c99ba7bc3ba5c63922105a7c5dc0fb948bc3e29a
config/nvim/lua/plugins/gitsigns.lua
config/nvim/lua/plugins/gitsigns.lua
require("gitsigns").setup { signs = { add = {hl = "GitSignsAdd", text = "│", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn"}, change = {hl = "GitSignsChange", text = "│", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn"}, delete = {hl = "GitSignsDelete", text = "_", numhl = "GitSignsDeleteNr", l...
require("gitsigns").setup { signs = { add = {hl = "GitSignsAdd", text = "│", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn"}, change = {hl = "GitSignsChange", text = "│", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn"}, delete = {hl = "GitSignsDelete", text = "_", numhl = "GitSignsDeleteNr", l...
fix(vim): replace deprecated gitsigns setting
fix(vim): replace deprecated gitsigns setting use_internal_diff -> diff_opts.internal
Lua
mit
nicknisi/dotfiles,nicknisi/dotfiles,nicknisi/dotfiles
3142b7b5cade6235eda90fb13d3ef3be01b22834
grains/grains_test.lua
grains/grains_test.lua
local Grains = require('grains') describe('Grains', function() it('square 1', function() assert.are.equals(Grains.square(1), 1) end) it('square 2', function() assert.are.equals(Grains.square(2), 2) end) it('square 3', function() assert.are.equals(Grains.square(3), 4) ...
local Grains = require('grains') describe('Grains', function() it('square 1', function() assert.are.equals(1, Grains.square(1)) end) it('square 2', function() assert.are.equals(2, Grains.square(2)) end) it('square 3', function() assert.are.equals(4, Grains.square(3)) ...
Fixed assertion argument order
Fixed assertion argument order
Lua
mit
exercism/xlua,ryanplusplus/xlua,fyrchik/xlua
b36e5305b31d8a862b05a8465e3597b207a42474
share/lua/website/imdb.lua
share/lua/website/imdb.lua
-- -- libquvi-scripts -- Copyright (C) 2011 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; ...
-- -- libquvi-scripts -- Copyright (C) 2011 quvi project -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; ...
FIX: imdb.lua:43: attempt to call field 'get_config' (nil)
FIX: imdb.lua:43: attempt to call field 'get_config' (nil)
Lua
agpl-3.0
legatvs/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,hadess/libquvi-scripts-iplayer,alech/libquvi-scripts,legatvs/libquvi-scripts,hadess/libquvi-scripts-iplayer
d51581ad1f836d6682f7fad0d12ba08ad389eb18
toys/lstm-real-class/toy.lua
toys/lstm-real-class/toy.lua
-- Here I try modeling two criteria at once, one real and one a discrete version -- of that. The main motivation is to try predicting multiple things at once. require 'optim' plutils = require 'pl.utils' tablex = require 'pl.tablex' lstm = require 'lstm' inputs = {} total_count = 0 train_points = 0 lines = plutils.re...
-- Here I try modeling two criteria at once, one real and one a discrete version -- of that. The main motivation is to try predicting multiple things at once. require 'optim' plutils = require 'pl.utils' tablex = require 'pl.tablex' lstm = require 'lstm' inputs = {} total_count = 0 train_points = 0 lines = plutils.re...
fixes to switch transpose input
fixes to switch transpose input
Lua
mit
kbullaughey/lstm-play,kbullaughey/lstm-play,kbullaughey/lstm-play
f362a2270446867baf232946727cb2b42b483d5d
benchmark/benchmark.lua
benchmark/benchmark.lua
-- lua-lru, LRU cache in Lua -- Copyright (c) 2015 Boris Nagaev -- See the LICENSE file for terms of use. local lru -- fix for resty.lrucache ngx = { now = os.clock } local impl = arg[1] if impl then lru = require(impl) else lru = { new = function() return { set = func...
-- lua-lru, LRU cache in Lua -- Copyright (c) 2015 Boris Nagaev -- See the LICENSE file for terms of use. local lru -- fix for resty.lrucache ngx = { now = os.clock } local impl = arg[1] if impl then lru = require(impl) else lru = { new = function() return { set = func...
benchmark: fix 'no cache' case
benchmark: fix 'no cache' case
Lua
mit
starius/lua-lru
ee2f4bd29a1a3bc432d448ca80c7184a676e0cca
utils.lua
utils.lua
-- UTILS function trim(s) local from = s:match"^%s*()" return s:match"^%s*()" > #s and "" or s:match(".*%S", s:match"^%s*()") end function clone(t) -- shallow-copy a table if type(t) ~= "table" then return t end local meta = getmetatable(t) local target = {} for k, v in pairs(t) do target[k] = v end setmetatab...
-- UTILS function trim(s) local from = s:match"^%s*()" return s:match"^%s*()" > #s and "" or s:match(".*%S", s:match"^%s*()") end function clone(t) -- shallow-copy a table if type(t) ~= "table" then return t end local meta = getmetatable(t) local target = {} for k, v in pairs(t) do target[k] = v end setmetatab...
Table length fix
Table length fix
Lua
mit
AlexMili/torch-dataframe
e8e8c3b3a2f8257370b892307e2d0318030eacd7
game/scripts/vscripts/items/item_pocket_riki.lua
game/scripts/vscripts/items/item_pocket_riki.lua
--[[Author: YOLOSPAGHETTI Date: February 4, 2016 Checks if Riki is behind his target Borrows heavily from bristleback.lua]] function CheckBackstab(params) local attacker = params.attacker local ability = params.ability local stat_damage_multiplier = ability:GetSpecialValueFor("stat_damage") / 100 local statId...
--[[Author: YOLOSPAGHETTI Date: February 4, 2016 Checks if Riki is behind his target Borrows heavily from bristleback.lua]] function CheckBackstab(params) local attacker = params.attacker local ability = params.ability local stat_damage_multiplier = ability:GetSpecialValueFor("stat_damage") / 100 local statId ...
Fixed consumed Pocked Riki gave attributes for too long
Fixed consumed Pocked Riki gave attributes for too long
Lua
mit
ark120202/aabs
9c11d08da2d061cbf05bb0721d0392c91bc0c79c
configure-controller.lua
configure-controller.lua
local Root = Discover.ControllerLocation() .. '/' dofile(Root .. 'info.include.lua') -- Setup Discover.Version({Version = 1}) local Help = Discover.HelpMode() local Guard = function(Action) -- Helps prevent filesystem changes in help mode if not Help then Action() end end local Debug = false local VariantDirector...
local Root = Discover.ControllerLocation() .. '/' dofile(Root .. 'info.include.lua') -- Setup Discover.Version({Version = 1}) local Help = Discover.HelpMode() local Guard = function(Action) -- Helps prevent filesystem changes in help mode if not Help then Action() end end local Debug = false local VariantDirector...
Fixes to executable location determination.
Fixes to executable location determination.
Lua
bsd-3-clause
Rendaw/inscribist,Rendaw/inscribist
44e4327aef39d9cbf1e96cc8ff3b0d67643cb470
shared/maploader.lua
shared/maploader.lua
local Class = require "shared.middleclass" local MapLoader = Class "MapLoader" local sti = require "libs.sti" local blocking = require "shared.blocking" function MapLoader:initialize(mapName, spawnFunction) local map = sti.new("maps/" .. mapName) blocking.setMap(map) local objects for k, v in pairs(m...
local Class = require "shared.middleclass" local MapLoader = Class "MapLoader" local sti = require "libs.sti" local blocking = require "shared.blocking" function MapLoader:initialize(mapName, spawnFunction) local map = sti.new("maps/" .. mapName) blocking.setMap(map) local objects for k, v in pairs(m...
Fix: MapLoader width/height
Fix: MapLoader width/height
Lua
mit
ExcelF/project-navel
370a4c6873cd49733fef19fb58b05e09d635d1cd
src/lugate/request.lua
src/lugate/request.lua
---------------------- -- The lugate module. -- Lugate is a lua module for building JSON-RPC 2.0 Gateway APIs just inside of your Nginx configuration file. -- Lugate is meant to be used with [ngx\_http\_lua\_module](https://github.com/openresty/lua-nginx-module) together. -- -- @classmod lugate.request -- @author Ivan ...
---------------------- -- The lugate module. -- Lugate is a lua module for building JSON-RPC 2.0 Gateway APIs just inside of your Nginx configuration file. -- Lugate is meant to be used with [ngx\_http\_lua\_module](https://github.com/openresty/lua-nginx-module) together. -- -- @classmod lugate.request -- @author Ivan ...
Fix for params type
Fix for params type
Lua
mit
zinovyev/lugate,zinovyev/lugate
0dc79c5866fd3abf50770e050735e59d7c1f629b
lua/include/histogram.lua
lua/include/histogram.lua
local histogram = {} histogram.__index = histogram function histogram:create() local histo = setmetatable({}, histogram) histo.histo = {} histo.dirty = true return histo end histogram.new = histogram.create setmetatable(histogram, { __call = histogram.create }) function histogram:update(k) if not k then return...
local histogram = {} histogram.__index = histogram function histogram:create() local histo = setmetatable({}, histogram) histo.histo = {} histo.dirty = true return histo end histogram.new = histogram.create setmetatable(histogram, { __call = histogram.create }) function histogram:update(k) if not k then return...
fix quartiles of empty histograms
fix quartiles of empty histograms
Lua
mit
emmericp/MoonGen,gallenmu/MoonGen,werpat/MoonGen,kidaa/MoonGen,wenhuizhang/MoonGen,pavel-odintsov/MoonGen,atheurer/MoonGen,gallenmu/MoonGen,werpat/MoonGen,slyon/MoonGen,atheurer/MoonGen,emmericp/MoonGen,schoenb/MoonGen,gallenmu/MoonGen,slyon/MoonGen,kidaa/MoonGen,duk3luk3/MoonGen,bmichalo/MoonGen,scholzd/MoonGen,scholz...
cbad38152f8b3f27888fe1c5ff9c95acb25dc71e
tests/plugins/project/test.lua
tests/plugins/project/test.lua
import("detect.sdks.find_vstudio") import("core.project.config") import("core.platform.platform") import("core.tool.toolchain") function test_vsxmake(t) if not is_subhost("windows") then return t:skip("wrong host platform") end local projname = "testproj" local tempdir = os.tmpfile() os.m...
import("detect.sdks.find_vstudio") import("core.project.config") import("core.platform.platform") import("core.tool.toolchain") function test_vsxmake(t) if not is_subhost("windows") then return t:skip("wrong host platform") end local projname = "testproj" local tempdir = os.tmpfile() os.m...
fix test for calling msbuild
fix test for calling msbuild
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
4dfdf0127057bfe108a0204c04ccbe38ebf07d4b
src/logging/file.lua
src/logging/file.lua
------------------------------------------------------------------------------- -- Saves logging information in a file -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2007 Kepler Project -- -- @release $Id: file.lua,v 1.5 2007-09-05 12:15:31 tomas Exp $ ------------------------------------...
------------------------------------------------------------------------------- -- Saves logging information in a file -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2007 Kepler Project -- -- @release $Id: file.lua,v 1.6 2008-07-28 16:23:38 alessandrohc Exp $ -----------------------------...
Fix the problem cause when the logger in file use the datePattern, but not considered the change of the date.
Fix the problem cause when the logger in file use the datePattern, but not considered the change of the date.
Lua
mit
Neopallium/lualogging,mwchase/log4l,StoneDot/lualogging
cdcfdb718dc83e3ecb55492256886d68144cbbd1
OS/DiskOS/Programs/Disks/save.lua
OS/DiskOS/Programs/Disks/save.lua
local destination, flag, ctype, clvl = ... flag, ctype, clvl = flag or "", ctype or "gzip", tonumber(clvl or "9") local term = require("terminal") local eapi = require("Editors") local png = false if destination and destination ~= "@clip" and destination ~= "-?" then destination = term.resolve(destination) if de...
local destination, flag, ctype, clvl = ... flag, ctype, clvl = flag or "", ctype or "gzip", tonumber(clvl or "9") local term = require("terminal") local eapi = require("Editors") local png = false if destination and destination ~= "@clip" and destination ~= "-?" then destination = term.resolve(destination) if de...
Fix disk color flag
Fix disk color flag
Lua
mit
RamiLego4Game/LIKO-12
b3694b0a83f6954e530d79a4609eb2c8f3775fc2
common/shared/common.lua
common/shared/common.lua
keyChars = { { 48, 57 }, { 65, 90 }, { 97, 122 } } pedModels = { female = { white = { 12, 31, 38, 39, 40, 41, 53, 54, 55, 56, 64, 75, 77, 85, 86, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 140, 145, 150, 151, 152, 157, 172, 178, 192, 193, 194, 196, 197, 198, 199, 201, 205, 211, 214, 216, 224, 225, 226, 231, 232...
keyChars = { { 48, 57 }, { 65, 90 }, { 97, 122 } } pedModels = { female = { white = { 12, 31, 38, 39, 40, 41, 53, 54, 55, 56, 64, 75, 77, 85, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 140, 145, 150, 151, 152, 157, 172, 178, 192, 193, 194, 196, 197, 198, 199, 201, 205, 211, 214, 216, 224, 225, 226, 231, 232, 23...
common: fixed skin table and fetcher
common: fixed skin table and fetcher
Lua
mit
smile-tmb/lua-mta-fairplay-roleplay
a706b2cc9c9f3e002e7bd56b75fba03a6b17251e
extension/script/backend/worker/breakpoint.lua
extension/script/backend/worker/breakpoint.lua
local rdebug = require 'remotedebug.visitor' local fs = require 'backend.worker.filesystem' local source = require 'backend.worker.source' local evaluate = require 'backend.worker.evaluate' local ev = require 'backend.event' local hookmgr = require 'remotedebug.hookmgr' local parser = require 'backend.worker.parser' l...
local rdebug = require 'remotedebug.visitor' local fs = require 'backend.worker.filesystem' local source = require 'backend.worker.source' local evaluate = require 'backend.worker.evaluate' local ev = require 'backend.event' local hookmgr = require 'remotedebug.hookmgr' local parser = require 'backend.worker.parser' l...
Fixes #100
Fixes #100
Lua
mit
actboy168/vscode-lua-debug,actboy168/vscode-lua-debug,actboy168/vscode-lua-debug
4ae43aee2c084e31aa1134a2c92d20f7681fdfcc
frontend/device/cervantes/device.lua
frontend/device/cervantes/device.lua
local Generic = require("device/generic/device") local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function getProductId() local ntxinfo_pcb = io.popen("/usr/bin/ntxinfo /dev/mmcblk0 | grep pcb | cut -d ':' -f2", "r") if not ntxinfo_pcb then retu...
local Generic = require("device/generic/device") local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end local function no() return false end local function getProductId() local ntxinfo_pcb = io.popen("/usr/bin/ntxinfo /dev/mmcblk0 | grep pcb | cut -d ':' -f2", ...
[fix, cervantes] Old Cervantes devices should return false for hasNaturalLights (#4320)
[fix, cervantes] Old Cervantes devices should return false for hasNaturalLights (#4320)
Lua
agpl-3.0
poire-z/koreader,Markismus/koreader,koreader/koreader,NiLuJe/koreader,mihailim/koreader,koreader/koreader,pazos/koreader,Hzj-jie/koreader,NiLuJe/koreader,Frenzie/koreader,Frenzie/koreader,mwoz123/koreader,poire-z/koreader,houqp/koreader
e97dbe130e9d62617381aa6785d6a4c72f99a1a8
xmake.lua
xmake.lua
-- lcui.css set_project("lcui.css") -- xmake minver set_xmakever("2.1.6") -- the debug mode if is_mode("debug") then -- enable the debug symbols set_symbols("debug") -- disable optimization set_optimize("none") end -- the release mode if is_mode("release") then -- enable fastest optimizat...
-- lcui.css set_project("lcui.css") -- xmake minver set_xmakever("2.1.6") -- the debug mode if is_mode("debug") then -- enable the debug symbols set_symbols("debug") -- disable optimization set_optimize("none") end -- the release mode if is_mode("release") then -- enable fastest optimizat...
fix link errors for msvc
fix link errors for msvc
Lua
mit
lc-ui/lcui.css,lc-ui/lcui.css,lc-ui/lcui.css
492d01cc097f117235d1532f744a532baed68d70
build/scripts/common_examples.lua
build/scripts/common_examples.lua
-- Configuration gnrale configurations { -- "DebugStatic", -- "ReleaseStatic", "DebugDLL", "ReleaseDLL" } language "C++" location("../examples/build/" .. _ACTION) debugdir "../examples/bin" includedirs "../include" libdirs "../lib" if (_OPTIONS["x64"]) then libdirs "../extlibs/lib/x64" end libdirs "../extlibs...
-- Configuration gnrale configurations { -- "DebugStatic", -- "ReleaseStatic", "DebugDLL", "ReleaseDLL" } language "C++" location("../examples/build/" .. _ACTION) debugdir "../examples/bin" includedirs { "../include", "../extlibs/lib/include" } libdirs "../lib" if (_OPTIONS["x64"]) then libdirs "../extlibs/lib...
Fixed HardwareInfo OpenGL include
Fixed HardwareInfo OpenGL include Former-commit-id: d45ca9ac45a883a5378d527ef3ffe6594dcd02f1
Lua
mit
DigitalPulseSoftware/NazaraEngine
63cedeb44dc66861f0e939c1da5adee92cc539eb
core/configmanager.lua
core/configmanager.lua
local _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io = setmetatable, loadfile, pcall, rawget, rawset, io; module "configmanager" local parsers = {}; local config = { ["*"] = { core = {} } }; local global_config = config["*"]; -- When host not found, use global setmetatable(config, { __index =...
local _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io = setmetatable, loadfile, pcall, rawget, rawset, io; module "configmanager" local parsers = {}; local config = { ["*"] = { core = {} } }; local global_config = config["*"]; -- When host not found, use global setmetatable(config, { __index ...
Fix for configmanager when config file can't be found
Fix for configmanager when config file can't be found
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
a10f158d7a047aa4b71fa95417cc0a415f53f3ff
core/configmanager.lua
core/configmanager.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 _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type, pairs, tabl...
-- 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 _G = _G; local setmetatable, loadfile, pcall, rawget, rawset, io, error, dofile, type, pairs, tabl...
configmanager: Change parser API again to pass a config table to insert settings to. Fixes Include(). (Thanks Zash/answerman)
configmanager: Change parser API again to pass a config table to insert settings to. Fixes Include(). (Thanks Zash/answerman)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2eade79021742a658b43f071913e1280b7f42937
tests/test-require.lua
tests/test-require.lua
require("helper") _G.num_loaded = 0 local m1 = require("module1") local m1_m2 = require("module1/module2") local m2_m2 = require("module2/module2") local rm1 = require("./modules/module1") local rm1_m2 = require("./modules/module1/module2") local rm2_m2 = require("./modules/module2/module2") p(m1, m1_m2, m2_m2) p(rm1...
require("helper") _G.num_loaded = 0 local m1 = require("module1") local m1_m2 = require("module1/module2") local m2_m2 = require("module2/module2") local rm1 = require("./modules/module1") local rm1_m2 = require("./modules/module1/module2") local rm2_m2 = require("./modules/module2/module2") p(m1, m1_m2, m2_m2) p(rm1...
Fix typo in test
Fix typo in test
Lua
apache-2.0
sousoux/luvit,boundary/luvit,sousoux/luvit,rjeli/luvit,bsn069/luvit,boundary/luvit,luvit/luvit,AndrewTsao/luvit,AndrewTsao/luvit,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,zhaozg/luvit,AndrewTsao/luvit,sousoux/luvit,boundary/luvit,kaustav...
28b72efd8f1efcd3f44271cc56e23f022410382c
Hydra/API/hydra_ipc.lua
Hydra/API/hydra_ipc.lua
--- === hydra.ipc === --- --- Interface with Hydra from the command line. local function rawhandler(str) local fn, err = load(str) if fn then return fn() else return err end end --- hydra.ipc.handler(str) -> value --- The default handler for IPC, called by hydra-cli. Default implementation evals the string and re...
--- === hydra.ipc === --- --- Interface with Hydra from the command line. local function rawhandler(str) local fn, err = load("return " .. str) if not fn then fn, err = load(str) end if fn then return fn() else return err end end --- hydra.ipc.handler(str) -> value --- The default handler for IPC, called by hyd...
Make hydra-cli first try the command with 'return ' prefixed; part of #273.
Make hydra-cli first try the command with 'return ' prefixed; part of #273.
Lua
mit
chrisjbray/hammerspoon,bradparks/hammerspoon,peterhajas/hammerspoon,joehanchoi/hammerspoon,knu/hammerspoon,knl/hammerspoon,junkblocker/hammerspoon,knu/hammerspoon,CommandPost/CommandPost-App,bradparks/hammerspoon,cmsj/hammerspoon,zzamboni/hammerspoon,TimVonsee/hammerspoon,heptal/hammerspoon,cmsj/hammerspoon,joehanchoi/...
7777d34109601a47299a35ac827ae1033bf6cfb6
scripts/src/embed.lua
scripts/src/embed.lua
require "lmkbuild" local add_files = lmkbuild.add_files local error = error local file_newer = lmkbuild.file_newer local get_var = lmkbuild.get_var local io = io local ipairs = ipairs local is_valid = lmkbuild.is_valid local print = print local resolve = lmkbuild.resolve local rm = lmkbuild.rm local set = lmk.set_loca...
require "lmkbuild" local add_files = lmkbuild.add_files local error = error local file_newer = lmkbuild.file_newer local get_var = lmkbuild.get_var local io = io local ipairs = ipairs local is_valid = lmkbuild.is_valid local print = print local resolve = lmkbuild.resolve local rm = lmkbuild.rm local set = lmk.set_loca...
Bugfix: embedding would incorrectly generate file that were not exported
Bugfix: embedding would incorrectly generate file that were not exported
Lua
mit
shillcock/lmk,dmzgroup/lmk
5761651f0c41c8e1a13c207c9876ef764d3267b9
monster/mon_27_wasps.lua
monster/mon_27_wasps.lua
require("monster.base.drop") require("monster.base.lookat") require("monster.base.quests") require("base.messages"); module("monster.mon_27_wasps", package.seeall) function ini(Monster) init=true; monster.base.quests.iniQuests(); killer={}; --A list that keeps track of who attacked the monster last --Random Message...
require("monster.base.drop") require("monster.base.lookat") require("monster.base.quests") require("base.messages"); module("monster.mon_27_wasps", package.seeall) function ini(Monster) init=true; monster.base.quests.iniQuests(); killer={}; --A list that keeps track of who attacked the monster last --Random Message...
fix infinite loop (fixed in server)
fix infinite loop (fixed in server)
Lua
agpl-3.0
KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content
712c3f1031b5bafce5a30211bff05e3924da3a0c
src/nodish/net/socket.lua
src/nodish/net/socket.lua
local S = require'syscall' local emitter = require'nodish.emitter' local ev = require'ev' -- TODO: employ ljsyscall local isip = function(ip) local addrinfo,err = socket.dns.getaddrinfo(ip) if err then return false end return true end -- TODO: employ ljsyscall local isipv6 = function(ip) local addrinfo,...
local S = require'syscall' local emitter = require'nodish.emitter' local ev = require'ev' -- TODO: employ ljsyscall local isip = function(ip) local addrinfo,err = socket.dns.getaddrinfo(ip) if err then return false end return true end -- TODO: employ ljsyscall local isipv6 = function(ip) local addrinfo,...
fix read loop
fix read loop
Lua
mit
lipp/nodish
e38e189b35cad922dea032d7faaa456858329edc
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua
modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Manuel Munz <freifunk at somakoma de> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() local profiles = "/etc/config/profile_*" m = ...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Manuel Munz <freifunk at somakoma de> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() local profiles = "/etc/config/profile_*" m = ...
luci-mod-freifunk: fix the list of community profiles
luci-mod-freifunk: fix the list of community profiles Signed-off-by: pmelange <076416b816591f16f62a42ff0e88011b56472920@gmail.com>
Lua
apache-2.0
hnyman/luci,rogerpueyo/luci,artynet/luci,hnyman/luci,rogerpueyo/luci,Noltari/luci,tobiaswaldvogel/luci,openwrt-es/openwrt-luci,Noltari/luci,rogerpueyo/luci,openwrt/luci,rogerpueyo/luci,lbthomsen/openwrt-luci,Noltari/luci,nmav/luci,openwrt/luci,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,nmav/luci,nmav/luci,openwrt-e...
2f83c35322a342a064cad6a96080bd07992ac0a3
shared/entitymanager.lua
shared/entitymanager.lua
local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local Building = require "shared.building" local Unit = require "shared.unit" local EntityManager = Class "EntityManager" function EntityManager:initialize(logicCore) self.logicCore = logicCore self.nextId = 1 self.e...
local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local Building = require "shared.building" local Unit = require "shared.unit" local EntityManager = Class "EntityManager" function EntityManager:initialize(logicCore) self.logicCore = logicCore self.nextId = 1 self.e...
fixed entity removing from drawlayers
fixed entity removing from drawlayers
Lua
mit
ExcelF/project-navel
8ce816de7f316c443186e6b72204a343f2938744
test/testmongodb.lua
test/testmongodb.lua
local skynet = require "skynet" local mongo = require "skynet.db.mongo" local bson = require "bson" local host, db_name = ... function test_insert_without_index() local db = mongo.client({host = host}) db[db_name].testdb:dropIndex("*") db[db_name].testdb:drop() local ret = db[db_name].testdb:safe_insert({test_k...
local skynet = require "skynet" local mongo = require "skynet.db.mongo" local bson = require "bson" local host, port, db_name, username, password = ... local function _create_client() return mongo.client( { host = host, port = port, username = username, password = password, authdb = db_name, } ) end f...
fix mongodb testcase
fix mongodb testcase
Lua
mit
sundream/skynet,hongling0/skynet,xjdrew/skynet,great90/skynet,korialuo/skynet,cloudwu/skynet,zhangshiqian1214/skynet,sundream/skynet,JiessieDawn/skynet,icetoggle/skynet,Ding8222/skynet,zhouxiaoxiaoxujian/skynet,zhouxiaoxiaoxujian/skynet,JiessieDawn/skynet,zhangshiqian1214/skynet,wangyi0226/skynet,bttscut/skynet,bttscut...
c90f9558870e038a44fad024060110039096a515
test/test_proxy.lua
test/test_proxy.lua
local function zversion(zmq) local version = zmq.version() return string.format("%d.%d.%d", version[1], version[2], version[3]) end local function iszvereq(zmq, mi, ma, bu) local version = zmq.version() return (mi == version[1]) and (ma == version[2]) and (bu == version[3]) end local HAS_RUNNER = not not luni...
local function zversion(zmq) local version = zmq.version() return string.format("%d.%d.%d", version[1], version[2], version[3]) end local function iszvereq(zmq, mi, ma, bu) local version = zmq.version() return (mi == version[1]) and (ma == version[2]) and (bu == version[3]) end local HAS_RUNNER = not not luni...
Fix. test_proxy work without `ctx:shutdown` method.
Fix. test_proxy work without `ctx:shutdown` method.
Lua
mit
zeromq/lzmq,zeromq/lzmq,zeromq/lzmq,moteus/lzmq,LuaDist/lzmq-ffi,LuaDist/lzmq,bsn069/lzmq,LuaDist/lzmq,bsn069/lzmq,moteus/lzmq,LuaDist/lzmq-ffi,moteus/lzmq
7e3c29b3a3241746cdb80698334d731d5d60c909
src_trunk/resources/realism-system/c_headbob.lua
src_trunk/resources/realism-system/c_headbob.lua
function bobHead() local logged = getElementData(getLocalPlayer(), "loggedin") if (logged==1) then for key, value in ipairs(getElementsByType("player")) do local rot = getPedCameraRotation(value) local x, y, z = getElementPosition(value) local vx = x + math.sin(math.rad(rot)) * 10 local vy = y...
function bobHead() local logged = getElementData(getLocalPlayer(), "loggedin") if (logged==1) then for key, value in ipairs(getElementsByType("player")) do if value == getLocalPlayer() then local scrWidth, scrHeight = guiGetScreenSize() local sx = scrWidth/2 ...
fixed 246 and made the local player headbob work like before
fixed 246 and made the local player headbob work like before git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@72 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
12eae1c93e73369950802e750ca97f2c3d80e51a
test/testwebsocket.lua
test/testwebsocket.lua
local skynet = require "skynet" local httpd = require "http.httpd" local websocket = require "websocket" local socket = require "skynet.socket" local sockethelper = require "http.sockethelper" local handler = {} function handler.on_open(ws) skynet.error(string.format("Client connected: %s", ws.addr)) ws:write...
local skynet = require "skynet" local httpd = require "http.httpd" local websocket = require "websocket" local socket = require "skynet.socket" local sockethelper = require "http.sockethelper" local handler = {} function handler.on_open(ws) skynet.error(string.format("Client connected: %s", ws.addr)) ws:write...
fix test/testwebsocket.lua
fix test/testwebsocket.lua
Lua
mit
korialuo/skynet,korialuo/skynet,korialuo/skynet
31e4e02ee8b3108f0af68618d487b58e45198656
lua/entities/gmod_wire_cam/init.lua
lua/entities/gmod_wire_cam/init.lua
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Camera" function ENT:Initialize() self.phys = self:GetPhysicsObject() if not self.phys:IsValid() then self.phys = self end self.IdealPos = self:GetPos() self.IdealAng = self:GetAngles() self.Ide...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "Camera" function ENT:Initialize() self.phys = self:GetPhysicsObject() if not self.phys:IsValid() then self.phys = self end self.IdealPos = self:GetPos() self.IdealAng = self:GetAngles() self.Ide...
Fixes #90 (sometimes table[3]s were passed in instead of vectors)
Fixes #90 (sometimes table[3]s were passed in instead of vectors)
Lua
apache-2.0
Grocel/wire,wiremod/wire,thegrb93/wire,garrysmodlua/wire,mitterdoo/wire,NezzKryptic/Wire,dvdvideo1234/wire,bigdogmat/wire,mms92/wire,rafradek/wire,CaptainPRICE/wire,sammyt291/wire,notcake/wire,immibis/wiremod,Python1320/wire,plinkopenguin/wiremod
490b138f494d2472305f6c932c7886912ed02edb
tests/httpredirect.lua
tests/httpredirect.lua
-- test redirecting http <-> https combinations local copas = require("copas") local http = require("copas.http") local ltn12 = require("ltn12") local dump_all_headers = false local redirect local function doreq(url) local reqt = { url = url, redirect = redirect, --> allows https-> http redirect ...
-- test redirecting http <-> https combinations local copas = require("copas") local http = require("copas.http") local ltn12 = require("ltn12") local dump_all_headers = false local redirect local function doreq(url) local reqt = { url = url, redirect = redirect, --> allows https-> http redirect ...
Fix httpredirect test to os.exit(1) on fail
Fix httpredirect test to os.exit(1) on fail
Lua
mit
keplerproject/copas
694ad08f9b78a50b34994b2240bd85df7a790c58
plugins/mod_saslauth.lua
plugins/mod_saslauth.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 st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
-- 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 st = require "util.stanza"; local sm_bind_resource = require "core.sessionmanager".bind_resource; ...
mod_saslauth: Fix coding style and layout, and use of arg[] for vararg
mod_saslauth: Fix coding style and layout, and use of arg[] for vararg
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5e16070ed6d9fed34ecb5f7a59ee5072f77f9a10
lua/lush_theme/jellybeans.lua
lua/lush_theme/jellybeans.lua
local lush = require('lush') local hsl = lush.hsl local jellybeans = require('lush_theme.jellybeans-nvim') local nice_red = "#ff5656" -- A nicer red, also from https://git.io/Jfs2T local mantis = "#70b950" -- From Jellybeans local koromiko = "#ffb964" -- From Jellybeans local spec = lush.extends({jellybeans}).with(f...
local lush = require('lush') local hsl = lush.hsl local jellybeans = require('lush_theme.jellybeans-nvim') local nice_red = "#ff5656" -- A nicer red, also from https://git.io/Jfs2T local mantis = "#70b950" -- From Jellybeans local koromiko = "#ffb964" -- From Jellybeans local wewak = "#f0a0c0" local morning_glory = "...
fix: update many more colors for new treesitter syntax
fix: update many more colors for new treesitter syntax
Lua
mit
mutewinter/dot_vim,mutewinter/dot_vim
8a8e7c4e7c02157b23039670da4535eefb98ffa9
modules/admin-full/luasrc/model/cbi/admin_network/network.lua
modules/admin-full/luasrc/model/cbi/admin_network/network.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...
Add support for changing ULA prefix
Add support for changing ULA prefix git-svn-id: b12fe9853c2c9793030bd743626f1e993aa2455c@9849 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci,freifunk-gluon/luci
0bc87fe20e82fb986ab68a0c28c3d6c43ad3ea9b
xmake/modules/devel/debugger/run.lua
xmake/modules/devel/debugger/run.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
fix load program with args for lldb
fix load program with args for lldb
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
fb7fdc5be200406aa30106401b71cb88129dbe40
.config/nvim/lua/config/telescope.lua
.config/nvim/lua/config/telescope.lua
local status_ok, p = pcall(require, "telescope") if not status_ok then return end local actions = require("telescope.actions") p.setup({ defaults = { sorting_strategy = "ascending", vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", ...
local status_ok, p = pcall(require, "telescope") if not status_ok then return end local actions = require("telescope.actions") p.setup({ defaults = { sorting_strategy = "ascending", vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", ...
[nvim] Fix telescope config
[nvim] Fix telescope config
Lua
mit
masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles
7dc5ae985676dbf6a71ef29836e22dc079429917
lua/entities/gmod_wire_expression2/core/console.lua
lua/entities/gmod_wire_expression2/core/console.lua
/******************************************************************************\ Console support \******************************************************************************/ E2Lib.RegisterExtension("console", true, "Lets E2 chips run concommands and retrieve convars") local function tokenizeAndGetCommand(str) ...
/******************************************************************************\ Console support \******************************************************************************/ E2Lib.RegisterExtension("console", true, "Lets E2 chips run concommands and retrieve convars") local function tokenizeAndGetCommand(str) ...
Fixed escape mechanism
Fixed escape mechanism
Lua
apache-2.0
wiremod/wire,Grocel/wire,dvdvideo1234/wire,garrysmodlua/wire,sammyt291/wire,NezzKryptic/Wire
fb85680a6776989a2b1ea5bcb612efaaf39db29c
test_scripts/Polices/build_options/ATF_PTU_Trigger_IGN_cycles.lua
test_scripts/Polices/build_options/ATF_PTU_Trigger_IGN_cycles.lua
-- Requirement summary: -- [PTU] Trigger: ignition cycles -- -- Description: -- When the amount of ignition cycles notified by HMI via BasicCommunication.OnIgnitionCycleOver gets equal to the value of -- "exchange_after_x_ignition_cycles" field ("module_config" section) of policies database, SDL must trigger a PTU sequ...
-- Requirement summary: -- [PTU] Trigger: ignition cycles -- -- Description: -- When the amount of ignition cycles notified by HMI via BasicCommunication.OnIgnitionCycleOver gets equal to the value of -- "exchange_after_x_ignition_cycles" field ("module_config" section) of policies database, SDL must trigger a PTU sequ...
Fix issues
Fix issues
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
cdb39743e24d2fef994da492c40fb523deb056fa
luasrc/mch/response.lua
luasrc/mch/response.lua
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
#!/usr/bin/env lua -- -*- lua -*- -- Copyright 2012 Appwill Inc. -- Author : KDr2 -- -- -- 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 -...
fix multi set-cookie bug
fix multi set-cookie bug
Lua
apache-2.0
appwilldev/moochine,lilien1010/moochine,appwilldev/moochine,lilien1010/moochine,lilien1010/moochine
122fe9a9e243ca99e021f419ed5efcd7b9510570
plugins/mod_xmlrpc.lua
plugins/mod_xmlrpc.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. -- module.host = "*" -- Global module local httpserver = require "net.httpserver"; local st = require "uti...
-- 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. -- module.host = "*" -- Global module local httpserver = require "net.httpserver"; local st = require "uti...
mod_xmlrpc: Correct stripping of filename/line number prefix in RPC method error results
mod_xmlrpc: Correct stripping of filename/line number prefix in RPC method error results
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
1f570cb8e8cba545d0c80c27e6feede818786e0c
net/xmppclient_listener.lua
net/xmppclient_listener.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 logger = require "logger"; local log = logger.init("xmppclient_listener"); local lxp = require "l...
-- 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 logger = require "logger"; local log = logger.init("xmppclient_listener"); local lxp = require "l...
net.xmppclient_listener: Fix to correctly handle stream errors from clients
net.xmppclient_listener: Fix to correctly handle stream errors from clients
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
d389abf769144ad55c0fc3259400d15df4c5896f
nvim/lua/plugin/lsp.lua
nvim/lua/plugin/lsp.lua
local ok, lspconfig = pcall(require, "lspconfig") if not ok then return end local mason = require('mason') local mason_lspconfig = require('mason-lspconfig') local util = require('lspconfig.util') mason.setup() mason_lspconfig.setup { ensure_installed = { 'sumneko_lua', }, } local function on_attach(_, bufn...
local ok, lspconfig = pcall(require, "lspconfig") if not ok then return end local mason = require('mason') local mason_lspconfig = require('mason-lspconfig') local util = require('lspconfig.util') mason.setup() mason_lspconfig.setup { ensure_installed = { 'sumneko_lua', }, } local function on_attach(_, bufn...
Use lspconfig server getter instead of handler
Use lspconfig server getter instead of handler The handler seems to have some bug that complains when I install a server that isn't hardcoded.
Lua
mit
MrPickles/dotfiles
71f6cdef3a0b1975451c784a6cd5bac505d934bb
App/NevermoreEngine.lua
App/NevermoreEngine.lua
--- Nevermore module loader. -- Used to simply resource loading and networking so a more unified server / client codebased can be used -- @module Nevermore local DEBUG_MODE = false -- Set to true to help identify what libraries have circular dependencies local RunService = game:GetService("RunService") local Replicat...
--- Nevermore module loader. -- Used to simply resource loading and networking so a more unified server / client codebased can be used -- @module Nevermore local DEBUG_MODE = false -- Set to true to help identify what libraries have circular dependencies local RunService = game:GetService("RunService") local Replicat...
Fix formatting issues with NevermoreEngine
Fix formatting issues with NevermoreEngine
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
a41d3db1455677741d04b298cb4f2b4ece5f629a
core/sessionmanager.lua
core/sessionmanager.lua
local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print= ipairs, pairs, print; local collectgarbage = collectgarbage; local m_random = import("math", "random"); local format = import("string", "format"); local hosts = hosts; local sessions = sessions; local modulemanager = require "core.modulemanag...
local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print= ipairs, pairs, print; local collectgarbage = collectgarbage; local m_random = import("math", "random"); local format = import("string", "format"); local hosts = hosts; local sessions = sessions; local modulemanager = require "core.modulemanag...
Fix setting resource before we even know what it is
Fix setting resource before we even know what it is
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
a3a72ec955e2666e17f97b2063513c1e177c412b
Modules/Server/DataStore/DataStore.lua
Modules/Server/DataStore/DataStore.lua
--- Wraps the datastore object to provide async cached loading and saving -- @classmod DataStore local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local DataStoreStage = require("DataStoreStage") local DataStorePromises = require("DataStorePromises") local Promise = require("Prom...
--- Wraps the datastore object to provide async cached loading and saving -- @classmod DataStore local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local DataStoreStage = require("DataStoreStage") local DataStorePromises = require("DataStorePromises") local Promise = require("Prom...
Fix loader state returns
Fix loader state returns
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
9425cf4d6b7384c0bde9784de60a0526869c9f86
mod_storage_gdbm/mod_storage_gdbm.lua
mod_storage_gdbm/mod_storage_gdbm.lua
-- mod_storage_gdbm -- Copyright (C) 2014 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local uuid = require"util.uuid".generate; local seriali...
-- mod_storage_gdbm -- Copyright (C) 2014 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local uuid = require"util.uuid".generate; local seriali...
mod_storage_gdbm: Fix traceback if query is nil or no metadata exists
mod_storage_gdbm: Fix traceback if query is nil or no metadata exists
Lua
mit
1st8/prosody-modules,olax/prosody-modules,stephen322/prosody-modules,NSAKEY/prosody-modules,either1/prosody-modules,guilhem/prosody-modules,mmusial/prosody-modules,mmusial/prosody-modules,mardraze/prosody-modules,LanceJenkinZA/prosody-modules,BurmistrovJ/prosody-modules,Craige/prosody-modules,BurmistrovJ/prosody-module...
2f6180fdc635cae1b5b3c7435a8d87620f38bfca
testserver/base/keys.lua
testserver/base/keys.lua
require("base.doors") module("base.keys", package.seeall) --[[ LockDoor Lock a door. This function checks if that item is a closed on that can be locked. It does not check if the player has a fitting key. @param ItemStruct - the item that is the closed door that shall be locked @return boolean...
require("base.doors") module("base.keys", package.seeall) --[[ LockDoor Lock a door. This function checks if that item is a closed on that can be locked. It does not check if the player has a fitting key. @param ItemStruct - the item that is the closed door that shall be locked @return boolean...
fixed unlocking of doors
fixed unlocking of doors
Lua
agpl-3.0
KayMD/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content
31b95fcae2db7d151a0f486da7d7151bc2731a12
mod_storage_gdbm/mod_storage_gdbm.lua
mod_storage_gdbm/mod_storage_gdbm.lua
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
-- mod_storage_gdbm -- Copyright (C) 2014-2015 Kim Alvefur -- -- This file is MIT/X11 licensed. -- -- Depends on lgdbm: -- http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; local st = require"util.stanza"; local uuid = requ...
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
mod_storage_gdbm: Prefix archive item keys with username to prevent collisions
Lua
mit
either1/prosody-modules,mardraze/prosody-modules,NSAKEY/prosody-modules,drdownload/prosody-modules,joewalker/prosody-modules,guilhem/prosody-modules,jkprg/prosody-modules,Craige/prosody-modules,heysion/prosody-modules,stephen322/prosody-modules,cryptotoad/prosody-modules,guilhem/prosody-modules,joewalker/prosody-module...
89b40cb5bcbfd70f58e4a9ca7f4c69b09864f931
main.lua
main.lua
io.stdout:setvbuf("no") love.graphics.setDefaultFilter("nearest") api = require("api") --I STILL WANT IT AS A GLOBAL ! local utf8 = require("utf8") local debugrun = false function love.mousepressed(x,y,button,istouch) local x,y = _ScreenToLiko(x,y) if x < 0 or x > 192 or y < 0 or y > 128 then return end _auto_mpre...
io.stdout:setvbuf("no") love.graphics.setDefaultFilter("nearest") api = require("api") --I STILL WANT IT AS A GLOBAL ! local utf8 = require("utf8") local debugrun = false function love.mousepressed(x,y,button,istouch) local x,y = _ScreenToLiko(x,y) if x < 0 or x > 192 or y < 0 or y > 128 then return end _auto_mpre...
screen rendering fix
screen rendering fix
Lua
mit
RamiLego4Game/LIKO-12
0b57414998b5404f93209f5b06141911cc9af503
xmake/plugins/project/xmake.lua
xmake/plugins/project/xmake.lua
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
Fix typo
Fix typo
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
0886c8886240bbf7b6c760c2cab9310c7d49192e
spec/unit/statics_spec.lua
spec/unit/statics_spec.lua
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
local spec_helper = require "spec.spec_helpers" local constants = require "kong.constants" local stringy = require "stringy" local IO = require "kong.tools.io" local fs = require "luarocks.fs" describe("Static files", function() describe("Constants", function() it("version set in constants should match the one...
fixing test
fixing test
Lua
mit
ChristopherBiscardi/kong,puug/kong,sbuettner/kong,paritoshmmmec/kong,vmercierfr/kong,skynet/kong,bbalu/kong,ropik/kong,Skyscanner/kong,chourobin/kong,peterayeni/kong,AnsonSmith/kong,wakermahmud/kong
f0716ecd6e807799c8e16bea72d6ea98ec803d1b
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local json = require "luci.jsonc" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).temp...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local json = require "luci.jsonc" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).temp...
luci-mod-admin-full: add SNR tweak option to DSL
luci-mod-admin-full: add SNR tweak option to DSL Reported-by: Andrea Merello <7867dfae3c89ddcc122759b67d7b1e515ee6c0fd@gmail.com> [rebase onto master, fix indentation, commit subject, depend on adsl mode] Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
Lua
apache-2.0
openwrt/luci,artynet/luci,openwrt-es/openwrt-luci,wongsyrone/luci-1,Noltari/luci,tobiaswaldvogel/luci,artynet/luci,Noltari/luci,hnyman/luci,chris5560/openwrt-luci,chris5560/openwrt-luci,nmav/luci,chris5560/openwrt-luci,tobiaswaldvogel/luci,openwrt/luci,wongsyrone/luci-1,remakeelectric/luci,openwrt/luci,wongsyrone/luci-...
02e6bcfa10efadb9996d15bec9016c7443ea6fc3
lua/framework/mouse.lua
lua/framework/mouse.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local ffi = require( "ffi" ) local SDL = require( "sdl" ) module( "framework.mouse" ) function getPosition() local x = ffi.new( "int[1]"...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local ffi = require( "ffi" ) local SDL = require( "sdl" ) module( "framework.mouse" ) function getPosition() local x = ffi.new( "int[1]"...
Fix `setCursor()` not setting default cursor
Fix `setCursor()` not setting default cursor
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
86333dc5d889aa95556abba4ec92a81a6b521089
util/ip.lua
util/ip.lua
-- Prosody IM -- Copyright (C) 2008-2011 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ip_methods = {}; local ip_mt = { __index = function (ip, key) return (ip_methods[key])(ip); end, __tostring = function (ip) return ip.addr...
-- Prosody IM -- Copyright (C) 2008-2011 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ip_methods = {}; local ip_mt = { __index = function (ip, key) return (ip_methods[key])(ip); end, __tostring = function (ip) return ip.addr...
util.ip: Fix protocol detection of IPv6 addresses beginning with :
util.ip: Fix protocol detection of IPv6 addresses beginning with :
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
33ef7758382619324052da77717dbc1183136fa7
nvim/lua/config/cmp.lua
nvim/lua/config/cmp.lua
local M = {} function M.setup() local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match "%s" == nil end local luasnip = require "luasnip" local cmp = require "cmp" cmp...
local M = {} function M.setup() local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match "%s" == nil end local luasnip = require "luasnip" local cmp = require "cmp" cmp...
fix cmp config
fix cmp config
Lua
mit
jvansan/dotfiles
2dd12f5d051de407f65ea4e288a184985566be6f
lua/framework/graphics/framebuffer.lua
lua/framework/graphics/framebuffer.lua
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- require( "class" ) require( "framework.graphics.image" ) local GL = require( "opengl" ) local ffi = require( "ffi" ) local kazmath...
--=========== Copyright © 2018, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- require( "class" ) require( "framework.graphics.image" ) local GL = require( "opengl" ) local ffi = require( "ffi" ) local kazmath...
Fix `framebuffer:draw()` not restoring original matrix mode
Fix `framebuffer:draw()` not restoring original matrix mode
Lua
mit
Planimeter/lgameframework,Planimeter/lgameframework,Planimeter/lgameframework
1e58c78c72ac2b78707f9927c032fbdb31086f95
util.lua
util.lua
local computer = require("computer") local event = require("event") local function trunc(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult) / mult end local function needsCharging(threshold, distanceFromCharger) distanceFromCharger = distanceFromCharger or 0 local per...
local computer = require("computer") local event = require("event") local function trunc(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult) / mult end local function needsCharging(threshold, distanceFromCharger) distanceFromCharger = distanceFromCharger or 0 local per...
fixed
fixed
Lua
apache-2.0
InfinitiesLoop/oclib