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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
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
--installing ruby | |
sudo apt-get install ruby-full build-essential | |
--installing rubygems | |
sudo apt-get install rubygems | |
--install sass | |
sudo gem install sass |
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 UIKit | |
// variable | |
var myVariable = 3 | |
myVariable += 1 | |
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 "ViewController.h" | |
#import <HealthKit/HealthKit.h> | |
@interface ViewController () | |
@property (nonatomic, strong) HKHealthStore *healthStore; | |
@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
// For removing the separator line indentation from a UITableViewCell | |
override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { | |
if(tableView.respondsToSelector("setSeparatorInset:")) { | |
tableView.separatorInset = UIEdgeInsetsZero | |
} | |
if(tableView.respondsToSelector("setLayoutMargins:")) { | |
tableView.layoutMargins = UIEdgeInsetsZero | |
} |
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
//custom navigation bar | |
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed: @"customNavImage"] forBarMetrics:UIBarMetricsDefault]; | |
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
<html> | |
<head> | |
<title>Sample: Adding TileStream cache to Leaflet</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" /><![endif]--> | |
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script> | |
$(document).ready(function(){ |
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
/*---------------------------------------- | |
Examples for styling POLYGONS | |
----------------------------------------*/ | |
#countries { | |
::outline { | |
line-color: #85c5d3; | |
line-width: 2; | |
line-join: round; | |
} |
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
/*---------------------------------------------------------------------------------------------------------------------------------- | |
Description: | |
iOS - Core Location - sample code for initializing Core Location and implementing CLLocationManagerDelegate delegate methods. | |
----------------------------------------------------------------------------------------------------------------------------------*/ | |
//interface file ... | |
#import <UIKit/UIKit.h> | |
#import <CoreLocation/CoreLocation.h> |
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 MapViewController() | |
@property (nonatomic, weak) IBOutlet MKMapView *mapView; | |
@property (nonatomic, strong) MKTileOverlay *overlay; | |
@end | |
OlderNewer