Bash script which will:
- Iterate all commits made within a Git repository.
| # ========================================================================== | |
| # Example of plot for publication with inwards ticks in ggplot | |
| # ========================================================================== | |
| library(ggplot2) | |
| # ================================== | |
| # create some data | |
| # ================================== | |
| set.seed(1) |
| library(ggplot2) | |
| library(grid) | |
| my_axis <- function(low="low", high="high", axis=c("x", "y"), ...){ | |
| axis <- match.arg(axis) | |
| if(axis == "x"){ | |
| g1 <- textGrob(low, x=unit(0,"npc"), hjust=0) | |
| g3 <- textGrob(high, x=unit(1,"npc"), hjust=1) |
| B0S2 | B0S3 | B0S4 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| abundance | percent cover | height | abundance | percent cover | height | abundance | percent cover | height | |
| 5 | 50 | 71 | 8 | 30 | 9 | 45 | |||
| 5 | 3 | 47 | 1 | 1 |
| # 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. |
| { | |
| "c_key": "ConsumerKey", | |
| "c_sec": "ConsumerSecret", | |
| "t_key": "TokenKey", | |
| "t_sec": "TokenSecret" | |
| } |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # Python script to find the largest files in a git repository. | |
| # The general method is based on the script in this blog post: | |
| # http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
| # | |
| # The above script worked for me, but was very slow on my 11GB repository. This version has a bunch | |
| # of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects. | |
| # |