Skip to content
View the-one-with-raspberry's full-sized avatar
🗿
🗿
🗿
🗿

Block or report the-one-with-raspberry

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

a cool script that i wrote:

function mapCharStringToJSON(string) {
    const strCharArray = string.split('');
    let JSONobj = {};
    let i = 0;
    for (let char of strCharArray) {
        JSONobj[char] = i;
        i = i + 1;
    }
    return JSONobj;
}

const exampleStr = 'henlo';

console.log(JSON.stringify(mapCharStringToJSON(exampleStr)));
// returns: {"h":0,"e":1,"n":2,"l":3,"o":4}
// strings with repeated characters dont work :(

Popular repositories Loading

  1. counter-or-something counter-or-something Public

    HTML 1

  2. basic-mysql-viewer basic-mysql-viewer Public

    How to view a basic MySQL DataBase

  3. sht21_python sht21_python Public

    Forked from jaques/sht21_python

    Python library for reading data over i2c (tested on raspberry pi)

    Python

  4. panda-yo panda-yo Public

    HTML

  5. RasperryPiSensorController RasperryPiSensorController Public

    Python

  6. the-one-with-raspberry the-one-with-raspberry Public

    Config files for my GitHub profile.