This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.net.*; | |
import java.io.*; | |
import static java.util.regex.Pattern.compile; | |
import static java.util.Arrays.binarySearch; | |
class SuppressedExceptionDemo { | |
static class ExcOnCloseWriter extends BufferedWriter { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create_handler_for_sound_output_idx(idx) | |
return function() | |
-- sets the selected sink to be the default | |
os.execute("pacmd set-default-sink " .. idx) | |
-- goes through inputs and directs them to the selected sink | |
local fhandle = io.popen("pacmd list-sink-inputs") | |
local result = fhandle:read("*a") | |
for line in string.gmatch(result, "[^\n]+") do | |
if string.find(line, "index") then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68,71c68,69 | |
< for(var i = 0; i<removeItemBtn.length; i++){ | |
< | |
< (function(index){ | |
< removeItemBtn[i].onclick = function(){ | |
--- | |
> var onClickGenerator = function(index) { | |
> return function() { | |
73,76c71,74 | |
< |