Skip to content

Instantly share code, notes, and snippets.

@PGGB
PGGB / gist:4157429
Created November 27, 2012 22:00
noise 2d in quil
(ns noc.core
(:use quil.core))
(defn setup []
(background 255)
(no-loop))
(defn draw []
(load-pixels)
(doseq [x (range 0 (width))
@PGGB
PGGB / gist:4520115
Created January 12, 2013 19:32
OpenEmu Services menu crash log
Process: OpenEmu [3995]
Path: /Users/USER/*/OpenEmu.app/Contents/MacOS/OpenEmu
Identifier: org.openemu.OpenEmu
Version: 1.0.0b9
Code Type: X86-64 (Native)
Parent Process: launchd [153]
User ID: 501
Date/Time: 2013-01-12 20:27:30.959 +0100
OS Version: Mac OS X 10.8.2 (12C60)
15.08.13 00:29:00,939 GitHub[52482]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
15.08.13 00:29:00,941 GitHub[52482]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
15.08.13 00:29:03,783 GitHub[52482]: (v156) -[GHGitRepository GTRepository] [Line 505] Error Domain=GTGitErrorDomain Code=-3 "Failed to open repository." UserInfo=0x7fb684ca1740 {NSLocalizedDescription=Failed to open repository., NSLocalizedFailureReason=Failed to resolve path '/Users/danielnagel/Desktop/OpenEmu': No such file or directory}: file://localhost/Users/danielnagel/Desktop/OpenEmu
15.08.13 00:29:06,037 GitHub[52482]: Error updating date modified: (null)
15.08.13 00:31:59,934 GitHub[52482]: (v156) -[GHGitRepository GTRepository] [Line 505] Error Domain=GTGitErrorDomain Code=-3 "Failed to open rep
- (oneway void)didMovePSXJoystickDirection:(OEPSXButton)button withValue:(CGFloat)value forPlayer:(NSUInteger)player
{
int analogNumber = PSXMap[button] - 17;
uint8_t *buf = (uint8_t *)inputBuffer[player-1];
buf[3 + analogNumber] = 32767 * value;
}