Snippets
My metaphorical junk drawer
Contents By Language:
- C
- Groovy
- Java Differences: Shows several of the differences between Java and Groovy. Taken from "Getting Started" on the Groovy site.
- Hello World Example
- Script: Groovy scripts can be executed like
Bash/Python scripts, using the
./
operator.
- Java
- HelloAspects: Basic examples of AOP in Spring AOP.
- Lisp
- Fibonacci: Multiple return values for functions
- Python
- Bad pickles: Run arbitrary code using
pickle.loads
- Bad pickles: Run arbitrary code using
- Ruby
- ARGF: Reads files specified either through STDIN or as args