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
@mixin opacity($opacity) { | |
// @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 { | |
// -ms-filter: unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})"); | |
//} | |
filter: alpha(opacity= round($opacity * 100)); /* internet explorer */ | |
opacity: $opacity; /* fx, safari, opera, chrome */ | |
-ms-filter: unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})"); | |
//-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; /*IE8*/ | |
} |
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
require.config({ | |
paths : { | |
"$" : "//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min", | |
"mout" : "libs/mout" | |
}, | |
waitSeconds : 15, | |
}); |
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 pretty_number(num, opts) | |
{ | |
var defaultOpts = { | |
short: true, | |
lowerCase: false, | |
addCommas: true, | |
round: 2 | |
}; | |
if (typeof num != "number") |
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
@function em($target, $context: $base-font-size) { | |
@if $target == 0 { @return 0 } | |
@return $target / $context + 0em; | |
} | |
$base-font-size: 15px; | |
h1 { | |
font-size: em(21px, 15px); // Outputs 1.4em | |
} |
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 flashVars:Object = root.loaderInfo.parameters; | |
var params:String = ""; | |
var count:Number = 0; | |
for each (var value:String in flashVars) { | |
if(count==0){ | |
params += value + "=" + flashVars[value]; | |
} else { | |
params += "&" + value + "=" + flashVars[value]; | |
} |
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
createPie : function (game, w, h) { | |
console.log("create pie", w, h, this); | |
var mask = game.add.bitmapData(w, w), | |
bmd = game.add.bitmapData(w, w), | |
canvas = bmd.canvas, | |
context = bmd.ctx, | |
size = 270, | |
degreesToRadians = function (degrees) { | |
return (degrees * Math.PI) / 180; | |
}; |
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
<h4>Three up</h4> | |
<div class="three-up-class"> | |
<div>1</div> | |
<div>2</div> | |
<div>3</div> | |
</div> | |
<h4>using mixin</h4> | |
<div class="three-up-mixin"> | |
<div>1</div> |
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
<div> | |
<div class="col">This is some content</div> | |
<div class="other-col">This is some more content</div> | |
</div> |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$icon-names : (twitter '\e001') (github '\e002'); | |
%ico-font-base { | |
font-family: "ico-font"; | |
speak: none; |