Skip to content

Instantly share code, notes, and snippets.

@sakebook
sakebook / 0_reuse_code.js
Created March 22, 2014 12:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sakebook
sakebook / tile.xml
Last active December 29, 2015 19:09
画像を敷き詰めて背景に表示
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/YOUR_IMAGE"
android:antialias="true"
android:dither="false"
android:filter="false"
android:gravity="fill"
android:tileMode="repeat" />
<!-- antialias アンチエリアスを有効または無効にします -->
<!-- dither ビットマップが画面と同じピクセル設定を持たない場合 ( 例: RGB 565 の画面で ARGB 8888 のビットマップ ) にビットマップのディザリングを有効または無効にします -->
@sakebook
sakebook / AndroidManifest.xml
Last active December 23, 2015 17:19
Intent Sample
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="YOUR_PACKAGE"
android:versionCode="1"
android:versionName="1.0.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />