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 / 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
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 / 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 / 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 / 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 / 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 /
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);
View main.f90
vazexqi / FileFormatCheckerTest.groovy
Created Feb 6, 2013
This file shows the types of checks that we perform and the types of error messages that we can report.
View FileFormatCheckerTest.groovy
package edu.illinois.vlsicad.tests
import edu.illinois.vlsicad.core.FileFormatChecker
import edu.illinois.vlsicad.core.URPException
class FileFormatCheckerTest extends GroovyTestCase {
void testValidFile() {
// Should not have any exceptions thrown
FileFormatChecker checker = new FileFormatChecker(file: new File("test3.cubes"))
vazexqi / .tmux.conf
Created Feb 20, 2013
My .tmux.conf file.
View .tmux.conf
# .tmux.conf file inspired from Pragmatic Tmux
# Default to zsh with support for Mac OS X clipboard
set -g default-command "reattach-to-user-namespace -l /bin/zsh"
# Set more scrollback history
# START:scrollback
set -g history-limit 10000
You can’t perform that action at this time.