Skip to content

Instantly share code, notes, and snippets.

View hugohabel's full-sized avatar
🐉

Hugo Habel hugohabel

🐉
View GitHub Profile
@hugohabel
hugohabel / 000-flexbox.html
Last active July 30, 2021 00:42
Basics of Flexbox
<!DOCTYPE html>
<html>
<head>
<style>
/* Additional Styles */
* {
box-sizing: border-box;
}
.icon {
border-radius: 8px;
@hugohabel
hugohabel / 000-promises.js
Last active February 20, 2022 02:11
Basics of a Promise
const https = require('https');
// Constants
const URL = 'https://fakestoreapi.com/products';
const requestParams = {
url: URL
};
/**
@hugohabel
hugohabel / AbsoluteOrientationSensor.js
Created September 29, 2019 02:10
To use this sensor, the user must grant permission to the 'accelerometer', 'gyroscope', and 'magnetometer' device sensors through the Permissions API
const options = {
frequency: 60,
referenceFrame: 'device'
};