Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function () {
$("#diceroller").submit(function(){
event.preventDefault();
diceroll = Math.floor(Math.random() * 6) + 1;
console.log(diceroll);
// var form_data = $("#diceroller").serialize();
var form_data = {"value": diceroll};
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
@tararoys
tararoys / zoo.js
Last active December 27, 2015 16:49 — forked from dbc-challenges/zoo.js
// Strategy for solving this one:
// 1. Run the code in node console
// 2. Read the error
// 3. Fix the error
// 4.
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
@tararoys
tararoys / index.html
Last active December 27, 2015 16:49 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@tararoys
tararoys / collatz_conjecture_pattern.md
Last active July 12, 2017 15:09
Collatz Conjecture pattern

I have noticed a really interesting pattern in the Collatz conjecture. It looks to me like a fractal. This is a call for help: I want to know which mathematicians have also noticed this pattern and have written about it. I have tried to research this, and I have not found any resources written on a level that an artist like me can understand. In fact, I've found a grand total of two resources, period, besides my notes.

The only two mentions I found of this pattern in the collatz conjecture were in the encyclopedia of integer sequences. Apparently Labos Elemer noticed something similar, as did lambert Klasen. I have not been able to find any other references to it, mostly because I don't speak High Mathematicalese.

First, let me tell you the pattern.

Start with the number one.

1

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
@tararoys
tararoys / index.html
Created February 6, 2014 16:55 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@tararoys
tararoys / 0_reuse_code.js
Created February 9, 2014 22:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console