In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
var degrees2meters = function(lon,lat) { | |
var x = lon * 20037508.34 / 180; | |
var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180); | |
y = y * 20037508.34 / 180; | |
return [x, y] | |
} | |
lon= -77.035974 | |
lat = 38.898717 |
extension CustomStringConvertible { | |
var description : String { | |
var description: String = "" | |
if self is AnyObject { | |
description = "***** \(self.dynamicType) - <\(unsafeAddressOf((self as! AnyObject)))>***** \n" | |
} else { | |
description = "***** \(self.dynamicType) *****\n" | |
} | |
let selfMirror = Mirror(reflecting: self) | |
for child in selfMirror.children { |
Alamofire has recently been updated. Now it seems to support Swift 3 from its main (master) branch. | |
Below are instructions that should work :) | |
------------------------------------------------------------------------------------------------ | |
CURRENT INSTRUCTIONS --------------------------------------------------------------------------- | |
1. Install cocoapods | |
$ sudo gem install cocoapods | |
2. create an xcode project |
<a href="/url/to/load/modal_window.htm" | |
data-toggle="modal" | |
data-target="#" | |
data-style="zoom-out" | |
class='ladda-button btn'> | |
<span class='ladda-label'>link</span> | |
</a> |
# overload cd to gc git when entering a directory | |
cd () { | |
builtin cd "$@" | |
if [ -d ".git" ]; then | |
(git gc --quiet &) | |
fi | |
} |