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
#import <MediaPlayer/MediaPlayer.h> | |
@interface MPVolumeView (ReferenceView) | |
+ (MPVolumeView *)swapWithReferenceView:(UIView *)referenceView; | |
@end |
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
#import <dispatch/dispatch.h> | |
@interface NSNotificationCenter (Concurrency) | |
+ (void)onMainQueuePostNotificationName:(NSString *)notificationName object:(id)object; | |
+ (void)onMainQueuePostNotificationName:(NSString *)notificationName object:(id)object userInfo:(NSDictionary *)userInfo; | |
+ (void)onQueue:(dispatch_queue_t)queue postNotificationName:(NSString *)notificationName object:(id)object; | |
+ (void)onQueue:(dispatch_queue_t)queue postNotificationName:(NSString *)notificationName object:(id)object userInfo:(NSDictionary *)userInfo; | |
@end |
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
<?php # axiixc.com | |
$file = 'server.log'; | |
$contents = file($file); | |
$regexp_arr = array( | |
'message' => '/] <([A-Za-z0-9]+)>/', | |
'login' => '/] ([A-Za-z0-9]+) \[/', | |
'give' => '/] [A-Za-z0-9]+: Giving ([A-Za-z0-9]+) some/' | |
); |
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
@interface AXMutableOrderedDictionary : NSMutableDictionary <NSMutableCopying> { | |
@private | |
NSMutableArray * _keys; | |
NSMutableDictionary * _dict; | |
} | |
+ (id)newWithCapacity:(NSUInteger)initialCapacity; | |
+ (id)newWithOrderedDictionary:(AXMutableOrderedDictionary *)otherDictionary; | |
+ (id)newWithObjects:(NSArray *)objects forKeys:(NSArray *)keys; |
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
<?php | |
# axiixc [ 2011 ] - https://gist.github.com/845863 | |
# Adapted from a ruby version at https://gist.github.com/303378 | |
# Usage | |
$data = CFDictMake( | |
"False", FALSE, | |
"True", TRUE, | |
"Integer", 42, |
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/php | |
<?php # Axiixc [ 2009 ] | |
$input = $argv[1]; | |
$files = array(); | |
if (is_dir($input)) | |
{ | |
$files = scandir($input); | |
foreach ($files as $key => $value) | |
$files[$key] = $input . '/' . $value; |
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/php | |
<?php # Axiixc [ 2010 ] | |
function exByteSize($bytes) | |
{ | |
$size = $bytes / 1024; | |
if ($size < 1024) | |
{ | |
$size = number_format($size, 2); | |
$size .= ' KB'; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Neon Assasin</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
-- iTunes Info by James Savage [ AXIIXC : axiixc.com ] | |
-- Best used with GeekTool | |
if appIsRunning("iTunes") then | |
tell application "iTunes" | |
if player state is stopped then | |
set output to ".: No Track Selected :." | |
else | |
NewerOlder