Skip to content

Instantly share code, notes, and snippets.

View mcginty's full-sized avatar
🖤
strange sensation to feel alive

Jake McGinty mcginty

🖤
strange sensation to feel alive
  • in between kate bush albums
View GitHub Profile
@mcginty
mcginty / hw_template.tex
Created February 8, 2012 19:56
LaTeX Homework Template
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{graphicx}
#include "FastSPI_LED2.h"
#include <avr/pgmspace.h>
///////////////////////////////////////////////////////////////////////////////////////////
//
// Move a white dot along the strip of leds. This program simply shows how to configure the leds,
// and then how to turn a single pixel white and then off, moving down the line of pixels.
//
// How many leds are in the strip?
#define NUM_LEDS 40

Keybase proof

I hereby claim:

  • I am mcginty on github.
  • I am mc (https://keybase.io/mc) on keybase.
  • I have a public key whose fingerprint is D9B5 B818 D5FD 2131 454A CCCB EDBD 3E13 EF8B 8E23

To claim this, I am signing this object:

@mcginty
mcginty / material_colors.xml
Last active March 17, 2022 04:09
Android XML resource with the full material color palette. Source: http://www.google.com/design/spec/style/color.html#color-color-palette
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="material_red50">#ffffebee</color>
<color name="material_red100">#ffffcdd2</color>
<color name="material_red200">#ffef9a9a</color>
<color name="material_red300">#ffe57373</color>
<color name="material_red400">#ffef5350</color>
<color name="material_red500">#fff44336</color>
<color name="material_red600">#ffe53935</color>
<color name="material_red700">#ffd32f2f</color>
11204 android
5 android.animation
3 android.animation.Animator
1 android.animation.AnimatorListenerAdapter
1 android.animation.ValueAnimator
227 android.app
50 android.app.Activity
2 android.app.ActivityManager
3 android.app.ActivityOptions
2 android.app.AlarmManager
From 0038bcf8357699fc20e73ed8abaa2079d138e638 Mon Sep 17 00:00:00 2001
From: Jake McGinty <[email protected]>
Date: Fri, 18 Dec 2015 15:00:35 -0800
Subject: [PATCH] blahblah
---
AndroidManifest.xml | 8 ++++----
build.gradle | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
#!/bin/bash
find . -name '*.jpg' \
| awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' \
| bash
ffmpeg -y -i "%04d.jpg" -framerate 30 -r 30 -c:v prores_ks -b:v 15M -s:v 1920x1080 lapse.mov
#!/bin/bash
find . -name '*.jpg' \
| awk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' \
| bash
ffmpeg -y -i "%04d.jpg" -framerate 30 -r 30 -c:v prores_ks -s:v 1920x1080 lapse.mov
@mcginty
mcginty / lapsify
Last active June 17, 2016 09:27
Simple time-lapse script using ffmpeg. Put all your pictures in a single folder, run lapsify in that folder. That's it.
#!/bin/bash
set -e
mkdir -p tmp_lapse_container
find . -iname '*.jpg' \
| awk 'BEGIN{ a=0 }{ printf "cp \"%s\" tmp_lapse_container/%04d.jpg\n", $0, a++ }' \
| bash
ffmpeg -y -i "tmp_lapse_container/%04d.jpg" -framerate 30 -r 30 -c:v prores_ks -s:v 1920x1080 lapse.mov
$ lunch omni_d5110-eng
$ make clean
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=omni_d5110
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm