Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <vector>
#include <fstream>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;
const char* FILE_NAME = "words.dat";
source code
algorithm
bubble sort
data type
version control
text editor
linux
windows
server
@Package
Package / CourseLoader.cs
Created July 26, 2015 13:25
C# Lazy loading automatic properties
private Lazy<List<IData>> _Courses = new Lazy<List<IData>>(LoadCourseData);
public string Courses {
get { return _Courses.Value; }
}
@Package
Package / Question_017.cs
Created August 31, 2015 11:55
Project Euler Question 017
using Project_Euler.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Project_Euler.Questions
{
class Question_017 : Question
@Package
Package / Keywords.csv
Last active January 1, 2016 23:06
Popular search keywords
Search Keywords
nursing course
teacher course
midwifery course
law degrees
diploma in nursing
education training
education courses
education degree
teaching diploma
@Package
Package / league_assignment.py
Created February 23, 2017 14:24
Re-create football league tables through result data
from collections import OrderedDict
class Team(object):
name = ""
points = 0
goals_for = 0
goals_against = 0
wins = 0
draws = 0
loses = 0
@Package
Package / scrabble_helper.py
Last active May 20, 2018 22:09
Scrabble Helper - Finds possible scrabble words based on your letters
# Read a list of valid scrabble words from the input file.
# This list was taken on 20/5/18 from
# https://boardgames.stackexchange.com/questions/38366/latest-collins-scrabble-words-list-in-text-file
# This is the latest Collin's dictionary of valid scrabble words.
def read_words_list():
with open('resources/valid_words.txt') as f:
return [x.replace('\n', '').lower() for x in f.readlines()]
@Package
Package / GitBranching.md
Created June 26, 2020 21:04
Git Branching Cheatsheet

Useful commands for working with Branching in Git

Create a new branch

git branch new-branch

Switch to the new branch

git checkout new-branch

Commit and push changes in a branch