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/sh | |
| xrandr --output LVDS1 --panning 1024x720 |
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
| DIR_PREV=$PWD | |
| TMPDIR=/tmp/.tex2svg.$$ | |
| mkdir $TMPDIR | |
| cd $TMPDIR | |
| platex << EOS | |
| \documentclass[30pt]{jsarticle} | |
| \begin{document} | |
| \thispagestyle{empty} | |
| \$\$$1\$\$ |
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
| dir_prev=$PWD | |
| cd `dirname $1` | |
| debfile=`pwd`/`basename $1` | |
| cd $dir_prev | |
| workdir=`mktemp -d --tmpdir deb_to_amd64.XXXXXXXXXX` | |
| cd $workdir | |
| ar x $debfile control.tar.gz |
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
| kextunload /System/Library/Extensions/CUDA.kext | |
| rm -rf /Library/Frameworks/CUDA.framework | |
| rm -rf /System/Library/Extensions/CUDA.kext | |
| rm -rf /Library/LaunchAgents/com.nvidia.CUDASoftwareUpdate.plist | |
| rm -rf /Library/PreferencePanes/CUDA\ Preferences.prefPane | |
| rm -rf /System/Library/StartupItems/CUDA | |
| rm -rf /usr/local/cuda | |
| rm -rf /Developer/GPU\ Computing |
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
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'id3lib' | |
| require "kconv" | |
| class MyID3Tag < ID3Lib::Tag | |
| def title=(v) | |
| self.set_frame_text(:TIT2, v.toutf16) | |
| self.frame(:TIT2)[:textenc] = 1 |
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
| #!/usr/bin/env maxima | |
| c2(x):=2*x^2-1; | |
| c3(x):=4*x^3-3*x; | |
| answers:solve(c2(x)=c3(x),x); | |
| cos72:rhs(answers[2]); /* index may differ in system */ | |
| sin18:cos72; | |
| cos18:expand(sqrt(1-sin18^2)); |
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 <vector> | |
| using std::size_t; | |
| template<size_t index> | |
| struct factorial | |
| { | |
| const static size_t value = index * factorial<index-1>::value; | |
| }; |
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
| convert ${in} bmp:- | cjpeg -progressive -dct float -optimize -quality 70 > ${out_jpg} |
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> | |
| using std::size_t; | |
| template<typename _base, size_t _index> | |
| class pow_i | |
| { | |
| public: | |
| const static double value = pow_i<_base, _index-1 >::value * _base::value; | |
| }; |
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 <sys/time.h> | |
| #include <iostream> | |
| #include <vector> | |
| #include <boost/format.hpp> | |
| #include <omp.h> | |
| //#define MP_CRITICAL |