Skip to content

Instantly share code, notes, and snippets.

View chenxsan's full-sized avatar

Sam Chen chenxsan

View GitHub Profile
@chenxsan
chenxsan / machine.js
Created January 4, 2020 08:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@chenxsan
chenxsan / machine.js
Last active November 28, 2019 14:05
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@chenxsan
chenxsan / machine.js
Last active November 6, 2019 14:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@chenxsan
chenxsan / machine.js
Last active November 6, 2019 12:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
sam@Sam ~ (master*) % fcitx
(WARN-2570 /build/buildd/fcitx-4.2.6/src/lib/fcitx-config/fcitx-config.c:1158) Option DefaultInputMethodState is Invalid, Use Default Value Inactive
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-unicode.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-spell.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-autoeng.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-googlepinyin.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-xkb.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-pinyin.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146) Load Addon Config File:fcitx-xkbdbus.conf
(INFO-2572 /build/buildd/fcitx-4.2.6/src/lib/fcitx/addon.c:146
@chenxsan
chenxsan / Gruntfile.js
Last active March 16, 2017 10:19
Web 开发使用的 Gruntfile.js 样板文件
/*********************
说明:文件结构基于 HTML5Boilerplate:
+ index.html
- css
+ main.css
- js
- vendor
defmodule Wolf.ReleaseTasks do
@moduledoc ~S"""
Mix is not available in a built release. Instead we define the tasks here,
and invoke it using the application script generated in the release:
bin/wolf command Elixir.Wolf.ReleaseTasks create
bin/wolf command Elixir.Wolf.ReleaseTasks migrate
bin/wolf command Elixir.Wolf.ReleaseTasks seed
bin/wolf command Elixir.Wolf.ReleaseTasks drop
"""
@chenxsan
chenxsan / markdown.json
Last active July 26, 2016 06:26
Hugo highlighting snippet for VSCode
{
"Insert highlighting block": {
"prefix": "highlight",
"body": [
"{{< highlight ${language: Enter the language type} >}}",
"\t${code: Enter code}",
"{{< /highlight >}}"
],
"description": "Hugo highlighting block"
}
@chenxsan
chenxsan / personByGrunt.js
Created January 10, 2014 13:45
Grunt 自动编译的 Handlebars.js 模板
this["JST"]["js/person.handlebars"] = Handlebars.template(function (Handlebars, depth0, helpers, partials, data) {
this.compilerInfo = [4, '>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers);
data = data || {};
var buffer = "",
stack1, functionType = "function",
escapeExpression = this.escapeExpression;
buffer += "<table>\n <tr>\n <td>This is ";
@chenxsan
chenxsan / person.js
Created January 10, 2014 12:44
Handlebars.js 预编译的结果
(function () {
var template = Handlebars.template,
templates = Handlebars.templates = Handlebars.templates || {};
templates['person'] = template(function (Handlebars, depth0, helpers, partials, data) {
this.compilerInfo = [4, '>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers);
data = data || {};
var buffer = "",
stack1, helper, functionType = "function",
escapeExpression = this.escapeExpression;