Skip to content

Instantly share code, notes, and snippets.

View de8ug's full-sized avatar
🕶️

DE8UG de8ug

🕶️
  • Beijing
View GitHub Profile
@de8ug
de8ug / vscode_shortcuts.md
Created November 1, 2019 16:11 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

Official List of all commands

Open/View

@de8ug
de8ug / fetch-api-examples.md
Created September 17, 2018 10:06 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@de8ug
de8ug / analyze.py
Created September 6, 2018 09:38 — forked from CuGBabyBeaR/analyze.py
A data grab and analyze project about Chinese fans of member in AKB48
# -*- coding: utf-8 -*-
import codecs, datetime, math, re
import pandas as pd
import numpy as np
from numpy import nan as NA
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
COLNAMES = [u'用户ID',u'用户名',u'性别',u'生日',u'一推',u'二推',u'发帖',u'回复',u'注册时间',u'最后登陆时间',u'积分',u'通货']
@de8ug
de8ug / rabbitmq add user
Created August 8, 2018 16:48 — forked from tvlooy/rabbitmq.sh
RabbitMQ add user
rabbitmqctl add_user someuser somepass
rabbitmqctl set_user_tags someuser administrator
rabbitmqctl set_permissions -p / someuser ".*" ".*" ".*"
Enable admin:
rabbitmq-plugins enable rabbitmq_management
rabbitmqadmin list queues
@de8ug
de8ug / webdev_online_resources.md
Created July 17, 2018 03:22 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@de8ug
de8ug / comparision.py
Created July 10, 2018 03:30 — forked from dmahugh/comparision.py
comparison of asynchronous HTTP requests (aiohttp/asyncio) and traditional sequential requests (with Requests library)
"""Comparison of fetching web pages sequentially vs. asynchronously
Requirements: Python 3.5+, Requests, aiohttp, cchardet
For a walkthrough see this blog post:
http://mahugh.com/2017/05/23/http-requests-asyncio-aiohttp-vs-requests/
"""
import asyncio
from timeit import default_timer
//HTML、CSS禁止选择文字,针对IE、FF、Chrome等
<div unselectable="on" style="-moz-user-select:none;-webkit-user-select:none;" onselectstart="return false;">
你选不了我,
unselectable: IE/Opera,
-moz-user-select: FireFox,
onselectstart: IE/Safari,
-webkit-user-select:Chrome
</div>
@de8ug
de8ug / install-tmux
Created September 8, 2016 03:24 — forked from rothgar/install-tmux
Install tmux 1.9 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local