Skip to content

Instantly share code, notes, and snippets.

Sam Chen chenxsan

Block or report user

Report or block chenxsan

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 machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View release_tasks.ex
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 Jul 26, 2016
Hugo highlighting snippet for VSCode
View markdown.json
{
"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 Sep 23, 2015
timeout-transition-group
View Animation.js
/**
* 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 Dec 4, 2014
openSUSE 系统上安装的 flash 包
View 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
View phonegapError2
[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
View phonegapError
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)
You can’t perform that action at this time.