Skip to content
View di3's full-sized avatar
Block or Report

Block or report di3

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. indlekofer/object_merge indlekofer/object_merge Public

    JavaScript

  2. indlekofer/redux-store indlekofer/redux-store Public

    JavaScript

  3. indlekofer/media_size indlekofer/media_size Public

    JavaScript

  4. indlekofer/format_numeric indlekofer/format_numeric Public

    JavaScript

  5. array.js array.js
    1
    export const shuffle = (array) => {
    2
      for (let i = array.length - 1; i > 0; i--) {
    3
        let rand = Math.floor(Math.random() * (i + 1));
    4
        [array[i], array[rand]] = [array[rand], array[i]]
    5
      }
  6. binary.js binary.js
    1
    //Hamming weight
    2
    export const getBitCount32 = (n) => {
    3
      n = n - ((n >> 1) & 0x55555555);
    4
      n = (n & 0x33333333) + ((n >> 2) & 0x33333333);
    5
      return ((n + (n >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;