% wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz % tar -zxvf protobuf-2.4.1.tar.gz % cd protobuf-2.4.1 % ./configure LDFLAGS=-Wl,-rpath,/usr/local/lib --prefix=/usr/local % make % sudo make install
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 devquiz11.aidl; | |
import android.app.Activity; | |
import android.content.ComponentName; | |
import android.content.Intent; | |
import android.content.ServiceConnection; | |
import android.os.Bundle; | |
import android.os.IBinder; | |
import android.os.RemoteException; | |
import android.view.View; |
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
{ | |
"name": "ChromeExtensionSolverHint", | |
"version": "1.0", | |
"description": "Open the first card and show background color of the card.", | |
"content_scripts": [ | |
{ | |
"matches": [ | |
"http://gdd-2011-quiz-japan.appspot.com/webgame/problem*" | |
], | |
"js": [ |
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.shadowapps.commons.util.http; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.UnsupportedEncodingException; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLEncoder; | |
import java.util.Map; |
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
var asin = document.getElementById('ASIN').value; | |
location.href = 'http://www.amazon.co.jp/gp/digital/fiona/detail/request-kindle-edition/ref=dtp_dp_su_' + asin + '?ie=UTF8&a=' + asin; |
"user" resourceを使う
$ cd <chef-repo dir>/cookbooks
$ knife cookbook create user_add -o ./
$ cd user_add
$ vi attributes/user_add.rb
default['user'] = "hoge"
"package" resourceを使う
$ cd <chef-repo dir>/cookbooks
$ knife cookbook craete install_screen -o ./
$ cd install_screen
$ vi recipes/default.rb
package "screen" do
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 | |
VER=7u21 | |
HTML_NO=1505220 | |
BETA_VER=b11 | |
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-${VER}-download-${HTML_NO}.html;" http://download.oracle.com/otn-pub/java/jdk/${VER}-${BETA_VER}/jdk-${VER}-linux-x64.rpm -O jdk-${VER}.rpm |
OlderNewer