Gentoo 的 Minimal Install CD 每周都会自动构建一个版本,服务器一般使用最新的 x86_64 版本。 国内的镜像下载地址是:
This file contains hidden or 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
| #standardSQL | |
| # Extract query parameters from a URL as ARRAY in BigQuery; standard-sql; 2018-04-08 | |
| # @see http://www.pascallandau.com/bigquery-snippets/extract-url-parameters-array/ | |
| WITH examples AS ( | |
| SELECT 1 AS id, | |
| '?foo=bar' AS query, | |
| 'simple' AS description | |
| UNION ALL SELECT 2, '?foo=bar&bar=baz', 'multiple params' | |
| UNION ALL SELECT 3, '?foo[]=bar&foo[]=baz', 'arrays' | |
| UNION ALL SELECT 4, '', 'no query' |
This file contains hidden or 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 https://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r | |
| # Run in the old version of R (or via RStudio) | |
| setwd("C:/Temp/") | |
| packages <- installed.packages()[,"Package"] | |
| save(packages, file="Rpackages") | |
| # INSTALL NEW R VERSION | |
| if(!require(installr)) { install.packages("installr"); require(installr)} #load / install+load installr | |
| # See here for more on installr: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/ |
This file contains hidden or 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
| --- | |
| title: "Importing Modern Data into R" | |
| author: Javier Luraschi | |
| date: June 29, 2016 | |
| output: revealjs::revealjs_presentation | |
| --- | |
| ## Overview | |
| * Importing Data |
This file contains hidden or 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
| DROP TABLE if exists d_date; | |
| CREATE TABLE d_date | |
| ( | |
| date_dim_id INT NOT NULL, | |
| date_actual DATE NOT NULL, | |
| epoch BIGINT NOT NULL, | |
| day_suffix VARCHAR(4) NOT NULL, | |
| day_name VARCHAR(9) NOT NULL, | |
| day_of_week INT NOT NULL, |
This file contains hidden or 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
| "use strict"; | |
| //based on https://www.optimizely.com/resources/sample-size-calculator/ | |
| function getSampleSize() { | |
| let effect = 0.05; // Minimum Detectable Effect | |
| let significance = 0.95; // Statistical Significance | |
| let conversion = 0.05; // Baseline Conversion Rate | |
| let c = conversion - (conversion * effect); | |
| let p = Math.abs(conversion * effect); |
This file contains hidden or 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
| ;; Assume you have already installed Font Awesome on the system | |
| ;; http://fortawesome.github.io/Font-Awesome/ | |
| (require 'ov) | |
| ;; Overlay Library | |
| ;; https://github.com/ShingoFukuyama/ov.el | |
| ;; Example 1: Insert all fonts at the cursor position | |
| (defun font-awesome-insert-all () |
This file contains hidden or 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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |