wget http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.01080605.tar.gz
wget http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/2.3/pari-2.3.5.tar.gz
tar -zxvf Math-Pari-2.01080605.tar.gz
tar -zxvf pari-2.3.5.tgz
cd Math-Pari-2.01080605
vim Makefile.PL
##Line 9: Change to $paridir = "../pari-2.3.5";
perl Makefile.PL
cpanm .
This file contains 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
#### Contents of the preconfiguration file (for squeeze) | |
### Localization | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/locale string en_US | |
# The values can also be preseeded individually for greater flexibility. | |
#d-i debian-installer/language string en | |
#d-i debian-installer/country string NL | |
#d-i debian-installer/locale string en_GB.UTF-8 | |
# Optionally specify additional locales to be generated. |
This file contains 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
LoadPlugin "exec" | |
<Plugin "exec"> | |
Exec "haproxy:haproxy" "/usr/local/bin/haproxy-stats" "-p" "10" | |
</Plugin> |
My homebew is installed into /usr/local/homebrew.
Install gcc-4.8
brew install gcc48
cd /usr/local/bin
rm cc gcc c++ g++
ln -s /usr/local/bin/gcc-4.8 cc
This file contains 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
-module(sleep_sort). | |
-export([sort/1, wait/1]). | |
sort([]) -> | |
"sleep sort!!"; | |
sort([H|T]) -> | |
spawn(sleep, wait, [H]), | |
sort(T). | |
wait(Time) -> |
This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId></groupId> | |
<artifactId></artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
<name></name> | |
<url></url> |
This file contains 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
gsed -i -r 's/([0-9]{1,3}\.){3}[0-9]{1,3}/localhost/' * |
This file contains 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
-module(ex). | |
-export([drop_starts_same/1]). | |
drop_starts_same([HList|[]]) -> | |
[HList]; | |
drop_starts_same(NestedList) -> | |
ShortList=lists:last(lists:sort(fun(A, B)->length(A)>length(B)end, NestedList)), | |
MatchCnt=lists:min(lists:map(fun(X)->match_count(ShortList, X) end, NestedList)), | |
lists:map(fun(Y)-> lists:sublist(Y, MatchCnt+1, length(Y)-MatchCnt) end, NestedList). |
This file contains 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
--- createpdf.py.org 2011-08-28 22:07:46.000000000 +0900 | |
+++ createpdf.py 2011-08-28 21:37:18.000000000 +0900 | |
@@ -166,11 +166,11 @@ | |
self.basedir=basedir | |
self.language = language | |
try: | |
- get_language (self.language) | |
+ get_language (self.language, None) | |
except ImportError: | |
try: |
This file contains 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
-- Start Haskell 01 -- Homework : http://groups.google.com/group/start-haskell/browse_thread/thread/57aeccfd1073ca6 | |
-- problem 1 | |
magComp :: Float -- 地震1のマグニチュード | |
-> Float -- 地震2のマグニチュード | |
-> Float -- 地震1が何倍強い | |
magComp x y = (magCulc x) / (magCulc y) | |
magCulc :: Float -> Float | |
magCulc m = 10 ** (4.8 + 1.5 * m) |
OlderNewer