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
91f51cf49222c3abd03069183b991aa207e016a0
fusion/core/lexer.lua
fusion/core/lexer.lua
local pretty = require("pl.pretty"); local re = require("re"); local defs = {} defs['true'] = function() return true end defs['false'] = function() return false end function defs:transform_binary_expression() table.insert(self, 1, 'expression') self.type = 'binary' return self end pattern = re.compile([[ statem...
local pretty = require("pl.pretty"); local re = require("re"); local defs = {} defs['true'] = function() return true end defs['false'] = function() return false end function defs:transform_binary_expression() table.insert(self, 1, 'expression') self.type = 'binary' return self end local pattern = re.compile([[ ...
lexer.lua: fix functions (again)
lexer.lua: fix functions (again)
Lua
mit
RyanSquared/FusionScript
d30c0868b2f78345994a524827ca7252f6137847
pud/level/MapType.lua
pud/level/MapType.lua
-- table of valid map types local mt = { __index = function(t, k) k = k or 'nil' error('invalid map type ['..k..']') end, __newindex = function(t, k, v) error('attempt to add maptype '..k..' at runtime') end, } local MapType = { empty = ' ', wall = '#', floor = '.', doorC = '+', doorO = '-', stairU = '...
-- table of valid map types local mt = { __index = function(t, k) k = k or 'nil' error('invalid map type ['..k..']') end, __newindex = function(t, k, v) error('attempt to add maptype '..k..' at runtime') end, } local MapType = { empty = ' ', wall = '#', floor = '.', doorC = '+', doorO = '-', stairU = '...
fix MapType glyph self-indexing
fix MapType glyph self-indexing
Lua
mit
scottcs/wyx
c9e5d89cfab4a380e289db4a7a9aa45bfe46cda3
src/loader.lua
src/loader.lua
local Gamestate = require 'vendor/gamestate' local Level = require 'level' local window = require 'window' local fonts = require 'fonts' local state = Gamestate.new() local home = require 'menu' local nextState = 'home' local nextPlayer = 'nil' function state:init() state.finished = false state.current = 1 ...
local Gamestate = require 'vendor/gamestate' local Level = require 'level' local window = require 'window' local fonts = require 'fonts' local state = Gamestate.new() local home = require 'menu' local nextState = 'home' local nextPlayer = nil function state:init() state.finished = false state.current = 1 ...
Revert of loading screen for Windows 7 64-bit Fix #252
Revert of loading screen for Windows 7 64-bit Fix #252
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
7e42557707463451979eb8711a470742a8535205
OS/DiskOS/Libraries/GUI/base.lua
OS/DiskOS/Libraries/GUI/base.lua
--Wrap a function, used to add functions alias names. local function wrap(f) return function(self,...) local args = {pcall(self[f],self,...)} if args[1] then local function a(ok,...) return ... end return a(unpack(args)) else return error(tostring(args[2])) end end en...
--Wrap a function, used to add functions alias names. local function wrap(f) return function(self,...) local args = {pcall(self[f],self,...)} if args[1] then local function a(ok,...) return ... end return a(unpack(args)) else return error(tostring(args[2])) end end en...
Bugfix
Bugfix
Lua
mit
RamiLego4Game/LIKO-12
0dfa2b2f989ce0c71456c6122ead4130bccb9840
AceLocale-3.0/AceLocale-3.0.lua
AceLocale-3.0/AceLocale-3.0.lua
local MAJOR,MINOR = "AceLocale-3.0", "$Revision: 1" local lib = LibStub:RegisterLibrary(MAJOR, MINOR) if not lib then return end lib.apps = lib.apps or {} local meta = { __newindex = function(self, key, value) -- assigning values: replace 'true' with key string if value==true then rawset(self, key, key) e...
local MAJOR,MINOR = "AceLocale-3.0", "$Revision: 1$" local lib = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end lib.apps = lib.apps or {} -- This __newindex is used for most locale tables local function __newindex(self,key,value) -- assigning values: replace 'true' with key string if value==true t...
Ace3 - ACE-24 (AceLocale) - Bugfixes - Rename :RegisterLocale to :NewLocale - Add a third "isDefault" argument -- allows default locales to be registered at any point, not just first (good for modules!) 100 lines in total now.
Ace3 - ACE-24 (AceLocale) - Bugfixes - Rename :RegisterLocale to :NewLocale - Add a third "isDefault" argument -- allows default locales to be registered at any point, not just first (good for modules!) 100 lines in total now. git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@129 5debad98-a965-4143-8383-f471b3509...
Lua
bsd-3-clause
sarahgerweck/Ace3
c26ab315b8fb838a2fa8337c4d3de0a274647709
rootfs/etc/nginx/lua/balancer/sticky.lua
rootfs/etc/nginx/lua/balancer/sticky.lua
local balancer_resty = require("balancer.resty") local ck = require("resty.cookie") local ngx_balancer = require("ngx.balancer") local split = require("util.split") local string_format = string.format local ngx_log = ngx.log local INFO = ngx.INFO local _M = balancer_resty:new() local DEFAULT_COOKIE_NAME = "route" fu...
local balancer_resty = require("balancer.resty") local ck = require("resty.cookie") local ngx_balancer = require("ngx.balancer") local split = require("util.split") local _M = balancer_resty:new() local DEFAULT_COOKIE_NAME = "route" function _M.cookie_name(self) return self.cookie_session_affinity.name or DEFAULT_C...
Fixed LUA lint findings.
Fixed LUA lint findings.
Lua
apache-2.0
kubernetes/ingress-nginx,kubernetes/ingress-nginx,canhnt/ingress,kubernetes/ingress-nginx,canhnt/ingress,caicloud/ingress,aledbf/ingress-nginx,kubernetes/ingress-nginx,canhnt/ingress,caicloud/ingress,aledbf/ingress-nginx,canhnt/ingress,aledbf/ingress-nginx,kubernetes/ingress-nginx,caicloud/ingress,aledbf/ingress-nginx,...
e738ebf8653deeb15a3914325acc9d7b86155df5
init.lua
init.lua
-- Copyright 2015 Boundary, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to i...
-- Copyright 2015 Boundary, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to i...
fix for error, its string in place of object for luvit
fix for error, its string in place of object for luvit
Lua
apache-2.0
boundary/boundary-plugin-mysql
bdf0fb917a3a364aba79ec8d892c43c597ef9b6c
src/ngx-oauth/either.lua
src/ngx-oauth/either.lua
--------- -- The Either monad. -- -- The Either type represents values with two possibilities: a value of type -- `Either a b` is either a Left, whose value is of type `a`, or a Right, whose -- value is of type `b`. The `Either` itself is not needed in this -- implementation, so you find only `Left` and `Right` here. -...
--------- -- The Either monad. -- -- The Either type represents values with two possibilities: a value of type -- `Either a b` is either a Left, whose value is of type `a`, or a Right, whose -- value is of type `b`. The `Either` itself is not needed in this -- implementation, so you find only `Left` and `Right` here. -...
Fix compatibility with Lua 5.1 and LuaJIT 2.0
Fix compatibility with Lua 5.1 and LuaJIT 2.0
Lua
mit
jirutka/ngx-oauth,jirutka/ngx-oauth
98af0c20af5aafe70f7777403f77200b1d7205a3
src/extensions/cp/ui/Button.lua
src/extensions/cp/ui/Button.lua
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
#1065 * Fixed some issues in Button
#1065 * Fixed some issues in Button
Lua
mit
fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost
73094b66802aa81da1606078e80248b2973880a5
monster/race_10_mummy/id_107_madness.lua
monster/race_10_mummy/id_107_madness.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
Fixing clean up for mummy of madness
Fixing clean up for mummy of madness
Lua
agpl-3.0
KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content
01e2e66e28b949474b4f4ff7d0bdb19176d763fb
src/assert.lua
src/assert.lua
local s = require 'say' local __assertion_meta = { __call = function(self, ...) local state = self.state local val = self.callback(state, ...) local data_type = type(val) if data_type == "boolean" then if val ~= state.mod then if state.mod then error(s(self.positive_message, ...
local s = require 'say' local errorlevel = function() -- find the first level, not defined in the same file as this -- code file to properly report the error local level = 1 local info = debug.getinfo(level) local thisfile = (info or {}).source while thisfile and thisfile == (info or {}).source do lev...
report errors at correct level to properly point to the error in the test file, not luassert. Because the modifiers can be nested, the levels are also not fixed at 2. So added dynamic detection of the proper level.
report errors at correct level to properly point to the error in the test file, not luassert. Because the modifiers can be nested, the levels are also not fixed at 2. So added dynamic detection of the proper level.
Lua
mit
mpeterv/luassert,o-lim/luassert,ZyX-I/luassert,tst2005/lua-luassert
730a2903962c465b7a293597656d68c780b995ac
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
46ba257d0a8dc0886cb4eca280dd09009ec4f418
test/tests/regex_cap.lua
test/tests/regex_cap.lua
local assertEq = test.assertEq local function log(x) test.log(tostring(x) .. "\n") end local vi_regex = require('regex.regex') local compile = vi_regex.compile local pat pat = compile('a(.*)b') assertEq(pat:match("axyzb"), {_start=1,_end=5, groups={{2,4}},}) assertEq(pat:match("axyzbb"), {_start=1,_end=6, groups={{2...
local assertEq = test.assertEq local function log(x) test.log(tostring(x) .. "\n") end local vi_regex = require('regex.regex') local compile = vi_regex.compile local pat pat = compile('a(.*)b') assertEq(pat:match("axyzb"), {_start=1,_end=5, groups={{2,4}},}) assertEq(pat:match("axyzbb"), {_start=1,_end=6, groups={{2...
Fix test, which is returning the correct results after all.
Fix test, which is returning the correct results after all.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi,erig0/textadept-vi
07c26efcbfbd8ea1093410fd932a85aefe0651bf
tests/3drender/main3.lua
tests/3drender/main3.lua
local r = require "render" require "sprite" require "keys" require "loader" function keys:filter(press, key) return key == "left" or key == "right" or key == "w" or key == "a" or key == "s" or key == "d" or key == "up" or key == "down" or key == "r" or key == "b" end global { hangle = 0, x = 0, y = 0, z = 0 } declar...
local r = require "render" require "sprite" require "keys" require "loader" function keys:filter(press, key) return key == "left" or key == "right" or key == "w" or key == "a" or key == "s" or key == "d" or key == "up" or key == "down" or key == "r" or key == "b" end global { hangle = 0, x = 0, y = 0, z = 0 } declar...
pos fix
pos fix
Lua
mit
gl00my/stead3
161ea16c21c45f5ca233ad70d615f7008cc650ef
2dmatch/train.lua
2dmatch/train.lua
require 'image' require 'cutorch' require 'cunn' require 'cudnn' require 'optim' -- Custom files require 'model' require 'sys' -- require 'qtwidget' -- for visualizing images dofile('util.lua') opt_string = [[ -h,--help print help -s,--save (default "logs") ...
require 'image' require 'cutorch' require 'cunn' require 'cudnn' require 'optim' -- Custom files require 'model' require 'sys' -- require 'qtwidget' -- for visualizing images dofile('util.lua') opt_string = [[ -h,--help print help -s,--save (default "logs") ...
actual indexing bug fix
actual indexing bug fix
Lua
mit
niessner/Matterport,niessner/Matterport,niessner/Matterport
30c823889015f03f490cdfdbd3022078b74d89d1
himan-scripts/nwcsaf-cumulus.lua
himan-scripts/nwcsaf-cumulus.lua
--[[ // Effective cloudinessin fiksausta // Leila&Anniina versio 09/06/22 // Korjaa NWCSAF effective cloudiness pilvisyyttä huomioiden erityisesti: // 2: pienet selkeät alueet ns. "kohinaa" tms. // --> tutkitaan onko ympäröivät hilapisteet pilvisiä ja lisätään pilveä jos näin on // 3: konvektion aiheuttamat pilvet on ...
--[[ // Effective cloudinessin fiksausta // Leila&Anniina versio 09/06/22 // Korjaa NWCSAF effective cloudiness pilvisyyttä huomioiden erityisesti: // 2: pienet selkeät alueet ns. "kohinaa" tms. // --> tutkitaan onko ympäröivät hilapisteet pilvisiä ja lisätään pilveä jos näin on // 3: konvektion aiheuttamat pilvet on ...
Effective cloudiness Cumulus fix is valid for summer months
Effective cloudiness Cumulus fix is valid for summer months
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
0fdf2aefea2b0e337abe78bbd9c8a4e2efe44146
src/Author.lua
src/Author.lua
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
Fix #5 - Improve author movement by applying just a spring force
Fix #5 - Improve author movement by applying just a spring force Rewrote most of the movement related code in the author class. Similar to the nodes in the graph it now uses a spring force to attract authors towards nodes. Authors aren't moving away too far from the graph anymore (except for in some rare cases). The m...
Lua
mit
rm-code/logivi
ee478bd93aba5299e1f9b0f52be06dc9626539c2
src/daemon.lua
src/daemon.lua
local c = require "systemd.daemon.core" -- Wrap notify functions with versions that take tables -- this lets you write `notifyt { READY=1, STATE="awesome!" }` local function pack_state(t) local state = { } for k, v in pairs(t) do state[#state+1] = k.."="..v end return table.concat(state, "\n") end local function...
local c = require "systemd.daemon.core" -- Wrap notify functions with versions that take tables -- this lets you write `notifyt { READY=1, STATE="awesome!" }` local function pack_state(t) local state = { } for k, v in pairs(t) do state[#state+1] = k.."="..v end return table.concat(state, "\n") end function c.not...
src/daemon.lua: Fix pid_notifyt to pass the pid
src/daemon.lua: Fix pid_notifyt to pass the pid
Lua
mit
daurnimator/lua-systemd
6b4978d0d3bf6df241ea71363ac0771f35133c71
kong/db/schema/plugin_loader.lua
kong/db/schema/plugin_loader.lua
local MetaSchema = require "kong.db.schema.metaschema" local socket_url = require "socket.url" local typedefs = require "kong.db.schema.typedefs" local Entity = require "kong.db.schema.entity" local utils = require "kong.tools.utils" local plugin_servers = require "kong.runloop.plugin_servers" local plugin_loader = {...
local MetaSchema = require "kong.db.schema.metaschema" local socket_url = require "socket.url" local typedefs = require "kong.db.schema.typedefs" local Entity = require "kong.db.schema.entity" local utils = require "kong.tools.utils" local plugin_servers = require "kong.runloop.plugin_servers" local plugin_loader = {...
fix(db) old schema conversion with default value
fix(db) old schema conversion with default value ### Summary Depending on iteration order the `required` parameter may have been forcefully overwritten with a value of `true`, which may have turned the `required=false` to actually `true` with old schema conversion.
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
752deede2b3f6dfc79bf9f43df552adfeb8feee0
lua/String.lua
lua/String.lua
local squote = "'" local dquote = '"' local function chartopad(c) return string.format("\\%03d", string.byte(c)) end local pads = { z = "\\z", x = "\\x", ['0'] = '\\0', ['1'] = '\\1', ['2'] = '\\2', ['3'] = '\\3', ['4'] = '\\4', ['5'] = '\\5', ['6'] = '\\6', ['7'] = '\\7', ['8'] = '\\8', ['9...
-- workarounds for IDE bugs local squote = "'" local dquote = '"' local backslash = "\\" local function chartopad(c) return string.format("\\%03d", string.byte(c)) end local pads = { z = "\\z", x = "\\x", ['0'] = '\\0', ['1'] = '\\1', ['2'] = '\\2', ['3'] = '\\3', ['4'] = '\\4', ['5'] = '\\5', ['6...
Fix more stuff and better errors
Fix more stuff and better errors
Lua
mit
SoniEx2/Stuff,SoniEx2/Stuff
59cbb75e0522d7f194c9feedd51dd98fece44592
lua/wire/client/rendertarget_fix.lua
lua/wire/client/rendertarget_fix.lua
WireLib.RTFix = {} local RTFix = WireLib.RTFix --------------------------------------------------------------------- -- RTFix Lib --------------------------------------------------------------------- RTFix.List = {} function RTFix:Add( ClassName, NiceName, Function ) RTFix.List[ClassName] = { NiceName, Function } en...
WireLib.RTFix = {} local RTFix = WireLib.RTFix --------------------------------------------------------------------- -- RTFix Lib --------------------------------------------------------------------- RTFix.List = {} function RTFix:Add( ClassName, NiceName, Function ) RTFix.List[ClassName] = { NiceName, Function } en...
Added EGP to RT fix menu
Added EGP to RT fix menu
Lua
apache-2.0
notcake/wire,garrysmodlua/wire,mitterdoo/wire,sammyt291/wire,immibis/wiremod,CaptainPRICE/wire,NezzKryptic/Wire,dvdvideo1234/wire,mms92/wire,thegrb93/wire,bigdogmat/wire,plinkopenguin/wiremod,Python1320/wire,Grocel/wire,rafradek/wire,wiremod/wire
ead107000e83d0d0da706fb246f300c1ad9cfce7
base/repair.lua
base/repair.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
Hotfix for #11095
Hotfix for #11095
Lua
agpl-3.0
Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content
4172b1b61c64a5038ed008056dfc282f1f325d6a
examples/list-boots.lua
examples/list-boots.lua
#!/usr/bin/env lua --[[ This program acts like journalctl --list-boots ]] local sj = require "systemd.journal" local j = assert(sj.open()) local t = {} local n = 0 for boot_id in j:each_unique("_BOOT_ID") do local boot_info = { id = boot_id; } n = n + 1 t[n] = boot_info -- We need to find the first and last en...
#!/usr/bin/env lua --[[ This program acts like journalctl --list-boots ]] local sj = require "systemd.journal" local j = assert(sj.open()) local t = {} local n = 0 for boot_id in j:each_unique("_BOOT_ID") do local boot_info = { id = boot_id; } n = n + 1 t[n] = boot_info -- We need to find the first and last en...
examples/list-boots: Fix print width when there are lots of boots
examples/list-boots: Fix print width when there are lots of boots
Lua
mit
daurnimator/lua-systemd
3060982e87f684b98546c8d90e436cc835d69778
rapidshare.lua
rapidshare.lua
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.ge...
dofile("urlcode.lua") dofile("table_show.lua") local url_count = 0 local tries = 0 local downloaded = {} local addedtolist = {} read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end wget.callbacks.ge...
rapidshare.lua: fix and shorter sleep_time
rapidshare.lua: fix and shorter sleep_time
Lua
unlicense
ArchiveTeam/rapidshare-grab,ArchiveTeam/rapidshare-grab
9384ce90fe890429e2612ad83395357e72ba9a14
AceModuleCore-3.0/AceModuleCore-3.0.lua
AceModuleCore-3.0/AceModuleCore-3.0.lua
local MAJOR, MINOR = "AceModuleCore-3.0", 0 local AceModuleCore, oldversion = LibStub:NewLibrary( MAJOR, MINOR ) local AceAddon = LibStub:GetLibrary("AceAddon-3.0") if not AceAddon then error(MAJOR.." requires AceAddon-3.0") end if not AceModuleCore then return elseif not oldversion then AceModuleCore.embeded = ...
local MAJOR, MINOR = "AceModuleCore-3.0", 0 local AceModuleCore, oldversion = LibStub:NewLibrary( MAJOR, MINOR ) local AceAddon = LibStub:GetLibrary("AceAddon-3.0") if not AceAddon then error(MAJOR.." requires AceAddon-3.0") end if not AceModuleCore then return elseif not oldversion then AceModuleCore.embeded = ...
Ace3: AceModuleCore-3.0 - Fix upgrading of old embeds
Ace3: AceModuleCore-3.0 - Fix upgrading of old embeds git-svn-id: 00c2b8bc9b083c53e126de03a83516ee6a3b87d9@14 5debad98-a965-4143-8383-f471b3509dcf
Lua
bsd-3-clause
sarahgerweck/Ace3
df9e47491f515d940d5cb2e5e035c210b81c2a3a
share/luaplaylist/youtube.lua
share/luaplaylist/youtube.lua
--[[ $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distribut...
--[[ $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distribut...
Fix youtube lua (BASE_YT_URL had not been converted to new format)
Fix youtube lua (BASE_YT_URL had not been converted to new format)
Lua
lgpl-2.1
xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc,krichter722/vl...
bb64c8f932de3c5d64332c3fc1a9ac484995088a
config/nvim/lua/gb/file-explorer.lua
config/nvim/lua/gb/file-explorer.lua
local keymap = require("gb.utils").map vim.g.nvim_tree_ignore = {".git", "node_modules", ".cache", ".DS_Store"} --empty by default vim.g.nvim_tree_group_empty = 1 vim.g.nvim_tree_root_folder_modifier = ":~" --This is the default. See :help filename-modifiers for more options keymap("n", "<leader>n", ":NvimTreeToggle<C...
local keymap = require("gb.utils").map vim.g.nvim_tree_group_empty = 1 vim.g.nvim_tree_root_folder_modifier = ":~" --This is the default. See :help filename-modifiers for more options keymap("n", "<leader>n", ":NvimTreeToggle<CR>", {silent = true}) local tree_cb = require "nvim-tree.config".nvim_tree_callback require...
Fix nvim-tree
Fix nvim-tree
Lua
mit
gblock0/dotfiles
0068b627945ad6050ce70d898473ad3b17b7cb58
sslobby/gamemode/player_extended.lua
sslobby/gamemode/player_extended.lua
-------------------------------------------------- -- -------------------------------------------------- local slapSound = Sound("ambient/voices/citizen_punches2.wav") function PLAYER_META:Slap(target) local direction = (target:GetPos() -self:GetPos()):GetNormal() target:SetVelocity(direction *256) target:EmitSo...
-------------------------------------------------- -- -------------------------------------------------- local slapSound = Sound("ambient/voices/citizen_punches2.wav") function PLAYER_META:Slap(target) local direction = (target:GetPos() -self:GetPos()):GetNormal() target:SetVelocity(direction *256) target:EmitSo...
I think this should fix noslap
I think this should fix noslap
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
40969442e30e48a2dbe9cf0b5f87625f9c4a50c3
scripts/tundra/tools/msvc6.lua
scripts/tundra/tools/msvc6.lua
-- msvc6.lua - Visual Studio 6 module(..., package.seeall) local native = require "tundra.native" local os = require "os" function path_combine(path, path_to_append) if path == nil then return path_to_append end if path:find("\\$") then return path .. path_to_append end return path .. "\\" .. path_...
-- msvc6.lua - Visual Studio 6 module(..., package.seeall) local native = require "tundra.native" local os = require "os" function path_combine(path, path_to_append) if path == nil then return path_to_append end if path:find("\\$") then return path .. path_to_append end return path .. "\\" .. path_...
MSVC6: Fix PDB write errors.
MSVC6: Fix PDB write errors. Without extra care and temporary files each MSVC6 compiler process will attempt to open/write the same PDB, causing build errors when Tundra goes wide. So it seems better to just have it stuff the debug data in the object files and let the linker worry about producing a PDB. This change d...
Lua
mit
bmharper/tundra,deplinenoise/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra
c6b90e8406da14b5c748b4caa7c17de9588c8b14
src/logging.lua
src/logging.lua
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
------------------------------------------------------------------------------- -- includes a new tostring function that handles tables recursively -- -- @author Danilo Tuler (tuler@ideais.com.br) -- @author Andre Carregal (info@keplerproject.org) -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 20...
Thorough rewrite of tostring. Hopefully all fix, no breakage.
Thorough rewrite of tostring. Hopefully all fix, no breakage.
Lua
mit
mwchase/log4l
3e2ab58032b1fdeb2ffc1060f46583f1162df928
scen_edit/state/default_state.lua
scen_edit/state/default_state.lua
DefaultState = AbstractState:extends{} function DefaultState:init() SB.SetMouseCursor() self.__clickedObjectID = nil self.__clickedObjectBridge = nil end function DefaultState:MousePress(mx, my, button) self.__clickedObjectID = nil self.__clickedObjectBridge = nil if Spring.GetGameRulesParam(...
DefaultState = AbstractState:extends{} function DefaultState:init() SB.SetMouseCursor() self.__clickedObjectID = nil self.__clickedObjectBridge = nil end function DefaultState:MousePress(mx, my, button) self.__clickedObjectID = nil self.__clickedObjectBridge = nil if Spring.GetGameRulesParam(...
fix travis
fix travis
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
98cbf9edb71807ab3261cf5cd8e746d830eb2ee2
Quadtastic/common.lua
Quadtastic/common.lua
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local libquadtastic = require(current_folder.. ".libquadtastic") -- Utility functions that don't deserve their own module local common = {} function common.trim_whitespace(s) -- Trim leading whitespace s = string.gmatch(s, "%s*(%S[%s%S]*)")() --...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local libquadtastic = require(current_folder.. ".libquadtastic") -- Utility functions that don't deserve their own module local common = {} function common.trim_whitespace(s) -- Trim leading whitespace s = string.gmatch(s, "%s*(%S[%s%S]*)")() --...
Fix missing export for boolean types in common module
Fix missing export for boolean types in common module
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
3532b216ce74a93c769cbba08a65199b738a32b6
mock/component/InputListener.lua
mock/component/InputListener.lua
module 'mock' --[[ each InputScript will hold a listener to responding input sensor filter [ mouse, keyboard, touch, joystick ] ]] function installInputListener( self, option ) option = option or {} local inputDevice = option['device'] or mock.getDefaultInputDevice() local refuseMockUpInput = option['no_moc...
module 'mock' --[[ each InputScript will hold a listener to responding input sensor filter [ mouse, keyboard, touch, joystick ] ]] function installInputListener( self, option ) option = option or {} local inputDevice = option['device'] or mock.getDefaultInputDevice() local refuseMockUpInput = option['no_moc...
[fix]onJoyButtonEvent
[fix]onJoyButtonEvent
Lua
mit
tommo/mock
182a6bf469141c857a390e7661f77f038f2176f2
util/timer.lua
util/timer.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 ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local event...
-- 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 ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; local event...
util.timer: When using libevent hold onto the event handle to stop it being collected (and the timer stopping). Fixes BOSH ghosts, thanks Flo, niekie, waqas.
util.timer: When using libevent hold onto the event handle to stop it being collected (and the timer stopping). Fixes BOSH ghosts, thanks Flo, niekie, waqas.
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5248d443dcbb162f76c2b1de0d662d77a6ab1acc
service/launcher.lua
service/launcher.lua
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local launch_session = {} -- for command.QUERY,...
local skynet = require "skynet" local core = require "skynet.core" require "skynet.manager" -- import manager apis local string = string local services = {} local command = {} local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK) local launch_session = {} -- for command.QUERY,...
Fix typo: Causes an error when `resp` is false (#1260)
Fix typo: Causes an error when `resp` is false (#1260) Co-authored-by: zhouyan <6bc36f5ddf5d3999e0b9d2cbb0ed704263aa3f35@onemt.com.cn>
Lua
mit
sanikoyes/skynet,cloudwu/skynet,korialuo/skynet,xcjmine/skynet,icetoggle/skynet,xcjmine/skynet,cloudwu/skynet,hongling0/skynet,korialuo/skynet,xjdrew/skynet,xjdrew/skynet,hongling0/skynet,korialuo/skynet,icetoggle/skynet,JiessieDawn/skynet,xcjmine/skynet,wangyi0226/skynet,hongling0/skynet,pigparadise/skynet,sanikoyes/s...
7906bd06f31f95dd4874d1e01bc3177ab178e1a3
gateway/src/apicast/executor.lua
gateway/src/apicast/executor.lua
--- Executor module -- The executor has a policy chain and will simply forward the calls it -- receives to that policy chain. It also manages the 'context' that is passed -- when calling the policy chain methods. This 'context' contains information -- shared among policies. require('apicast.loader') -- to load code fr...
--- Executor module -- The executor has a policy chain and will simply forward the calls it -- receives to that policy chain. It also manages the 'context' that is passed -- when calling the policy chain methods. This 'context' contains information -- shared among policies. require('apicast.loader') -- to load code fr...
Executor: Add original request information.
Executor: Add original request information. To be able to retrieve original request information on the policies without adding/deleting headers. This change allows users to handle routing policy with the original information, full disclosure on issue #1084 Fix #1084 Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db...
Lua
mit
3scale/docker-gateway,3scale/docker-gateway
675c34e367c1279cc67f258b43f7dacaf59c38da
torch7/imagenet_winners/googlenet.lua
torch7/imagenet_winners/googlenet.lua
-- adapted from nagadomi's CIFAR attempt: https://github.com/nagadomi/kaggle-cifar10-torch7/blob/cuda-convnet2/inception_model.lua local function inception(depth_dim, input_size, config, lib) local SpatialConvolution = lib[1] local SpatialMaxPooling = lib[2] local ReLU = lib[3] local depth_concat = nn.Conc...
-- adapted from nagadomi's CIFAR attempt: https://github.com/nagadomi/kaggle-cifar10-torch7/blob/cuda-convnet2/inception_model.lua local function inception(depth_dim, input_size, config, lib) local SpatialConvolution = lib[1] local SpatialMaxPooling = lib[2] local ReLU = lib[3] local depth_concat = nn.Conc...
some more fixes for torch googlenet
some more fixes for torch googlenet
Lua
mit
soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks,soumith/convnet-benchmarks
855fdfee0932d98ac6453d19c94b689139d1355b
packages/lime-proto-anygw/src/anygw.lua
packages/lime-proto-anygw/src/anygw.lua
#!/usr/bin/lua local fs = require("nixio.fs") local network = require("lime.network") local libuci = require "uci" anygw = {} anygw.configured = false function anygw.anygw_mac() local anygw_mac = config.get("network", "anygw_mac") or "aa:aa:aa:%N1:%N2:aa" return utils.applyNetTemplate16(anygw_mac) end function a...
#!/usr/bin/lua local fs = require("nixio.fs") local network = require("lime.network") local libuci = require "uci" anygw = {} anygw.configured = false function anygw.configure(args) if anygw.configured then return end anygw.configured = true local ipv4, ipv6 = network.primary_address() local anygw_mac = config...
Fix undeclared default for: network.anygw_mac
Fix undeclared default for: network.anygw_mac
Lua
agpl-3.0
libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages
51c5a9882e3bde47f54fda363661c3c04acd13de
base/doors.lua
base/doors.lua
require("base.common") module("base.doors", package.seeall) OpenDoors = {}; ClosedDoors = {}; --[[ AddToDoorList This is a helper function to fill the door list. It is removed after the initialisation. @param integer - the ID of the opened door of a opened closed door pair @param integer - the ID of ...
require("base.common") module("base.doors", package.seeall) OpenDoors = {}; ClosedDoors = {}; --[[ AddToDoorList This is a helper function to fill the door list. It is removed after the initialisation. @param integer - the ID of the opened door of a opened closed door pair @param integer - the ID of ...
Bug #6922
Bug #6922
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content
56e004e096ce9fe1cca0ceb1f2808b47073f700c
xmake/modules/core/project/depend.lua
xmake/modules/core/project/depend.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 check depend mtime
fix check depend mtime
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
eee1a66f287c2264ec96972406891ce883522b1d
Hammerspoon/setup.lua
Hammerspoon/setup.lua
local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... os.exit = hs._exit local function runstring(s) local fn, err = load("return " .. s) if not fn then fn, err = load(s) end if not fn then return tostring(err) end local str = "" local results = table.pack(p...
local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... os.exit = hs._exit local function runstring(s) local fn, err = load("return " .. s) if not fn then fn, err = load(s) end if not fn then return tostring(err) end local str = "" local results = table.pack(p...
Fix up require paths to be more consistent, and collapsed into a single step. Also print out the resulting paths. Also tidy up wording in another startup message
Fix up require paths to be more consistent, and collapsed into a single step. Also print out the resulting paths. Also tidy up wording in another startup message
Lua
mit
wvierber/hammerspoon,lowne/hammerspoon,chrisjbray/hammerspoon,kkamdooong/hammerspoon,trishume/hammerspoon,nkgm/hammerspoon,zzamboni/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,ocurr/hammerspoon,trishume/hammerspoon,knl/hammerspoon,heptal/hammerspoon,Hammerspoon/hammerspoon,hypebeast/hammerspoon,peterhajas/hamme...
2e981bc10fd6f38a89e7e5f944817e3828738c18
class_optimization.lua
class_optimization.lua
require 'torch' require 'nn' require 'optim' require 'model' require 'image' require 'cutorch' require 'cunn' require('gnuplot') require('lfs') require('data') data = {} dtype = 'torch.CudaTensor' -- specify directories model_root = 'models' data_root = 'data/deepbind/' viz_dir = 'visualization_results/' -- *********...
require 'torch' require 'nn' require 'optim' require 'model' require 'image' require 'cutorch' require 'cunn' require('gnuplot') require('lfs') require('data') data = {} dtype = 'torch.CudaTensor' -- specify directories model_root = 'models/' data_root = 'data/deepbind/' viz_dir = 'visualization_results/' -- ********...
fix class_optimization bug
fix class_optimization bug
Lua
mit
QData/DeepMotif
fa3f03a296c8bcf927140579ff1d083cabe64af3
lib/sh.lua
lib/sh.lua
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
--[=============================================================================[ The MIT License (MIT) Copyright (c) 2014 RepeatPan excluding parts that were written by Radiant Entertainment Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
Fixed removed dependency
Fixed removed dependency
Lua
mit
Quit/jelly
176fd8cd6884deaa98b6b989402dfc17e0fee8c9
assert.lua
assert.lua
-- See LICENSE file for copyright and license details local Misc = require('misc') local M = Misc.newModule() local printStacktrace = function() -- print("ASSERT: 1") local stacktarce = Misc.split(debug.traceback(), '\n') -- table.remove(stacktarce, 1) -- remove 'traceback:..' -- table.remove(stacktarce) -- ...
-- See LICENSE file for copyright and license details local Misc = require('misc') local M = Misc.newModule() local printStacktrace = function() -- print("ASSERT: 1") local stacktarce = Misc.split(debug.traceback(), '\n') -- table.remove(stacktarce, 1) -- remove 'traceback:..' -- table.remove(stacktarce) -- ...
assert.lua: Stupid fix
assert.lua: Stupid fix
Lua
mit
ozkriff/misery-lua
75ea7e3160321fd60c80907accb427650391bb0e
mods/bones/init.lua
mods/bones/init.lua
-- Minetest 0.4 mod: bones -- See README.txt for licensing and other information. bones = {} local function is_owner(pos, name) local owner = minetest.get_meta(pos):get_string("owner") if owner == "" or owner == name then return true end return false end bones.bones_formspec = "size[8,9]".. default.gui_bg.....
-- Minetest 0.4 mod: bones -- See README.txt for licensing and other information. bones = {} local function is_owner(pos, name) local owner = minetest.get_meta(pos):get_string("owner") if owner == "" or owner == name then return true end return false end bones.bones_formspec = "size[8,9]".. default.gui_bg.....
Bones mod fixes
Bones mod fixes 1. don't delete protected nodes, 2. time out in loaded chunks, 3. don't crash when dying in certain nodes (like default doors or sign_lib signs)
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
6c3d9af3742a23cde87db1b4c4649bcbf4267057
lua/include/histogram.lua
lua/include/histogram.lua
local histogram = {} histogram.__index = histogram local serpent = require "Serpent" 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 histog...
local histogram = {} histogram.__index = histogram local serpent = require "Serpent" 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 histog...
hist: add prefix to print() method, show units
hist: add prefix to print() method, show units
Lua
mit
duk3luk3/MoonGen,atheurer/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,NetronomeMoongen/MoonGen,dschoeffm/MoonGen,wenhuizhang/MoonGen,scholzd/MoonGen,werpat/MoonGen,wenhuizhang/MoonGen,atheurer/MoonGen,kidaa/MoonGen,bmichalo/MoonGen,gallenmu/MoonGen,atheurer/MoonGen,wenhuizhang/MoonGen,gallenmu/MoonGen,NetronomeMoongen/Mo...
d6bd90d780e34896a7b45cc33367eafd074dacee
game/scripts/vscripts/libraries/keyvalues.lua
game/scripts/vscripts/libraries/keyvalues.lua
KEYVALUES_VERSION = "1.00" --[[ Simple Lua KeyValues library, modified version Author: Martin Noya // github.com/MNoya Installation: - require this file inside your code Usage: - Your npc custom files will be validated on require, error will occur if one is missing or has faulty syntax. - This allows to safel...
KEYVALUES_VERSION = "1.00" --[[ Simple Lua KeyValues library, modified version Author: Martin Noya // github.com/MNoya Installation: - require this file inside your code Usage: - Your npc custom files will be validated on require, error will occur if one is missing or has faulty syntax. - This allows to safel...
fix(keyvalues): now merges base_hero into hero's KV Also fixes ArmorPhysical was nil on some heroes while armor attribute adjusting
fix(keyvalues): now merges base_hero into hero's KV Also fixes ArmorPhysical was nil on some heroes while armor attribute adjusting
Lua
mit
ark120202/aabs
079c8476950b137a8090b2cae595f7c51904fcd2
plugins/mod_disco.lua
plugins/mod_disco.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 get_children = require "core.hostmanager".get_children; local is_contact_subscribed = require "core...
-- 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 get_children = require "core.hostmanager".get_children; local is_contact_subscribed = require "core...
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
b0e09b785290a8ae614ebc298742a077616abde2
core/usermanager.lua
core/usermanager.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 datamanager = require "util.datamanager"; local modulemanager = require "core.modulemanager"; local ...
-- 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 datamanager = require "util.datamanager"; local modulemanager = require "core.modulemanager"; local ...
usermanager: Return a non-nil SASL handler from the null auth provider (fixes a traceback).
usermanager: Return a non-nil SASL handler from the null auth provider (fixes a traceback).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
480df1b39315b1cd9c4a2705082289cb8dfbda7e
vi_quickfix.lua
vi_quickfix.lua
-- Implement quickfix-like functionality. local M = {} local lpeg = require('lpeg') local P = lpeg.P local S = lpeg.S local C = lpeg.C local R = lpeg.R local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local ws = S" \t" local to_nl = (P(1) - P"\n") ^ 0 local errpat_newdir = Ct(P"make: Entering directory " * S(...
-- Implement quickfix-like functionality. local M = {} local lpeg = require('lpeg') local P = lpeg.P local S = lpeg.S local C = lpeg.C local R = lpeg.R local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local ws = S" \t" local to_nl = (P(1) - P"\n") ^ 0 local errpat_newdir = Ct(P"make: Entering directory " * S(...
Fix :clist - includes the extra continuation lines.
Fix :clist - includes the extra continuation lines.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
07ab947817d217fe2e20be3460b2a352245c7405
lua_scripts/create_argvmods_usr_bin_rules.lua
lua_scripts/create_argvmods_usr_bin_rules.lua
-- Copyright (c) 2009 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under MIT license -- This script is executed after a new SB2 session has been created, -- to create mapping rules for toolchain components: -- For example, /usr/bin/gcc will be mapped to the toolchain. These rules -- are used for other ...
-- Copyright (c) 2009 Nokia Corporation. -- Author: Lauri T. Aarnio -- -- Licensed under MIT license -- This script is executed after a new SB2 session has been created, -- to create mapping rules for toolchain components: -- For example, /usr/bin/gcc will be mapped to the toolchain. These rules -- are used for other ...
Set "tools" and "tools_prefix" in create_argvmods_usr_bin_rules.lua, too
Set "tools" and "tools_prefix" in create_argvmods_usr_bin_rules.lua, too
Lua
lgpl-2.1
ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,ldbox/ldbox,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,ldbox/ldbox,ldbox/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,OlegGirko/ldbox
a4d6298e4fdf4d4a74a3614713da4c7726a3a9ae
vrp/modules/item_transformer.lua
vrp/modules/item_transformer.lua
-- this module define a generic system to transform (generate, process, convert) items and money to other items or money in a specific area -- each transformer can take things to generate other things, using a unit of work -- units are generated periodically at a specific rate -- reagents => products (reagents can be ...
-- this module define a generic system to transform (generate, process, convert) items and money to other items or money in a specific area -- each transformer can take things to generate other things, using a unit of work -- units are generated periodically at a specific rate -- reagents => products (reagents can be ...
Fix item transformer progress bar issue
Fix item transformer progress bar issue
Lua
mit
ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ImagicTheCat/vRP,ImagicTheCat/vRP,ENDrain/vRP-plusplus
991aea195e8d8daefb74616cf4fb2bce961f4ed1
src/plugins/finalcutpro/timeline/zoomtoselection.lua
src/plugins/finalcutpro/timeline/zoomtoselection.lua
--- === plugins.finalcutpro.timeline.zoomtoselection === --- --- Zoom the Timeline to fit the currently-selected clips. local require = require local fcp = require("cp.apple.finalcutpro") local mod = {} --- plugins.finalcutpro.timeline.zoomtoselection.SELECTION_BUFFER -> number --- Constant --- The number of pixels...
--- === plugins.finalcutpro.timeline.zoomtoselection === --- --- Zoom the Timeline to fit the currently-selected clips. local require = require local fcp = require "cp.apple.finalcutpro" local mod = {} -- SELECTION_BUFFER -> number -- Constant -- The number of pixels of buffer space to allow the selection z...
Fixed AX bugs in "Zoom to Selection" action
Fixed AX bugs in "Zoom to Selection" action - Closes #2606
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks
9eea9234404eff39061e56e75c9a62a3a2b57fcb
states/game.lua
states/game.lua
local Scene = require 'entities.scene' local Dynamo = require 'entities.scenes.dynamo' local Sprite = require 'entities.sprite' local game = {} function game:init() self.dynamo = Dynamo:new() self.scene = Scene:new() self.catalogs = { art = require 'catalogs.art', } self.isoSprite = love...
local Scene = require 'entities.scene' local Dynamo = require 'entities.scenes.dynamo' local Sprite = require 'entities.sprite' local game = {} function game:init() self.dynamo = Dynamo:new() self.scene = Scene:new() self.catalogs = { art = require 'catalogs.art', } self.isoSprite = love...
Fix bad hovering math
Fix bad hovering math
Lua
mit
Nuthen/ludum-dare-39
5fc937a0504b82d0781a60614a51d2a9315f4d27
xmake/modules/lib/detect/find_tool.lua
xmake/modules/lib/detect/find_tool.lua
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
continue to fix find_tool bug
continue to fix find_tool bug
Lua
apache-2.0
tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake
3c4ba2190506e46788c16f3e65f78307551dc780
src/core.lua
src/core.lua
-- return truthy if we're in a coroutine local function in_coroutine() local current_routine, main = coroutine.running() -- need check to the main variable for 5.2, it's nil for 5.1 return current_routine and (main == nil or main == false) end local busted = { root_context = { type = "describe", description = ...
-- return truthy if we're in a coroutine local function in_coroutine() local current_routine, main = coroutine.running() -- need check to the main variable for 5.2, it's nil for 5.1 return current_routine and (main == nil or main == false) end local busted = { root_context = { type = "describe", description = ...
fix for the setup/teardown errors to be reported nicely
fix for the setup/teardown errors to be reported nicely
Lua
mit
nehz/busted,istr/busted,sobrinho/busted,ryanplusplus/busted,mpeterv/busted,o-lim/busted,leafo/busted,azukiapp/busted,xyliuke/busted,DorianGray/busted,Olivine-Labs/busted
0a4fb89239864dbf9e76ba4f5f28967706cd01aa
frontend/apps/reader/modules/readerconfig.lua
frontend/apps/reader/modules/readerconfig.lua
local ConfigDialog = require("ui/widget/configdialog") local Device = require("device") local Event = require("ui/event") local Geom = require("ui/geometry") local InputContainer = require("ui/widget/container/inputcontainer") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderConfig = ...
local ConfigDialog = require("ui/widget/configdialog") local Device = require("device") local Event = require("ui/event") local Geom = require("ui/geometry") local InputContainer = require("ui/widget/container/inputcontainer") local UIManager = require("ui/uimanager") local _ = require("gettext") local ReaderConfig = ...
Fix possible crash with config panel when engine switched (#3761)
Fix possible crash with config panel when engine switched (#3761) Reading an epub file with Mupdf would show 6 items in bottom config panel. Reading it with crengine would show only 5. A crash would happen if we were on the 6th when leaving MuPDF, and later opening config panel with crengine.
Lua
agpl-3.0
poire-z/koreader,mwoz123/koreader,NiLuJe/koreader,pazos/koreader,Markismus/koreader,poire-z/koreader,Frenzie/koreader,houqp/koreader,Hzj-jie/koreader,lgeek/koreader,koreader/koreader,NiLuJe/koreader,mihailim/koreader,koreader/koreader,Frenzie/koreader
5a88699be3a068e721e23f786a9fdeb6b82b0771
etc/replay.lua
etc/replay.lua
pcall(require, 'luarocks.require') require 'lua-nucleo.module' require 'lua-nucleo.strict' require = import 'lua-nucleo/require_and_declare.lua' { 'require_and_declare' } math.randomseed(12345) local luatexts = require 'luatexts' local luatexts_lua = require 'luatexts.lua' local ensure, ensure_equals, en...
pcall(require, 'luarocks.require') require 'lua-nucleo.module' require 'lua-nucleo.strict' require = import 'lua-nucleo/require_and_declare.lua' { 'require_and_declare' } math.randomseed(12345) local luatexts = require 'luatexts' local ensure, ensure_equals, ensure_tequals, ensure_tdeepequals, ...
etc/replay: honoring PREFIX
etc/replay: honoring PREFIX
Lua
mit
agladysh/luatexts,agladysh/luatexts,agladysh/luatexts,agladysh/luatexts,agladysh/luatexts
fc0477dfb7102d1d1d9b95b5295bddc053d7c863
core/modulemanager.lua
core/modulemanager.lua
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
local log = require "util.logger".init("modulemanager") local loadfile, pcall = loadfile, pcall; local setmetatable, setfenv, getfenv = setmetatable, setfenv, getfenv; local pairs, ipairs = pairs, ipairs; local t_insert = table.insert; local type = type; local tostring, print = tostring, print; local _G = _G; modu...
Fix stanza handlers to use xmlns also for matching
Fix stanza handlers to use xmlns also for matching
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
5e849af9c539370158b4beebf201023656998c7a
lua_modules/http/httpserver.lua
lua_modules/http/httpserver.lua
------------------------------------------------------------------------------ -- HTTP server module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> ------------------------------------------------------------------------------ local collectgarbage, tonumber, tostring = col...
------------------------------------------------------------------------------ -- HTTP server module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> ------------------------------------------------------------------------------ local collectgarbage, tonumber, tostring = col...
fix: fixed the memory leak
fix: fixed the memory leak
Lua
mit
FelixPe/nodemcu-firmware,HEYAHONG/nodemcu-firmware,eku/nodemcu-firmware,vsky279/nodemcu-firmware,vsky279/nodemcu-firmware,vsky279/nodemcu-firmware,FelixPe/nodemcu-firmware,eku/nodemcu-firmware,nodemcu/nodemcu-firmware,HEYAHONG/nodemcu-firmware,nodemcu/nodemcu-firmware,nodemcu/nodemcu-firmware,nodemcu/nodemcu-firmware,n...
ffdc3aec032bf2490020287ff7afc32fd6df9729
xmake/modules/private/action/build/object.lua
xmake/modules/private/action/build/object.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 build object
fix build object
Lua
apache-2.0
waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake
700949c10d42f9572ddc4bc97a90f6ca657db078
orange/plugins/dynamic_upstream/handler.lua
orange/plugins/dynamic_upstream/handler.lua
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
local pairs = pairs local ipairs = ipairs local ngx_re_sub = ngx.re.sub local ngx_re_find = ngx.re.find local string_sub = string.sub local orange_db = require("orange.store.orange_db") local judge_util = require("orange.utils.judge") local extractor_util = require("orange.utils.extractor") local handle_util = require(...
fix & modify dynamic_upstream
fix & modify dynamic_upstream 1. keep the behavior with rewrite ins 2. fix copy bug: not to rewrite whtn to_rewrite equals to uri 3. test case : 添加两个规则,规则中配置处理一栏: 1. /notso/${1}/2ad%20fa/hha dd/?name=11 2223&ab=1c, ${1} 表示变量提取式,可以随意配置一个。 2. /gooda/ requrest: http://192.168.110.137/hhhe?aafad=1 http://19...
Lua
mit
sumory/orange,sumory/orange,sumory/orange
2c5f6ad39e37f4029a263419a28f3c05c0019f9a
etc/Far3/Profile/Macros/scripts/Plugin.Editor.FarColorer.lua
etc/Far3/Profile/Macros/scripts/Plugin.Editor.FarColorer.lua
local guid = 'D2F36B62-A470-418D-83A3-ED7A3710E5B5'; Macro { area = "Editor"; key = "AltL"; flags = ""; description = "Editor: List of types"; action = function() Plugin.Call(guid, 1); -- Keys("F11 c 1") end } Macro { area = "Editor"; key = "Alt["; flags = ""; description = "Editor: F...
local guid = 'D2F36B62-A470-418D-83A3-ED7A3710E5B5'; Macro { area = "Editor"; key = "AltL"; flags = ""; description = "Editor: List of types"; action = function() Plugin.Call(guid, 1); -- Keys("F11 c 1"); if export.GetGlobalInfo().MinFarVersion[4] > 4242 then Keys("Enter"); end; -- workaround fo...
Plugin.Editor.FarColorer.lua updated to fix issie with ALT-L in Far3.0.4400
Plugin.Editor.FarColorer.lua updated to fix issie with ALT-L in Far3.0.4400
Lua
mit
ildar-shaimordanov/tea-set
56a0e894324f42e8f3cad3e15a84ebe0f3f18063
modules/urbandict.lua
modules/urbandict.lua
local simplehttp = require'simplehttp' local json = require'json' local trim = function(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end local urlEncode = function(str) return str:gsub( '([^%w ])', function (c) return string.format ("%%%02X", string.byte(c)) end ):gsub(' ', '+') end local parseJSON =...
local simplehttp = require'simplehttp' local json = require'json' local trim = function(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end local urlEncode = function(str) return str:gsub( '([^%w ])', function (c) return string.format ("%%%02X", string.byte(c)) end ):gsub(' ', '+') end local parseJSON =...
urbandict: Fix fail. :-(
urbandict: Fix fail. :-( Former-commit-id: c4cfe85be09f92255da904949de5b2357de869c5 [formerly 318017e4c676dc2586af50a403a6b9cb9d84db31] Former-commit-id: 1134f37fd149d1a588dad923d18f6e10835fa59d
Lua
mit
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2
da8dbb98262c6543b0846335ac693e61e7008163
src/luacheck/globbing.lua
src/luacheck/globbing.lua
local fs = require "luacheck.fs" local utils = require "luacheck.utils" -- Only ?, *, ** and simple character classes (with ranges and negation) are supported. -- Hidden files are not treated specially. Special characters can't be escaped. local globbing = {} local cur_dir = fs.current_dir() local function is_regula...
local fs = require "luacheck.fs" local utils = require "luacheck.utils" -- Only ?, *, ** and simple character classes (with ranges and negation) are supported. -- Hidden files are not treated specially. Special characters can't be escaped. local globbing = {} local cur_dir = fs.current_dir() local function is_regula...
Fix ranges in globbing
Fix ranges in globbing Always escaping and discarding first character in a class is not correct when it's part of a range, e.g. '[a-z]'.
Lua
mit
adan830/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck,mpeterv/luacheck,kidaa/luacheck,adan830/luacheck,tst2005/luacheck,linuxmaniac/luacheck,xpol/luacheck,linuxmaniac/luacheck,tst2005/luacheck,kidaa/luacheck,mpeterv/luacheck
e7df75c4471e9db913e95326f4a2f9fd6aa59708
Sassilization/gamemode/modules/unit/units/ballista/init.lua
Sassilization/gamemode/modules/unit/units/ballista/init.lua
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple ---------------------------------------- local arrowspeed = 200 function UNIT:DoAttack( enemy, dmginfo ) dmginfo.dmgtype = DMG_BULLET local arrowTime = enemy:LocalToWorld(d...
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple ---------------------------------------- local arrowspeed = 200 function UNIT:DoAttack( enemy, dmginfo ) dmginfo.dmgtype = DMG_BULLET local arrowTime = enemy:LocalToWorld(d...
Fixed ballistas damaging allies. Lowered ballista damage to buildings to 3 (From 5).
Fixed ballistas damaging allies. Lowered ballista damage to buildings to 3 (From 5).
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
0081d72c1e1f1f0efaa74a34de4578dc8d5b0845
vrp/client/player_state.lua
vrp/client/player_state.lua
-- periodic player state update local state_ready = false AddEventHandler("playerSpawned",function() -- delay state recording state_ready = false Citizen.CreateThread(function() Citizen.Wait(30000) state_ready = true end) end) Citizen.CreateThread(function() while true do Citizen.Wait(30000) ...
-- periodic player state update local state_ready = false AddEventHandler("playerSpawned",function() -- delay state recording state_ready = false Citizen.CreateThread(function() Citizen.Wait(30000) state_ready = true end) end) Citizen.CreateThread(function() while true do Citizen.Wait(30000) ...
Try to fix setCustomization clear weapons issue
Try to fix setCustomization clear weapons issue
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus
528757522a86c6a22d987a33b7614c93555f2e79
app/post/profile.lua
app/post/profile.lua
--[[ file: app/post/profile desc: update profile ]] --modules local user, header, request, template, countries, session = luawa.user, luawa.header, luawa.request, oxy.template, require( oxy.config.root .. 'app/countries' ).iso, luawa.session --login? or invalid request (update type MUST be set) if not user:checkLog...
--[[ file: app/post/profile desc: update profile ]] --modules local user, header, request, template, countries, session = luawa.user, luawa.header, luawa.request, oxy.template, require( oxy.config.root .. 'app/countries' ).iso, luawa.session --login? or invalid request (update type MUST be set) if not user:checkLog...
Fix bug with name saving
Fix bug with name saving
Lua
mit
Oxygem/Oxycore,Oxygem/Oxycore,Oxygem/Oxycore
15443d2f63cf88d1186f4d92f4d7ac7552b86814
src/lua-factory/sources/grl-euronews.lua
src/lua-factory/sources/grl-euronews.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
lua-factory: Fix broken URLs for Euronews outside Europe
lua-factory: Fix broken URLs for Euronews outside Europe From some locations, Euronews will not make all of its streams available. This ensures that we filter out the streams that aren't available. https://bugzilla.gnome.org/show_bug.cgi?id=731224
Lua
lgpl-2.1
jasuarez/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,vrutkovs/grilo-plugins,MathieuDuponchelle/grilo-plugins,MikePetullo/grilo-plugins,vrutkovs/grilo-plugins,GNOME/grilo-plugins,vrutkovs/grilo-plugins,MathieuDuponchelle/grilo-plugins,vrutko...
9413f919821000f7c072247db8d1defc3ae78717
test-loop.lua
test-loop.lua
local p = require('lib/utils').prettyPrint local uv = require('luv') -- local function collectgarbage() end -- Helper to log all handles in a loop local function logHandles(loop, verbose) local handles = uv.walk(loop) if not verbose then p(loop, uv.walk(loop)) return end local data = {} for i, handl...
local p = require('lib/utils').prettyPrint local uv = require('luv') -- local function collectgarbage() end -- Helper to log all handles in a loop local function logHandles(loop, verbose) local handles = uv.walk(loop) if not verbose then p(loop, uv.walk(loop)) return end local data = {} for i, handl...
Fix tcp test
Fix tcp test
Lua
apache-2.0
luvit/luv,NanXiao/luv,leecrest/luv,joerg-krause/luv,xpol/luv,luvit/luv,brimworks/luv,daurnimator/luv,zhaozg/luv,mkschreder/luv,joerg-krause/luv,daurnimator/luv,zhaozg/luv,daurnimator/luv,DBarney/luv,leecrest/luv,xpol/luv,RomeroMalaquias/luv,mkschreder/luv,DBarney/luv,RomeroMalaquias/luv,kidaa/luv,NanXiao/luv,RomeroMala...
050e1c1d4d00d1f638414b51e8183aa992b2892a
map/11record.lua
map/11record.lua
local suc, content = pcall(storm.load, '11record.txt') if suc then local names = {} --注册专属信使 messenger = {} local funcs = { ['特殊称号'] = function(line) local name, title = line:match('([%C%S]+)=([%C%S]+)') if name then names[name] = title end end, ['特殊信使'] = function(line) loc...
local suc, content = pcall(storm.load, '11record.txt') if suc then local names = {} --注册专属信使 messenger = {} local funcs = { ['特殊称号'] = function(line) local name, title = line:match('(.+)=(.+)') if name then names[name] = title end end, ['特殊信使'] = function(line) local name, v...
修正名单行首有空格会导致名字识别错误的BUG
修正名单行首有空格会导致名字识别错误的BUG
Lua
apache-2.0
syj2010syj/All-star-Battle
83c073d8275997ec48705e9e5466553835f9b895
wyx/ui/TooltipFactory.lua
wyx/ui/TooltipFactory.lua
local Class = require 'lib.hump.class' local Tooltip = getClass 'wyx.ui.Tooltip' local Text = getClass 'wyx.ui.Text' local Bar = getClass 'wyx.ui.Bar' local Frame = getClass 'wyx.ui.Frame' local Style = getClass 'wyx.ui.Style' local property = require 'wyx.component.property' local math_ceil = math.ceil local colors =...
local Class = require 'lib.hump.class' local Tooltip = getClass 'wyx.ui.Tooltip' local Text = getClass 'wyx.ui.Text' local Bar = getClass 'wyx.ui.Bar' local Frame = getClass 'wyx.ui.Frame' local Style = getClass 'wyx.ui.Style' local property = require 'wyx.component.property' local math_ceil = math.ceil local colors =...
fix healthbar
fix healthbar
Lua
mit
scottcs/wyx
278807162bdf58a1c56db60581a0ed224d3dd475
src/lib/yang/util.lua
src/lib/yang/util.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local ffi = require("ffi") local ipv4 = require("lib.protocol.ipv4") ffi.cdef([[ unsigned long long strtoull (const char *nptr, const char **endptr, int base); ]]) function toint...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local ffi = require("ffi") local ipv4 = require("lib.protocol.ipv4") ffi.cdef([[ unsigned long long strtoull (const char *nptr, const char **endptr, int base); ]]) function toint...
Fix integer parsing bug in yang
Fix integer parsing bug in yang
Lua
apache-2.0
eugeneia/snabbswitch,Igalia/snabb,snabbco/snabb,Igalia/snabb,dpino/snabb,dpino/snabb,dpino/snabbswitch,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabbswitch,eugeneia/snabb,heryii/snabb,dpino/snabb,eugeneia/snabb,SnabbCo/snabbswitch,heryii/snabb,Igalia/snabb,Igalia/snabb...
340da5d552067b8a1738091f6a24b42ff07323b7
src/lua-factory/sources/grl-euronews.lua
src/lua-factory/sources/grl-euronews.lua
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
--[[ * Copyright (C) 2014 Bastien Nocera * * Contact: Bastien Nocera <hadess@hadess.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at you...
euronews: adapt url to YouTube feeds
euronews: adapt url to YouTube feeds Euronews seemed to have migrated to YouTube for most of its content. At this moment, from the previous list of Feeds, only Persian is not exclusive YouTube. This patch uses the videoId provided by euronews to create an YouTube url. Fixes: https://gitlab.gnome.org/GNOME/grilo-plug...
Lua
lgpl-2.1
GNOME/grilo-plugins,GNOME/grilo-plugins
5f4f1ddb6f07c0e4bcf207bcc4b9a0046e9c6241
bin/guard.lua
bin/guard.lua
#!/usr/bin/lua -- This is script that runs periodically to validate -- iptables (-t mangle) allowed_guests chain against -- sessions table stored in database. local dirname = string.gsub(arg[0], "(.*)/(.*)", "%1"); package.path = package.path .. ";" .. dirname .. "/../vendor/?.lua;" .. dirname .. "/../backend/?.lua";...
#!/usr/bin/lua -- This is script that runs periodically to validate -- iptables (-t mangle) allowed_guests chain against -- sessions table stored in database. local dirname = string.gsub(arg[0], "(.*)/(.*)", "%1"); package.path = package.path .. ";" .. dirname .. "/../vendor/?.lua;" .. dirname .. "/../backend/?.lua";...
Fixed issues with guard & big iptables counters.
Fixed issues with guard & big iptables counters.
Lua
mit
pamelus/lua-captive-portal,pamelus/lua-captive-portal,pamelus/lua-captive-portal,pamelus/lua-captive-portal
1745133e797a2f96431b61d156cbdc32fbd4a00a
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/quadrature_input_large_integers.lua
lib/switchboard_modules/lua_script_debugger/premade_scripts/counter_examples/quadrature_input_large_integers.lua
--Title: quadrature_input_large_integers.lua --Purpose: Program for handling quadrature input counts that overflow 32 bit floats by -- tracking and reporting counts in two registers. --Note: Could modify with the DIO0_EF_READ_AF register for float mode --Note: Does not take into effect counter-clockwise revolutions o...
--[[ Name: quadrature_input_large_integers.lua Desc: Program for handling quadrature input counts that overflow 32 bit floats by tracking and reporting counts in two registers Note: Could modify with the DIO0_EF_READ_AF register for float mode Does not take into effect counter-clockwise...
Fixed up the formatting quadrature with large integers example
Fixed up the formatting quadrature with large integers example
Lua
mit
chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager,chrisJohn404/ljswitchboard-module_manager
6c940e63890c22d2e2c0eb19b130e8bfc8993157
core/lfs_ext.lua
core/lfs_ext.lua
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE. --[[ This comment is for LuaDoc. --- -- Extends the `lfs` library to find files in directories and determine absolute -- file paths. module('lfs')]] --- -- The filter table containing common binary file extensions and version control -- directorie...
-- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE. --[[ This comment is for LuaDoc. --- -- Extends the `lfs` library to find files in directories and determine absolute -- file paths. module('lfs')]] --- -- The filter table containing common binary file extensions and version control -- directorie...
Fixed bug in new filter regarding extensions. If any extensions are specified as inclusive, exclude all others not specified.
Fixed bug in new filter regarding extensions. If any extensions are specified as inclusive, exclude all others not specified.
Lua
mit
rgieseke/textadept,rgieseke/textadept
940fc40f8e8045a59b6a3f33051a58b918cbf815
init.lua
init.lua
--[[ Copyright (c) 2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
--[[ Copyright (c) 2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
Fix package path problem
Fix package path problem
Lua
mit
aswyk/botrot
b0f2da06f8151d0090d2a3bcb29156ead6e5df1b
advanced-combinator_0.16.0/control.lua
advanced-combinator_0.16.0/control.lua
-- Use item tags. When removing an item, save its tags, when placing item use tags if any exist. Use the config string as the tag -- /c local t = game.player.selected.get_control_behavior().parameters.parameters[1].signal; for i, v in pairs(t) do game.print(i .. " = " .. v) end local logic = require "logic" local gui ...
-- Use item tags. When removing an item, save its tags, when placing item use tags if any exist. Use the config string as the tag -- /c local t = game.player.selected.get_control_behavior().parameters.parameters[1].signal; for i, v in pairs(t) do game.print(i .. " = " .. v) end local gui = require "gui" local model = ...
Advanced Combinator: Fix some Lua warnings
Advanced Combinator: Fix some Lua warnings
Lua
mit
Zomis/FactorioMods
9dd3994dd8dde2f4826ca4c96e82cd54e8313fec
selectmenu.lua
selectmenu.lua
require "rendertext" require "keys" require "graphics" require "font" SelectMenu = { -- font for displaying item names fsize = 22, -- font for page title tfsize = 25, -- font for paging display ffsize = 16, -- font for item shortcut sface = freetype.newBuiltinFace("mono", 22), sfhash = "mono22", -- title he...
require "rendertext" require "keys" require "graphics" require "font" SelectMenu = { -- font for displaying item names fsize = 22, -- font for page title tfsize = 25, -- font for paging display ffsize = 16, -- font for item shortcut sface = freetype.newBuiltinFace("mono", 22), sfhash = "mono22", -- title he...
fix: handle LPGBCK and LPGFWD in selectmenu
fix: handle LPGBCK and LPGFWD in selectmenu
Lua
agpl-3.0
NiLuJe/koreader-base,NiLuJe/koreader,koreader/koreader-base,Frenzie/koreader-base,Frenzie/koreader,apletnev/koreader,pazos/koreader,frankyifei/koreader-base,ashang/koreader,Hzj-jie/koreader-base,houqp/koreader-base,koreader/koreader,NiLuJe/koreader-base,houqp/koreader-base,NickSavage/koreader,NiLuJe/koreader,mwoz123/ko...
da8a7e8a4506e627cf9e4a0b9f4ee1cef9421520
lua/mediaplayer/players/entity/sh_meta.lua
lua/mediaplayer/players/entity/sh_meta.lua
--[[--------------------------------------------------------- Media Player Entity Meta -----------------------------------------------------------]] local EntityMeta = FindMetaTable("Entity") if not EntityMeta then return end function EntityMeta:GetMediaPlayer() return self._mp end -- -- Installs a media player re...
--[[--------------------------------------------------------- Media Player Entity Meta -----------------------------------------------------------]] local EntityMeta = FindMetaTable("Entity") if not EntityMeta then return end function EntityMeta:GetMediaPlayer() return self._mp end -- -- Installs a media player re...
Fixed error in which the mediaplayer entity config doesn't specify an angle.
Fixed error in which the mediaplayer entity config doesn't specify an angle.
Lua
mit
pixeltailgames/gm-mediaplayer,pixeltailgames/gm-mediaplayer
7d6f80d4608039c147998056baa7f5435f7e1d30
nyagos.d/catalog/subcomplete.lua
nyagos.d/catalog/subcomplete.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") local hubhelp=io.popen("hub help -a 2>nul","r") if githelp then local gitcmds={} local hub=false if hubhelp then hub=true...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end share.maincmds = {} -- git local githelp=io.popen("git help -a 2>nul","r") local hubhelp=io.popen("hub help -a 2>nul","r") if githelp then local gitcmds={} local hub=false if hubhelp then hub=true...
(#378) nyagos.d/catalog/subcomplete.lua: ignore command's case and suffixes
(#378) nyagos.d/catalog/subcomplete.lua: ignore command's case and suffixes
Lua
bsd-3-clause
zetamatta/nyagos,nocd5/nyagos,tsuyoshicho/nyagos
112567c97576c57e586539dfa1f3f5760be95059
premake4.lua
premake4.lua
local action = _ACTION or "" solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_U...
local action = _ACTION or "" solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") defines { "_CRT_SECURE_NO_WARNINGS" } --,"FONS_US...
Added "-framework Carbon" as a link option to premake4.lua.
Added "-framework Carbon" as a link option to premake4.lua. To get nanovg to link correctly under OS X 12.3, it needs to be linked against the Carbon libraries. This was missing in the premake4.lua files. Now fixed.
Lua
bsd-3-clause
dleslie/nanovg-egg
456d1a5e5df2f834649574e52d735e1b001f8e3c
CIFAR10/cifar10_L2.lua
CIFAR10/cifar10_L2.lua
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
fix bug: equation is wrong.
fix bug: equation is wrong.
Lua
mit
bigaidream-projects/drmad
b1786cdb8fcaa589f575f63d1a79cf0b6daa25d6
lua/entities/gmod_wire_clutch.lua
lua/entities/gmod_wire_clutch.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Clutch" ENT.Purpose = "Allows rotational friction to be varied dynamically" ENT.WireDebugName = "Clutch" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Clutch" ENT.Purpose = "Allows rotational friction to be varied dynamically" ENT.WireDebugName = "Clutch" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType...
Fixed NULL error on removal. Moved constraint cleanup to OnRemoved.
Fixed NULL error on removal. Moved constraint cleanup to OnRemoved.
Lua
apache-2.0
bigdogmat/wire,wiremod/wire,sammyt291/wire,dvdvideo1234/wire,notcake/wire,thegrb93/wire,mitterdoo/wire,mms92/wire,CaptainPRICE/wire,Grocel/wire,rafradek/wire,garrysmodlua/wire,NezzKryptic/Wire
32147c5679eb904a3c7008de0e9ab17142e3276a
9p.lua
9p.lua
data = require "data" dio = require "data_io" io = require "io" -- Returns a 9P number in table format. Offset and size in bytes function num9p(offset, size) return {offset*8, size*8, 'number', 'le'} end function putstr(to, s) -- XXX if an empty string is passed down, we segfault in setting p.s if #s == 0 th...
data = require "data" dio = require "data_io" io = require "io" function perr(s) io.stderr:write(s .. "\n") end -- Returns a 9P number in table format. Offset and size in bytes function num9p(offset, size) return {offset*8, size*8, 'number', 'le'} end function putstr(to, s) -- XXX if an empty string is passed...
Implement walk. Fix attach.
Implement walk. Fix attach.
Lua
bsd-3-clause
iru-/lua9p,iru-/lua9p
8f84bff236b52df079ce6ad3a7cdd598c1525518
MMOCoreORB/bin/scripts/mobile/quest/tatooine/wizzel.lua
MMOCoreORB/bin/scripts/mobile/quest/tatooine/wizzel.lua
wizzel = Creature:new { objectName = "", socialGroup = "thug", faction = "thug", level = 13, chanceHit = 0.3, damageMin = 140, damageMax = 150, baseXp = 714, baseHAM = 1500, baseHAMmax = 1900, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, bone...
wizzel = Creature:new { objectName = "", socialGroup = "mercenary", faction = "", level = 13, chanceHit = 0.3, damageMin = 140, damageMax = 150, baseXp = 714, baseHAM = 1500, baseHAMmax = 1900, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, bon...
[Fixed] targets in rakir banai's 4th mission no longer attack each other - mantis 6667
[Fixed] targets in rakir banai's 4th mission no longer attack each other - mantis 6667 Change-Id: Ib2d87a634a1d4303bca294daa6aa3c3e08ca1dbd
Lua
agpl-3.0
Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo
15183a0e7bf9853ae1ff11f77a30aa591e125b91
src/premake4.lua
src/premake4.lua
-- Procedurally Generated Transitional Audio Build -- -- A solution contains projects, and defines the available configurations solution "pgta_engine" location "build" --startproject "pgta_engine" language "C++" -- build configurations -- configurations { "Debug", "Release" } configuration "Debug" ...
-- Procedurally Generated Transitional Audio Build -- -- A solution contains projects, and defines the available configurations solution "pgta_engine" location "build" --startproject "pgta_engine" language "C++" platforms { "x32", "x64" } -- build configurations -- configurations { "Debug", "Release" ...
Updated premake script to append configuration suffix to the end of the target name.
Updated premake script to append configuration suffix to the end of the target name.
Lua
mit
PGTA/PGTA,PGTA/PGTA,PGTA/PGTA
e00978cfdbea9551676166dd1b1dc3748f11398d
src/npge/block/identity.lua
src/npge/block/identity.lua
local round = function(x) return math.floor(x + 0.5) end local mt = {} mt.__index = mt -- use C version if available local has_c, cidentity = pcall(require, 'npge.block.cidentity') if has_c then mt.__call = function(self, block) local rows = {} for fragment in block:iter_fragments() do ...
local round = function(x) return math.floor(x + 0.5) end local mt = {} mt.__index = mt -- use C version if available local has_c, cidentity = pcall(require, 'npge.block.cidentity') if has_c then mt.__call = function(self, block) local rows = {} for fragment in block:iter_fragments() do ...
fix identity (pure Lua impl)
fix identity (pure Lua impl) Forget to update code using block:at (removed method)
Lua
mit
starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge
39535b06faa3c0c624ca576fa180dc716be78cdc
mod_register_json/mod_register_json.lua
mod_register_json/mod_register_json.lua
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep local jid_split = require "util.jid".split local usermanager = require "core.usermanager" local b64_decode ...
-- Expose a simple servlet to handle user registrations from web pages -- via JSON. -- -- A Good chunk of the code is from mod_data_access.lua by Kim Alvefur -- aka Zash. local jid_prep = require "util.jid".prep local jid_split = require "util.jid".split local usermanager = require "core.usermanager" local b64_decode ...
mod_register_json: fixed typo, added https/http switch and default value to it.
mod_register_json: fixed typo, added https/http switch and default value to it.
Lua
mit
Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules
86c626b9e8f2a359a3b810a70e86d38817d6d694
spec/plugins/keyauth/api_spec.lua
spec/plugins/keyauth/api_spec.lua
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Key Auth Credentials API", function() local BASE_URL, credential, consumer setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(funct...
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Key Auth Credentials API", function() local BASE_URL, credential, consumer setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(funct...
Fixing test
Fixing test Former-commit-id: 854e276ac7a90897abb5d91f92de411b3095caab
Lua
apache-2.0
streamdataio/kong,isdom/kong,Kong/kong,ind9/kong,akh00/kong,beauli/kong,kyroskoh/kong,Kong/kong,rafael/kong,jerizm/kong,vzaramel/kong,ajayk/kong,jebenexer/kong,Kong/kong,streamdataio/kong,ejoncas/kong,Mashape/kong,li-wl/kong,ind9/kong,Vermeille/kong,xvaara/kong,smanolache/kong,shiprabehera/kong,kyroskoh/kong,isdom/kong...
24ec07ff1f7d7c3b1e8da9e91e3932d9f4269608
nyagos.d/box.lua
nyagos.d/box.lua
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.key.C_o = function(this) local word,pos = this:lastword() word = string.gsub(word,'"','') local wildcard = word.."*" local list = nyagos.glob(wildcard) if #list == 1 and list[1] == wildcard th...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.key.C_o = function(this) local word,pos = this:lastword() word = string.gsub(word,'"','') local wildcard = word.."*" local list = nyagos.glob(wildcard) if #list == 1 and list[1] == wildcard th...
Fix: C-o and ESCAPE erased the user-input-word.
Fix: C-o and ESCAPE erased the user-input-word.
Lua
bsd-3-clause
zetamatta/nyagos,tsuyoshicho/nyagos
3c2caae0c2cc683b8346084cae6e1ce530b12573
src/luarocks/cmd/new_version.lua
src/luarocks/cmd/new_version.lua
--- Module implementing the LuaRocks "new_version" command. -- Utility function that writes a new rockspec, updating data from a previous one. local new_version = {} local util = require("luarocks.util") local download = require("luarocks.download") local fetch = require("luarocks.fetch") local persist = require("lua...
--- Module implementing the LuaRocks "new_version" command. -- Utility function that writes a new rockspec, updating data from a previous one. local new_version = {} local util = require("luarocks.util") local download = require("luarocks.download") local fetch = require("luarocks.fetch") local persist = require("lua...
fix(new_version): keep the old url if the md5 doesn't change.
fix(new_version): keep the old url if the md5 doesn't change.
Lua
mit
keplerproject/luarocks,keplerproject/luarocks,luarocks/luarocks,luarocks/luarocks,luarocks/luarocks,keplerproject/luarocks,keplerproject/luarocks
3115c80120856a686816599880cf0aa9c7d136c8
kong/tools/dns.lua
kong/tools/dns.lua
local utils = require "kong.tools.utils" local dns_client --- Load and setup the DNS client according to the provided configuration. -- @param conf (table) Kong configuration -- @return the initialized `resty.dns.client` module, or an error local setup_client = function(conf) if not dns_client then dns_client = ...
local utils = require "kong.tools.utils" local dns_client --- Load and setup the DNS client according to the provided configuration. -- @param conf (table) Kong configuration -- @return the initialized `resty.dns.client` module, or an error local setup_client = function(conf) if not dns_client then dns_client = ...
fix(dns) config parameters swapped (#5684)
fix(dns) config parameters swapped (#5684)
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
209224902758b5cde52ce145ab0e89a8efd081fb
Threshold.lua
Threshold.lua
require 'nn' require 'cltorch' local function floatToString(val) local valstring = tostring(val) if valstring:find('%.') or valstring:find('e') then valstring = valstring .. 'f' end return valstring end function torch.ClTensor.nn.Threshold_updateOutput(self, input) -- print('torch.nn.ReLU -- ...
require 'nn' require 'cltorch' nn.Threshold.baseUpdateOutput = nn.Threshold.updateOutput nn.Threshold.baseUpdateGradInput = nn.Threshold.updateGradInput local function floatToString(val) local valstring = tostring(val) if valstring:find('%.') or valstring:find('e') then valstring = valstring .. 'f' end...
fix Threshold for THNN
fix Threshold for THNN
Lua
bsd-2-clause
hughperkins/clnn,hughperkins/clnn,hughperkins/clnn,hughperkins/clnn
3b93896a2049ede2b1ef20a5020a2cfdcd1dc917
scripts/bgfx.lua
scripts/bgfx.lua
-- -- Copyright 2010-2018 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- function filesexist(_srcPath, _dstPath, _files) for _, file in ipairs(_files) do file = path.getrelative(_srcPath, file) local filePath = path.join(_dstPath, file) if not os.is...
-- -- Copyright 2010-2018 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause -- function filesexist(_srcPath, _dstPath, _files) for _, file in ipairs(_files) do file = path.getrelative(_srcPath, file) local filePath = path.join(_dstPath, file) if not os.is...
Fixed amalgamated build.
Fixed amalgamated build.
Lua
bsd-2-clause
emoon/bgfx,MikePopoloski/bgfx,jpcy/bgfx,attilaz/bgfx,mendsley/bgfx,attilaz/bgfx,fluffyfreak/bgfx,bkaradzic/bgfx,jpcy/bgfx,jdryg/bgfx,jdryg/bgfx,bkaradzic/bgfx,septag/bgfx,mendsley/bgfx,fluffyfreak/bgfx,LWJGL-CI/bgfx,septag/bgfx,jpcy/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,fluffyfreak/bgfx,bkaradzic/bgfx,LWJGL-CI/bgfx,mendsley/bg...
8f0e1fc9aa58c6223530daecef5d8f2d43d136b0
onmt/modules/BiEncoder.lua
onmt/modules/BiEncoder.lua
local function reverseInput(batch) batch.sourceInput, batch.sourceInputRev = batch.sourceInputRev, batch.sourceInput batch.sourceInputFeatures, batch.sourceInputRevFeatures = batch.sourceInputRevFeatures, batch.sourceInputFeatures batch.sourceInputPadLeft, batch.sourceInputRevPadLeft = batch.sourceInputRevPadLeft...
local function reverseInput(batch) batch.sourceInput, batch.sourceInputRev = batch.sourceInputRev, batch.sourceInput batch.sourceInputFeatures, batch.sourceInputRevFeatures = batch.sourceInputRevFeatures, batch.sourceInputFeatures batch.sourceInputPadLeft, batch.sourceInputRevPadLeft = batch.sourceInputRevPadLeft...
fix brnn serialization (#33)
fix brnn serialization (#33) BiEncoder's submodules are plain Encoder objects that contain clones and preallocated Tensors. We have to save the serialized form of these submodules.
Lua
mit
OpenNMT/OpenNMT,jsenellart/OpenNMT,cservan/OpenNMT_scores_0.2.0,da03/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,monsieurzhang/OpenNMT,srush/OpenNMT,OpenNMT/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,da03/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNM...
a103f58697ac6663c0f3f62bebd6d66317fc0685
otouto/plugins/twitter.lua
otouto/plugins/twitter.lua
local twitter = {} local utilities = require('otouto.utilities') local HTTPS = require('ssl.https') local JSON = require('dkjson') local redis = (loadfile "./otouto/redis.lua")() local OAuth = (require "OAuth") local bindings = require('otouto.bindings') function twitter:init(config) if not cred_data.tw_consumer_key...
local twitter = {} local utilities = require('otouto.utilities') local HTTPS = require('ssl.https') local JSON = require('dkjson') local redis = (loadfile "./otouto/redis.lua")() local OAuth = (require "OAuth") local bindings = require('otouto.bindings') function twitter:init(config) if not cred_data.tw_consumer_key...
Twitter: Fix Pattern
Twitter: Fix Pattern
Lua
agpl-3.0
Brawl345/Brawlbot-v2
275bc29d30b8feea3bbf0ff71574badc3940fb25
nvim/lua/theme.lua
nvim/lua/theme.lua
vim.opt.background = 'dark' vim.cmd('syntax enable') -- vim.cmd('colorscheme gruvbox') require('nightfox').load('nordfox') --require('nightfox').load('dawnfox') -- lualine -- require('lualine').setup {options = { theme = 'gruvbox' }} -- require('lualine').setup {options = { theme = 'nightfox' }} require('nvim-web-dev...
vim.opt.background = 'dark' vim.cmd('syntax enable') -- vim.cmd('colorscheme gruvbox') vim.cmd('colorscheme nordfox') -- vim.cmd('colorscheme dawnfox') -- lualine -- require('lualine').setup {options = { theme = 'gruvbox' }} -- require('lualine').setup {options = { theme = 'nightfox' }} require('nvim-web-devicons').s...
nvim: fix colorscheme after plugin update
nvim: fix colorscheme after plugin update
Lua
mit
iff/dotfiles,iff/dotfiles
66cb733bd98b55ecf31a63bf9415d6a36c8f6ae5
lua/entities/gmod_wire_hologram/cl_init.lua
lua/entities/gmod_wire_hologram/cl_init.lua
include( "shared.lua" ) ENT.RenderGroup = RENDERGROUP_BOTH local blocked = {} local scale_buffer = {} local clip_buffer = {} local vis_buffer = {} function ENT:Initialize( ) self:DoScale() local ownerid = self:GetNetworkedInt("ownerid") self.blocked = blocked[ownerid] or false self.clips = {} ...
include( "shared.lua" ) ENT.RenderGroup = RENDERGROUP_BOTH local blocked = {} local scale_buffer = {} local clip_buffer = {} local vis_buffer = {} function ENT:Initialize( ) self:DoScale() local ownerid = self:GetNetworkedInt("ownerid") self.blocked = blocked[ownerid] or false self.clips = {} ...
[E2] holograms cl_init.lua: Disabled engine lighting on holograms. This has been suggested several times, being as how they are "holograms" it doesn't really make sense that they are dynamically lit. If the community is really against this, it is a quick easy fix.
[E2] holograms cl_init.lua: Disabled engine lighting on holograms. This has been suggested several times, being as how they are "holograms" it doesn't really make sense that they are dynamically lit. If the community is really against this, it is a quick easy fix.
Lua
apache-2.0
NezzKryptic/Wire,notcake/wire,rafradek/wire,garrysmodlua/wire,Python1320/wire,plinkopenguin/wiremod,wiremod/wire,dvdvideo1234/wire,Grocel/wire,immibis/wiremod,thegrb93/wire,mitterdoo/wire,sammyt291/wire,bigdogmat/wire,CaptainPRICE/wire,mms92/wire