This file contains 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
// 1) Write a loop that prints out 1 - 50 | |
// 2) Now I want the same output but without a loop | |
// 3) Now if current number if a multiple of 3, print 'Fizz' instead of the number | |
// If it is a multiple of 5 print 'Buzz' instead of the number | |
// If it is a multiple of 3 and 5, print 'FizzBuzz' instead of the number | |
**All variable names and location of their definitions matter |
This file contains 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
Death is nothing at all | |
I have only slipped away into the next room | |
I am I and you are you | |
Whatever we were to each other | |
That we are still |
This file contains 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(['jquery', 'utils'], function($, utils) { | |
$.widget( 'cbsi.videoResize', { | |
options: { | |
maxwidth: 480 | |
}, | |
_create: function() { | |
This file contains 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(['jquery', 'pkg.utils', 'plugins/widget'], function($, utils) { | |
$.widget("cbsi.filterMenu", $.cbsi.widget, { | |
/* | |
TERMS: | |
Avtive State - Buttons highlighted, select window open. | |
Inactive State - Buttons contain default styles, select window hidden, | |
Selected - Item highlighted, event triggered to update feed |
This file contains 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(['jquery', 'pkg.utils', 'plugins/widget'], function($, utils) { | |
$.widget("cbsi.mediaResize", $.cbsi.widget, { | |
options: { | |
mediaObjects: null; | |
}, | |
//VARS | |
hasEvents: false, //Events have been added |
This file contains 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(['jquery', 'pkg.utils', 'plugins/widget'], function($, utils) { | |
/** | |
* Finds and resizes media elements in a document | |
* @param {array} mediaObjects | |
* @this - Block level element with child text nodes | |
* @extends cbsi.widget | |
* | |
* Examples: | |
* |
This file contains 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
<!-- The Markup --> | |
<div class="container"> | |
<a href="" class="leaderboard-story"> | |
<div></div> | |
<div></div> | |
</a> | |
<a href="" class="leaderboard-story"> | |
<div></div> | |
<div></div> | |
</a> |
This file contains 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
.content-header { | |
&.content-header-title { | |
padding: $spacing-block-base 0 ($spacing-block-base * 2) 0; | |
border-bottom: 1px solid $color-border; | |
margin-bottom: 30px; | |
font-size: ($font-size-base * 3.25); | |
.h { | |
margin-bottom: 0; | |
color: $gray-light; |
This file contains 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
$.extend(MyClass.prototype, {method: function() { | |
var i = 0, | |
stacey = hair, | |
crazy = hair.length; | |
for(;1<=crazy;1++) { | |
console.log("Let's face it, this is an infinite loop"); | |
} | |
}}); |
This file contains 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 Promise = function() { | |
var response = null, | |
successCallback = null; | |
return { | |
resolve: function(value) { | |
response = value; | |
if(successCallback) { |
OlderNewer