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 com.example.maruyama.helloandroid5; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.Color; | |
import android.os.Build; | |
import android.support.v7.app.AppCompatActivity; |
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; | |
import java.util.Collections; | |
import java.util.List; | |
//SRM241 | |
public class ReportAccess { | |
public String[] whoCanSee(String[] userNames, String[] allowedData, | |
String[] reportData) { |
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; | |
import java.util.Collections; | |
import java.util.List; | |
//SRM241 | |
public class ReportAccess { | |
public String[] whoCanSee(String[] userNames, String[] allowedData, | |
String[] reportData) { |
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; | |
import java.util.List; | |
/** | |
* 拡張for文のテスト | |
* | |
* @author tksmaru | |
* | |
*/ | |
public class TestExtendedFor { |
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
module.exports = Authentication; | |
// @Constructor | |
function Authentication(name) { | |
this._name = name; | |
}; | |
Authentication.prototype._login = function(loginId, password) { | |
throw new Error("not implemented"); |
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
fontdir = File.dirname(__FILE__) + '/ttf' | |
@pdf.font_families.update( | |
"DejaVuSans" => { | |
:bold => "#{fontdir}/migu-1p-bold.ttf", | |
:italic => "#{fontdir}/migu-1p-regular.ttf", | |
:bold_italic => "#{fontdir}/migu-1p-bold.ttf", | |
:normal => "#{fontdir}/migu-1p-regular.ttf"" | |
} | |
) | |
@pdf.font "DejaVuSans" |
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.tksmaru.thread; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.LinkedBlockingDeque; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class MultiThreadFizzBuzz { | |
private static final int MAX = 100; |
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.*; | |
/** | |
* 引数が継承関係にあるオーバーロードメソッドの実験 | |
*/ | |
public class InterfaceTest { | |
/** Collection を要求する */ | |
public static <T> void doSomething(Collection<T> collection) { | |
System.out.println("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
@Grab(group='commons-lang', module='commons-lang', version='2.6') | |
import org.apache.commons.lang.StringUtils; | |
assert ! StringUtils.isAlpha("2"); // false | |
assert StringUtils.isAlpha("a"); // true | |
assert ! StringUtils.isAlpha("あ"); // true…だと…? |
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
public class InterfaceTest { | |
public static void main(String[] args) { | |
// 基底クラスで型を宣言 | |
CoreSysMember member = new Ohta(); | |
//CoreSysMember member = new ItashikiPro(); | |
System.out.println(member.getName()); | |
} | |
/** |
OlderNewer