This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch ~/.npmrc | |
echo "prefix = ~/.local" >> ~/.npmrc | |
echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.zshrc && echo $PATH | |
source ~/.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
#go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$breakpoints: ( | |
extraSmall : 30em, | |
small : 48em, | |
medium : 60em, | |
large : 80em, | |
extraLarge : 100em | |
); | |
$densities: ( | |
1x : '96dpi', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gem install -n /usr/local/bin package_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('touchmove', function (e) { | |
e.preventDefault(); | |
}); | |
var c = document.getElementsByTagName('canvas')[0], | |
x = c.getContext('2d'), | |
pr = window.devicePixelRatio || 1, | |
w = window.innerWidth, | |
h = window.innerHeight, | |
f = 90, | |
q, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$font-size: 26px; | |
$line-height: 1.4; | |
$lines-to-show: 3; | |
h2 { | |
display: block; /* Fallback for non-webkit */ | |
display: -webkit-box; | |
max-width: 400px; | |
height: $font-size * $line-height * $lines-to-show; /* Fallback for non-webkit */ | |
margin: 0 auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs-extra'); | |
const postcss = require('postcss'); | |
const postcssrc = require('postcss-load-config'); | |
const folder = './folder/'; | |
const outputFolder = './out'; | |
const run = async () => { | |
const files = await fs.readdir(folder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Mattia Astorino | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[color "status"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$i: 5; | |
$halfstar-style: url(#half-star) currentColor; | |
$dimmed-star-opacity: 0.3; | |
.ReviewIndicator { | |
display: inline-flex; | |
/** | |
* Set consecutive icons spacing | |
*/ |
OlderNewer