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
define([ | |
"rosy/views/Router", | |
"mysite/views/Home", | |
"mysite/views/About", | |
"mysite/views/Contact" | |
], | |
function (Router, Home, About, Contact) { | |
var group = new Router({ |
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
UI | |
T - hide/show tools | |
N - hide/show properties | |
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
ul { | |
width: 100%; | |
position: relative; | |
} | |
li { | |
position: absolute; | |
top: 0; | |
left: 0%; | |
right: 0%; |
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
<script> | |
require(["$"], function ($) { | |
define("jquery", $) | |
require(["__projectname__/Site"], function (Site) { | |
try { | |
Site.initialize(); | |
} catch (e) { | |
// log errors | |
} |
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
.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);} |
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.fn.fromTodayCalendarElse = function () { | |
var isSameDay = +this.clone().startOf('day') === +moment().startOf('day'); | |
if (isSameDay) { | |
return this.fromNow(); | |
} else { | |
return this.calendar(); | |
} | |
} |
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
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 |
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 changeArgs (args) { | |
args[0] = 'hello'; | |
args[1] = "is it me you're looking"; | |
args[2] = 4; | |
} | |
function lionel(a, b, c) { | |
console.log(a, b, c); | |
changeArgs(arguments); | |
console.log(a, b, c); |
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:void(window.open("","dp_debugger","width=600,height=600,location=0,menubar=0, status=1,toolbar=0,resizable=1,scrollbars=1").document.write("<script id=dbg src='http://www.digitalpulse.omniture.com/dp/debugger.js'></script>")); |
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(){ | |
"use strict"; | |
var a = { | |
super : "super", | |
static : "static" | |
} | |
var b = { | |
"super" : "super", | |
"static" : "static" |