Switch to the new grunt CLI
npm uninstall -g grunt
npm install -g grunt-cli
Add the correct grunt version to your package.json
| ro 1 romanian | |
| ru 1 russian | |
| sl 1 slovenian | |
| tr 1 turkish | |
| 1 - Monday is the first day of week. | |
| Week containing Jan 1st is the first week of that year. | |
| https://github.com/timrwood/moment/pull/503 | |
| http://www.pjh2.de/datetime/weeknumber/wnd.php |
| moment.fn.fromTodayCalendarElse = function () { | |
| var isSameDay = +this.clone().startOf('day') === +moment().startOf('day'); | |
| if (isSameDay) { | |
| return this.fromNow(); | |
| } else { | |
| return this.calendar(); | |
| } | |
| } |
| .stylie { | |
| animation-name: stylie-transform-keyframes; | |
| animation-duration: 2000ms; | |
| animation-delay: 0ms; | |
| animation-fill-mode: forwards; | |
| animation-timing-function: linear; | |
| } | |
| @keyframes stylie-transform-keyframes { | |
| 0% {transform:translateX(40px) translateY(519px) rotate(0deg);} | |
| 1% {transform:translateX(40.0722px) translateY(519.039px) rotate(0deg);} |
| <script> | |
| require(["$"], function ($) { | |
| define("jquery", $) | |
| require(["__projectname__/Site"], function (Site) { | |
| try { | |
| Site.initialize(); | |
| } catch (e) { | |
| // log errors | |
| } |
| ul { | |
| width: 100%; | |
| position: relative; | |
| } | |
| li { | |
| position: absolute; | |
| top: 0; | |
| left: 0%; | |
| right: 0%; |
| UI | |
| T - hide/show tools | |
| N - hide/show properties | |
| define([ | |
| "rosy/views/Router", | |
| "mysite/views/Home", | |
| "mysite/views/About", | |
| "mysite/views/Contact" | |
| ], | |
| function (Router, Home, About, Contact) { | |
| var group = new Router({ |
| // used for diffuse, normal, and specular map | |
| string textureName | |
| string reflectionTextureName | |
| vec4 ambientColor | |
| vec4 diffuseColor | |
| float diffuseIntensity | |
| vec4 specularColor |
Switch to the new grunt CLI
npm uninstall -g grunt
npm install -g grunt-cli
Add the correct grunt version to your package.json
| moment.fn.twitter = function () { | |
| var diff = moment().diff(this, 'seconds'); | |
| return diff < 60 ? diff + 's' : | |
| diff < 3600 ? ~~(diff / 60) + 'm' : | |
| diff < 86400 ? ~~(diff / 3600) + 'h' : this.format('D MMM'); | |
| } |