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
d78e86c1bc9dbbff45973be3c12d3d7ef52940c2
test_scripts/RC/Capabilities/005_Resend_only_supported_parameters.lua
test_scripts/RC/Capabilities/005_Resend_only_supported_parameters.lua
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/1 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/detailed_info_GetSystemCapability.md -- Item: Use Cas...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/1 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/detailed_info_GetSystemCapability.md -- Item: Use Cas...
Remove Band from supported params. Fix common_functions typo.
Remove Band from supported params. Fix common_functions typo. Remove Band from supported params. Fix common_functions typo.
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
6d83b0e5748348962b8b4a248b4a1de202d723b1
bin/process/PoolTestData.lua
bin/process/PoolTestData.lua
-- -- User: pat -- Date: 2/10/16 -- require 'nn' local cmd = torch.CmdLine() cmd:option('-inFile', '', 'input file') cmd:option('-keyFile', '', 'file that maps entity pairs to relations') cmd:option('-outFile', '', 'out file') local params = cmd:parse(arg) -- load key file int map print('Loading ep-rel map from ' ....
-- -- User: pat -- Date: 2/10/16 -- require 'nn' local cmd = torch.CmdLine() cmd:option('-inFile', '', 'input file') cmd:option('-keyFile', '', 'file that maps entity pairs to relations') cmd:option('-outFile', '', 'out file') local params = cmd:parse(arg) -- load key file int map print('Loading ep-rel map from ' ....
fix pool test data scropt
fix pool test data scropt
Lua
mit
patverga/torch-relation-extraction,patverga/torch-relation-extraction,patverga/torch-relation-extraction
bdda7f71f4cdf5bdc0cf9bf59737664469a22199
queuebot.lua
queuebot.lua
require "luarocks.loader" require "irc" local config = require "config".irc local inspect = require "inspect" local lanes = require "lanes".configure() local linda = lanes.linda() local re = require "re" local sleep = require "socket".sleep local id = 0 local queued_requests = {} local send_request = lanes.gen("*", f...
require "luarocks.loader" require "irc" local config = require "config".irc local inspect = require "inspect" local lanes = require "lanes".configure() local linda = lanes.linda() local re = require "re" local sleep = require "socket".sleep local id = 0 local queued_requests = {} local send_request = lanes.gen("*", f...
fix merge conflict
fix merge conflict
Lua
bsd-2-clause
cmr/queue
43a72918db4ed34126a2929f38d593f353fe04aa
applications/luci-radvd/luasrc/model/cbi/radvd.lua
applications/luci-radvd/luasrc/model/cbi/radvd.lua
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 $Id$ ]]-- m ...
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 $Id$ ]]-- m ...
applications/luci-radvd: fix removal of section in overview page
applications/luci-radvd: fix removal of section in overview page
Lua
apache-2.0
palmettos/test,cappiewu/luci,taiha/luci,slayerrensky/luci,cshore/luci,LazyZhu/openwrt-luci-trunk-mod,deepak78/new-luci,fkooman/luci,taiha/luci,Kyklas/luci-proto-hso,MinFu/luci,artynet/luci,teslamint/luci,hnyman/luci,RedSnake64/openwrt-luci-packages,dismantl/luci-0.12,ollie27/openwrt_luci,rogerpueyo/luci,fkooman/luci,ke...
68ab33b6eed3ef40bef5434d67342208be1ba56d
Dusk/dusk_core/load/tilesets.lua
Dusk/dusk_core/load/tilesets.lua
-------------------------------------------------------------------------------- --[[ Dusk Engine Component: Tilesets Loads tilesets from data. --]] -------------------------------------------------------------------------------- local lib_tilesets = {} ---------------------------------------------------------------...
-------------------------------------------------------------------------------- --[[ Dusk Engine Component: Tilesets Loads tilesets from data. --]] -------------------------------------------------------------------------------- local lib_tilesets = {} ---------------------------------------------------------------...
Fix incorrect tiles displaying with margin and spacing
Fix incorrect tiles displaying with margin and spacing
Lua
mit
GymbylCoding/Dusk-Engine
ee6bb5a2d21f9942658fc037da666451f80381d0
sorted_array.lua
sorted_array.lua
local bit = require("bit") local table = require("table") local string = require("string") local floor = require("math").floor local function s_to_a(data) local a = {} local bytes = {string.byte(data, i, #data)} for i = 1, #data / 8 do a[i] = 0 for c = 0, 7 do ...
local bit = require("bit") local table = require("table") local string = require("string") local floor = require("math").floor local function s_to_a(data) local a = {} local bytes = {string.byte(data, i, #data)} for i = 1, #data / 8 do a[i] = 0 for c = 0, 7 do a[i] = bit.lshift(a[i], 8) a[i] = ...
sorted_array procedures was fixed.
sorted_array procedures was fixed.
Lua
bsd-2-clause
BHYCHIK/tntlua,grechkin-pogrebnyakov/tntlua,spectrec/tntlua,mailru/tntlua,derElektrobesen/tntlua
a3487077ca3908252b5af0a700d52ca26659adbe
game_view.lua
game_view.lua
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse var...
-- imports grid_state = require 'grid_state' glitch_gen = require 'glitchGen' directions = require 'directions' glider = require 'glider' background_color = {240, 240, 240} grid_normal_color = {180, 230, 255} grid_block_color = {100, 200, 250} grid_line_width = 0.5 grid_unit_size = 32 grid_big_border = 5 -- mouse var...
Fix last merge.
Fix last merge.
Lua
mit
NamefulTeam/PortoGameJam2015
f908ab6b6442a63fd5932221346789939f52c24f
main.lua
main.lua
require 'util' require 'Object' require 'settings' require 'game' require 'ui' require 'dredmor' if not love then require 'tty' require 'lovecompat' else error 'running under love2d is not yet supported' love.readkey = function() end end flags.register "help" { help = "This text."; } flags.register "load" ...
require 'util' require 'Object' require 'settings' require 'game' require 'ui' require 'dredmor' if not love then require 'tty' require 'lovecompat' else error 'running under love2d is not yet supported' love.readkey = function() end end flags.register "help" { help = "This text."; } flags.register "load" ...
Fix error reporting in new coroutine-based mainloop
Fix error reporting in new coroutine-based mainloop
Lua
mit
ToxicFrog/ttymor
41837e61932f23679a1613d550f2c71163f3aa46
mods/beds/functions.lua
mods/beds/functions.lua
local player_in_bed = 0 local is_sp = minetest.is_singleplayer() local enable_respawn = minetest.setting_getbool("enable_bed_respawn") or true -- helper functions local function get_look_yaw(pos) local n = minetest.get_node(pos) if n.param2 == 1 then return 7.9, n.param2 elseif n.param2 == 3 then return 4.75,...
local player_in_bed = 0 local is_sp = minetest.is_singleplayer() local enable_respawn = minetest.setting_getbool("enable_bed_respawn") if enable_respawn == nil then enable_respawn = true end -- helper functions local function get_look_yaw(pos) local n = minetest.get_node(pos) if n.param2 == 1 then return 7.9, n...
Fix beds respawn settings check
Fix beds respawn settings check
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
5ecf31705836a7c27adc811fc963ad6c79eabe9a
l2l/list.lua
l2l/list.lua
--[[ A very fast Lua linked list implementation that has a program lifetime. The maximum number of cons cells created is the maximum integer that can be held accurately in a lua number. Likely to have unsolved memory leaks. Garbage Collection not thought through. ]]-- local utils = require("leftry").utils local v...
-- A very fast Lua linked list implementation that can only add a number of -- items equal to the maximum integer that can be held in a lua number. local utils = require("leftry").utils local vector = require("l2l.vector") local data = setmetatable({n=0, free=0}, {}) local retains = {} local function retain(n) reta...
Added reference counting to l2l.list. Fixes #39
Added reference counting to l2l.list. Fixes #39
Lua
bsd-2-clause
meric/l2l,carloscm/l2l
99c8b21386c2e94e57dfbcc6cc43ed785ba660c7
src/gluttony.lua
src/gluttony.lua
local sentinel = {} local end_program = {} local function exit (operands) print ('result', unpack (operands)) print ('exit') end local function quote (operands) return operands end local function operator_prototype (operators, execute) local delimit_counter = 1 local delimiter = sentinel local operands = ...
table.unpack = unpack -- polyfill local sentinel = {} local quote_sentinel = {} local function exit (operands) print ('result', table.unpack (operands)) print ('exit') end local function quote (operands) return operands end local operator_prototype_base local operator_prototype operator_prototype_base = function (...
Refactored, added a polyfill to fix different Lua versions and implemented a fork primitive.
Refactored, added a polyfill to fix different Lua versions and implemented a fork primitive.
Lua
mit
alisa-dolinsky/Thirst,alisa-dolinsky/Gluttony,Alisaxy/Thirst
b78d0f98165ea999469b281008fa3c5edc2d6676
whisper.lua
whisper.lua
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if msg:sub(1, 12):lower() ~= 'epgp standby' then return end local member = msg:sub...
local mod = EPGP:NewModule("whisper", "AceEvent-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local senderMap = {} function mod:CHAT_MSG_WHISPER(event_name, msg, sender) if not UnitInRaid("player") then return end if msg:sub(1, 12):lower() ~= 'epgp standby' then return end local member = msg:sub...
Remove members from standby list after a mass EP award.
Remove members from standby list after a mass EP award. This fixes issue 476.
Lua
bsd-3-clause
ceason/epgp-tfatf,sheldon/epgp,sheldon/epgp,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,hayword/tfatf_epgp,protomech/epgp-dkp-reloaded
aca879d9eb9b6d973bb26e8d5a7eb5ba0e5bd43a
libs/util.lua
libs/util.lua
-- ivar2 IRC utilities and more -- vim: set noexpandtab: local reset = function(s) return '\015' end local bold = function(s) return string.format("\002%s\002", s) end local underline = function(s) return string.format("\031%s\031", s) end local italic = function(s) return string.format("\029%s\029", s) end local ...
-- ivar2 IRC utilities and more -- vim: set noexpandtab: local reset = function(s) return '\015' end local bold = function(s) return string.format("\002%s\002", s) end local underline = function(s) return string.format("\031%s\031", s) end local italic = function(s) return string.format("\029%s\029", s) end local ...
util: Fix mixed indent.
util: Fix mixed indent. Former-commit-id: 4c96d23efba2fa19658c4ec998e5e91d1c9f7a4b [formerly 7e1ef7bd21eee0dc60a3acaac377387c7f963d72] Former-commit-id: b490e65dd3c5f846720dd82c68085aaa48c69732
Lua
mit
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2
f43dbe092e487cbc376b946d511479c261a3cce8
extensions/mouse/init.lua
extensions/mouse/init.lua
--- === hs.mouse === --- --- Inspect/manipulate the position of the mouse pointer --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("hs.mouse.internal") local fnutils = require("hs.fnutils") local geometry =...
--- === hs.mouse === --- --- Inspect/manipulate the position of the mouse pointer --- --- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). local module = require("hs.mouse.internal") local fnutils = require("hs.fnutils") local geometry =...
Cleanup hs.mouse
Cleanup hs.mouse - Fixed @stickler-ci bugs
Lua
mit
cmsj/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,Hammerspoon/hammerspoon,latenitefilms/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,Hammerspoon/hammerspoon,CommandPost/CommandPost-App,Ham...
2c9ced17fcb49b7f70015e84d31f01878e93fc5f
src/ui/Timeline.lua
src/ui/Timeline.lua
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
--================================================================================================== -- Copyright (C) 2014 - 2015 by Robert Machmer = -- = -- Permission is ...
Fix #16 - Adjust timeline for repos with less than 128 commits
Fix #16 - Adjust timeline for repos with less than 128 commits The timeline will use the number of commits if it is lower than the TOTAL_STEPS value.
Lua
mit
rm-code/logivi
0e73d944c6e301765e235f201457971236a68ff0
src/lib/cltable.lua
src/lib/cltable.lua
module(..., package.seeall) local ffi = require("ffi") local ctable = require("lib.ctable") function build(keys, values) return setmetatable({ keys = keys, values = values }, {__index=get, __newindex=set}) end function new(params) local ctable_params = {} for k,v in _G.pairs(params) d...
module(..., package.seeall) local ffi = require("ffi") local ctable = require("lib.ctable") function build(keys, values) return setmetatable({ keys = keys, values = values }, {__index=get, __newindex=set}) end function new(params) local ctable_params = {} for k,v in _G.pairs(params) d...
Fix insertion into sparse cltables
Fix insertion into sparse cltables Previously we would do a table.insert, then assume the index was inserted at #values. However the # operator just returns a filled index for which the next index is nil, and thus table.insert could insert into the middle of a table but we don't know afterwards where that insertion w...
Lua
apache-2.0
dpino/snabbswitch,eugeneia/snabb,eugeneia/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,dpino/snabb,eugeneia/snabb,dpino/snabbswitch,Igalia/snabb,eugeneia/snabb,Igalia/snabb,dpino/snabbswitch,SnabbCo/snabbswitch,snabbco/snabb,eugeneia/snabb,snabbco/snabb,Igalia/snabbswitch,SnabbCo/snabbswitch,Igalia/snabb...
40bed7373c15e13536cfeb115a87b818fb1af262
Connectors/Quik/Lua/StockSharp.Quik.lua
Connectors/Quik/Lua/StockSharp.Quik.lua
------------------------------------------------------------------------- -- StockSharp QUIK Lua Fix Server (c) 2015 http://stocksharp.com -- ------------------------------------------------------------------------- ------------------------------------------------------------------------- -- -----------------...
------------------------------------------------------------------------- -- StockSharp QUIK Lua Fix Server (c) 2015 http://stocksharp.com -- ------------------------------------------------------------------------- -- . ------------------------------------------------------------------------- -- ------...
Quik.lua Fix formatting
Quik.lua Fix formatting
Lua
apache-2.0
risty/StockSharp,Shadance/StockSharp,Sergey-Dvortsov/StockSharp,dmDen/StockSharp,StockSharp/StockSharp
6b25769bbed48480407923e75044d8b0dc1f294e
src/logging/sql.lua
src/logging/sql.lua
------------------------------------------------------------------------------- -- Saves the logging information in a table using luasql -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2007 Kepler Project -- -- @release $Id: sql.lua,v 1.4 2007-09-05 12:15:31 tomas Exp $ -------------------...
------------------------------------------------------------------------------- -- Saves the logging information in a table using luasql -- -- @author Thiago Costa Ponte (thiago@ideais.com.br) -- -- @copyright 2004-2007 Kepler Project -- -- @release $Id: sql.lua,v 1.5 2008-01-17 16:25:46 carregal Exp $ ----------------...
Escaping the message before inserting it into the SQL database. Fix by Christopher Smith
Escaping the message before inserting it into the SQL database. Fix by Christopher Smith
Lua
mit
mwchase/log4l,Neopallium/lualogging,StoneDot/lualogging
c7250a0a3d796aaa15eb0076af6ea2379fb253e8
cmus-widget/cmus.lua
cmus-widget/cmus.lua
------------------------------------------------- -- Cmus Widget for Awesome Window Manager -- Show what's playing, play/pause, etc -- @author Augusto Gunsch -- @copyright 2022 Augusto Gunsch ------------------------------------------------- local awful = require("awful") local wibox = require("wibox") local watch = ...
------------------------------------------------- -- Cmus Widget for Awesome Window Manager -- Show what's playing, play/pause, etc -- @author Augusto Gunsch -- @copyright 2022 Augusto Gunsch ------------------------------------------------- local awful = require("awful") local wibox = require("wibox") local watch = ...
Fix warnings
Fix warnings
Lua
mit
streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets
7729b7b6c51a90c549f65b9b177f26d670724e96
vendor/lua/exec.lua
vendor/lua/exec.lua
local ffi = require "ffi" local C = ffi.C local exec = {} ffi.cdef([[ static const int EINTR = 4; /* Interrupted system call */ static const int EAGAIN = 11; /* Try again */ typedef int32_t pid_t; pid_t fork(void); pid_t waitpid(pid_t pid, int *status, int options); char *strerror(int errnum); int open(const char *pat...
local ffi = require "ffi" local C = ffi.C local exec = {} ffi.cdef([[ static const int EINTR = 4; /* Interrupted system call */ static const int EAGAIN = 11; /* Try again */ typedef int32_t pid_t; pid_t fork(void); pid_t waitpid(pid_t pid, int *status, int options); char *strerror(int errnum); int open(const char *pat...
exec: Fix indention.;
exec: Fix indention.;
Lua
mit
Configi/configi,Configi/configi,Configi/configi,Configi/configi,Configi/configi
f5efd4200d3440f09f32da46cc60433e189ab741
.mjolnir/init.lua
.mjolnir/init.lua
local griderr, grid = pcall(function() return require "mjolnir.bg.grid" end) local windowerr, window = pcall(function() return require "mjolnir.window" end) local hotkeyerr, hotkey = pcall(function() return require "mjolnir.hotkey" end) local alerterr, alert = pcall(function() return require "mjolnir.alert" end) local...
local griderr, grid = pcall(function() return require "mjolnir.bg.grid" end) local windowerr, window = pcall(function() return require "mjolnir.window" end) local hotkeyerr, hotkey = pcall(function() return require "mjolnir.hotkey" end) local alerterr, alert = pcall(function() return require "mjolnir.alert" end) local...
Fix attempt to index local 'win' (a nil value) in mjolnir when there's no focused window
Fix attempt to index local 'win' (a nil value) in mjolnir when there's no focused window
Lua
mit
rileyjshaw/.supermac
67e7219314589f1cfbf1347cfdc9496dae3dd97d
deps/coro-channel.lua
deps/coro-channel.lua
--[[lit-meta name = "creationix/coro-channel" version = "3.0.0" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-channel.lua" description = "An adapter for wrapping uv streams as coro-streams." tags = {"coro", "adapter"} license = "MIT" author = { name = "Tim Caswell" } ]] -- local p = requ...
--[[lit-meta name = "creationix/coro-channel" version = "3.0.0" homepage = "https://github.com/luvit/lit/blob/master/deps/coro-channel.lua" description = "An adapter for wrapping uv streams as coro-streams." tags = {"coro", "adapter"} license = "MIT" author = { name = "Tim Caswell" } ]] -- local p = requ...
Fixes coro-channel shutdown consistency
Fixes coro-channel shutdown consistency
Lua
apache-2.0
luvit/lit,zhaozg/lit
43a2f6e698b672ac7997ed1ccb64303158594d1c
particles.lua
particles.lua
Particle = {} function Particle.ballImpactWithPlayer() local tex = love.graphics.newImage("assets/textures/smoke.png") local emitter = love.graphics.newParticleSystem(tex,10) emitter:setDirection(0) emitter:setAreaSpread("uniform",8,16) emitter:setEmissionRate(10) emitter:setEmitterLifetime(-1) emitter:s...
Particle = {} function Particle.ballImpactWithPlayer() local tex = love.graphics.newImage("assets/textures/smoke.png") local emitter = love.graphics.newParticleSystem(tex,10) emitter:setDirection(6.9388939039072e-16) emitter:setAreaSpread("none",0,0) emitter:setEmissionRate(357) emitter:setEmitterLifetime(...
Fixed farts and added particles for ball movement
Fixed farts and added particles for ball movement
Lua
mit
GuiSim/pixel
50c81219a127fdb40c048de9f341ef2386d0b667
RandomPokémon.lua
RandomPokémon.lua
--[[ Questo modulo sceglie un Pokémon randomicamente e ne fa usi diversi in base alla funzione --]] local p = {} local form = require('Wikilib-forms') local tab = require('Wikilib-tables') local txt = require('Wikilib-strings') local ot = require('Wikilib-others') local data = require("Wikilib-data") local pokedata...
--[[ Questo modulo sceglie un Pokémon randomicamente e ne fa usi diversi in base alla funzione --]] local p = {} local form = require('Wikilib-forms') local tab = require('Wikilib-tables') local txt = require('Wikilib-strings') local ot = require('Wikilib-others') local data = require("Wikilib-data") local pokedata...
Fixed Alolan forms artwork name
Fixed Alolan forms artwork name
Lua
cc0-1.0
pokemoncentral/wiki-lua-modules
19edbcb109c73dcc88240c1c654440447c6f0e93
deps/Mono/premake4.lua
deps/Mono/premake4.lua
project "Mono" local version = "2.12" local repo = "git|git://github.com/mono/mono.git" local license = "LGPL" kind "StaticLib" defines { "__default_codegen__", "HAVE_CONFIG_H", } -- sgen defines defines { "HAVE_SGEN_GC", "HAVE_MOVING_COLLECTOR", "HAVE_WRITE_BARRIERS" } includedirs { ...
local version = "2.12" local repo = "git|git://github.com/mono/mono.git" local license = "LGPL" project "Mono" kind "SharedLib" defines { "HAVE_CONFIG_H", } -- sgen defines defines { "HAVE_SGEN_GC", "HAVE_MOVING_COLLECTOR", "HAVE_WRITE_BARRIERS" } includedirs { "./", "mono/", "eglib/src...
Fixed the Mono build scripts to work with latest trunk.
Fixed the Mono build scripts to work with latest trunk.
Lua
bsd-2-clause
FloodProject/flood,FloodProject/flood,FloodProject/flood
470b00f1bbcf4b8d4ef671b703b8e6fa3209344a
OnlineTrainer.lua
OnlineTrainer.lua
local OnlineTrainer, parent = torch.class('nn.OnlineTrainer','nn.Trainer') function OnlineTrainer:__init(...) parent.__init(self) -- unpack args xlua.unpack_class(self, {...}, 'OnlineTrainer', 'A general-purpose online trainer class.\n' .. 'Provides 4 user hooks to perform extra work af...
local OnlineTrainer, parent = torch.class('nn.OnlineTrainer','nn.Trainer') function OnlineTrainer:__init(...) parent.__init(self) -- unpack args xlua.unpack_class(self, {...}, 'OnlineTrainer', 'A general-purpose online trainer class.\n' .. 'Provides 4 user hooks to perform extra work af...
fixed bug when using shuffled indices
fixed bug when using shuffled indices
Lua
mit
clementfarabet/lua---nnx
3607a2e74038d124f20c74713128fefe7cf38881
framework/reeme/request/post.lua
framework/reeme/request/post.lua
--from reqargs local upload = require "resty.upload" local tmpname = os.tmpname local concat = table.concat local type = type local find = string.find local open = io.open local sub = string.sub local ngx = ngx local req = ngx.req local var = ngx.var local body = req.read_body local data ...
--from reqargs local upload = require "resty.upload" local tmpname = os.tmpname local concat = table.concat local type = type local find = string.find local open = io.open local sub = string.sub local ngx = ngx local req = ngx.req local var = ngx.var local body = req.read_body local data ...
fix post body bug
fix post body bug
Lua
apache-2.0
mobilesolution2016/reeme,mobilesolution2016/reeme,mobilesolution2016/reeme
a655ca196c9312a10e0dacea3eb4c72be48e8aba
mod_archive_muc/mod_archive_muc.lua
mod_archive_muc/mod_archive_muc.lua
-- Prosody IM -- Copyright (C) 2010 Dai Zhiwei -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local dm = require "util.datamanager"; local jid = require "util.jid"; local datetime = require "util.datetime"; local...
-- Prosody IM -- Copyright (C) 2010 Dai Zhiwei -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local dm = require "util.datamanager"; local jid = require "util.jid"; local datetime = require "util.datetime"; local ...
mod_archive_muc: use usermanager to check if some user exists; use rostermanager to check if someone is in the roster; minor fixes.
mod_archive_muc: use usermanager to check if some user exists; use rostermanager to check if someone is in the roster; minor fixes.
Lua
mit
prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2
2b38b16d2795a228b1a541fbc2e09bd093119aad
ffi/input_android.lua
ffi/input_android.lua
local ffi = require("ffi") local bit = require("bit") local android = require("android") local dummy = require("ffi/linux_input_h") -- to trigger refreshes for certain Android framework events: local fb = require("ffi/framebuffer_android").open() local input = {} function input.open() end local inputQueue = {} lo...
local ffi = require("ffi") local bit = require("bit") local android = require("android") local dummy = require("ffi/linux_input_h") -- to trigger refreshes for certain Android framework events: local fb = require("ffi/framebuffer_android").open() local input = {} function input.open() end local inputQueue = {} lo...
fix multi-touch in Android
fix multi-touch in Android
Lua
agpl-3.0
houqp/koreader-base,Frenzie/koreader-base,NiLuJe/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,Frenzie/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,frankyifei/koreader-base,koreader/koreader-base,frankyifei/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,houqp/koreader-base,Hzj-jie/k...
e95c1ffbc5cf8e265b8d427384525f770be8f892
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
modules/admin-full: fix dhcp page
modules/admin-full: fix dhcp page git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5465 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci
588d8775048259b158c8ce750624ed0729f8ab91
util/datamanager.lua
util/datamanager.lua
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local format = string.format; local setmetatable, type = setmetatable, type; local pairs, ipairs = pairs...
-- Prosody IM -- Copyright (C) 2008-2009 Matthew Wild -- Copyright (C) 2008-2009 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local format = string.format; local setmetatable, type = setmetatable, type; local pairs, ipairs = pairs...
datamanager: Fixed logging errors on deletion of datastores not owned by a user@host
datamanager: Fixed logging errors on deletion of datastores not owned by a user@host
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
826be07f72de4420f2121c0e78371bab68fee271
src/make.lua
src/make.lua
local file_dir local test_dir local function git_fresh(fname) local f = io.open((test_dir / fname):string(), 'rb') local test_file = f:read('*a') f:close() local map_file f = io.open((file_dir / fname):string(), 'rb') if f then map_file = f:read('*a') f:close() end if test_file ~= map_file then f = io.op...
local file_dir local test_dir local function git_fresh(fname) local r, w = 'rb', 'wb' if fname:sub(-2) == '.j' or fname:sub(-4) == '.lua' then r, w = 'r', 'w' end local f = io.open((test_dir / fname):string(), r) local test_file = f:read('*a') f:close() local map_file f = io.open((file_dir / fname):string(),...
修正会错误判断.lua文件更新状态的BUG
修正会错误判断.lua文件更新状态的BUG
Lua
apache-2.0
syj2010syj/All-star-Battle
ea575a814b3d74a3184fd880c90497d00df50fb8
src_trunk/resources/job-system/fishing/s_fishing_job.lua
src_trunk/resources/job-system/fishing/s_fishing_job.lua
local totalCatch = 0 local fishSize = 0 -- /fish to start fishing. function startFishing(thePlayer) if not (thePlayer) then thePlayer = source end local element = getPedContactElement(thePlayer) if not (isElement(element)) then outputChatBox("You must be on a boat to fish.", thePlayer, 255, 0, 0) ...
local totalCatch = 0 local fishSize = 0 -- /fish to start fishing. function startFishing(thePlayer) if not (thePlayer) then thePlayer = source end local element = getPedContactElement(thePlayer) local totalCatch = getElementData(thePlayer, "totalcatch") if not (totalCatch) then totalCatch = 0 end ...
Fix for total catch being global
Fix for total catch being global git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@510 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
8436d90adcb24be51aa5bd1e1f07d289a9aca857
src/hs/finalcutpro/main/PrimaryWindow.lua
src/hs/finalcutpro/main/PrimaryWindow.lua
local log = require("hs.logger").new("PrefsDlg") local inspect = require("hs.inspect") local axutils = require("hs.finalcutpro.axutils") local just = require("hs.just") local Button = require("hs.finalcutpro.ui.Button") local Inspector = require("hs.finalcutpro.main.Inspector") local ...
local log = require("hs.logger").new("PrefsDlg") local inspect = require("hs.inspect") local axutils = require("hs.finalcutpro.axutils") local just = require("hs.just") local Button = require("hs.finalcutpro.ui.Button") local Inspector = require("hs.finalcutpro.main.Inspector") local ...
#197 * Fixed discovery of browser/timeline/etc when few UI elements are visible in the Primary Window.
#197 * Fixed discovery of browser/timeline/etc when few UI elements are visible in the Primary Window.
Lua
mit
cailyoung/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost,fcpxhacks/fcpxhacks,cailyoung/CommandPost,CommandPost/CommandPost
8b8f850e01dc33ce05047521a5d4b680a6e3e12c
agents/monitoring/tests/net/init.lua
agents/monitoring/tests/net/init.lua
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
local table = require('table') local async = require('async') local ConnectionStream = require('monitoring/default/client/connection_stream').ConnectionStream local misc = require('monitoring/default/util/misc') local helper = require('../helper') local timer = require('timer') local fixtures = require('../fixtures') l...
fix merge
fix merge
Lua
apache-2.0
virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,cp16net/virgo-base,AlphaStaxLLC/rac...
b05983e73f911176b8b34137f770709a43708de2
src/formatters/init.lua
src/formatters/init.lua
-- module will not return anything, only register formatters with the main assert engine local assert = require('luassert.assert') local ok, term = pcall(require, 'term') local colors = setmetatable({ none = function(c) return c end },{ __index = function(self, key) local isatty = io.type(io.stdout) == 'file' and ...
-- module will not return anything, only register formatters with the main assert engine local assert = require('luassert.assert') local colors = setmetatable({ none = function(c) return c end },{ __index = function(self, key) local ok, term = pcall(require, 'term') local isatty = io.type(io.stdout) == 'file' an...
Fix TTY detection
Fix TTY detection This fixes an error in the way `term.isatty` is called. If the `term` module is not present, then `term.isatty` will trigger an error. So we have to make sure that the call to `require 'term'` succeeded before using `term`.
Lua
mit
o-lim/luassert
7f2a1d25bb257999efb03c3ef248ad5e0e2d11d9
src/lib/numa.lua
src/lib/numa.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- Call bind_to_cpu(1) to bind the current Snabb process to CPU 1 (for -- example), to bind its memory to the corresponding NUMA node, to -- migrate mapped pages to that NUMA node, and to arrange to warn if -- yo...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- Call bind_to_cpu(1) to bind the current Snabb process to CPU 1 (for -- example), to bind its memory to the corresponding NUMA node, to -- migrate mapped pages to that NUMA node, and to arrange to warn if -- yo...
Fix PCI affinity check for --preferred NUMA binding
Fix PCI affinity check for --preferred NUMA binding
Lua
apache-2.0
eugeneia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabb,SnabbCo/snabbswitch,Igalia/snabbswitch,snabbco/snabb,Igalia/snabb,Igalia/snabbswitch,eugeneia/snabb,snabbco/snabb,alexandergall/snabbswitch,Igalia/snabb,snabbco/snabb,Igalia/snabbswitch...
5554375409ebdb65f9f2fda008bf69ebed5f93be
hammerspoon/init.lua
hammerspoon/init.lua
--- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") local v60hyper = {} local globalHyper = {"ctrl", "alt"} local primaryScreen = hs.screen.primaryScreen() local primaryScreenMenuBarOffset = primaryScreen:frame().y hs.loadSpoon("MiroWindowsManager...
--- reload config hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs.reload() end) hs.alert.show("Config loaded") local v60hyper = {} local globalHyper = {"ctrl", "alt"} local primaryScreen = hs.screen.primaryScreen() local primaryScreenMenuBarOffset = primaryScreen:frame().y hs.loadSpoon("MiroWindowsManager...
try to fix small screen/large margin bug
try to fix small screen/large margin bug
Lua
mit
paul-krohn/configs
95236ec1030e8946c1c36b0e8e2f1d67f04b6299
game/scripts/vscripts/items/item_book_of_the_guardian.lua
game/scripts/vscripts/items/item_book_of_the_guardian.lua
LinkLuaModifier("modifier_item_book_of_the_guardian", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_book_of_the_guardian_effect", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_book_of_the_guardian_blast", "items/item_boo...
LinkLuaModifier("modifier_item_book_of_the_guardian", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_book_of_the_guardian_effect", "items/item_book_of_the_guardian.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_book_of_the_guardian_blast", "items/item_boo...
Fixed Book of the Guardian didn't increased attack damage
Fixed Book of the Guardian didn't increased attack damage
Lua
mit
ark120202/aabs
6d4985118ffdf78ea20f8bbb6174ea7c9c157ceb
src/romdisk/system/lib/boot.lua
src/romdisk/system/lib/boot.lua
package.path = "/romdisk/system/lib/?.lua;/romdisk/system/lib/?/init.lua;" .. package.path package.cpath = "/romdisk/system/lib/?.so;/romdisk/system/lib/loadall.so;" .. package.cpath print = require("org.xboot.buildin.logger").print local function loader() require("main") end local function handler(msg, layer) pri...
package.path = "/romdisk/system/lib/?.lua;/romdisk/system/lib/?/init.lua;./?.lua" package.cpath = "/romdisk/system/lib/?.so;/romdisk/system/lib/loadall.so;./?.so" print = require("org.xboot.buildin.logger").print local function loader() require("main") end local function handler(msg, layer) print((debug.traceback(...
fix boot.lua
fix boot.lua
Lua
mit
xboot/xboot,xboot/xboot
47984efec93841c3979c4847ace1e592250ce1a4
aspects/nvim/files/.config/nvim/plugin/mappings/normal.lua
aspects/nvim/files/.config/nvim/plugin/mappings/normal.lua
-- -- Normal mode mappings. -- local nnoremap = wincent.vim.nnoremap local noremap = wincent.vim.noremap -- Toggle fold at current position. nnoremap('<Tab>', 'za') -- Relying on Karabiner-Elements (macOS) or Interception Tools (Linux) to avoid -- collision between <Tab> and <C-i> (have it send F6 instead for <C-i>)...
-- -- Normal mode mappings. -- local nnoremap = wincent.vim.nnoremap local noremap = wincent.vim.noremap -- Wrap all mappings related to folding so that indent-blankline.nvim can -- update when folds are changed. See: -- https://github.com/lukas-reineke/indent-blankline.nvim/issues/118 local fold = function(mapping) ...
fix(nvim): make indent-blankline.nvim play nicely with fold markers
fix(nvim): make indent-blankline.nvim play nicely with fold markers Otherwise, it ends up overwriting the left side of the marker. I did think about indenting the markers (from my `foldtext` function), but I think this is going to look better.
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
37d7737297d31b6c85877e73b0d343be12997ce2
SVUI_!Core/libs/LibReputationData-1.0/LibReputationData-1.0.lua
SVUI_!Core/libs/LibReputationData-1.0/LibReputationData-1.0.lua
local MAJOR, MINOR = "LibReputationData-1.0", 1 assert(_G.LibStub, MAJOR .. " requires LibStub") local lib = _G.LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end lib.callbacks = lib.callbacks or _G.LibStub("CallbackHandler-1.0"):New(lib) -- local store local reputationChanges = {} local allFactions = {} lo...
local MAJOR, MINOR = "LibReputationData-1.0", 1 assert(_G.LibStub, MAJOR .. " requires LibStub") local lib = _G.LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end lib.callbacks = lib.callbacks or _G.LibStub("CallbackHandler-1.0"):New(lib) -- local store local reputationChanges = {} local allFactions = {} lo...
Updated LibReputationData to fix #10
Updated LibReputationData to fix #10 Fix for #10 where Rep panel faction groupings couldn't be collapsed.
Lua
mit
finalsliver/supervillain-ui,FailcoderAddons/supervillain-ui
a14cdd5c75c13b2b09d80356e08c91734513942d
feedback/perplexity.lua
feedback/perplexity.lua
------------------------------------------------------------------------ --[[ Perplexity ]]-- -- Feedback -- Computes perplexity for language models -- For now, only works with SoftmaxTree ------------------------------------------------------------------------ local Perplexity, parent = torch.class("dp.Perplexity", "d...
------------------------------------------------------------------------ --[[ Perplexity ]]-- -- Feedback -- Computes perplexity for language models -- For now, only works with SoftmaxTree ------------------------------------------------------------------------ local Perplexity, parent = torch.class("dp.Perplexity", "d...
fix Perplexity for recurrent nets
fix Perplexity for recurrent nets
Lua
bsd-3-clause
nicholas-leonard/dp,sagarwaghmare69/dp,kracwarlock/dp,jnhwkim/dp,eulerreich/dp
68ec350388b2b52edb74cca13e0715bb35211343
rootfs/etc/nginx/lua/monitor.lua
rootfs/etc/nginx/lua/monitor.lua
local ngx = ngx local tonumber = tonumber local assert = assert local string = string local tostring = tostring local socket = ngx.socket.tcp local cjson = require("cjson.safe") local new_tab = require "table.new" local clear_tab = require "table.clear" local clone_tab = require "table.clone" -- if an Nginx worker pr...
local ngx = ngx local tonumber = tonumber local assert = assert local string = string local tostring = tostring local socket = ngx.socket.tcp local cjson = require("cjson.safe") local new_tab = require "table.new" local clear_tab = require "table.clear" local table = table local pairs = pairs -- if an Nginx worker pr...
perf: json encoding share to eatch request (#6955)
perf: json encoding share to eatch request (#6955) * perf: json encoding share to eatch request * fix: fix lint lua
Lua
apache-2.0
kubernetes/ingress-nginx,canhnt/ingress,kubernetes/ingress-nginx,kubernetes/ingress-nginx,kubernetes/ingress-nginx,canhnt/ingress,canhnt/ingress,canhnt/ingress,kubernetes/ingress-nginx
7c8d2a5565afb8c00940e5e4d6c48d502213cb1f
.hammerspoon/init.lua
.hammerspoon/init.lua
local mash = {"cmd", "alt", "ctrl"} -- Application shortcuts hs.hotkey.bind({"cmd", "shift"}, "{", function() current_app():selectMenuItem({"Window", "Select Previous Tab"}) end) hs.hotkey.bind({"cmd", "shift"}, "}", function() current_app():selectMenuItem({"Window", "Select Previous Tab"}) end) -- Window manag...
local mash = {"cmd", "alt", "ctrl"} local mash = {"cmd", "alt", "ctrl", "shift"} -- Application shortcuts hs.hotkey.bind({"cmd", "shift"}, "[", function() current_app():selectMenuItem({"Window", "Select Previous Tab"}) end) hs.hotkey.bind({"cmd", "shift"}, "]", function() current_app():selectMenuItem({"Window", ...
[hammerspoon] Fix hotkey binding
[hammerspoon] Fix hotkey binding
Lua
mit
kejadlen/dotfiles,kejadlen/dotfiles
7a463dd06818589c4f009174ac9f7766e05f360b
kong/db/migrations/core/012_213_to_220.lua
kong/db/migrations/core/012_213_to_220.lua
local fmt = string.format local function pg_clean_repeated_targets(connector, upstream_id) local targets_query = fmt("SELECT id, created_at, target FROM targets WHERE upstream_id = '%s'", upstream_id) for target, err in connector:iterate(targets_query) do local rep_tgt_query = fmt("SELECT id, created_at, targ...
local fmt = string.format local function pg_clean_repeated_targets(connector, upstream_id) local targets_query = fmt("SELECT id, created_at, target FROM targets WHERE upstream_id = '%s'", upstream_id) for target, err in connector:iterate(targets_query) do if err then return nil, err end local re...
fix(migrations) add proper error handling to 2.1.3 to 2.2.0 migrations (#6440)
fix(migrations) add proper error handling to 2.1.3 to 2.2.0 migrations (#6440) ### Summary Adds proper error handling to 2.1.3 to 2.2.0 migrations. Also removes the non-needed `connect_migrations` call from Postgres. The Cassandra uses `coordinator:execute` on all the migrations. Rest of the fixes should be me...
Lua
apache-2.0
Kong/kong,Kong/kong,Kong/kong
dc92a417fa7b6ca61bc7fdd6887d54f7fffeba52
core/portmanager.lua
core/portmanager.lua
local config = require "core.configmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local prosody = prosody; local fire_event = prosody.events.fire_event; module "portmanager"; --- Conf...
local config = require "core.configmanager"; local server = require "net.server"; local log = require "util.logger".init("portmanager"); local multitable = require "util.multitable"; local set = require "util.set"; local table, package = table, package; local setmetatable, rawset, rawget = setmetatable, rawset, rawge...
portmanager: Fix breakage (import ALL the functions)
portmanager: Fix breakage (import ALL the functions)
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
2d8becef0f546ead3134cb76b62132ac4d165be9
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-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 ve...
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $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 ve...
fix appletrailers playlist parser
fix appletrailers playlist parser
Lua
lgpl-2.1
krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,krichter722/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,vlc-mirror/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,j...
3fc7d3f5de08a6d750cc8ccbe124f23f29bad732
libs/httpd/luasrc/httpd/handler/luci.lua
libs/httpd/luasrc/httpd/handler/luci.lua
--[[ HTTP server implementation for LuCI - luci handler (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 http://www.apache.org/licenses/LICENSE-2....
--[[ HTTP server implementation for LuCI - luci handler (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 http://www.apache.org/licenses/LICENSE-2....
* Fixed last commit
* Fixed last commit
Lua
apache-2.0
cshore-firmware/openwrt-luci,RuiChen1113/luci,ReclaimYourPrivacy/cloak-luci,ReclaimYourPrivacy/cloak-luci,jchuang1977/luci-1,maxrio/luci981213,kuoruan/lede-luci,florian-shellfire/luci,david-xiao/luci,cshore/luci,palmettos/cnLuCI,wongsyrone/luci-1,palmettos/cnLuCI,cshore/luci,sujeet14108/luci,Sakura-Winkey/LuCI,openwrt/...
29512dd3ec06f234b839e13dd399601f4b24c258
lib/grid.lua
lib/grid.lua
local Grid = class('Grid') function Grid:initialize(width, height) assert(type(width) == "number" and width > 0) assert(type(height) == "number" and height > 0) for i = 1, width do self[i] = {} end self.width = width self.height = height self.orientation = 0 end -- TODO I don't actually trust thi...
local Grid = class('Grid') function Grid:initialize(width, height) assert(type(width) == "number" and width > 0) assert(type(height) == "number" and height > 0) for i = 1, width do self[i] = {} end self.width = width self.height = height self.orientation = 0 end -- TODO I don't actually trust thi...
fix grid iterator not respecting the grid orientation
fix grid iterator not respecting the grid orientation
Lua
mit
TannerRogalsky/GGJ2017
1e5cd18025b99129bd9d81e1cfad6018817c6ae3
aspects/nvim/files/.config/nvim/lua/wincent/cmp/handles.lua
aspects/nvim/files/.config/nvim/lua/wincent/cmp/handles.lua
-- Custom nvim-cmp source for GitHub handles. local handles = {} local registered = false handles.setup = function() if registered then return end registered = true local has_cmp, cmp = pcall(require, 'cmp') if not has_cmp then return end local config = vim.fn.expand('~/.github-handles.json'...
-- Custom nvim-cmp source for GitHub handles. local handles = {} local registered = false handles.setup = function() if registered then return end registered = true local has_cmp, cmp = pcall(require, 'cmp') if not has_cmp then return end local config = vim.fn.expand('~/.github-handles.json'...
fix(nvim): include handle text in handle completion autocomplete
fix(nvim): include handle text in handle completion autocomplete Hadn't spotted this bug because at GitHub your handle always matches your email address: @wincent Greg Hurrell <wincent@github.com> ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ Handle Name Email address As such, I could ...
Lua
unlicense
wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent
0a6ce204234c9485549e290230e51484b1fceb64
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.processes", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) return { { title = "%H: Processes", vlabel = "Proce...
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.processes", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) if plugin_instance == "" then return { title = "%H:...
luci-app-statistics: processes: fix graph visibility
luci-app-statistics: processes: fix graph visibility Fix graph visibility on processes page based on plugin instance. The overview instance is empty, while monitored processes have their own instances. Original version of the patch created by @koblack and discussed in #1021 Signed-off-by: Hannu Nyman <ab53a3387de93e...
Lua
apache-2.0
hnyman/luci,wongsyrone/luci-1,artynet/luci,artynet/luci,taiha/luci,rogerpueyo/luci,chris5560/openwrt-luci,oneru/luci,tobiaswaldvogel/luci,981213/luci-1,openwrt-es/openwrt-luci,openwrt-es/openwrt-luci,kuoruan/lede-luci,kuoruan/lede-luci,remakeelectric/luci,rogerpueyo/luci,hnyman/luci,wongsyrone/luci-1,remakeelectric/luc...
26e1fdbfc18fd52665579c9e1e58ba41e37c62c5
UCDmafiaWars/LV_c.lua
UCDmafiaWars/LV_c.lua
local t addEventHandler("onClientColShapeHit", LV, function (ele, matchingDimension) if (ele.type == "player" and ele == localPlayer and matchingDimension) then exports.UCDdx:add("Welcome to Las Venturas", 255, 255, 0) t = Timer(function () exports.UCDdx:del("Welcome to Las Venturas") end, 2500, 1) end end...
local t addEventHandler("onClientColShapeHit", LV, function (ele, matchingDimension) if (ele.type == "player" and ele == localPlayer and matchingDimension) then exports.UCDdx:add("welcometolv", "Welcome to Las Venturas", 255, 255, 0) t = Timer(function () exports.UCDdx:del("welcometolv") end, 5000, 1) end ...
UCDmafiaWars
UCDmafiaWars - Fixed debug from LV switching with timer. - Fixed to work with new dx side bar.
Lua
mit
nokizorque/ucd,nokizorque/ucd
638467f8791ba7752eb3f201a853c7f8d7345e09
build/scripts/actions/codeblocks/codeblocks_project.lua
build/scripts/actions/codeblocks/codeblocks_project.lua
-- -- codeblocks_cbp.lua -- Generate a Code::Blocks C/C++ project. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local p = premake local project = p.project local config = p.config local tree = p.tree local codeblocks = p.modules.codeblocks codeblocks.project = {} local m = codeblocks.pr...
-- -- codeblocks_cbp.lua -- Generate a Code::Blocks C/C++ project. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local p = premake local project = p.project local config = p.config local tree = p.tree local codeblocks = p.modules.codeblocks codeblocks.project = {} local m = codeblocks.pr...
Build: Fix codeblocks debug and object directory
Build: Fix codeblocks debug and object directory
Lua
mit
DigitalPulseSoftware/NazaraEngine
665eebb6117daa69189e84277168b7d2f13d7ec0
lua_modules/luvit-rackspace-monitoring-client/lib/client.lua
lua_modules/luvit-rackspace-monitoring-client/lib/client.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...
rackspace-monitoring-client: bump client for parse fix
rackspace-monitoring-client: bump client for parse fix
Lua
apache-2.0
kans/birgo,kans/birgo,kans/birgo,kans/birgo,kans/birgo
94380a19d41c327bd27b24f568ddaa0934320f20
timeseries/insert.lua
timeseries/insert.lua
pathtest = string.match(test, "(.*/)") or "" dofile(pathtest .. "common.lua") function thread_init(thread_id) set_vars() init_ts = os.time() end function event(thread_id) db_bulk_insert_init("INSERT INTO sensordata(ts, sensor_id, data1,data2,data3,data4,data5,cnt) VALUES") for j = sensors_per_thread*th...
pathtest = string.match(test, "(.*/)") or "" dofile(pathtest .. "common.lua") function thread_init(thread_id) set_vars() init_ts = os.time() end function event(thread_id) db_bulk_insert_init("INSERT INTO sensordata(ts, sensor_id, data1,data2,data3,data4,data5,cnt) VALUES") for j = sensors_per_thread*th...
Fix insert workload
Fix insert workload
Lua
bsd-2-clause
percona/sysbench-scripts
c8e83565addad6ca85d9a6c0386dae52409791cc
xmake/scripts/base/os.lua
xmake/scripts/base/os.lua
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
--!The Automatic Cross-platform Build Tool -- -- XMake is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- -- XMake is dis...
fix os.match bug
fix os.match bug
Lua
apache-2.0
tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake
223dc19ec7960e70d68d9135415b447f63cd3ea5
CIFAR10/cifar10_L2.lua
CIFAR10/cifar10_L2.lua
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
--[[ Multiple meta-iterations for DrMAD on CIFAR10 ]] require 'torch' require 'sys' require 'image' local root = '../' local grad = require 'autograd' local utils = require(root .. 'models/utils.lua') local optim = require 'optim' local dl = require 'dataload' local xlua = require 'xlua' local c = require 'trepl.col...
Fix bug: all variables should be passed to the function.
Fix bug: all variables should be passed to the function.
Lua
mit
bigaidream-projects/drmad
01cd04fc7813b515be6772cc1f59939b30d7ff07
applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua
applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
applications/luci-firewall: fix turning off nat reflection
applications/luci-firewall: fix turning off nat reflection
Lua
apache-2.0
LazyZhu/openwrt-luci-trunk-mod,cappiewu/luci,sujeet14108/luci,NeoRaider/luci,maxrio/luci981213,nwf/openwrt-luci,nwf/openwrt-luci,hnyman/luci,thess/OpenWrt-luci,openwrt/luci,oyido/luci,obsy/luci,cshore/luci,oneru/luci,openwrt-es/openwrt-luci,bright-things/ionic-luci,zhaoxx063/luci,shangjiyu/luci-with-extra,openwrt-es/op...
a6e607407f38304e68aeb48ce58fde7d19793c2f
examples/timeout.lua
examples/timeout.lua
-- -- display time in all its joy -- -- setup() and draw() are start and main functions -- grid is drawn, time is kept on the grid -- screen_width = WIDTH screen_height = HEIGHT screen_w_center = screen_width / 2 screen_h_center = screen_height / 2 cell_size = HEIGHT / 4 colors = {} colors = { {r=255, g=0, b=2...
-- -- display time in all its joy -- -- setup() and draw() are start and main functions -- grid is drawn, time is kept on the grid -- screen_width = WIDTH screen_height = HEIGHT screen_w_center = screen_width / 2 screen_h_center = screen_height / 2 cell_size = HEIGHT / 4 colors = {} colors = { {r=255, g=0, b=2...
fix of merge hiccup
fix of merge hiccup
Lua
bsd-2-clause
seclorum/load81,seclorum/load81,seclorum/load81,seclorum/load81,seclorum/load81
c6bfe29e3ee7a2741e6652c974d87dfb20b49ee4
groupped-list.lua
groupped-list.lua
-- cached id list key local idListKey = KEYS[1]; -- meta key local metadataKey = KEYS[2]; -- stringified [key]: [aggregateMethod] pairs local aggregates = ARGV[1]; -- local cache local rcall = redis.call; local tinsert = table.insert; local jsonAggregates = cjson.decode(aggregates); local aggregateKeys = {}; local re...
-- cached id list key local idListKey = KEYS[1]; -- meta key local metadataKey = KEYS[2]; -- stringified [key]: [aggregateMethod] pairs local aggregates = ARGV[1]; -- local cache local rcall = redis.call; local tinsert = table.insert; local jsonAggregates = cjson.decode(aggregates); local aggregateKeys = {}; local re...
fix: be able to parse json-encoded numbers
fix: be able to parse json-encoded numbers
Lua
mit
makeomatic/redis-filtered-sort,makeomatic/redis-filtered-sort
e0729a483d6b5b86c76af14b167f2527f84e89a3
lualib/skynet/cluster.lua
lualib/skynet/cluster.lua
local skynet = require "skynet" local clusterd local cluster = {} local sender = {} local inquery_name = {} local function get_sender(t, node) local waitco = inquery_name[node] if waitco then local co=coroutine.running() table.insert(waitco, co) skynet.wait(co) return rawget(t, node) else waitco = {} i...
local skynet = require "skynet" local clusterd local cluster = {} local sender = {} local function get_sender(t, node) local c = skynet.call(clusterd, "lua", "sender", node) t[node] = c return c end setmetatable(sender, { __index = get_sender } ) function cluster.call(node, address, ...) -- skynet.pack(...) wil...
Revert "bugfix:cluster初始化节点的时候有可能导致消息乱序"
Revert "bugfix:cluster初始化节点的时候有可能导致消息乱序" This reverts commit 9ba0860c701850a04154b4f9799f391f9d388fa3.
Lua
mit
hongling0/skynet,bigrpg/skynet,cloudwu/skynet,korialuo/skynet,ag6ag/skynet,wangyi0226/skynet,ag6ag/skynet,pigparadise/skynet,cloudwu/skynet,hongling0/skynet,sanikoyes/skynet,jxlczjp77/skynet,icetoggle/skynet,wangyi0226/skynet,xjdrew/skynet,bigrpg/skynet,xcjmine/skynet,sanikoyes/skynet,wangyi0226/skynet,xjdrew/skynet,ko...
bc06611c4ca1ef79760db8d08ce64a29a2cb2837
Quadtastic/Tooltip.lua
Quadtastic/Tooltip.lua
local Text = require("Text") local imgui = require("imgui") local Renderutils = require("Renderutils") local Tooltip = {} unpack = unpack or table.unpack local border_quads = Renderutils.border_quads(0, 48, 5, 5, 128, 128, 2) local tip_quad_down = love.graphics.newQuad(6, 48, 5, 3, 128, 128) local tip_quad_up = ...
local Text = require("Text") local imgui = require("imgui") local Renderutils = require("Renderutils") local Tooltip = {} unpack = unpack or table.unpack local border_quads = Renderutils.border_quads(0, 48, 5, 5, 128, 128, 2) local tip_quad_down = love.graphics.newQuad(6, 48, 5, 3, 128, 128) local tip_quad_up = ...
[Whitespace] Fix whitespace inconsistency
[Whitespace] Fix whitespace inconsistency
Lua
mit
25A0/Quadtastic,25A0/Quadtastic
e42d0bf91e634b7253c53e12417a1449a55e2236
core/cairo-output.lua
core/cairo-output.lua
local lgi = require("lgi"); local cairo = lgi.cairo local pango = lgi.Pango if (not SILE.outputters) then SILE.outputters = {} end local cr SILE.outputters.cairo = { init = function() local surface = cairo.PdfSurface.create(SILE.outputFilename, SILE.documentState.paperSize[1], SILE.documentState.paperSize[2]) ...
local lgi = require("lgi"); local cairo = lgi.cairo local pango = lgi.Pango if (not SILE.outputters) then SILE.outputters = {} end local cr SILE.outputters.cairo = { init = function() local surface = cairo.PdfSurface.create(SILE.outputFilename, SILE.documentState.paperSize[1], SILE.documentState.paperSize[2]) ...
Fix this method.
Fix this method.
Lua
mit
alerque/sile,neofob/sile,shirat74/sile,anthrotype/sile,simoncozens/sile,Nathan22Miles/sile,neofob/sile,anthrotype/sile,WAKAMAZU/sile_fe,shirat74/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,anthrotype/sile,alerque/sile,shirat74/sile,simoncozens/sile,Nathan22Miles/sile,alerque/sile,simoncoz...
e1ff894595450e2f5c220b0666ed056274524e85
src_trunk/resources/realism-system/c_weapons_back.lua
src_trunk/resources/realism-system/c_weapons_back.lua
local objectmade = false local crouched = nil local weapon = nil function weaponSwitched() -- SLOT 5 if (getPedWeaponSlot(getLocalPlayer())~=5 and getPedWeapon(getLocalPlayer(), 5)~=0) then local weap = getPedWeapon(getLocalPlayer(), 5) if (weap==30 or weap==31) then if not (objectmade) or (isPed...
local objectmade = false local crouched = nil local weapon = nil function weaponSwitched() -- SLOT 5 if (getPedWeaponSlot(getLocalPlayer())~=5 and getPedWeapon(getLocalPlayer(), 5)~=0) and not (isPedInVehicle(getLocalPlayer())) then local weap = getPedWeapon(getLocalPlayer(), 5) if (weap==30 or weap=...
Fixed 245
Fixed 245 git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@74 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
Lua
bsd-3-clause
valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno
de8d8e4f13e530edc3c14a6524e8c2b9ed66c5d0
modules/exchange.lua
modules/exchange.lua
local simplehttp = require'simplehttp' local html2unicode = require'html' local cc = { ["AED"] = "United Arab Emirates Dirham (AED)", ["ANG"] = "Netherlands Antillean Guilder (ANG)", ["ARS"] = "Argentine Peso (ARS)", ["AUD"] = "Australian Dollar (AUD)", ["BDT"] = "Bangladeshi Taka (BDT)", ["BGN"] = "Bulgarian Le...
local simplehttp = require'simplehttp' local html2unicode = require'html' local cc = { ["AED"] = "United Arab Emirates Dirham (AED)", ["ANG"] = "Netherlands Antillean Guilder (ANG)", ["ARS"] = "Argentine Peso (ARS)", ["AUD"] = "Australian Dollar (AUD)", ["BDT"] = "Bangladeshi Taka (BDT)", ["BGN"] = "Bulgarian Le...
exchange: Workaround empty data returns.
exchange: Workaround empty data returns. Fixes #42.
Lua
mit
torhve/ivar2,haste/ivar2,torhve/ivar2,torhve/ivar2
efad7a3437f6b166d63be6d775b6d520c1ab4277
MMOCoreORB/bin/scripts/screenplays/tasks/naboo/huff_zinga.lua
MMOCoreORB/bin/scripts/screenplays/tasks/naboo/huff_zinga.lua
huff_zinga_missions = { { missionType = "assassinate", primarySpawns = { { npcTemplate = "huff_blistmok", planetName = "naboo", npcName = "Adult blistmok" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "credits", amount = 100 }, } }, { missionType = "...
huff_zinga_missions = { { missionType = "assassinate", silentTarget = "yes", primarySpawns = { { npcTemplate = "huff_blistmok", planetName = "naboo", npcName = "Adult blistmok" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "credits", amount = 100 }, } ...
[fixed] Huff Zinga quest targets set to silent and final reward adjusted
[fixed] Huff Zinga quest targets set to silent and final reward adjusted Change-Id: I8bf87d4283894cbf47585117ab9d88ff268960ce
Lua
agpl-3.0
lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/lege...
631ba21c182389dd5a68241a36d1eb4fb13c895b
packages/leaders.lua
packages/leaders.lua
-- -- Leaders package -- local widthToFrameEdge = function (frame) local w if frame:writingDirection() == "LTR" then w = frame:right() - frame.state.cursorX elseif frame:writingDirection() == "RTL" then w = frame.state.cursorX - frame:left() elseif frame:writingDirection() == "TTB" then w = frame:b...
-- -- Leaders package -- local widthToFrameEdge = function (frame) local w if frame:writingDirection() == "LTR" then w = frame:right() - frame.state.cursorX elseif frame:writingDirection() == "RTL" then w = frame.state.cursorX - frame:left() elseif frame:writingDirection() == "TTB" then w = frame:b...
fix(packages): Leaders shall be an explicit (non-discardable) glue
fix(packages): Leaders shall be an explicit (non-discardable) glue
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
cd57ca19294b0cebebf60839f7886c9f6f9ecd14
OS/DiskOS/Programs/run.lua
OS/DiskOS/Programs/run.lua
--This file loads a lk12 disk and execute it --First we will start by obtaining the disk data --We will run the current code in the editor print("") local eapi = require("C://Editors") local sprid = "spritesheet" local codeid = "luacode" local diskdata = eapi:export() diskdata = loadstring(diskdata)() --Load the sp...
--This file loads a lk12 disk and execute it --First we will start by obtaining the disk data --We will run the current code in the editor print("") local eapi = require("C://Editors") local sprid = "spritesheet" local codeid = "luacode" local diskdata = eapi:export() diskdata = loadstring(diskdata)() --Load the sp...
Bugfix for the sandbox
Bugfix for the sandbox
Lua
mit
RamiLego4Game/LIKO-12
e70dd603a49bf01ea8044b04aa2ba11c37d2ac75
lib/resty/consul.lua
lib/resty/consul.lua
local pcall = pcall local cjson = require('cjson') local json_decode = cjson.decode local json_encode = cjson.encode local tbl_concat = table.concat local ngx = ngx local ngx_socket_tcp = ngx.socket.tcp local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_DEBUG = ngx.DEBUG local http = require('resty.http') local...
local pcall = pcall local cjson = require('cjson') local json_decode = cjson.decode local json_encode = cjson.encode local tbl_concat = table.concat local tbl_insert = table.insert local ngx = ngx local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_DEBUG = ngx.DEBUG local http = require('resty.http') local _M = ...
Fix blocking get
Fix blocking get
Lua
mit
hamishforbes/lua-resty-consul
af58264598eca406fcbd907c1193b74a030c37c3
lib/resty/github.lua
lib/resty/github.lua
-- Copyright (C) James Marlowe (jamesmarlowe), Lumate LLC. local cjson = require "cjson" local github_proxy_url = "/github/v3/" local issue_url = "/repos/${owner}/${repo}/issues/${issue}" -- obtain a copy of enc() here: http://lua-users.org/wiki/BaseSixtyFour function enc(data) -- character table string loc...
-- Copyright (C) James Marlowe (jamesmarlowe), Lumate LLC. local cjson = require "cjson" local github_proxy_url = "/github/v3/" local issue_url = "/repos/${owner}/${repo}/issues${issue}" -- obtain a copy of enc() here: http://lua-users.org/wiki/BaseSixtyFour function enc(data) -- character table string loca...
minor fixes
minor fixes
Lua
bsd-2-clause
jamesmarlowe/lua-resty-github
2802d9b14318a514da5fa56bfb60f67b698db51b
packages/rebox.lua
packages/rebox.lua
SILE.registerCommand("rebox", function (options, content) local box = SILE.call("hbox", {}, content) if options.width then box.width = SILE.length(options.width) end if options.height then box.height = SILE.length(options.height) end if options.depth then box.depth = SILE.length(options.depth) end if options....
SILE.registerCommand("rebox", function (options, content) local box = SILE.call("hbox", {}, content) table.remove(SILE.typesetter.state.nodes) -- steal it back if options.width then box.width = SILE.length(options.width) end if options.height then box.height = SILE.length(options.height) end if options.depth ...
fix(packages): Correct rebox to not output duplicate content
fix(packages): Correct rebox to not output duplicate content
Lua
mit
alerque/sile,alerque/sile,alerque/sile,alerque/sile
1819e1898e1cc0e932089bfc43e343755debc7f2
.config/nvim/lua/config/neo-tree.lua
.config/nvim/lua/config/neo-tree.lua
local status_ok, p = pcall(require, "neo-tree") if not status_ok then return end p.setup({ popup_border_style = "rounded", default_component_configs = { git_status = { symbols = { -- Change type added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name modified = ""...
local status_ok, p = pcall(require, "neo-tree") if not status_ok then return end p.setup({ use_default_mappings = false, popup_border_style = "rounded", default_component_configs = { git_status = { symbols = { -- Change type added = "", -- or "✚", but this is redundant info if you use git_status_color...
[nvim] Fix neo-tree config
[nvim] Fix neo-tree config
Lua
mit
masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles
819b0e7193f84d36f0d689efdc19fef2415f386b
plugins/mod_http.lua
plugins/mod_http.lua
-- Prosody IM -- Copyright (C) 2008-2012 Matthew Wild -- Copyright (C) 2008-2012 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:set_global(); module:depends("http_errors"); local moduleapi = require "core.moduleapi"; local ur...
-- Prosody IM -- Copyright (C) 2008-2012 Matthew Wild -- Copyright (C) 2008-2012 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:set_global(); module:depends("http_errors"); local moduleapi = require "core.moduleapi"; local ur...
mod_http: Fix normalize_path('/') to not return an empty string, fixes module:http_url()
mod_http: Fix normalize_path('/') to not return an empty string, fixes module:http_url()
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
c4779c03609b3bca76ab5c242a4542e385d7b7c3
mock/core/signal.lua
mock/core/signal.lua
--[[ * MOCK framework for Moai * Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved. * * 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 *...
--[[ * MOCK framework for Moai * Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved. * * 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 *...
add 'global' prefix to global signal functions
add 'global' prefix to global signal functions
Lua
mit
tommo/mock
8c977451a8d6336a28bf07bc4a3762bd62500720
mods/stairs/init.lua
mods/stairs/init.lua
-- Minetest 0.4 mod: stairs -- See README.txt for licensing and other information. stairs = {} -- Node will be called stairs:stair_<subname> function stairs.register_stair(subname, recipeitem, groups, images, description, sounds) minetest.register_node("stairs:stair_" .. subname, { description = description, dra...
-- Minetest 0.4 mod: stairs -- See README.txt for licensing and other information. stairs = {} -- Node will be called modname:stair_<subname> function stairs.register_stair(subname, recipeitem, groups, images, description, sounds) local modname = minetest.get_current_modname() minetest.register_node(modname..":stai...
Fix modname prefix in stairs and slab functions
Fix modname prefix in stairs and slab functions
Lua
lgpl-2.1
evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy
e0e5cad0caf3c9dcdbb429c9d0cbc58457b66f33
pud/ui/Tooltip.lua
pud/ui/Tooltip.lua
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local Text = getClass 'pud.ui.Text' local Bar = getClass 'pud.ui.Bar' -- Tooltip -- local Tooltip = Class{name='Tooltip', inherits=Frame, function(self, ...) Frame.construct(self, ...) self._margin = 0 end } -- destructor function Too...
local Class = require 'lib.hump.class' local Frame = getClass 'pud.ui.Frame' local Text = getClass 'pud.ui.Text' local Bar = getClass 'pud.ui.Bar' -- Tooltip -- local Tooltip = Class{name='Tooltip', inherits=Frame, function(self, ...) Frame.construct(self, ...) self._margin = 0 end } -- destructor function Too...
fix tooltip drawing relative to position
fix tooltip drawing relative to position
Lua
mit
scottcs/wyx
0b12b901357a270e0d7d131561735ed61306685e
XLifeBar/HP.class.lua
XLifeBar/HP.class.lua
-- -- ƽѪUI -- ֻUI κ߼ж -- XLifeBar = XLifeBar or {} XLifeBar.HP = class() local HP = XLifeBar.HP function HP:ctor(dwID, frame, handle) -- KGobject self.dwID = dwID self.frame = frame self.handle = handle return self end -- function HP:Create() -- Create handle local frame = self.frame if no...
-- -- ƽѪUI -- ֻUI κ߼ж -- XLifeBar = XLifeBar or {} XLifeBar.HP = class() local HP = XLifeBar.HP function HP:ctor(dwID, frame, handle) -- KGobject self.dwID = dwID self.frame = frame self.handle = handle return self end -- function HP:Create() -- Create handle local frame = self.frame if no...
扁平血条:库一处可能BUG的地方
扁平血条:库一处可能BUG的地方
Lua
bsd-3-clause
tinymins/MY
8c7805f1d931f3a200041b25137a056daeeb528d
himan-scripts/precipitation-type.lua
himan-scripts/precipitation-type.lua
local function CheckedFetch(parm_name, lvl, time) local p = luatool:FetchWithType(time, lvl, param(parm_name), current_forecast_type) if not p then msg = string.format("Failed to find parameter '%s'", parm_name) logger:Error(msg) error("luatool:Fetch failed") else return p end end local MISS = ...
local function CheckedFetch(parm_name, lvl, time) local p = luatool:FetchWithType(time, lvl, param(parm_name), current_forecast_type) if not p then msg = string.format("Failed to find parameter '%s'", parm_name) logger:Error(msg) error("luatool:Fetch failed") else return p end end local MISS = ...
Minor fixes
Minor fixes
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
aa3ee1ec9c1b10ae9aab6e3331ebd73a95b82822
script/c80600066.lua
script/c80600066.lua
--旗鼓堂々 function c80600066.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCategory(CATEGORY_EQUIP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c80600066.eqtg) e1:SetOperation(c80600066.eq...
--旗鼓堂々 function c80600066.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCategory(CATEGORY_EQUIP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCost(c80600066.cost) e1:SetTarget(c80600066.eqtg) e1:SetOperation(c80600066.eqop) c...
fix
fix fix due to changed text
Lua
mit
Tic-Tac-Toc/DevProLauncher,sidschingis/DevProLauncher,SuperAndroid17/DevProLauncher
3da60abce8b56e0d89a35509e0998c03806f6acd
modules/sortModes/core.lua
modules/sortModes/core.lua
--- Bench (i.e., move to group 8) all guild members below a certain rank. local A, L = unpack(select(2, ...)) local P = A.sortModes local M = P:NewModule("core", "AceEvent-3.0") P.core = M local R = { core = {}, nonCore = {}, } M.private = R local PADDING_PLAYER = {isDummy=true} local format, gsub, ipairs, min, s...
--- Bench (i.e., move to group 8) all guild members below a certain rank. local A, L = unpack(select(2, ...)) local P = A.sortModes local M = P:NewModule("core", "AceEvent-3.0") P.core = M local R = { core = {}, nonCore = {}, } M.private = R local PADDING_PLAYER = {isDummy=true} local format, gsub, ipairs, min, s...
Fix off-by-one error
Fix off-by-one error
Lua
mit
bencvt/FixGroups
5f09c2969c746e0545648e6d706574ec1521c988
testserver/item/books.lua
testserver/item/books.lua
require("base.common"); module("item.books", package.seeall) -- UPDATE common SET com_script='item.books' WHERE com_itemid = 2622; function InitBook() --[[ -- needs a check if (Init == nil) then bookTitleDE = {}; -- The german title of the book. bookTitleEN = {}; -- The english title of the book. bo...
require("base.common"); module("item.books", package.seeall) -- UPDATE common SET com_script='item.books' WHERE com_itemid = 2622; function InitBook() --[[ -- needs a check if (Init == nil) then bookTitleDE = {}; -- The german title of the book. bookTitleEN = {}; -- The english title of the book. bo...
alchemy book lookat fix
alchemy book lookat fix
Lua
agpl-3.0
Illarion-eV/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content
9ec432ba638332ea8c2a0b44d2edf17ee5795852
src/cosy/i18n/en.lua
src/cosy/i18n/en.lua
return { ["server:listening"] = "server is listening on %{host}:%{port}", ["tos"] = [[ Cas n°1: Utilisation du logiciel Cosyverif par téléchargement If you download the Cosyverif software, you acknowledge that this software is distributed under the MIT license and that you accept its terms. If you decline the...
return { ["server:listening"] = "server is listening on %{host}:%{port}", ["tos"] = [[ Cas n°1: Utilisation du logiciel Cosyverif par téléchargement If you download the Cosyverif software, you acknowledge that this software is distributed under the MIT license and that you accept its terms. If you decline the...
Fix the call to make_default.
Fix the call to make_default.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
fdc0783b887b7c9289c3fc9063a538bacf66001c
modules/luci-base/luasrc/tools/status.lua
modules/luci-base/luasrc/tools/status.lua
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.status", package.seeall) local uci = require "luci.model.uci".cursor() local function dhcp_leases_common(family) local rv = { } local nfs = require "nixio.fs" local leasefile = "/var/dhcp...
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.status", package.seeall) local uci = require "luci.model.uci".cursor() local function dhcp_leases_common(family) local rv = { } local nfs = require "nixio.fs" local leasefile = "/var/dhcp...
luci-base: read odhcpd leasefile location via uci
luci-base: read odhcpd leasefile location via uci Check the location of the odhcpd leasefile from /etc/config/dhcp via uci. Fallback to the default location. This fixes #702 Signed-off-by: Hannu Nyman <ab53a3387de93e31696058c104e6f769cd83fd1b@iki.fi> (cherry picked from commit 51a7f96877d8c5bf70217073ed8aa7ab6a196d2...
Lua
apache-2.0
Sakura-Winkey/LuCI,RuiChen1113/luci,db260179/openwrt-bpi-r1-luci,Sakura-Winkey/LuCI,Sakura-Winkey/LuCI,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,Sakura-Winkey/LuCI,db260179/openwrt-bpi-r1-luci,Sakura-Winkey/LuCI,db260179/openwrt-bpi-r1-luci,db260179/openwrt-bpi-r1-luci,RuiChen1113/luci,RuiChen1113/luci,...
ad5436e1ee8060aa6dc6df172ee710e02bdd63f8
libs/sys/luasrc/sys/mtdow.lua
libs/sys/luasrc/sys/mtdow.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...
mtdow fixes level 1
mtdow fixes level 1
Lua
apache-2.0
8devices/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci
16246abef87351eaf106d235dbcee591196ba0e2
modules/rpc/luasrc/controller/rpc.lua
modules/rpc/luasrc/controller/rpc.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...
Fixed RPC-API
Fixed RPC-API git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@3005 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
Lua
apache-2.0
ThingMesh/openwrt-luci,Canaan-Creative/luci,vhpham80/luci,gwlim/luci,jschmidlapp/luci,freifunk-gluon/luci,freifunk-gluon/luci,jschmidlapp/luci,freifunk-gluon/luci,Flexibity/luci,Flexibity/luci,ch3n2k/luci,yeewang/openwrt-luci,vhpham80/luci,projectbismark/luci-bismark,zwhfly/openwrt-luci,dtaht/cerowrt-luci-3.3,dtaht/cer...
7cb337035ee80c059c583cecd84962b1e05efa21
vim/.config/nvim/lua/plugins/lsp.lua
vim/.config/nvim/lua/plugins/lsp.lua
local lspconfig, ok = prequire"lspconfig" if not ok then return end local cmp_lsp = require"cmp_nvim_lsp" local path = require("lspconfig/util").path local on_attach = function(client, bufnr) local bufopts = {noremap=true, silent=true, buffer=bufnr} vim.keymap.set("n", "gD", vim.lsp.buf.declaration, bufopts) ...
local lspconfig, ok = prequire"lspconfig" if not ok then return end local cmp_lsp = require"cmp_nvim_lsp" local path = require("lspconfig/util").path local on_attach = function(client, bufnr) local bufopts = {noremap=true, silent=true, buffer=bufnr} vim.keymap.set("n", "gD", vim.lsp.buf.declaration, bufopts) ...
vim: fix pyright lsp initialization
vim: fix pyright lsp initialization Signed-off-by: Niklas Koep <342d5290239d9c5264c8f98185afedb99596601a@gmail.com>
Lua
apache-2.0
nkoep/dotfiles,nkoep/dotfiles,nkoep/dotfiles
2780fb5910feeef2cca14b3a98c9788b1c0d1eaf
state/settings_video_display.lua
state/settings_video_display.lua
local o = {} local startx = W.getWidth() * 0.5 - 191 * 0.5 local starty = 80 o.imgBackground = love.graphics.newImage("resources/sprites/ui/menu_background.png") o.imgMiddleground = love.graphics.newImage("resources/sprites/ui/menu_middleground.png") o.imgScreen = love.graphics.newImage("gfx/screen00.png") ...
local o = {} local startx = W.getWidth() * 0.5 - 191 * 0.5 local starty = 80 o.imgBackground = love.graphics.newImage("resources/sprites/ui/menu_background.png") o.imgMiddleground = love.graphics.newImage("resources/sprites/ui/menu_middleground.png") o.imgScreen = love.graphics.newImage("gfx/screen00.png") ...
switch between small (800x600) and [moderately] large [1280x720) resolutions. this partially fixes issue #54. I will get the fullscreen option setting working too, but actually choosing resolutions from a will be done in a separate issue, because it involves a whole new widget type.
switch between small (800x600) and [moderately] large [1280x720) resolutions. this partially fixes issue #54. I will get the fullscreen option setting working too, but actually choosing resolutions from a will be done in a separate issue, because it involves a whole new widget type.
Lua
mit
sam1i/Turres-Monacorum,sam1i/Turres-Monacorum
d0229ce52dd664d7e7abd07f2c35b7cea719d850
regex_find.lua
regex_find.lua
-- Copyright (C) 2014 Chris Emerson <github@mail.nosreme.org> -- See LICENSE for details (MIT license). local M = {} local ta_regex = require 'ta-regex.regex' -- Replace textadept's events.FIND handler with one implementing better regex. function M.install() events.connect(events.FIND, M.find, 1) end -- Find ex...
-- Copyright (C) 2014 Chris Emerson <github@mail.nosreme.org> -- See LICENSE for details (MIT license). local M = {} local ta_regex = require 'ta-regex.regex' -- Replace textadept's events.FIND handler with one implementing better regex. function M.install() events.connect(events.FIND, M.find, 1) end -- Find ex...
Hopefully fix issue #4: fix a case where startpos > end of buffer (when starting a search at the end of the buffer).
Hopefully fix issue #4: fix a case where startpos > end of buffer (when starting a search at the end of the buffer).
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
a836734bfc02b695aa102b257b22c0f0f13e4a34
test/test_multi_callback.lua
test/test_multi_callback.lua
local curl = require "lcurl" local called, active_coroutine = 0 function on_timer() called = called + 1 -- use `os.exit` because now Lua-cURL did not propogate error from callback if coroutine.running() ~= active_coroutine then os.exit(-1) end end local function test_1() io.write('Test #1 - ') called, act...
local curl = require "lcurl" local called, active_coroutine = 0 -- for Lua 5.1 compat local function co_running() local co, main = coroutine.running() if main == true then return nil end return co end function on_timer() called = called + 1 -- use `os.exit` because now Lua-cURL did not propogate error from...
Fix. Test for Lua > 5.1
Fix. Test for Lua > 5.1
Lua
mit
Lua-cURL/Lua-cURLv3,Lua-cURL/Lua-cURLv3,moteus/lua-lcurl,Lua-cURL/Lua-cURLv3,moteus/lua-lcurl
a57a6187a7976f84d6f752bde31258d33daa5a6d
npc/base/condition/magictype.lua
npc/base/condition/magictype.lua
require("base.class") require("npc.base.condition.condition") module("npc.base.condition.magictype", package.seeall) magictype = base.class.class(npc.base.condition.condition.condition, function(self, value) npc.base.condition.condition.condition:init(self); if (value == "nomagic") then self["check"] ...
require("base.class") require("npc.base.condition.condition") module("npc.base.condition.magictype", package.seeall) magictype = base.class.class(npc.base.condition.condition.condition, function(self, value) npc.base.condition.condition.condition:init(self); if (value == "nomagic") then self["check"] ...
Fixed magic type NPC condition
Fixed magic type NPC condition The magic type condition did not return the correct values.
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content
765e30772e8711945e87d38bffac243732a83887
plugins/mod_disco.lua
plugins/mod_disco.lua
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local get_children = require "core.hostmanager".get_children; local is_contact_subscribed = require "core...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local get_children = require "core.hostmanager".get_children; local is_contact_subscribed = require "core...
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
mod_disco: Fixed: Service discovery features were not being removed on module unload (issue #205).
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
b2c38f9d5f393bb9f2f959cf2f2cb66daf03b698
script/c81907872.lua
script/c81907872.lua
--ゴーストリック・スペクター function c81907872.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c81907872.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(81907872,0)) e2:S...
--ゴーストリック・スペクター function c81907872.initial_effect(c) --summon limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_SUMMON) e1:SetCondition(c81907872.sumcon) c:RegisterEffect(e1) --turn set local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(81907872,0)) e2:S...
fix v2
fix v2
Lua
mit
sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher
6512718cd950efb2c386e2aea43103b27fd234b2
vanilla/sys/nginx/handle.lua
vanilla/sys/nginx/handle.lua
local va_conf = require 'vanilla.sys.config' local function create_dirs(necessary_dirs) for _, dir in pairs(necessary_dirs) do os.execute("mkdir -p " .. dir .. " > /dev/null") end end local function create_nginx_conf(nginx_conf_file_path, nginx_conf_content) local fw = io.open(nginx_conf_file_path...
local va_conf = require 'vanilla.sys.config' local function create_dirs(necessary_dirs) for _, dir in pairs(necessary_dirs) do os.execute("mkdir -p " .. dir .. " > /dev/null") end end local function create_nginx_conf(nginx_conf_file_path, nginx_conf_content) local fw = io.open(nginx_conf_file_path...
fix a reload bug
fix a reload bug
Lua
mit
lhmwzy/vanilla,idevz/vanilla,lhmwzy/vanilla,idevz/vanilla,lhmwzy/vanilla,lhmwzy/vanilla
8d54750efd666756d4afe8a16a544f4285229263
script/c23232295.lua
script/c23232295.lua
--BK 拘束蛮兵リードブロー function c23232295.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsSetCard,0x84),4),2) c:EnableReviveLimit() --destroy replace local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EFFECT_DESTROY...
--BK 拘束蛮兵リードブロー function c23232295.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsSetCard,0x84),4),2) c:EnableReviveLimit() --destroy replace local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(23232295,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFEC...
Update c23232295.lua
Update c23232295.lua Yoke, effect string fix
Lua
mit
sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher,SuperAndroid17/DevProLauncher
f60052bf18113f4808d3694bcd4bf8e4a8362c22
script/c80600031.lua
script/c80600031.lua
--@pCAEOCX function c80600031.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c80600031.spcon) e1:SetCost(c80600031.spcost) e1:...
--���@���p�C�A�E�O���C�X function c80600031.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c80600031.spcon) e1:SetCost(c8060003...
fix
fix fixed triggering on Inherent Summons
Lua
mit
SuperAndroid17/DevProLauncher,sidschingis/DevProLauncher,Tic-Tac-Toc/DevProLauncher
95772e58134f1fb1e84612b2aa57dd8c0891abbc
scen_edit/meta/meta_model.lua
scen_edit/meta/meta_model.lua
MetaModel = LCS.class{} SCEN_EDIT_META_MODEL_DIR = SCEN_EDIT_DIR .. "meta/" function MetaModel:init() SCEN_EDIT.IncludeDir(SCEN_EDIT_META_MODEL_DIR) self.numericComparisonTypes = {"==", "~=", "<=", ">=", ">", "<"} -- maybe use more user friendly signs self.identityComparisonTypes = {"is", "is not"} -- may...
MetaModel = LCS.class{} SCEN_EDIT_META_MODEL_DIR = SCEN_EDIT_DIR .. "meta/" function MetaModel:init() SCEN_EDIT.IncludeDir(SCEN_EDIT_META_MODEL_DIR) self.numericComparisonTypes = {"==", "~=", "<=", ">=", ">", "<"} -- maybe use more user friendly signs self.identityComparisonTypes = {"is", "is not"} -- may...
fixed grouping functions by input (not that it's actually used anywhere atm?)
fixed grouping functions by input (not that it's actually used anywhere atm?)
Lua
mit
Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core
7390a2a9b72316651e089cf97b936179029f9cf7
src/common/github.lua
src/common/github.lua
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
Fix options default argument
Fix options default argument
Lua
mit
Zefiros-Software/ZPM
929046cef4fba399f3bfdca62eba78444a6005ce
applications/luci-minidlna/luasrc/controller/minidlna.lua
applications/luci-minidlna/luasrc/controller/minidlna.lua
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
applications/luci-minidlna: fix status parsing
applications/luci-minidlna: fix status parsing
Lua
apache-2.0
artynet/luci,cshore/luci,lbthomsen/openwrt-luci,NeoRaider/luci,LazyZhu/openwrt-luci-trunk-mod,deepak78/new-luci,daofeng2015/luci,keyidadi/luci,LuttyYang/luci,joaofvieira/luci,NeoRaider/luci,schidler/ionic-luci,urueedi/luci,urueedi/luci,Noltari/luci,tcatm/luci,db260179/openwrt-bpi-r1-luci,shangjiyu/luci-with-extra,Nolta...
2179943363b2b770669147d7c2afe72c8882ad55
src/romdisk/boot.lua
src/romdisk/boot.lua
--[[ --]] -- Make sure xboot table exists. if not xboot then xboot = {} end -- Used for setup: xboot.path = {} --xboot.arg = {} -- Unparsed arguments: --argv = {} -- Replace any \ with /. function xboot.path.normalslashes(p) return string.gsub(p, "\\", "/") end -- Makes sure there is a slash at the end -- of a pa...
-- Make sure xboot table exists if not xboot then xboot = {} end -- Setting package path package.path = "/romdisk/system/lib/?.lua;/romdisk/system/lib/?/init.lua;" .. package.path package.cpath = "/romdisk/system/lib/?.so;/romdisk/system/lib/loadall.so;" .. package.path -- Main function function xboot.main() require...
fix boot.lua
fix boot.lua
Lua
mit
xboot/xboot,xboot/xboot