Skip to content

Instantly share code, notes, and snippets.

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;
@rolinh
rolinh / url.js
Last active October 4, 2016 08:19
nodejs url.resolve() bug
> var url = require("url");
undefined
> var u = url.parse("https://foo.tld");
undefined
> u
Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'foo.tld',
@rolinh
rolinh / url.js
Last active October 4, 2016 08:27
url resolve bug?
> 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 / results.json
Last active October 13, 2020 15:34
semgrep on cilium master (2020-10-13)
This file has been truncated, but you can view the full file.
{
"results": [
{
"check_id": "go.lang.security.audit.reflect-makefunc.reflect-makefunc",
"path": "test/ginkgo-ext/scopes.go",
"start": {
"line": 564,
"col": 7
},
"end": {