An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| /** | |
| * TV screen | |
| */ | |
| html { background: white; } | |
| .tv { | |
| position: relative; | |
| width: 200px; | |
| height: 150px; |
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| ;; outlet code for implementing traditional macro expansion | |
| ;; macros | |
| (define (expand form) | |
| (cond | |
| ((variable? form) form) | |
| ((literal? form) form) | |
| ((macro? (car form)) | |
| (expand ((macro-function (car form)) form))) |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| // ПоПацански.cpp : Defines the entry point for the console application. | |
| // | |
| // #include "stdafx.h" | |
| #define подъёбку setlocale | |
| #define чуть_чуть 7 | |
| #define так_себе 12 | |
| #define пошло_оно_всё 120 |
| " folding for Markdown headers, both styles (atx- and setex-) | |
| " http://daringfireball.net/projects/markdown/syntax#header | |
| " | |
| " this code can be placed in file | |
| " $HOME/.vim/after/ftplugin/markdown.vim | |
| func! Foldexpr_markdown(lnum) | |
| let l1 = getline(a:lnum) | |
| if l1 =~ '^\s*$' |
| (defn palindrome? [coll] | |
| (= coll | |
| (reverse coll))) | |
| (defn n-digit-ints [n] | |
| (range (expt 10 (- n 1)) | |
| (expt 10 n))) | |
| (defn p4 [n] |