Skip to content

Instantly share code, notes, and snippets.

Nick Chen vazexqi

Block or report user

Report or block vazexqi

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
vazexqi /
Created May 17, 2012
Sequential analysis for stock
public void doAnalysisSequential() {
StockDataCollection nyseData = loadNyseData();
StockDataCollection nasdaqData = loadNasdaqData();
StockDataCollection mergedMarketData = mergeMarketData(Arrays.asList(nyseData, nasdaqData));
StockDataCollection normalizedMarketData = normalizeData(mergedMarketData);
StockDataCollection fedHistoricalData = loadFedHistoricalData();
StockDataCollection normalizedHistoricalData = normalizeData(fedHistoricalData);
StockAnalysisCollection analyzedStockData = analyzeData(normalizedMarketData);
MarketModel modeledMarketData = runModel(analyzedStockData);
StockAnalysisCollection analyzedHistoricalData = analyzeData(normalizedHistoricalData);
vazexqi / akkaFutures.scala
Created May 17, 2012
Various APIs for Futures/Promises for the JVM. For complete code, see
View akkaFutures.scala
override def doAnalysisParallel() = {
implicit val executor = ExecutionContext.fromExecutorService(new ForkJoinPool())
val nyseData = Future(loadNyseData())
val nasdaqData = Future(loadNasdaqData())
val mergedMarketData = for {
nyse <- nyseData
nasdaq <- nasdaqData
vazexqi / ProblemMarkerSample.xml
Created Apr 6, 2011
Shows how XMLEncoder would encode the information in a problem marker for Eclipse
View ProblemMarkerSample.xml
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.6.0_24" class="java.beans.XMLDecoder">
<object class="edu.illinois.codingspectator.refactoringproblems.logger.RefactoringProblem">
<void property="persistableAttributes">
<object class="java.util.HashMap">
<void method="put">
<void method="put">
vazexqi / content.xml
Created Mar 29, 2011
This patch shows an example of how to "widen" the range for the patching mechanism
View content.xml
<?xml version='1.0' encoding='UTF-8'?>
<?metadataRepository version='1.1.0'?>
<repository name='Update Site' type='org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository' version='1'>
<properties size='2'>
<property name='p2.timestamp' value='1300688960908'/>
<property name='p2.compressed' value='true'/>
<units size='45'>
<unit id='org.eclipse.ltk.core.refactoring' version=''>
<update id='org.eclipse.ltk.core.refactoring' range='[0.0.0,' severity='0'/>
vazexqi / pre-commit
Created Mar 23, 2011
Checks for non-ASCII characters or files that are too long
View pre-commit
if git rev-parse --verify HEAD >/dev/null 2>&1
# Initial commit: diff against an empty tree object
vazexqi / Output.txt
Created Feb 8, 2011
Example illustrating assertion failed: (fileNameCounter == 1), function buildCommandLineToSubstituteTransformationFile
View Output.txt
daigo:ROSE_Experiments vazexqi$ build/Rewrite_ROSE.out examples/simple.cpp
"/usr/include/sys/cdefs.h", line 140: warning: incompatible redefinition of
macro "__dead2" (declared at line 148 of
#define __dead2 __attribute__((__noreturn__))
"/usr/include/sys/cdefs.h", line 141: warning: incompatible redefinition of
macro "__pure2" (declared at line 149 of
vazexqi / Markdown Rendering
Created Jan 23, 2011
This rendering works fine here but has trouble on a wiki page
View Markdown Rendering
1. Item 1
1. Item 2
1. Item 3
1. Item 4
1. Item 5
1. Item 6
1. Item 7
1. Item 8
1. Item 9
1. Item 10
You can’t perform that action at this time.