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
/*********************************************************** | |
* 文字コード変換 (ShiftJIS -> UTF-8) | |
**********************************************************/ | |
#include <fstream> | |
#include <iostream> // for cout, endl | |
#include <stdio.h> // for fopen | |
#include <string.h> // for strlen | |
#include <iconv.h> // for iconv | |
#define ENC_SRC "Shift_JIS" // Encoding ( Src ) |
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
/* | |
* Matching regular expressions using iterators by boost. | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <boost/regex.hpp> // require "boost-regex-dev" | |
using namespace std; | |
/* |
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
/* | |
* Matching regular expressions by boost. (for wchar) | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <boost/regex.hpp> // require "boost-regex-dev" | |
using namespace std; | |
/* |
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
/* | |
* Replacement of regular expressions by boost. | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <boost/regex.hpp> // require "boost-regex-dev" | |
using namespace std; | |
/* |
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
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
/* | |
* [CLASS] Proc | |
*/ | |
class Proc | |
{ |
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
#********************************************* | |
# Ruby script to read shapefile. | |
#********************************************* | |
# | |
require 'geo_ruby' | |
require 'geo_ruby/shp4r/shp' | |
include GeoRuby::Shp4r | |
include GeoRuby::SimpleFeatures |
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
/** | |
* Get yaml informations by yaml-cpp. | |
*/ | |
#include "string" | |
#include "yaml-cpp/yaml.h" | |
using namespace std; | |
int main(int argc, char* argv[]){ | |
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
#!/bin/bash | |
# 定数定義 | |
URL="http://www.foo.xxx/bar/baz/" # チェックした Web サイトの URL | |
FILE_S="/path/to/saved.html" # 前回取得 HTML のファイル | |
FILE_C="/path/to/current.html" # 今回取得 HTML のファイル | |
# 当スクリプトの存在ディレクトリへ移動 | |
cd /path/to/ |
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
/* | |
* Getting yaml informations by yaml-cpp 0.3 series. | |
*/ | |
#include <fstream> | |
#include <string> | |
#include "yaml-cpp/yaml.h" | |
using namespace std; | |
struct Db { |
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
# ---------------------------------------- | |
# R scirpt to draw a map of Japan. (Standard Ver.) | |
# ---------------------------------------- | |
# ライブラリの読み込み | |
library(gpclib) | |
library(ggplot2) | |
library(maptools) | |
# ---------------------------------------- | |
print("**** 各種設定") |