Skip to content

Instantly share code, notes, and snippets.

@ashleighmm
ashleighmm / my_history.log
Created May 2, 2019 19:59
Terminal Murder Mystery
120 cat ../instructions
121 ls
122 cd crimescene
123 ls -l
124 cat ../hint1
125 head -n 20 people
126 grep "CLUE" crimescene
127 head people
128 grep Annabel poeple
129 grep Annabel people
@ashleighmm
ashleighmm / .gitignore
Created July 13, 2019 13:11 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20181206
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
# to download this file
#
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./styles/styles.css"/>
<link href="https://fonts.googleapis.com/css?family=Jim+Nightshade&display=swap" rel="stylesheet">
<title>FIND THE PRECIOUS</title>
</head>
Add the index.html and style.css files to a new Visual Studio Code project.
Create a github repository. Once created add the following:
- A working .gitignore file
- A README.md file with an awesome title and description
- A good number of commits with descriptive messages
- Branches for each feature/team member
Refactor the CSS (style.css) to SCSS (style.scss) using the SCSS features you've learned.
Note: You can also split up your .scss files and make use of imports in your style.scss file. Use any folder structure you feel is best to keep your work organised.
SELECT * FROM wizard;
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: bdd_advanced
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@ashleighmm
ashleighmm / index.html
Last active October 22, 2019 13:21
To-Do List Workshop (Final Code) - Wild Code School
<!-- STEP 1 - Add a form field to input new to-do items -->
<div id="myDIV" class="header">
<h2>My To Do List</h2>
<input type="text" id="myInput" placeholder="Title...">
<span onclick="newElement()" class="addBtn">Add</span>
</div>
<!-- STEP 2 - Add a list for your to-do items -->
<ul id="myUL">
<li>Hit the gym</li>
@ashleighmm
ashleighmm / scope.js
Last active November 30, 2020 14:42
Live Coding: Scope (solution)
var foo = "I'm global";
var bar = "So am I";
function a() {
var foo = "I'm local, the previous 'foo' didn't notice a thing";
var baz = "I'm local, too";
function b() {
var foo = "I'm even more local, all three 'foos' have different values";
baz = "I just changed 'baz' one scope higher, but it's still not global";