Git Product home page Git Product logo

unthrottled / circuit-breaker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.86 MB

Real time application that shows off the functionality of the Hystrix circuit breaker.

Home Page: http://hystrix.acari.io

License: MIT License

Java 15.71% CSS 46.21% JavaScript 5.29% HTML 22.71% TypeScript 9.60% Dockerfile 0.48%
angular4 browsersync circuit-breaker docker gradle https hystrix hystrix-dashboard rxjava spring-boot stream webpack2

circuit-breaker's Introduction


Facts
__________                    ___________                  
\____    /___________  ____   \__    ___/_  _  ______      
  /     // __ \_  __ \/  _ \    |    |  \ \/ \/ /  _ \     
 /     /\  ___/|  | \(  <_> )   |    |   \     (  <_> )    
/_______ \___  >__|   \____/    |____|    \/\_/ \____/     
        \/   \/                                            
__________                 __      ________.__       .__   
\______   \ ____   _______/  |_   /  _____/|__|______|  |  
 |    |  _// __ \ /  ___/\   __\ /   \  ___|  \_  __ \  |  
 |    |   \  ___/ \___ \  |  |   \    \_\  \  ||  | \/  |__
 |______  /\___  >____  > |__|    \______  /__||__|  |____/
        \/     \/     \/                 \/                
My 3x3 3x3

#TeamNino #TeamOnoderaNasaki #TeamHimawari

Bio.ts
class Alex extends Weeb implements Hacker, Athlete {
 startWorkingDay() {
   while (shouldContinue()) {
     学习中文(); // TODO: look into finding where memory leaks are....
     const currentProject = this.getCurrentProject();
     continueWorkingOn(currentProject);
     perform(this.getCurrentWorkout());
     perform(getDayJob());
     perform(getWalkingRoute());
     continueWorkingOn(currentProject);
     watch(this.pickAnime());
     question(getCurrentLifeChoices());
     sleep(this.getDesiredHoursOfSleep());
   }
 }

 startRestDay() {
   eat(findFood());
   const animeForTheDay = this.pickAnime();
   watch(animeForTheDay);
   perform(getWalkingRoute())
   watch(animeForTheDay);
   sleep(this.getDesiredHoursOfSleep());
   // TODO: Need to find more hobbies.
 }

 private favoriteLanguages = ['TypeScript', 'Kotlin'];
 private getCurrentProject(): Project {
   const buggyProjects = getMaintainedOSSProjects()
     .filter(project => 
         project.reportedBugs()
           .filter(bug => !isFeature(bug))
           .some(bug => doICareEnoughToFix(bug))
     );
   if(!!buggyProjects.length) {
     return new BugFixProject(buggyProjects);
   } else if(!this.hasEnoughAnimeGirlThemes()) {
     return new ExasterbateAnimeAddictionProject();
   }
   const chosenLanguage = pickRandom(this.favoriteLanguages);
   return new RandomProject(chosenLanguage, pickRandomTopic(chosenLanguage));
 }

 private hasEnoughAnimeGirlThemes() {
   return isStillWeeb() && getDurationFromLastBuiltTheme()
     .isGreaterThan(Duration.of(30, DAYS));
 }

 private getCurrentWorkout(): Workout {
   switch (getCurrentDay()) {
     case Days.MONDAY: return Workout.LEGS;
     case Days.TUESDAY: return Workout.PUSH;
     case Days.WEDNESDAY: return Workout.PULL;
     case Days.THURSDAY: return Workout.SHOULDERS;
     case Days.FRIDAY: return Workout.CARDIO;
     default: return Workout.RECOVERY;
   }
 }

 private favoriteAnimeGenres =
   new Set(['Romance', 'Slice of Life', 'Isekai', 'Comedy']);
 private pickAnime(): Anime {
   while (true) {
     const nextAnime = pickRandomAnime();
     const genre = nextAnime.genre;
     if (this.favoriteAnimeGenres.has(genre) ||
       (isTrash(nextAnime) && isEcchi(nextAnime))) {
       return nextAnime;
     }
   }
 }

 private getDesiredHoursOfSleep() {
   return isWeekday() ? 7.5 : pickRandomNumberBetween(7, 10);
 }
}

circuit-breaker's People

Contributors

unthrottled avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

circuit-breaker's Issues

Fixed Background

When I scroll, then I expect the background of the app to remain fixed!.

Update Readme

It has been a long time, time to update the readme with more relevant information!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.