Skip to content

Instantly share code, notes, and snippets.

module.exports = {
env: {
browser: true,
es6: true,
mocha: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
export default async function(pageModule, route) {
const {default: Page} = await import(`../src/pages/${pageModule}`);
const page = new Page(route);
const renderedPage = await page.render();
const contentNode = document.querySelector('#content');
contentNode.innerHTML = '';
contentNode.appendChild(renderedPage);
}
import renderPage from 'utils/renderPage';
export default new class Router {
constructor() {
this.routes = [];
document.addEventListener('click', (event) => {
const link = event.target.closest('a');
if (!link) return;
window.initSponsorBar = function() {
let sponsorBar = document.getElementById('sponsorBar');
if (Math.random() < 0.5) {
initCarbon();
} else {
initCodeFund();
}

Contributor License Agreement

Preface

The intent of the Agreement is to clarify your responsibilities as a Contributor.

In short, it allows us to use your Contributions in the tutorial and further build upon them.

The Agreement is meant to protect You, the Users, the Contributors, and original authors of the Project from the malicious misdeeds of others.

Contributor License Agreement

Preface

The intent of the Agreement is to clarify your responsibilities as a Contributor.

In short, it allows us to use your Contributions in the tutorial and further build upon them.

The Agreement is meant to protect You, the Users, the Contributors, and original authors of the Project from the malicious misdeeds of others.

Contributor License Agreement

Preface

The intent of the Agreement is to clarify your responsibilities as a Contributor.

In short, it allows others to freely use your Contributions and further build on them.

The Agreement is meant to protect You, the Users, the Contributors, and original authors of the Project from the malicious misdeeds of others. The Agreement is not intended to restrict how You use Your own Contributions.

#!/bin/bash
# DEMO: git rebase SKIPS merge commit, COPIES whole all merged branch
# DEMO: git rebase -p copies merge commit D', but IGNORES changes in it
cd ~/project
rm -rf .git
rm my.txt x.txt
git init

Contributor License Agreement

Preface

The intent of the Agreement is to clarify your responsibilities as a Contributor.

In short, it allows others to freely use your Contributions and further build on them.

The Agreement is meant to protect You, the Users, the Contributors, and original authors of the Project from the malicious misdeeds of others. The Agreement is not intended to restrict how You use Your own Contributions.

@iliakan
iliakan / .gitconfig
Created June 29, 2017 21:19 — forked from rambabusaravanan/.gitconfig
Git Diff and Merge Tool - IntelliJ
# Linux
# add the following to "~/.gitconfig" file
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]