Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| <!-- | |
| 1. Google +1 button | |
| - see http://www.google.com/webmasters/+1/button/ | |
| --> | |
| <g:plusone size="medium"></g:plusone> | |
| <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> | |
| <!-- | |
| 2. Twitter Tweet button | |
| - see http://twitter.com/about/resources/tweetbutton/ |
| git reset --hard | |
| git clean -f -d | |
| Description: | |
| ============ | |
| Git Tips: Remove untracked files and directories from the working | |
| tree when switching branches or checking out different commits. | |
| Explanation: |
| # First, check out the commit you wish to go back to (get sha-1 from git log) | |
| git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a | |
| # Then do a forced update. | |
| git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop | |
| # Push specific commit | |
| git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
| public class GPIO { | |
| public String port; | |
| public int pin; | |
| //get direction of gpio | |
| public String getInOut() | |
| { | |
| String command = String.format("cat /sys/class/gpio/%s/direction",this.port); | |
| try { |
| #!/bin/bash | |
| JQPATH=$(which jq) | |
| if [ "x$JQPATH" == "x" ]; then | |
| echo "Couldn't find jq executable." 1>&2 | |
| exit 2 | |
| fi | |
| set -eu | |
| shopt -s nullglob |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.