Skip to content

Instantly share code, notes, and snippets.

override func viewDidLoad() {
super.viewDidLoad()
self.setUpLocationmanager()
let beaconSequence = locationManager.rx_didRangeBeaconsInRegion.map{$0.beacons}
let sortedBeaconSequence = beaconSequence.map{beacons in self.sortBeaconsByRSSI(beacons)}
let nearestBeaconSequence = sortedBeaconSequence.map({$0[0]})
.filter{$0.proximity == CLProximity.Immediate}
.distinctUntilChanged{$0.minor == $1.minor}
//
// UIColor+customColors.m
// Unity-iPhone
//
// Created by Manuel Zoderer on 27/05/15.
//
//
#import "UIColor+customColors.h"
@mane87
mane87 / eclipseKEYsublime
Created December 6, 2012 13:37
SublimeText 2 Eclipse Key-Bindings (Mac)
[
{ "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+shift+j"], "command": "join_lines" },
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+shift+s"], "command": "save_all" },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }
]