Web pages are often built of several high-level building blocks, like <Navigation>
, <Content>
, <Aside>
and <Footer>
. A typical web page looks roughly like this:
<html>
<head>
class DuplicateDependenciesError extends Error { | |
constructor(duplicateDependencies) { | |
super(); | |
Error.captureStackTrace(this, DuplicateDependenciesError); | |
const messages = duplicateDependencies.map(helpfulErrorMessage); | |
const dedupedMessages = dedupeMessages({})(messages); | |
this.name = "DuplicateDependenciesError"; | |
this.message = "compilation\nDuplicate dependencies found:\n" + dedupedMessages.join("\n"); |
test |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) | |
/******/ return installedModules[moduleId].exports; |
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf
:
var phridge = require('phridge'); | |
var simpleLogScript = require.resolve('./simpleLogScript.js'); | |
var phantomInstances = {}; | |
function spawnPhantom(id) { | |
return phridge.spawn() | |
.then(function (phantom) { | |
phantomInstances[id] = phantom; |
.a { | |
font-family: Arial; | |
font-family: Helvetica; | |
} | |
.b { | |
font-family: Arial; | |
} |
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "Usage: git pr [clean] [<remote>] <id-or-url>" | |
echo "" | |
echo "Examples:" | |
echo "git pr 42 --> git fetch origin pull/42/head:pr/origin/42" | |
echo "git pr upstream 42 --> git fetch upstream pull/42/head:pr/upstream/42" | |
echo "git pr https://github.com/peerigon/phridge/pull/1 --> git fetch https://github.com/peerigon/phridge.git pull/1/head:pr/peerigon/phridge/1" | |
echo "git pr clean --> Deletes all branches that match pr/*/* and pr/*/*/*" |