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
/* Default for all browsers */ | |
.fancyDiv { | |
width: 50px; | |
} | |
/*This will work for firefox*/ | |
@-moz-document url-prefix() { | |
.fancyDiv { | |
width: 55px; | |
} |
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 lt IE 7 ]> <html class="ie ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]--> | |
<head> | |
<style> | |
/* this is for all browsers*/ | |
div.foo { | |
color: red; |
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 $jq = jQuery.noConflict(); //from here i can use $jq instead of $ to access jQuery functions | |
$jq(function() { | |
$jq('#list').each( .... ); | |
}); |
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
/* For modern browsers */ | |
.cf:before, .cf:after { | |
content:""; | |
display:table; | |
} | |
.cf:after { | |
clear:both; | |
} |
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
// This code co-ordinates tabs from the same domain to elect one of them as a | |
// "master", and allow them to broadcast messages to each other. | |
function WindowController () { | |
var now = Date.now(), | |
ping = 0; | |
try { | |
ping = +localStorage.getItem( 'ping' ) || 0; | |
} catch ( error ) {} | |
if ( now - ping > 45000 ) { | |
this.becomeMaster(); |
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
/* | |
/ \ | |
/ _ \ | |
| / \ | | |
|| || _______ | |
|| || |\ \ | |
|| || ||\ \ | |
|| || || \ | | |
|| || || \__/ | |
|| || || || |
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
// Karma configuration | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '', | |
preprocessors: { | |
'app/scripts/**/*.js': 'coverage' | |
}, |
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="container"> | |
<div class="hero-unit"> | |
<h1>Bootstrap jsFiddle Skeleton</h1> | |
<p>Fork this fiddle to test your Bootstrap stuff.</p> | |
<p> | |
<a class="btn btn-primary btn-large" href="http://twitter.github.com/bootstrap/index.html" target="_blank"> | |
Learn more about Bootstrap | |
</a> | |
</p> | |
</div> |
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
/* | |
Example usage: | |
import logger from "app/system/logger"; | |
var LOG = logger.loggerFor("topic"'); | |
LOG.log({ | |
event: "data received", | |
secondary: { | |
resource: "photo", |
OlderNewer