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
<!-- ボタンを設置したい場所に次を埋め込む --> | |
<ul id="social_buttons"> | |
<li class="tweet"></li> <!-- twitter --> | |
<li class="evernote"></li> <!-- Evernote --> | |
<li class="facebook_like"></li> <!-- Facebook --> | |
<li class="hatena"></li> <!-- はてなブックマーク --> | |
<li > <!-- Pocket --> | |
<a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-lang="en"></a> | |
<script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script> | |
</li> |
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.open(FILE_PATH){|f| | |
f.each_line do |line| | |
puts(line) | |
end | |
} |
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 | |
cat << EOS >> ~/hoge | |
line: 1 | |
line: 2 | |
line: 3 | |
EOS |
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
|
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
/* (non-Javadoc) | |
* @see android.app.Activity#onCreate(android.os.Bundle) | |
*/ | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// : | |
// : | |
WebView webView1 = (WebView)findViewById(R.id.webView1); |
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.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import org.apache.log4j.Logger; | |
/** | |
* プロセスの起動を監視するクラス。 | |
* | |
* @author tomoyamkung |
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 | |
#-*- encoding: utf-8 -*- | |
module FileWriter | |
LINEFEED_CODE_LF = "\n" | |
def write(path, content, linefeed_code = nil) | |
file = File.open(path, "w") | |
content.each do |line| | |
if linefeed_code == nil |
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 | |
#-*- encoding: utf-8 -*- | |
require 'test/unit' | |
class RequireUtilTest< Test::Unit::TestCase | |
def self.add(dir) | |
dir = dir[0, dir.size - 1] if dir.end_with?('/') | |
Dir::glob(dir + '/**/*').each do |file| |
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 net.tomoyamkung; | |
import java.io.File; | |
import java.io.FilenameFilter; | |
/** | |
* 指定した拡張子と一致するファイルを取得するフィルタクラス。 | |
* | |
* @author tomoyamkung | |
* |
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 | |
# このスクリプトが保存されているディレクトリに移動する | |
cd `dirname $0` |
NewerOlder