This file contains 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
url = 'https://data.chhs.ca.gov/dataset/6882c390-b2d7-4b9a-aefa-2068cee63e47/resource/6cd8d424-dfaa-4bdd-9410-a3d656e1176e/download/covid19data.csv' | |
states = pd.read_csv(url, | |
header=0, | |
names=["state", "date","positive"], | |
usecols=['date', 'state', 'positive'], | |
parse_dates=['date'], | |
index_col=['state', 'date'], | |
squeeze=True).sort_index() | |
# You'll also need to set cutoff = 1 for calls to prepare_cases and catch empty sequences |
This file contains 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
// Hormone graph | |
digraph G { | |
//rankdir=LR; | |
node[color="green"]; | |
GH; FSH; LH; TSH;Melatonin;ACTH;OX;ADH;ENDOR;PRO;CALCI;PTH;ANP;THYM;INS;SOM;GLU; | |
node[shape="plaintext"]; | |
H;AP;PP;G;T;KIDNEY;AC;BM;PG;AM;BMa;PT;B;HEART;URINE;Thymus;TCELL;PAN;UTERUS;MAMMARY;IMMUNE; | |
node[shape="oval",color="black"]; | |
BMa[label="Bone Marrow"]; | |
H [label="Hypothalamus"]; |
This file contains 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
$ git log --since=2015-01-01 --pretty=format:"%an" | sort | uniq | |
Allen Day | |
Andrew Chen | |
Anton Stamov | |
Arun Ahuja | |
Audrey Musselman-Brown | |
Beau Norgeot | |
Bryan Jacobs | |
Eric | |
Eric Tu |
This file contains 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
Verifying I am +massie on my passcard. https://onename.com/massie |
This file contains 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
package example | |
import java.io.FileInputStream | |
import java.security.MessageDigest | |
object Sha1Example { | |
def main(args: Array[String]): Unit = { | |
val start = System.currentTimeMillis() | |
val sha1 = MessageDigest.getInstance("SHA1") | |
val bytes = new Array[Byte](1024 * 1024) |
This file contains 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
/* | |
* Copyright (c) 2013. Regents of the University of California | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
package com.zenfractal | |
import org.apache.avro.generic.{GenericDatumWriter, GenericDatumReader, IndexedRecord} | |
import java.io.{ObjectOutputStream, IOException, ObjectInputStream} | |
import org.apache.avro.specific.{SpecificDatumWriter, SpecificRecordBase, SpecificDatumReader} | |
import org.apache.avro.Schema | |
import org.apache.avro.io._ | |
/** | |
* Makes Avro objects 'Serializable', e.g. |
This file contains 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
<dependency> | |
<groupId>org.spark-project</groupId> | |
<artifactId>spark-core_${scala.version}</artifactId> | |
<version>0.7.3</version> | |
</dependency> | |
<dependency> | |
<groupId>com.twitter</groupId> | |
<artifactId>parquet-avro</artifactId> | |
<version>1.0.0</version> | |
</dependency> |
This file contains 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
package edu.berkeley.cs.amplab.carat.dynamodb | |
import com.amazonaws.services.dynamodb.model.{TableDescription, DescribeTableRequest} | |
import collection.JavaConversions._ | |
class DynamoDBCostStructure(cp10wu: Double, cp50ru: Double, cpgb: Double) { | |
private val costPer10WriteUnits: Double = cp10wu | |
private val costPer50ReadUnits: Double = cp50ru | |
private val costPerGB: Double = cpgb | |
private val hoursPerMonth = 24 * 31 |
This file contains 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 org.apache.cxf.feature.AbstractFeature; | |
import org.apache.cxf.feature.LoggingFeature; | |
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean; | |
import org.apache.cxf.jaxrs.client.JAXRSClientFactory; | |
import org.apache.cxf.jaxrs.client.WebClient; | |
import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider; | |
import org.junit.Test; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.GET; |