Skip to content

Instantly share code, notes, and snippets.

Niklas Kirk Mouritzsen feupeu

Block or report user

Report or block feupeu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:eb84c467303c24fdeb35aeb7dd9f17ff
namespace App\Http\Controllers\Auth;
use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
View gist:4a43607d0755554c0a2c
package dk.cs.aau.sw705e15.model;
import java.util.ArrayList;
import java.util.List;
public class Computer extends Component {
private CentralProcessingUnit centralProcessingUnit;
private RandomAccessMemory randomAccessMemory;
private Storage primaryStorage;
View gist:e7e7b2ae658ddfdbed8b
(define (calendars-overlap? cal1 cal2)
(lambda (app)
(calendars-overlap-step app (cal-part cal2 APPOINTMENTS))
(cal-part cal1 APPOINTMENTS)
(define (calendars-overlap-step app apps)
View gist:d694139353eef1e222ad
(define (tag id content styles)
"<" id
; Check if we should add anything inside the style property
(if (null? styles)
" style='"
(apply string-append styles)
View gist:9c524745467ad7c93bc0
// Check if the body is empty
if(doc.body() != null) {
// Find all text on the page
final String text = doc.body().text();
// Split the text into tokens
final ArrayList<String> tokens = new ArrayList<>();
final StringTokenizer tokenizer = new StringTokenizer(text);
// Add all valid tokens
View gist:dfe78d8c18bf8eab4663
package dk.cs.aau.sw705e15.spoder.external;
author: Fotis Lazarinis (actually I translated from C to Java)
date: June 1997
address: Psilovraxou 12, Agrinio, 30100
comments: Compile it, import the Porter class into you program and create an instance.
Then use the stripAffixes method of this method which takes a String as
input and returns the stem of this String again as a String.
View gist:05672465cd20d2055956
\title{My Article}
\author{Nobody Jr.}
View gist:85a317350f28bf7a0efc
Syntax analysis
- Scanner / Parser
- CFG in Xtext (Compare to the CFG in the report)
Context analysis
- Typechecker
- Typeprovider
- Void type
You can’t perform that action at this time.