Public Gists by atr000

gist: 235562 pdf2png: cocoa only. wonder...
Gravatar
Sun Nov 15 15:29:18 -0800 2009
1
2
3
// A tiny program that converts PDF documents to high resolution PNG images.
//
// gcc --std=c99 -Wall -g -o pdf2png pdf2png.m -framework Cocoa
gist: 235543 code from the guys at 1Pass...
Gravatar
Sun Nov 15 14:35:08 -0800 2009
1
2
3
- (void)installButtonBeforeItem:(NSString *)beforeItem toToolbar:(NSString *)toolbarIdentifier
{
log_enter();
Gravatar
Thu Nov 12 09:41:56 -0800 2009
1
2
3
/*
* To generate glue: osaglue FN Finder
* boosted from a forum with shitty formatting, even via raw
Gravatar
Mon Nov 09 01:07:46 -0800 2009
1
2
3
#!/bin/sh
# userscript for xblowde that uses an useful feature of osascript to
# help when using scriptingbridge in 10.6 to grab the bundle identifier + other stuff
Gravatar
Sun Nov 08 21:04:45 -0800 2009
1
2
3
#import <ApplicationServices/ApplicationServices.h>
// hardcore boosted code to keep the idle timer spoofed. useful for screensaver bypass
// gcc -framework ApplicationServices -o update_activity update_activity.m
Gravatar
Sun Nov 08 20:35:43 -0800 2009
1
2
3
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <ScreenSaver/ScreenSaver.h>
Gravatar
Sun Nov 08 20:31:43 -0800 2009
1
2
3
//
// created 07.30.2009 by Hank McShane
// version: 0.1
Gravatar
Sun Nov 08 20:30:46 -0800 2009
1
2
3
#import <Foundation/Foundation.h>
#import <Carbon/Carbon.h>
 
Gravatar
Sun Nov 08 20:30:21 -0800 2009
1
2
3
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
 
Gravatar
Sun Nov 08 20:30:02 -0800 2009
1
2
3
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
 
gist: 223401 volimeter.c
Gravatar
Sat Oct 31 21:53:13 -0700 2009
1
2
3
//
// volimiter
//
gist: 221387 find_app.cc from TextMate
Gravatar
Thu Oct 29 05:03:09 -0700 2009
1
2
3
/*
* g++ -arch x86_64 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Wall -Os -o findapp findapp.cc -framework ApplicationServices
* This is directly from TextMate
gist: 221162 this is an absolute path sc...
Gravatar
Wed Oct 28 21:40:19 -0700 2009
1
2
3
#!/bin/sh
 
P=`pwd`
Gravatar
Mon Oct 19 12:45:58 -0700 2009
1
2
3
hg st \
| grep '^?' \
| cut -c'3-258' \
Gravatar
Fri Oct 16 19:43:03 -0700 2009
1
2
3
/*
 * Author: patrick@collison.ie
 * Records mouse movements, clicks, frontmost app, and key presses (NOT the key code itself, just that a key was pressed)
Gravatar
Fri Oct 16 15:16:32 -0700 2009
1
2
3
//
// hfsfind - find files and folders on HFS+ mounted volumes on Mac OS X
//
Gravatar
Fri Oct 16 11:33:01 -0700 2009
1
2
3
#!/usr/env/python
 
from AppKit import NSMutableDictionary
Gravatar
Fri Oct 16 11:31:06 -0700 2009
1
2
3
#!/usr/bin/env python
# resize an image using appkit/pyobjc
 
Gravatar
Fri Oct 16 11:27:46 -0700 2009
1
2
3
#!/usr/bin/python
__author__ = "Nicolas Seriot"
__date__ = "2008-04-10"
Gravatar
Sun Oct 11 03:57:56 -0700 2009
1
2
3
/*
 * setgetscreenres.m