git init project
git config --global user.name "Tim Berglund"
git config --global user.email "tlberglund@github.com"
git status
git add <file>
- Diff
git diff
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
(def hello-world [name] | |
(println (str "Hello " name ", welcome to the world of Clojure"))) |
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
(ns clojuredojo.core) | |
(defn palindrome-detector [thing] (= (reverse thing) (seq thing)) ) | |
(def __ palindrome-detector) | |
(false? (__ '(1 2 3 4 5))) | |
(true? (__ "racecar")) | |
(true? (__ [:foo :bar :foo])) | |
(true? (__ '(1 1 3 3 1 1))) |
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
;; @jr0cket - communiy developer > http://blog.jr0cket.co.uk/ | |
;; Lightweight clojure setup for Emacs | |
;; requires emacs24 and leiningen | |
;; Add Marmalade package archive for Emacs starter kit and other Emacs packages | |
(require 'package) | |
(add-to-list 'package-archives |
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
<!-- JavaScript for including Github gists into your posts | |
<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div> | |
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script> | |
--> |
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
[alias] | |
lol = log --pretty=oneline --abbrev-commit --graph | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all | |
lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all |
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
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all | |
sleep 1 | |
done |
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
curl -n -X POST https://api.heroku.com/apps -H "Accept: application/vnd.heroku+json; version=3" |
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
<!-- | |
1. Create your Gist on Github and copy the number, the last part of the gist URL | |
2. Add the Gist number as the data-id in the gistLoad call to the gistLoader library | |
--> | |
<!-- Add a specific gist from Github --> | |
<div class="gistLoad" data-id="change-to-gist-number" id="gist-GistID"> | |
Loading Gist from Github ....</div> | |
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
## Gist Syntax for Octopress | |
{% gist gist_id [filename] %} | |
## Example Gist in Octopress | |
{% gist 9532424 %} |
OlderNewer