Skip to content

Instantly share code, notes, and snippets.

View petered's full-sized avatar

Peter O'Connor petered

  • eagleeyessearch.com
View GitHub Profile
@petered
petered / sync_data_from_dji_sd_card.py
Last active June 26, 2022 18:33
Syncs data from a DJI SD Card to your local file system, renaming files using modified time
import os
import shutil
import sys
from argparse import ArgumentParser
from datetime import datetime
from typing import Optional, Sequence
def modified_timestamp_to_filename(timestamp: float) -> str:
return datetime.fromtimestamp(timestamp).strftime('dji_%Y-%m-%d_%H-%M-%S')
@petered
petered / alignment-surprise
Created September 12, 2018 14:47
2018-09-12 Why Alignment?
<p><script type="math/tex; mode=display" id="MathJax-Element-1">
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}}
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}}
\newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}}
\newcommand{\blue}[1]{\color{blue}{#1}}
\newcommand{\red}[1]{\color{red}{#1}}
\newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}}
\newcommand{\loss}[0]{\mathcal L}
@petered
petered / alingmnet-surprise
Created September 12, 2018 14:46
2018-09-12 Why Alignment?
<p><script type="math/tex; mode=display" id="MathJax-Element-1">
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}}
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}}
\newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}}
\newcommand{\blue}[1]{\color{blue}{#1}}
\newcommand{\red}[1]{\color{red}{#1}}
\newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}}
\newcommand{\loss}[0]{\mathcal L}
@petered
petered / why-alignment
Created September 12, 2018 14:40
2018-09-12 Why Alignment?
$$
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}}
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}}
\newcommand{\switch}[3]{\begin{cases} #2 & \text{if } {#1} \\ #3 &\text{otherwise}\end{cases}}
\newcommand{\blue}[1]{\color{blue}{#1}}
\newcommand{\red}[1]{\color{red}{#1}}
\newcommand{\overlabel}[2]{\overset{#1}{\overline{#2}}}
\newcommand{\loss}[0]{\mathcal L}
@petered
petered / experiment_tutorial.html
Created May 10, 2018 07:27
Tutorial for Artemis Experiments
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>experiment_tutorial</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
@petered
petered / 2018-05-04 meeting
Created May 8, 2018 12:23
2018-05-04 draft
# Identities
**Delta, Sum**
\begin{align}
\Delta (x_t) &:= x_t - x_{t-1} \\
\Sigma (x_t) &:= s_t := s_{t-1} + x_t \\
\Sigma \circ \Delta &= \mathcal I
\end{align}

Making a Markdown Report

This is a method for making quick markdown reports for things like weekly meetings. Suggestions for improvement are welecome.

This tutorial shows us how to make this sample document

Positives:

$$
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
$$
My Update:
$x \leftarrow x - \eta \pderiv{\mathcal L}{x}$
![enter image description here](https://drive.google.com/uc?export=download&id=1aVrpacFQPnnODgLDiBtW6n8oCr3z2m1t)
@petered
petered / temporal-basis-funcs
Last active February 15, 2018 15:29
2018-01-29 Temporal Basis Funcs II
$$
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\pderivsq}[2]{\frac{\partial^2 #1}{\partial #2^2}}
\newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}}
\newcommand{\pderivgiven}[3]{\left.\frac{\partial #1}{\partial #2}\right|_{#3}}
\newcommand{\norm}[1]{\frac12\| #1 \|_2^2}
\newcommand{argmax}[1]{\underset{#1}{\operatorname{argmax}}}
\newcommand{argmin}[1]{\underset{#1}{\operatorname{argmin}}}
\newcommand{blue}[1]{\color{blue}{#1}}
\newcommand{red}[1]{\color{red}{#1}}
@petered
petered / low-var-online-learning
Last active February 15, 2018 15:22
2018-01-17 Lower-Variance Online Gradient Estimates
$$
\newcommand{\pderiv}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\pderivsq}[2]{\frac{\partial^2 #1}{\partial #2^2}}
\newcommand{\lderiv}[1]{\frac{\partial \mathcal L}{\partial #1}}
\newcommand{\pderivgiven}[3]{\left.\frac{\partial #1}{\partial #2}\right|_{#3}}
\newcommand{\norm}[1]{\frac12\| #1 \|_2^2}
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{argmax}}}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{argmin}}}
\newcommand{\blue}[1]{\color{blue}{#1}}
\newcommand{\red}[1]{\color{red}{#1}}