This file contains hidden or 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
| process.on('message', function (message) { | |
| setImmediate(function() { | |
| console.log(message.message); | |
| }); | |
| }); |
This file contains hidden or 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
| App.IsodateTransform = DS.Transform.extend({ | |
| deserialize: function (serialized) { | |
| if (serialized) { | |
| return moment(serialized).toDate(); | |
| } | |
| return serialized; | |
| }, | |
| serialize: function (deserialized) { | |
| if (deserialized) { |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| def gradleAndroidAnnotationsPluginVersion = '0.3.0' | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.6.+' |
This file contains hidden or 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 data = tableview.data[0].rows; // Gets the first section from tableview. | |
| // If you have more than one sections, you need to sort each individually | |
| // or modify the sort function accordingly. | |
| sort(data); | |
| tableview.setData(data); |
This file contains hidden or 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 that sorts the data using myComparator. | |
| */ | |
| function sort(data) { | |
| data.sort(myComparator); | |
| } | |
| /** | |
| * Comparator that defines order based on myValue in objects. | |
| * @returns 1, -1, 0 denoting value in thisObject is greater than, less than or equal to value in thatObject |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-latest.js"></script> | |
| <script type="text/javascript"> | |
| $("divClass").live("click", function () { | |
| <!-- | |
| your definition --> | |
| }); | |
| </script> | |
| </head> |