Skip to content

Instantly share code, notes, and snippets.

View jlmakes's full-sized avatar

_ jlmakes

  • Earth, Dimension C-137
View GitHub Profile
@jlmakes
jlmakes / findOutlier.js
Last active February 24, 2020 08:20
JavaScript Quiz and Answer
let answer = runTest();
console.log(answer);
// do not alter the code below this point
function createPoints(randomizedIndex) {
var startY = Math.random() * 100;
var slope = Math.random();
var points = [];
for (var i = 0; i < 10; i++) {
var x = Math.random() * 100;
@jlmakes
jlmakes / sample_endpoint.json
Last active May 26, 2021 03:30
Sample Endpoint (JSON)
[
{
"id": "ak0216o6axoz",
"mag": 1.5,
"place": "80 km ESE of Cantwell, Alaska",
"time": 1621982821844,
"sig": 35,
"magType": "ml",
"type": "earthquake",
"title": "M 1.5 - 80 km ESE of Cantwell, Alaska",
@jlmakes
jlmakes / .clang-format
Created February 24, 2020 07:58
C++ Code Style
# BasedOnStyle: Chromium
# UseTab: Always
# IndentWidth: 4
# TabWidth: 4
# BreakBeforeBraces: Allman
# AllowShortIfStatementsOnASingleLine: false
# IndentCaseLabels: false
# ColumnLimit: 104
# AccessModifierOffset: -4
# AlignAfterOpenBracket: AlwaysBreak