As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
#!/bin/sh | |
# This should be pretty straightforward, and yes I know that it | |
# supports GNU way too much. | |
BINUTILS_VERSION=2.20.1 | |
GMP_VERSION=5.0.1 | |
MPFR_VERSION=3.0.0 | |
GCC_VERSION=4.4.3 |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
/* | |
* Module dependencies | |
*/ | |
var Post = require('../models/post') | |
, PostValidator = require('../validators/post-validator') | |
, requiresLogin = require('../helpers/requireLogin').requiresLogin | |
, marked = require('marked'); | |
# -*- coding:utf-8 -*- | |
'写了一个简单的支持中文的正向最大匹配的机械分词,其它不用解释了,就几十行代码' | |
'搜狗词库下载地址:http://vdisk.weibo.com/s/7RlE5' | |
import string | |
__dict = {} | |
def load_dict(dict_file='words.dic'): | |
'加载词库,把词库加载成一个key为首字符,value为相关词的列表的字典' |
#!/bin/sh | |
# GCC | |
## Prerequisites for GCC | |
## http://gcc.gnu.org/install/prerequisites.html | |
## Installing GCC: Configuration | |
## http://gcc.gnu.org/install/configure.html | |
GCC_VER=4.7.1 | |
WORK_DIR=$HOME/Builds/GCC |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Brandon B. brandon@brandonbrown.io
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE