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)trimDiskToDate:(NSDate *)trimDate | |
| { | |
| NSArray *keysSortedByDate = [_dates keysSortedByValueUsingSelector:@selector(compare:)]; | |
| for (NSString *key in keysSortedByDate) { // oldest files first | |
| NSDate *accessDate = [_dates objectForKey:key]; | |
| if (!accessDate) | |
| continue; | |
| if ([accessDate compare:trimDate] == NSOrderedAscending) { // older than trim date |
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
| #1 -Instalação do CocoaPods | |
| [sudo] gem install cocoapods | |
| $ pod setup | |
| #2 Edição do Podfile | |
| $ vim Podfile | |
| #3 Instalação dos pods | |
| $ pod install |
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
| platform :io, '5.0' | |
| pod 'JSONKit', '~> 1.4' | |
| pod 'Reachability', '~> 3.0.0' |
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
| $ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install couchdb 2>&1 | |
| ==> Installing couchdb dependency: spidermonkey | |
| ==> Downloading http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz | |
| Already downloaded: /Library/Caches/Homebrew/spidermonkey-1.8.5.tar.gz | |
| tar xf /Library/Caches/Homebrew/spidermonkey-1.8.5.tar.gz | |
| ==> ../js/src/configure --prefix=/usr/local/Cellar/spidermonkey/1.8.5 --enable-readline --enable-threadsafe --with-system-nspr | |
| ../js/src/configure --prefix=/usr/local/Cellar/spidermonkey/1.8.5 --enable-readline --enable-threadsafe --with-system-nspr | |
| creating cache ./config.cache | |
| checking host system type... x86_64-apple-darwin13.0.0 | |
| checking target system type... x86_64-apple-darwin13.0.0 |
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
| #define DELAY 4 | |
| #include <time.h> | |
| #include <stdio.h> | |
| int main(void) | |
| { | |
| time_t begin, end; | |
| end = begin = time(NULL); | |
| printf("blah blah"); |
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
| #import "TestViewController.h" | |
| @interface TestViewController () | |
| @property (nonatomic, strong) IBOutlet iCarousel *carousel; | |
| @property (nonatomic, strong) NSArray *informationArray; | |
| @end | |
| @implementation TestViewController |
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
| var module = angular.module('SCVerticals'); | |
| module.controller('VerticalCtrl', ['$scope', '$modal', 'Verticals', | |
| function ($scope, $modal, Verticals) { | |
| $scope.verticals = Verticals.query(); | |
| $scope.deleteVertical = function (vertical) { | |
| Verticals.delete(vertical); | |
| } |
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
| <section id="homepage-hero"> | |
| <div class="row"> | |
| <div class="medium-7 mendium-centered large-6 large-centered columns"> | |
| <h1>Foundation</h1><br> | |
| <h3>The most advanced responsive <br class="hide-for-small">front-end framework in the world.</h3> | |
| <br> | |
| </div> | |
| </div> | |
| </section> |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| #feat : start a new feature code | |
| #ref : reference a production code | |
| #close : close a production code | |
| #bugfix : bug fix | |
| #docs : update docments | |
| #style formatting, missing semi colons, etc; no code change) | |
| #refactor : refactoring production code | |
| #test : (adding missing tests, refactoring tests; no production code change) | |
| #chore : (updating grunt tasks etc; no production code change) |