Skip to content

Instantly share code, notes, and snippets.

Robin Hahling Rolinh

Block or report user

Report or block Rolinh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Rolinh
Rolinh / url.js
Last active Oct 4, 2016
url resolve bug?
View url.js
> var url = require("url");
undefined
> url.resolve("https://foo.tld", "bar");
'https://foo.tld/bar'
> url.resolve("wss://foo.tld", "bar");
'wss://bar'
> url.resolve("ftps://foo.tld", "bar");
'ftps://bar'
@Rolinh
Rolinh / url.js
Last active Oct 4, 2016
nodejs url.resolve() bug
View url.js
> var url = require("url");
undefined
> var u = url.parse("https://foo.tld");
undefined
> u
Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'foo.tld',
View NumberPickerDialogPreference.java
package com.lukehorvat;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Parcel;
import android.os.Parcelable;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.NumberPicker;
You can’t perform that action at this time.