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
// googleサービス | |
directionsService.route(request, function(response, status) { | |
// 正しく経路が得られているか確認 | |
if (status == google.maps.DirectionsStatus.OK) { | |
directionsDisplay.setMap(null); | |
directionsDisplay.setMap(map); | |
directionsDisplay.setDirections(response); | |
// 距離をステップ合計から計算(ほんとうにこんな方法がよいのか。。) | |
var intTmp = 0; | |
for(var i in response.routes[0].legs[0].steps){ |
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 | |
VERSION='2011/9/4 08:35:38 UTC' | |
CMDDIR='/home/00962724/radio'; | |
OUTDIR='/home/00962724/radio/out'; | |
YEAR='2011' | |
ARTIST='NHK' | |
downfiles() |
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
<?php | |
echo print_rated_usd($argv[2]); | |
echo "\n"; | |
function post_custom($strTmp){ | |
global $argv; | |
if($strTmp === 'JPY price'){ | |
return $argv[1]; |
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
#!/usr/bin/perl -w | |
use HTML::TableExtract; | |
use Data::Dumper; | |
MAIN:{ | |
my %hashTT; | |
my $strLine = ""; | |
my $strTmp = ""; |
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
import java.io.*; | |
import java.util.*; | |
import org.apache.hadoop.*; | |
import org.apache.hadoop.util.*; | |
import org.apache.hadoop.conf.*; | |
import org.apache.hadoop.io.*; | |
import org.apache.hadoop.fs.*; | |
import org.apache.hadoop.mapreduce.lib.input.*; | |
import org.apache.hadoop.mapreduce.lib.output.*; | |
import org.apache.hadoop.mapreduce.*; |
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
import java.io.*; | |
import java.util.*; | |
import org.apache.hadoop.*; | |
import org.apache.hadoop.util.*; | |
import org.apache.hadoop.conf.*; | |
import org.apache.hadoop.io.*; | |
import org.apache.hadoop.mapreduce.*; | |
import org.apache.hadoop.mapreduce.lib.input.*; | |
import org.apache.hadoop.mapreduce.lib.output.*; | |
import java.net.*; |
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
package org.hadoophacks.mapreduce; | |
import java.io.IOException; | |
import java.util.Iterator; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.util.Tool; | |
import org.apache.hadoop.util.ToolRunner; | |
import org.apache.hadoop.conf.Configured; | |
import org.apache.hadoop.conf.Configuration; |
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
package org.hadoophacks.mapreduce.lib.input; | |
import java.io.IOException; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.FSDataInputStream; | |
import org.apache.hadoop.fs.FileSystem; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.io.compress.CompressionCodec; | |
import org.apache.hadoop.io.compress.CompressionCodecFactory; |
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
package org.hadoophacks.mapreduce.lib.input; | |
import java.io.IOException; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.mapreduce.InputSplit; | |
import org.apache.hadoop.mapreduce.RecordReader; | |
import org.apache.hadoop.mapreduce.TaskAttemptContext; | |
import org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat; | |
import org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader; | |
import org.apache.hadoop.mapreduce.lib.input.CombineFileSplit; |
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
package org.hadoophacks.hive; | |
import org.apache.hadoop.hive.serde2.io.DoubleWritable; | |
import org.apache.hadoop.io.IntWritable;; | |
import org.apache.hadoop.hive.ql.exec.*; | |
public class Average extends UDAF{ | |
/** | |
* | |
*途中計算結果を格納しておくクラス |
OlderNewer