sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
esphomeyaml: | |
name: pow | |
platform: ESP8266 | |
board: esp01_1m | |
board_flash_mode: dout | |
wifi: | |
ssid: 'Demo' | |
password: 'Livestream' |
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$(brew --prefix coreutils)/libexec/gnubin:$PATH | |
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/frenck/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME |
/* based on dbox.us */ | |
body { | |
background: linear-gradient(238deg, #fd8800, #fd008f, #9700fd, #003dfd, #05c7e6, #4bd58d); | |
background-size: 1200% 1200%; | |
-webkit-animation: rainbow 30s ease infinite; | |
animation: rainbow 30s ease infinite; | |
} | |
@-webkit-keyframes rainbow { | |
0% { background-position: 0% 50% } | |
50% { background-position: 100% 50% } |
function camelCaseToDash( myStr ) { | |
return myStr.replace( /([a-z])([A-Z])/g, '$1-$2' ).toLowerCase(); | |
} | |
var myStr = camelCaseToDash( 'thisString' ); | |
alert( myStr ); // => this-string |
#!/usr/bin/python | |
''' | |
A Simple mjpg stream http server for the Raspberry Pi Camera | |
inspired by https://gist.github.com/n3wtron/4624820 | |
''' | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
import io | |
import time | |
import picamera |