This file contains hidden or 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
env CFLAGS=-m64 CXXFLAGS=-m64 C_INCLUDE_PATH=$NATIVE/include | |
LIBRARY_PATH=$NATIVE/lib LD_LIBRARY_PATH=$NATIVE/lib | |
JAVA_LIBRARY_PATH=$NATIVE/lib ant -Dtest.junit.output.format=xml | |
-Dtest.output=yes -Dversion=$HADOOP_LZO_VERSION test package published |
This file contains hidden or 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
forrest.validate.sitemap=false | |
forrest.validate.skins.stylesheets=false |
This file contains hidden or 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
# note you need to set the following environment variables | |
# NATIVE - the native LZO library location | |
# ANT17 - your Ant 1.7 installation | |
# FORREST_HOME - your Apache Forrest 0.8 installation | |
# HADOOP_VERSION - the version you are giving Hadoop | |
# JAVA_HOME - your Java isntallation | |
env CFLAGS=-m64 CXXFLAGS=-m64 C_INCLUDE_PATH=$NATIVE/include | |
LIBRARY_PATH=$NATIVE/lib LD_LIBRARY_PATH=$NATIVE/lib |
This file contains hidden or 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 java.io.IOException; | |
import java.util.*; | |
import java.util.Map; | |
import java.util.Set; | |
import org.apache.commons.math3.linear.*; | |
import org.apache.lucene.analysis.*; | |
import org.apache.lucene.document.*; | |
import org.apache.lucene.index.*; | |
import org.apache.lucene.store.*; |
This file contains hidden or 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; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 { |