git init project2
cd project2
git status
mate index.html
git status
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
| #!/bin/bash | |
| #Ensure we have the quantity specified on the CLI | |
| if [ -z "$1" ]; then ARG_ERR=ERR; fi | |
| if [ -n "$ARG_ERR" ]; | |
| then | |
| echo "Usage: <portionofcommiter>" | |
| exit | |
| 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
| ;; Get the Groovy support for Emacs from http://svn.codehaus.org/groovy/trunk/groovy/ide/emacs | |
| ;; Symlink the downloaded Groovy support into your .emacs.d folder as "groovy" | |
| ;;; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start | |
| (add-to-list 'load-path "~/.emacs.d/groovy") | |
| (autoload 'groovy-mode "groovy-mode" "Major mode for editing Groovy code." t) | |
| ;; For some reason, these recommendations don't seem to work with Aquamacs | |
| (add-to-list 'auto-mode-alist '("\.groovy$" . groovy-mode)) | |
| (add-to-list 'auto-mode-alist '("\.gradle$" . groovy-mode)) |
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
| alias pbcopynn='tr -d "\n" | pbcopy' |
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
| #!/bin/bash | |
| #Ensure we have one argument specified on the CLI | |
| if [ -z "$1" ]; then ARG_ERR=ERR; fi | |
| if [ -n "$ARG_ERR" ]; | |
| then | |
| echo "Checks if an app (passed as a parameter) is installed/reachable" | |
| echo " on this machine by using the 'hash' command." | |
| echo "Usage: isappinstalled <appname>" | |
| echo "Returns: 0 if is installed, 1 if not installed." |
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
| MatthewMcC And hello everyone! Welcome to the first of many future GitHub office hours. For those of you new to Campfire, it is best if you @matthewmcc if you want to catch my attention directly. We're open to any and all questions on Git and GitHub during the hour and will try to spread the attention to everyone participating and answer as many questions as possible. | |
| I'm Matthew McCullough, GitHub's trainer for all things Git. (http://github.com/training/online) | |
| Mike What is the main use for submodules? | |
| MatthewMcC @Mike Great first question. It is a multipart answer. | |
| 3:05 PM | |
| MatthewMcC @Mike First, submodules are best for organizing an "uber app" that is composed of subcomponents. For example, some big site that has a chat module, a shopping cart, some resources, and some APIs. | |
| @Mike Lets say that this is big enough that there are multiple teams, and each team is assigned one of those components. | |
| @Mike The teams are likely innovating like crazy, but we can't just take their code at any time -- we need it to |
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 matrix1() { | |
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|gawk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' | |
| } | |
| function matrix2() { | |
| echo -e "\e[1;40m" ; clear ; characters=$( jot -c 94 33 | tr -d '\n' ) ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) $characters ;sleep 0.05; done|gawk '{ letters=$5; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' | |
| } | |
| function matrix3() { | |
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $( printf "\U$(( $RANDOM % 500 ))" |
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
| [url "git://github.com/"] | |
| insteadOf = "ghg://" | |
| pushInsteadOf = "ghg://" | |
| # Example: git clone ghg://ntschutta/emacs | |
| [url "git://github.com/matthewmccullough/"] | |
| insteadOf = "ghgm://" | |
| pushInsteadOf = "ghgm://" | |
| # Example: git clone ghgm://hellogitworld | |
| [url "git@github.com:"] | |
| insteadOf = "ghs://" |
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
| #!/bin/sh | |
| # Convert OrgMode to Markdown | |
| export MARKDOWNNAME="`echo "$1" | sed s/orgmode/markdown/`" | |
| export HTMLNAME="`echo "$1" | sed s/orgmode/html/`" | |
| cat "$1" | sed "s/^\*\* / \* /" \ | |
| | sed "s/^\*\*\* / \* /" \ | |
| | sed "s/^\*\*\*\* / \* /" > "$MARKDOWNNAME" | |
| cat "$MARKDOWNNAME" | markdown > "$HTMLNAME" |
This repository has moved to the use cases folder of https://github.com/github/teach.github.com