Skip to content

Instantly share code, notes, and snippets.

@kissjava
kissjava / README.md
Created May 24, 2022 02:00 — forked from Eotones/README.md
speechSynthesis強制使用Chrome中的Google小姐中文語音

speechSynthesis強制使用Chrome中的Google小姐中文語音

網路上的window.speechSynthesis教學主要都只有說切換指定語言

像是這樣就能切換成中文語音:

const synth = window.speechSynthesis;

const speak = (msg) => {
@kissjava
kissjava / web-servers.md
Created April 18, 2021 05:15 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@kissjava
kissjava / install_go_pi.sh
Created April 20, 2019 06:23 — forked from pcgeek86/install_go_pi.sh
Install Go Lang 1.11.1 on Raspberry Pi 3 B+
cd $HOME
FileName='go1.11.1.linux-armv6l.tar.gz'
wget https://dl.google.com/go/$FileName
sudo tar -C /usr/local -xvf $FileName
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@kissjava
kissjava / kivy_cv.py
Created March 18, 2019 09:30 — forked from ExpandOcean/kivy_cv.py
kivy and opencv work together demo
# coding:utf-8
from kivy.app import App
from kivy.uix.image import Image
from kivy.clock import Clock
from kivy.graphics.texture import Texture
import cv2
class KivyCamera(Image):
def __init__(self, capture, fps, **kwargs):