svn revert -R .
Cite as:
Saad, T. "SVN revert recursively".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2013/05/svn-revert-recursively.html
Please Make a Note is a collection of science & technology tips and derivations that will make it easier for research scientists & engineers to perform the various tasks they are faced with. These notes cover a wide range of scientific topics, software, media, and data analysis utilities.
svn revert -R .
Cite as:
Saad, T. "SVN revert recursively".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2013/05/svn-revert-recursively.html
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash echo "source ~/.git-completion.bash" >> ~/.bash_profile
Cite as:
Saad, T. "git autocomplete on Mac OS X".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2013/04/git-autocomplete-on-mac-os-x.html
Cite as:
Saad, T. "Generate List of Publications from bib File".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2013/01/generate-list-of-publications-from-bib.html
Cite as:
Saad, T. "XCode 4 Build Locations (Lion, Mountain Lion)".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2012/09/xcode-4-build-locations-lion-mountain.html
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void plotResults(double* xData, double* yData, int dataSize);
int main() {
int i = 0;
int nIntervals = 100;
double intervalSize = 1.0;
double stepSize = intervalSize/nIntervals;
double* xData = (double*) malloc((nIntervals+1)*sizeof(double));
double* yData = (double*) malloc((nIntervals+1)*sizeof(double));
xData[0] = 0.0;
double x0 = 0.0;
for (i = 0; i < nIntervals; i++) {
x0 = xData[i];
xData[i+1] = x0 + stepSize;
}
for (i = 0; i <= nIntervals; i++) {
x0 = xData[i];
yData[i] = sin(x0)*cos(10*x0);
}
plotResults(xData,yData,nIntervals);
return 0;
}
void plotResults(double* xData, double* yData, int dataSize) {
FILE *gnuplotPipe,*tempDataFile;
char *tempDataFileName;
double x,y;
int i;
tempDataFileName = "tempData";
gnuplotPipe = popen("gnuplot","w");
if (gnuplotPipe) {
fprintf(gnuplotPipe,"plot \"%s\" with lines\n",tempDataFileName);
fflush(gnuplotPipe);
tempDataFile = fopen(tempDataFileName,"w");
for (i=0; i <= dataSize; i++) {
x = xData[i];
y = yData[i];
fprintf(tempDataFile,"%lf %lf\n",x,y);
}
fclose(tempDataFile);
printf("press enter to continue...");
getchar();
remove(tempDataFileName);
fprintf(gnuplotPipe,"exit \n");
} else {
printf("gnuplot not found...");
}
}
Cite as:
Saad, T. "Calling gnuplot from C/C++ on Mac OS X".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2012/09/calling-gnuplot-from-cc-on-mac-os-x.html