Skip to content

Instantly share code, notes, and snippets.

@dlaxar
Created December 11, 2012 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlaxar/4258275 to your computer and use it in GitHub Desktop.
Save dlaxar/4258275 to your computer and use it in GitHub Desktop.
MPCA #4
<html>
<head>
<title>U1</title>
</head>
<script type="text/javascript" src="http://resources.dev/js/jquery.js"></script>
<script type="text/javascript">
$(function () {
console.log('Page loaded!');
})
</script>
<body>
<h1>Große Seite!</h1>
</body>
</html>
<html>
<head>
<title>U2</title>
</head>
<style>
div {
width: 200px;
height: 200px;
background-color: #F00;
-webkit-transition: all 1s ease-in-out;
}
div.rot:hover {
-webkit-transform: rotate(30deg);
}
</style>
<body>
<div class="rot"></div>
</body>
</html>
Siehe
http://browserapi.pingdom.com/api/0.1/test/NEh3RRvVt/har
für vollständiges HAR
onContentLoad: 1822ms
onLoad: 2027ms
function fact(number) {
var a = [];
var n = 2;
while (number > 1) {
n = lowestCommonDenominator(number, n);
a.push(n);
number /= n;
}
return a;
}
function lowestCommonDenominator(number, start) {
for(var n = start; n < Math.sqrt(number); n++) {
if(number % n == 0) return n;
}
return number;
}
var factoriced = fact(10794038595244184743897640604047273212338592443011125261647333927491279382463459962401510737486463181757233408527736652779887235399414643747548616109120730766944444451125496921863604222979415279889571);
console.log(factoriced.slice(factoriced.length-2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment