Skip to content

Instantly share code, notes, and snippets.

Avatar

Eana Hufwe blueset

View GitHub Profile
@xjohjrdy
xjohjrdy / xiaoxiao_tts.py
Last active May 15, 2021
返回的音频没有文件头,所以我随便加的一个文件头,但显示的音频时长有问题。如果播放器不能正常播放,可以使用Chrome播放。
View xiaoxiao_tts.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from ws4py.client.threadedclient import WebSocketClient
import binascii
class WSClient(WebSocketClient):
def __init__(self, url, text, filename):
@painor
painor / FastTelethon.py
Last active May 9, 2021
This will increase the download/upload speed when using telethon
View FastTelethon.py
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py
# Copyright (C) 2021 Tulir Asokan
import asyncio
import hashlib
import inspect
import logging
import math
import os
from collections import defaultdict
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO
@citrusui
citrusui / fancybutton.md
Created Apr 10, 2016
How to add a fancy Direct Message button to your Tweets https://twitter.com/citrusui/status/719279185123012609
View fancybutton.md

How to add a fancy Direct Message button to your Tweets

Step 1: Go to gettwitterid.com and enter your username.

Step 2: Copy your user ID from the previous website.

Step 3: Copy the following URL:

@benpigchu
benpigchu / bpc.txt
Last active Apr 20, 2021
bpc is short for...
View bpc.txt
bad pointer cast
bad pool caller
baden powell college
baka person crasher
baking pumpkin cake
ball product creator
ban push command
banana pie company
basic permission control
basic pop club
@Dobby233Liu
Dobby233Liu / xiaoxiao_tts.py
Last active Jan 24, 2021 — forked from xjohjrdy/xiaoxiao_tts.py
superb edit of an old parameterless script
View xiaoxiao_tts.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""Edge Microsoft TTS for Python."""
import sys
from ws4py.client.threadedclient import WebSocketClient
import binascii
import argparse
import json
import requests
import re
@sokcuri
sokcuri / key.md
Last active Jul 21, 2020 — forked from shobotch/key.md
Twitter (un)official Consumer Key
View key.md

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
@ferhatelmas
ferhatelmas / pquotes.md
Created Nov 22, 2012
Programming related popular quotes
View pquotes.md

Programming Related Must-Know Quotes

  1. "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - Hoare

  2. "If debugging is the process of removing software bugs, then programming must be the process of putting them in." - Dijkstra

  3. "Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Gates

  4. "Nine people can’t make a baby in a month." - Brooks

@wolfsilver
wolfsilver / ReadMe.md
Last active Dec 24, 2019
efb 中间件
View ReadMe.md

主要功能

  • telegram管理员可发消息
  • 微信端自动标记已读(在telegram接收到的消息都会标记已读)
  • 群组内,备注与名称相同(或者一个被另一个包含)时,只展示一个
  • /update_info 命令将微信群成员信息添加到telegram群描述(已支持)
  • 建立数据库保存tg群组与微信聊天/群组名称的映射,没有绑定时,尝试查找相同名称的群组自动绑定
  • 删除接收图片、视频、文件时,不必要的消息,比如:sent a picture. [1]
  • 小程序分享添加“小程序:”标题前缀来区分常规链接
@p0we7
p0we7 / himawari8.rb
Last active Dec 15, 2015
Get hight quality image via himawari8 by @pepsin
View himawari8.rb
require 'net/http'
require "cairo"
def get_url time, x, y
str = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106/20d/550/#{time}00_#{x}_#{y}.png"
end
def merge time
puts "Start image process"
w = 20