Skip to content

Instantly share code, notes, and snippets.

@juan-calle
juan-calle / gist:9d53066249a6e11b0f7a3fc11c885d8d
Created March 28, 2021 08:02
Download MacOS Big Sur 11.2.3 disk image direct to Downloads folder
sudo curl -s https://raw.githubusercontent.com/grahampugh/macadmin-scripts/master/installinstallmacos.py | sudo python - --workdir ~/Downloads --version 11.2.3
@juan-calle
juan-calle / ccdl.command
Last active April 30, 2021 11:36 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only)
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@juan-calle
juan-calle / bigONotation.js
Created May 1, 2021 09:49 — forked from jhwheeler/bigONotation.js
Big O Notation Exercises
// 1. Even or odd
function isEven(value){
if (value % 2 == 0){
return true;
}
else
return false;
}
function cloneObject(object) {
return Object.entries(object).reduce((result, [key, value]) => {
result[key] = value
return result
}, {})
}
let myObject = { a: 1, b: 2 }
console.log(cloneObject(myObject))
// => { a: 1, b: 2 }
@juan-calle
juan-calle / environment-setup.md
Last active June 26, 2021 15:54
EsLint / Prettier - Setup

ESLint, Prettier & Husky/lint-staged Pre-commits

Installation

This will install eslint and prettier plus the necessary config modifications to make both work with each other nicely:

  npm i -D eslint prettier eslint-config-prettier
@juan-calle
juan-calle / Vscode Shortcuts.md
Last active October 9, 2021 02:48
vscode shortcuts

VSCode Shortcuts

General
⇧⌘P, F1 Show Command Palette
⌘P Quick Open, Go to File...
⇧⌘N New window/instance
⌘W Close window/instance
⌘, User Settings
⌘K ⌘S Keyboard Shortcuts
@juan-calle
juan-calle / styles.css
Created April 5, 2022 21:05
VSCode custom theme
/* Add the subtle gradient to the editor background */
.monaco-editor {
background-color: black !important;
background-image: linear-gradient(to bottom, #2a2139 75%, #34294f);
background-size: auto 100vh;
background-position: top;
background-repeat: no-repeat;
}
.monaco-workbench {