Useful for comparing the fingerprint shown by github at https://github.com/settings/keys
against the public key on your machine to see whether it's a match:
ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
This lists the MD5 fingerprint
Useful for comparing the fingerprint shown by github at https://github.com/settings/keys
against the public key on your machine to see whether it's a match:
ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
This lists the MD5 fingerprint
If you're like me and wanted to serve your main app script from a CDN and still load a web worker, you may have encountered the following error:
Uncaught DOMException: Failed to construct 'Worker': Script at 'http://cdn.example.com/worker.js' cannot be accessed from origin 'http://example.com'
You can get around this fairly simply with importScripts by making the script you instantiate your worker with load the actual worker script from the CDN.
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
const perf = window.performance | |
class PerformanceTimer { | |
constructor (name) { | |
this.name = name | |
this.markStart = `${name}-start` | |
this.markStop = `${name}-stop` | |
} | |
start () { |
const fs = require('fs') | |
const utils = require('loader-utils') | |
const defaultOptions = { | |
extensions: ['.png', '.jpg'], | |
filePrefix: 'img/img-', | |
hashLength: 6 | |
} | |
module.exports = function (options) { |
A Pen by Wes Johnson on CodePen.
I hereby claim:
To claim this, I am signing this object:
var DEFAULT_UNITS = 'hours' | |
var HOURS_FROM_MILLISECONDS = 3600000 | |
var MINUTES_FROM_MILLISECONDS = HOURS_FROM_MILLISECONDS / 60 | |
var m = require('moment') | |
/* | |
* allows for manipulating the raw data stored by Storytime | |
* | |
* filepath (string) - expects a json file relative to the execution context |
(function () { | |
/* | |
Copyright 2012 Research In Motion Limited. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |