Skip to content

Instantly share code, notes, and snippets.

View poltak's full-sized avatar

Jonathan Poltak Samosir poltak

  • WorldBrain.io - Collective Web Intelligence
  • Hoi An, Vietnam
View GitHub Profile
function nameFromKeyPath (keyPath) {
return typeof keyPath === 'string' ?
keyPath :
keyPath ? ('[' + [].join.call(keyPath, '+') + ']') : "";
}
function createTableSchema (
name,
primKey,
indexes
[1:1:0418/094908.423387:VERBOSE1:sandbox_linux.cc(69)] Activated seccomp-bpf sandbox for process type: utility.
[1:1:0418/094908.519153:VERBOSE1:sandbox_linux.cc(69)] Activated seccomp-bpf sandbox for process type: utility.
[1:1:0418/094908.541292:VERBOSE1:sandbox_linux.cc(69)] Activated seccomp-bpf sandbox for process type: utility.
[1:1:0418/094908.883871:VERBOSE1:sandbox_linux.cc(69)] Activated seccomp-bpf sandbox for process type: utility.
[6230:6230:0418/094909.011271:VERBOSE1:webstore_private_api.cc(474)] Install success, sending response
[1:1:0418/094909.068217:VERBOSE1:sandbox_linux.cc(69)] Activated seccomp-bpf sandbox for process type: renderer.
[1:1:0418/094909.484121:VERBOSE1:v8_context_snapshot.cc(152)] A context is created from snapshot for main world
[1:1:0418/094909.484981:VERBOSE1:script_context.cc(94)] Created context:
extension id: abkfbakhjpmblaafnpgjppbmioombali
frame: 0xd14e38e1c60

Keybase proof

I hereby claim:

  • I am poltak on github.
  • I am poltak (https://keybase.io/poltak) on keybase.
  • I have a public key ASDpKNWxpMfjVEjFSVrVqdxXLpTqfEhoK-G14e4-YJfDkgo

To claim this, I am signing this object:

function getDexieHistory(storageRegistry) {
const collections = {}
const versions = []
let version = 0
Object.entries(storageRegistry.collectionsByVersion)
.sort((left, right) => (left[0] < right[0] ? -1 : 1))
.forEach(([versionTimestamp, defs]) => {
defs.forEach(def => (collections[def.name] = def))
versions.push({

Safe Browsing Update API (v4) affords fetching Safe Browsing lists for local usage. https://developers.google.com/safe-browsing/v4/update-api

General idea is to make a client of that API, which manages keeping updated and affording checking functionality.

Two main ways to go about making the client:

Server

  • have a centralized server run as the API client, managing it's own lists
@poltak
poltak / data.json
Last active October 9, 2017 13:58
search-index script that simulates searches while indexing
{
"id": "page/Z2l0aHViLmNvbS9ubHAtY29tcHJvbWlzZS9jb21wcm9taXNl",
"content": "Skip content This repository Pull requests Issues Marketplace Explore Import gist organization issue Signed poltak Your profile stars Gists Help Settings Sign Watch Notifications watching notified when",
"url": "github.com/nlp-compromise/compromise",
"visits": [
"1504836098717",
"1505134022188"
],
"latest": "1505134022188",
"bookmarks": []
@poltak
poltak / cloudSettings
Created September 27, 2017 14:55
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-27T14:55:12.590Z","extensionVersion":"v2.8.3"}
@poltak
poltak / cloudSettings
Created September 27, 2017 14:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-27T14:54:46.896Z","extensionVersion":"v2.8.3"}
@poltak
poltak / data.json
Last active September 15, 2017 03:51
{
"id": "page/Z2l0aHViLmNvbS9ubHAtY29tcHJvbWlzZS9jb21wcm9taXNl",
"content": "Skip content This repository Pull requests Issues Marketplace Explore Import gist organization issue Signed poltak Your profile stars Gists Help Settings Sign Watch Notifications watching notified when",
"url": "github.com/nlp-compromise/compromise",
"visits": [
"1504836098717",
"1505134022188"
],
"latest": "1505134022188",
"bookmarks": []
@poltak
poltak / data.json
Last active October 11, 2017 10:20
{
"id": "page/Z2l0aHViLmNvbS9ubHAtY29tcHJvbWlzZS9jb21wcm9taXNl",
"content": "Skip content This repository Pull requests Issues Marketplace Explore Import gist organization issue Signed poltak Your profile stars Gists Help Settings Sign Watch Notifications watching notified when",
"url": "github.com/nlp-compromise/compromise",
"visits": [
"1504836098717",
"1505134022188"
],
"bookmarks": []
}