I hereby claim:
- I am axiixc on github.
- I am axiixc (https://keybase.io/axiixc) on keybase.
- I have a public key whose fingerprint is 37A6 BB5F 25ED F824 9B66 7BF8 B907 7DAB 7DF3 DEE3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// class CountDownEvent { | |
// init(endDate: NSDate, name: String); | |
// } | |
extension CountDownEvent: NSSecureCoding { | |
convenience init(coder: NSCoder!) { | |
let endDate = coder.decodeObjectOfClass(NSDate.classForCoder(), forKey: "endDate") as NSDate | |
let name = coder.decodeObjectOfClass(NSString.classForCoder(), forKey: "name") as NSString | |
self.init(endDate: endDate, name: name) // Is this not how you call another initializer? |
-- 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 | |
<?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> |
#!/usr/bin/php | |
<?php # Axiixc [ 2010 ] | |
function exByteSize($bytes) | |
{ | |
$size = $bytes / 1024; | |
if ($size < 1024) | |
{ | |
$size = number_format($size, 2); | |
$size .= ' KB'; |
#!/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; |
<?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, |
<?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/' | |
); |
#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 |
#import <MediaPlayer/MediaPlayer.h> | |
@interface MPVolumeView (ReferenceView) | |
+ (MPVolumeView *)swapWithReferenceView:(UIView *)referenceView; | |
@end |