Skip to content

Instantly share code, notes, and snippets.

View ShadowCreator250's full-sized avatar
💭
living and learning

ShadowCreator250 ShadowCreator250

💭
living and learning
  • Germany
View GitHub Profile
@ShadowCreator250
ShadowCreator250 / README.md
Last active November 4, 2023 16:57
generate scoop cleanup command from scoop status

generate scoop cleanup command from scoop status

So you can automatically cleanup all packages after scoop update *.

Ignores held packages.

Dependency:

scoop install busybox
@ShadowCreator250
ShadowCreator250 / stuff-by-alan.md
Last active July 16, 2020 09:45
Alan is the best coding bro! He sometimes shares sth on Discord and bc I can still learn from him, I wanted to save some of his stuff here for me to look it up later again. Check him out btw: https://github.com/RecodeExistence

Gotta love some algo work: In this kata you will create a function that takes a list of non-negative integers and strings and returns a new list with the strings filtered out.

Example:

filter_list([1,2,'a','b']) == [1,2]
filter_list([1,'a','b',0,15]) == [1,0,15]
filter_list([1,2,'aasf','1','123',123]) == [1,2,123]
@ShadowCreator250
ShadowCreator250 / file-path-handler.md
Last active July 16, 2020 09:54
JS functions to handle paths and files in Node.js
//make directory.  
/* const newDir = (directoryName) => {
        if(path.join(__dirname, directoryName) === true)  {
            console.log(directoryName, ' already exists.'); 
        } else {
        fs.mkdir(path.join(__dirname, directoryName ), {}, err => {
            if(err) throw err; 
                console.log(directoryName, ' created.'); 
        });
@ShadowCreator250
ShadowCreator250 / js-arrow-functions.md
Last active July 16, 2020 09:18
A introduction to arrow functions in JS by Alan