Skip to content

Instantly share code, notes, and snippets.

View chriswoodle's full-sized avatar
🌴
Work from beach!

Chris Woodle chriswoodle

🌴
Work from beach!
View GitHub Profile
@chriswoodle
chriswoodle / setup.sh
Created March 27, 2022 21:57
IBAMR Setup script
sudo apt install make gcc g++ gfortran python -y
# Setup
cd $HOME
mkdir sfw
cd sfw
mkdir linux
# Boost
cd $HOME/sfw/linux
mkdir boost
@chriswoodle
chriswoodle / compile.sh
Created September 1, 2020 17:18
Compile CSE 1002 assignments
#!/bin/bash
# Download all .c files to ./
# run with:
# sh compile.sh &> compile_out.txt
# To direct all output to compile_out.txt
# Creates a directory for compiled files
mkdir ./out
class ObjectId { }
namespace Test {
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type EnhancedOmit<T, K> =
string | number extends keyof T ? T : // T has indexed type e.g. { _id: string; [k: string]: any; } or it is "any"
Omit<T, K>;
type ExtractIdType<TSchema> =
@chriswoodle
chriswoodle / hell.css
Last active April 10, 2020 19:44
hell.css
@import url(http://fonts.googleapis.com/css?family=Cardo:400italic,400,700);
/*Subscribe Button*/
/* <link href='http://fonts.googleapis.com/css?family=Cardo:400italic,400,700' rel='stylesheet' type='text/css'> */
.header {
background-color: #001a57;
border-bottom: none;
}
@chriswoodle
chriswoodle / setup.md
Created November 15, 2019 19:11
PI + VSCode Remote SSH

Setup VSCode Remote SSH with Raspberry pi

Setup your PI

  1. Enable SSH on your PI
    • From your pi terminal enter the following:
    $ sudo raspi-config
    5 Interfacing Options > P2 SSH > Yes
// WavePlayer.cpp
// https://alsa.opensrc.org/HowTo_Asynchronous_Playback#Setting_up_the_device
#include <alsa/asoundlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
// WaveReader.cpp
#include <alsa/asoundlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
<template>
<div class="home">
<div class="map">
<MglMap :accessToken="accessToken" :mapStyle="mapStyle" :center="center" :zoom="zoom">
<MglMarker
v-for="marker in markers"
:key="marker._id"
:coordinates="marker.coordinates"
color="#1E1E1E">
<MglPopup>
pi@raspberrypi:~/Desktop $ cat helloworld.c
#include <stdio.h>
int main() {
int potato = 7;
printf("hello\n");
potato = potato + 3;
printf("world\n");
return 0;
}
Must haves:
State ID
student ID
water bottle
tooth brush
tooth paste
pillow
blanket
laptop
laptop monitor cable adapter (if your computer does not have hdmi)