This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object literal took 54ms | |
JSON.parse took 204ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const drawASCIICircle = radius => { | |
// x^2 + y^2 = radius^2 draws a circle | |
const expectedValue = radius ** 2; | |
// imagine a graph with the centre of a circle right on point (0, 0) | |
for (let y = -radius; y <= radius; y++) { | |
// y first, because we go across before we go down (inner loop runs more often) | |
for (let x = -radius; x <= radius; x++) { | |
const computedValue = x ** 2 + y ** 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close-other-tabs | |
css-declaration-sorter | |
file-icons | |
language-babel | |
language-dotenv | |
language-gitignore | |
minimap | |
minimap-highlight-selected | |
prettier-atom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |