Skip to content

Instantly share code, notes, and snippets.

View cruffenach's full-sized avatar

Collin Ruffenach cruffenach

View GitHub Profile
Warning: no rule to process file 'REDACTED/Pods/T1Autograph/libT1Autograph.a' of type archive.ar for architecture x86_64
@cruffenach
cruffenach / gist:7832838
Created December 6, 2013 22:01
Control Plex Up Key Appescript
set thePlayer to do shell script "defaults read ~/.plex/config.plist player_name"
set theURL to "mini.local:32400/system/players/" & thePlayer & "/navigation/moveUp"
do shell script "curl " & quoted form of theURL
set theURL to "mini.local:32400/system/players/" & thePlayer & "/playback/bigStepForward"
do shell script "curl " & quoted form of theURL

CWStatusBarNotification

CWStatusBarNotification is a library that allows you to easily create notifications that appear on the status bar.

demo

Requirements

CWStatusBarNotification uses ARC and requires iOS 7.0+.

@cruffenach
cruffenach / gist:6117012
Created July 30, 2013 21:12
Using Simple with my Fiancee
My Fiancee and I have both been using Simple exclusively for the last year. We both work and get regular paychecks. My account is the "primary" account. All of the bills, rent and most of our spending (going out etc.) along with savings happens in my account. Her account is for her spending, groceries, house stuff she sees when she is out and about etc.
To accomplish this my Fiancee has her paycheck direct deposited into 2 accounts. ~60% goes into mine where I immidiately put all of it into a Savings goal. The remaining 40% goes into hers where she spends some of it but is also growing a savings goal. 100% of my paycheck goes into my account. I have goals for all of our bills, along with a daily contributed to savings goal.
Overall we have had 0 problems making this situation work for us. Couples all have different ways of managing finances but we view ourselves as a single functional unit saving together. Having one person in the relationship designated as the primary account has been a very functional s
@cruffenach
cruffenach / gist:6117011
Created July 30, 2013 21:12
Using Simple with my Fiancee
My Fiancee and I have both been using Simple exclusively for the last year. We both work and get regular paychecks. My account is the "primary" account. All of the bills, rent and most of our spending (going out etc.) along with savings happens in my account. Her account is for her spending, groceries, house stuff she sees when she is out and about etc.
To accomplish this my Fiancee has her paycheck direct deposited into 2 accounts. ~60% goes into mine where I immidiately put all of it into a Savings goal. The remaining 40% goes into hers where she spends some of it but is also growing a savings goal. 100% of my paycheck goes into my account. I have goals for all of our bills, along with a daily contributed to savings goal.
Overall we have had 0 problems making this situation work for us. Couples all have different ways of managing finances but we view ourselves as a single functional unit saving together. Having one person in the relationship designated as the primary account has been a very functional s
- (UIImage *)imageScaledToSizeKeepingAspectRatioWithWidth:(CGFloat)targetMinimumWidth contextSize:(CGSize)contextSize {
CGSize originalSize = self.size;
CGFloat newHeight = (originalSize.height / originalSize.width) * targetMinimumWidth;
UIGraphicsBeginImageContextWithOptions(contextSize, NO, 1);
[self drawInRect:CGRectMake(0, 0, targetMinimumWidth, newHeight)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
.highlight_blue {
color: #35A4D4;
}
.highlight_red {
color: #CC4555;
}
.highlight_green {
color: #58c472;
body {
background-color:#d0e4fe;
}
h1 {
color:orange;
text-align:center;
}
p {
<pre>To <span style="color:green;">be</span> or <span style="color:red;">not</span> to be that is the question.<pre>
➜ saturday git:(gh-pages) ✗ cd ~ ; git clone git@github.com:jpoz/saturday.git;
Cloning into 'saturday'...
remote: Counting objects: 113, done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 113 (delta 54), reused 74 (delta 18)
Receiving objects: 100% (113/113), 976.56 KiB | 470 KiB/s, done.
Resolving deltas: 100% (54/54), done.