Skip to content

Instantly share code, notes, and snippets.

@ccwang002
ccwang002 / baidu_map.py
Created March 8, 2015 12:52
Baidu map API usage
# coding: utf-8
import requests
class BaiduMap:
def __init__(self, key=''):
"""Helper class for Baidu map API
Parameters
----------
@ccwang002
ccwang002 / Transform.ipynb
Created February 11, 2015 16:03
Transform Bird Record
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ccwang002
ccwang002 / 01_Instructions.md
Last active August 29, 2015 14:14
Using Python Tools for Visual Studio (PTVS)

環境設定

PTVS 的版本可以透過 VS 中 HELP -> About Microsoft Visual Studio 查看。Python 的版本選擇非常多,請參見 PTVS 說明。在這邊是選用 Miniconda3 (Python 3.4) 示範。

@ccwang002
ccwang002 / 0_Instructions.md
Last active November 10, 2016 03:48
Anaconda on Windows 64bit

安裝 Anaconda Win 64bit

我這邊用 Miniconda,選擇 Python 2.7 Windows 64-bit。

安裝 Anaconda 一樣沒有問題,兩個裡面是一樣的, 只是 Anaconda 預設下載了很多常用套件。

開一個 Command Prompt (Win+R -> cmd + [Enter]) 輸入 conda

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ccwang002
ccwang002 / log
Last active August 29, 2015 13:56
R 3.0.2 Performance Test on OSX 10.9.2 of Generic RBLAS and OpenBLAS (dev)
## R-benchmark-25 from http://r.research.att.com/benchmarks/R-benchmark-25.R
# brew install r [--with-openblas]
$ Rscript R-benchmark-25.R 2014-03-01 (六) 00:41 CST
Loading required package: Matrix
Loading required package: methods
Loading required package: lattice
Loading required package: SuppDists
警告訊息:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
@ccwang002
ccwang002 / apac.svg
Last active January 3, 2016 21:28
PyCon APAC IPython notebook from future import everything
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.