- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
"""Kernel K-means""" | |
# Author: Mathieu Blondel <[email protected]> | |
# License: BSD 3 clause | |
import numpy as np | |
from sklearn.base import BaseEstimator, ClusterMixin | |
from sklearn.metrics.pairwise import pairwise_kernels | |
from sklearn.utils import check_random_state |
;;; base on https://gist.github.com/coldnew/7398835 | |
(defvar emacs-english-font nil | |
"The font name of English.") | |
(defvar emacs-cjk-font nil | |
"The font name for CJK.") | |
(defvar emacs-font-size-pair nil | |
"Default font size pair for (english . chinese)") |
利用rsync自动同步服务器与本地代码的python脚本 | |
四 07 二月 2013 | |
tags: Python | |
菜鸟表示写web时 每次修改完后把文件往VPS上丢很麻烦 | |
用ssh sshfs scp都太慢 小东西又懒得用git | |
sublimetext上得sftp不支持中文 emacs干脆就只能ssh | |
于是用linux自带的rsync写了个同步脚本 | |
可以手动或自动往服务器上差异性同步 不用scp一堆东西 也不用忍受ssh那个渣速度 |
import multiprocessing | |
import pandas as pd | |
import numpy as np | |
def _apply_df(args): | |
df, func, kwargs = args | |
return df.apply(func, **kwargs) | |
def apply_by_multiprocessing(df, func, **kwargs): | |
workers = kwargs.pop('workers') |
import os | |
import json | |
import shutil | |
from subprocess import call | |
import cld | |
def read_json(file_path): | |
json_data = open(file_path) | |
data = json.load(json_data) | |
return data |
;; http://lists.gnu.org/archive/html/help-gnu-emacs/2007-05/msg00975.html | |
(defvar sticky-buffer-previous-header-line-format) | |
(define-minor-mode sticky-buffer-mode | |
"Make the current window always display this buffer." | |
nil " sticky" nil | |
(if sticky-buffer-mode | |
(progn | |
(set (make-local-variable 'sticky-buffer-previous-header-line-format) |
import os | |
import shutil | |
import sqlite3 | |
from sys import argv | |
from xml.dom.minidom import parse | |
def dom_element_to_insert(elem): | |
return (elem.getAttribute('xmlUrl'),elem.getAttribute('text'), elem.getAttribute('title'), elem.getAttribute('htmlUrl')) | |
def main(path_to_opml): |