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
6e574a681bca8b04395bb83d5f1e3e7e84a462dd
MMOCoreORB/bin/scripts/mobile/outfits/serverobjects.lua
MMOCoreORB/bin/scripts/mobile/outfits/serverobjects.lua
includeFile("outfits/band_bandfill_outfit.lua") includeFile("outfits/band_fanfar_outfit.lua") includeFile("outfits/band_fizz_outfit.lua") includeFile("outfits/band_flute_droopy_outfit.lua") includeFile("outfits/band_kloo_horn_outfit.lua") includeFile("outfits/band_slitherhorn_outfit.lua") includeFile("outfits/band_traz...
includeFile("outfits/band_bandfill_outfit.lua") includeFile("outfits/band_fanfar_outfit.lua") includeFile("outfits/band_fizz_outfit.lua") includeFile("outfits/band_flute_droopy_outfit.lua") includeFile("outfits/band_kloo_horn_outfit.lua") includeFile("outfits/band_slitherhorn_outfit.lua") includeFile("outfits/band_traz...
[Fixed] Mat Rags & Tekil outfits not loading.
[Fixed] Mat Rags & Tekil outfits not loading. Change-Id: I7e6ccd9b42c3cad7f6527bad8a2f9289d017556f
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Ta...
ca3d97576039ee390bc1c20621c4e2c416cc0a60
bhop/gamemode/mapfixes/bhop_exodus.lua
bhop/gamemode/mapfixes/bhop_exodus.lua
HOOKS["Intialize"] = function() GAMEMODE:AddACArea(Vector(866, 162, -240),Vector(866, 162, -40),"You have entered the level select area as a result of this your timer has been stopped.") GAMEMODE:AddACArea(Vector(-580, 772, -768),Vector(-315, 894, -568)) end HOOKS["InitPostEntity"] = function() for k,v in pairs(ent...
HOOKS["Initialize"] = function() GAMEMODE:AddACArea(Vector(866, 162, -240),Vector(1371, 664, -40),"You have entered the level select area as a result of this your timer has been stopped.") GAMEMODE:AddACArea(Vector(-580, 772, -768),Vector(-315, 894, -568)) end [09:56:03] Min = Vector(867, 161, -240) [09:56:03] Max =...
fixed exodus mapfix
fixed exodus mapfix
Lua
bsd-3-clause
T3hArco/skeyler-gamemodes
eaf379bf88ae0bc620b4a1de23e58b75626778ad
plugins/wikipedia.lua
plugins/wikipedia.lua
local command = 'wikipedia <query>' local doc = [[``` /wikipedia <query> Returns an article from Wikipedia. Aliases: /w, /wiki ```]] local triggers = { '^/wikipedia[@'..bot.username..']*', '^/wiki[@'..bot.username..']*', '^/w[@'..bot.username..']*$', '^/w[@'..bot.username..']* ' } local action = function(msg) l...
local command = 'wikipedia <query>' local doc = [[``` /wikipedia <query> Returns an article from Wikipedia. Aliases: /w, /wiki ```]] local triggers = { '^/wikipedia[@'..bot.username..']*', '^/wiki[@'..bot.username..']*', '^/w[@'..bot.username..']*$', '^/w[@'..bot.username..']* ' } local action = function(msg) l...
Fix title escaping
Fix title escaping
Lua
mit
barreeeiroo/BarrePolice,TiagoDanin/SiD,bb010g/otouto,Brawl345/Brawlbot-v2,topkecleon/otouto
2ad23320556851f63e312a72c23a12b014a2772a
Peripherals/GPU/modules/screenshot.lua
Peripherals/GPU/modules/screenshot.lua
--GPU: Screenshot and Label image. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUKit, DevKit = ... --luacheck: pop local lg = love.graphics local events = require("Engine.events") local Path = GPUKit.Path local MiscKit = GPUKit.Misc local WindowKit = GPUKit.Window local RenderKit = GPUKit.Render local Sha...
--GPU: Screenshot and Label image. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUKit, DevKit = ... --luacheck: pop local lg = love.graphics local events = require("Engine.events") local Path = GPUKit.Path local MiscKit = GPUKit.Misc local WindowKit = GPUKit.Window local RenderKit = GPUKit.Render local Sha...
Fix png saving
Fix png saving Former-commit-id: ed0575ae8f710e23ebc6635e891cae12b52a5727
Lua
mit
RamiLego4Game/LIKO-12
2f2e7dd99b8c3ad68f3f5620365ccef86015043e
modules/unicode.lua
modules/unicode.lua
local sql = require'lsqlite3' local util = require'util' -- utf-8 functions (C) Rici Lake -- http://luaparse.luaforge.net/libquery.lua.html local function X(str) return tonumber(str, 16) end local elevenBits = X"7FF" local sixteenBits = X"FFFF" local math = require 'math' local mod = math.mod local strchar = string.cha...
local sql = require'lsqlite3' local util = require'util' -- utf-8 functions (C) Rici Lake -- http://luaparse.luaforge.net/libquery.lua.html local function X(str) return tonumber(str, 16) end local elevenBits = X"7FF" local sixteenBits = X"FFFF" local math = require 'math' local mod = math.mod local strchar = string.cha...
unicode: Fix epic merge failure...
unicode: Fix epic merge failure... Former-commit-id: 24f9e5ee4ee0b3143fcd0becc6435b70573ec93b [formerly f5096bf55a684fd1dba9d68d1341521c9384aa00] Former-commit-id: a63395fdf78d0a8093d67412fc7a119d4d18e49b
Lua
mit
torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2
0134545ecb3a930b44ff241ac3c28bebdb80a462
tests/tests.lua
tests/tests.lua
package.cpath = package.cpath .. ";../lib/?.so" require "lunique" require "luaunit" function valid(uuid) local len = string.len(uuid) local pos = string.find(uuid, '[^a-f0-9-]') return len, pos end Testing = {} function Testing:testGenerate() -- It is hard to test if the string is unique... -- I ...
package.cpath = package.cpath .. ";../lib/?.so" require "lunique" require "luaunit" function valid(uuid) local len = string.len(uuid) local pos = string.find(uuid, '[^a-f0-9-]') return len, pos end Testing = {} function Testing:testGenerate() -- It is hard to test if the string is unique... -- I ...
Fixed error in unittest and removed uninteresting test
Fixed error in unittest and removed uninteresting test No need to test the actual result when we are comparing "garbage". The status is the interesting value, testCompare() tests the other part.
Lua
mit
dauer/lunique
259ffdb62f564688007d887f6f78e97826b79f4a
src/program/snabbvmx/check/check.lua
src/program/snabbvmx/check/check.lua
module(..., package.seeall) local config = require("core.config") local lib = require("core.lib") local lwcheck = require("program.lwaftr.check.util") local lwconf = require("apps.lwaftr.conf") local setup = require("program.snabbvmx.lwaftr.setup") local diff_counters = lwcheck.diff_counters local load_requested_coun...
module(..., package.seeall) local config = require("core.config") local lib = require("core.lib") local util = require("program.lwaftr.check.util") local lwcounter = require("program.lwaftr.lwcounter") local setup = require("program.snabbvmx.lwaftr.setup") local function show_usage(code) print(require("program.sna...
Attempt to fix snabbvmx check
Attempt to fix snabbvmx check
Lua
apache-2.0
alexandergall/snabbswitch,eugeneia/snabb,Igalia/snabb,Igalia/snabbswitch,dpino/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,dpino/snabb,Igalia/snabb,dpino/snabb,eugeneia/snabb,eugeneia/snabb,snabbco/snabb,snabbco/snabb,eugeneia/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,Igalia/snabb,SnabbCo/snabbswitch,dpino/snabb...
99f94acacfbb30388182a5ff06729eacee081dd1
lua_examples/onewire-ds18b20.lua
lua_examples/onewire-ds18b20.lua
--' -- 18b20 one wire example for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or (count > 100)) if (addr ==...
--' -- 18b20 one wire example for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or (count > 100)) if (addr ==...
Add negative temp handling; fix multiplier
Add negative temp handling; fix multiplier Negative temperatures (less than 0°C) are returned as a sign-extended two's complement number. Subtract 0x10000 to recover the proper negative value. Also, do not multiply by 625 twice (thanks to @TerryE). Signed-off-by: Nick Andrew <75ef9faee755c70589550b513ad881e5a603182c...
Lua
mit
zerog2k/nodemcu-firmware,zerog2k/nodemcu-firmware,zerog2k/nodemcu-firmware
140f55cd5c08d84092af74b9dacf4098e337eeea
src/sailor/test.lua
src/sailor/test.lua
-------------------------------------------------------------------------------- -- test.lua, v0.4: Helper functions for testing functionality -- This file is a part of Sailor project -- Copyright (c) 2014-2015 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org -------------------------------...
-------------------------------------------------------------------------------- -- test.lua, v0.4: Helper functions for testing functionality -- This file is a part of Sailor project -- Copyright (c) 2014-2015 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org -------------------------------...
chore(tests): Adds change to test.load_fixtures
chore(tests): Adds change to test.load_fixtures Before a model_name had to be specified. Now if a name is not specified, it will load all fixtures inside the fixtures folder.
Lua
mit
Etiene/sailor,mpeterv/sailor,felipedaragon/sailor,Etiene/sailor,felipedaragon/sailor,mpeterv/sailor,sailorproject/sailor
d082c77003c8cfc1429489c99ecf176daf3b09bb
lib/luvit/timer.lua
lib/luvit/timer.lua
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
Fix an issue with closing a wrong timer which could cause the same timmer to be closed twice.
Fix an issue with closing a wrong timer which could cause the same timmer to be closed twice.
Lua
apache-2.0
GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,luvit/luvit,boundary/luvit,bsn069/luvit,rjeli/luvit,sousoux/luvit,zhaozg/luvit,boundary/luvit,kaustavha/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,DBarney/luvit,sousoux/luvit,luvit/luvit,zhaozg/luvit,rjeli/luvit,sousoux/luvit,sousoux/...
d1d7c40be32fce8f878bf72f29e07509a88eee73
pretrained/classify.lua
pretrained/classify.lua
-- -- Copyright (c) 2016, Manuel Araoz -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in th...
-- -- Copyright (c) 2016, Manuel Araoz -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in th...
Run model in evaluate() mode in classify.lua
Run model in evaluate() mode in classify.lua Fixes #28
Lua
bsd-3-clause
ltrottier/pelu.resnet.torch,ltrottier/pelu.resnet.torch
54bc99852636e00ba14a438b8d3d09e5902bcd6f
resources/maps/init.lua
resources/maps/init.lua
-- Chargement des maps -- Dossier des maps local mapsPath = core.atl.Loader.path local path = '.' -- Fonction récursive de chargement local function load(path) -- Tableau local res = {} -- Liste des dossiers local files = love.filesystem.getDirectoryItems(mapsPath .. '/' .. path) print(mapsPath .. '/' ....
-- Chargement des maps return { forest = { [1] = core.atl.Loader.load('/forest/1.tmx') } } --[[ -- Dossier des maps local mapsPath = core.atl.Loader.path local path = '.' -- Fonction récursive de chargement local function load(path) -- Tableau local res = {} -- Liste des dossiers local files = lo...
Correction temporaire d'un bug lorsque le jeu est lancé en version zippée
Correction temporaire d'un bug lorsque le jeu est lancé en version zippée
Lua
mit
etienne-gauvin/projet-tut
0d9de559445dda6e7e9bedc7297254bc7581d53d
reader.lua
reader.lua
#!./kpdfview --[[ KindlePDFViewer: a reader implementation Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of ...
#!./kpdfview --[[ KindlePDFViewer: a reader implementation Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of ...
modify_gamma now use cache correctly
modify_gamma now use cache correctly This exposed small bug in checkcache which checked just page no which didn't get invalidated when closing page, so we now check if page is also not nil
Lua
agpl-3.0
koreader/koreader-base,frankyifei/koreader,Frenzie/koreader-base,frankyifei/koreader-base,poire-z/koreader,mihailim/koreader,Hzj-jie/koreader-base,robert00s/koreader,Frenzie/koreader-base,koreader/koreader-base,pazos/koreader,koreader/koreader,houqp/koreader,Frenzie/koreader-base,Frenzie/koreader,NickSavage/koreader,ko...
824a5172ca4163deaabfe22bac740825301f6aca
private/osx/Users/user/.hydra/init.lua
private/osx/Users/user/.hydra/init.lua
-- Hi! -- Save this as ~/.hydra/init.lua and choose Reload Config from the menu hydra.alert("Hydra config by justmao945 loaded", 1.5) -- Uncomment this if you want Hydra to make sure it launches at login autolaunch.set(true) -- main modkey local modkey = {"cmd", "ctrl"} -- open a repl -- the repl is a Lua prompt;...
-- Hi! -- Save this as ~/.hydra/init.lua and choose Reload Config from the menu hydra.alert("Hydra config by justmao945 loaded", 1.5) -- Uncomment this if you want Hydra to make sure it launches at login autolaunch.set(true) -- main modkey local modkey = {"cmd", "ctrl"} -- open a repl -- the repl is a Lua prompt;...
fix nil error on minimized window
fix nil error on minimized window
Lua
mit
justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab,justmao945/lab
f9fa4a71db078e608da75a0be1fd4d1532237345
src/characters/troy.lua
src/characters/troy.lua
local anim8 = require 'vendor/anim8' local plyr = {} plyr.name = 'troy' plyr.offset = 11 plyr.ow = 6 plyr.costumes = { {name='Troy Barnes', sheet='images/troy.png'}, -- {name='Barry the Plumber', sheet='images/troy_barry.png'}, -- {name='Blanketsburg', sheet='images/troy_blanket.png'}, {name='Bumblebee...
local anim8 = require 'vendor/anim8' local plyr = {} plyr.name = 'troy' plyr.offset = 11 plyr.ow = 6 plyr.costumes = { {name='Troy Barnes', sheet='images/troy.png'}, -- {name='Barry the Plumber', sheet='images/troy_barry.png'}, -- {name='Blanketsburg', sheet='images/troy_blanket.png'}, {name='Bumblebee...
fixed the troy night costume to fit alphabetically
fixed the troy night costume to fit alphabetically
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua
c1b4dab10f6a439943d94a58bbea661b4478cdc4
plugins/lua/env.lua
plugins/lua/env.lua
local ENV = {} -- -- Returns a copy of a table with all current members read-only -- If target is defined, the returned result will be equal to target -- local function ProtectTable( tab, target ) local index = {} local ret = target or {} -- Copy new variables in to our table -- Tables are also protected for k,...
local ENV = {} -- -- Returns a copy of a table with all current members read-only -- If target is defined, the returned result will be equal to target -- local function ProtectTable( tab, target ) local index = {} local ret = target or {} -- Copy new variables in to our table -- Tables are also protected for k,...
Fix tables we don't want protected being protected
Fix tables we don't want protected being protected
Lua
cc0-1.0
mcd1992/hash.js,ModMountain/hash.js,LennyPenny/hash.js,SwadicalRag/hash.js,meepdarknessmeep/hash.js
906e72397075200e8cb8b98bc8b7b7f96d992907
src/datastore/src/Server/DataStore.lua
src/datastore/src/Server/DataStore.lua
--[=[ Wraps the datastore object to provide async cached loading and saving. See [DataStoreStage] for more API. Has the following features * Automatic save * Jitter * De-duplication (only updates data it needs) ```lua local playerMoneyValue = Instance.new("IntValue") playerMoneyValue.Value = 0 local dataSto...
--[=[ Wraps the datastore object to provide async cached loading and saving. See [DataStoreStage] for more API. Has the following features * Automatic save * Jitter * De-duplication (only updates data it needs) ```lua local playerMoneyValue = Instance.new("IntValue") playerMoneyValue.Value = 0 local dataSto...
fix: Add DataStore SetCacheTime (not implemented yet)
fix: Add DataStore SetCacheTime (not implemented yet)
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
14f9c00f28e3fdc2e00012125da3f4c570d566db
wezterm/wezterm.lua
wezterm/wezterm.lua
local wezterm = require 'wezterm' local os = require 'os' local act = wezterm.action local nvtop = { domain = "CurrentPaneDomain", args = {"nvtop"}, } local htop = { domain = "CurrentPaneDomain", args = {"htop"}, } local ytop = { domain = "CurrentPaneDomain", args = {"ytop", "-ps",}, } local cursols = { { key = "...
local wezterm = require 'wezterm' local os = require 'os' local act = wezterm.action local nvtop = { domain = "CurrentPaneDomain", args = {"nvtop"}, } local htop = { domain = "CurrentPaneDomain", args = {"htop"}, } local ytop = { domain = "CurrentPaneDomain", args = {"ytop", "-ps",}, } local cursols = { { key = "...
fix indent for lua-mode
fix indent for lua-mode
Lua
mit
katsyoshi/dotfiles,katsyoshi/dotfiles,katsyoshi/dotfiles
b54d4477924d0271a5e66cfb57d495862c9cfbd2
extensions/websocket/test_websocket.lua
extensions/websocket/test_websocket.lua
local websocket = require "hs.websocket" local timer = require "hs.timer" local doAfter = timer.doAfter -- -- Variables: -- TEST_STRING = "ABC123" ECHO_URL = "wss://echo.websocket.org/" FAKE_URL = "wss://fake.com/" -- -- Test creating a new object: -- function testNew() local we...
local websocket = require "hs.websocket" local timer = require "hs.timer" local doAfter = timer.doAfter -- -- Variables: -- local TEST_STRING = "ABC123" local ECHO_URL = "wss://echo.websocket.org/" local FAKE_URL = "wss://fake.com/" -- -- Test creating a new obje...
Fixed @stickler-ci errors in tests
Fixed @stickler-ci errors in tests
Lua
mit
latenitefilms/hammerspoon,asmagill/hammerspoon,CommandPost/CommandPost-App,Hammerspoon/hammerspoon,Habbie/hammerspoon,Hammerspoon/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,cmsj/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,cmsj/hammers...
349d5416ef357cb9b6e0643ac0aa92be6ae3e89f
core/EventSource.lua
core/EventSource.lua
local assert = assert --- Events can be used for iter object communication. -- Using the vent source mixin makes sense, if can't know which objects may wan't -- to react on an event. Also you don't need to worry about the targets life time, -- since EventSource will automatically forget about targets without any fu...
local assert = assert --- Events can be used for inter object communication. -- This mixin is practical if you can't know which objects may want to react -- on an event. Also you don't need to worry about the targets life time, -- since EventSource will automatically forget about event targets, which have -- no fur...
Fixed spelling mistake in EventSource.
Fixed spelling mistake in EventSource.
Lua
mit
henry4k/konstrukt,henry4k/konstrukt,henry4k/apoapsis,henry4k/apoapsis,henry4k/apoapsis,henry4k/konstrukt
8fc0803ce35dbe2cb4f83b9d73ae3f87c96b30b2
lua/drivers.lua
lua/drivers.lua
local mod = {} local dpdkc = require "dpdkc" local ffi = require "ffi" mod.rte_i40e_pmd = require "driver.i40e" mod.rte_ixgbe_pmd = require "driver.ixgbe" mod.rte_ixgbevf_pmd = require "driver.ixgbevf" mod.rte_igb_pmd = require "driver.igb" mod.rte_virtio_pmd = require "driver.virtio" mod.rte_vmxnet3_pmd = require "d...
local mod = {} local dpdkc = require "dpdkc" local ffi = require "ffi" mod.net_i40e = require "driver.i40e" mod.net_ixgbe = require "driver.ixgbe" mod.net_ixgbevf = require "driver.ixgbevf" mod.net_igb = require "driver.igb" mod.net_virtio = require "driver.virtio" mod.net_vmxnet3 = require "driver.vmxnet3" function...
fix driver names for dpdk 17.05
fix driver names for dpdk 17.05
Lua
mit
libmoon/libmoon,emmericp/libmoon,scholzd/libmoon,emmericp/libmoon,libmoon/libmoon,scholzd/libmoon,emmericp/libmoon,libmoon/libmoon,scholzd/libmoon
ab442c2434f647d41d8bdfdab6e6e1a4110f3350
frontend/gettext.lua
frontend/gettext.lua
local isAndroid, android = pcall(require, "android") local DEBUG = require("dbg") local GetText = { translation = {}, current_lang = "C", dirname = "l10n", textdomain = "koreader" } local GetText_mt = { __index = {} } function GetText_mt.__call(gettext, string) return gettext.translation[stri...
local isAndroid, android = pcall(require, "android") local DEBUG = require("dbg") local GetText = { translation = {}, current_lang = "C", dirname = "l10n", textdomain = "koreader" } local GetText_mt = { __index = {} } function GetText_mt.__call(gettext, string) return gettext.translation[stri...
gettext: unescape \n
gettext: unescape \n Fixes the problem that any msgid with \n in it wouldn't show up translated.
Lua
agpl-3.0
Hzj-jie/koreader,poire-z/koreader,ashhher3/koreader,mihailim/koreader,Frenzie/koreader,mwoz123/koreader,chihyang/koreader,apletnev/koreader,koreader/koreader,frankyifei/koreader,lgeek/koreader,houqp/koreader,Markismus/koreader,noname007/koreader,poire-z/koreader,pazos/koreader,chrox/koreader,Frenzie/koreader,ashang/kor...
1f93dfb5f81f5bf03ef1eb5d8152bdbe45936bf0
dotfiles/nvim/init.lua
dotfiles/nvim/init.lua
-- functions that are not behavior added to the editor local u = require('utils') -- shotcuts to common functions local api = vim.api -- nvim api access local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to acce...
-- functions that are not behavior added to the editor local u = require('utils') -- shotcuts to common functions local api = vim.api -- nvim api access local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local fn = vim.fn -- to call Vim functions e.g. fn.bufnr() local g = vim.g -- a table to acce...
Fix c-p trigger before a word
Fix c-p trigger before a word If the cursor (_) is in position: _some-world and we hit TAB, we should issue a TAB and not auto-complete. If the cursor is in position: some_ than we should issue a auto-comple.
Lua
mit
mavcunha/bash,mavcunha/bash
9214c9fbb357f3b3dfd920277ddf1f1ac8296645
MMOCoreORB/bin/scripts/mobile/lok/nym_pirate_weak.lua
MMOCoreORB/bin/scripts/mobile/lok/nym_pirate_weak.lua
nym_pirate_weak = Creature:new { objectName = "@mob/creature_names:nym_pirate_weak", socialGroup = "Nym", pvpFaction = "Nym", faction = "", level = 26, chanceHit = 0.36, damageMin = 250, damageMax = 260, baseXp = 2730, baseHAM = 7700, baseHAMmax = 9400, armor = 0, resists = {25,10,25,25,25,-1,...
nym_pirate_weak = Creature:new { objectName = "@mob/creature_names:nym_pirate_weak", socialGroup = "Nym", pvpFaction = "Nym", faction = "", level = 26, chanceHit = 0.36, damageMin = 250, damageMax = 260, baseXp = 2730, baseHAM = 7700, baseHAMmax = 9400, armor = 0, resists = {25,10,25,25,25,-1,...
[fixed] wrong nym_pirate_weak template
[fixed] wrong nym_pirate_weak template git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4823 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/lege...
e274df6f7d81d50330bd7df404606d4f38651066
dotfiles/config/nvim/lua/keymapping.lua
dotfiles/config/nvim/lua/keymapping.lua
local function map(mode, lhs, rhs, options) vim.api.nvim_set_keymap(mode, lhs, rhs, vim.tbl_extend("force", { noremap = true, silent = true, }, options or {})) end local function map_plug(mode, lhs, rhs) map(mode, lhs, rhs, {noremap = false}) end -- Leader key map("", "<Space>", "<Nop>") vim.g.mapleade...
local function map(mode, lhs, rhs, options) vim.api.nvim_set_keymap(mode, lhs, rhs, vim.tbl_extend("force", { noremap = true, silent = true, }, options or {})) end local function map_plug(mode, lhs, rhs) map(mode, lhs, rhs, {noremap = false}) end -- Leader key map("", "<Space>", "<Nop>") vim.g.mapleade...
Fix vim rename refactor key map
Fix vim rename refactor key map
Lua
mit
davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles
cea40ec902a0772f055c2e505b9b6632947a7ab9
frontend/ui/device.lua
frontend/ui/device.lua
Device = { screen_saver_mode = false, charging_mode = false, survive_screen_saver = false, touch_dev = nil, model = nil, firmware_rev = nil, frontlight = nil, } BaseFrontLight = { min = 1, max = 10, intensity = nil, } KindleFrontLight = { min = 0, max = 24, kpw_fl = "/sys/devices/system/fl_tps6116x/fl_tps6...
Device = { screen_saver_mode = false, charging_mode = false, survive_screen_saver = false, touch_dev = nil, model = nil, firmware_rev = nil, frontlight = nil, } BaseFrontLight = { min = 1, max = 10, intensity = nil, } KindleFrontLight = { min = 0, max = 24, kpw_fl = "/sys/devices/system/fl_tps6116x/fl_tps6...
Fixes for light.
Fixes for light.
Lua
agpl-3.0
chihyang/koreader,ashang/koreader,apletnev/koreader,mwoz123/koreader,houqp/koreader,frankyifei/koreader,poire-z/koreader,chrox/koreader,koreader/koreader,pazos/koreader,lgeek/koreader,Frenzie/koreader,Markismus/koreader,ashhher3/koreader,robert00s/koreader,NiLuJe/koreader,poire-z/koreader,NiLuJe/koreader,mihailim/korea...
5661954c35570f67148f096c209ac679f9742a1b
share/lua/meta/art/01_musicbrainz.lua
share/lua/meta/art/01_musicbrainz.lua
--[[ Gets an artwork from amazon $Id$ Copyright © 2007-2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ve...
--[[ Gets an artwork from amazon $Id$ Copyright © 2007-2010 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ve...
lua: fix fuzzy musicbrainz search and use " " around title/artists
lua: fix fuzzy musicbrainz search and use " " around title/artists
Lua
lgpl-2.1
shyamalschandra/vlc,xkfz007/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,vlc-mirror/vlc,krichter722/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,shya...
0ae87791d28dcdae40d736259cf5939ba820b02d
durden/clipboard.lua
durden/clipboard.lua
-- Copyright: 2015, Björn Ståhl -- License: 3-Clause BSD -- Reference: http://durden.arcan-fe.com -- -- Description: Basic clipboard handling, currently text only but there's -- little stopping us from using more advanced input and output formats. -- clipboard_debug = suppl_add_logfn("clipboard"); local function clip...
-- Copyright: 2015-2019, Björn Ståhl -- License: 3-Clause BSD -- Reference: http://durden.arcan-fe.com -- Description: Basic clipboard handling, currently text only but there's -- little stopping us from using more advanced input and output formats. -- local clipboard_debug if suppl_add_logfn then clipboard_debug = su...
clipboard logging fixes
clipboard logging fixes
Lua
bsd-3-clause
letoram/durden
b7de7caadf5b07f819f3e483f0f1712d06d9facc
packages/masters.lua
packages/masters.lua
if not SILE.scratch.masters then SILE.scratch.masters = {} end local _currentMaster local function defineMaster (_, args) SU.required(args, "id", "defining master") SU.required(args, "frames", "defining master") SU.required(args, "firstContentFrame", "defining master") SILE.scratch.masters[args.id] = { fram...
if not SILE.scratch.masters then SILE.scratch.masters = {} end local _currentMaster local function defineMaster (_, args) SU.required(args, "id", "defining master") SU.required(args, "frames", "defining master") SU.required(args, "firstContentFrame", "defining master") SILE.scratch.masters[args.id] = { fram...
fix(packages): Don't destroy frames when defining masters, only when switching to one
fix(packages): Don't destroy frames when defining masters, only when switching to one
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
cdd55a16f197d2716f0711d1f3e86cd28c105469
minetestforfun_game/mods/sethome/init.lua
minetestforfun_game/mods/sethome/init.lua
local real_homes_file = minetest.get_worldpath() .. "/real_homes" local nether_homes_file = minetest.get_worldpath() .. "/nether_homes" local homepos = {real = {},nether = {}} local function loadhomes() local input = io.open(real_homes_file, "r") if input then repeat local x = input:read("*n") ...
local real_homes_file = minetest.get_worldpath() .. "/real_homes" local nether_homes_file = minetest.get_worldpath() .. "/nether_homes" local homepos = {real = {},nether = {}} local function loadhomes() local input = io.open(real_homes_file, "r") if input then repeat local x = input:read("*n") ...
Home fix - Now using nether_players file
Home fix - Now using nether_players file
Lua
unlicense
crabman77/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,crabman77/minetest-minetestforfun-server,paly2/minetest-minetestforfun-server,LeMagnesium/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Mi...
3ecec3ddbf9bdec6cab0a775f4f419ec4a862369
applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
applications/siitwizard: - fix default lan ip - make ip and netmask depend on client mode
applications/siitwizard: - fix default lan ip - make ip and netmask depend on client mode
Lua
apache-2.0
florian-shellfire/luci,thesabbir/luci,ff94315/luci-1,NeoRaider/luci,kuoruan/lede-luci,Wedmer/luci,kuoruan/luci,RedSnake64/openwrt-luci-packages,hnyman/luci,lcf258/openwrtcn,urueedi/luci,opentechinstitute/luci,cappiewu/luci,urueedi/luci,opentechinstitute/luci,nmav/luci,artynet/luci,aa65535/luci,schidler/ionic-luci,nmav/...
934d3ac0dc97e8a7ee65473109d26446b5ce77ed
src/observablecollection/src/Shared/ObservableSet.lua
src/observablecollection/src/Shared/ObservableSet.lua
--[=[ A list that can be observed for blend and other components @class ObservableSet ]=] local require = require(script.Parent.loader).load(script) local Signal = require("Signal") local Observable = require("Observable") local Maid = require("Maid") local Brio = require("Brio") local RxValueBaseUtils = require("R...
--[=[ A list that can be observed for blend and other components @class ObservableSet ]=] local require = require(script.Parent.loader).load(script) local Signal = require("Signal") local Observable = require("Observable") local Maid = require("Maid") local Brio = require("Brio") local RxValueBaseUtils = require("R...
fix: Do not error if observable set is already cleaned up, but we're removing
fix: Do not error if observable set is already cleaned up, but we're removing
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
ecde3d18fe9c87c563c39f81454e493aa6d6d4fc
packages/lime-system/files/usr/lib/lua/lime/proto/batadv.lua
packages/lime-system/files/usr/lib/lua/lime/proto/batadv.lua
#!/usr/bin/lua batadv = {} function batadv.setup_interface(interface, ifname) uci:set("network", interface, "interface") uci:set("network", interface, "ifname", ifname) uci:set("network", interface, "proto", "batadv") uci:set("network", interface, "mesh", "bat0") uci:set("network", interface, "mtu...
#!/usr/bin/lua batadv = {} function batadv.setup_interface(interface, ifname) uci:set("network", interface, "interface") uci:set("network", interface, "ifname", ifname) uci:set("network", interface, "proto", "batadv") uci:set("network", interface, "mesh", "bat0") uci:set("network", interface, "mtu...
bugfixes in batadv.lua: create /etc/config/batman-adv if nonexistant, and fix typo on bridge_loop_avoidance option
bugfixes in batadv.lua: create /etc/config/batman-adv if nonexistant, and fix typo on bridge_loop_avoidance option
Lua
agpl-3.0
p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages
7a310e81f67ea019ad610e4f7107fb497094ece8
mods/mapfix/init.lua
mods/mapfix/init.lua
local function mapfix(minp, maxp) local vm = minetest.get_voxel_manip(minp, maxp) vm:update_liquids() vm:write_to_map() vm:update_map() end local previous = -math.huge local default_size = tonumber(minetest.setting_get("mapfix_default_size")) or 40 local max_size = tonumber(minetest.setting_get("mapfix_max_size")...
local function mapfix(minp, maxp) local vm = minetest.get_voxel_manip(minp, maxp) vm:update_liquids() vm:write_to_map() vm:update_map() end local previous = os.time() local default_size = tonumber(minetest.setting_get("mapfix_default_size")) or 40 local max_size = tonumber(minetest.setting_get("mapfix_max_size"))...
[mapfix] Update
[mapfix] Update
Lua
unlicense
MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative,MinetestForFun/server-minetestforfun-creative
20b5d7d26a8aa6ecc2880f56d7298c18b1165a97
extensions/osascript/test_javascript.lua
extensions/osascript/test_javascript.lua
hs.osascript = require("hs.osascript") function testJavaScriptParseError() local js = "2 +" local status, object, descriptor = hs.osascript.javascript(js) assertFalse(status) assertIsEqual(descriptor.OSAScriptErrorBriefMessageKey, "Error on line 1: SyntaxError: Unexpected end of script") return success() end...
hs.osascript = require("hs.osascript") function testJavaScriptParseError() local js = "2 +" local status, object, descriptor = hs.osascript.javascript(js) assertFalse(status) assertIsEqual(descriptor.OSAScriptErrorBriefMessageKey, "Error on line 1: SyntaxError: Unexpected end of script") return success() end...
Fixed bug in testJavaScriptJsonParseError
Fixed bug in testJavaScriptJsonParseError
Lua
mit
latenitefilms/hammerspoon,Habbie/hammerspoon,Hammerspoon/hammerspoon,cmsj/hammerspoon,cmsj/hammerspoon,latenitefilms/hammerspoon,Hammerspoon/hammerspoon,latenitefilms/hammerspoon,latenitefilms/hammerspoon,CommandPost/CommandPost-App,latenitefilms/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,cmsj/hammerspoon,Habbie/h...
9ea1eb91f7e87cea210e0a0216cf3e9a35a55b32
levent/socket.lua
levent/socket.lua
--[[ -- author: xjdrew -- date: 2014-07-17 --]] local c = require "levent.socket.c" local errno = require "levent.errno.c" local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local closed_socket = setmetatable({}, {__index = function(t, key) ...
--[[ -- author: xjdrew -- date: 2014-07-17 --]] local c = require "levent.socket.c" local errno = require "levent.errno.c" local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local closed_socket = setmetatable({}, {__index = function(t, key) ...
bugfix: first connect return EINPROGRESS and then return EISCONN
bugfix: first connect return EINPROGRESS and then return EISCONN
Lua
mit
xjdrew/levent
38dc71af93d1ee72351f63c4329a1d23604375f3
modules/admin-full/luasrc/model/cbi/admin_network/network.lua
modules/admin-full/luasrc/model/cbi/admin_network/network.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
Add support for changing ULA prefix
Add support for changing ULA prefix git-svn-id: b12fe9853c2c9793030bd743626f1e993aa2455c@9849 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
opentechinstitute/luci-commotion-linux,opentechinstitute/luci-commotion-linux,opentechinstitute/luci-commotion-linux,opentechinstitute/luci-commotion-linux,opentechinstitute/luci-commotion-linux,opentechinstitute/luci-commotion-linux
2bfe7bca4175b839fea5018b6397a9c1d268a741
src/lluv/websocket/luasocket.lua
src/lluv/websocket/luasocket.lua
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-websocket library. -- ...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-websocket library. -- ...
Fix. support close LuaSocket socket from main thread.
Fix. support close LuaSocket socket from main thread.
Lua
mit
moteus/lua-lluv-websocket,moteus/lua-lluv-websocket,moteus/lua-lluv-websocket
8567eabec1e2365d78d96b611e1350e9da416836
tests/actions/make/cpp/test_make_pch.lua
tests/actions/make/cpp/test_make_pch.lua
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
-- -- tests/actions/make/cpp/test_make_pch.lua -- Validate the setup for precompiled headers in makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_pch") local make = premake.make local project = premake.project -- -- Setup and teardown -- local sln, ...
Fix makefile unit tests broken by previous commits
Fix makefile unit tests broken by previous commits
Lua
bsd-3-clause
annulen/premake,annulen/premake,warrenseine/premake,warrenseine/premake,annulen/premake,warrenseine/premake,annulen/premake
f8aefd51194853c1a0e46c2b8954facbeaa8abbb
View.lua
View.lua
local Object = require "Object" local View = Object:clone() -- a view of one or more nodes in the media library -- a view has a title and icon (displayed at the top), and a list of nodes -- (displayed in the main window) which the user can scroll through. It -- also needs to remember where it is in that list so that i...
local Object = require "Object" local View = Object:clone() -- a view of one or more nodes in the media library -- a view has a title and icon (displayed at the top), and a list of nodes -- (displayed in the main window) which the user can scroll through. It -- also needs to remember where it is in that list so that i...
Temporary fix for "invalid utf8" crash when displaying utf8 filenames
Temporary fix for "invalid utf8" crash when displaying utf8 filenames The filename in question includes the text "Que Será Será" and is, as far as I can tell, valid UTF-8.
Lua
mit
ToxicFrog/EmuFun
e8168fb4c9e6055d7436966979eb2a15346b57ac
script/c42421606.lua
script/c42421606.lua
--Number 85: Crazy Box function c42421606.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,4),2) c:EnableReviveLimit() --cannot attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_ATTACK) c:RegisterEffect(e1) --dice local e2=Effect.Create...
--Number 85: Crazy Box function c42421606.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,4),2) c:EnableReviveLimit() --cannot attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_ATTACK) c:RegisterEffect(e1) --dice local e2=Effect.Create...
fixed not negating when targeting itself
fixed not negating when targeting itself
Lua
mit
sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher
f46a3cdf539c01f6fac322d4cf25e4b373a33574
LogisticsWagons/wagons/requesterwagon.lua
LogisticsWagons/wagons/requesterwagon.lua
-- passive logistics wagon local class = require 'middleclass' RequesterWagon = class('RequesterWagon',ProxyWagon) function RequesterWagon:initialize(parent,data) debugLog("RequesterWagon:initialize") ProxyWagon.initialize(self, parent, data) self.wagonType = "RequesterWagon" if(data ~= nil) then d...
-- passive logistics wagon local class = require 'middleclass' RequesterWagon = class('RequesterWagon',ProxyWagon) function RequesterWagon:initialize(parent,data) debugLog("RequesterWagon:initialize") ProxyWagon.initialize(self, parent, data) self.wagonType = "RequesterWagon" if(data ~= nil) then d...
Fixed requester wagons
Fixed requester wagons Entity data is not available when onsave event has been called. At that point the data isn't userdata any more but rather magic and API calls won't work on them.
Lua
mit
gnzzz/Factorio-Logistics-Wagons
77572b13126625b88275114b2d6cb065e0d2353d
plugins/lua/init.lua
plugins/lua/init.lua
require "superstring" ENV = require "env" ::start:: -- -- Indicate that we are ready to receive a packet -- io.write( "\n\x1A" ); io.flush() -- -- Read until EOF -- local code = io.read "a" -- -- Only display errors if the code starts with ">" -- local silent_error = true if code:sub( 1, 1 ) == ">" then code = ...
require "superstring" ENV = require "env" ::start:: -- -- Indicate that we are ready to receive a packet -- io.write( "\n\x1A" ); io.flush() -- -- Read until EOF -- local code = io.read "a" -- -- Only display errors if the code starts with ">" -- local silent_error = true if code:sub( 1, 1 ) == ">" then code = ...
Fix for __tostring metamethods that error
Fix for __tostring metamethods that error
Lua
cc0-1.0
SwadicalRag/hash.js,mcd1992/hash.js,ModMountain/hash.js,meepdarknessmeep/hash.js
72c4b938d61699b28182e24ab92a2fb1c43b556c
hostinfo/cve.lua
hostinfo/cve.lua
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(hostinfo/cve): Fix for cve serialization problem. Closes #905
fix(hostinfo/cve): Fix for cve serialization problem. Closes #905
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent
925e15c3dd9f36356ecede1ae72e5f3fa7e8ac63
examples/l2-poisson-load-latency.lua
examples/l2-poisson-load-latency.lua
local mg = require "moongen" local memory = require "memory" local ts = require "timestamping" local device = require "device" local filter = require "filter" local stats = require "stats" local timer = require "timer" local histogram = require "histogram" local log = require "log" ...
local mg = require "moongen" local memory = require "memory" local ts = require "timestamping" local device = require "device" local stats = require "stats" local timer = require "timer" local histogram = require "histogram" local log = require "log" local PKT_SIZE = 60 function conf...
examples: remove deprecated filter API call
examples: remove deprecated filter API call fixes #178
Lua
mit
gallenmu/MoonGen,dschoeffm/MoonGen,emmericp/MoonGen,emmericp/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen,scholzd/MoonGen
a9a19ba5aef882d8d464fa3b14f8c5730a54c018
controller/utils.lua
controller/utils.lua
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end -- translate a raw value through a lookup table of { {rawval, translation} } -- interpolating between closest values function translate(rawval, lookup_ta...
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end function finite(x) local inf = 1/0 return x and (x == x) and (x ~= inf ) and (x ~= -inf) end -- translate a raw value through a lookup table of { {ra...
Fix bug where translate(-1, table) gave -inf result (now gives 0)
Fix bug where translate(-1, table) gave -inf result (now gives 0)
Lua
mit
makehackvoid/MHV-Space-Probe
78d2d6a5bc86c3cdf793147d144beab3116069d8
packages/pdf.lua
packages/pdf.lua
if SILE.outputter ~= SILE.outputters.libtexpdf then SU.error("pdf package requires libtexpdf backend") end local pdf = require("justenoughlibtexpdf") SILE.registerCommand("pdf:destination", function (options, content) local name = SU.required(options, "name", "pdf:bookmark") SILE.typesetter:pushHbox({ value ...
if SILE.outputter ~= SILE.outputters.libtexpdf then SU.error("pdf package requires libtexpdf backend") end local pdf = require("justenoughlibtexpdf") SILE.registerCommand("pdf:destination", function (options, content) local name = SU.required(options, "name", "pdf:bookmark") SILE.typesetter:pushHbox({ value ...
Ensure PDF device is available before calling PDF-specific commands. Fixes #556.
Ensure PDF device is available before calling PDF-specific commands. Fixes #556.
Lua
mit
simoncozens/sile,alerque/sile,simoncozens/sile,alerque/sile,alerque/sile,simoncozens/sile,simoncozens/sile,alerque/sile
a19e87b53f32cdd1e096266d49b35f6a6576f589
swig/ft/hello_ft.lua
swig/ft/hello_ft.lua
local ft = require("swig_freetype") local hb = require("swig_hb") local hb_ft = require("swig_hb_ft") local hb_glib = require("swig_hb_glib") local cairo = require("swig_cairo") local cairo_xcb = require("swig_cairo_xcb") local cairo_ft = require("swig_cairo_ft") local xcb = require("swig_xcb") --for k,v in pairs(ft) ...
local ft = require("swig_freetype") local hb = require("swig_hb") local hb_ft = require("swig_hb_ft") local hb_glib = require("swig_hb_glib") local cairo = require("swig_cairo") local cairo_xcb = require("swig_cairo_xcb") local cairo_ft = require("swig_cairo_ft") local xcb = require("swig_xcb") --for k,v in pairs(ft) ...
fixed y advance, but non-english still not displaying
fixed y advance, but non-english still not displaying
Lua
mit
juanchanco/lua-xcb,juanchanco/lua-xcb,juanchanco/lua-xcb
14ea0ed08072f0720a53a809610535381ad25758
main.lua
main.lua
-------------------------------------------------------------------------------- -- Copyright (c) 2015 Jason Lynch <jason@calindora.com> -- -- 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 ...
-------------------------------------------------------------------------------- -- Copyright (c) 2015 Jason Lynch <jason@calindora.com> -- -- 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 ...
Fix creating log files for random seeds.
Fix creating log files for random seeds. Signed-off-by: Jason Lynch <68c46a606457643eab92053c1c05574abb26f861@calindora.com>
Lua
mit
aexoden/edge
8b3e9a1df0566bb40b750331d174c0d247e6c414
share/lua/playlist/appletrailers.lua
share/lua/playlist/appletrailers.lua
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $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...
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $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...
appleplaylist.lua: fix apple trailers again, change useragent
appleplaylist.lua: fix apple trailers again, change useragent Seems that they changed just on trailers page, that if useragent doesn't contain QuickTime, it gives redirect back to trailers. So get stuff from movies again, but tell useragent to be "QuickTime vlc lua edition". Really if apple doesn't want vlc to be use...
Lua
lgpl-2.1
xkfz007/vlc,krichter722/vlc,xkfz007/vlc,krichter722/vlc,xkfz007/vlc,shyamalschandra/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,krichter722/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,jomanmuk/...
005f71e5131e568ca3efd96312ff00876b9a2c20
src/main/resources/std/coroutine.lua
src/main/resources/std/coroutine.lua
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. You may obtain a copy of -- the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law ...
-- Copyright (c) 2018. tangzx(love.tangzx@qq.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. You may obtain a copy of -- the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law ...
fix optional params
fix optional params
Lua
apache-2.0
tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua
19ca56c24f450ea090541d29f8db7cb807ca506d
src/luarocks/command_line.lua
src/luarocks/command_line.lua
--- Functions for command-line scripts. --module("luarocks.command_line", package.seeall) local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = requ...
--- Functions for command-line scripts. --module("luarocks.command_line", package.seeall) local command_line = {} local unpack = unpack or table.unpack local util = require("luarocks.util") local cfg = require("luarocks.cfg") local path = require("luarocks.path") local dir = require("luarocks.dir") local deps = requ...
Actually direct users to the bug tracker
Actually direct users to the bug tracker For some reason 53e0c65 didn't take effect.
Lua
mit
luarocks/luarocks,xpol/luarocks,ignacio/luarocks,aryajur/luarocks,usstwxy/luarocks,coderstudy/luarocks,keplerproject/luarocks,luarocks/luarocks,xpol/luainstaller,coderstudy/luarocks,xpol/luarocks,keplerproject/luarocks,xpol/luavm,xpol/luavm,aryajur/luarocks,ignacio/luarocks,rrthomas/luarocks,starius/luarocks,xpol/luaro...
e541fd034d3a714156bc42d50baa4c7b1ee775b1
src/modeltransparencyeffect/src/Client/ModelTransparencyEffect.lua
src/modeltransparencyeffect/src/Client/ModelTransparencyEffect.lua
--- Allows a model to have transparent set locally on the client -- @classmod ModelTransparencyEffect -- @author Quenty local require = require(script.Parent.loader).load(script) local AccelTween = require("AccelTween") local BaseObject = require("BaseObject") local StepUtils = require("StepUtils") local Transparency...
--- Allows a model to have transparent set locally on the client -- @classmod ModelTransparencyEffect -- @author Quenty local require = require(script.Parent.loader).load(script) local AccelTween = require("AccelTween") local BaseObject = require("BaseObject") local StepUtils = require("StepUtils") local Transparency...
fix: ModelTransparencyEffect works with new service bag
fix: ModelTransparencyEffect works with new service bag
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
28463d03e0e309e79e68ffe0ca61b9d40745d6d4
nvim/lua/user/lsp/handlers.lua
nvim/lua/user/lsp/handlers.lua
local M = {} -- TODO: backfill this to template M.setup = function() local signs = { { name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignWarn", text = "" }, { name = "DiagnosticSignHint", text = "" }, { name = "DiagnosticSignInfo", text = "" }, } for _, sign in ipairs(signs)...
local M = {} -- TODO: backfill this to template M.setup = function() local signs = { { name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignWarn", text = "" }, { name = "DiagnosticSignHint", text = "" }, { name = "DiagnosticSignInfo", text = "" }, } for _, sign in ipairs(signs)...
Fix lsp deprecation warnings
Fix lsp deprecation warnings ...unclear whether capabilities are really working, though
Lua
mit
sax/dotfiles,sax/dotfiles
dccd49b652d03bf8ec752d24c2da377e551cf829
plugins/opds.koplugin/main.lua
plugins/opds.koplugin/main.lua
local Dispatcher = require("dispatcher") local UIManager = require("ui/uimanager") local WidgetContainer = require("ui/widget/container/widgetcontainer") local _ = require("gettext") local OPDS = WidgetContainer:new{ name = "opds", is_doc_only = false, } function OPDS:onDispatcherRegisterActions() Dispatc...
local Dispatcher = require("dispatcher") local UIManager = require("ui/uimanager") local WidgetContainer = require("ui/widget/container/widgetcontainer") local _ = require("gettext") local OPDS = WidgetContainer:new{ name = "opds", is_doc_only = false, } function OPDS:onDispatcherRegisterActions() Dispatc...
[fix] OPDS catalog invoked from reader: crash KOReader on close (#7825)
[fix] OPDS catalog invoked from reader: crash KOReader on close (#7825) OPDS catalog can be invoked from reader with gesture. Then on closing OPDS catalog, KOReader crashes. Let's jump to the download folder instead. Closes #7784.
Lua
agpl-3.0
Frenzie/koreader,NiLuJe/koreader,poire-z/koreader,koreader/koreader,poire-z/koreader,Frenzie/koreader,koreader/koreader,NiLuJe/koreader
f43eb8bb578b09e14774dabcd2e753d17488ff45
src/program/snabbnfv/traffic/traffic.lua
src/program/snabbnfv/traffic/traffic.lua
module(..., package.seeall) local lib = require("core.lib") local nfvconfig = require("program.snabbnfv.nfvconfig") local usage = require("program.snabbnfv.traffic.README_inc") local ffi = require("ffi") local C = ffi.C local timer = require("core.timer") local pci = require("lib.hardware.pci") local long_opts = { ...
module(..., package.seeall) local lib = require("core.lib") local nfvconfig = require("program.snabbnfv.nfvconfig") local usage = require("program.snabbnfv.traffic.README_inc") local ffi = require("ffi") local C = ffi.C local timer = require("core.timer") local pci = require("lib.hardware.pci") local long_opts = { ...
[snabbnfv traffic] Fix benchmark mode.
[snabbnfv traffic] Fix benchmark mode.
Lua
apache-2.0
Igalia/snabb,dpino/snabbswitch,Igalia/snabbswitch,pirate/snabbswitch,alexandergall/snabbswitch,kbara/snabb,mixflowtech/logsensor,SnabbCo/snabbswitch,heryii/snabb,aperezdc/snabbswitch,wingo/snabb,hb9cwp/snabbswitch,eugeneia/snabb,pavel-odintsov/snabbswitch,snabbco/snabb,dpino/snabb,Igalia/snabb,wingo/snabbswitch,heryii/...
b1fc5d7331592b1158b4e0119d93b958b8b37832
Skins/ModernGadgets/@Resources/Scripts/SettingsBackups.lua
Skins/ModernGadgets/@Resources/Scripts/SettingsBackups.lua
-- MODERNGADGETS SETTINGS BACKUP SCRIPT -- -- This script makes backups of the settings files every two hours, which -- prevents them from being lost when updating the suite. isDbg = true function Initialize() fileNames = { 'GlobalSettings.inc', 'CpuSettings.inc', 'NetworkSettings.i...
-- MODERNGADGETS SETTINGS BACKUP SCRIPT -- -- This script makes backups of the settings files every two hours, which -- prevents them from being lost when updating the suite. isDbg = true function Initialize() fileNames = { 'GlobalSettings.inc', 'CpuSettings.inc', 'NetworkSettings.i...
Fixed setup skin not creating initial backup
Fixed setup skin not creating initial backup
Lua
mit
iamanai/ModernGadgets,raiguard/ModernGadgets,iamanai/ModernGadgets,raiguard/ModernGadgets,raiguard/ModernGadgets
75816a0746ff32039aea4733c2cb49aaaa9e752b
game/dota_addons/junglenational/scripts/vscripts/internal/events.lua
game/dota_addons/junglenational/scripts/vscripts/internal/events.lua
-- The overall game state has changed function JungleNational:_OnGameRulesStateChange(keys) if JungleNational._reentrantCheck then return end local newState = GameRules:State_Get() if newState == DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD then self.bSeenWaitForPlayers = true elseif newState == DOT...
-- The overall game state has changed function JungleNational:_OnGameRulesStateChange(keys) if JungleNational._reentrantCheck then return end local newState = GameRules:State_Get() if newState == DOTA_GAMERULES_STATE_WAIT_FOR_PLAYERS_TO_LOAD then self.bSeenWaitForPlayers = true elseif newState == DOT...
Fix #2 Check killedUnit team on NPC death
Fix #2 Check killedUnit team on NPC death Instead of setting the killerEntity's team as the game winner, check the killedUnit's team and take the opposite
Lua
mit
Crazy-Duck/junglenational
a506f28ed40e0a028c737e8d03193f66be03359a
nvim/lua/plugins.lua
nvim/lua/plugins.lua
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local g = vim.g -- a table to access global variables cmd([[packadd packer.nvim]]) return require('packer').startup(function() -- plugin management use('wbthomason/packer.nvim') -- treesitter (LSP) use({ 'nvim-treesitter/nvim-treesitter', run = '...
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd') local g = vim.g -- a table to access global variables cmd([[packadd packer.nvim]]) return require('packer').startup(function() -- plugin management use('wbthomason/packer.nvim') -- treesitter (LSP) use({ 'nvim-treesitter/nvim-treesitter', run = '...
fix: use ; with lightspeed
fix: use ; with lightspeed
Lua
mit
drmohundro/dotfiles
283cac93e1ab90dfa0886ce31450c4c7849d7b53
nvim/lua/plugins.lua
nvim/lua/plugins.lua
return require('packer').startup(function() use('wbthomason/packer.nvim') use('folke/tokyonight.nvim') -- -- nvim dependencies -- use('nvim-lua/plenary.nvim') use('kyazdani42/nvim-web-devicons') use('tami5/sqlite.lua') -- -- nvim plugins -- use({ 'nvim-treesitter/nvim-treesitter', ru...
return require('packer').startup(function() use('wbthomason/packer.nvim') use('folke/tokyonight.nvim') -- -- nvim dependencies -- use('nvim-lua/plenary.nvim') use('kyazdani42/nvim-web-devicons') use('tami5/sqlite.lua') -- -- nvim plugins -- use({ 'nvim-treesitter/nvim-treesitter', ru...
fixed dependency
fixed dependency
Lua
mit
rkoval/dotfiles,rkoval/dotfiles,rkoval/dotfiles
88f138b0da91220fa0009772e550de9f521c8014
src/premake/SchemaCompiler.lua
src/premake/SchemaCompiler.lua
filter "files:**.fbs" buildmessage "flatc: Compiling %{file.relpath}" buildcommands { 'flatc -c -o "../../PGTA/public/schema" %{file.relpath}', 'SchemaCompiler %{file.relpath}' } buildoutputs "" filter {} project "SchemaCompiler" kind "ConsoleApp" dependson "flatc" file...
filter "files:**.fbs" buildmessage "flatc: Compiling %{file.relpath}" buildcommands { 'flatc -c -o "../../PGTA/public/schema" %{file.relpath}', 'SchemaCompiler %{file.relpath}' } buildoutputs "" filter {} local function TOUCH(file) if(os.get() == "windows") then return ...
Fix for mac/linux build
Fix for mac/linux build
Lua
mit
PGTA/PGTA,PGTA/PGTA,PGTA/PGTA
2d88bd5ac4efee5e404203d182b064f330aa04ef
MMOCoreORB/bin/scripts/object/tangible/deed/guild_deed/guild_deeds.lua
MMOCoreORB/bin/scripts/object/tangible/deed/guild_deed/guild_deeds.lua
object_tangible_deed_guild_deed_corellia_guild_deed = object_tangible_deed_guild_deed_shared_corellia_guild_deed:new { templateType = DEED, generatedObjectTemplate = "object/building/player/shared_player_guildhall_corellia_style_01.iff", maxCondition = 0 } ObjectTemplates:addTemplate(object_tangible_deed_guild_deed...
object_tangible_deed_guild_deed_corellia_guild_deed = object_tangible_deed_guild_deed_shared_corellia_guild_deed:new { templateType = DEED, generatedObjectTemplate = "object/building/player/player_guildhall_corellia_style_01.iff", maxCondition = 0 } ObjectTemplates:addTemplate(object_tangible_deed_guild_deed_corell...
[fixed] Guild halls now use server template instead of client template
[fixed] Guild halls now use server template instead of client template git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@2077 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2...
fce3d5083abee6c6f18f2a8bc3172bdffc6e97e9
vanilla/v/router.lua
vanilla/v/router.lua
-- perf local error = error local tconcat = table.concat local function tappend(t, v) t[#t+1] = v end local simple_route = require 'vanilla.v.routes.simple' -- init Router and set routes local Router = {} function Router:new(request) local instance = { routes = {simple_route:new(request)} } setmetatable(inst...
-- perf local error = error local tconcat = table.concat local function tappend(t, v) t[#t+1] = v end local simple_route = require 'vanilla.v.routes.simple' -- init Router and set routes local Router = {} function Router:new(request) local instance = { routes = {simple_route:new(request)} } setmetatable(inst...
fix a router bug about controller action check
fix a router bug about controller action check
Lua
mit
idevz/vanilla,idevz/vanilla
b5defe6670b0245ba1017a9997aa83e9513ec9b9
script/c80400029.lua
script/c80400029.lua
--サイバー・ネットワーク function c80400029.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c80400029.ncon) e1:SetTarget(c80400029.ntg) c:RegisterEffect(e1) --Activate2 local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_ACTIVA...
--サイバー・ネットワーク function c80400029.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c80400029.ncon) e1:SetTarget(c80400029.ntg) c:RegisterEffect(e1) --Activate2 local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_ACTIVA...
Cyber Network fix
Cyber Network fix
Lua
mit
SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher
cf718f401291747de0760747c6f9256ecbd2fc6e
testserver/item/base/music.lua
testserver/item/base/music.lua
-- Standardskript fr Instrumente -- Nitram require("base.common") module("item.base.music", package.seeall) TalkTexts={ flute = {}, lute = {}, horn = {}, harp = {}, panpipe = {}, drum = {}}; function addTalkText(eText,gText, Skill) table.insert(TalkTexts[Skill],{eText,gText}); end function PlayInstrument(User,...
-- Standardskript fr Instrumente -- Nitram require("base.common") module("item.base.music", package.seeall) TalkTexts={ Character.flute = {}, Character.lute = {}, Character.horn = {}, Character.harp = {}, Character.panpipe = {}, Character.drum = {}}; function addTalkText(eText,gText, Skill) table.insert(TalkTex...
Fix flute
Fix flute
Lua
agpl-3.0
vilarion/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content
a6125b4d089f7ef312a5133d937a84f0d2219950
lua/entities/base_starfall_entity/init.lua
lua/entities/base_starfall_entity/init.lua
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) function ENT:Initialize () baseclass.Get( "base_gmodentity" ).Initialize( self ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.tableCopy = function ( ...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) function ENT:Initialize () baseclass.Get( "base_gmodentity" ).Initialize( self ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.instance = nil self...
Fix sharedscreen upload problem
Fix sharedscreen upload problem Fix #141
Lua
bsd-3-clause
Ingenious-Gaming/Starfall,INPStarfall/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall
62a550d3a9a63154e59bc52b16ba007dbd1d6bb1
src/program/ipfix/probe/probe.lua
src/program/ipfix/probe/probe.lua
-- This module implements the `snabb flow_export` command module(..., package.seeall) local lib = require("core.lib") local cache = require("apps.ipfix.cache") local meter = require("apps.ipfix.meter") local exporter = require("apps.ipfix.export") -- apps that can be used as an input or output for the exp...
-- This module implements the `snabb flow_export` command module(..., package.seeall) local now = require("core.app").now local lib = require("core.lib") local link = require("core.link") local cache = require("apps.ipfix.cache") local meter = require("apps.ipfix.meter") local exporter = require("...
Improve 'snabb ipfix probe' for benchmarking
Improve 'snabb ipfix probe' for benchmarking Add a stat reporting flag and enable NUMA binding
Lua
apache-2.0
dpino/snabbswitch,dpino/snabb,dpino/snabbswitch,dpino/snabb,snabbco/snabb,dpino/snabb,Igalia/snabbswitch,dpino/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,dpino/snabb,Igalia/snabbswitch,Igalia/snabbswitch,snabbco/snabb,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabbswitch,Igalia/s...
f834839dc3c080b84366d254c7b16b6fec75d782
agents/monitoring/default/client/upgrade.lua
agents/monitoring/default/client/upgrade.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix(upgrades): callback is not triggering correctly
fix(upgrades): callback is not triggering correctly
Lua
apache-2.0
AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,cp16net/virgo-base,kaustavh...
4dc0d18d452d0395f9c15537332a34d4f8abb3a8
libs/uvl/luasrc/uvl/errors.lua
libs/uvl/luasrc/uvl/errors.lua
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
--[[ UCI Validation Layer - Error handling (c) 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
libs/uvl: fix syntax error introduced with r5861
libs/uvl: fix syntax error introduced with r5861
Lua
apache-2.0
deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci
c383451d3dfb21dae15ed7ad39597990c6ea7f7b
commons/stress-test/wrk-config.lua
commons/stress-test/wrk-config.lua
local json = require("lib/json") local data = require("lib/data") local uuid = require("uuid") local threadsCounter = 0 local function log(msg) print(msg) end local function newSession() sessionCounter = (sessionCounter and sessionCounter + 1) or 1 if maxSessions and (sessionCounter > maxSessions) then ...
local json = require("lib/json") local data = require("lib/data") local uuid = require("uuid") local threadsCounter = 0 local _ = uuid.randomseed(os.time()*10000) local function log(msg) print(msg) end local function newSession() sessionCounter = (sessionCounter and sessionCounter + 1) or 1 if maxSessio...
fix uuid generation
fix uuid generation
Lua
mit
pawelkaczor/ddd-leaven-akka-v2,pawelkaczor/ddd-leaven-akka-v2,pawelkaczor/ddd-leaven-akka-v2
6c4248251c968c27ff33fe75d8afa8660b16958a
frontend/ui/widget/filechooser.lua
frontend/ui/widget/filechooser.lua
require "ui/widget/menu" FileChooser = Menu:new{ height = Screen:getHeight(), width = Screen:getWidth(), path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self:changeToPath(self.path) end function FileChooser:changeToPath(pat...
require "ui/widget/menu" FileChooser = Menu:new{ height = Screen:getHeight(), width = Screen:getWidth(), path = lfs.currentdir(), parent = nil, show_hidden = false, filter = function(filename) return true end, } function FileChooser:init() self:changeToPath(self.path) end function FileChooser:compressPath(ite...
compress paths like "test/pdf/../epub" into "test/epub" in FileChooser This patch fixes Bug #107
compress paths like "test/pdf/../epub" into "test/epub" in FileChooser This patch fixes Bug #107
Lua
agpl-3.0
ashhher3/koreader,NickSavage/koreader,noname007/koreader,ashang/koreader,NiLuJe/koreader,houqp/koreader,Frenzie/koreader,Markismus/koreader,chrox/koreader,mwoz123/koreader,NiLuJe/koreader,robert00s/koreader,Hzj-jie/koreader,frankyifei/koreader,koreader/koreader,chihyang/koreader,pazos/koreader,koreader/koreader,poire-z...
607d4e1c78406a10d9c0ee4b614199177d30f666
agents/monitoring/lua/monitoring-agent.lua
agents/monitoring/lua/monitoring-agent.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix monitoring-agent.lua
fix monitoring-agent.lua
Lua
apache-2.0
kans/zirgo,kans/zirgo,kans/zirgo
f392820b360f87db06a2efa7a0ce93c880435b7a
hymn/inputhandler.lua
hymn/inputhandler.lua
local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local InputHandler = Class "InputHandler" local EntityStatics = require "hymn.staticdata.entitystatics" function InputHandler:initialize(logicCore) self.logicCore = logicCore self.translate = GameMath.Vector2:new(0, 0) end l...
local Class = require "shared.middleclass" local GameMath = require "shared.gamemath" local InputHandler = Class "InputHandler" local EntityStatics = require "hymn.staticdata.entitystatics" function InputHandler:initialize(logicCore) self.logicCore = logicCore self.translate = GameMath.Vector2:new(0, 0) end l...
Hymn: Fix: dragging the map doesn't cancel flagpole mode
Hymn: Fix: dragging the map doesn't cancel flagpole mode
Lua
mit
ExcelF/project-navel
0930480fc6c0e655b5513f5e2e6b89cd91cca48a
deps/tls/init.lua
deps/tls/init.lua
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
fixup c9cbddbef3e9939d474fed878897bb7f726d7477
fixup c9cbddbef3e9939d474fed878897bb7f726d7477
Lua
apache-2.0
zhaozg/luvit,zhaozg/luvit,luvit/luvit,luvit/luvit
87eaa3fd97700968aa7ce1fa9e95dc0f06cdf3aa
DistanceRatioCriterion.lua
DistanceRatioCriterion.lua
require 'nn' local DistanceRatioCriterion, parent = torch.class('nn.DistanceRatioCriterion', 'nn.Criterion') function DistanceRatioCriterion:__init() parent.__init(self) self.SoftMax = nn.SoftMax() self.MSE = nn.MSECriterion() self.Target = torch.Tensor() end function DistanceRatioCriterion:createTarg...
require 'nn' local DistanceRatioCriterion, parent = torch.class('nn.DistanceRatioCriterion', 'nn.Criterion') function DistanceRatioCriterion:__init() parent.__init(self) self.SoftMax = nn.SoftMax() self.MSE = nn.MSECriterion() self.Target = torch.Tensor() end function DistanceRatioCriterion:createTarg...
bug fix
bug fix
Lua
mit
fantajeon/TripletNet,fantajeon/TripletNet,fantajeon/TripletNet,fantajeon/TripletNet
35e2cfdb12f38570f9e83f49cf493f1c229f894e
battery-widget/battery.lua
battery-widget/battery.lua
------------------------------------------------- -- Battery Widget for Awesome Window Manager -- Shows the battery status using the ACPI tool -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget -- @author Pavel Makhov -- @copyright 2017 Pavel Makhov --...
------------------------------------------------- -- Battery Widget for Awesome Window Manager -- Shows the battery status using the ACPI tool -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget -- @author Pavel Makhov -- @copyright 2017 Pavel Makhov --...
fix battery widget bug when no status was shown due to missing information from acpi
fix battery widget bug when no status was shown due to missing information from acpi
Lua
mit
streetturtle/AwesomeWM,streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
49589232ac99b20b4369b047b4c587229ed36bf7
source/utilities/extensions/io.lua
source/utilities/extensions/io.lua
-------------------------------------------------------------------------------- -- io.lua - Contains functions that extend the default io functions -------------------------------------------------------------------------------- require "lfs" -- source: http://stackoverflow.com/questions/4990990/lua-check-if-a-file-...
-------------------------------------------------------------------------------- -- io.lua - Contains functions that extend the default io functions -------------------------------------------------------------------------------- require "lfs" -- source: http://stackoverflow.com/questions/4990990/lua-check-if-a-file-...
Attempt at fixing no sound on windows.
Attempt at fixing no sound on windows.
Lua
mit
BryceMehring/Hexel
291c4b0275febfc578de20659ec4c3301dfd139b
fusion/stdlib/iterable.lua
fusion/stdlib/iterable.lua
local fnl = require("fusion.stdlib.functional") local function mk_gen(fn) return function(...) local a = {...} return coroutine.wrap(function() return fn(unpack(a)) end) end end -- Infinite generators local function count(start, step) if not step then return count(start, 1) end while true do start ...
local fnl = require("fusion.stdlib.functional") local table = require("fusion.stdlib.table") local function mk_gen(fn) return function(...) local a = {...} return coroutine.wrap(function() return fn(unpack(a)) end) end end -- Infinite generators local function count(start, step) if not step then return...
iterable: fix chain() to support iterators, groupby(), and non-generators
iterable: fix chain() to support iterators, groupby(), and non-generators
Lua
mit
RyanSquared/FusionScript
1b938d5eac28480f0aca7e1f3175658f0abbe365
minionmaster/behaviors/behaviors.lua
minionmaster/behaviors/behaviors.lua
local Class = require "shared.middleclass" local blocking = require "shared.blocking" local BehaviorTree = require "shared.behaviortree" local Behavior = BehaviorTree.Behavior local STATUS = Behavior.static.STATUS local state = require "minionmaster.state" local SearchEnemyBehavior = Class("SearchEnemyBehavior", Beha...
local Class = require "shared.middleclass" local blocking = require "shared.blocking" local BehaviorTree = require "shared.behaviortree" local Behavior = BehaviorTree.Behavior local STATUS = Behavior.static.STATUS local state = require "minionmaster.state" local SearchEnemyBehavior = Class("SearchEnemyBehavior", Beha...
fixed enemy master search behavior
fixed enemy master search behavior
Lua
mit
ExcelF/project-navel
24448cce6247bdfdcd1b81f603902249ef9fdbb0
scheduled/showGFX.lua
scheduled/showGFX.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...
fix Glutinous Seedling, to respawn again, like intended
fix Glutinous Seedling, to respawn again, like intended Also, don't spawn two at once.
Lua
agpl-3.0
Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content
e07edeac22bf6ac2c2633adb5f728d90860d86ad
src/cosy/cli/test.lua
src/cosy/cli/test.lua
-- These lines are required to correctly run tests: require "busted.runner" () local loader = require "cosy.loader.lua" { logto = false, } local Configuration = loader.load "cosy.configuration" local Cli = loader.require "cosy.cli" Configuration.load { "cosy.cli", } describe ("Module cosy.cli", function...
-- These lines are required to correctly run tests: require "busted.runner" () local loader = require "cosy.loader.lua" { logto = false, } local Configuration = loader.load "cosy.configuration" local Cli = loader.require "cosy.cli" Configuration.load { "cosy.cli", } describe ("Module cosy.cli", function...
Fix test, as behavior changed because of argparse.
Fix test, as behavior changed because of argparse.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
bc03d86c90bbb44bd9f8e66ecc6272b2faa3467b
otouto/plugins/bImages.lua
otouto/plugins/bImages.lua
local bImages = {} local HTTPS = require('ssl.https') HTTPS.timeout = 10 local URL = require('socket.url') local JSON = require('dkjson') local redis = (loadfile "./otouto/redis.lua")() local utilities = require('otouto.utilities') local bindings = require('otouto.bindings') function bImages:init(config) if not cre...
local bImages = {} local HTTPS = require('ssl.https') HTTPS.timeout = 10 local URL = require('socket.url') local JSON = require('dkjson') local redis = (loadfile "./otouto/redis.lua")() local utilities = require('otouto.utilities') local bindings = require('otouto.bindings') function bImages:init(config) if not cre...
bImages: Fix
bImages: Fix
Lua
agpl-3.0
Brawl345/Brawlbot-v2
6bad80c6388d32551163053651cb352bd38de967
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...
fix find_tool bug
fix find_tool bug
Lua
apache-2.0
waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake
369c88c0a3f24a8cc4e035fecba9ea852e8d20e4
kong/plugins/oauth2/migrations/postgres.lua
kong/plugins/oauth2/migrations/postgres.lua
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, client_id text UNIQUE, client_secret text UNIQUE, redirect_uri text,...
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, client_id text UNIQUE, client_secret text UNIQUE, redirect_uri text,...
hotfix(oauth2) fixing postgres migration
hotfix(oauth2) fixing postgres migration
Lua
apache-2.0
ccyphers/kong,akh00/kong,Kong/kong,shiprabehera/kong,Vermeille/kong,li-wl/kong,salazar/kong,Mashape/kong,Kong/kong,jebenexer/kong,beauli/kong,Kong/kong,icyxp/kong
c5b1f1ed36138502cd57d3c816be5d1341d979fe
libs/core/luasrc/model/network/wireless.lua
libs/core/luasrc/model/network/wireless.lua
--[[ LuCI - Network model - Wireless extension Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless...
--[[ LuCI - Network model - Wireless extension Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless...
libs/core: i18n fixes for wds mode
libs/core: i18n fixes for wds mode
Lua
apache-2.0
8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci
36e3c44430bd64ed5215da965b59e77e44e8ca32
mods/spears/tools.lua
mods/spears/tools.lua
function spears_register_spear(kind, desc, eq, toughness, craft) minetest.register_tool("spears:spear_" .. kind, { description = desc .. " spear", inventory_image = "spears_spear_" .. kind .. ".png", wield_scale= {x=2,y=1,z=1}, on_drop = function(itemstack, user, pointed_thing) spears_shot(itemstack, user...
function spears_register_spear(kind, desc, eq, toughness, craft) minetest.register_tool("spears:spear_" .. kind, { description = desc .. " spear", inventory_image = "spears_spear_" .. kind .. ".png", wield_scale= {x=2,y=1,z=1}, on_drop = function(itemstack, user, pointed_thing) spears_shot(itemstack, user...
remove useless function and fix place spears on pedestal
remove useless function and fix place spears on pedestal
Lua
unlicense
crabman77/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Ombridride/minetest-minetestforfun-server,Coethium/server-minetestforfun,MinetestForFun/minetest-minetestforfun-server,MinetestForFun/server-minetestforfun,sys4-fr/serv...
1c06c5fa41aac5fb39b78cb489ca22bbbae1a177
MMOCoreORB/bin/scripts/object/tangible/wearables/skirt/skirt_s13.lua
MMOCoreORB/bin/scripts/object/tangible/wearables/skirt/skirt_s13.lua
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
[fixed] Thin Pleated Skirt patch by Leka
[fixed] Thin Pleated Skirt patch by Leka git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4370 c3d1530f-68f5-4bd0-87dc-8ef779617e40
Lua
agpl-3.0
Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/lege...
6fdb123df400030c9ea68476b15d19de8b9b1ac3
lualib/skynet/datasheet/builder.lua
lualib/skynet/datasheet/builder.lua
local skynet = require "skynet" local dump = require "skynet.datasheet.dump" local core = require "skynet.datasheet.core" local service = require "skynet.service" local builder = {} local cache = {} local dataset = {} local address local unique_id = 0 local function unique_string(str) unique_id = unique_id + 1 ret...
local skynet = require "skynet" local dump = require "skynet.datasheet.dump" local core = require "skynet.datasheet.core" local service = require "skynet.service" local builder = {} local cache = {} local dataset = {} local address local unique_id = 0 local function unique_string(str) unique_id = unique_id + 1 ret...
bugfix, See #800
bugfix, See #800
Lua
mit
firedtoad/skynet,great90/skynet,codingabc/skynet,great90/skynet,cloudwu/skynet,hongling0/skynet,jxlczjp77/skynet,zhangshiqian1214/skynet,zhouxiaoxiaoxujian/skynet,codingabc/skynet,wangyi0226/skynet,zhangshiqian1214/skynet,sundream/skynet,korialuo/skynet,zhouxiaoxiaoxujian/skynet,zhangshiqian1214/skynet,pigparadise/skyn...
7a0e60a82b08b09958f9c5dbf3e5168a4583bc63
editor/lib/lua/editor/classes/AssimpMesh.lua
editor/lib/lua/editor/classes/AssimpMesh.lua
local BaseMesh = require("classes.BaseMesh") --------------------------------------------------------------------------------- -- -- @type AssimpMesh -- --------------------------------------------------------------------------------- local AssimpMesh = Class(BaseMesh, "AssimpMesh") function AssimpMesh:init( size, ...
local BaseMesh = require("classes.BaseMesh") --------------------------------------------------------------------------------- -- -- @type AssimpMesh -- --------------------------------------------------------------------------------- local AssimpMesh = Class(BaseMesh, "AssimpMesh") function AssimpMesh:init( size, ...
fix mesh
fix mesh
Lua
mit
RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,RazielSun/juma-editor,RazielSun/juma-editor,cloudteampro/juma-editor,cloudteampro/juma-editor
86597c2f10ad245629053ac557d882b23b79b31b
example/gatedNegationRanking.lua
example/gatedNegationRanking.lua
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local optim = require "optim" -- set gated network hyperparameters local opt = {} opt.embedSize = 300 opt.gateSize = 300 opt.hiddenSize = 600 opt.jackknifeSize = 10 opt.numEpochs = 1 opt.batchSize = ...
local cutorch = require "cutorch" local cunn = require "cunn" local nn = require "nn" local nngraph = require "nngraph" local optim = require "optim" -- set gated network hyperparameters local opt = {} opt.embedSize = 300 opt.gateSize = 300 opt.hiddenSize = 600 opt.jackknifeSize = 10 opt.numEpochs = 1 opt.batchSize = ...
Fix loss gradient bug.
Fix loss gradient bug.
Lua
mit
douwekiela/nncg-negation
d4176328dfcd5ed696d91c12c53c06416f05dfd4
protocols/luci-proto-vpnc/luasrc/model/cbi/admin_network/proto_vpnc.lua
protocols/luci-proto-vpnc/luasrc/model/cbi/admin_network/proto_vpnc.lua
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, hexpassword local authgroup, interface, passgroup, hexpassgroup local domain, vendor, natt_mode, dh_group local pfs, enable_single_d...
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, hexpassword local authgroup, interface, passgroup, hexpassgroup local domain, vendor, natt_mode, dh_group local pfs, enable_single_d...
luci-proto-vpnc: further typo fixes
luci-proto-vpnc: further typo fixes
Lua
apache-2.0
LuttyYang/luci,teslamint/luci,nmav/luci,remakeelectric/luci,openwrt-es/openwrt-luci,rogerpueyo/luci,artynet/luci,taiha/luci,lbthomsen/openwrt-luci,openwrt/luci,lbthomsen/openwrt-luci,oneru/luci,taiha/luci,cshore-firmware/openwrt-luci,aa65535/luci,LuttyYang/luci,LuttyYang/luci,lbthomsen/openwrt-luci,openwrt/luci,hnyman/...
4f6411ee38f0525362fa2518e286ad6e16bdd31b
src/patch/ui/lib/mppatch_modutils.lua
src/patch/ui/lib/mppatch_modutils.lua
-- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com> -- -- 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, co...
-- Copyright (c) 2015-2016 Lymia Alusyia <lymia@lymiahugs.com> -- -- 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, co...
Fix modutils.
Fix modutils.
Lua
mit
Lymia/MultiverseModManager,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC
4819bb7be2e32887bc58f95f70916e1977a18b04
source/networking/networkFrameworkEntity.lua
source/networking/networkFrameworkEntity.lua
local flower = flower -- LuaSocket should come with zerobrane local socket = require("socket") NetworkFrameworkEntity = flower.class() function NetworkFrameworkEntity:init(t) self.theirIP = t.theirIP or "localhost" self.port = t.port or 48310 self:run() end function NetworkFrameworkEntity:run() self....
local flower = flower -- LuaSocket should come with zerobrane local socket = require("socket") NetworkFrameworkEntity = flower.class() function NetworkFrameworkEntity:init(t) self.theirIP = t.theirIP or "localhost" self.port = t.port or 48310 self:run() end function NetworkFrameworkEntity:run() self....
Attempt at fixing failing to connect on Windows.
Attempt at fixing failing to connect on Windows.
Lua
mit
BryceMehring/Hexel
9415c6a25b4eda707c32d3e495ebb2a9dfa55fed
applications/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua
applications/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua
--[[ luci for Gargoyle QoS ]]-- local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local m, s, o local upload_classes = {} local download_classes = {} local qos_gargoyle_enabled = sys.init.enabled("qos_gargoyle") uci:foreach("qos_gargoyle", "upload_class", function(s) local class_alias = s...
--[[ luci for Gargoyle QoS ]]-- local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local m, s, o local upload_classes = {} local download_classes = {} local qos_gargoyle_enabled = sys.init.enabled("qos_gargoyle") uci:foreach("qos_gargoyle", "upload_class", function(s) local class_alias = s...
luci-app-qos-gargoyle: fix error
luci-app-qos-gargoyle: fix error
Lua
apache-2.0
kuoruan/lede-luci,kuoruan/luci,kuoruan/lede-luci,kuoruan/lede-luci,kuoruan/luci,kuoruan/lede-luci,kuoruan/luci,kuoruan/luci,kuoruan/lede-luci,kuoruan/lede-luci,kuoruan/lede-luci,kuoruan/luci,kuoruan/luci,kuoruan/luci,kuoruan/luci,kuoruan/lede-luci
9669ee44ea948357c9078b73ec6b65e57e892b2f
lua/entities/gmod_wire_oscilloscope.lua
lua/entities/gmod_wire_oscilloscope.lua
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Oscilloscope" ENT.WireDebugName = "Oscilloscope" function ENT:SetNextNode(x, y) local node_idx = self:GetNWInt("OscN") or 0 if (node_idx > self:GetNWFloat("Length", 50)) then node_idx = node_idx-self:GetNWFloat("Length", 50) end self...
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Oscilloscope" ENT.WireDebugName = "Oscilloscope" if CLIENT then function ENT:Initialize() self.GPU = WireGPU(self) self.Nodes = {} end function ENT:OnRemove() self.GPU:Finalize() end function ENT:GetNodeList() return sel...
Changed oscilloscope to use net messages
Changed oscilloscope to use net messages Fixes #1444 This is just a simple change to stop the referenced issue from happening. The oscilloscope could still use more optimizations and rewrites, but this'll do for now.
Lua
apache-2.0
thegrb93/wire,bigdogmat/wire,NezzKryptic/Wire,wiremod/wire,dvdvideo1234/wire,Grocel/wire,sammyt291/wire,garrysmodlua/wire
ca465cdb145ea39afae65e1ede846f112ea47872
Peripherals/Gamepad.lua
Peripherals/Gamepad.lua
local events = require("Engine.events") return function(config) --A function that creates a new Gamepad peripheral. local GP, devkit, indirect = {}, {}, {} local CPUKit = config.CPUKit if not CPUKit then error("The gamepad peripheral can't work without the CPUKit passed !") end local deadzone = config.de...
local events = require("Engine.events") local coreg = require("Engine.coreg") return function(config) --A function that creates a new Gamepad peripheral. local GP, devkit, indirect = {}, {}, {} local CPUKit = config.CPUKit if not CPUKit then error("The gamepad peripheral can't work without the CPUKit passed !...
Bugfixes
Bugfixes
Lua
mit
RamiLego4Game/LIKO-12
19dc9a13b5812cd74016a3b9e27d306f35b4b42f
TemporalConvolution.lua
TemporalConvolution.lua
local TemporalConvolution, parent = torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution') --use cudnn to perform temporal convolutions --note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution --however, instead of separately padding data, as is required no...
local TemporalConvolution, parent = torch.class('cudnn.TemporalConvolution', 'nn.TemporalConvolution') --use cudnn to perform temporal convolutions --note: if padH parameter is not passed, no padding will be performed, as in parent TemporalConvolution --however, instead of separately padding data, as is required no...
Fixing backward pass of TemporalConvolution
Fixing backward pass of TemporalConvolution
Lua
bsd-3-clause
phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch
9fd37fbd7d8b86c9706c4573de42c40191f72e54
agents/monitoring/lua/monitoring-agent.lua
agents/monitoring/lua/monitoring-agent.lua
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
--[[ Copyright 2012 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
fix monitoring-agent.lua
fix monitoring-agent.lua
Lua
apache-2.0
cp16net/virgo-base,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,christop...
3a869ccf29fc8e9b6e36b37db6b1407cd5c4cddf
Peripherals/CPU.lua
Peripherals/CPU.lua
local events = require("Engine.events") local coreg = require("Engine.coreg") return function(config) --A function that creates a new CPU peripheral. local EventStack = {} local Instant = false local RawPull = false local sleepTimer local devkit = {} function devkit.triggerEvent(name,...) if Inst...
local events = require("Engine.events") local coreg = require("Engine.coreg") return function(config) --A function that creates a new CPU peripheral. local EventStack = {} local Instant = false local RawPull = false local sleepTimer local devkit = {} function devkit.triggerEvent(name,...) if Inst...
Fix update events being added to the eventStack while sleeping
Fix update events being added to the eventStack while sleeping Former-commit-id: 87288fbc3703e04dcc2d1193180a714abb72f3d8
Lua
mit
RamiLego4Game/LIKO-12
7da16a83894bdf6a99fd5809995cdf16e63a0cf2
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 to run." end return function (t) t = t or {} local loader = {} for k, v in pairs (t) do loader [k] = v end loader.home = os.getenv "HOME" .. "/.cosy/" .. (loader.alias or "default") local modules...
Loader now defines lua_modules path, source path and prefix.
Loader now defines lua_modules path, source path and prefix.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library