This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install nokogiri -V -v 1.6.1 -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-iconv-dir=/usr/local/Cellar/libiconv/1.14 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib | |
HEAD http://ruby.taobao.org/specs.4.8.gz | |
200 OK | |
GET http://ruby.taobao.org/specs.4.8.gz | |
200 OK | |
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.1/.autotest | |
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.1/.gemtest | |
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.1/.travis.yml | |
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.1/CHANGELOG.ja.rdoc | |
/usr/local/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.1/CHANGELOG.rdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function numberToCN(number){ | |
number = parseInt(number,0); | |
if(isNaN(number)){ | |
return false; | |
} | |
if(number === 0){ | |
return '零'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import ycm_core | |
from clang_helpers import PrepareClangFlags | |
# Set this to the absolute path to the folder (NOT the file!) containing the | |
# compile_commands.json file to use that instead of 'flags'. See here for | |
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html | |
# Most projects will NOT need to set this to anything; you can just change the | |
# 'flags' list of compilation flags. Notice that YCM itself uses that approach. | |
compilation_database_folder = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from struct import * | |
ofile=open('sz000680.day','rb') | |
buf=ofile.read() | |
ofile.close() | |
ifile=open('sz000680.txt','w') | |
num=len(buf) | |
no=num/32 | |
b=0 | |
e=32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getFormatTitle(String str) { | |
Pattern emoji = Pattern.compile("[\ud83c\udc00-\ud83c\udfff]|[\ud83d\udc00-\ud83d\udfff]|[\u2600-\u27ff]", | |
Pattern.UNICODE_CASE | Pattern.CASE_INSENSITIVE); | |
Matcher emojiMatcher = emoji.matcher(str); | |
return emojiMatcher.replaceAll(""); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import requests, time,datetime, re, sets, sys, os | |
proxies = { | |
# "http": "http://115.29.166.133:82", | |
# "http": "http://119.31.123.207:8000", | |
# "http": "http://120.198.230.16:80", | |
# "http": "http://120.198.230.17:80", | |
# "http": "http://220.181.32.106:80", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (s->headers) { | |
int len = strlen(s->headers); | |
printf("len = %d\n", len); | |
printf("syso headers -> %s\n", s->headers); | |
char* tmpheader = malloc(len+2); | |
strcpy(tmpheader, s->headers); | |
tmpheader[len]='\r'; | |
tmpheader[len+1]='\n'; | |
tmpheader[len+2]='\0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install git vim gcc make libc6-dev build-essential | |
# change timezone | |
sudo dpkg-reconfigure tzdata | |
wget https://bootstrap.pypa.io/get-pip.py | |
# remove ssh passwordlogin | |
vim /etc/ssh/sshd_config | |
PasswordAuthentication no |
OlderNewer