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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Demo Application</title> | |
<style> | |
#jscad{ | |
width: 15cm; | |
height: 15cm; | |
margin: 0; | |
outline: 1px solid black; |
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
#include <fifo.h> | |
// Buffer head is always kept on the first available(empty) element of the buffer | |
// it is not kept on the last written element! | |
void fifo_push(fifo_controller_t *controller, float value) | |
{ | |
// Write to current head | |
controller->arr[controller->head] = value; |
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
import { computed, reactive, ref } from "vue"; | |
export const useFetch = (url, config = {}) => { | |
const data = ref(null); | |
const error = ref(null); | |
const loading = ref(null); | |
const _fetch = async () => { | |
loading.value = true; |
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
#include <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
typedef struct { | |
int x; | |
int y; | |
} Point; |