Skip to content

Instantly share code, notes, and snippets.

@rolinh
rolinh / results.json
Last active Oct 13, 2020
semgrep on cilium master (2020-10-13)
View results.json
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
},
@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;