gen_server:start_link({local, ?SERVER}, ?MODULE, [], [{debug,[trace]}])
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) |
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 Fluent | |
class AmqpInput < Input | |
Fluent::Plugin.register_input('amqp', self) | |
def initialize | |
super | |
require 'amqp' | |
end | |
def configure(conf) |
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
<source> | |
type xxxx | |
host 192.168.x.x | |
port 1999 | |
</source> |
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
#!/bin/bash | |
# | |
# Java app start/stop script skeleton. | |
# | |
########################################################## | |
# value section | |
########################################################## | |
USER="***" | |
MAIN_CLASS="***" |
OlderNewer