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 tooling-future.bash
tooling react build
# resolve tooling-react
tooling build
# resolve tooling/lib/build
tooling dev
# resolve tooling/lib/dev
View adonuxt.sao.js
module.exports = {
template: 'handlebars',
templateOptions: {
helpers: {
raw: function(options) {
return options.fn(this)
}
}
},
prompts: {
View sadoc.md

a server for serving docs

./source/a.md ./source/b.md

./page/a

or use next.js

View styled-html.js
const color = 'red'
const App = styled.div`{
color: ${color};
}`
App.innerHTML = 'hello world'
document.body.appendChild(App)
View elx.js
import Elx, {h} from 'elx'
class Button extends Elx {
state = {
count: 0
}
increment = () => {
this.set('count', this.state.count + 1)
}
View router.js
import routerga from 'vue-router-ga'
const router = new Router()
routerga(router, 'UA-XXXXX-Y')
@egoist
egoist / mini-yaml.md
Last active Dec 14, 2016
The minimal YAML alternative markup language
View mini-yaml.md
title: Hello
space: "with space"
array:
 - foo
 - bar
obj:
  foo:
    bar: 123
View docute-example.html
<div id="#app"></div>
<script src="/path/to/docute.js"></script>
<script>
docute.data.toc
/*
[
{title: 'head title', children: []}
]
*/
View tasco-new.js
import task from 'tasco'
task('foo', t => {
t.input('./src/index.js')
.pipe(babel())
.pipe(t.output('./dist'))
})
View markdown-to-page.md

Given markdown:

# Vue 2.0

## Quick Start

### Install
You can’t perform that action at this time.