Skip to content

Instantly share code, notes, and snippets.

Ilya Kantor iliakan

Block or report user

Report or block iliakan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View renderPage.js
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);
}
View router.js
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;
View sponsorBar.js
window.initSponsorBar = function() {
let sponsorBar = document.getElementById('sponsorBar');
if (Math.random() < 0.5) {
initCarbon();
} else {
initCodeFund();
}
View cla.md

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.

View cla.md

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.

View cla.md

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.

View merge
#!/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
View javascriptTutorialCLA.md

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 Jun 29, 2017 — forked from rambabusaravanan/.gitconfig
Git Diff and Merge Tool - IntelliJ
View .gitconfig
# 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]
View manifest.json
{
"manifest_version": 2,
"name": "Slack hide panes",
"version": "1.1",
"description": "Hide Slack Panes.",
"applications": {
"gecko": {
You can’t perform that action at this time.