This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stateMachine = Machine({ | |
id: 'toggle', | |
context: { | |
test:"test data" | |
/* some data */ | |
}, | |
initial: 'QuoteBasic', | |
states: { | |
QuoteBasic: { | |
on: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lightMachine = Machine({ | |
id: 'light', | |
initial: 'green', | |
states: { | |
green: { | |
on: { | |
TIMER: 'yellow' | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
@Option int = 1, --排序 | |
@PageNum INT = 2, --頁次 | |
@PageSize INT = 5, --每頁筆數 | |
@TotalRows INT; --總筆數 | |
select FormKind, | |
FillInEmpNum, | |
TotalRows = COUNT(*) OVER() from FormMaster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
Func<string, string> f1 = x => x.Replace("*", string.Empty); | |
Func<string, string> f2 = x => x.Replace("--", string.Empty); | |
Func<string, string> f3 = x => x.ToUpper(); | |
//Func<string, string> pipeline = x => f3(f2(f1(x))); | |
Func<string, string> pipeline = Pipeline(f1, f2, f3); | |
pipeline.Invoke("te-*-st").Dump(); // prints "TEST" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const VueLoaderPlugin = require('vue-loader/lib/plugin'); | |
module.exports = { | |
mode:'development', | |
entry:'./src/index.js', | |
devtool:'inline-source-map', | |
devServer: { | |
contentBase: './dist' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack", | |
"watch": "webpack --watch", | |
"start": "webpack-dev-server --open" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
module.exports = { | |
mode:'development', | |
entry:'./src/index.js', | |
output:{ | |
filename:'main.js', | |
path:path.resolve(__dirname,'dist') | |
}, | |
devtool:'inline-source-map', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack", | |
"watch": "webpack --watch", | |
"start": "webpack-dev-server --open" |
NewerOlder