把 Caps Lock 變成智慧的 Control 以及 Escape :
- 單獨輕按一下就是 Escape 。
- 若按下時同時按著其他鍵,就會是 Control 。
這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)
- Send Escape if you tap Caps Lock alone.
substitutions: | |
device_name: fensterled | |
esphome: | |
name: ${device_name} | |
esp8266: | |
board: esp01_1m | |
# Enable logging |
esphome: | |
name: minidisplay | |
platform: ESP32 | |
board: nodemcu-32s | |
wifi: | |
id: WiFi1 | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
use_address: 192.168.0.166 |
substitutions: | |
dname: cameo | |
dip: 192.168.0.224 | |
esphome: | |
name: $dname | |
esp32: | |
board: esp32dev | |
framework: |
# https://www.esphome-devices.com/devices/BlitzWolf-BW-SHP2-Power-Monitoring-Plug | |
# Blitzwolf, Wuudi, Gosun | |
substitutions: | |
devicename: blitzwolf_bw_shp2_plug_1 | |
friendly_name: BlitzWolf BW-SHP2 Plug 1 | |
device_description: BlitzWolf BW-SHP2 Power Monitoring Plug with button, Red and Blue led. | |
current_res: "0.00221" # Random value. Requires power monitoring calibration | |
voltage_div: "955" # Random value. Requires power monitoring calibration |
#/bin/bash | |
year=2011 | |
function header { | |
begin='Tätigkeiten ' | |
case $1 in | |
1) month='Januar ';; | |
2) month='Februar ';; | |
3) month='März ';; |
esphome: | |
name: qs-wifi-ds02-2c | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: "MyWiFi_SSID" | |
password: "MyWiFi_pw" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
# Author: @mikezter | |
# Date: 2020-03-18 | |
# Description: This plugin uses Cura TIME and TIME_ELAPSED estimations | |
# to calculate build percentage and time remaining. | |
# It can insert M73 P<percentage> and M117 <time remaining> gcodes. | |
from ..Script import Script | |
import re | |
class DisplayPercentageM73(Script): |
def method;"def method;;end;puts method()[0, 11] + 34.chr + method + 34.chr + method()[11, method.length-11]";end;puts method()[0, 11] + 34.chr + method + 34.chr + method()[11, method.length-11] |
after_filter :compress | |
def compress | |
if self.request.env['HTTP_ACCEPT_ENCODING'] and self.request.env['HTTP_ACCEPT_ENCODING'].match(/gzip/) | |
if self.response.headers["Content-Transfer-Encoding"] != 'binary' | |
begin | |
ostream = StringIO.new | |
gz = Zlib::GzipWriter.new(ostream) | |
gz.write(self.response.body) | |
self.response.body = ostream.string | |
self.response.headers['Content-Encoding'] = 'gzip' |