| manager | dist | manifest | export | ignore | include | entry |
|---|---|---|---|---|---|---|
| npm | npm | package.json | cjs | .npmignore | #main | |
| bower | git | bower.json | umd | #ignore | #main | |
| component | git | component.json | umd | #files | #main | |
| spm | git | package.json#spm | umd | .spmignore | #output | #main |
| packagist | git | composer.json | umd | |||
| ender | npm | package.json | cjs | .npmignore | #ender | |
| dojo | ??? | package.json#dojoBuild | umd | #dojoBuild | ||
| jspm | npm/git | package.json#jspm | any | #ignore | #files | #main |
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 (root, factory) { | |
| "use strict"; | |
| if (typeof define === 'function' && define.amd) { | |
| define(['moment'], factory); | |
| } else if (typeof exports === 'object') { | |
| module.exports = factory(require('moment')); | |
| } else { | |
| factory(root.moment); | |
| } | |
| }(this, function (moment) { |
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 momento = moment(556095600000); // 1987-08-16T07:00:00.000Z | |
| var day = momento.date(); // 16 | |
| var month = momento.month() + 1; // 8 | |
| var year = momento.year(); // 1987 | |
| var timeperiods = { | |
| year : moment(year, "YYYY").toISOString(), // 1987-01-01T08:00:00.000Z | |
| month : moment(month + "-" + year, "MM-YYYY").toISOString(), // 1987-08-01T07:00:00.000Z | |
| day : moment(day + "-" + month + "-" + year, "DD-MM-YYYY").toISOString() // 1987-08-16T07:00:00.000Z | |
| } |
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
| moment.tz.add( | |
| { | |
| "links": { | |
| "Africa/Asmera": "Africa/Asmara", | |
| "Africa/Timbuktu": "Africa/Bamako", | |
| "America/Argentina/ComodRivadavia": "America/Argentina/Catamarca", | |
| "America/Atka": "America/Adak", | |
| "America/Buenos_Aires": "America/Argentina/Buenos_Aires", | |
| "America/Catamarca": "America/Argentina/Catamarca", | |
| "America/Coral_Harbour": "America/Atikokan", |
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
| javascript:!function(){var h=location.href,y=h.match(/(youtu.be\/|v\/|u\/\w\/|embed\/|v=)([^#\&\? ]*).*/),v=h.match(/(vimeo.com\/)([^#\&\? ]*)/);y=y&&'http://www.youtube.com/watch_popup/?v='+y[2];v=v&&'http://player.vimeo.com/video/'+v[2];window.open(y||v,"_blank","height=345,width=560");}() |
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
| test('Testing a component', function () { | |
| var component = App.ExampleButtonComponent.create({ | |
| layoutName : 'components/example-button' | |
| }); | |
| Ember.run(function () { | |
| component.append(); | |
| }); | |
| equal(component.$('.is-not-enabled').length, 1, 'Should show the .is-not-enabled element'); |
Update red-django and red-static.
$ npm update -g generator-red-static generator-red-djangoOr, install them if you hadn't done so yet.
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
| alias fact="elinks -dump randomfunfacts.com | grep '|' -B 2 -A 2" | |
| alias p='fact && git pull --rebase' | |
| alias up='fact && git push' |