Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| # How-to: | |
| # curl -L https://gist.githubusercontent.com/chonz0/88c383360a4d129d5f94a36fd7be9a33/raw/26d71f46f4491fd9b5354a4db24f21007bbdc198/create_swap.sh | sh | |
| # | |
| # Inspired on digital ocean article https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 | |
| # Source: https://github.com/feliperuhland/ubuntu-swap | |
| #!/bin/sh | |
| set -e |
| [ | |
| { | |
| "translations": { | |
| "br": "Afeganistão", | |
| "pt": "Afeganistão", | |
| "nl": "Afghanistan", | |
| "hr": "Afganistan", | |
| "fa": "افغانستان", | |
| "de": "Afghanistan", | |
| "es": "Afganistán", |
| Emoji | Snippet | Context |
|---|---|---|
| 🎉 | :tada: |
initial commit |
| ✨ | :sparkles: |
new feature |
| ➕ | :heavy_plus_sign: |
add feature |
| ➖ | :heavy_minus_sign: |
remove feature |
| 📦 | :package: |
modify package dependencies |
| 🌐 | :globe_with_meridians: |
internationalization / translations |
| 🔧 | :wrench: |
tooling |
| 🎨 | :art: |
when improving the format/structure of the code |
| /* | |
| * Credits to https://forum.ionicframework.com/t/actionsheets-android-ugly-styling-need-help/18462/12 | |
| */ | |
| .platform-android .action-sheet-backdrop.active { | |
| background-color: rgba(0, 0, 0, 0.1); | |
| } | |
| .platform-android .action-sheet { | |
| align-content: center; | |
| margin: auto; | |
| max-width: 96vw; |
| // Custom filter function to modify default gallery shortcode output | |
| // original source: http://robido.com/wordpress/wordpress-gallery-filter-to-modify-the-html-output-of-the-default-gallery-shortcode-and-style/ | |
| function my_post_gallery( $output, $attr ) { | |
| // Initialize | |
| global $post, $wp_locale; | |
| // Gallery instance counter | |
| static $instance = 0; | |
| $instance++; |
| function parseVideo (url) { | |
| // - Supported YouTube URL formats: | |
| // - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
| // - http://youtu.be/My2FRPA3Gf8 | |
| // - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
| // - Supported Vimeo URL formats: | |
| // - http://vimeo.com/25451551 | |
| // - http://player.vimeo.com/video/25451551 | |
| // - Also supports relative URLs: | |
| // - //player.vimeo.com/video/25451551 |
| $('.animatable_elements').draggable({ | |
| start: function( event, ui ) { | |
| //console.log( event ); | |
| //console.log( ui ); | |
| }, | |
| stop: function( event, ui ) { | |
| //console.log(ui); | |
| console.log('New Position Left: ' + Math.round(ui.position.left)); | |
| console.log('New Position Top: ' + Math.round(ui.position.top)); | |
| } |