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
<script src="http://platform.tumblr.com/v1/share.js"></script> | |
<!-- Containers --> | |
<p id="tumbr_video_share"></p> | |
<p id="tumbr_text_share"></p> | |
<!-- Everlapse Vars --> | |
<script type="text/javascript"> | |
var everlapse_title = 'Walk With Me'; |
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
[[UIColor colorWithRed:0 green:192/255.0 blue:255/255.0 alpha:1] set]; | |
CGContextSetLineWidth(context, 1); | |
CGContextSetLineJoin(context, kCGLineJoinRound); | |
const CGFloat amplitude = halfHeight / 4; | |
for(CGFloat x = 0; x < width; x += 0.5) | |
{ | |
CGFloat y = amplitude * sinf(2 * M_PI * (x / width) * frequency) + halfHeight; |
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
+ (void)pulseView:(UIView *)view completion:(void (^)(void))block { | |
// No need for fancy keyframe animation, we can fake this good enough... | |
[UIView animateWithDuration:0.05 delay:0 options:UIViewAnimationCurveEaseInOut animations:^(void) { | |
view.layer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMakeScale(0.7, 0.7)); | |
} completion:^(BOOL finished) { | |
[UIView animateWithDuration:0.12 delay:0 options:UIViewAnimationCurveEaseInOut animations:^(void) { | |
view.layer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMakeScale(1.1, 1.1)); | |
} completion:^(BOOL finished) { | |
[UIView animateWithDuration:0.1 delay:0 options:UIViewAnimationCurveEaseInOut animations:^(void) { |
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 zsh | |
# | |
# Works best with blinking text; the last heart will blink | |
# when you have less than 25% of your battery life remaining. | |
BATTERY="$(pmset -g ps | tail -1 | perl -pe 's/.*?(\d+)%.*/\1/')" | |
if [[ $BATTERY -lt 25 ]]; then | |
echo "\e[5;31m♥\e[0;31m♡♡\e[0m" | |
elif [[ $BATTERY -lt 50 ]]; then |
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
window "AppName" do | |
root "~/dev/thoughtbot/app" | |
vpane 75, "vim ." | |
vpane 25 do | |
hpane 75 | |
hpane 25 do | |
vpane 50, "guard" | |
vpane 50, "evergreen serve" | |
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
" Vim indent file | |
" Language: Vim script | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last Change: 2005 Jul 06 | |
" Only load this indent file when no other was loaded. | |
if exists("b:did_indent") | |
finish | |
endif | |
let b:did_indent = 1 |
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
CmdUtils.CreateCommand({ | |
name: "delicious", | |
homepage: "http://ryan.codecrate.com/", | |
author: { name: "Ryan Sonnek", email: "[email protected]"}, | |
contributors: ["Ryan Sonnek", "Travis Jeffery"], | |
license: "MIT", | |
description: "Tags the current site using delicious", | |
icon: "http://delicious.com/favicon.ico", | |
help: "Save the current url to delicious with the tags input by the user. Any selected text on the page will be recorded as the note.", | |