- オブジェクト指向パラダイムを主軸に関数型パラダイムを取り込んだプログラミング言語です。
- コンパイラ言語であり、コンパイル結果はJavaバイトコードとなり、JVM上で実行可能です。
This file contains hidden or 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.security.*; | |
| public class Sha { | |
| public static String hash256(String data) throws NoSuchAlgorithmException { | |
| MessageDigest md = MessageDigest.getInstance("SHA-256"); | |
| md.update(data.getBytes()); | |
| return bytesToHex(md.digest()); | |
| } | |
| public static String bytesToHex(byte[] bytes) { | |
| StringBuffer result = new StringBuffer(); | |
| for (byte byt : bytes) result.append(Integer.toString((byt & 0xff) + 0x100, 16).substring(1)); |
This file contains hidden or 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"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.cards.notification"> | |
| <uses-sdk | |
| android:minSdkVersion="17" | |
| android:targetSdkVersion="17" /> | |
| <application | |
| android:allowBackup="true" |
This file contains hidden or 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 | |
| # | |
| # コマンドの実行が終わったらYOをするシェルスクリプト | |
| # | |
| # (1) APIユーザを作ってトークンを取得する | |
| # http://yoapi.justyo.co/ | |
| # | |
| # (2) APIユーザをフォローする | |
| # APIユーザと普通のユーザは別なので気をつけて | |
| # |
Using: Flask, SQLAlchemy, Infinite-scroll
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
This file contains hidden or 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 eu.fiskur.pennineway.tutorial; | |
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentStatePagerAdapter; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.support.v7.app.ActionBarActivity; |
This file contains hidden or 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
| private static final DEBUG = false; | |
| private static final SecureRandom SR; | |
| static { | |
| SR = new SecureRandom(); | |
| SR.setSeed(System.currentTimeMillis()); | |
| } | |
| private byte[] getRequestNonce() { | |
| byte[] output = new byte[16]; |
We will be playing with android's gorgeous new Material Design theme. We will be covering the following material widgets and animations that were introduced in Android 5.0 (API level 21).
- RecyclerView (the new ListView)
- CardView (custom outline and shadow)
- Ripple Animation (touch feedback)
- Palette (incorporate dynamic color)
This file contains hidden or 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
| // GSON can parse the data. | |
| // | |
| // Deserialization: | |
| // Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
| // To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
| // See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
| // | |
| // Serialization: | |
| // <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
| // access to the actual data instead of storing them in fields and it is therefore them we need to register a |
OlderNewer