View kCantonese.diff
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
diff --git a/JPTableFull.pdf b/kCantonese.txt | |
--- a/JPTableFull.pdf | |
+++ b/kCantonese.txt | |
-U+3439 㐹 kCantonese ngat6 1 | |
-U+3439 㐹 kCantonese at6 2 | |
+U+3439 㐹 kCantonese hei3 | |
-U+3529 㔩 kCantonese ap1 1 | |
-U+3529 㔩 kCantonese ngap1 2 |
View state-machine.js
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
/* | |
Run against HEAD of `next`. | |
The console output will likely make the order of operations clear, it is designed to try and guide you through the behavior. | |
Two issues: | |
- The first invoked promise does not trigger a done event, so the timeout catches and that state node re-enters. | |
- The `assign` for the later state (spawn) is running before an action for the previous state (reset). | |
One curiousity: |
View machine.js
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
(function (xstate, constants) { | |
'use strict'; | |
/** | |
* Leaf state condition generator. | |
* | |
* @param {String} target the target state | |
*/ | |
function matchLeafState(target) { | |
return { |
View machine.js
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
var windowId = 0; | |
function windowManager() { | |
return Machine({ | |
id: 'window-manager', | |
initial: 'idle', | |
type: 'parallel', | |
states: { | |
idle: { |
View controllers.application.js
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
radioValue: 'one', | |
display: Ember.computed('radioValue', function() { | |
return JSON.stringify(this.get('radioValue')); | |
}), | |
actions: { |
View controllers.application.js
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
View controllers.application.js
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
View router.js
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
import Ember from 'ember'; | |
import config from './config/environment'; | |
const Router = Ember.Router.extend({ | |
location: 'none', | |
rootURL: config.rootURL | |
}); | |
Router.map(function() { | |
this.route('products', function() { |
View controllers.list.details.js
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
queryParams: ['something'], | |
filter: null, | |
actions: { | |
reloadList() { | |
this.transitionToRoute('list.details', { queryParams: { filter: 'hello' } }); | |
}, |
View controllers.application.js
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
value: { | |
id: 12, | |
name: 'james' | |
} | |
}); |
NewerOlder