This file contains hidden or 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
// Results | |
const results = { | |
averageMs: '16.882', | |
minMs: '9.618', | |
maxMs: '181.037', | |
stdDevMs: '11.790', | |
totalRuns: 1000 | |
}; | |
// test-client.js |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-07/hyper-schema#", | |
"type": "object", | |
"definitions": { | |
"user": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-07/hyper-schema#", | |
"title": "API Example", | |
"definitions": { | |
"User": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"description": "Unique identifier for the user" |
This file contains hidden or 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
-- This example shows how to integrate Bufferline with Harpoon | |
-- The goal is to get bufferline to show only the files marked by harpoon, with the correct number | |
-- I use <C-w>{1..N} to navigate between the harpoon buffers, my harpoon config is also included | |
-- I have also setup an autocommand in order to open all the harpoon buffers when launching neovim, it is at the bottom of the file | |
-- NOTE: this guide relies on you using the lazy package manager | |
-- bufferline.nvim | |
-- helper functions: | |
local function get_marked_buffers() | |
local mark = require("harpoon.mark") |
This file contains hidden or 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
#include <assert.h> | |
#include <math.h> | |
#include <stdio.h> | |
float calculateTrigDistance(int x1, int y1, int z1, int x2, int y2, int z2) { | |
// Calculate the trig distance between two 3D points | |
float trigDistance = | |
pow(pow((x2 - x1), 2.0) + pow((y2 - y1), 2.0) + pow((z2 - z1), 2.0), 0.5); | |
return trigDistance; |