title | author | date | template |
---|---|---|---|
Code and stuff! |
the-wintersmith |
2012-10-01 15:00 |
article.pug |
Syntax highlighting with highlight.js. The theme used is tomorrow, you can find more themes here.
function getRandomNumber() {
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
class Animal
### Intellegent design ###
getDNA: ->
print 'sequencing...'
while true
sleep 1
class Monkey extends Animal
speak: ->
print 'ah ah ah'
class Human extends Monkey
speak: ->
print ['yolo' unless i % 3] + ['swag' unless i % 5] or i for i in [1..100]
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
class ExampleClass
{
static void Main()
{
System.Console.WriteLine("Hello, world!");
}
}
io:format("~s~n", ["hello, world"])
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
#import <stdio.h>
int main(void)
{
printf("Hello, World!\n");
return 0;
}
<?php echo 'Hello, world'; ?>
print("Hello World")
puts "Hello world!"