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 com.anifichadia.ktorreverseproxy | |
import io.ktor.application.Application | |
import io.ktor.application.ApplicationCallPipeline | |
import io.ktor.application.ApplicationStopping | |
import io.ktor.application.call | |
import io.ktor.application.install | |
import io.ktor.application.log | |
import io.ktor.client.HttpClient | |
import io.ktor.client.features.HttpTimeout |
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
import org.junit.internal.AssumptionViolatedException | |
import org.junit.rules.TestRule | |
import org.junit.runner.Description | |
import org.junit.runners.model.Statement | |
/** | |
* @author Aniruddh Fichadia | |
* @date 2020-04-03 | |
*/ | |
class SkipOnFirstFailureTestRule( |
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
// If you need it, use this to get more meetup attendee. eg. after an event. | |
// This should run and complete it's operation before running the other code | |
// $('a.nav-appendPager').click(); | |
// Get the attendees list, this excludes members who haven't RSVP'd | |
var attendees = $('.event-attendees .member-name a'); | |
var attendeesCount = attendees.length; | |
// Draw a random winner | |
var winner = attendees[Math.floor(Math.random() * attendeesCount)].text; |