Skip to content

Instantly share code, notes, and snippets.

蝎子 likebeta

Block or report user

Report or block likebeta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@likebeta
likebeta / config.txt
Last active Jun 15, 2017
raspbian config
View config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
@likebeta
likebeta / foo.bar.__init__.py
Last active Dec 8, 2016
python-import-test
View foo.bar.__init__.py
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: 易思龙 <ixxoo.me@gmail.com>
# Create: 2014-10-21
print __file__
def bar_init():
@likebeta
likebeta / README.rst
Created Dec 8, 2016 — forked from tonyseek/README.rst
Build Python binding of C++ library with cffi (PyPy/Py3K compatible)
View README.rst

Run with Python:

pip-2.7 install cffi
PYTHON=python2.7 sh go.sh

Run with PyPy:

pip-pypy install cffi
PYTHON=pypy sh go.sh
@likebeta
likebeta / dnspod-ddns.py
Created Sep 5, 2015
ddns power by dnspod api
View dnspod-ddns.py
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: 易思龙 <ixxoo.me@gmail.com>
# Create: 2015-09-05
import time
import json
import urllib
import urllib2
View python-enum
class TEnum:
def __init__(self, *arguments):
idx = 0
for name in arguments:
if '=' in name:
name,val = name.rsplit('=', 1)
if val.isalnum():
idx = eval(val)
searrt(self, name.strip(), idx)
idx += 1
View An_example.markdown

This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.

Dark sublime text 2 sidebar

Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.

View git.md

1.同一台电脑可以有2个git账号(不同网站的)

首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  hostname github.com
  Port 22
host gitlab.zjut.com
@likebeta
likebeta / qq-mail-share
Last active Dec 15, 2015
QQ邮件分享
View qq-mail-share
<script type="text/javascript">
(function(){
var p = {
url:location.href,
to:'qqmail',
desc:'', /*默认分享理由(可选)*/
summary:'',/*摘要(可选)*/
title:'',/*分享标题(可选)*/
site:'',/*分享来源 如:腾讯网(可选)*/
pics:'' /*分享图片的路径(可选)*/
View qq-mail-me
<a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=GnZzcX94f257WmtrNHl1dw" style="text-decoration:none;">
<img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_02.png" />
</a>
@likebeta
likebeta / demo-twisted-stackless
Last active Oct 11, 2015
pypy+stackless+twisted示例
View demo-twisted-stackless
pypy+stackless+twisted 示例
You can’t perform that action at this time.