Skip to content

Instantly share code, notes, and snippets.

View blahgeek's full-sized avatar
👨‍💻

Yikai Zhao blahgeek

👨‍💻
View GitHub Profile
@wapiflapi
wapiflapi / fish_prompt.fish
Created February 20, 2015 21:11
my fish prompt
# name: wapiflapi
function _git_branch_name
command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||'
end
function _git_repo_name
basename (git rev-parse --show-toplevel ^/dev/null) ^/dev/null
end
@lembacon
lembacon / luna_pinyin.emoji.dict.yaml
Last active November 20, 2023 16:09
Pinyin-Emoji Dictionary for Squirrel
# Rime dictionary
# encoding: utf-8
---
name: luna_pinyin.emoji
version: "2017.02.10"
sort: by_weight
use_preset_vocabulary: true
...
@alotaiba
alotaiba / google_speech2text.md
Created February 3, 2012 13:20
Google Speech To Text API

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English