This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.juerggutknecht.ffhs.pvaj.mediator.example; | |
/* | |
* Copyright (c) 2012 Juerg Gutknecht | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtCore/QCoreApplication> | |
#include <QByteArray> | |
#include <QSet> | |
#include <QDebug> | |
#include <QString> | |
#include <QTime> | |
#include <limits> | |
#include <math.h> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script src="../lib/jquery.js" type="text/javascript"></script> | |
<script src="../lib/pubsub.js" type="text/javascript"></script> | |
<style type="text/css"> | |
body { | |
font-family: Helvetica; | |
font-size: 12px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Declaring our Person object | |
var Person = function(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
}; | |
// Adding a couple of operations | |
Person.prototype.getFirstName = function() { | |
return this.firstName; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import copy | |
import datetime | |
term = 'abcdefghij' | |
o = 0 | |
def permutations(tokens, p, n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Juerg Gutknecht <juerg.gutknecht@students.ffhs.ch>' | |
import urllib2 | |
from BeautifulSoup import * | |
from urlparse import urljoin | |
from pysqlite2 import dbapi2 as sqlite | |
stopwords = set(['the', 'of', 'to', 'and', 'a', 'in', 'is', 'it']) | |