Skip to content

Instantly share code, notes, and snippets.

View juanfernandes's full-sized avatar

Juan Fernandes juanfernandes

View GitHub Profile
@juanfernandes
juanfernandes / colorized-list-bullets.css
Created November 10, 2021 16:10 — forked from 5t3ph/colorized-list-bullets.css
3 Quick Modern CSS Examples
/*
OLD hacky way
*/
ul {
list-style: none;
padding: 0;
}
li {
position: relative;
@juanfernandes
juanfernandes / element-classes-and-ids.scss
Created September 11, 2020 09:15 — forked from 5t3ph/element-classes-and-ids-vanilla.css
Tag HTML elements with their class names and IDs to visualize page structure
*[class],
*[id] {
position: relative;
outline: 2px dashed red;
&::before,
&::after {
position: absolute;
top: 0;
left: 0;
@juanfernandes
juanfernandes / change-class-on-scroll.html
Created December 11, 2017 15:43 — forked from ohiosveryown/change-class-on-scroll.html
Vanilla JS – change/add class based on scroll position.
<div id="header"></div>
<style>
#header {
position: fixed;
background: pink;
height: 72px;
width: 100%;
opacity: 0.2;
transition: all 300ms ease;
@juanfernandes
juanfernandes / delete-all-git-branches-except-current.sh
Created October 2, 2017 14:10 — forked from maurobringolf/delete-all-git-branches-except-current.sh
Deletes all local Git branches except the current one.
#!/usr/bin/env bash
git branch | grep -v $(git rev-parse --abbrev-ref HEAD) | xargs git branch -D
@juanfernandes
juanfernandes / mac.md
Created August 12, 2016 09:15 — forked from lornajane/mac.md
Keyboard Only OS X

Keyboard-only Mac Cheatsheet

Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)

Apps List

There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful

Tool Link Comments
@juanfernandes
juanfernandes / countries.json
Created August 9, 2016 13:46 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
.nav {
&__list {
&__item {
&--featured {
}
}
}
}