Skip to content

Instantly share code, notes, and snippets.

One day I'll finish a personal project.

Gabriel Lima the-glima

One day I'll finish a personal project.
Block or report user

Report or block the-glima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
the-glima / intl-datetime-format.js
Created May 29, 2020
Formatting date with Intl.DateTimeFormat #website
View intl-datetime-format.js
// You can use Intl.DateTimeFormat (Vanilla JS) to format a date
const date =
new Intl.DateTimeFormat('en-US').format(date)
// 5/29/2020
new Intl.DateTimeFormat('en-GB').format(date)
// 29/05/2020
new Intl.DateTimeFormat('en-GB', { dateStyle: 'full' }).format(date)
the-glima / mixins.scss
Last active May 29, 2020
A compilation of custom mixins and functions #website
View mixins.scss
// Mixins
// -=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Breakpoint
// --------------------------------------------
// Usage:
// @include breakpoint (min-width, 300px) {
// div { color:#000; }
// }
the-glima / vscode-custom-glow-theme.css
Last active May 29, 2020
[vscode] Synthwave custom styles #website
View vscode-custom-glow-theme.css
:root {
--white: #fff;
--ice: #d3d7ff;
--red: #fc199a;
--red-shadow: 0 0 2px #a71742, 0 0 10px #d51010, 0 0 2px #ff3970;
--yellow: #ffcc00;
--mustard: #f8ec81;
--orange: #fd971f;
--cyan: #61e2ff;
--green: #a6e22e;
the-glima / dark-mode.css
Created May 29, 2020
Easiest way to add Dark Mode #website
View dark-mode.css
You can use prefers-color-scheme media query to detect user's color theme.
The easiest and best way to add Dark Mode to your project.
:root {
--color-text: black;
--color-background: white;
@media screen and (prefers-color-scheme: dark) {
the-glima /
Last active May 28, 2020 — forked from rponte/
[Git] Getting the latest tag #website
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
the-glima /
Last active May 28, 2020
[Git] Sync your current branch with another #website
# Add this to your .bash-aliases
function syncBranch() {
# Get your current branch
local CURRENT_BRANCH=$(git symbolic-ref --short HEAD)
# If you don't pass any argument it will use the default branch
local BASE_BRANCH="${1:-master}"
the-glima /
Last active May 28, 2020
[Git] Clean Branches Alias #website
# If you want to delete all the local branches except the master branch
alias gbCleanAll="git branch | grep -v '^*' | xargs git branch -D"
# If you want to be a little less adventurous and delete only branches that have been merged to master
alias gbClean="git branch | grep -v '^*' | xargs git branch -d"
the-glima / .bash_aliases
Last active May 27, 2020
My bash aliases #website
View .bash_aliases
# ----------------------
# Aliases
# ----------------------
# Terminal
alias .='cd .'
alias ..='cd ..'
alias ...='cd .. && cd ..'
alias ll='ls -alF'
alias la='ls -A'
the-glima / .hyper.js
Last active May 27, 2020
Terminal: My Hyper Configuration #website
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// hyper-opacity
opacity: 0.95,
// choose either `'stable'` for receiving highly polished,
the-glima /
Last active May 13, 2020 — forked from jexchan/
Multiple SSH keys GitHub setup

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "" -f "key-name"
You can’t perform that action at this time.