Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import matplotlib | |
matplotlib.use('TkAgg') | |
from pylab import * | |
import networkx as nx | |
import random as rd | |
def initialize(): | |
global g, num_steps | |
g = nx.karate_club_graph() | |
g.pos = nx.spring_layout(g) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import matplotlib | |
matplotlib.use('TkAgg') | |
import pylab as PL | |
import random as RD | |
import scipy as SP | |
import numpy as NP |
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
import requests as r | |
import sys | |
from datetime import datetime | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Numeric | |
from sqlalchemy.orm import sessionmaker | |
#bash | |
''' | |
docker swarm init |
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
rm(list=ls()) | |
library('Matching') | |
library('MASS') | |
library('quantreg') | |
nswre74_control <- read.table("nswre74_control.txt") | |
nswre74_treated <- read.table("nswre74_treated.txt") |
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
# know your working directory: | |
getwd() | |
####### PART 1: Get the 2 RCT data sets... | |
# website with data is here: http://users.nber.org/~rdehejia/data/nswdata2.html | |
### For the original Lalonde data | |
# STEP 1: Download the two text files, nsw_control.txt and nsw_treated.txt | |
# STEP 2: Ensure that they are in R's working directory |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Made with Thimble</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<h1>Kanban Board</h1> |
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
library('Matching') | |
library(boot) | |
library(arm) | |
library(randomForest) | |
data(lalonde) | |
attach(lalonde) | |
# Normalizing the real earnings by dividing by 1000 dollars. | |
lalonde$re75 = lalonde$re75 / 1000 |
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
.mode column | |
CREATE TABLE Clients ( | |
CLIENTNUMBER INT, | |
FIRSTNAME VARCHAR(20), | |
SURNAME VARCHAR(20), | |
EMAIL VARCHAR(100), | |
PHONE VARCHAR(20) | |
); |
NewerOlder