André J

Results 174 comments of André J

Assert if the folder has a git repo GitAsserter's is_git_repo("~/testing/.git/")--true/false

You should be able to clone into a defined path: git clone

**To manually clone a populated folder:** 1. git init 2. add and commit your files 3. attach remote origin Then do the exact same steps as you do in the...

![image](https://cloud.githubusercontent.com/assets/11816788/9715171/32aff498-555e-11e5-9ab5-4f1c14881a6f.jpg) Activity diagram of the auto init operation.

So something like this: ``` swift let someDouble:Double = 4 let someFloat:CGFloat = someDouble ``` Won't work in swift 3.0?

Right. Would be so awesome to not worry about casting Numerical types. I guess one could make an universal cast method by using inference and generics. like: ``` swift let...

What i personally do Is: ``` swift let someCGFloat:CGFloat = 4 let someInt:Int = someCGFloat.int let someDouble:Int = someCGFloat.double let someString:String = someCGFloat.string ``` But this solution has code all...

Yes, definitely avoid the huge if else clause with polymorphism. And just extend every Numerical type instead. If its all in one .swift class its easy enough to reason with.

If you have arrays with numbers you can also do something like this: ``` swift let someFloats:[Float] = [1,2,3,4] let someCGFloats:[CGFloat] = someFloats.cast() extension Array{ func cast() -> [T]{ return...