Skip to content

Instantly share code, notes, and snippets.

@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
View angle-between-points.js
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
View index.html
<!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
View mocking-spongebob.js
'Dont use that weird spongebob mocking meme'.replace(/./g, (letter, index) => index % 2 ? letter : letter.toUpperCase())
View index.html
<!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">