Skip to content

Instantly share code, notes, and snippets.

@LalehT
LalehT / Assignment 4 - Hypothesis Testing
Last active Jul 4, 2020
Data Science in Python by University of Michigan- Assignment 4- Hypothesis Testing
View Assignment 4 - Hypothesis Testing
import pandas as pd
import numpy as np
from scipy.stats import ttest_ind
Definitions:
A quarter is a specific three month period, Q1 is January through March, Q2 is April through June, Q3 is July through September, Q4 is October through December.
A recession is defined as starting with two consecutive quarters of GDP decline, and ending with two consecutive quarters of GDP growth.
A recession bottom is the quarter within a recession which had the lowest GDP.
A university town is a city which has a high percentage of university students compared to the total population of the city.
@robjhyndman
robjhyndman / tscv.R
Created Dec 7, 2016
Time series cross-validation diagrams
View tscv.R
par(mar=c(0,0,0,0))
plot(0,0,xlim=c(0,28),ylim=c(0,1),
xaxt="n",yaxt="n",bty="n",xlab="",ylab="",type="n")
i <- 1
for(j in 1:20)
{
test <- (6+j):26
train <- 1:(5+j)
arrows(0,1-j/20,27,1-j/20,0.05)
points(train,rep(1-j/20,length(train)),pch=19,col="blue")
@brianberlin
brianberlin / AWS Cognito + Facebook Login JavaScript Example
Created Jul 29, 2015
AWS Cognito + Facebook Login JavaScript Example
View AWS Cognito + Facebook Login JavaScript Example
<!DOCTYPE html>
<html>
<head>
<title>AWS Cognito + Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.41.min.js"></script>
<script>
@MrBW
MrBW / DemoApplication.java
Created Aug 2, 2018
chaos-monkey-pivotal-test
View DemoApplication.java
package com.issue.chaos.monkey.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
@mipearson
mipearson / index.ts
Created Aug 19, 2018
Demonstration of using AWS CDK
View index.ts
/*
I was curious as to whether it was possible to make resources
created using CDK constructs work with raw CloudFormation
resources and vice versa.
This aws-cdk app demonstrates a VPC and an ELB that belongs to it
in different, dependant stacks, leveraging CFN outputs / imports,
and leveraging CDK's method of passing information from one
stack to another.
*/
@Villanuevand
Villanuevand / README-español.md
Last active Jul 4, 2020
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2
View README-español.md

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

View change-mysql-data-directory-in-osx.md

Stop the MySQL Service

I'm using Homebrew to stop the service

brew services stop mysql

Locate MySQL Data Directory

@mattzuba
mattzuba / 01_httpd_phpfpm.config
Last active Jul 4, 2020
Apache 2.4 / PHP-FPM 5.5 on Amazon Elastic Beanstalk
View 01_httpd_phpfpm.config
packages:
yum:
php55-fpm: []
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/26_phpfpm_config.sh":
mode: "000755"
owner: root
group: root
content: |
anonymous
anonymous / pca_animation.m
Created Jan 26, 2017
Matlab code to produce PCA animations
View pca_animation.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab code to produce PCA animations shown here:
% http://stats.stackexchange.com/questions/2691
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Static image
clear all
rng(42)
@thawk
thawk / .gitignore
Last active Jul 4, 2020
SpaceVim custom init.vim
You can’t perform that action at this time.