You should read the Typer Tutorial - User Guide before referring to this summary. Information icons ℹ️ link to the relevant sections of the Typer Tutorial.
- Documentation: https://typer.tiangolo.com
- Source Code: https://github.com/tiangolo/typer
#include <exception> | |
#include <functional> | |
#ifdef __EMSCRIPTEN__ | |
#include <emscripten.h> | |
#include <SDL.h> | |
#include <SDL_image.h> | |
#include <SDL_ttf.h> |
You should read the Typer Tutorial - User Guide before referring to this summary. Information icons ℹ️ link to the relevant sections of the Typer Tutorial.
import React, { useState, useEffect } from 'react'; | |
const debounce = (value, delay) => { | |
// State and setters for debounced value | |
const [debouncedValue, setDebouncedValue] = useState(value); | |
useEffect( | |
() => { | |
// Set debouncedValue to value (passed in) after the specified delay |
/**************************************************************************/ | |
/*! | |
@brief Custom lookup tables for full screen updates. Public domain (?) from Waveshare. | |
@note Video explainer: https://www.youtube.com/watch?v=MsbiO8EAsGw and more info: | |
https://benkrasnow.blogspot.com/2017/10/fast-partial-refresh-on-42-e-paper.html | |
@warning YOU CAN PERMANENELY DAMAGE YOUR DISPLAY BY ABUSING THESE LOOKUP TABLES! | |
Seriously, the controller is incredibly programmable and you can force all | |
kinds of voltages and timings onto the screen that it wasn't meant to deal | |
with. TWEAK AT YOUR OWN RISK! | |
*/ |
// library here: https://github.com/joeycastillo/The-Open-Book/tree/master/src | |
// convert images with this tool: https://littlevgl.com/image-to-c-array | |
// options: Indexed 4 colors, output format binary. Do the dithering on your own, | |
// and make sure your four colors include pure white and pure black. | |
#include <OpenBook.h> | |
#include <SD.h> | |
OpenBook *book; | |
// or for using your own 4.2" B&W display (substitute your pin assignments): |
React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.
Table of Contents
React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.
# Pablo Gainza Cirauqui 2016 LPDI IBI STI EPFL | |
# This pymol plugin for Masif just enables the load ply functions. | |
import os, sys | |
import math, re | |
from pymol import cmd, stored | |
import sys | |
from pymol import cmd, stored |
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)