這篇文章旨在作為快速參考與展示。要更多完整的資訊,請見 John Gruber 原本的規格與 Github 偏好的 Markdown(Github-flavored Markdown,簡寫為GFM)資訊頁。
如果你正在找 Markdown Here 的小抄(Cheatsheet),這裡也有一篇。你也可以看看更多 Markdown 的工具。
譯註:可以參考這份中文版文件,有更詳盡的 Markdown 語法說明。
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
#!/usr/bin/env python3 | |
"""Implementation of git cat-file in Python. | |
This Gist is published under the MIT License: | |
MIT License | |
Copyright (c) 2019 Leonides T. Saguisag, Jr. | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
這篇文章旨在作為快速參考與展示。要更多完整的資訊,請見 John Gruber 原本的規格與 Github 偏好的 Markdown(Github-flavored Markdown,簡寫為GFM)資訊頁。
如果你正在找 Markdown Here 的小抄(Cheatsheet),這裡也有一篇。你也可以看看更多 Markdown 的工具。
譯註:可以參考這份中文版文件,有更詳盡的 Markdown 語法說明。
--- | |
title: "Visualizing the Clinton Email Network in R" | |
author: "hrbrmstr" | |
date: "`r Sys.Date()`" | |
output: html_document | |
--- | |
```{r include=FALSE} | |
knitr::opts_chunk$set( | |
collapse=TRUE, | |
comment="#>", |
The core of this tutorial gist lies in bestPracticesWalkThrough.R. Running assumes you have the following packages at versions equal (or above) those specified
library('devtools') # 1.9.1
library('testthat') # 0.11.0
library('stringr') # 1.0.0
library('git2r') # 0.12.1
Here are instructions to set up TensorFlow dev environment on Docker if you are running Windows, and configure it so that you can access Jupyter Notebook from within the VM + edit files in your text editor of choice on your Windows machine.
First, install https://www.docker.com/docker-toolbox
Since this is Windows, creating the Docker group "docker" is not necessary.
#' Tests whether a raw httr response or character vector has a byte order mark (BOM) | |
#' | |
#' \href{https://en.wikipedia.org/wiki/Byte_order_mark}{What is a byte order mark?} | |
#' | |
#' @param resp \code{httr} response object or a character vector | |
#' @param encoding can be one of \code{UTF-8}, \code{UTF-16} or \code{UTF-16BE}. | |
#' Although a BOM could be used with UTF-32 and other encodings, such | |
#' encodings are rarely used for data transmission and the three supported | |
#' encodings are the most likely ones folks in R will be working with from | |
#' web APIs.\cr\cr |
The use of __main__.py
to create executables
myprojectfolder/
|_ __main__.py
|_ __init__.py
Being __main__.py
:
print("Hello")
If you were to give recommendations to your "little brother/sister" on things that they need to do to become a data scientist, what would those things be?
I think the "Data Science Venn Diagram" (http://drewconway.com/zia/2013/3/26/the-data-science-venn-diagram) is a great place to start. You need three things to be a good data scientist: