This assumes we are running on Ubuntu. For background see:
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
<?xml version="1.0"?> | |
<!-- | |
* | |
* Copyright (C) 2008 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
For the SAAS course part 1 we are being asked to do pair programming for all assignments. | |
A portion of the mark is attributed to submitting a video of ourselves performing pair | |
programming. Therefore I am submitting this document in lieu of a pair-programming video. | |
I did do pair programming on HWK 0, with Jay A Student. Unfortunately we were unable to | |
record the session successfully - getting Google hangouts to work was difficult and it | |
seemed to be necessary to make the hangout public i.e. "on the air" in some way in order | |
to record it. At the time this did not seem possible. The behavior of hangouts seemed | |
pretty flaky. However we did do the work together. There were some pluses and minuses | |
from this: |
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
mark@mark-Aspire-5750G:~/qf-workspace2/sonar-scala$ mvn install | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Sonar Scala Plugin 0.3-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[WARNING] The POM for org.scalariform:scalariform_2.10:jar:0.1.5-SNAPSHOT is missing, no dependency information available | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sonar-scala-plugin --- | |
[INFO] Checking for local modifications: skipped. |
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
import sbt._ | |
import Keys._ | |
import sbtassembly.Plugin._ | |
import AssemblyKeys._ | |
import sbt.Package.ManifestAttributes | |
import sbt.Logger | |
import com.typesafe.sbt.SbtAtmos.{Atmos, atmosSettings, AtmosKeys} | |
object HelloSbtBuild extends Build { |
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
% clear everything | |
clear all; close all; clc; | |
%create a gaussian | |
L=20 | |
n=128; | |
x2=linspace(-L/2,L/2,n+1); | |
x=x2(1: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
import glob | |
import os | |
import networkx as nx | |
from unidecode import unidecode | |
from dateutil.parser import parse | |
''' This file requires the networkx and unidecode packages to be installed e.g. | |
easy_install networkx | |
easy_install unidecode''' |
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> | |
<title>Displaying a remote JSON DataSource in a DataTable</title> | |
<body class="yui3-skin-sam"> | |
<div id="datatable"></div> | |
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script> | |
<script> | |
YUI().use('datatable', 'datasource-get', 'datasource-io', 'datasource-jsonschema', function (Y) { | |
var src = new Y.DataSource.Get({ | |
source: 'http://data.taipei.gov.tw/opendata/apply/json/NzRBNTc0NDUtMjMxMi00RTk1LTkxMjgtNzgzMzU5MEQzRDc3' | |
}); |
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
import static org.junit.Assert.*; | |
import static org.parboiled.support.ParseTreeUtils.printNodeTree; | |
import org.junit.Test; | |
import org.parboiled.BaseParser; | |
import org.parboiled.Parboiled; | |
import org.parboiled.Rule; | |
import org.parboiled.annotations.BuildParseTree; | |
import org.parboiled.buffers.IndentDedentInputBuffer; | |
import org.parboiled.errors.ErrorUtils; |
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 rss; | |
import org.xml.sax.InputSource; | |
import java.io.*; | |
import java.net.*; | |
import com.sun.syndication.io.*; | |
import org.apache.commons.io.IOUtils; |
NewerOlder