Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

EGOIST egoist

🏠
Working from home
Block or report user

Report or block egoist

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 Manipulating initial HTML in Saber.md

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
}
View gist:0ca26196173437df5b789c75152162ff
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w
View App.html
<div>hello {name}</div>
<script>
export default {
data() {
return {
name: 'egoist'
}
}
}
@egoist
egoist / cmd.bash
Last active Feb 22, 2019
postcss load plugin
View cmd.bash
npm i -g postcss-cli
postcss in.css -o out.css
@egoist
egoist / vbuild-6-to-7.md
Last active Apr 16, 2017
Migrate vbuild 6 to 7
View vbuild-6-to-7.md

CLI

- vbuild --dev
+ vbuild dev

- vbuild --watch
+ vbuild watch
View shadow-text-left.css
-1px 1px 0 #CFD1D3, -2px 2px 0 #CFD1D3, -3px 3px 0 #CFD1D3, -4px 4px 0 #CFD1D3, -5px 5px 0 #CFD1D3, -6px 6px 0 #CFD1D3, -7px 7px 0 #CFD1D3, -8px 8px 0 #CFD1D3, -9px 9px 0 #CFD1D3, -10px 10px 0 #CFD1D3, -11px 11px 0 #CFD1D3, -12px 12px 0 #CFD1D3, -13px 13px 0 #CFD1D3, -14px 14px 0 #CFD1D3, -15px 15px 0 #CFD1D3, -16px 16px 0 #CFD1D3, -17px 17px 0 #CFD1D3, -18px 18px 0 #CFD1D3, -19px 19px 0 #CFD1D3, -20px 20px 0 #CFD1D3, -21px 21px 0 #CFD1D3, -22px 22px 0 #CFD1D3, -23px 23px 0 #CFD1D3, -24px 24px 0 #CFD1D3, -25px 25px 0 #CFD1D3, -26px 26px 0 #CFD1D3, -27px 27px 0 #CFD1D3, -28px 28px 0 #CFD1D3, -29px 29px 0 #CFD1D3, -30px 30px 0 #CFD1D3, -31px 31px 0 #CFD1D3, -32px 32px 0 #CFD1D3, -33px 33px 0 #CFD1D3, -34px 34px 0 #CFD1D3, -35px 35px 0 #CFD1D3, -36px 36px 0 #CFD1D3, -37px 37px 0 #CFD1D3, -38px 38px 0 #CFD1D3, -39px 39px 0 #CFD1D3, -40px 40px 0 #CFD1D3, -41px 41px 0 #CFD1D3, -42px 42px 0 #CFD1D3, -43px 43px 0 #CFD1D3, -44px 44px 0 #CFD1D3, -45px 45px 0 #CFD1D3, -46px 46px 0 #CFD1D3, -47px 47px 0 #CFD1D3, -48px 48
View keypoint.md

[slide]

hello world

const a = 1
let a = 1
var a = 1
@egoist
egoist / config.js
Last active Mar 18, 2017
docute post
View config.js
docute.init({
nav: [{
path: '/get-started',
markdown: '**click** <button @click="count++">{{count}}</button>',
component: {
data: () => ({count: 0})
}
}]
})
You can’t perform that action at this time.