Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@fearmear
fearmear / mocking-spongebob.js
Last active November 11, 2017 15:15
Mocking Spongebob
'Dont use that weird spongebob mocking meme'.replace(/./g, (letter, index) => index % 2 ? letter : letter.toUpperCase())
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@fearmear
fearmear / angle-between-points.js
Created November 29, 2018 14:43 — forked from conorbuck/angle-between-points.js
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};