Skip to content

Instantly share code, notes, and snippets.

View egoist's full-sized avatar
🙏
Please support my open-source projects!

EGOIST egoist

🙏
Please support my open-source projects!
View GitHub Profile
We couldn’t find that file to show.
<template>
<div>{{ page.profile.name }}</div>
</template>
<script>
export default {
props: ['page']
}
</script>

You may want to manipulate initial HTML to inject some <link>s or <script>s, you can do this with setHead in saber-browser.js or head component option, but that adds bytes to your app runtime, Saber actually has an API that allows you to customize initial HTML.

Open saber-node.js:

exports.getDocumentData = documentData => {
  documentData.bodyScript += `<script>console.log('Run a script after your app code')</script>`
  return data
}
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w
@egoist
egoist / donate.md
Last active May 25, 2019 06:43
Support My Work
@egoist
egoist / patreon-banner.png
Last active April 8, 2019 16:56
Support my work on Patreon!
patreon-banner.png
@egoist
egoist / cmd.bash
Last active February 22, 2019 07:35
postcss load plugin
npm i -g postcss-cli
postcss in.css -o out.css
<div>hello {name}</div>
<script>
export default {
data() {
return {
name: 'egoist'
}
}
}
@egoist
egoist / quick-sort.js
Last active December 31, 2017 12:15
Sort
function quickSort(list) {
if (list.length < 2) {
return list
}
const candidate = list[list.length - 1]
const less = list.filter(i => i < candidate)
const greater = list.filter(i => i > candidate)
return [