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.Scanner; | |
import java.io.*; | |
public class Elevator | |
{ | |
public static void main (String[] args) throws IOException | |
{ | |
Scanner scan = new Scanner(new File("elevatordata.txt")); | |
int s = scan.nextInt(); |
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
//It repeatedly scrolls the page and clicks the unfavorite button. | |
// Log into Twitter on the web, open your Developer Console e.g. Developer -> Developer Tools -> Console and paste in this code: | |
var cnt=1; | |
var interval = setInterval(clearFavs, 1500); | |
function clearFavs() { | |
cnt+=1; | |
window.scrollTo(0,document.body.scrollHeight); | |
if (cnt>5) { |