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 org.apache.http.HttpResponse; | |
import org.apache.http.HttpStatus; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.util.EntityUtils; | |
public class GetYahoo { | |
public static void main(String args[]){ | |
System.out.println(doGet("http://www.yahoo.co.jp/")); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
<item name="android:windowNoTitle">true</item> | |
<item name="windowActionBar">false</item> <!-- For 2.x version --> | |
</style> | |
</resources> |
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 jp.daneko.json.sample | |
import org.specs2._ | |
import play.api.libs.json._ | |
import play.api.libs.functional.syntax._ | |
class Sample extends Specification { | |
def is = s2""" |
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 <stdio.h> | |
/* | |
* 月末を返却 | |
* param yyyy 年 | |
* param mm 月 | |
* return 月末 | |
*/ | |
int get_end_month(int yyyy , int mm) | |
{ |
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 | |
#include | |
/** | |
* 構造体 | |
*/ | |
typedef struct sosu_list { | |
int no; | |
struct sosu_list *next; |
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.util.ArrayList; | |
/** | |
* 素数計算プログラム | |
* @author kerukerupappa | |
* | |
*/ | |
public class Sosu { | |
private static ArrayList mSosuList = new ArrayList(); |
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 main | |
import "fmt" | |
type GPS struct { | |
lat string | |
lon string | |
} | |
type Wifi struct { |
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
rethinkdb: | |
image: rethinkdb:2.3 | |
ports: | |
- "8080:8080" | |
- "28015:28015" | |
- "29015:29015" | |
restart: always | |
volumes: | |
- "/srv/rethinkdb:/data" | |
command: "rethinkdb --bind all --cache-size 2048" |
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
# based on https://registry.hub.docker.com/u/samtstern/android-sdk/dockerfile/ with openjdk-8 | |
FROM java:8 | |
MAINTAINER Toshihiro.Kamada <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
# Install dependencies | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update && \ |
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
# prefixキーをC-eに変更する | |
set -g prefix C-e | |
# C-bのキーバインドを解除する | |
unbind C-b | |
# キーストロークのディレイを減らす | |
set -sg escape-time 1 | |
# ウィンドウのインデックスを1から始める |
OlderNewer