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, Gg
#include "/usr/include/SDL2/SDL.h"
int main()
{
SDL_Window *window;
SDL_Init(SDL_INIT_VIDEO);
/* Play around with different x and y sizes. */
window = SDL_CreateWindow("Test Window",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
$ ed foo.txt
foo.txt: No such file or directory
a
foo
.
s/foo/bar
bar
wq
4
$ cat foo.txt
;;; What's a better way to list things than a list? :-)
;; Not an exhaustive list.
(defparameter *protocols*
'("dns"
"http"
"ftp"
"ipv4"
"ipv6"
"pop"
@Aethaeryn
Aethaeryn / growth.lisp
Created May 8, 2013 02:18
A demonstration of what a loop can look like in Lisp.
(defun growth (start-amount end-time percent)
(let ((multiplier (* 0.01 percent)))
(do ((time 0 (1+ time))
(amount start-amount (+ amount (* amount multiplier))))
((= time end-time) amount))))
@Aethaeryn
Aethaeryn / generatedsql.sql
Created October 25, 2012 21:24
Current Tables
/* This is generated from the Python file below. */
CREATE TABLE users (
id INTEGER NOT NULL,
username VARCHAR,
joined DATETIME,
email VARCHAR,
PRIMARY KEY (id),
UNIQUE (username)
)
@Aethaeryn
Aethaeryn / family-tree.txt
Created July 3, 2012 00:21
Lisp Family Tree
A family tree of major Lisps. (Work in progress.)
--------------------------------------------------------------------------------------------
LISP
--------------------------------------------------------------------------------------------
MACLISP | InterLisp || ||
------------------------- | || ||
Emacs | Lisp Machine | ... | ... || Scheme ||
|-----------------------------------|| ||
| Common Lisp || ||
@Aethaeryn
Aethaeryn / tree.txt
Created July 2, 2012 06:00
Scheme Tree
This is function from the MIT SICP videos on YouTube:
(define (map p l) (if (null? l) '() (cons (p (car l)) (map p (cdr l)))))
This is a tree version of the quoted S-expression, keeping in mind
that lists are really just cons pairs:
Key: * is a cons pair, ---- is its cdr, | is its car.
*------------*----------------------*-------------------------------------------------------------------------'()
@Aethaeryn
Aethaeryn / count-lang.py
Created June 2, 2012 23:09
Packages By Language in Fedora
#!/usr/bin/env python
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
# Note: The numbers provided are only approximations, and the
# percentages aren't entirely accurate because something could be
@Aethaeryn
Aethaeryn / fizzbuzz.py
Created April 22, 2012 01:16
FizzBuzz
# The rule is simple, print the numbers 1 to 100. Replace multiples of
# 3 with "Fizz", multiples of 5 with "Buzz", and multiples of both 3
# and 5 with "FizzBuzz".
# This is a simple and clear way to write it in Python.
def simple():
for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print "FizzBuzz"