Skip to content

Instantly share code, notes, and snippets.

@RyanSchw
RyanSchw / led.c
Created December 1, 2019 21:22
Starting code
void setup_led() {
// Configure GPIO
RCC->AHBENR |= RCC_AHBENR_GPIOAEN;
// Configure PA8 (TIM1_CH1) for LED data output
GPIOA->MODER |= (2 << (2 * 8));
GPIOA->OSPEEDR |= (3 << (2 * 8));
GPIOA->AFR[1] |= 0x02; // Configure channel mode for PWM mode 1 (Table 14, TIM1_CH1)
// Configure TIM1
RCC->APB2ENR |= RCC_APB2ENR_TIM1EN;
@RyanSchw
RyanSchw / acceptance.html
Last active September 11, 2019 22:18
FullSend - Templates
Hi {{NAME}},
Welcome to Purdue Electric Racing! We’re excited to have you onboard!
Your lead has recommended you complete the onboarding project. You must complete this before you receive a new member project. The project prompt can be found here: <a href="https://docs.google.com/document/d/1Qou6ni27DQOhPVh55uKzgmDKECCyMGJ7eF34T2PUWf8/edit?usp=sharing">https://docs.google.com/document/d/1Qou6ni27DQOhPVh55uKzgmDKECCyMGJ7eF34T2PUWf8/edit?usp=sharing</a>
We have already had our new member training, so you can look over our slides <a href="https://docs.google.com/presentation/d/1yCa9QfqIfusQgBmYvbD6dUxzmKPh7LcV4sWPAHhpmlU/edit?usp=sharing">here</a>. Please complete all tasks shown in slides 5 to 8.
Below are several pieces of information that must be completed in order to work at BIDC.
<b>(Please keep this email for future reference as it contains important information you may want to refer back to later.)</b>
@RyanSchw
RyanSchw / Code.gs
Last active August 20, 2019 21:37
Google Form Post-Submit Hook
/**
* @OnlyCurrentDoc
*
* The above comment directs Apps Script to limit the scope of file
* access for this add-on. It specifies that this add-on will only
* attempt to read or modify the files in which the add-on is used,
* and not all of the user's files. The authorization request message
* presented to users will reflect this limited scope.
*/
@RyanSchw
RyanSchw / standards.md
Last active July 10, 2019 18:38 — forked from digitaljhelms/gist:4287848
Git Branching Standards (Simplified)

Branching

This is a simplified branching standard used primarily for internal applications and for companies new to git.

Quick Legend

Instance