Skip to content

Instantly share code, notes, and snippets.

View mcne65's full-sized avatar

S M. Lingelser mcne65

View GitHub Profile
@mcne65
mcne65 / gist:1014a1255e5f101b72cebcfe3d521b34
Created December 8, 2017 09:48 — forked from jtleek/gist:4369771
Create a Christmas Tree in R
# 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)
@mcne65
mcne65 / christmas_tree.r
Created December 8, 2017 09:48 — forked from toddleo/christmas_tree.r
A fractal Christmas tree plot in R
# 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,
@mcne65
mcne65 / christmas_tree.r
Created December 8, 2017 09:48 — forked from toddleo/christmas_tree.r
A fractal Christmas tree plot in R
# 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,
@mcne65
mcne65 / christmas_tree.r
Created December 8, 2017 09:48 — forked from toddleo/christmas_tree.r
A fractal Christmas tree plot in R
# 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,
# 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
@mcne65
mcne65 / modern-geospatial-python.md
Created August 8, 2017 10:03 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python
@mcne65
mcne65 / modern-geospatial-python.md
Created August 8, 2017 10:03 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python
@mcne65
mcne65 / modern-geospatial-python.md
Created August 8, 2017 10:03 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python

Coding Problems

Evaluation criteria

  • 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