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
// ==UserScript== | |
// @name Quick Macro | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Quick, JS-based macros. | |
// @author Raj Shrimali, rs@gatech.edu | |
// @match https://*/* | |
// @match http://*/* | |
// @grant none | |
// ==/UserScript== |
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
final char [] VOWELS = {'a', 'e', 'i', 'o', 'u'}; | |
public static ArrayList<Integer>[] findVowels(String toFind){ | |
//Returns an array of arrayLists, so basically, each element is an arraylist, which has multiple (varying) elements | |
ArrayList<Integer>[] pos = new ArrayList<Integer[]>[VOWELS.length]; | |
//For Every Vowel... | |
for(int c = 0; c < VOWELS.length; c++){ | |
//Initialize some temporary variables | |
boolean lastFound; | |
int index; |
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
#include <iostream> | |
#include <string> | |
#include <chrono> | |
#include <thread> | |
#include <exception> | |
#include <cstdio> | |
using namespace std::chrono; | |
int timer(seconds); | |
int stopwatch(); |