Skip to content

Instantly share code, notes, and snippets.

View ccabanero's full-sized avatar

Clint Cabanero ccabanero

View GitHub Profile
@lucaswells
lucaswells / raster2zarr.py
Last active September 26, 2024 18:41
Convert GeoTIFF to Zarr array
import matplotlib.pyplot as plt
import rasterio
from rasterio.windows import Window
import time
import zarr
def convert(raster_filepath, chunk_mbs=1):
"""
Converts raster file to chunked and compressed zarr array. Tested
@sgillies
sgillies / advanced_rasterio_features.ipynb
Last active October 19, 2024 17:20
Advanced Rasterio features notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9060" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="JJWParallaxHeaderViewWithVisualEffect">
//
// UIScrollView+VGParallaxHeader.m
//
// Created by Marek Serafin on 2014-09-18.
// Copyright (c) 2013 VG. All rights reserved.
//
#import "UIScrollView+VGParallaxHeader.h"
#import <objc/runtime.h>
//
// UIScrollView+VKParallaxHeader.m
//
// Created by Marek Serafin on 2014-09-18.
// Copyright (c) 2013 VG. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, VGParallaxHeaderMode) {
//
// JJWParallaxHeaderViewWithVisualEffect.m
// ParallaxScrollViewHeaderWithBlur
//
// Created by Joel West on 2/22/16.
// Copyright © 2016 WestSutdios. All rights reserved.
//
#import "JJWParallaxHeaderViewWithVisualEffect.h"
//
// JJWParallaxHeaderViewWithVisualEffect.h
// ParallaxScrollViewHeaderWithBlur
//
// Created by Joel West on 2/22/16.
// Copyright © 2016 WestSutdios. All rights reserved.
//
#import <UIKit/UIKit.h>
@ccabanero
ccabanero / Batch upload files from Mac to EC2 Micro Linux Instance
Last active October 12, 2018 19:07
Batch upload/download files from Mac to EC2 Ubuntu - Download File from EC2 Ubuntu to Mac
Uploading from Mac Terminal to Remote EC2 ...
scp -i [yourpemfile.pem] [directoryPath]/* [user]@[elastic IP]:[directoryPathToUploadTo]
For example ...
scp -i chubbs_spat.pem arab_data/* [email protected]:PGRestAPI/endpoints/mapnik/data/shapefiles/
Downloading from EC2 Ubuntu to Mac Terminal...
scp -i [yourpemfile.pem] [user]@[elastic IP]:[diretoryPthToFileToDownloadFrom] [directoryPathToDownloadTo]
@dhoerl
dhoerl / KeychainItemWrapper.h
Last active April 4, 2023 08:15
KeychainItemWrapper ARCified. Added the ability to manage a dictionary in place of just a string - the #define PASSWORD_USES_DATA in the .m file switches the mode.
/*
File: KeychainItemWrapper.h
Abstract:
Objective-C wrapper for accessing a single keychain item.
Version: 1.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
@YenTheFirst
YenTheFirst / index.html
Created May 26, 2011 17:57 — forked from mlevans/index.html
Displaying Map Tiles from TileStream
<!Doctype html>
<html>
<head>
<title>311 Density</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://github.com/CloudMade/Leaflet/raw/master/dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="https://github.com/CloudMade/Leaflet/raw/master/dist/leaflet.ie.css" /><![endif]-->
</head>
<body>