cat /foo/bar/file.txt | openssl enc -aes-256-cbc -base64 | nc termbin.com 9999
- Enter password twice (quickly), note
termbin.com
URL
curl -s http://termbin.com/{id} | openssl enc -aes-256-cbc -base64 -d > file.txt
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
)using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class SwipeDetector : MonoBehaviour | |
{ | |
private Vector2 fingerDownPos; | |
private Vector2 fingerUpPos; |
Guide written by Jackson with help and pictures from Gold
This guide details how to install MinGW/clang, and ENGR 101's preferred code editor, Geany, on a Windows or macOS operating system. Linux users (who probably don't need any guide) should follow the guide on the ECS wiki.
If you've already got mingw/clang installed, skip to the bottom to install Geany.
This guide details how to install MinGW, the GNU C/C++ compiler, on a Windows or macOS operating system (clang
).