Skip to content

Instantly share code, notes, and snippets.

@g1ra
g1ra / gist:d8fb2eae4e125098fe222ef9df3f790e
Created December 7, 2023 10:57
ESP32_S2_Entrance_GPS_Radar_Light_v2
// a few defines to abstract away the Serial-specific stuff
#define DEBUG 1
#if DEBUG == 1
#define PR(...) SERIAL_DEVICE.print(__VA_ARGS__)
#define PRF(...) SERIAL_DEVICE.printf(__VA_ARGS__)
#define PRLN(...) SERIAL_DEVICE.println(__VA_ARGS__)
#define LN() PRLN(' ')
#define LINES(n) for (uint8_t _bl=0; _bl<n; _bl++) { LN(); }
#include<avr/io.h>
const int Output = 4; // Can be 1 or 4
const int LED = 1;
// Cater for 16MHz, 8MHz, or 1MHz clock:
const int Clock = ((F_CPU/1000000UL) == 16) ? 4 : ((F_CPU/1000000UL) == 8) ? 3 : 0;
const uint8_t scale[] PROGMEM = {239,226,213,201,190,179,169,160,151,142,134,127};
Plugin 'Valloric/YouCompleteMe'
Plugin 'vim-scripts/vim-auto-save'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'mattn/emmet-vim'
Plugin 'klen/python-mode'
Plugin 'davidhalter/jedi-vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-repeat'
@g1ra
g1ra / 003.cpp
Created April 18, 2013 15:34
return 0
// Copyright 2013 g1ra
//
// Everyone is permitted to copy and distribute verbatim or modified
// copies of this license document, and changing it is allowed as long
// as the name is changed.
//
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
//
// 0. You just DO WHAT THE FUCK YOU WANT TO!
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="test.css" type="text/css" charset="utf-8">
<title></title>
</head>
<body>
<div class="box"></div>
<script type="text/javascript" src="prefixfree.js">hello</script>