Skip to content

Instantly share code, notes, and snippets.

Avatar
☢️
not good, not terrible

Odi mathdroid

☢️
not good, not terrible
View GitHub Profile
View 1.windows-steps.ps1
# 0. open a PowerShell as administrator
# 1. Enable WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# 2. Enable VM Platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# 3. RESTART system, then open a PowerShell as administrator again
# MAKE SURE YOU HAVE RESTARTED BEFORE YOU CONTINUE
View card.css
.card {
box-shadow: rgba(0, 0, 0, 0.01) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 8px, rgba(0, 0, 0, 0.04) 0px 16px 24px, rgba(0, 0, 0, 0.01) 0px 24px 32px;
}
View oop.js
class Human {
constructor(arg1, arg2) {
this.name = arg1;
this.age = arg2;
}
login() {
console.log("logging in");
}
View async-practice.js
function main(callback1, callback2) {
callback1();
callback2();
callback2();
callback2();
}
function helloWorld() {
console.log("hello world");
@mathdroid
mathdroid / code.5.gif
Created Nov 3, 2019
Gist for code.5.gif. Generated by `crop-github-images-cli`.
View code.5.gif
Placeholder for code.5.gif.
@mathdroid
mathdroid / code.1.gif
Created Nov 3, 2019
Gist for code.1.gif. Generated by `crop-github-images-cli`.
View code.1.gif
Placeholder for code.1.gif.
@mathdroid
mathdroid / code.2.gif
Created Nov 3, 2019
Gist for code.2.gif. Generated by `crop-github-images-cli`.
View code.2.gif
Placeholder for code.2.gif.
@mathdroid
mathdroid / code.0.gif
Created Nov 3, 2019
Gist for code.0.gif. Generated by `crop-github-images-cli`.
View code.0.gif
Placeholder for code.0.gif.
@mathdroid
mathdroid / code.4.gif
Created Nov 3, 2019
Gist for code.4.gif. Generated by `crop-github-images-cli`.
View code.4.gif
Placeholder for code.4.gif.
@mathdroid
mathdroid / code.3.gif
Created Nov 3, 2019
Gist for code.3.gif. Generated by `crop-github-images-cli`.
View code.3.gif
Placeholder for code.3.gif.