Skip to content

Instantly share code, notes, and snippets.

View masarugen's full-sized avatar
💭
dot

Hashizume Masaru masarugen

💭
dot
View GitHub Profile
@masarugen
masarugen / how-to-esa.md
Created April 23, 2017 04:42 — forked from taea/how-to-esa.md
esaのつかいかた(\( ⁰⊖⁰)/)

esa.io のつかいかた

Save as WIP Ship it! ボタンについて

esa-man.jpg

Save as WIP ボタン

  • 投稿画面、編集画面に Save as WIP というボタンがあります。これを押すと、「書き途中だけど保存して公開する」という意味になります。
  • WIP = Work in Progress (作業中)
  • Save as WIP で保存された記事は、一覧画面などの投稿タイトルに WIP と付いてグレーアウトした状態になります。
public class AlphaImageView extends ImageView {
private static final int FADE_IN_TIME_MS = 10000;
public AlphaImageView(Context context) {
super(context);
}
public AlphaImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromXScale="1"
android:toXScale="0"
android:fromYScale="1"
android:toYScale="0"
android:pivotX="90%"
public void nextMain() {
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.setCustomAnimations(R.anim.test_in, 0, 0, R.anim.test_out);
ft.add(R.id.fragment, new MainActivityFragment());
ft.addToBackStack(null);
ft.commit();
}
public void nextSecond() {
function is_my_protected_meta( $protected, $meta_key, $meta_type = null ) {
$protected = ( $protected && ( strpos( $meta_key, "_aioseop" ) !== 0 ) );
return $protected;
}
add_filter( 'is_protected_meta', 'is_my_protected_meta', 10, 3 );
function is_protected_meta( $meta_key, $meta_type = null ) {
$protected = ( '_' == $meta_key[0] );
return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type );
}
function is_protected_meta( $meta_key, $meta_type = null ) {
$protected = (( '_' == $meta_key[0] ) && ( strpos($meta_key, "_aioseop") !== 0));
return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type );
}
yum list nginx --disablerepo=epel
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* rpmforge: mirror.fairway.ne.jp
Available Packages
nginx.x86_64 1.4.3-1.el6.ngx nginx
yum list nginx
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* rpmforge: mirror.fairway.ne.jp
25 packages excluded due to repository priority protections
Available Packages
nginx.x86_64 1.0.15-5.el6 epel
package com.example.samplescrollview;
import android.app.Activity;
import android.content.Context;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;