Download iOS autotools (https://github.com/sc0rch/ios-autotools).
Download xdelta-3.0.11.tar.gz (http://xdelta.org).
brew install automake
brew install libtool
Download iOS autotools (https://github.com/sc0rch/ios-autotools).
Download xdelta-3.0.11.tar.gz (http://xdelta.org).
brew install automake
brew install libtool
// | |
// ScrollableViewController.swift | |
// | |
import UIKit | |
class ScrollableViewController: UIViewController, UIScrollViewDelegate { | |
private let scrollView = UIScrollView() | |
private var controllers: Array<ViewController> = [ |
/// Useful class if you want your shared instance to have several delegates stored as weak references | |
public class MulticastDelegate<T> { | |
private let delegates: NSHashTable<AnyObject> = NSHashTable.weakObjects() | |
public func add(delegate: T) { | |
delegates.add(delegate as AnyObject) | |
} | |
public func remove(delegate: T) { | |
for oneDelegate in delegates.allObjects.reversed() { |
ARM Translation Installer v1.1
http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links
Google Apps for Android 6.0.0
import Foundation | |
import GoogleMaps | |
import UIImage_ResizeMagick | |
/** | |
Custom GMSTileLayer which allows us to double tile size for OSM. | |
Available size of OSM tiles is 256, but for retina devices we need 512x512. | |
*/ | |
class OSMTileOverlay: GMSTileLayer { | |
var retina: Bool = false |
// | |
// Extension for library: | |
// https://github.com/Ekhoo/Device | |
// | |
// Detect device with motion co-processor. | |
// | |
import Device |
public class MainActivity extends Activity | |
// ... any code | |
/** | |
* Clear focus on touch outside for all EditText inputs. | |
*/ | |
@Override | |
public boolean dispatchTouchEvent(MotionEvent event) { | |
if (event.getAction() == MotionEvent.ACTION_DOWN) { | |
View v = getCurrentFocus(); |
/** | |
* Created by sc0rch on 05.07.16. | |
*/ | |
public class Tuple<L,R> { | |
private final L left; | |
private final R right; | |
public Tuple(L left, R right) { | |
this.left = left; | |
this.right = right; |
/** | |
* Created by sc0rch on 30.06.16. | |
* GSON module for Dagger 2. | |
*/ | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import java.util.Date; |