This file contains hidden or 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
override fun onAttach(view: HomeView) { | |
view.events() | |
.flatMap(this::processEvent) | |
.subscribe(view::render) | |
.toDisposeBag() | |
} | |
private fun processEvent(event: HomeViewEvent): Observable<HomeViewModel> = when (event) { | |
is HomeViewEvent.MapReady -> Observable.empty() | |
is HomeViewEvent.MapRefresh -> loadStations(event.bounds) |
This file contains hidden or 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
val postsQuery = ParseQuery.getQuery<ParseObject>("Post") | |
.whereExists("createdAt") | |
.whereExists("building") | |
.whereExists("author") | |
.include("building") | |
.include("photo") | |
.include("author") | |
.include("author.Picture") | |
.whereEqualTo("building", ParseObject.createWithoutData("Building", sessionManager.buildingId)) | |
.setLimit(QUERY_LIMIT) |
This file contains hidden or 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
SocketService D socket emit: [join island] | |
SocketService D socket ack: [join island] | |
MessagingService D join island success: [c07021b0-197d-11e7-8b1b-f1f5942855ad_anonymous] | |
SocketService D socket emit: [device token] | |
SocketService D socket on: [update people] | |
D socket on: [prepend chat] | |
D socket on: [add person] | |
D socket ack: [device token] | |
MessagingService D update person content: {"action":"add person","island":{"id":"c07021b0-197d-11e7-8b1b-f1f5942855ad","name":"Barney's","c | |
hannel":"c07021b0-197d-11e7-8b1b-f1f5942855ad_anonymous","room":"anonymous","room_id":1,"anonymous":true,"expira |
This file contains hidden or 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
// CONFIGURATION | |
let authorityUrl = "https://sts.ophtalmic.fr/adfs" | |
let redirectUri = "http://anarbitraryreturnuri" | |
let resourceUri = "http://myadfsblister/webapi" | |
let clientId = "E1CF1107-FF90-4228-93BF-26052DD2C714" | |
// STEP 1: AUTHENTIFICATION | |
let authContext = ADAuthenticationContext(authority: authorityUrl, validateAuthority: false, error: nil) |
This file contains hidden or 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)getToken:(void (^)(NSString*))completionBlock; | |
{ | |
ADAuthenticationError *error = nil; | |
authContext = [ADAuthenticationContext authenticationContextWithAuthority:@"https://login.microsoftonline.com/common" | |
error:&error]; | |
[authContext acquireTokenWithResource:@"https://graph.windows.net" | |
clientId:@"<Your Client ID>" // Comes from App Portal | |
redirectUri:[NSURL URLWithString:@"<Your Redirect URI>"] // Comes from App Portal | |
completionBlock:^(ADAuthenticationResult *result) |
This file contains hidden or 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 client from './client' | |
export default { | |
loadList(page) { | |
console.log(`load audio books [page ${page}]`) | |
return client.get(`audio`, { page: page, per_page: 25 }) | |
.then(response => { | |
console.log(`load audio books success: [${response.data.books.length}]`); | |
return Promise.resolve(response.data.books) |
This file contains hidden or 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
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
#127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost |
This file contains hidden or 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 | |
import SnapKit | |
class ScrollableViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
view.backgroundColor = UIColor.whiteColor() | |
let scrollView = UIScrollView() |
This file contains hidden or 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
// | |
// YMMFadingScrollView.m | |
// Youmiam | |
// | |
// Created by Lukas on 4/14/14. | |
// Copyright (c) 2014 Siu. All rights reserved. | |
// | |
#import "YMMFadingScrollView.h" |
This file contains hidden or 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
PUT https://www.konsent.io/api/project/associate | |
params: | |
- application build number | |
RESPONSE: | |
- 200: | |
{ | |
build_features: [ ... ], | |
other_features: [ ... ] | |
} |