2018.9 @AlloVince
数据搜索/ETL/可视化的开源技术栈
#!/usr/bin/python2.7 | |
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import time | |
import csv | |
import sys,os | |
import pymysql | |
def get_cur_file_dir(): |
package main | |
import ( | |
"code.google.com/p/go-tour/pic" | |
"image" | |
"image/color" | |
) | |
type Image struct{ | |
Width, Height int |
package main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
res := make([][]uint8, dy) | |
for y := range res { | |
res[y] = make([]uint8, dx) | |
for x := range res[y] { | |
res[y][x] = uint8((x + y) /2) |
galaxy:/usr/share/nginx/html# cat /etc/nginx/sites-enabled/default | |
server { | |
listen *:80; ## listen for ipv4; this line is default and implied | |
listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
root /usr/share/nginx/www; | |
index index.php index.html index.htm; | |
# Make site accessible from http://localhost/ | |
#server_name _; | |
# location / { | |
# # First attempt to serve request as file, then |
var performance = (function () { | |
var my = {}; | |
// Wrap a function body in this to return a copy that instruments itself | |
// If you want this to be useful, you should give your profiled function a name, | |
// otherwise it will be identified as "", which is less than useful. | |
my.profile = function (func) { | |
return function () { | |
var start = new Date().getTime(), | |
time, |