This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @Author: Thomas Meeson <thomas> | |
# @Date: 18-02-2019 | |
# @Last modified by: thomas | |
# @Last modified time: 25-03-2019 | |
# @License: Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require("mongoose"), | |
Campground = require("./models/campground"), | |
Comment = require("./models/comment"); | |
var data = [ | |
{ | |
name: "Cloud's Rest", | |
image: "https://farm4.staticflickr.com/3795/10131087094_c1c0a1c859.jpg", | |
description: "blah blah blah" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var eventsSchema = new mongoose.Schema({ | |
name: String, | |
date: Date, | |
first: { | |
points: Number, | |
house: { | |
type: mongoose.Schema.Types.ObjectId, | |
ref: 'House' | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Skeleton Program code for the AQA A Level Paper 1 Summer 2019 examination | |
#this code should be used in conjunction with the Preliminary Material | |
#written by the AQA Programmer Team | |
#developed in the Python 3.5.1 programming environment | |
import random | |
import pickle | |
import os | |
import struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.PriorityQueue; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class DijkstraAlgo{ | |
/* Dijkstra Algorithm | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Skeleton Program code for the AQA A Level Paper 1 Summer 2019 examination | |
#this code should be used in conjunction with the Preliminary Material | |
#written by the AQA Programmer Team | |
#developed in the Python 3.5.1 programming environment | |
import random | |
import pickle | |
import os | |
import struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Skeleton Program code for the AQA A Level Paper 1 2018 examination | |
# this code should be used in conjunction with the Preliminary Material | |
# written by the AQA Programmer Team | |
# developed using Python 3.5.1 | |
import random | |
class QueueOfTiles(): | |
def __init__(self, MaxSize): | |
self._Contents = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Right click on folder and select 'Git Bash' | |
git init --> initialises repository in current folder, can be init in new and current | |
Even though you're working under change control, it isn't a backup | |
Folder can be zipped, and thus repo accessed by anyone zip it is sent to | |
git status --> shows standing at any given time | |
git add <file_name> --> stages file for commit | |
When you make a change to a previously staged (tracked) file, you need to stage the new changes |