Skip to content

Instantly share code, notes, and snippets.

<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>
# 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
@christianjuth
christianjuth / .gitignore
Last active August 29, 2015 14:19
Monkeytalk .gitignore
.metadata
DETAIL-*
reports
screenshots
@christianjuth
christianjuth / index.html
Last active August 29, 2015 14:19
Simple HTML section separated content
<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">
@christianjuth
christianjuth / clearStorage.js
Created April 4, 2015 19:09
localStorage clear function with exceptions
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);
});