Skip to content

Instantly share code, notes, and snippets.

@karpolan
karpolan / .prettierrc.js
Last active April 5, 2025 14:30
Prettier config for React App
module.exports = {
printWidth: 120, // max 120 chars in line, code is easy to read
useTabs: false, // use spaces instead of tabs
tabWidth: 2, // "visual width" of of the "tab"
trailingComma: 'es5', // add trailing commas in objects, arrays, etc.
semi: true, // add ; when needed
singleQuote: true, // '' for stings instead of ""
bracketSpacing: true, // import { some } ... instead of import {some} ...
arrowParens: 'always', // braces even for single param in arrow functions (a) => { }
jsxSingleQuote: false, // "" for react props, like in html
@Micrified
Micrified / mpu6050.c
Created March 2, 2020 19:13
Source file for the MPU-6050 ESP32 wrapper
#include "mpu6050.h"
/*
*******************************************************************************
* Global Variables *
*******************************************************************************
*/
@Micrified
Micrified / mpu6050.h
Created March 2, 2020 19:12
Header file for the MPU-6050 ESP32 wrapper.
/*
*******************************************************************************
* (C) Copyright 2020 Micrified *
* Created: 27/02/2020 *
* *
* Programmer(s): *
* - Charles Randolph *
* *
* Description: *
* MPU-6050 interface for the ESP32 I2C driver *
@credomane
credomane / Default_BAT.reg
Created October 1, 2014 02:13
Bat file default reg entry
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.bat]
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"