Endpoint | Example | Purpose |
---|---|---|
Authorization | https://<auth-server>/oauth/authorize | used by the client application to obtain authorization grant from the resource owner via user-agent redirection |
Token | https://<auth-server>/oauth/token | used by the client application to exchange an authorization grant for an access token, typically with client authentication |
Redirection | https://<client>/callback | used by the authorization server to return responses containing authorization grants to the client via the resource owner user-agent |
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
namespace Sandbox | |
{ | |
public class ExampleViewModel : ViewModelBase | |
{ | |
public string Title | |
{ | |
get { return GetValue(() => Title); } | |
set { SetValue(() => Title, value); } | |
} | |
} |
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
public class LoginExplorations | |
{ | |
public async Task<DataContracts.List[]> FetchListsAsync(string accessToken, string deviceId) | |
{ | |
var info = new TestSystemInfo( | |
userAgent: "Wunderlist.Sdk/" + new AssemblyInfoHelper(typeof (RestClient)).AssemblyVersion, | |
clientId: "01d4f9dcdafd531da497", | |
clientProductGitHash: new AssemblyInfoHelper(typeof (RestClient)).InformationalVersion, | |
clientDeviceId: deviceId, | |
clientSystem: "Windows RT device", |
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
public class MyTests | |
{ | |
public class Package { } | |
public class Service | |
{ | |
public IObservable<Package> DeliverRegular() | |
{ | |
return DeliverRegularAsync().ToObservable(); | |
} |
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
[Fact] | |
public async Task When_awaiting_null_it_should_throw() | |
{ | |
try | |
{ | |
Task t1 = Task.Run(() => { /* do nothing */ }); | |
Task t2 = null; | |
await Task.WhenAll(t1, t2); | |
Assert.True(false, "Should have thrown before!"); | |
} |
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
from PIL import Image | |
import os, sys | |
path = "c:\\Workspace\Images" | |
dirs = os.listdir( path ) | |
mywidth = 640 | |
def resize_keep_aspect_ration(): | |
for item in dirs: | |
img_path = path + "\\" + item |
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
const Rx = require('rx'); | |
const sequence = Rx.Observable.create(function(src) { | |
src.onNext(1); | |
src.onNext(2); | |
src.onNext(3); | |
src.onNext(4); | |
src.onError(new Error("booom!!!")); | |
src.onNext(5); | |
src.onCompleted(); |
Youtube: Software-Architektur für Entscheider – INNOQ Technology Lunch
Die Komponenten eines Systems, ihre Beziehungen zueinander sowie die Prinzipien und Regeln, denen ihre (Weiter-)Entwicklung folgt. (ISO 42010)
Die Summe der bedeutenden Design-Entscheidungen, die das System formen, wobei >>bedeutend<< anhand der Änderungskosten gemessen wird. (Grady Booch)
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
# update .gitignore properly | |
# after that: | |
git rm -rf --cached . | |
git add . |