Skip to content

Instantly share code, notes, and snippets.

Charlie Loyd celoyd

Block or report user

Report or block celoyd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pca_unit.py
# python pca_multiband.py input.jpeg output.tif
# n-band image -> PCA -> n-band TIFF image
# with lots of hackety assumptions
# (e.g., output is same type as input)
from sys import argv
import rasterio as rio
import numpy as np
from sklearn import decomposition
@celoyd
celoyd / iss-neffer.py
Last active Dec 3, 2019
Download Nikon raw images from https://eol.jsc.nasa.gov/
View iss-neffer.py
# python neffer.py 55 111879
# mission ^^ ^^^^^^ frame
# will write to iss055e111878.nef.
# This code is public domain; please improve & adapt it.
import requests
from sys import argv, exit
from random import uniform
from time import sleep
@celoyd
celoyd / rs.md
Last active Nov 13, 2019
Robosat workshop guide
View rs.md
View ycocg-vectorscope.py
#!/usr/bin/env python
# simple visualization of the Co/Cg plane of an image
# https://en.wikipedia.org/wiki/YCoCg
from skimage import io
import numpy as np
from sys import argv
src = io.imread(argv[1])
View bitcoin-blackmail-template.md

{Well|Okay} {i will|i'll|I am going to|let me|i'm going to} {make it|ensure it is} as {quick and|fast and} short {as possible|possibly can|as it can be},

{Few months|Couple of months|Month or two|Few days} back while visiting one of {hacked|compromised} {websites|web sites|web-sites}, your {computer|pc|personal computer} {was|was in fact} {infected|taken over} by our {Virus|Trojan|Malware|Viruses} {and it|also it|plus it|and it also} {hacked|broken into|broken in to} {all your|all of your|your entire|your complete} network devices such as your {smartphone|smart phone|mobile phone|cell phone|phone}, {ever since|since that time|since then|ever since that time} its {collecting|gathering} {great deal of|good deal of|lots of|large amount of|massive amount of} {details|information|important information} {about you|about yourself} {using your|utilizing your} {computer|pc|personal computer} {and your|as well as your|plus your|including your} {smartphone|cell phone|mobile phone|phone|smart phone} , {we got|we've got

View when.zsh
when() {
local zone="$1";
case "$zone" in
("SF") zone="America/Los_Angeles";;
("CO") zone="America/Denver";;
("Montreal") zone="America/Montreal";;
("DC") zone="America/New_York";;
("BLR") zone="Asia/Kolkata";;
esac;
psql -At -c "select date_trunc('second', now() at time zone '$zone')";
View ml.md

Work in progress – check back for a more final draft.

A written introduction to convolutional neural networks

This is not meant to be the only outline you read. It’s meant to fill in gaps that others left for me.

A sample problem

Let’s suppose we’re trying to tell sunflowers from tulips in pictures. Suppose every image is grayscale, with 10,000 pixels, with each pixel in the range 0..1.

@celoyd
celoyd / # gdal2 - 2017-08-25_16-05-49.txt
Created Aug 25, 2017
gdal2 (osgeo/osgeo4mac/gdal2) on macOS 10.12.6 - Homebrew build logs
View # gdal2 - 2017-08-25_16-05-49.txt
Homebrew build logs for osgeo/osgeo4mac/gdal2 on macOS 10.12.6
Build date: 2017-08-25 16:05:49
@celoyd
celoyd / # gdal2 - 2017-08-25_15-56-21.txt
Created Aug 25, 2017
gdal2 (osgeo/osgeo4mac/gdal2) on macOS 10.12.6 - Homebrew build logs
View # gdal2 - 2017-08-25_15-56-21.txt
Homebrew build logs for osgeo/osgeo4mac/gdal2 on macOS 10.12.6
Build date: 2017-08-25 15:56:21
@celoyd
celoyd / # gdal2 - 2017-08-25_15-44-45.txt
Created Aug 25, 2017
gdal2 (osgeo/osgeo4mac/gdal2) on macOS 10.12.6 - Homebrew build logs
View # gdal2 - 2017-08-25_15-44-45.txt
Homebrew build logs for osgeo/osgeo4mac/gdal2 on macOS 10.12.6
Build date: 2017-08-25 15:44:45
You can’t perform that action at this time.