Skip to content

Instantly share code, notes, and snippets.

@tksmaru
tksmaru / authentication.js
Created November 11, 2015 21:10
javascriptにおける継承の実装サンプル
module.exports = Authentication;
// @Constructor
function Authentication(name) {
this._name = name;
};
Authentication.prototype._login = function(loginId, password) {
throw new Error("not implemented");
@tksmaru
tksmaru / TestExtendedFor.java
Created February 29, 2012 15:17
Testing extended for-loop
import java.util.ArrayList;
import java.util.List;
/**
* 拡張for文のテスト
*
* @author tksmaru
*
*/
public class TestExtendedFor {
@tksmaru
tksmaru / ReportAccess.java
Created February 13, 2012 00:16
SRM241 div1-score250 もう一度考えてみた。
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) {
@tksmaru
tksmaru / ReportAccess.java
Created February 12, 2012 12:23
SRM241 div1-score250
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) {
@tksmaru
tksmaru / MainActivity.java
Created August 6, 2015 22:40
Android API levelを意識したNotificationの実装例
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;