Fetch all branches
git fetch --all
List all branches
git branch -a
Check out the new branch
git checkout my-new-branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'google-analytics': { | |
id: async () => { | |
// Meanwhile this https://github.com/nuxt-community/analytics-module/issues/27 | |
const results = await fetch('/api/settings'); | |
if (results.ok) { | |
const settings = await results.json(); | |
return settings.gaKey | |
} | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0", | |
"settings": { | |
"landColor": "hsl($$, 38%, 87%)" | |
}, | |
"elements": { | |
"mapElement": { | |
"labelColor": "hsl($$, 6%, 51%)", | |
"labelOutlineColor": "hsl($$, 54%, 91%)" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { injectable } from 'inversify'; | |
import { IMapService } from './imap.service'; | |
import { Category } from '~/services/categories'; | |
import { Tip } from '~/services/tips'; | |
@injectable() | |
export class MapService implements IMapService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var report = require('vfile-reporter') | |
var unified = require('unified') | |
var parse = require('rehype-parse') | |
var stringify = require('rehype-stringify') | |
const _html = `<!doctype html> | |
<title class="a" class="b">Hello…</title> | |
<h1/>World!</h1>` | |
unified() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// try it out i runkit: https://npm.runkit.com/syntax-tree | |
var rehype = require('rehype') | |
var visit = require('unist-util-visit') | |
const _html = `<!doctype html> | |
<title class="a" class="b">Hello…</title> | |
<h1>World!</h1>` | |
var tree = rehype().parse(_html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function memoize (fn) { | |
const memo = [0,1]; | |
return function recur (n) { | |
if (memo[n]) return memo[n] | |
else memo[n] = fn(n) | |
return memo[n] | |
} | |
} | |
function fib (n) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Watch test", | |
"runtimeExecutable": "npm", | |
"windows": { | |
"runtimeExecutable": "npm.cmd" |