Skip to content

Instantly share code, notes, and snippets.

@Aurea-Li
Aurea-Li / Ada-Notes.md
Last active November 5, 2018 17:10
Ada Notes

Gems

Convention to put them on separate lines in alphabetical order.

Git

HEAD can be used instead of <hash> to specify the most recent commit. git branch: list of git branches git checkout <hash>: pull up snapshot of repository at certain commit
git checkout -b : create a new branch

@Aurea-Li
Aurea-Li / template.html
Last active September 18, 2022 06:24
HTML Template
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="index.js"></script>
@Aurea-Li
Aurea-Li / normalize.css
Created September 14, 2018 21:50
Normalize
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
@Aurea-Li
Aurea-Li / index.html
Created November 20, 2018 20:28
Seven Wonders
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Seven Wonders</title>
<script
src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="index.js"></script>
@Aurea-Li
Aurea-Li / minimum_waste.py
Last active February 21, 2019 18:31
CS Fun Interview Questions
# What is time and space complexity of algorithm?
# Unsure how to only keep track of one integer value instead of saving an array of minimum waste values.
def minimum_waste(bottles, potion):
# sort from greatest to least
bottles.sort(reverse = True)
w = []
recurse_minimum_waste(w, bottles, potion, bottles[0])
return min(w)