Skip to content

Instantly share code, notes, and snippets.

View jalbertbowden's full-sized avatar

albert jalbertbowden

View GitHub Profile
@iandees
iandees / README.md
Last active August 22, 2021 21:35
Download and process Bing Buildings into Census tracts.

These are my notes for taking the Microsoft US Building Footprints and splitting them into more manageable chunks based on US Census Tracts.

All of this happened on an m5.xlarge in AWS and used up about ~300GB of EBS over the course of a few hours.

  1. Make a filesystem on the EBS volume and mount it:

    sudo mkfs.xfs /dev/nvme1n1
    mount /dev/nvme1n1 /mnt
    
[{"111110":"111120","Soybean Farming":"Oilseed (except Soybean) Farming"},
{"111110":"111130","Soybean Farming":"Dry Pea and Bean Farming"},
{"111110":"111140","Soybean Farming":"Wheat Farming"},
{"111110":"111150","Soybean Farming":"Corn Farming"},
{"111110":"111160","Soybean Farming":"Rice Farming"},
{"111110":"111191","Soybean Farming":"Oilseed and Grain Combination Farming"},
{"111110":"111199","Soybean Farming":"All Other Grain Farming"},
{"111110":"111211","Soybean Farming":"Potato Farming"},
{"111110":"111219","Soybean Farming":"Other Vegetable (except Potato) and Melon Farming"},
{"111110":"111310","Soybean Farming":"Orange Groves"},
@bradtraversy
bradtraversy / myscript.sh
Last active May 15, 2024 16:27
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@john-crossley
john-crossley / app.scss
Created May 13, 2018 19:02
Tailwind CSS preflight
/**
* This injects Tailwind's base styles, which is a combination of
* Normalize.css and some additional base styles.
*
* You can see the styles here:
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/preflight";
@Steamforge
Steamforge / form-validation.html
Last active January 14, 2020 06:44
Form Validation
<form id="signUpForm">
<input type="email" id="emailField" required>
<button id="okButton" disabled>OK</button>
</form>
<script>
const signUpForm = document.getElementById('signUpForm');
const emailField = document.getElementById('emailField');
const okButton = document.getElementById('okButton');
@bearduk
bearduk / _text-html-programmable
Last active February 5, 2024 17:44
k- Banner Standard t4 programmable layout
try {
importClass(com.terminalfour.publish.utils.BrokerUtils); // this is so that you can process t4tags
importPackage(com.terminalfour.template);
importPackage(com.terminalfour.sitemanager);
var chosenFormatterTag = '<t4 type="content" name="Choose variant" output="normal" modifiers="" />'; // update tag info
var chosenFormatter = BrokerUtils.processT4Tags (dbStatement, publishCache, section, content, language, isPreview, chosenFormatterTag);
var tid = content.getTemplateID();
#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@argyleink
argyleink / easings.css
Created February 26, 2018 22:34
Handy CSS properties for easing functions
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
@bradtraversy
bradtraversy / pdo_db.php
Created February 21, 2018 12:56
PDO Class
<?php
/*
* PDO DATABASE CLASS
* Connects Database Using PDO
* Creates Prepeared Statements
* Binds params to values
* Returns rows and results
*/
class Database {
private $host = DB_HOST;
@samdutton
samdutton / sample.vtt
Created February 2, 2018 01:52
Sample WebVTT caption file
WEBVTT
00:00:00.500 --> 00:00:02.000
The Web is always changing
00:00:02.500 --> 00:00:04.300
and the way we access it is changing