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
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 / Animation.js
Created September 23, 2015 08:56
timeout-transition-group
/**
* Adapted from https://github.com/Khan/react-components/blob/master/js/timeout-transition-group.jsx
* with the following additions:
*
* - css modules
* - es6
*
* The CSSTransitionGroup component uses the 'transitionend' event, which
* browsers will not send for any number of reasons, including the
* transitioning node not being painted or in an unfocused tab.
@chenxsan
chenxsan / flash
Created December 4, 2014 15:33
openSUSE 系统上安装的 flash 包
S | Name | Summary | Type
--+-----------------------------------+----------------------------------------------------------+------------
| Adobe Flash Player | Preferences for Adobe Flash Player | application
| FlashPlayer | Flash Standalone Player | application
| btcflash | Firmware flash utility for BTC DRW1008 DVD+/-RW recorder | package
i | chromium-pepper-flash | Chromium Flash player plugin | package
| chromium-pepper-flash | Chromium Flash player plugin | srcpackage
| chromium-pepper-flash-debugsource | Debug sources for package chromium-pepper-flash | package
i | flash-player | Adobe Flash Plugin and Standalone Player | package
| flash-player
[aapt] (skipping file '.jshintrc' due to ANDROID_AAPT_IGNORE pattern '.*')
[aapt] (skipping file '.bower.json' due to ANDROID_AAPT_IGNORE pattern '.*')
[aapt] (skipping file '.directory' due to ANDROID_AAPT_IGNORE pattern '.*')
[aapt] Unable to add '/home/sam/front/redwine/platforms/android/assets/www/bower_components/jquery-mobile/node_modules/grunt-bowercopy/node_modules/bower/node_modules/semver/semver.browser.js.gz': file already in archive (try '-u'?)
[aapt] ERROR: unable to process assets while packaging '/home/sam/front/redwine/platforms/android/ant-build/wine.ap_'
[aapt] ERROR: packaging of '/home/sam/front/redwine/platforms/android/ant-build/wine.ap_' failed
BUILD FAILED
/home/sam/bin/android-sdk-linux/tools/ant/build.xml:932: The following error occurred while executing this line:
/home/sam/bin/android-sdk-linux/tools/ant/build.xml:950: null returned: 1
Error: /home/sam/front/redwine/platforms/android/cordova/run: Command failed with exit code 8
at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)