Skip to content

Instantly share code, notes, and snippets.

View meesont's full-sized avatar
🎯
Focusing

Tom Meeson meesont

🎯
Focusing
View GitHub Profile
@meesont
meesont / GitNotes.txt
Created June 7, 2019 08:26
Notes for Git and GitHub command line
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
# 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 = []
#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
@meesont
meesont / DijkstraAlgo.java
Created May 7, 2019 19:47 — forked from raymondchua/DijkstraAlgo
Java's implementation of Dijkstra's Algorithm
import java.util.PriorityQueue;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
public class DijkstraAlgo{
/* Dijkstra Algorithm
*
@meesont
meesont / 2019-Paper1.py
Last active April 25, 2019 15:48
Paper 1 potential answers from wikibooks
#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
var eventsSchema = new mongoose.Schema({
name: String,
date: Date,
first: {
points: Number,
house: {
type: mongoose.Schema.Types.ObjectId,
ref: 'House'
}
},
@meesont
meesont / seeds.js
Last active March 25, 2019 12:01
Better version of Seeds.js for Colt Steele's Web Developer Bootcamp - Better error handling, also seeds comments.
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"
},
@meesont
meesont / refGen.py
Last active May 17, 2019 14:14
Python3 Reference Generator for StackOverflow
# @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
#