センサーを利用して、ユーザーが端末を使っていない時にバッテリーの消費を抑える機能…らしい。
http://androidlover.net/android-os/android-m/android-m-how-to-use-doze-mode.html
- アプリごとにDozeモードの有効・無効が切り替えられる
- 有効なアプリに対しては通信やWifiスキャン等が抑えられる
- デフォルトではGooglePlay開発者サービス等一部アプリ(サービス)をのぞいたすべてに対して有効になっている
package main | |
import ( | |
"fmt" | |
"golang.org/x/tour/tree" | |
) | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { |
.box1 { | |
width: 100px; | |
height: 200px; | |
} | |
.box2 { | |
width: 300px; | |
height: 500px; | |
} | |
div { | |
position: relative; |
# coding: utf-8 | |
import tornado.ioloop | |
import tornado.web | |
class MainHandler(tornado.web.RequestHandler): | |
def post(self): | |
print("Header---------") | |
print(self.request.headers) |
センサーを利用して、ユーザーが端末を使っていない時にバッテリーの消費を抑える機能…らしい。
http://androidlover.net/android-os/android-m/android-m-how-to-use-doze-mode.html
# coding: utf-8 | |
from __future__ import absolute_import, division, print_function | |
import pickle | |
import functools | |
import redis | |
/** | |
* Copyright (c) 2014 pistatium | |
* | |
* This software is released under the MIT License. | |
* | |
* http://opensource.org/licenses/mit-license.php | |
*/ | |
import java.util.*; | |
import java.lang.Math; |
class Base(object): | |
def getAttributeKeys(self): | |
""" Baseを継承したクラスで定義された | |
要素(メソッドやプロパティ)のキーだけを取得したい | |
""" | |
class Child(Base): |
<?php | |
// アイキャッチの設定とデフォルト画像の登録 | |
add_action('init', function() { | |
add_theme_support('post-thumbnails'); | |
$filename = dirname(__FILE__) . "/img/no_image.png"; | |
if (file_exists($filename)) { | |
$wp_upload_dir = wp_upload_dir(); | |
$upload_path = $wp_upload_dir['path']; |
{% for field in form %} | |
<div class="form-group {{funcs["yesno"](field.errors,"has-error")}}"> | |
<label for="{{field.label.field_id}}" class="col-sm-2 control-label">{{field.label.text}}</label> | |
<div class="col-sm-10"> | |
{% raw field(class_="form-control") %} | |
{% if field.description %} | |
<span class="help-block">{{ field.description}}</span> | |
{% end %} | |
{% if field.errors %} | |
<span class="help-block"> |