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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>amazon <span class="goog_qs-tidbit goog_qs-tidbit-1">Product Advertising API practice</title> | |
</head> | |
<body> | |
<h1>amazon Product Advertising API sample</h1></span> | |
<form action="" method="get"> |
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
// Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
// コンソール上にHello Worldの表示 | |
println("Hello, world!") | |
// 変数 |
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
// Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
// オブジェクトとクラス | |
// クラス宣言 | |
class Shape { |
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/sh | |
IFS=' | |
' | |
db_name=$1 | |
if [ "$db_name" = "" ]; then | |
echo "you should specify a name of db." | |
exit | |
fi |
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
// File_Archiveの日本語文字化け問題対処法 | |
// ライブラリのソースを修正 | |
// vi /usr/local/lib/php/File/Archive/Reader.php | |
function getStandardURL($path) | |
{ | |
if ($path == '.') { | |
return ''; | |
} |
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 | |
use Archive::Zip; | |
use Encode; | |
use Encode::Guess qw/CP932/; | |
my $zip = Archive::Zip->new($ARGV[0]) or die; | |
#print $ARGV[1]; | |
chdir $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
// Angular環境構築 node.jsが入っている状態で。 | |
mkdir angularjs | |
cd angularjs/ | |
// yeomanでwebページのひな型生成ツールインストール | |
npm install -g yo | |
// AngularJSのひな形生成 | |
yo angular | |
// Serverタスク実行、アプリ起動 | |
grunt serve |
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 | |
define('CLIENT_ID', '上記で取得したClient ID'); | |
define('CLIENT_SECRET', '上記で取得したClient Secret'); | |
if (empty($_GET['code'])) { | |
// Authrize URLの構築 | |
$params = array( | |
'client_id' => CLIENT_ID, | |
'scope' => 'repo', // 必須ではない。下記説明参照。 |
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
// | |
// ViewController.swift | |
// getPrefecture | |
// | |
// Created by matz on 2014/10/24. | |
// Copyright (c) 2014年 matz. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ViewController.m | |
// localFileRead | |
// | |
// Created by matz on 2014/10/26. | |
// Copyright (c) 2014年 matz. All rights reserved. | |
// | |
#import "ViewController.h" |
OlderNewer