This file contains hidden or 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
| # @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt” | |
| # Shamelessly copied from https://github.com/gf3/dotfiles | |
| # Screenshot: http://i.imgur.com/s0Blh.png | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
| export TERM=gnome-256color | |
| elif infocmp xterm-256color >/dev/null 2>&1; then | |
| export TERM=xterm-256color | |
| fi |
This file contains hidden or 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
| # Add Homebrew `/usr/local/bin` and User `~/bin` to the `$PATH` | |
| PATH=/usr/local/bin:$PATH | |
| PATH=$HOME/bin:$PATH | |
| PATH=$PATH:/usr/local/sbin | |
| export PATH | |
| # Load the shell dotfiles, and then some: | |
| # * ~/.path can be used to extend `$PATH`. | |
| # * ~/.extra can be used for other settings you don’t want to commit. | |
| for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do |
This file contains hidden or 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
| <div class="row"> | |
| <div class="col-md-2 col-sm-2 col-xs-2"> | |
| <p><button class="btn btn-primary btn-sm" id="get-weather-btn"><span>Get Weather</span></button></p> | |
| </div><!-- .col --> | |
| <div class="col-md-10 col-sm-10 col-xs-10"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading">Weather & Location Response</div> | |
| <div class="panel-body"> | |
| <p>Enter Address: <input id="address" type="text" class="form-control"/></p> | |
| <p>Lat/Long: <input id="location-lat-long" type="text" class="form-control"/></p> |
This file contains hidden or 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
| { | |
| "auto_complete_triggers": | |
| [ | |
| { | |
| "characters": "<", | |
| "selector": "text.html" | |
| }, | |
| { | |
| "characters": ".", | |
| "selector": "source.js" |
This file contains hidden or 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
| Install JRE/JDK 7 or 8: http://www.2daygeek.com/openjdk-8-installation-ubuntu/ | |
| Elastic Search: | |
| sudo apt-get install elasticsearch 1.7.2 | |
This file contains hidden or 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
| rm /usr/local/var/mysql/*.err | |
| cd /usr/local/var/ | |
| ls -l | |
| sudo chown -R mysql:mysql mysql/ | |
| sudo mysql.server start | |
| sudo mysql.server restart | |
| sudo mysql.server stop | |
| sudo mysql_upgrade |
This file contains hidden or 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
| (function (window) { | |
| // This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
| // iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
| // This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
| // This code is free to use by anyone (MIT, blabla). | |
| // Author: rkorving@wizcorp.jp | |
| var timeouts = {}; | |
| var intervals = {}; |