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
| sdf |
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 test = [1,2,3], | |
| copy = test.slice(); |
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
| int N = 1000000; | |
| void main() { | |
| List<int> arr = initArray(); | |
| Stopwatch start = new Stopwatch(); | |
| start.start(); | |
| merge_sort(arr, 0, N); | |
| start.stop(); | |
| print(start.elapsedInMs()); |
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
| int N = 1000000; | |
| void main() { | |
| List<int> arr = initArray(); | |
| Stopwatch start = new Stopwatch(); | |
| start.start(); | |
| arr = mergeSort(arr); | |
| start.stop(); | |
| print(start.elapsedInMs()); |
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 Isolate() {} | |
| init(); | |
| var $$ = {}; | |
| var $ = Isolate.$isolateProperties; | |
| $$.HashMapImplementation = {"": | |
| ["_numberOfDeleted", "_numberOfEntries", "_loadLimit", "_values", "_keys"], | |
| super: "Object", | |
| toString$0: function() { | |
| return $.Maps_mapToString(this); |
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
| #source('Model.dart'); | |
| void main() { | |
| Map<String, Dynamic> m = new Map(); | |
| m['name'] = 'Kevin'; | |
| Model simpleModel = new Model(m); | |
| simpleModel.set('name', 'kevin').set('age', 24).save().save(); | |
| print('done'); | |
| } |
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
| #import('dart:html'); | |
| List<Element> remaining; | |
| int gameInterval = null, position = 0, points = 0; | |
| Element selectedEl = null, pointsTally = null; | |
| void main() { | |
| remaining = new List<Element>(); | |
| TableElement table = createTable(3, 4); |
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 Isolate() {} | |
| init(); | |
| var $$ = {}; | |
| var $ = Isolate.$isolateProperties; | |
| $$.ExceptionImplementation = {"": | |
| ["_msg"], | |
| super: "Object", | |
| toString$0: function() { | |
| var t1 = this._msg; |
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
| <div> | |
| <h2>Weight Chart</h2> | |
| <input type='number' class="input-medium search-query" ng-model='myweight' placeholder='Enter a weight..'/> | |
| <table class='table table-bordered table-striped'> | |
| <thead> | |
| <tr> | |
| <td> | |
| lbs. | |
| </td> | |
| <td ng-repeat='percent in percentages'> |
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 Person = function (name, age) { | |
| this.name = name; | |
| this.age = age; | |
| } | |
| new Person('bob', 22); => {name: 'bob', age: 22} | |
| // or this | |
| var bob = {name: 'bob', age: 22}; |
OlderNewer