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
| varmerge2dArrayIntoOne2 = function(arrays) { | |
| return arrays.reduce( function(p,n){ | |
| return p.concat(n); | |
| }); | |
| }; |
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 merge2dArrayIntoOne(arrays) { | |
| var count = arrays.length; | |
| var merged = new Array(count); | |
| var c = 0; | |
| for (var i = 0; i < count; ++i) { | |
| for (var j = 0, jlen = arrays[i].length; j < jlen; ++j) { | |
| merged[c++] = arrays[i][j]; | |
| } | |
| } | |
| return merged |
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 obj = { | |
| myFunc6 : function myFunc6() {} | |
| }; | |
| console.log(obj.myFunc6); // function myFunc6() {} |
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 myFunc4 () { | |
| return function myFunc5 () {} | |
| } | |
| console.log(myFunc4()); // function myFunc5 () {} |
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 myFunc1 () { | |
| }; | |
| function myFunc2 (myFunc1) { | |
| console.log(myFunc1); | |
| }; | |
| myFunc2(myFunc1); // function myFunc1() {} |
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 myVar = function myFunc () { | |
| }; | |
| console.log(myVar); // function myFunc() {} |
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
| { | |
| "username": "myusername", | |
| "created_at": "2013-01-01 15:30:27", | |
| "public_id": "aaabbbccc112233", | |
| "reputation": 42, | |
| "hourly_quota": 42, | |
| "backlog": 42, | |
| "stats": { | |
| "today": { | |
| "sent": 42, |
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
| { 'id':'1' } |
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
| <select ng-change="getSelectedItem(selectedItem)" ng-model="selectedItem" ng-options="item.acronyms for item in states"></select> |
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
| h1,h2,h3,h4,h5,h6 { | |
| font-family: 'Verdana'; | |
| color: red; | |
| } |