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
/* | |
http://en.wikipedia.org/wiki/Bizz_buzz | |
*/ | |
$count: 100 !default; | |
@mixin fizzbuzz( | |
$count | |
) { | |
@for $i from 1 through $count { |
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
// Uses a port of the Yahoo YUI Compressor | |
// http://yuicompressor.codeplex.com/ | |
using System; | |
using System.IO; | |
using System.Text; | |
using Microsoft.Build.Utilities; | |
using Microsoft.Build.Framework; | |
using Yahoo.Yui.Compressor; | |
using System.Resources; |
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
; (function (window, undefined) { | |
window.events = function (name) { | |
if (typeof name !== 'string') | |
return undefined; | |
name = name.toLowerCase(); | |
if (!(window.events.collection[name] instanceof window.events.event)) | |
window.events.collection[name] = new window.events.event(name); |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
namespace eo { | |
public class Concatenate : Task { |
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 extend = function () { | |
if (arguments.length == 0) | |
return {}; | |
if (arguments.length == 1) | |
return arguments[0]; | |
var nResult = {}; | |
for (var i = 0; i < arguments.length; i++) { |
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 horizontalHexagonPoints = function (canvas, radius) { | |
var size = { | |
width: radius * 2, | |
height: (radius / 2 * Math.sqrt(3)) * 2 | |
}; | |
var rows = Math.ceil(canvas.height / size.height) + 1; | |
var columns = Math.ceil(canvas.width / (radius / 2 * 3)) + 1; |
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
{"feed":{"author":{"name":{"label":"iTunes Store"}, "uri":{"label":"http://www.apple.com/itunes/"}}, "entry":[ | |
{"im:name":{"label":"Inside Out (2015)"}, "im:image":[ | |
{"label":"http://is4.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/60x60bb-85.jpg", "attributes":{"height":"60"}}, | |
{"label":"http://is4.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/60x60bb-85.jpg", "attributes":{"height":"60"}}, | |
{"label":"http://is5.mzstatic.com/image/thumb/Video69/v4/f8/f4/16/f8f41613-6e2f-6ea3-2125-8eb02d5c029a/pr_source.lsr/170x170bb-85.jpg", "attributes":{"height":"170"}}], "summary":{"label":"Growing up can be a bumpy road, and it's no exception for Riley, who is uprooted from her Midwest life when her father starts a new job in San Francisco. Like all of us, Riley is guided by her emotions – Joy (Amy Poehler), Fear (Bill Hader), Anger (Lewis Black), Disgust (Mindy Kaling) and Sadness (Phyllis Smith). The emotions live in H |
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
<div class="input-group"> | |
<span class="input-group-addon">Label Name</span> | |
<div class="dropdown input-group" id="DropDownId"> | |
<ul class="dropdown-menu" style="width:100%"> | |
<li><a href="#">Action</a></li> | |
<li><a href="#">Another action</a></li> | |
<li><a href="#">Something else here</a></li> | |
<li role="separator" class="divider"></li> | |
<li><a href="#">Separated link</a></li> | |
</ul> |
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
if (!String.prototype.format) { | |
String.prototype.format = function () { | |
var n = this; | |
for (var i = 0; i < arguments.length; i++) { | |
var e = new RegExp('\\{' + (i) + '\\}', 'gm'); | |
n = n.replace(e, arguments[i]); | |
} | |
return n; | |
} | |
} |
OlderNewer