Skip to content

Instantly share code, notes, and snippets.

View MartinIngesen's full-sized avatar

Mrtn MartinIngesen

View GitHub Profile

Eksamen PG2100 2012

Oppgave 1

a)

Det vil være naturlig å la Fremkomstmiddel være forelderen til Bil og Sykkel (arv). Bil naturlig ha Pedal og Motor (komposisjon), og Sykkel vil ha Pedal (komposisjon).

På samme måte vil Bosted vil naturlig være en parent for Hus og Hytte, hvorpå både Hus og Hytte har ett eller flere Rom.

Eksamen PG2100 2013

Oppgave 1

a)

  1. B
  2. A og C
  3. C
@MartinIngesen
MartinIngesen / utfordring1
Last active August 29, 2015 14:08
Utfordring 1
public class Main {
public static void main(String[] args) {
int siffer = mfdString(Integer.MAX_VALUE);
System.out.println(Integer.MIN_VALUE + "mfd (String) er: " + siffer);
siffer = mfdInt(Integer.MAX_VALUE);
System.out.println("mfd (int) er: " + siffer);
}
public class HTMLTagRemover{
public static void main(String []args){
String html = "<p>Hello <br> World!</p> <a href='google.com'>website</a>";
System.out.println(html.replaceAll("<([^>]+)>", ""));
}
}
<!DOCTYPE html>
<html>
<head>
<title>Flight Simulator Flight Planning Tool</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
function buttonFunction(id) {
// this could be a switch-statement, but for simplicity it's not.
if (id === 1) {
// get value from input
<?php
// DISCLAIMER: I AM JUST TRYING TO REVERSE THIS CODE. I AM NOT THE CREATOR, NOR HAVE I EVER USED THIS TO EXPLOIT ANYTHING.
// skrur av feilmeldinger.
error_reporting(0);
$lru = "gg/66551324912345824801528/291s293r654o358d894-4502674n550i200a383m417/539n523o433t599t860u453b488d347e322r290/806m243o771c122.808p804w934-266t284s462o458h478-117n717i372m468d391a823/568/674:241p107t197t574h606";
$url = '';

Keybase proof

I hereby claim:

  • I am martiningesen on github.
  • I am martiningesen (https://keybase.io/martiningesen) on keybase.
  • I have a public key whose fingerprint is 4F53 89AD 88C0 71EF 3320 4CD5 D78F BD59 CD63 8BB3

To claim this, I am signing this object:

We couldn’t find that file to show.

Keybase proof

I hereby claim:

  • I am martiningesen on github.
  • I am martiningesen (https://keybase.io/martiningesen) on keybase.
  • I have a public key whose fingerprint is 0396 5084 091A F28F 9688 22AA 9D41 5CA3 3CEC C01F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am martiningesen on github.
  • I am martiningesen (https://keybase.io/martiningesen) on keybase.
  • I have a public key whose fingerprint is 2B85 87AF B6AE 3D55 9F18 776E 08A6 B757 9325 3C85

To claim this, I am signing this object: