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
: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; |
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
# Show commits in a period of a time | |
gitCommits() { | |
period1=${1:-1} | |
period2=${2:-day} | |
if [ -z "$1" ]; then | |
echo "You can also specify the period, like: gcommit 1 week, or 2 day..." | |
fi | |
git log --oneline --after={$period1.$period2.ago} --no-merges --author="Gabriel" |
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
# 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 |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// hyper-opacity | |
opacity: 0.95, | |
// choose either `'stable'` for receiving highly polished, |
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
# 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" |
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
/* | |
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) { |
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
// You can use Intl.DateTimeFormat (Vanilla JS) to format a date | |
const date = Date.now() | |
// In basic use without specifying a locale, DateTimeFormat uses the default locale and default options | |
new Intl.DateTimeFormat().format(date) | |
// 5/29/2020 | |
new Intl.DateTimeFormat('en-US').format(date) | |
// 5/29/2020 |
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
#!/usr/bin/env bash | |
REPO_PATH=$1 | |
GITHUB_TOKEN=$2 | |
function triggerGithubAction() { | |
echo "Running Manual GitHub Action Trigger for: ${REPO_PATH}" | |
curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: token ${GITHUB_TOKEN}" \ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
syntax on | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set termguicolors | |
if has("mouse") | |
set mouse=a | |
endif |