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
{:class Composite | |
:children [{:class Button :text "Button 0"} | |
{:class Button :text "Button 1"} | |
{:class Button :text "Button 2"} | |
{:class Button :text "Button 3"} | |
{:class Button :text "Button 4"} | |
{:class Button :text "Button 5"} | |
{:class Button :text "Button 6"} | |
{:class Button :text "Button 7"} | |
{:class Button :text "Button 8"} |
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/local/bin/bzr | |
==> Cloning bzr://http://bzr.savannah.gnu.org/r/emacs/trunk | |
Updating /Users/hanssjunnesson/Library/Caches/Homebrew/emacs--bzr | |
bzr update | |
Tree is up to date at revision 106538 of branch http://bzr.savannah.gnu.org/r/emacs/trunk | |
bzr export /private/tmp/homebrew-emacs-HEAD-yi99 | |
==> Downloading patches | |
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7.2) https://raw.github.com/gist/1012927 -o 001-homebrew.diff | |
######################################################################## 100.0% |
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
~ 0 $ cat ~/.bash_profile | |
# ~/.bash_profile: executed by bash(1) for login shells. | |
# see /usr/share/doc/bash/examples/startup-files for examples. | |
# the files are located in the bash-doc package. | |
# the default umask is set in /etc/login.defs | |
#umask 022 | |
# include .bashrc if it exists | |
if [ -f ~/.bashrc ]; then |
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
// | |
// HSActionSheet.h | |
// UIAlertViewBlock | |
// | |
// Created by Hans Sjunnesson on 2/25/12. | |
// Copyright (c) 2012 Hans Sjunnesson | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of | |
// this software and associated documentation files (the "Software"), to deal in | |
// the Software without restriction, including without limitation the rights to |
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
#+BEGIN: columnview :hlines 1 :vlines t :id global :skip-empty-rows t | |
#+END: | |
#+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file :compact t :block thisweek :step week :stepskip0 t | |
#+END: clocktable |
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
// Block which determine whether two NSDates are on the same day | |
BOOL(^areDatesSameDay)(NSDate *, NSDate *) = ^(NSDate *date1, NSDate *date2) { | |
if (!date1 || !date2) | |
return NO; | |
NSDateComponents *day1 = [[NSCalendar currentCalendar] components:NSEraCalendarUnit|NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:date1]; | |
NSDateComponents *day2 = [[NSCalendar currentCalendar] components:NSEraCalendarUnit|NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:date2]; | |
if ([day1 day] == [day2 day] && | |
[day1 month] == [day2 month] && |
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
* { | |
margin: 0px; | |
padding: 0px; | |
} | |
ul, ol, dl, li, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input { | |
margin: 0; | |
padding: 0; | |
color: inherit; | |
font-family: inherit; | |
font-size: inherit; |
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
2013-09-05 23:24:37.777 Prime[4204:c07] 1 | |
2013-09-05 23:24:37.779 Prime[4204:c07] 0.732028842267092 | |
2013-09-05 23:24:37.780 Prime[4204:c07] 0.2530017011838238 | |
2013-09-05 23:24:37.781 Prime[4204:c07] 0.22892546997679017 | |
2013-09-05 23:24:37.781 Prime[4204:c07] 0.5423003204364027 | |
2013-09-05 23:24:37.782 Prime[4204:c07] 0.6065306597126334 | |
2013-09-05 23:24:37.783 Prime[4204:c07] 0.44399788140114904 | |
2013-09-05 23:24:37.783 Prime[4204:c07] 0.15345314921321815 | |
2013-09-05 23:24:37.784 Prime[4204:c07] 0.13885046809469812 | |
2013-09-05 23:24:37.784 Prime[4204:c07] 0.32892187595578626 |
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 <Foundation/Foundation.h> | |
typedef void(^SuccessBlock)(id object); | |
typedef void(^ErrorBlock)(NSString *error); | |
@interface JenkinsRequest : NSObject | |
@property (copy) SuccessBlock successBlock; | |
@property (copy) ErrorBlock errorBlock; |
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
[[[RACObserve(self.tableView, contentOffset) | |
filter:^BOOL(NSValue *contentOffset) { | |
CGPoint point = [contentOffset CGPointValue]; | |
return point.y == 0.0f; | |
}] | |
take:1] | |
subscribeCompleted:^{ | |
// This block gets executed when the tableview has scrolled to top | |
}]; |
OlderNewer