Skip to content

Instantly share code, notes, and snippets.

@tonywhittaker
tonywhittaker / Query Copy Example.py
Last active February 24, 2022 02:01
Move data from MSSQL to Redshift with Luigi
class SomeExport(luigi.Task):
date = luigi.DateParameter(default=datetime.date.today())
def output(self):
return luigi.s3.S3Target(self.date.strftime('s3://mybucket/%Y%m%d.txt.gz'))
def requires(self):
return None
def run(self):
@tonywhittaker
tonywhittaker / convert.html
Created August 26, 2015 02:26
CSV to JSON with Flask & Bootstrap
<!DOCTYPE html>
<html>
<head>
<title>CSV to JSON</title>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">