Skip to content

Instantly share code, notes, and snippets.

View lhysrc's full-sized avatar

Lîm Hông-goân lhysrc

View GitHub Profile
@lhysrc
lhysrc / emojis.json
Created December 18, 2017 02:16 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_biys", "shortname": "", "unicode": "", "html": "👨&zw
@lhysrc
lhysrc / index.js
Created October 10, 2016 07:55 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@lhysrc
lhysrc / baidu_yuyin.py
Created September 25, 2016 13:08
百度语音API,包括语音转换和语音识别。
#coding:utf-8
TEXT = "垂死病中惊坐起,笑问客从何处来" # 要转换成语音的文字
AUDIO_FILE = "./f.wav" # 要识别的语音文件
cuid = 'py'
apiKey = "..."
secretKey = "..."
auth_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id="\
+ apiKey + "&client_secret=" + secretKey
import urllib2
@lhysrc
lhysrc / cnblog_tb_js
Created September 14, 2016 08:26
博客园设置目录的JS
<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" >
jQuery.fn.wait = function (func, times, interval) {
var _times = times || -1, //100次
_interval = interval || 20, //20毫秒每次
_self = this,
_selector = this.selector, //选择器
_iIntervalID; //定时器id
if (this.length) { //如果已经获取到了,就直接执行函数
@lhysrc
lhysrc / PinyinHelper.cs
Created October 29, 2015 03:54
获得汉字的拼音
namespace Utility
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
/// <summary>
@lhysrc
lhysrc / IPAddressExtensions
Last active March 4, 2016 01:54
IP地址的扩展方法
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace Helpers
{
public static class SubnetMask
{