Skip to content

Instantly share code, notes, and snippets.

View relrod's full-sized avatar

Rick Elrod relrod

View GitHub Profile
As whence the sun 'gins his reflection
Shipwrecking storms and direful thunders break,
So from that spring whence comfort seem'd to come
Discomfort swells. Mark, king of Scotland, mark:
No sooner justice had with valour arm'd
Compell'd these skipping kerns to trust their heels,
But the Norweyan lord surveying vantage,
With furbish'd arms and new supplies of men
Began a fresh assault.
A sailor's wife had chestnuts in her lap,
And munch'd, and munch'd, and munch'd:--
'Give me,' quoth I:
'Aroint thee, witch!' the rump-fed ronyon cries.
Her husband's to Aleppo gone, master o' the Tiger:
But in a sieve I'll thither sail,
And, like a rat without a tail,
I'll do, I'll do, and I'll do.
# $FreeBSD: src/share/syscons/keymaps/us.emacs.kbd,v 1.3.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $
# alt
# scan cntrl alt alt cntrl lock
# code base shift cntrl shift alt shift cntrl shift state
# ------------------------------------------------------------------
000 nop nop nop nop nop nop nop nop O
001 esc esc esc esc esc esc esc esc O
002 '1' '!' nop nop 177 161 nop nop O
003 '2' '@' nul nul 178 192 128 128 O
004 '3' '#' nop nop 179 163 nop nop O
<form id="t" action="http://irc.freenode.net:6667" method="post" enctype="text/plain" style="display:none">
<input type="text" name="" value="
PONG irc.freenode.net
USER hello_world hello_world hello_world :hello world
NICK hello_world
JOIN #jbopre
PRIVMSG #jbopre :test
" />
<input type="submit" />
</form>
#!/bin/sh
# This script runs Processing, using the JDK in the Processing
# installation directory if possible.
# If no JDK was installed with Processing then the script tries to use
# the preferred Java version of the machine, i.e. what is executed
# by the "java" console command. This must be a Sun JDK (for details, see
# http://processing.org/reference/environment/platforms.html#java).
//Squares v0.4 by deathclaw 09
import processing.opengl.*;
PFont font;
// magics hack
// Each letter must be an element of the array.
// A new square will be created for each letter.
String[] magics = {"M","A","G","I","C","S"};
int numSquares = magics.length;
Square[] s=new Square[numSquares];
/********************************************************************
* This C program was generated by spl2c, the Shakespeare to C *
* converter by Jon Åslund and Karl Hasselström. *
********************************************************************/
/* libspl definitions and function prototypes */
#include <spl.h>
int main(void)
{
cc -pthread -Wl,--export-dynamic config.o frozen.o M_ArrayPrinter.o M_ConfigParser.o M_Numeric.o M_OpenGL.o M_OpenGL__GL.o M_OpenGL__GL__ARB.o M_OpenGL__GL__ARB__shader_objects.o M_OpenGL__GL__VERSION.o M_OpenGL__GL__VERSION__GL_1_2.o M_OpenGL__GL__VERSION__GL_1_2_images.o M_OpenGL__GL__VERSION__GL_1_3.o M_OpenGL__GL__VERSION__GL_1_3_images.o M_OpenGL__GL__VERSION__GL_1_4.o M_OpenGL__GL__VERSION__GL_1_5.o M_OpenGL__GL__VERSION__GL_2_0.o M_OpenGL__GL__VERSION__GL_2_1.o M_OpenGL__GL__VERSION__GL_3_0.o M_OpenGL__GL__exceptional.o M_OpenGL__GL__feedback.o M_OpenGL__GL__glget.o M_OpenGL__GL__images.o M_OpenGL__GL__pointers.o M_OpenGL__GL__selection.o M_OpenGL__GLU.o M_OpenGL__GLU__glunurbs.o M_OpenGL__GLU__glustruct.o M_OpenGL__GLU__projection.o M_OpenGL__GLU__quadrics.o M_OpenGL__GLU__tess.o M_OpenGL__arrays.o M_OpenGL__arrays__arraydatatype.o M_OpenGL__arrays__arrayhelpers.o M_OpenGL__arrays__formathandler.o M_OpenGL__constant.o M_OpenGL__constants.o M_OpenGL__contextdata.o M_OpenGL__converters.o M_OpenGL__error
ricky@lightning:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=
* print is the only application-level functionality that has a statement dedicated to it. Within Python's world, syntax is generally used as a last resort, when something can't be done without help from the compiler. Print doesn't qualify for such an exception.
* At some point in application development one quite often feels the need to replace print output by something more sophisticated, like logging calls or calls into some other I/O library. With a print() function, this is a straightforward string replacement, today it is a mess adding all those parentheses and possibly converting >>stream style syntax.
* Having special syntax for print puts up a much larger barrier for evolution, e.g. a hypothetical new printf() function is not too far fetched when it will coexist with a print() function.
* There's no easy way to convert print statements into another call if one needs a different separator, not spaces, or none at all. Also, there's no easy way at all to conveniently print objects with so