Skip to content

Instantly share code, notes, and snippets.

View grkvlt's full-sized avatar
💭
🐧

Andrew Donald Kennedy grkvlt

💭
🐧
View GitHub Profile
@grkvlt
grkvlt / hack.sh
Created March 31, 2012 12:07 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@grkvlt
grkvlt / android.md
Created April 21, 2012 17:05
Android Applications and Games

Cut The Rope

Apparatus

Quick Dialer

@grkvlt
grkvlt / becomes.java
Created April 25, 2012 08:01
Java Becomes Operator
Object[] a = ... // load array
int i = a.length;
while (i --> 0) {
// do something to a[i]
}
@grkvlt
grkvlt / Tiny_RayTracing.txt
Created May 10, 2012 05:29
Tiny RayTracing Postscript
Tiny_RayTracing.ps by Takashi Hayakawa (h-takasi@isea.is.titech.ac.jp)
is a ray tracing program in only 762 bytes (plus header)!
BEST OBFUSCATED ARTWORK -- 1st prize
-- The 2nd most coveted prize. These combine obfuscation with great artwork.
Don't send this one to a printer. It will take too long. Display it
on the screen and be ready to wait a while. The picture is well worth it.
If you want to print the picture much faster, use Tiny_RayTracing_Fast.ps instead.
@grkvlt
grkvlt / moog.md
Created May 23, 2012 09:37
Moog Google Doodle

Moog Google Doodle

anigbrowl23 May 2012

Posted this earlier today when it turned up on google.com.au, but the thread had falled off the front page by the time I posted it. I thought people might find this interesting now that it's back.

The doodle is reminiscent of a Minimoog, but with several simplifications to make programming easier and more musical.

Mixer section

@grkvlt
grkvlt / comments.m
Created November 6, 2012 05:26
PSD Commenting
while ([fh offsetInFile] + 12 <= imageoffs) {
uint32_t sign = [fh readUInt32BE];
uint32_t marker = [fh readUInt32BE];
uint32_t chunklen = [fh readUInt32BE];
off_t nextchunk = [fh offsetInFile] + ((chunklen + 3) & ~3);
// At this point, I'd like to take a moment to speak to you about the Adobe PSD format.
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
@grkvlt
grkvlt / entityresourcemanager.md
Last active December 13, 2015 18:38
Brooklyn Proposal - Managing Entity Resources

Brooklyn Proposal

Managing Entity Resources

Pull request #528 - Make copyResource and copyTemplate usable by all entity drivers - allows all entities to take advantage of features that were previously present in only the TomcatServer and QpidBroker drivers. It deprecates the copyFile(...) methods and adds copyResource(String, String), copyResources(Map) and other convenience resource handling methods. This makes resources specified as URI strings the preferred mechanism for describing file content that is required by entities at install- or run-time.

Entities can now:

  • Pull HTTP resources at the remote location, rather than downloading them locally and transferring across with sftp
@grkvlt
grkvlt / securityarchitecture.md
Created February 22, 2013 22:13
Brooklyn Security with Apache Shiro

Brooklyn Proposal

Security Architecture

Rationale and use cases.

Current status.

Future requirements.