Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src = "jquery-1.9.1.min.js"></script>
<body>
<script>
$(document).ready( function() {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src = "jquery-1.9.1.min.js"></script>
<body>
<h1>/r/ketogains Macro Calculator</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src = "jquery-1.9.1.min.js"></script>
<body>
<h1>/r/ketogains Macro Calculator</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src = "jquery-1.9.1.min.js"></script>
<script src = "ketogains.js"></script>
<body>
<script type="text/javascript">
$(document).ready( function(){
$(".go").click(function(){
for (var i = 0;i<$(".times").val();i++) {
$(".bingbot").reload();
}
})
})
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Input Box Test</title>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
</head>
<script type="application/javascript">
$(document).ready( function() {
var search = $.ajax({
url:'http://search.twitter.com/search.json?q=dongs',
dataType: 'jsonp',
success: function(data) {
for (i=0;i<data.results.length;i++) {
$(".tweets").append("<li>"+data.results[i].from_user+": "+data.results[i].text+"</li>")
}
console.log(data);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://chatbuilder.hackreactor.com/ChatBuilder.js"></script>
</head>
<body>
<script>
function reduce(ary, fn, result) {
for (var i=0; i<ary.length; i++) {
fn(result,ary[i]);
result+=ary[i]+"!";
}
return result;
}
reduce(["A", "B", "C"], function(memo, num){ return memo + num; }, "");
var alpha = ["A", "b", "c", "d", "E", "f", "g", "h", "I", "j", "k", "l", "m", "n", "O", "p", "q", "r", "s", "t", "U", "v", "w", "x", "y", "z", "A"];
var str = "this is a new string of crap";
var LetterChange = function(str) {
var newStr = str.split("");
for (var i = 0;i<newStr.length;i++) {
var j = 0;
if (newStr[i] == alpha[j]) {
newStr[i] = alpha[j+1]