Skip to content

Instantly share code, notes, and snippets.

View erinburns's full-sized avatar

Erin Burns erinburns

View GitHub Profile
@erinburns
erinburns / gitignore.txt
Created June 10, 2022 09:26
Standard gitignore file for my most common Python project environments
# Environments
.env
.venv
env/
venv/
*venv/
ENV/
env.bak/
venv.bak/
@erinburns
erinburns / exiftool-notes.md
Last active April 29, 2021 23:49
(Mac) How to preserve privacy by removing metadata from images and videos using Exiftool.

Removing metadata from images and videos (Mac)

1. Install Exiftool

Download Exiftool from their website

OR

If you have Homebrew installed you can install Exiftool by opening the Terminal app and typing the following and hit ENTER:

brew install exiftool
@erinburns
erinburns / browse.js
Created September 27, 2019 14:07
This script displays event detail cards that users have submitted. See related scripts add-event.js
// Js file for listing related scripts
"use strict";
(function () {
// Reference to the events collection in Firebase database
var events = firebase.database().ref("events");
// displays event listings on browse.html
events.on('value', function(snapshot) {
snapshot.forEach(function(childSnapshot) {
@erinburns
erinburns / slider.css
Created September 19, 2019 11:55
CSS code sample for a slider
// HERO SLIDER
.hero-slider {
width: 100vw;
height: 55vh;
position: relative;
}
.slide1,.slide2,.slide3,.slide4,.slide5 {
position: absolute;
width: 100%;
height: 100%;
@erinburns
erinburns / add-event-route.js
Created September 19, 2019 11:28
JavaScript code sample. This is part of a project which allows users to add a new event listing to a website. Project used Node.js and Express.js
// for add event page
// these variables are required for each route
var express = require('express');
var router = express.Router();
// GET home page
router.get('/add-event', function(request, response){
// this refers to the add-event.ejs file in views folder
@erinburns
erinburns / appointments_controller.rb
Created September 19, 2019 11:10
Ruby code sample
class AppointmentsController < ApplicationController
before_action :authenticate_user!
before_action :set_appointment, only: [:approve, :decline]
def create
service = Service.find(params[:service_id])
if current_user == service.user
flash[:alert] = "You cannot book your own service."
elsif current_user.stripe_id.blank?
@erinburns
erinburns / keybase.md
Created November 18, 2017 16:02
keybase.md

Keybase proof

I hereby claim:

  • I am erinburns on github.
  • I am keepintouch (https://keybase.io/keepintouch) on keybase.
  • I have a public key ASBO-1CxwRydlxy-14CYI2TEYzTDCdn_xpUAdkawcWrrxQo

To claim this, I am signing this object: