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
| # Maintainer: Andrzej Giniewicz <[email protected]> | |
| # Contributor: Chris <christopher.r.mullins g-mail> | |
| pkgname=gdcm | |
| pkgver=2.6.2 | |
| pkgrel=3 | |
| pkgdesc='a C++ library for DICOM medical files' | |
| arch=('i686' 'x86_64') | |
| url='http://gdcm.sourceforge.net' | |
| license=('BSD') |
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
| .... | |
| FILE *fp; | |
| .... | |
| while( true ){ | |
| if(fp == nullptr) pclose(fp); // <---seg. fault happens here. (see below) | |
| // or |
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
| #!/bin/bash | |
| width=200 | |
| offset=400 | |
| var=$RANDOM | |
| let "var %= $width" | |
| let "var += $offset" |
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
| g++ -std=c++0x -ggdb -S Imebra_Shim.cc imebra20110918/library/imebra/src/dataHandlerStringUT.cpp imebra20110918/library/imebra/src/data.cpp imebra20110918/library/imebra/src/colorTransformsFactory.cpp imebra20110918/library/imebra/src/dataHandlerTime.cpp imebra20110918/library/imebra/src/transaction.cpp imebra20110918/library/imebra/src/colorTransform.cpp imebra20110918/library/imebra/src/dataHandlerStringDS.cpp imebra20110918/library/imebra/src/dataHandlerString.cpp imebra20110918/library/imebra/src/MONOCHROME2ToYBRFULL.cpp imebra20110918/library/imebra/src/dataHandlerStringPN.cpp imebra20110918/library/imebra/src/image.cpp imebra20110918/library/imebra/src/drawBitmap.cpp imebra20110918/library/imebra/src/dataHandlerDateTimeBase.cpp imebra20110918/library/imebra/src/dataHandlerStringLT.cpp imebra20110918/library/imebra/src/dataHandlerDateTime.cpp imebra20110918/library/imebra/src/dataHandlerStringAE.cpp imebra20110918/library/imebra/src/YBRFULLToRGB.cpp imebra20110918/library/imebra/src/dicomCodec.cpp imebr |
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
| #!/bin/bash | |
| ########################################################################################### | |
| # This script is used to comb a pdf file for a specific phrase. It is bad, inefficient | |
| # script, but I haven't been able to figure out how to properly do it yet (and I've been | |
| # looking for several months - combing S.O. and freshmeat/freecode for proper index/search | |
| # solutions.) | |
| # | |
| # Usage: | |
| # Ensure script is executable: chmod +x /path/to/pdf_grep.sh |
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
| // Compiling with g++ Shogun.cpp -lshogun -o shoguntest | |
| #include <shogun/features/Labels.h> | |
| #include <shogun/features/SimpleFeatures.h> | |
| #include <shogun/kernel/GaussianKernel.h> | |
| #include <shogun/classifier/svm/LibSVM.h> | |
| #include <shogun/base/init.h> | |
| #include <shogun/lib/common.h> | |
| #include <shogun/io/SGIO.h> |
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
| #include <iostream> | |
| #include <cmath> | |
| #include "einspline/bspline.h" | |
| // | |
| //Compiled with: g++ -L/usr/local/include -leinspline Spline_test.cc -o spline | |
| // | |
| // NOTE: if using a 32-bit computer, compile with the '-malign-double' flag. | |
| // |
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
| // Compile with 'g++ <thisfile>.cc -o <you_choose_the_program_name_here> | |
| // | |
| // Use with xmobar/xmonad by inserting a line like so into your .xmobarrc. | |
| //Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" | |
| // , bgColor = "black" | |
| // , fgColor = "grey" | |
| // , position = Top | |
| // , lowerOnStart = True | |
| // , commands = [ Run Weather "EGPF" ["-t","<station>: <tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000 | |
| // , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10 |
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
| #!/bin/bash | |
| # These are the kludge commands. If I am on my PC, I want to view things | |
| # with XXXX options. If on my laptop, YYYY options. | |
| if [ "$( uname -n )" = "Crushernator" ] ; then | |
| # Laptop: Bad video card. Use x11 and zoom to reduce strain and choppiness. | |
| extras=" -vo x11 -zoom " | |
| elif [ "$( uname -n )" = "flancrest" ] ; then | |
| # Desktop: So far, nothing. | |
| extras=" " |