Skip to content

Instantly share code, notes, and snippets.

View mobeets's full-sized avatar

Jay H mobeets

View GitHub Profile
@mobeets
mobeets / README.md
Last active December 28, 2015 11:19
A list of objects that, when broken, still function.

A list of objects that, when broken, still function.

Things that, when broken, are the same only shorter/smaller:

  • pencil => shorter pencil
  • stick => shorter stick
  • ruler => shorter ruler
  • rock => smaller rocks

Things that, when broken, become insulated boxes:

  • oven => insulated box
@mobeets
mobeets / index.html
Last active December 28, 2015 08:49
Alen Galey's Animated Variants
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Animated Variants v.1.1</title>
<script src="styles.css"></script>
<script src="readings.js"></script>
</head>
<body onload="getReadings()">
<sp>
@mobeets
mobeets / dance.js
Last active December 27, 2015 23:19
Render words in two single-quotes with a GIF-like shadow dance.
$(document).ready(function(){
var isNotDancing = true;
function makeItDance() {
$(".quoted").animate({ top: "0%"}, 300, 'linear', function() {
$(this).css("top", "0%"); // dummy animation...i.e. shameless hack
if (isNotDancing){
$('.quoted').addClass("dancing");
isNotDancing = false;
}
else {
@mobeets
mobeets / README.md
Created October 25, 2013 20:57
processing-js examples

Examples using processing-js.

@mobeets
mobeets / README.md
Last active December 26, 2015 13:49
3D stars using paper.js

3D stars using paper.js

Up, down, left and right keys control the centroid. Mouse location with respect to center of screen controls rotation.

Don't lose the red star!

@mobeets
mobeets / README.md
Last active December 26, 2015 03:29
English rarities

The following words have unique character repeat patterns. More here.

aa

geggee

deedeed

anapanapa

@mobeets
mobeets / README.md
Last active December 26, 2015 03:19
Popular character repeat patterns

The above 13 character repeat patterns account for 50% of English words (117893 of 235786 words, using nltk's corpus.words).

@mobeets
mobeets / README.md
Created October 21, 2013 14:27
markdown table

Table

n P(n)
1 1
2 2
3 3
4 5
5 7
6 11
@mobeets
mobeets / README.md
Last active December 26, 2015 01:29
Character repeat patterns

Character repeat patterns

The word "apple" has the letter "p" used twice, and three other letters each used once. Its character repeat pattern is written as "AABCD".

The data above counts the number of occurrences of all character repeat patterns in English words. (Word source is nltk's corpus "corpus.word".)

More information can be found here.

Examples

@mobeets
mobeets / ferguson.md
Last active August 29, 2015 14:12
questions to ask next time someone makes definitive or latently racist comments about Ferguson

The following questions can be asked of people (e.g., family members) who somehow manage to form simple opinions about very complex events.

Q1. Where have you learned about the event? First-hand? Or second-hand, through the media?

Q2. Have you ever sought out news about the event?

For example, have you ever had a question about the event and then sought an answer yourself, or do you learn about it as presented via friends and/or the media?

Q3. Have you tried your best to consider the perspective of both sides involved? If so, is there a benefit to you personally in arriving at a definitive opinion?