Skip to content

Instantly share code, notes, and snippets.

@jqtrde
jqtrde / resize.md
Last active August 29, 2015 14:22 — forked from drewbo/resize.md

How to create D3 visualizations that resize and scale well

When creating the SVG, add this bit of D3:

.attr("id","chart")
.attr("viewBox","0 0 960 500")
.attr("perserveAspectRatio","xMinYMid")

Then later in the code, add this bit of jQuery:

@jqtrde
jqtrde / on-using-cloudformation.md
Last active August 29, 2015 14:22
On using Cloudformation

On using Cloudformation

Cloudformation is an AWS service for configuring and managing deployment of AWS resources in a declarative, reproducible fashion. Makes it possible to create entire architectures with a single command.

Templates can be created in the following ways:

  1. By hand
  2. Using Cloudformer, which creates a template based on existing infrastructure.
  3. Example templates provided by AWS
@jqtrde
jqtrde / aws-interactions.md
Created May 30, 2015 03:09
Interacting with AWS via the CLI

AWS gets easier once you learn the cli commands relevant to your workflow. That said, remembering some of the lengthier (and more useful) commands can be tough. Here's what I tend to use:

# Create an SSH keypair and save the key locally.
aws ec2 create-key-pair --key-name <KEYNAME> --profile default --query 'KeyMaterial' --output text > ~/.ssh/<KEYNAME>.pem

# Delete a keypair
aws ec2 delete-key-pair --key-name <KEYNAME> --profile default
@jqtrde
jqtrde / modern-geospatial-python.md
Last active August 1, 2023 14:50
Modern remote sensing image processing with Python
@jqtrde
jqtrde / README.md
Last active August 29, 2015 14:21 — forked from jwass/README.md

Quick idea to understand what modules get imported.

Example:

>>> import importlog

# Run a bunch of code
>>> import shapely.geometry
>>> p = shapely.geometry.Point(0.0, 0.0)
&gt;&gt;&gt; b = p.buffer(1.0)
@jqtrde
jqtrde / on-programming-with-node.md
Created April 12, 2015 20:13
On programming with Node.
@jqtrde
jqtrde / on-websites.md
Created April 11, 2015 19:44
On designing websites.
  1. General Background and Overview