所得税額 = (所得金額(A) - 所得控除額(B)) × 税率 - 税額控除額(C)
- 「所得金額(A)- 所得控除額(B)」は 課税所得金額 といい、1,000円未満の端数を切り捨てる。
| <!doctype html> | |
| <html lang="en" class="no-js"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>$.gmapV3</title> | |
| <meta name="description" content=""> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
| <script src="jquery.gmapv3.js"></script> |
| 例えば次のような構成に対して実行すると、R.csv、A/A.csv、A/B/B.csvができます。 | |
| サンプルでは特別な変換処理はしていないので、R.dat、A.dat、B.datは空でも構いません。 | |
| A/A.datの内容を変更した場合に、A/A.csvを変更する処理だけが走ることを確認します。 | |
| | build.gradle | |
| | Rakefile | |
| | R.dat | |
| | | |
| \---A | |
| | A.dat |
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { |
| public class SampleFragment extends Fragment { | |
| /** Fragmentで保持しておくデータ */ | |
| private int mData; | |
| /** | |
| * Fragmentインスタンスを生成した返却. | |
| * | |
| * コンストラクタに引数を渡すのはダメ。 | |
| * Fragmentがメモリ不足で破棄され、そこから復帰する時に空のコンストラクタ呼ばれる。 |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonSyntaxException; | |
| import com.android.volley.AuthFailureError; | |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Request; | |
| import com.android.volley.Response; | |
| import com.android.volley.Response.ErrorListener; | |
| import com.android.volley.Response.Listener; |
| [2013-05-19 18:50:10 - HelloCpp] Unknown Application ABI: | |
| [2013-05-19 18:50:10 - HelloCpp] | |
| [2013-05-19 18:50:10 - HelloCpp] Unable to detect application ABI's | |
| resolve : | |
| -window-preferences-android-ndk => pilih direktori android NDK |
| /* Flatten das boostrap */ | |
| .well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
| -moz-box-shadow: none !important; | |
| -webkit-box-shadow: none !important; | |
| box-shadow: none !important; | |
| -webkit-border-radius: 0px !important; | |
| -moz-border-radius: 0px !important; | |
| border-radius: 0px !important; | |
| border-collapse: collapse !important; | |
| background-image: none !important; |
| public static void postNewComment(Context context,final UserAccount userAccount,final String comment,final int blogId,final int postId){ | |
| mPostCommentResponse.requestStarted(); | |
| RequestQueue queue = Volley.newRequestQueue(context); | |
| StringRequest sr = new StringRequest(Request.Method.POST,"http://api.someservice.com/post/comment", new Response.Listener<String>() { | |
| @Override | |
| public void onResponse(String response) { | |
| mPostCommentResponse.requestCompleted(); | |
| } | |
| }, new Response.ErrorListener() { | |
| @Override |
| final Intent i = new Intent(getApplicationContext(), ContentActivity.class); | |
| final PendingIntent appStarter = PendingIntent.getActivity(getApplicationContext(), 0, i, 0); | |
| final AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); | |
| alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 5000, appStarter); | |
| Process.killProcess(Process.myPid()); |