This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SystemConfiguration/SystemConfiguration.h> | |
- (NSDictionary *)getProxyInfo { | |
NSMutableDictionary *returnData = [[[NSMutableDictionary alloc] init] autorelease]; | |
NSDictionary *proxies = (NSDictionary *)SCDynamicStoreCopyProxies(NULL); | |
BOOL HTTPEnabled = [[proxies objectForKey:(NSString *)kSCPropNetProxiesHTTPEnable] boolValue]; | |
NSString *HTTPHost = @""; | |
NSNumber *HTTPPort = [NSNumber numberWithInt:80]; | |
BOOL HTTPSEnabled = [[proxies objectForKey:(NSString *)kSCPropNetProxiesHTTPSEnable] boolValue]; | |
NSString *HTTPSHost = @""; | |
NSNumber *HTTPPort = [NSNumber numberWithInt:443]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Just put this line in your ~/.shell-fm/shell-fm.rc | |
np-cmd = /path/to/shellfm-notify "%a" "%t" "%l" | |
""" | |
import os | |
import sys | |
import Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (c) 2002 Julien Jalon <[email protected]> | |
// See license info at the end of this file. | |
#import <Foundation/Foundation.h> | |
#include <CoreFoundation/CoreFoundation.h> | |
#include <SystemConfiguration/SystemConfiguration.h> | |
#define PRINT(X) printf("%s\n", [[NSString stringWithFormat:@"%@", (X)] ISOLatin1EncodedCString]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// levenshtein.cpp | |
// | |
// Created by Julien-Pierre Avérous on 22/08/06. | |
// Copyright 2006 SourceMac.com. All rights reserved. | |
// | |
// | |
#include <iostream> | |
#include<string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <gloox/client.h> | |
#include <gloox/connectionlistener.h> | |
#include <gloox/messagesession.h> | |
#include <gloox/messagehandler.h> | |
#include <gloox/message.h> | |
class Bot : public gloox::ConnectionListener, gloox::MessageHandler | |
{ | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Normalize Playlist | |
Accepts an itunes playlist as text input, | |
and normalizes all mp3 files on the playlist | |
with mp3gain -r (mp3gain itself decides how | |
best to normalize). | |
Prerequisities: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# irssi plug for last.fm | |
# http://soy.se/code/lastfm.pl | |
# vim: set noexpandtab: | |
use vars qw($VERSION %IRSSI); | |
$VERSION = "5.4"; | |
%IRSSI = ( | |
authors => "Simon 'simmel' Lundström", | |
contact => 'simmel@(freenode|quakenet|efnet) http://last.fm/user/darksoy', | |
name => "lastfm", | |
date => "20100526", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
gcc -framework "Foundation" -framework "IOKit" -o HWInfo HWInfo.m | |
*/ | |
#import <Foundation/Foundation.h> | |
#import <IOKit/IOKitLib.h> | |
#include <sys/sysctl.h> | |
#include <sys/resource.h> | |
#include <sys/vm.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <IOKit/hidsystem/IOHIDLib.h> | |
#include <IOKit/hidsystem/IOHIDParameter.h> | |
#include <IOKit/hidsystem/event_status_driver.h> | |
int main(int argc, char **argv) | |
{ | |
const int32_t accel = -0x10000; | |
io_connect_t handle = NXOpenEventStatus(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basic Tips for x264Encoder | |
Last update: May. 22nd 2010 | |
Starter Method for Beginners | |
* If Data rate can be varied, choose Single pass + CRF. | |
If it is restricted, choose Multipass + Data rate. | |
* If for Mac/PC only, choose Single pass + CRF. | |
If for iPod/etc. also, choose Multipass + Data rate. | |
* If for Mac/PC only, check frame reordering. | |
If for iPod/etc. also, uncheck frame reordering. |