Skip to content

Instantly share code, notes, and snippets.

View lc-nyovchev's full-sized avatar
🌲
Make the world Greta Again

nyo lc-nyovchev

🌲
Make the world Greta Again
View GitHub Profile
Gloal: test
Propertis:
test=${packageClassName}
forkMode=once
maven.surefire.debug=-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}
jpda.listen=true
.config(['$provide', function($provide){
$provide.decorator('$modal', function($delegate){
var original = $delegate.open;
var wrapFunction = function wrapFunction (obj, functionName, callback){
var originalFunction = obj[functionName];
obj[functionName] = function(){
var result = originalFunction.apply(this, arguments);
callback.apply(this, arguments);
return result;
};
@Configuration
@Import(CassandraTestConfig.class)
public class AxonTestContext {
@Bean
public EventStorageEngine eventStorageEngine(Cluster cluster){
return new CassandraEventStorageEngine(cluster, new XStreamSerializer());
}
@Bean
# Copy the Qualifier annotation from the instance variables to the constructor
# see https://github.com/rzwitserloot/lombok/issues/745
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier
/**
* Solver for https://www.powerlanguage.co.uk/wordle/ (keep in mind the word list might change in the future)
* example usage to get the word of tomorrow `Solver.determineWord(Solver.HELPERS.xDaysInTheFuture(1))`
*/
const Solver = {
startDate: new Date(2021, 5, 19, 0, 0, 0, 0),
wordList: ["cigar", "rebut", "sissy", "humph", "awake", "blush", "focal", "evade", "naval", "serve", "heath", "dwarf", "model", "karma", "stink", "grade", "quiet", "bench", "abate", "feign", "major", "death", "fresh", "crust", "stool", "colon", "abase", "marry", "react", "batty", "pride", "floss", "helix", "croak", "staff", "paper", "unfed", "whelp", "trawl", "outdo", "adobe", "crazy", "sower", "repay", "digit", "crate", "cluck", "spike", "mimic", "pound", "maxim", "linen", "unmet", "flesh", "booby", "forth", "first", "stand", "belly", "ivory", "seedy", "print", "yearn", "drain", "bribe", "stout", "panel", "crass", "flume", "offal", "agree", "error", "swirl", "argue", "bleed", "delta", "flick", "totem", "wooer", "front", "sh
@lc-nyovchev
lc-nyovchev / twitch-scores.js
Created May 2, 2022 17:32
twitch-scores.js
setInterval(() => {
console.log('Checking for points...')
const button = document.querySelector('.community-points-summary .tw-transition button')
if (button) {
button.click()
console.log('Juicy points!')
}
}, 10000)