This file contains 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 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
html { | |
height: 100%; | |
overflow-y: hidden; } | |
body { | |
background: #dfdfdf; |
This file contains 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/ruby | |
# Expectations: | |
# 1) File contains only hardware instructions, there is NO pseudoinstruction translation | |
# 2) All immediates are the correct size. The assembler will generate errors and cease | |
# code generation, but will not convert large immediates to $at. | |
# 3) Labels must be on a line by themselves. If an instruction follows a label it will | |
# cause undefined errors in assembly! | |
# 4) All comments must be denoted by a hash (#) symbol. They may appear anywhere in the | |
# program, and anything after the hash will be dropped from the instruction parsing. |
This file contains 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 MyClass : NSObject | |
@property (nonatomic, strong) NSComplexThing * myThing; | |
@end |
This file contains 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
#!/bin/bash | |
echo "Zipping assignment..." | |
zip assignment.zip file1.ss file2.ss file3.ss main.ss >> /dev/null | |
if [ $? -eq 0 ] | |
then | |
plcsend --send-file assignment.zip -user YOUR_USERNAME -pass YOUR_PASSWORD -id ASSIGNMENT_ID | |
else | |
echo "Error creating zip" | |
fi |
This file contains 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
;;; James Savage -- http://axiixc.com | |
;;; Easy file reloading for scheme, written because I needed it. | |
;;; The list of all reloadable files | |
(define rl-files (list)) | |
(define rl-last-file '()) | |
;;; Clear any reloadable files | |
(define rl-clear (lambda () | |
(set! rl-files (list)) |
This file contains 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
(define test-base | |
(lambda (passed? result message) | |
(if passed? | |
(begin | |
(display " passed: ") | |
(display message) | |
) | |
(begin | |
(display " failed: ") | |
(display message) |
This file contains 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
--- | |
:definitions: | |
MAIN_BG: white | |
MAIN_TEXT_COLOR: black | |
MAIN_LINK_COLOR: black | |
MAIN_LINK_HIGHLIGHT_COLOR: "#FF0" | |
:partials: | |
MASTHEAD_GRADIENT: | | |
background: rgb(40,40,40); |
This file contains 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
#!/bin/ruby | |
# Expectations: | |
# 1) File contains only hardware instructions, there is NO pseudoinstruction translation | |
# 2) All immediates are the correct size. The assembler will generate errors and cease | |
# code generation, but will not convert large immediates to $at. | |
# 3) Labels must be on a line by themselves. If an instruction follows a label it will | |
# cause undefined errors in assembly! | |
# 4) All comments must be denoted by a hash (#) symbol. They may appear anywhere in the | |
# program, and anything after the hash will be dropped from the instruction parsing. |
This file contains 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 |
NewerOlder