Skip to content

Instantly share code, notes, and snippets.

View curiosdevcookie's full-sized avatar
💭
Hello world, hello stranger 🙃

Ariadne Engelbrecht curiosdevcookie

💭
Hello world, hello stranger 🙃
View GitHub Profile
@curiosdevcookie
curiosdevcookie / TwitterWithMarkDown.md
Created February 8, 2022 14:57 — forked from kenmori/TwitterWithMarkDown.md
How to write a Twitter link in Markdown

How to write a Twitter link in Markdown

Twitter URL


[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/bukotsunikki.svg?style=social&label=Follow%20%40bukotsunikki)](https://twitter.com/bukotsunikki)

author

Create an object from an array with multiple ids, using the id as a key and knowing how many identical ids each have

function createOrder(organization: TreeOrganization, valueId: number): number {
    return organization.values
        .map(o => o.parentId)
        .reduce((a, c) => {
 return a[`${c}`] === undefined
@curiosdevcookie
curiosdevcookie / node-and-npm-in-30-seconds.sh
Created October 10, 2021 03:39 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@curiosdevcookie
curiosdevcookie / Sticky note v3.3.js
Created June 14, 2021 17:15 — forked from PtruckStar/Sticky note v3.3.js
sticky notes widget with scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: sticky-note;
/*
#################################
####simple sticky note widget####
#################################
please read below for usage!!
you must configure font size and