Skip to content

Instantly share code, notes, and snippets.

View jamyspex's full-sized avatar

James Macdonald jamyspex

View GitHub Profile
interface ReviewClient extends java.rmi.Remote{
public void onBookUpdate(Book updated) throws java.rmi.RemoteException;
}
//-------------------------------------------------------------------------------------------------------------------
public class ReviewClientImp implements ReviewClient extends java.rmi.UnicastRemoteObject{
public void onBookUpdate(Book updated){
System.out.println("Book updated: " + updated.title);
}
public class Book implements Serialisable {
public Book(String title){
this.review = "";
this.title = title;
}
public String title;
public String reviews;

Keybase proof

I hereby claim:

  • I am jamyspex on github.
  • I am jamyspex (https://keybase.io/jamyspex) on keybase.
  • I have a public key ASDW9peTXjEnyh5mOe95195cnmuGKcUigWmAkVlqSysNyQo

To claim this, I am signing this object:

public async void GetInspections(string filter)
{
var filterObject = JsonConvert.DeserializeObject<InspectionFilter.FilterObject>(filter);
var filters = new List<InspectionFilter> { new RegNoFilter(), new InspectionStatusFilter(), new InspectionTypeFilter(), new UsernameFilter() };
var inspections = db.Inspections
.Include(i => i.InspectionState)
.Include(i => i.User);
// @flow
import type { $Request, $Response } from 'express';
import express from 'express';
import handlebars from 'handlebars';
import layouts from 'handlebars-layouts';
import fs from 'fs';
import path from 'path';
import User from '../models/User';
import argparse
import random
from faker import Factory
fake = Factory.create("en_GB")
parser = argparse.ArgumentParser(
description='Generated data for AP3 Assessed Ex 1')
parser.add_argument('num', metavar='N', type=int, nargs=1,
help='Number of records to generate.')