This file contains hidden or 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 search_and_remove() { | |
| // Search for crashed windows and tabs. Reverse the list so that we delete | |
| // from the bottom, which is MUCH faster. | |
| elements = Array.from(document.querySelectorAll('li.savedwinNTASC,li.savedtabNTASC')).reverse(); | |
| if (elements.length == 0) { | |
| console.log("Finished removing stale windows and tabs."); | |
| return; | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| type Person struct { | |
| Name string | |
| Age int |
This file contains hidden or 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
| public class YesNoDialog extends DialogFragment { | |
| String message; | |
| String title; | |
| String yesText; | |
| String noText; | |
| /* The activity that creates an instance of this dialog fragment must | |
| * implement this interface in order to receive event callbacks. | |
| * Each method passes the DialogFragment in case the host needs to query it. */ | |
| public interface YesNoListener { |