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
| my $date_range = join('-', map { DateTime->new($_)->yyyymmdd(); } splice(@array_of_args, 2, 2)); | |
| my $date_range = DateTime->new($array_of_args[2])->yyyymmdd() . '-' . DateTime->new($array_of_args[3])->yyyymmdd(); |
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
| window.withAsserts = function() { | |
| var asserts = []; | |
| var args = Array.prototype.slice.call(arguments); | |
| for (var i = 0, len = args.length; i < len; ++i) { | |
| var split = args[i].split(' '); | |
| asserts = asserts.concat(split); | |
| } | |
| for (i = 0, len = asserts.length; i < len; ++i) { | |
| var key = asserts[i]; | |
| if (QUnit.assert[key]) { |
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
| // watch assert | |
| // expression: object reference or function | |
| // values: an array of values | |
| // message: QUnit assert message | |
| // each value in values is compared against expression for | |
| // a frame using requestAnimationFrame | |
| QUnit.extend(QUnit.assert, { | |
| watch: function(expression, values, 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
| <link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
| <link rel="import" href="../paper-input/paper-input.html"> | |
| <link rel="import" href="../google-map/google-map-search.html"> | |
| <link rel="import" href="../google-map/google-map.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { |
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
| <link rel="import" href="../google-map/google-map.html"> | |
| <link rel="import" href="../google-map/google-map-search.html"> | |
| <link rel="import" href="../core-input/core-input.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
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
| Yup. |
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
| def setup(): | |
| global seed | |
| seed = 0 | |
| size(500, 500) | |
| frameRate(4) | |
| colorMode(HSB) | |
| def draw(): |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| stuff: [ | |
| [ 'this', 'is', 'a', 'list' ], | |
| [], | |
| [ 'another', 'static', 'list' ] | |
| ], |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| name: '', | |
| isNamed: function() { | |
| console.log('dirtied isNamed'); | |
| return !!this.get('name'); | |
| }.property('name'), |
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 Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| isShowing: false, | |
| actions: { | |
| toggle: function() { | |
| this.toggleProperty('isShowing'); | |
| }, | |
| emit: function() { | |
| this.sendAction('action'); |
OlderNewer