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
| """ | |
| Copy this file to AIRFLOW_HOME/dags/ | |
| """ | |
| import boto3 | |
| from datetime import datetime, timedelta | |
| import logging | |
| logging = logging.getLogger(__name__) | |
| logging.setLevel("ERROR") |
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
| name | height | weight | eyecolor | haircolor | jedi | species | |
|---|---|---|---|---|---|---|---|
| Anakin Skywalker | 188 | 84 | blue | blond | jedi | human | |
| Padme Amidala | 165 | 45 | brown | brown | no_jedi | human | |
| Luke Skywalker | 172 | 77 | blue | blond | jedi | human | |
| Leia Skywalker | 150 | 49 | brown | brown | no_jedi | human | |
| Qui-Gon Jinn | 193 | 89 | blue | brown | jedi | human | |
| Obi-Wan Kenobi | 182 | 77 | bluegray | auburn | jedi | human | |
| Han Solo | 180 | 80 | brown | brown | no_jedi | human | |
| Sheev Palpatine | 173 | 75 | blue | red | no_jedi | human | |
| R2-D2 | 96 | 32 | no_jedi | droid |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 glob | |
| import os | |
| import shutil | |
| import tensorflow as tf | |
| from tqdm import tqdm | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import psutil | |
| from absl import logging |
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
| {'data': [Scattergl({ | |
| 'hoverlabel': {'bgcolor': '#EBEDF3', 'bordercolor': '#EBEDF3', 'font': {'color': 'black'}}, | |
| 'hovertemplate': '%{y:d}', | |
| 'line': {'color': '#7252B6', 'width': 4}, | |
| 'marker': {'size': 10}, | |
| 'mode': 'lines+markers', | |
| 'name': 'Bytes Read', | |
| 'x': [1, 2, 3, 4, 5], | |
| 'xaxis': 'x', | |
| 'y': [1590002400, 6360009600, 4240006400, 530000800, 3180004800], |
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 os | |
| import boto3 | |
| from collections import defaultdict | |
| import botocore | |
| def get_matching_s3_objects(bucket, | |
| aws_access_key_id, | |
| aws_secret_access_key, | |
| region_name, | |
| prefix='', |
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
| package org.aja.tej.examples.streaming.twitter | |
| import com.google.gson.Gson | |
| import org.aja.tej.utils.{TejUtils, TejTwitterUtils} | |
| import org.anormcypher.{Cypher, Neo4jREST} | |
| import org.apache.spark.sql.{AnalysisException, Row, SQLContext} | |
| import org.apache.spark.streaming.twitter.TwitterUtils | |
| import org.apache.spark.streaming.{Seconds, StreamingContext} | |
| import play.api.libs.ws.ning |
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
| //For any updates check : https://github.com/Mageswaran1989/aja/blob/master/src/examples/scala/org/aja/tej/examples/streaming/twitter/TwitterWithNeo4j.scala | |
| package org.aja.tej.examples.streaming.twitter | |
| import com.google.gson.Gson | |
| import org.aja.tej.utils.{TejUtils, TejTwitterUtils} | |
| import org.anormcypher.{Cypher, Neo4jREST} | |
| import org.apache.spark.sql.{AnalysisException, Row, SQLContext} | |
| import org.apache.spark.streaming.twitter.TwitterUtils | |
| import org.apache.spark.streaming.{Seconds, StreamingContext} | |
| import play.api.libs.ws.ning |
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
| package org.aja.tej.tej.test.spark | |
| /** | |
| * Created by mageswaran on 9/8/15. | |
| */ | |
| import java.util.Random | |
| import org.apache.spark.{SparkConf, SparkContext} |