Skip to content
View perjo927's full-sized avatar
πŸ§‘β€πŸ’»
πŸ§‘β€πŸ’»
  • DevCode
  • Stockholm, Sweden

Block or report perjo927

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Generator-based slot machine game #2 Generator-based slot machine game #2
    1
    const getRandomInt = (range) => Math.floor(Math.random() * range);
    2
    
                  
    3
    // Create an array of symbols for the slot machine
    4
    const symbols = ['πŸ’', 'πŸ‹', 'πŸ””', '7️⃣', '🎱'];
    5
    
                  
  2. Generator-based slot machine game Generator-based slot machine game
    1
    const getRandomInt = (range) => Math.floor(Math.random() * range);
    2
    
                  
    3
    // Create an array of symbols for the slot machine
    4
    const symbols = ['πŸ’', 'πŸ‹', 'πŸ””', '7️⃣', '🎱'];
    5
    
                  
  3. Emoji fusion generators Emoji fusion generators
    1
    const emoji = require('emoji-name-map')
    2
    
                  
    3
    // 1. Iterable object
    4
    const impersonator = {
    5
      genders: ['man', 'woman', 'adult'],
  4. Generator function for paginating as... Generator function for paginating async data
    1
    // Mock data
    2
    const fakePaginatedData = [
    3
      {
    4
        next: 'https://fake-api.com/cars?page=2',
    5
        results: [
  5. Async polling generator for streams Async polling generator for streams
    1
    // Wait utility
    2
    const wait = (timeInMs) => {
    3
      return new Promise((resolve) => {
    4
        setTimeout(resolve, timeInMs);
    5
      });
  6. Async polling generator function wit... Async polling generator function with stop condition
    1
    const wait = (time) => {
    2
      return new Promise((resolve) => {
    3
        setTimeout(resolve, time);
    4
      });
    5
    };