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
| # Make the canvas | |
| plot(1:10,1:10,xlim=c(-5,5),ylim=c(0,10),type="n",xlab="",ylab="",xaxt="n",yaxt="n") | |
| # Make the branches | |
| rect(-1,0,1,2,col="tan3",border="tan4",lwd=3) | |
| polygon(c(-5,0,5),c(2,4,2),col="palegreen3",border="palegreen4",lwd=3) | |
| polygon(c(-4,0,4),c(3.5,5.5,3.5),col="palegreen4",border="palegreen3",lwd=3) | |
| polygon(c(-3,0,3),c(5,6.5,5),col="palegreen3",border="palegreen4",lwd=3) | |
| polygon(c(-2,0,2),c(6.25,7.5,6.25),col="palegreen4",border="palegreen3",lwd=3) |
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
| # http://www.r-bloggers.com/merry-christmas-5/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+RBloggers+%28R+bloggers%29 | |
| # Each row is a 2x2 linear transformation | |
| # Christmas tree | |
| L <- matrix( | |
| c(0.03, 0, 0 , 0.1, | |
| 0.85, 0.00, 0.00, 0.85, | |
| 0.8, 0.00, 0.00, 0.8, | |
| 0.2, -0.08, 0.15, 0.22, | |
| -0.2, 0.08, 0.15, 0.22, | |
| 0.25, -0.1, 0.12, 0.25, |
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
| # http://www.r-bloggers.com/merry-christmas-5/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+RBloggers+%28R+bloggers%29 | |
| # Each row is a 2x2 linear transformation | |
| # Christmas tree | |
| L <- matrix( | |
| c(0.03, 0, 0 , 0.1, | |
| 0.85, 0.00, 0.00, 0.85, | |
| 0.8, 0.00, 0.00, 0.8, | |
| 0.2, -0.08, 0.15, 0.22, | |
| -0.2, 0.08, 0.15, 0.22, | |
| 0.25, -0.1, 0.12, 0.25, |
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
| # http://www.r-bloggers.com/merry-christmas-5/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+RBloggers+%28R+bloggers%29 | |
| # Each row is a 2x2 linear transformation | |
| # Christmas tree | |
| L <- matrix( | |
| c(0.03, 0, 0 , 0.1, | |
| 0.85, 0.00, 0.00, 0.85, | |
| 0.8, 0.00, 0.00, 0.8, | |
| 0.2, -0.08, 0.15, 0.22, | |
| -0.2, 0.08, 0.15, 0.22, | |
| 0.25, -0.1, 0.12, 0.25, |
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
| # Ones that have their own macros. | |
| major AC_HEADER_MAJOR | |
| minor AC_HEADER_MAJOR | |
| makedev AC_HEADER_MAJOR | |
| bcopy AC_HEADER_STDC | |
| bcmp AC_HEADER_STDC | |
| bzero AC_HEADER_STDC | |
| ioctl AC_PROG_GCC_TRADITIONAL | |
| memchr AC_HEADER_STDC | |
| memcpy AC_HEADER_STDC |
- Code demonstrates knowledge of Ruby syntax, style, organisation, and refactoring
- Code is divided into logical components and methods with clear responsibility.
- Code meets all requirements as laid out per the specification.
In one sentence: we are looking for simplicity, readability, and good practices
NewerOlder