A Pen by Christian Juth on CodePen.
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
clearStorage = function(exceptions){ | |
var storage = localStorage | |
var keys = []; | |
var exceptions = [].concat(exceptions) //prevent undefined | |
//get storage keys | |
$.each(localStorage, function(key, val) { | |
keys.push(key); | |
}); |
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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery.onscreen.js"></script> | |
<script type="text/javascript" src="index.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div class="pages"> | |
<section id="html5"> |
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
.metadata | |
DETAIL-* | |
reports | |
screenshots |
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
# global vars | |
perfect_number = [] | |
stop = 100 # will find up to this many perfect numbers | |
# (probably will crap out at about four | |
# perfect nubmers due to size of equation) | |
i = 0 | |
until perfect_number.size >= stop | |
# set vars | |
i = i + 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
<html> | |
<head> | |
<title>Todo by Christian Juth</title> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto:900" rel="stylesheet"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | |
<link rel='stylesheet' href='style.css'/> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src='script.js'></script> | |
</head> | |
<body> |
A Pen by Christian Juth on CodePen.
A Pen by Christian Juth on CodePen.
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto:900|Pacifico" rel="stylesheet"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | |
<link rel='stylesheet' href='style.css'/> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src='script.js'></script> | |
</head> | |
<body> |
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
def sort(arr): | |
length = len(arr) | |
if length >= 2: | |
splitIndex = int(length / 2) | |
left = arr[0:splitIndex] | |
right = arr[splitIndex:length] | |
left = sort(left) |
OlderNewer